fil_actor_reward_v10/
lib.rs

1// Copyright 2019-2022 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4use fvm_shared3::METHOD_CONSTRUCTOR;
5use num_derive::FromPrimitive;
6
7pub use self::logic::*;
8pub use self::state::{Reward, State, VestingFunction};
9pub use types::*;
10
11pub(crate) mod expneg;
12mod logic;
13mod state;
14mod types;
15
16// only exported for tests
17#[doc(hidden)]
18pub mod ext;
19
20/// `PenaltyMultiplier` is the factor miner penalties are scaled up by
21pub const PENALTY_MULTIPLIER: u64 = 3;
22
23/// Reward actor methods available
24#[derive(FromPrimitive)]
25#[repr(u64)]
26pub enum Method {
27    Constructor = METHOD_CONSTRUCTOR,
28    AwardBlockReward = 2,
29    ThisEpochReward = 3,
30    UpdateNetworkKPI = 4,
31}