pub trait WeightInfo {
    // Required methods
    fn create_pool() -> Weight;
    fn add_liquidity() -> Weight;
    fn remove_liquidity() -> Weight;
    fn swap_exact_tokens_for_tokens() -> Weight;
    fn swap_tokens_for_exact_tokens() -> Weight;
}
Expand description

Weight functions needed for pallet_asset_conversion.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn create_pool() -> Weight

Storage: AssetConversion::Pools (r:1 w:1) Proof: AssetConversion::Pools (max_values: None, max_size: Some(30), added: 2505, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Assets::Account (r:1 w:1) Proof: Assets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) Storage: Assets::Asset (r:1 w:1) Proof: Assets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: AssetConversion::NextPoolAssetId (r:1 w:1) Proof: AssetConversion::NextPoolAssetId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: PoolAssets::Asset (r:1 w:1) Proof: PoolAssets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: PoolAssets::Account (r:1 w:1) Proof: PoolAssets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)

source§

fn add_liquidity() -> Weight

Storage: AssetConversion::Pools (r:1 w:0) Proof: AssetConversion::Pools (max_values: None, max_size: Some(30), added: 2505, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Assets::Asset (r:1 w:1) Proof: Assets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: Assets::Account (r:2 w:2) Proof: Assets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) Storage: PoolAssets::Asset (r:1 w:1) Proof: PoolAssets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: PoolAssets::Account (r:2 w:2) Proof: PoolAssets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)

source§

fn remove_liquidity() -> Weight

Storage: AssetConversion::Pools (r:1 w:0) Proof: AssetConversion::Pools (max_values: None, max_size: Some(30), added: 2505, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Assets::Asset (r:1 w:1) Proof: Assets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: Assets::Account (r:2 w:2) Proof: Assets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) Storage: PoolAssets::Asset (r:1 w:1) Proof: PoolAssets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: PoolAssets::Account (r:1 w:1) Proof: PoolAssets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)

source§

fn swap_exact_tokens_for_tokens() -> Weight

Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Assets::Asset (r:3 w:3) Proof: Assets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: Assets::Account (r:6 w:6) Proof: Assets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)

source§

fn swap_tokens_for_exact_tokens() -> Weight

Storage: Assets::Asset (r:3 w:3) Proof: Assets::Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen) Storage: Assets::Account (r:6 w:6) Proof: Assets::Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

Implementors§