Trait pallet_asset_conversion::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn create_pool() -> Weight;
fn add_liquidity() -> Weight;
fn remove_liquidity() -> Weight;
fn swap_exact_tokens_for_tokens(n: u32) -> Weight;
fn swap_tokens_for_exact_tokens(n: u32) -> Weight;
fn touch(n: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_asset_conversion
.
Required Methods§
fn create_pool() -> Weight
fn add_liquidity() -> Weight
fn remove_liquidity() -> Weight
fn swap_exact_tokens_for_tokens(n: u32) -> Weight
fn swap_tokens_for_exact_tokens(n: u32) -> Weight
fn touch(n: u32) -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn create_pool() -> Weight
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:1)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, mode: MaxEncodedLen
)
Storage: Assets::Asset
(r:2 w:0)
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::NextAssetId
(r:1 w:0)
Proof: PoolAssets::NextAssetId
(max_values
: Some(1), max_size
: Some(4), added: 499, 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
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: Assets::Asset
(r:2 w:2)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: Assets::Account
(r:4 w:4)
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
)
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
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: Assets::Asset
(r:2 w:2)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: Assets::Account
(r:4 w:4)
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(n: u32) -> Weight
fn swap_exact_tokens_for_tokens(n: u32) -> Weight
Storage: Assets::Asset
(r:4 w:4)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: Assets::Account
(r:8 w:8)
Proof: Assets::Account
(max_values
: None, max_size
: Some(134), added: 2609, mode: MaxEncodedLen
)
The range of component n
is [2, 4]
.
source§fn swap_tokens_for_exact_tokens(n: u32) -> Weight
fn swap_tokens_for_exact_tokens(n: u32) -> Weight
Storage: Assets::Asset
(r:4 w:4)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: Assets::Account
(r:8 w:8)
Proof: Assets::Account
(max_values
: None, max_size
: Some(134), added: 2609, mode: MaxEncodedLen
)
The range of component n
is [2, 4]
.
source§fn touch(n: u32) -> Weight
fn touch(n: u32) -> Weight
Storage: AssetConversion::Pools
(r:1 w:0)
Proof: AssetConversion::Pools
(max_values
: None, max_size
: Some(30), added: 2505, mode: MaxEncodedLen
)
Storage: Assets::Asset
(r:2 w:2)
Proof: Assets::Asset
(max_values
: None, max_size
: Some(210), added: 2685, mode: MaxEncodedLen
)
Storage: System::Account
(r:1 w:0)
Proof: System::Account
(max_values
: None, max_size
: Some(128), added: 2603, 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
)
The range of component n
is [0, 3]
.