referrerpolicy=no-referrer-when-downgrade
pallet_election_provider_multi_block

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn on_initialize_nothing() -> Weight;
    fn on_initialize_into_snapshot_msp() -> Weight;
    fn on_initialize_into_snapshot_rest() -> Weight;
    fn on_initialize_into_signed() -> Weight;
    fn on_initialize_into_signed_validation() -> Weight;
    fn on_initialize_into_unsigned() -> Weight;
    fn manage() -> Weight;
}
Expand description

Weight functions needed for pallet_election_provider_multi_block.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn on_initialize_nothing() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:0) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:0) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured)

Source§

fn on_initialize_into_snapshot_msp() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:1) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: Staking::ValidatorCount (r:1 w:0) Proof: Staking::ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: Staking::CounterForValidators (r:1 w:0) Proof: Staking::CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: Staking::Validators (r:1002 w:0) Proof: Staking::Validators (max_values: None, max_size: Some(45), added: 2520, mode: Measured) Storage: Staking::VoterSnapshotStatus (r:1 w:1) Proof: Staking::VoterSnapshotStatus (max_values: Some(1), max_size: Some(33), added: 528, mode: Measured) Storage: VoterList::CounterForListNodes (r:1 w:0) Proof: VoterList::CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: VoterList::ListBags (r:200 w:0) Proof: VoterList::ListBags (max_values: None, max_size: Some(82), added: 2557, mode: Measured) Storage: VoterList::ListNodes (r:26001 w:0) Proof: VoterList::ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: Measured) Storage: Staking::Bonded (r:703 w:0) Proof: Staking::Bonded (max_values: None, max_size: Some(72), added: 2547, mode: Measured) Storage: Staking::Ledger (r:703 w:0) Proof: Staking::Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: Measured) Storage: Staking::Nominators (r:703 w:0) Proof: Staking::Nominators (max_values: None, max_size: Some(558), added: 3033, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:0) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlock::PagedVoterSnapshot (r:0 w:1) Proof: MultiBlock::PagedVoterSnapshot (max_values: None, max_size: Some(388773), added: 391248, mode: Measured) Storage: MultiBlock::DesiredTargets (r:0 w:1) Proof: MultiBlock::DesiredTargets (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: MultiBlock::PagedTargetSnapshotHash (r:0 w:1) Proof: MultiBlock::PagedTargetSnapshotHash (max_values: None, max_size: Some(44), added: 2519, mode: Measured) Storage: MultiBlock::PagedTargetSnapshot (r:0 w:1) Proof: MultiBlock::PagedTargetSnapshot (max_values: None, max_size: Some(32014), added: 34489, mode: Measured) Storage: MultiBlock::PagedVoterSnapshotHash (r:0 w:1) Proof: MultiBlock::PagedVoterSnapshotHash (max_values: None, max_size: Some(44), added: 2519, mode: Measured) Storage: Staking::MinimumActiveStake (r:0 w:1) Proof: Staking::MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: Measured)

Source§

fn on_initialize_into_snapshot_rest() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:1) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: Staking::VoterSnapshotStatus (r:1 w:1) Proof: Staking::VoterSnapshotStatus (max_values: Some(1), max_size: Some(33), added: 528, mode: Measured) Storage: VoterList::CounterForListNodes (r:1 w:0) Proof: VoterList::CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: VoterList::ListNodes (r:26001 w:0) Proof: VoterList::ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: Measured) Storage: Staking::Bonded (r:704 w:0) Proof: Staking::Bonded (max_values: None, max_size: Some(72), added: 2547, mode: Measured) Storage: Staking::Ledger (r:704 w:0) Proof: Staking::Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: Measured) Storage: Staking::Nominators (r:703 w:0) Proof: Staking::Nominators (max_values: None, max_size: Some(558), added: 3033, mode: Measured) Storage: VoterList::ListBags (r:200 w:0) Proof: VoterList::ListBags (max_values: None, max_size: Some(82), added: 2557, mode: Measured) Storage: Staking::Validators (r:165 w:0) Proof: Staking::Validators (max_values: None, max_size: Some(45), added: 2520, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:0) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlock::PagedVoterSnapshot (r:0 w:1) Proof: MultiBlock::PagedVoterSnapshot (max_values: None, max_size: Some(388773), added: 391248, mode: Measured) Storage: MultiBlock::PagedVoterSnapshotHash (r:0 w:1) Proof: MultiBlock::PagedVoterSnapshotHash (max_values: None, max_size: Some(44), added: 2519, mode: Measured) Storage: Staking::MinimumActiveStake (r:0 w:1) Proof: Staking::MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: Measured)

Source§

fn on_initialize_into_signed() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:1) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:0) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured)

Source§

fn on_initialize_into_signed_validation() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:1) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:0) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlock::Round (r:1 w:0) Proof: MultiBlock::Round (max_values: Some(1), max_size: Some(4), added: 499, mode: Measured) Storage: MultiBlockSigned::SortedScores (r:1 w:0) Proof: MultiBlockSigned::SortedScores (max_values: None, max_size: Some(653), added: 3128, mode: Measured)

Source§

fn on_initialize_into_unsigned() -> Weight

Storage: MultiBlock::CurrentPhase (r:1 w:1) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlockVerifier::StatusStorage (r:1 w:1) Proof: MultiBlockVerifier::StatusStorage (max_values: Some(1), max_size: Some(5), added: 500, mode: Measured) Storage: MultiBlockVerifier::QueuedValidVariant (r:1 w:0) Proof: MultiBlockVerifier::QueuedValidVariant (max_values: Some(1), max_size: Some(1), added: 496, mode: Measured)

Source§

fn manage() -> Weight

Implementors§