pub trait WeightInfo {
Show 15 methods // Required methods fn set_fee_receiver() -> Weight; fn set_fee_point() -> Weight; fn create_pair() -> Weight; fn bootstrap_create(r: u32, l: u32) -> Weight; fn bootstrap_contribute() -> Weight; fn bootstrap_claim() -> Weight; fn bootstrap_end() -> Weight; fn bootstrap_update(r: u32, l: u32) -> Weight; fn bootstrap_refund() -> Weight; fn add_liquidity() -> Weight; fn remove_liquidity() -> Weight; fn swap_exact_assets_for_assets(a: u32) -> Weight; fn swap_assets_for_exact_assets(a: u32) -> Weight; fn bootstrap_charge_reward(r: u32) -> Weight; fn bootstrap_withdraw_reward() -> Weight;
}
Expand description

Weight functions needed for dex_general.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn set_fee_receiver() -> Weight

Storage: DexGeneral FeeMeta (r:1 w:1) Proof Skipped: DexGeneral FeeMeta (max_values: Some(1), max_size: None, mode: Measured)

source§

fn set_fee_point() -> Weight

Storage: DexGeneral FeeMeta (r:1 w:1) Proof Skipped: DexGeneral FeeMeta (max_values: Some(1), max_size: None, mode: Measured)

source§

fn create_pair() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral LiquidityPairs (r:0 w:1) Proof Skipped: DexGeneral LiquidityPairs (max_values: None, max_size: None, mode: Measured)

source§

fn bootstrap_create(_r: u32, _l: u32) -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapLimits (r:0 w:1) Proof Skipped: DexGeneral BootstrapLimits (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapRewards (r:0 w:1) Proof Skipped: DexGeneral BootstrapRewards (max_values: None, max_size: None, mode: Measured) The range of component r is [1, 10]. The range of component l is [1, 10].

source§

fn bootstrap_contribute() -> Weight

Storage: DexGeneral BootstrapLimits (r:1 w:0) Proof Skipped: DexGeneral BootstrapLimits (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:4 w:4) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapPersonalSupply (r:1 w:1) Proof Skipped: DexGeneral BootstrapPersonalSupply (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)

source§

fn bootstrap_claim() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:0) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapPersonalSupply (r:1 w:1) Proof Skipped: DexGeneral BootstrapPersonalSupply (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapEndStatus (r:1 w:0) Proof Skipped: DexGeneral BootstrapEndStatus (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral LiquidityPairs (r:1 w:0) Proof Skipped: DexGeneral LiquidityPairs (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) Storage: DexGeneral BootstrapRewards (r:1 w:0) Proof Skipped: DexGeneral BootstrapRewards (max_values: None, max_size: None, mode: Measured)

source§

fn bootstrap_end() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:5 w:5) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: System Account (r:2 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: DexGeneral LiquidityPairs (r:0 w:1) Proof Skipped: DexGeneral LiquidityPairs (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapEndStatus (r:0 w:1) Proof Skipped: DexGeneral BootstrapEndStatus (max_values: None, max_size: None, mode: Measured)

source§

fn bootstrap_update(r: u32, l: u32) -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapRewards (r:1 w:1) Proof Skipped: DexGeneral BootstrapRewards (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapLimits (r:0 w:1) Proof Skipped: DexGeneral BootstrapLimits (max_values: None, max_size: None, mode: Measured) The range of component r is [1, 10]. The range of component l is [1, 10].

source§

fn bootstrap_refund() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral BootstrapPersonalSupply (r:1 w:1) Proof Skipped: DexGeneral BootstrapPersonalSupply (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:4 w:4) 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 add_liquidity() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:5 w:5) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: DexGeneral LiquidityPairs (r:1 w:0) Proof Skipped: DexGeneral LiquidityPairs (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral KLast (r:1 w:1) Proof Skipped: DexGeneral KLast (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral FeeMeta (r:1 w:0) Proof Skipped: DexGeneral FeeMeta (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn remove_liquidity() -> Weight

Storage: DexGeneral PairStatuses (r:1 w:1) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:5 w:5) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: DexGeneral LiquidityPairs (r:1 w:0) Proof Skipped: DexGeneral LiquidityPairs (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral KLast (r:1 w:1) Proof Skipped: DexGeneral KLast (max_values: None, max_size: None, mode: Measured) Storage: DexGeneral FeeMeta (r:1 w:0) Proof Skipped: DexGeneral FeeMeta (max_values: Some(1), max_size: None, mode: Measured) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, 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 swap_exact_assets_for_assets(a: u32) -> Weight

Storage: Tokens Accounts (r:20 w:20) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: DexGeneral PairStatuses (r:9 w:0) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:9 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component a is [2, 10].

source§

fn swap_assets_for_exact_assets(a: u32) -> Weight

Storage: Tokens Accounts (r:20 w:20) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: DexGeneral PairStatuses (r:9 w:0) Proof Skipped: DexGeneral PairStatuses (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:9 w:0) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component a is [2, 10].

source§

fn bootstrap_charge_reward(r: u32) -> Weight

Storage: DexGeneral BootstrapRewards (r:1 w:1) Proof Skipped: DexGeneral BootstrapRewards (max_values: None, max_size: None, mode: Measured) Storage: Tokens Accounts (r:20 w:20) 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) The range of component r is [1, 10].

source§

fn bootstrap_withdraw_reward() -> Weight

Storage: DexGeneral BootstrapRewards (r:1 w:1) Proof Skipped: DexGeneral BootstrapRewards (max_values: None, max_size: None, mode: Measured)

Implementors§