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§
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
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 ()
impl WeightInfo for ()
Source§fn stake() -> Weight
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
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
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
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
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
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
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
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
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
)