Trait pallet_asset_manager::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn register_foreign_asset() -> Weight;
fn change_existing_asset_type() -> Weight;
fn remove_existing_asset_type() -> Weight;
}
Expand description
Weight functions needed for pallet_asset_manager.
Required Methods§
fn register_foreign_asset() -> Weight
fn change_existing_asset_type() -> Weight
fn remove_existing_asset_type() -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn register_foreign_asset() -> Weight
fn register_foreign_asset() -> Weight
Storage: AssetManager AssetIdType (r:1 w:1) Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured) Storage: Assets Asset (r:1 w:1) Proof: Assets Asset (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) Storage: Assets Metadata (r:1 w:1) Proof: Assets Metadata (max_values: None, max_size: Some(152), added: 2627, mode: MaxEncodedLen) Storage: AssetManager AssetTypeId (r:0 w:1) Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
source§fn change_existing_asset_type() -> Weight
fn change_existing_asset_type() -> Weight
Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
Storage: AssetManager AssetIdType (r:1 w:1)
Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
Storage: AssetManager AssetTypeUnitsPerSecond (r:1 w:2)
Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
Storage: AssetManager AssetTypeId (r:0 w:2)
Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
The range of component x
is [5, 100]
.
source§fn remove_existing_asset_type() -> Weight
fn remove_existing_asset_type() -> Weight
Storage: AssetManager SupportedFeePaymentAssets (r:1 w:1)
Proof Skipped: AssetManager SupportedFeePaymentAssets (max_values: Some(1), max_size: None, mode: Measured)
Storage: AssetManager AssetIdType (r:1 w:1)
Proof Skipped: AssetManager AssetIdType (max_values: None, max_size: None, mode: Measured)
Storage: AssetManager AssetTypeUnitsPerSecond (r:0 w:1)
Proof Skipped: AssetManager AssetTypeUnitsPerSecond (max_values: None, max_size: None, mode: Measured)
Storage: AssetManager AssetTypeId (r:0 w:1)
Proof Skipped: AssetManager AssetTypeId (max_values: None, max_size: None, mode: Measured)
The range of component x
is [5, 100]
.