Trait pallet_ocif_staking::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn register_core(n: u32, d: u32, i: u32) -> Weight;
    fn change_core_metadata(n: u32, d: u32, i: u32) -> Weight;
    fn unregister_core() -> Weight;
    fn stake() -> Weight;
    fn unstake() -> Weight;
    fn withdraw_unstaked() -> Weight;
    fn staker_claim_rewards() -> Weight;
    fn core_claim_rewards() -> Weight;
    fn halt_unhalt_pallet() -> Weight;
    fn move_stake() -> Weight;
}
Expand description

Weight functions needed for pallet_ocif_staking.

Required Methods§

source

fn register_core(n: u32, d: u32, i: u32) -> Weight

source

fn change_core_metadata(n: u32, d: u32, i: u32) -> Weight

source

fn unregister_core() -> Weight

source

fn stake() -> Weight

source

fn unstake() -> Weight

source

fn withdraw_unstaked() -> Weight

source

fn staker_claim_rewards() -> Weight

source

fn core_claim_rewards() -> Weight

source

fn halt_unhalt_pallet() -> Weight

source

fn move_stake() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn register_core(_n: u32, _d: u32, _i: u32) -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: ParachainInfo::ParachainId (r:1 w:0) Proof: ParachainInfo::ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:1) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component n is [0, 20]. The range of component d is [0, 300]. The range of component i is [0, 100].

source§

fn change_core_metadata(n: u32, d: u32, i: u32) -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:1) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) The range of component n is [0, 20]. The range of component d is [0, 300]. The range of component i is [0, 100].

source§

fn unregister_core() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: ParachainInfo::ParachainId (r:1 w:0) Proof: ParachainInfo::ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:1) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::GeneralStakerInfo (r:1 w:0) Proof: OcifStaking::GeneralStakerInfo (max_values: None, max_size: Some(269), added: 2744, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:1 w:1) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:1) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: MessageQueue::BookStateFor (r:1 w:1) Proof: MessageQueue::BookStateFor (max_values: None, max_size: Some(55), added: 2530, mode: MaxEncodedLen) Storage: MessageQueue::ServiceHead (r:1 w:1) Proof: MessageQueue::ServiceHead (max_values: Some(1), max_size: Some(6), added: 501, mode: MaxEncodedLen) Storage: OcifStaking::UnregisteredCoreStakeInfo (r:0 w:1) Proof: OcifStaking::UnregisteredCoreStakeInfo (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen) Storage: OcifStaking::UnregisteredCoreStakers (r:0 w:1) Proof: OcifStaking::UnregisteredCoreStakers (max_values: None, max_size: Some(320022), added: 322497, mode: MaxEncodedLen) Storage: MessageQueue::Pages (r:0 w:1) Proof: MessageQueue::Pages (max_values: None, max_size: Some(134194), added: 136669, mode: MaxEncodedLen)

source§

fn stake() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:0) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) Storage: OcifStaking::Ledger (r:1 w:1) Proof: OcifStaking::Ledger (max_values: None, max_size: Some(265), added: 2740, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:1 w:1) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: OcifStaking::GeneralStakerInfo (r:1 w:1) Proof: OcifStaking::GeneralStakerInfo (max_values: None, max_size: Some(269), added: 2744, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:1) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:1) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:0) Proof: Balances::Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)

source§

fn unstake() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:0) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::GeneralStakerInfo (r:1 w:1) Proof: OcifStaking::GeneralStakerInfo (max_values: None, max_size: Some(269), added: 2744, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:1 w:1) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: OcifStaking::Ledger (r:1 w:1) Proof: OcifStaking::Ledger (max_values: None, max_size: Some(265), added: 2740, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:1) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:0) Proof: Balances::Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:1) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)

source§

fn withdraw_unstaked() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::Ledger (r:1 w:1) Proof: OcifStaking::Ledger (max_values: None, max_size: Some(265), added: 2740, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Balances::Locks (r:1 w:1) Proof: Balances::Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) Storage: Balances::Freezes (r:1 w:0) Proof: Balances::Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:1) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)

source§

fn staker_claim_rewards() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::GeneralStakerInfo (r:1 w:1) Proof: OcifStaking::GeneralStakerInfo (max_values: None, max_size: Some(269), added: 2744, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:1 w:0) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:0) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)

source§

fn core_claim_rewards() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: ParachainInfo::ParachainId (r:1 w:0) Proof: ParachainInfo::ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:1 w:1) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: OcifStaking::GeneralEraInfo (r:1 w:0) Proof: OcifStaking::GeneralEraInfo (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)

source§

fn halt_unhalt_pallet() -> Weight

Storage: OcifStaking::Halted (r:1 w:1) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)

source§

fn move_stake() -> Weight

Storage: OcifStaking::Halted (r:1 w:0) Proof: OcifStaking::Halted (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: OcifStaking::RegisteredCore (r:1 w:0) Proof: OcifStaking::RegisteredCore (max_values: None, max_size: Some(477), added: 2952, mode: MaxEncodedLen) Storage: OcifStaking::CurrentEra (r:1 w:0) Proof: OcifStaking::CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: OcifStaking::GeneralStakerInfo (r:2 w:2) Proof: OcifStaking::GeneralStakerInfo (max_values: None, max_size: Some(269), added: 2744, mode: MaxEncodedLen) Storage: OcifStaking::CoreEraStake (r:2 w:2) Proof: OcifStaking::CoreEraStake (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)

Implementors§

source§

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