pub trait WeightInfo {
    // Required methods
    fn claim_rewards() -> Weight;
    fn update_rewards(n: u32) -> Weight;
    fn register_crowdloan(m: u32) -> Weight;
    fn claim_crowdloan_rewards() -> Weight;
}
Expand description

Weight functions needed for vested_rewards.

Required Methods§

source

fn claim_rewards() -> Weight

source

fn update_rewards(n: u32) -> Weight

source

fn register_crowdloan(m: u32) -> Weight

source

fn claim_crowdloan_rewards() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn claim_rewards() -> Weight

Storage: VestedRewards Rewards (r:1 w:1) Proof Skipped: VestedRewards Rewards (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:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: VestedRewards TotalRewards (r:1 w:1) Proof Skipped: VestedRewards TotalRewards (max_values: Some(1), max_size: None, mode: Measured)

source§

fn update_rewards(n: u32) -> Weight

Storage: VestedRewards Rewards (r:100 w:100) Proof Skipped: VestedRewards Rewards (max_values: None, max_size: None, mode: Measured) Storage: VestedRewards TotalRewards (r:1 w:1) Proof Skipped: VestedRewards TotalRewards (max_values: Some(1), max_size: None, mode: Measured) The range of component n is [0, 100].

source§

fn register_crowdloan(m: u32) -> Weight

Storage: VestedRewards CrowdloanInfos (r:1 w:1) Proof Skipped: VestedRewards CrowdloanInfos (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Technical TechAccounts (r:1 w:1) Proof Skipped: Technical TechAccounts (max_values: None, max_size: None, mode: Measured) Storage: VestedRewards CrowdloanUserInfos (r:0 w:999) Proof Skipped: VestedRewards CrowdloanUserInfos (max_values: None, max_size: None, mode: Measured) The range of component m is [1, 1000].

source§

fn claim_crowdloan_rewards() -> Weight

Storage: VestedRewards CrowdloanInfos (r:1 w:0) Proof Skipped: VestedRewards CrowdloanInfos (max_values: None, max_size: None, mode: Measured) Storage: VestedRewards CrowdloanUserInfos (r:1 w:1) Proof Skipped: VestedRewards CrowdloanUserInfos (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:10 w:10) 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)

Implementors§

source§

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