Trait pallet_capacity::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn stake() -> Weight;
fn withdraw_unstaked() -> Weight;
fn on_initialize() -> Weight;
fn unstake() -> Weight;
fn set_epoch_length() -> Weight;
}
Expand description
Weight functions needed for pallet_capacity
.
Required Methods§
fn stake() -> Weight
fn withdraw_unstaked() -> Weight
fn on_initialize() -> Weight
fn unstake() -> Weight
fn set_epoch_length() -> Weight
Object Safety§
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 on_initialize() -> Weight
fn on_initialize() -> 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 unstake() -> Weight
fn unstake() -> Weight
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: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
)