Trait annuity::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn on_initialize() -> Weight;
fn withdraw_rewards() -> Weight;
fn update_rewards() -> Weight;
fn set_reward_per_wrapped() -> Weight;
}
Expand description
Weight functions needed for annuity.
Required Methods§
fn on_initialize() -> Weight
fn withdraw_rewards() -> Weight
fn update_rewards() -> Weight
fn set_reward_per_wrapped() -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn on_initialize() -> Weight
fn on_initialize() -> Weight
Storage: EscrowAnnuity RewardPerBlock (r:1 w:0) Proof: EscrowAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: EscrowAnnuity RewardPerWrapped (r:1 w:0) Proof: EscrowAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
source§fn withdraw_rewards() -> Weight
fn withdraw_rewards() -> Weight
Storage: EscrowRewards Stake (r:1 w:0) Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen) Storage: EscrowRewards RewardPerToken (r:1 w:0) Proof: EscrowRewards RewardPerToken (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen) Storage: EscrowRewards RewardTally (r:1 w:1) Proof: EscrowRewards RewardTally (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: EscrowRewards TotalRewards (r:1 w:1) Proof: EscrowRewards TotalRewards (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen) 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)
source§fn update_rewards() -> Weight
fn update_rewards() -> Weight
Storage: Tokens Accounts (r:1 w:0) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: EscrowAnnuity RewardPerBlock (r:0 w:1) Proof: EscrowAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
source§fn set_reward_per_wrapped() -> Weight
fn set_reward_per_wrapped() -> Weight
Storage: EscrowAnnuity RewardPerWrapped (r:0 w:1) Proof: EscrowAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)