Trait farming::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn on_initialize(c: u32) -> Weight;
fn update_reward_schedule() -> Weight;
fn remove_reward_schedule() -> Weight;
fn deposit(c: u32) -> Weight;
fn withdraw(c: u32) -> Weight;
fn claim() -> Weight;
}
Expand description
Weight functions needed for farming.
Required Methods§
fn on_initialize(c: u32) -> Weight
fn update_reward_schedule() -> Weight
fn remove_reward_schedule() -> Weight
fn deposit(c: u32) -> Weight
fn withdraw(c: u32) -> Weight
fn claim() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn on_initialize(c: u32) -> Weight
fn on_initialize(c: u32) -> Weight
Storage: Farming RewardSchedules (r:5 w:0)
Proof: Farming RewardSchedules (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
Storage: FarmingRewards TotalStake (r:2 w:0)
Proof Skipped: FarmingRewards TotalStake (max_values: None, max_size: None, mode: Measured)
The range of component c
is [1, 4]
.
source§fn update_reward_schedule() -> Weight
fn update_reward_schedule() -> Weight
Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Farming RewardSchedules (r:1 w:1) Proof: Farming RewardSchedules (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
source§fn remove_reward_schedule() -> Weight
fn remove_reward_schedule() -> Weight
Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Farming RewardSchedules (r:0 w:1) Proof: Farming RewardSchedules (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
source§fn deposit(c: u32) -> Weight
fn deposit(c: u32) -> Weight
Storage: Tokens Accounts (r:1 w:1)
Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
Storage: FarmingRewards Stake (r:1 w:1)
Proof Skipped: FarmingRewards Stake (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards TotalStake (r:1 w:1)
Proof Skipped: FarmingRewards TotalStake (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardCurrencies (r:1 w:0)
Proof Skipped: FarmingRewards RewardCurrencies (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardTally (r:4 w:4)
Proof Skipped: FarmingRewards RewardTally (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardPerToken (r:4 w:0)
Proof Skipped: FarmingRewards RewardPerToken (max_values: None, max_size: None, mode: Measured)
The range of component c
is [1, 4]
.
source§fn withdraw(c: u32) -> Weight
fn withdraw(c: u32) -> Weight
Storage: Tokens Accounts (r:1 w:1)
Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
Storage: FarmingRewards Stake (r:1 w:1)
Proof Skipped: FarmingRewards Stake (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards TotalStake (r:1 w:1)
Proof Skipped: FarmingRewards TotalStake (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardCurrencies (r:1 w:0)
Proof Skipped: FarmingRewards RewardCurrencies (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardTally (r:4 w:4)
Proof Skipped: FarmingRewards RewardTally (max_values: None, max_size: None, mode: Measured)
Storage: FarmingRewards RewardPerToken (r:4 w:0)
Proof Skipped: FarmingRewards RewardPerToken (max_values: None, max_size: None, mode: Measured)
The range of component c
is [1, 4]
.
source§fn claim() -> Weight
fn claim() -> Weight
Storage: FarmingRewards Stake (r:1 w:0) Proof Skipped: FarmingRewards Stake (max_values: None, max_size: None, mode: Measured) Storage: FarmingRewards RewardPerToken (r:1 w:0) Proof Skipped: FarmingRewards RewardPerToken (max_values: None, max_size: None, mode: Measured) Storage: FarmingRewards RewardTally (r:1 w:1) Proof Skipped: FarmingRewards RewardTally (max_values: None, max_size: None, mode: Measured) Storage: FarmingRewards TotalRewards (r:1 w:1) Proof Skipped: FarmingRewards TotalRewards (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:2 w:2) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:1 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)