Trait fvm_shared::NetworkParams

source ·
pub trait NetworkParams {
    const TOTAL_FILECOIN: i64;
    const MINING_REWARD_TOTAL: i64;

    // Provided method
    fn initial_reward_balance() -> TokenAmount { ... }
}
Expand description

Config trait which handles different network configurations.

Required Associated Constants§

source

const TOTAL_FILECOIN: i64

Total filecoin available to network.

source

const MINING_REWARD_TOTAL: i64

Available rewards for mining.

Provided Methods§

source

fn initial_reward_balance() -> TokenAmount

Initial reward actor balance. This function is only called in genesis setting up state.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl NetworkParams for DefaultNetworkParams

source§

const TOTAL_FILECOIN: i64 = 2_000_000_000i64

source§

const MINING_REWARD_TOTAL: i64 = 1_400_000_000i64