pub type ParachainStakingConfig = GenesisConfig<Runtime>;

Aliased Type§

struct ParachainStakingConfig {
    pub candidates: Vec<(AccountId20, u128), Global>,
    pub delegations: Vec<(AccountId20, AccountId20, u128, Percent), Global>,
    pub inflation_config: InflationInfo<u128>,
    pub collator_commission: Perbill,
    pub parachain_bond_reserve_percent: Percent,
    pub blocks_per_round: u32,
    pub num_selected_candidates: u32,
}

Fields§

§candidates: Vec<(AccountId20, u128), Global>

Initialize balance and register all as collators: (collator AccountId, balance Amount)

§delegations: Vec<(AccountId20, AccountId20, u128, Percent), Global>

Initialize balance and make delegations: (delegator AccountId, collator AccountId, delegation Amount, auto-compounding Percent)

§inflation_config: InflationInfo<u128>

Inflation configuration

§collator_commission: Perbill

Default fixed percent a collator takes off the top of due rewards

§parachain_bond_reserve_percent: Percent

Default percent of inflation set aside for parachain bond every round

§blocks_per_round: u32

Default number of blocks in a round

§num_selected_candidates: u32

Number of selected candidates every round. Cannot be lower than MinSelectedCandidates

Trait Implementations§

source§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.
§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.