Trait demeter_farming_platform::weights::WeightInfo
source · 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§
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
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn register_token() -> Weight
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
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
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
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
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
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
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
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
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
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
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)