git.delta.rocks / unique-network / refs/commits / 430b0201ea83

difftreelog

source

pallets/foreign-assets/src/weights.rs4.9 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 29.0.06//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-foreign-assets17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/foreign-assets/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_foreign_assets.35pub trait WeightInfo {36	fn force_register_foreign_asset() -> Weight;37}3839/// Weights for pallet_foreign_assets using the Substrate node and recommended hardware.40pub struct SubstrateWeight<T>(PhantomData<T>);41impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {42	/// Storage: `ForeignAssets::ForeignAssetToCollection` (r:1 w:1)43	/// Proof: `ForeignAssets::ForeignAssetToCollection` (`max_values`: None, `max_size`: Some(615), added: 3090, mode: `MaxEncodedLen`)44	/// Storage: `Common::CreatedCollectionCount` (r:1 w:1)45	/// Proof: `Common::CreatedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)46	/// Storage: `Common::DestroyedCollectionCount` (r:1 w:0)47	/// Proof: `Common::DestroyedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)48	/// Storage: `ForeignAssets::CollectionToForeignAsset` (r:0 w:1)49	/// Proof: `ForeignAssets::CollectionToForeignAsset` (`max_values`: None, `max_size`: Some(615), added: 3090, mode: `MaxEncodedLen`)50	/// Storage: `Common::AdminAmount` (r:0 w:1)51	/// Proof: `Common::AdminAmount` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)52	/// Storage: `Common::CollectionPropertyPermissions` (r:0 w:1)53	/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)54	/// Storage: `Common::CollectionProperties` (r:0 w:1)55	/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)56	/// Storage: `Common::CollectionById` (r:0 w:1)57	/// Proof: `Common::CollectionById` (`max_values`: None, `max_size`: Some(860), added: 3335, mode: `MaxEncodedLen`)58	fn force_register_foreign_asset() -> Weight {59		// Proof Size summary in bytes:60		//  Measured:  `146`61		//  Estimated: `4080`62		// Minimum execution time: 26_678_000 picoseconds.63		Weight::from_parts(27_177_000, 4080)64			.saturating_add(T::DbWeight::get().reads(3_u64))65			.saturating_add(T::DbWeight::get().writes(7_u64))66	}67}6869// For backwards compatibility and tests70impl WeightInfo for () {71	/// Storage: `ForeignAssets::ForeignAssetToCollection` (r:1 w:1)72	/// Proof: `ForeignAssets::ForeignAssetToCollection` (`max_values`: None, `max_size`: Some(615), added: 3090, mode: `MaxEncodedLen`)73	/// Storage: `Common::CreatedCollectionCount` (r:1 w:1)74	/// Proof: `Common::CreatedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)75	/// Storage: `Common::DestroyedCollectionCount` (r:1 w:0)76	/// Proof: `Common::DestroyedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)77	/// Storage: `ForeignAssets::CollectionToForeignAsset` (r:0 w:1)78	/// Proof: `ForeignAssets::CollectionToForeignAsset` (`max_values`: None, `max_size`: Some(615), added: 3090, mode: `MaxEncodedLen`)79	/// Storage: `Common::AdminAmount` (r:0 w:1)80	/// Proof: `Common::AdminAmount` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)81	/// Storage: `Common::CollectionPropertyPermissions` (r:0 w:1)82	/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)83	/// Storage: `Common::CollectionProperties` (r:0 w:1)84	/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)85	/// Storage: `Common::CollectionById` (r:0 w:1)86	/// Proof: `Common::CollectionById` (`max_values`: None, `max_size`: Some(860), added: 3335, mode: `MaxEncodedLen`)87	fn force_register_foreign_asset() -> Weight {88		// Proof Size summary in bytes:89		//  Measured:  `146`90		//  Estimated: `4080`91		// Minimum execution time: 26_678_000 picoseconds.92		Weight::from_parts(27_177_000, 4080)93			.saturating_add(RocksDbWeight::get().reads(3_u64))94			.saturating_add(RocksDbWeight::get().writes(7_u64))95	}96}97