pub trait WeightInfo {
    // Required methods
    fn register_token() -> Weight;
    fn add_pool() -> Weight;
    fn deposit() -> Weight;
    fn get_rewards() -> Weight;
    fn withdraw() -> Weight;
    fn remove_pool() -> Weight;
    fn change_pool_multiplier() -> Weight;
    fn change_pool_deposit_fee() -> Weight;
    fn change_total_tokens() -> Weight;
    fn change_info() -> Weight;
    fn change_token_info() -> Weight;
}
Expand description

Weight functions needed for demeter_farming_platform.

Required Methods§

source

fn register_token() -> Weight

source

fn add_pool() -> Weight

source

fn deposit() -> Weight

source

fn get_rewards() -> Weight

source

fn withdraw() -> Weight

source

fn remove_pool() -> Weight

source

fn change_pool_multiplier() -> Weight

source

fn change_pool_deposit_fee() -> Weight

source

fn change_total_tokens() -> Weight

source

fn change_info() -> Weight

source

fn change_token_info() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn register_token() -> Weight

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

source§

fn add_pool() -> Weight

Storage: DemeterFarmingPlatform AuthorityAccount (r:1 w:0) Proof Skipped: DemeterFarmingPlatform AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: DemeterFarmingPlatform TokenInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform TokenInfos (max_values: None, max_size: None, mode: Measured) Storage: DemeterFarmingPlatform Pools (r:1 w:1) Proof Skipped: DemeterFarmingPlatform Pools (max_values: None, max_size: None, mode: Measured)

source§

fn deposit() -> Weight

Storage: DemeterFarmingPlatform Pools (r:1 w:1) Proof Skipped: DemeterFarmingPlatform Pools (max_values: None, max_size: None, mode: Measured) Storage: DemeterFarmingPlatform UserInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform UserInfos (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: DemeterFarmingPlatform FeeAccount (r:1 w:0) Proof Skipped: DemeterFarmingPlatform FeeAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: System Account (r:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn get_rewards() -> Weight

Storage: DemeterFarmingPlatform Pools (r:1 w:1) Proof Skipped: DemeterFarmingPlatform Pools (max_values: None, max_size: None, mode: Measured) Storage: DemeterFarmingPlatform UserInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform UserInfos (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)

source§

fn withdraw() -> Weight

Storage: DemeterFarmingPlatform UserInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform UserInfos (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: DemeterFarmingPlatform Pools (r:1 w:1) Proof Skipped: DemeterFarmingPlatform Pools (max_values: None, max_size: None, mode: Measured)

source§

fn remove_pool() -> Weight

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

source§

fn change_pool_multiplier() -> Weight

Storage: DemeterFarmingPlatform AuthorityAccount (r:1 w:0) Proof Skipped: DemeterFarmingPlatform AuthorityAccount (max_values: Some(1), max_size: None, mode: Measured) Storage: DemeterFarmingPlatform Pools (r:1 w:1) Proof Skipped: DemeterFarmingPlatform Pools (max_values: None, max_size: None, mode: Measured) Storage: DemeterFarmingPlatform TokenInfos (r:1 w:1) Proof Skipped: DemeterFarmingPlatform TokenInfos (max_values: None, max_size: None, mode: Measured)

source§

fn change_pool_deposit_fee() -> Weight

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

source§

fn change_total_tokens() -> Weight

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

source§

fn change_info() -> Weight

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

source§

fn change_token_info() -> Weight

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

Implementors§

source§

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