git.delta.rocks / unique-network / refs/commits / c8529d87c366

difftreelog

source

pallets/foreign-assets/src/weights.rs3.5 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_foreign_assets4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-01-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-foreign-assets15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/foreign-assets/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_foreign_assets.36pub trait WeightInfo {37	fn register_foreign_asset() -> Weight;38	fn update_foreign_asset() -> Weight;39}4041/// Weights for pallet_foreign_assets using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44	// Storage: Common CreatedCollectionCount (r:1 w:1)45	// Storage: Common DestroyedCollectionCount (r:1 w:0)46	// Storage: System Account (r:2 w:2)47	// Storage: ForeignAssets NextForeignAssetId (r:1 w:1)48	// Storage: ForeignAssets LocationToCurrencyIds (r:1 w:1)49	// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)50	// Storage: ForeignAssets AssetMetadatas (r:1 w:1)51	// Storage: ForeignAssets AssetBinding (r:1 w:1)52	// Storage: Common CollectionPropertyPermissions (r:0 w:1)53	// Storage: Common CollectionProperties (r:0 w:1)54	// Storage: Common CollectionById (r:0 w:1)55	fn register_foreign_asset() -> Weight {56		Weight::from_ref_time(50_058_000 as u64)57			.saturating_add(T::DbWeight::get().reads(9 as u64))58			.saturating_add(T::DbWeight::get().writes(11 as u64))59	}60	// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)61	// Storage: ForeignAssets AssetMetadatas (r:1 w:1)62	fn update_foreign_asset() -> Weight {63		Weight::from_ref_time(22_669_000 as u64)64			.saturating_add(T::DbWeight::get().reads(2 as u64))65			.saturating_add(T::DbWeight::get().writes(2 as u64))66	}67}6869// For backwards compatibility and tests70impl WeightInfo for () {71	// Storage: Common CreatedCollectionCount (r:1 w:1)72	// Storage: Common DestroyedCollectionCount (r:1 w:0)73	// Storage: System Account (r:2 w:2)74	// Storage: ForeignAssets NextForeignAssetId (r:1 w:1)75	// Storage: ForeignAssets LocationToCurrencyIds (r:1 w:1)76	// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)77	// Storage: ForeignAssets AssetMetadatas (r:1 w:1)78	// Storage: ForeignAssets AssetBinding (r:1 w:1)79	// Storage: Common CollectionPropertyPermissions (r:0 w:1)80	// Storage: Common CollectionProperties (r:0 w:1)81	// Storage: Common CollectionById (r:0 w:1)82	fn register_foreign_asset() -> Weight {83		Weight::from_ref_time(50_058_000 as u64)84			.saturating_add(RocksDbWeight::get().reads(9 as u64))85			.saturating_add(RocksDbWeight::get().writes(11 as u64))86	}87	// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)88	// Storage: ForeignAssets AssetMetadatas (r:1 w:1)89	fn update_foreign_asset() -> Weight {90		Weight::from_ref_time(22_669_000 as u64)91			.saturating_add(RocksDbWeight::get().reads(2 as u64))92			.saturating_add(RocksDbWeight::get().writes(2 as u64))93	}94}