pub trait WeightInfo {
    // Required methods
    fn on_initialize(x: u32, y: u32, z: u32) -> Weight;
    fn stake() -> Weight;
    fn unstake() -> Weight;
    fn claim_reward() -> Weight;
    fn set_distributed_reward() -> Weight;
    fn set_epoch_duration() -> Weight;
    fn set_group_weight() -> Weight;
    fn set_currency_group() -> Weight;
}

Required Methods§

source

fn on_initialize(x: u32, y: u32, z: u32) -> Weight

source

fn stake() -> Weight

source

fn unstake() -> Weight

source

fn claim_reward() -> Weight

source

fn set_distributed_reward() -> Weight

source

fn set_epoch_duration() -> Weight

source

fn set_group_weight() -> Weight

source

fn set_currency_group() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn on_initialize(_x: u32, _y: u32, z: u32) -> Weight

Storage: Timestamp Now (r:1 w:0) Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) Storage: LiquidityRewards EndOfEpoch (r:1 w:0) Proof: LiquidityRewards EndOfEpoch (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) The range of component x is [0, 20]. The range of component y is [0, 50]. The range of component z is [0, 50].

source§

fn stake() -> Weight

Storage: LiquidityRewardsBase Currency (r:1 w:1) Proof: LiquidityRewardsBase Currency (max_values: None, max_size: Some(863), added: 3338, mode: MaxEncodedLen) Storage: LiquidityRewardsBase Group (r:1 w:1) Proof: LiquidityRewardsBase Group (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: LiquidityRewardsBase StakeAccount (r:1 w:1) Proof: LiquidityRewardsBase StakeAccount (max_values: None, max_size: Some(143), added: 2618, mode: MaxEncodedLen) Storage: OrmlTokens Accounts (r:1 w:0) Proof: OrmlTokens Accounts (max_values: None, max_size: Some(129), added: 2604, mode: MaxEncodedLen)

source§

fn unstake() -> Weight

Storage: LiquidityRewardsBase Currency (r:1 w:1) Proof: LiquidityRewardsBase Currency (max_values: None, max_size: Some(863), added: 3338, mode: MaxEncodedLen) Storage: LiquidityRewardsBase Group (r:1 w:1) Proof: LiquidityRewardsBase Group (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: LiquidityRewardsBase StakeAccount (r:1 w:1) Proof: LiquidityRewardsBase StakeAccount (max_values: None, max_size: Some(143), added: 2618, mode: MaxEncodedLen)

source§

fn claim_reward() -> Weight

Storage: LiquidityRewardsBase Currency (r:1 w:0) Proof: LiquidityRewardsBase Currency (max_values: None, max_size: Some(863), added: 3338, mode: MaxEncodedLen) Storage: LiquidityRewardsBase Group (r:1 w:0) Proof: LiquidityRewardsBase Group (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen) Storage: LiquidityRewardsBase StakeAccount (r:1 w:1) Proof: LiquidityRewardsBase StakeAccount (max_values: None, max_size: Some(143), added: 2618, mode: MaxEncodedLen)

source§

fn set_distributed_reward() -> Weight

Storage: LiquidityRewards NextEpochChanges (r:1 w:1) Proof: LiquidityRewards NextEpochChanges (max_values: Some(1), max_size: Some(2078), added: 2573, mode: MaxEncodedLen)

source§

fn set_epoch_duration() -> Weight

Storage: LiquidityRewards NextEpochChanges (r:1 w:1) Proof: LiquidityRewards NextEpochChanges (max_values: Some(1), max_size: Some(2078), added: 2573, mode: MaxEncodedLen)

source§

fn set_group_weight() -> Weight

Storage: LiquidityRewards NextEpochChanges (r:1 w:1) Proof: LiquidityRewards NextEpochChanges (max_values: Some(1), max_size: Some(2078), added: 2573, mode: MaxEncodedLen)

source§

fn set_currency_group() -> Weight

Storage: LiquidityRewards NextEpochChanges (r:1 w:1) Proof: LiquidityRewards NextEpochChanges (max_values: Some(1), max_size: Some(2078), added: 2573, mode: MaxEncodedLen)

Implementors§

source§

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