pub trait WeightInfo {
    // Required methods
    fn deposit() -> Weight;
    fn withdraw() -> Weight;
    fn change_rewards_remaining() -> Weight;
}
Expand description

Weight functions needed for ceres_staking.

Required Methods§

source

fn deposit() -> Weight

source

fn withdraw() -> Weight

source

fn change_rewards_remaining() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn deposit() -> Weight

Storage: CeresStaking TotalDeposited (r:1 w:1) Proof Skipped: CeresStaking TotalDeposited (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: System Account (r:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: CeresStaking Stakers (r:1 w:1) Proof Skipped: CeresStaking Stakers (max_values: None, max_size: None, mode: Measured)

source§

fn withdraw() -> Weight

Storage: CeresStaking Stakers (r:1 w:1) Proof Skipped: CeresStaking Stakers (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: CeresStaking TotalDeposited (r:1 w:1) Proof Skipped: CeresStaking TotalDeposited (max_values: Some(1), max_size: None, mode: Measured)

source§

fn change_rewards_remaining() -> Weight

Storage: CeresStaking AuthorityAccount (r:1 w:0) Proof Skipped: CeresStaking AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: CeresStaking RewardsRemaining (r:0 w:1) Proof Skipped: CeresStaking RewardsRemaining (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

source§

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