referrerpolicy=no-referrer-when-downgrade
pallet_fast_unstake::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn on_idle_unstake(b: u32) -> Weight;
    fn on_idle_check(v: u32, b: u32) -> Weight;
    fn register_fast_unstake() -> Weight;
    fn deregister() -> Weight;
    fn control() -> Weight;
}
Expand description

Weight functions needed for pallet_fast_unstake.

Required Methods§

Source

fn on_idle_unstake(b: u32) -> Weight

Source

fn on_idle_check(v: u32, b: u32) -> Weight

Source

fn register_fast_unstake() -> Weight

Source

fn deregister() -> Weight

Source

fn control() -> Weight

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_idle_unstake(b: u32) -> Weight

Storage: FastUnstake::ErasToCheckPerBlock (r:1 w:0) Proof: FastUnstake::ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::ValidatorCount (r:1 w:0) Proof: Staking::ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: FastUnstake::Head (r:1 w:1) Proof: FastUnstake::Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen) Storage: FastUnstake::CounterForQueue (r:1 w:0) Proof: FastUnstake::CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: MultiBlock::CurrentPhase (r:1 w:0) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen) Storage: Staking::CurrentEra (r:1 w:0) Proof: Staking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::SlashingSpans (r:64 w:0) Proof: Staking::SlashingSpans (max_values: None, max_size: None, mode: Measured) Storage: Staking::Bonded (r:64 w:64) Proof: Staking::Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: Staking::Ledger (r:64 w:64) Proof: Staking::Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen) Storage: Staking::VirtualStakers (r:64 w:64) Proof: Staking::VirtualStakers (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Balances::Holds (r:64 w:64) Proof: Balances::Holds (max_values: None, max_size: Some(427), added: 2902, mode: MaxEncodedLen) Storage: System::Account (r:64 w:64) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Staking::Validators (r:64 w:0) Proof: Staking::Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen) Storage: Staking::Nominators (r:64 w:0) Proof: Staking::Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen) Storage: Staking::Payee (r:0 w:64) Proof: Staking::Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen) The range of component b is [1, 64].

Source§

fn on_idle_check(v: u32, b: u32) -> Weight

Storage: FastUnstake::ErasToCheckPerBlock (r:1 w:0) Proof: FastUnstake::ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::ValidatorCount (r:1 w:0) Proof: Staking::ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: FastUnstake::Head (r:1 w:1) Proof: FastUnstake::Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen) Storage: FastUnstake::CounterForQueue (r:1 w:0) Proof: FastUnstake::CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: MultiBlock::CurrentPhase (r:1 w:0) Proof: MultiBlock::CurrentPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen) Storage: Staking::CurrentEra (r:1 w:0) Proof: Staking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::ErasStakersPaged (r:257 w:0) Proof: Staking::ErasStakersPaged (max_values: None, max_size: None, mode: Measured) The range of component v is [1, 256]. The range of component b is [1, 64].

Source§

fn register_fast_unstake() -> Weight

Storage: FastUnstake::ErasToCheckPerBlock (r:1 w:0) Proof: FastUnstake::ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::Ledger (r:1 w:1) Proof: Staking::Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen) Storage: Staking::Bonded (r:1 w:0) Proof: Staking::Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: FastUnstake::Queue (r:1 w:1) Proof: FastUnstake::Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: FastUnstake::Head (r:1 w:0) Proof: FastUnstake::Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen) Storage: Staking::Validators (r:1 w:0) Proof: Staking::Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen) Storage: Staking::Nominators (r:1 w:1) Proof: Staking::Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen) Storage: Staking::CounterForNominators (r:1 w:1) Proof: Staking::CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VoterList::ListNodes (r:1 w:1) Proof: VoterList::ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen) Storage: VoterList::ListBags (r:1 w:1) Proof: VoterList::ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen) Storage: VoterList::CounterForListNodes (r:1 w:1) Proof: VoterList::CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::CurrentEra (r:1 w:0) Proof: Staking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::VirtualStakers (r:1 w:0) Proof: Staking::VirtualStakers (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:0) Proof: Balances::Holds (max_values: None, max_size: Some(427), added: 2902, mode: MaxEncodedLen) Storage: FastUnstake::CounterForQueue (r:1 w:1) Proof: FastUnstake::CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Source§

fn deregister() -> Weight

Storage: FastUnstake::ErasToCheckPerBlock (r:1 w:0) Proof: FastUnstake::ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Staking::Ledger (r:1 w:0) Proof: Staking::Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen) Storage: Staking::Bonded (r:1 w:0) Proof: Staking::Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: FastUnstake::Queue (r:1 w:1) Proof: FastUnstake::Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) Storage: FastUnstake::Head (r:1 w:0) Proof: FastUnstake::Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen) Storage: FastUnstake::CounterForQueue (r:1 w:1) Proof: FastUnstake::CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Source§

fn control() -> Weight

Storage: FastUnstake::ErasToCheckPerBlock (r:0 w:1) Proof: FastUnstake::ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Implementors§

Source§

impl<T: Config> WeightInfo for SubstrateWeight<T>