pub trait WeightInfo {
    // Required methods
    fn stake() -> Weight;
    fn withdraw_unstaked() -> Weight;
    fn start_new_epoch_if_needed() -> Weight;
    fn start_new_reward_era_if_needed() -> Weight;
    fn unstake() -> Weight;
    fn set_epoch_length() -> Weight;
    fn change_staking_target() -> Weight;
    fn provider_boost() -> Weight;
    fn claim_staking_rewards() -> Weight;
}
Expand description

Weight functions needed for pallet_capacity.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn stake() -> Weight

Storage: Msa::ProviderToRegistryEntry (r:1 w:0) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) Storage: Capacity::StakingAccountLedger (r:1 w:1) Proof: Capacity::StakingAccountLedger (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) Storage: Capacity::StakingTargetLedger (r:1 w:1) Proof: Capacity::StakingTargetLedger (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: Capacity::CapacityLedger (r:1 w:1) Proof: Capacity::CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Capacity::UnstakeUnlocks (r:1 w:0) Proof: Capacity::UnstakeUnlocks (max_values: None, max_size: Some(121), added: 2596, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:1) Proof: Balances::Freezes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:0) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)

source§

fn withdraw_unstaked() -> Weight

Storage: Capacity::UnstakeUnlocks (r:1 w:1) Proof: Capacity::UnstakeUnlocks (max_values: None, max_size: Some(121), added: 2596, mode: MaxEncodedLen) Storage: Capacity::StakingAccountLedger (r:1 w:0) Proof: Capacity::StakingAccountLedger (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:1) Proof: Balances::Freezes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:0) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)

source§

fn start_new_epoch_if_needed() -> Weight

Storage: Capacity::CurrentEpochInfo (r:1 w:1) Proof: Capacity::CurrentEpochInfo (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Capacity::EpochLength (r:1 w:0) Proof: Capacity::EpochLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn start_new_reward_era_if_needed() -> Weight

Storage: Capacity::CurrentEraProviderBoostTotal (r:1 w:0) Proof: Capacity::CurrentEraProviderBoostTotal (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Capacity::ProviderBoostRewardPools (r:1 w:1) Proof: Capacity::ProviderBoostRewardPools (max_values: None, max_size: Some(113), added: 2588, mode: MaxEncodedLen)

source§

fn unstake() -> Weight

Storage: Capacity::ProviderBoostHistories (r:1 w:1) Proof: Capacity::ProviderBoostHistories (max_values: None, max_size: Some(641), added: 3116, mode: MaxEncodedLen) Storage: Capacity::StakingAccountLedger (r:1 w:1) Proof: Capacity::StakingAccountLedger (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) Storage: Capacity::CurrentEraProviderBoostTotal (r:1 w:1) Proof: Capacity::CurrentEraProviderBoostTotal (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Capacity::UnstakeUnlocks (r:1 w:1) Proof: Capacity::UnstakeUnlocks (max_values: None, max_size: Some(121), added: 2596, mode: MaxEncodedLen) Storage: Capacity::StakingTargetLedger (r:1 w:1) Proof: Capacity::StakingTargetLedger (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: Capacity::CapacityLedger (r:1 w:1) Proof: Capacity::CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn set_epoch_length() -> Weight

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

source§

fn change_staking_target() -> Weight

Storage: Capacity::Retargets (r:1 w:1) Proof: Capacity::Retargets (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::ProviderToRegistryEntry (r:1 w:0) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) Storage: Capacity::StakingAccountLedger (r:1 w:0) Proof: Capacity::StakingAccountLedger (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) Storage: Capacity::StakingTargetLedger (r:2 w:2) Proof: Capacity::StakingTargetLedger (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: Capacity::CapacityLedger (r:2 w:2) Proof: Capacity::CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)

source§

fn provider_boost() -> Weight

Storage: Msa::ProviderToRegistryEntry (r:1 w:0) Proof: Msa::ProviderToRegistryEntry (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen) Storage: Capacity::StakingAccountLedger (r:1 w:1) Proof: Capacity::StakingAccountLedger (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen) Storage: Capacity::UnstakeUnlocks (r:1 w:0) Proof: Capacity::UnstakeUnlocks (max_values: None, max_size: Some(121), added: 2596, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:1) Proof: Balances::Freezes (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:0) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: Capacity::StakingTargetLedger (r:1 w:1) Proof: Capacity::StakingTargetLedger (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen) Storage: Capacity::CapacityLedger (r:1 w:1) Proof: Capacity::CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) Storage: Capacity::ProviderBoostHistories (r:1 w:1) Proof: Capacity::ProviderBoostHistories (max_values: None, max_size: Some(641), added: 3116, mode: MaxEncodedLen) Storage: Capacity::CurrentEraProviderBoostTotal (r:1 w:1) Proof: Capacity::CurrentEraProviderBoostTotal (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)

source§

fn claim_staking_rewards() -> Weight

Storage: Capacity::ProviderBoostHistories (r:1 w:1) Proof: Capacity::ProviderBoostHistories (max_values: None, max_size: Some(641), added: 3116, mode: MaxEncodedLen) Storage: Capacity::ProviderBoostRewardPools (r:6 w:0) Proof: Capacity::ProviderBoostRewardPools (max_values: None, max_size: Some(113), added: 2588, mode: MaxEncodedLen)

Implementors§

source§

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