pub type StakingConfig = GenesisConfig<Runtime>;
Aliased Type§
struct StakingConfig {
pub validator_count: u32,
pub invulnerables: BoundedVec<AccountId32, ConstU32<20>>,
pub force_era: Forcing,
pub slash_reward_fraction: Perbill,
pub canceled_payout: u128,
pub stakers: Vec<(AccountId32, u128, StakerStatus<AccountId32>)>,
pub min_nominator_bond: u128,
pub min_validator_bond: u128,
pub max_validator_count: Option<u32>,
pub max_nominator_count: Option<u32>,
pub dev_stakers: Option<(u32, u32)>,
pub active_era: (u32, u32, u64),
}
Fields§
§validator_count: u32
§invulnerables: BoundedVec<AccountId32, ConstU32<20>>
§force_era: Forcing
§slash_reward_fraction: Perbill
§canceled_payout: u128
§stakers: Vec<(AccountId32, u128, StakerStatus<AccountId32>)>
§min_nominator_bond: u128
§min_validator_bond: u128
§max_validator_count: Option<u32>
§max_nominator_count: Option<u32>
§dev_stakers: Option<(u32, u32)>
Create the given number of validators and nominators.
These account need not be in the endowment list of balances, and are auto-topped up here.
Useful for testing genesis config.
active_era: (u32, u32, u64)
initial active era, corresponding session index and start timestamp.