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

difftreelog

source

pallets/unique/src/weights.rs19.2 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_unique4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-unique16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/unique/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_unique.36pub trait WeightInfo {37	fn create_collection() -> Weight;38	fn destroy_collection() -> Weight;39	fn add_to_allow_list() -> Weight;40	fn remove_from_allow_list() -> Weight;41	fn change_collection_owner() -> Weight;42	fn add_collection_admin() -> Weight;43	fn remove_collection_admin() -> Weight;44	fn set_collection_sponsor() -> Weight;45	fn confirm_sponsorship() -> Weight;46	fn remove_collection_sponsor() -> Weight;47	fn set_transfers_enabled_flag() -> Weight;48	fn set_collection_limits() -> Weight;49	fn force_repair_collection() -> Weight;50}5152/// Weights for pallet_unique using the Substrate node and recommended hardware.53pub struct SubstrateWeight<T>(PhantomData<T>);54impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {55	/// Storage: Common CreatedCollectionCount (r:1 w:1)56	/// Proof: Common CreatedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)57	/// Storage: Common DestroyedCollectionCount (r:1 w:0)58	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)59	/// Storage: System Account (r:2 w:2)60	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)61	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)62	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)63	/// Storage: Common CollectionProperties (r:0 w:1)64	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)65	/// Storage: Common CollectionById (r:0 w:1)66	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)67	fn create_collection() -> Weight {68		// Proof Size summary in bytes:69		//  Measured:  `277`70		//  Estimated: `6204`71		// Minimum execution time: 37_430_000 picoseconds.72		Weight::from_parts(42_154_000, 6204)73			.saturating_add(T::DbWeight::get().reads(4_u64))74			.saturating_add(T::DbWeight::get().writes(6_u64))75	}76	/// Storage: Common CollectionById (r:1 w:1)77	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)78	/// Storage: Nonfungible TokenData (r:1 w:0)79	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)80	/// Storage: Common DestroyedCollectionCount (r:1 w:1)81	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)82	/// Storage: Nonfungible TokensMinted (r:0 w:1)83	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)84	/// Storage: Nonfungible TokensBurnt (r:0 w:1)85	/// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)86	/// Storage: Common AdminAmount (r:0 w:1)87	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)88	/// Storage: Common CollectionProperties (r:0 w:1)89	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)90	fn destroy_collection() -> Weight {91		// Proof Size summary in bytes:92		//  Measured:  `1118`93		//  Estimated: `6366`94		// Minimum execution time: 51_399_000 picoseconds.95		Weight::from_parts(52_256_000, 6366)96			.saturating_add(T::DbWeight::get().reads(3_u64))97			.saturating_add(T::DbWeight::get().writes(6_u64))98	}99	/// Storage: Common CollectionById (r:1 w:0)100	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)101	/// Storage: Common Allowlist (r:0 w:1)102	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)103	fn add_to_allow_list() -> Weight {104		// Proof Size summary in bytes:105		//  Measured:  `999`106		//  Estimated: `3335`107		// Minimum execution time: 16_355_000 picoseconds.108		Weight::from_parts(16_737_000, 3335)109			.saturating_add(T::DbWeight::get().reads(1_u64))110			.saturating_add(T::DbWeight::get().writes(1_u64))111	}112	/// Storage: Common CollectionById (r:1 w:0)113	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)114	/// Storage: Common Allowlist (r:0 w:1)115	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)116	fn remove_from_allow_list() -> Weight {117		// Proof Size summary in bytes:118		//  Measured:  `1032`119		//  Estimated: `3335`120		// Minimum execution time: 15_812_000 picoseconds.121		Weight::from_parts(16_102_000, 3335)122			.saturating_add(T::DbWeight::get().reads(1_u64))123			.saturating_add(T::DbWeight::get().writes(1_u64))124	}125	/// Storage: Common CollectionById (r:1 w:1)126	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)127	fn change_collection_owner() -> Weight {128		// Proof Size summary in bytes:129		//  Measured:  `999`130		//  Estimated: `3335`131		// Minimum execution time: 15_072_000 picoseconds.132		Weight::from_parts(15_540_000, 3335)133			.saturating_add(T::DbWeight::get().reads(1_u64))134			.saturating_add(T::DbWeight::get().writes(1_u64))135	}136	/// Storage: Common CollectionById (r:1 w:0)137	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)138	/// Storage: Common IsAdmin (r:1 w:1)139	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)140	/// Storage: Common AdminAmount (r:1 w:1)141	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)142	fn add_collection_admin() -> Weight {143		// Proof Size summary in bytes:144		//  Measured:  `999`145		//  Estimated: `8379`146		// Minimum execution time: 18_268_000 picoseconds.147		Weight::from_parts(18_931_000, 8379)148			.saturating_add(T::DbWeight::get().reads(3_u64))149			.saturating_add(T::DbWeight::get().writes(2_u64))150	}151	/// Storage: Common CollectionById (r:1 w:0)152	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)153	/// Storage: Common IsAdmin (r:1 w:1)154	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)155	/// Storage: Common AdminAmount (r:1 w:1)156	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)157	fn remove_collection_admin() -> Weight {158		// Proof Size summary in bytes:159		//  Measured:  `1139`160		//  Estimated: `8379`161		// Minimum execution time: 21_786_000 picoseconds.162		Weight::from_parts(22_088_000, 8379)163			.saturating_add(T::DbWeight::get().reads(3_u64))164			.saturating_add(T::DbWeight::get().writes(2_u64))165	}166	/// Storage: Common CollectionById (r:1 w:1)167	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)168	fn set_collection_sponsor() -> Weight {169		// Proof Size summary in bytes:170		//  Measured:  `999`171		//  Estimated: `3335`172		// Minimum execution time: 15_245_000 picoseconds.173		Weight::from_parts(15_574_000, 3335)174			.saturating_add(T::DbWeight::get().reads(1_u64))175			.saturating_add(T::DbWeight::get().writes(1_u64))176	}177	/// Storage: Common CollectionById (r:1 w:1)178	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)179	fn confirm_sponsorship() -> Weight {180		// Proof Size summary in bytes:181		//  Measured:  `1031`182		//  Estimated: `3335`183		// Minimum execution time: 15_073_000 picoseconds.184		Weight::from_parts(15_407_000, 3335)185			.saturating_add(T::DbWeight::get().reads(1_u64))186			.saturating_add(T::DbWeight::get().writes(1_u64))187	}188	/// Storage: Common CollectionById (r:1 w:1)189	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)190	fn remove_collection_sponsor() -> Weight {191		// Proof Size summary in bytes:192		//  Measured:  `1031`193		//  Estimated: `3335`194		// Minimum execution time: 14_938_000 picoseconds.195		Weight::from_parts(15_262_000, 3335)196			.saturating_add(T::DbWeight::get().reads(1_u64))197			.saturating_add(T::DbWeight::get().writes(1_u64))198	}199	/// Storage: Common CollectionById (r:1 w:1)200	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)201	fn set_transfers_enabled_flag() -> Weight {202		// Proof Size summary in bytes:203		//  Measured:  `999`204		//  Estimated: `3335`205		// Minimum execution time: 10_318_000 picoseconds.206		Weight::from_parts(10_652_000, 3335)207			.saturating_add(T::DbWeight::get().reads(1_u64))208			.saturating_add(T::DbWeight::get().writes(1_u64))209	}210	/// Storage: Common CollectionById (r:1 w:1)211	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)212	fn set_collection_limits() -> Weight {213		// Proof Size summary in bytes:214		//  Measured:  `999`215		//  Estimated: `3335`216		// Minimum execution time: 15_535_000 picoseconds.217		Weight::from_parts(15_937_000, 3335)218			.saturating_add(T::DbWeight::get().reads(1_u64))219			.saturating_add(T::DbWeight::get().writes(1_u64))220	}221	/// Storage: Common CollectionProperties (r:1 w:1)222	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)223	fn force_repair_collection() -> Weight {224		// Proof Size summary in bytes:225		//  Measured:  `265`226		//  Estimated: `43467`227		// Minimum execution time: 8_178_000 picoseconds.228		Weight::from_parts(8_390_000, 43467)229			.saturating_add(T::DbWeight::get().reads(1_u64))230			.saturating_add(T::DbWeight::get().writes(1_u64))231	}232}233234// For backwards compatibility and tests235impl WeightInfo for () {236	/// Storage: Common CreatedCollectionCount (r:1 w:1)237	/// Proof: Common CreatedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)238	/// Storage: Common DestroyedCollectionCount (r:1 w:0)239	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)240	/// Storage: System Account (r:2 w:2)241	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)242	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)243	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)244	/// Storage: Common CollectionProperties (r:0 w:1)245	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)246	/// Storage: Common CollectionById (r:0 w:1)247	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)248	fn create_collection() -> Weight {249		// Proof Size summary in bytes:250		//  Measured:  `277`251		//  Estimated: `6204`252		// Minimum execution time: 37_430_000 picoseconds.253		Weight::from_parts(42_154_000, 6204)254			.saturating_add(RocksDbWeight::get().reads(4_u64))255			.saturating_add(RocksDbWeight::get().writes(6_u64))256	}257	/// Storage: Common CollectionById (r:1 w:1)258	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)259	/// Storage: Nonfungible TokenData (r:1 w:0)260	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)261	/// Storage: Common DestroyedCollectionCount (r:1 w:1)262	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)263	/// Storage: Nonfungible TokensMinted (r:0 w:1)264	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)265	/// Storage: Nonfungible TokensBurnt (r:0 w:1)266	/// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)267	/// Storage: Common AdminAmount (r:0 w:1)268	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)269	/// Storage: Common CollectionProperties (r:0 w:1)270	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)271	fn destroy_collection() -> Weight {272		// Proof Size summary in bytes:273		//  Measured:  `1118`274		//  Estimated: `6366`275		// Minimum execution time: 51_399_000 picoseconds.276		Weight::from_parts(52_256_000, 6366)277			.saturating_add(RocksDbWeight::get().reads(3_u64))278			.saturating_add(RocksDbWeight::get().writes(6_u64))279	}280	/// Storage: Common CollectionById (r:1 w:0)281	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)282	/// Storage: Common Allowlist (r:0 w:1)283	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)284	fn add_to_allow_list() -> Weight {285		// Proof Size summary in bytes:286		//  Measured:  `999`287		//  Estimated: `3335`288		// Minimum execution time: 16_355_000 picoseconds.289		Weight::from_parts(16_737_000, 3335)290			.saturating_add(RocksDbWeight::get().reads(1_u64))291			.saturating_add(RocksDbWeight::get().writes(1_u64))292	}293	/// Storage: Common CollectionById (r:1 w:0)294	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)295	/// Storage: Common Allowlist (r:0 w:1)296	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)297	fn remove_from_allow_list() -> Weight {298		// Proof Size summary in bytes:299		//  Measured:  `1032`300		//  Estimated: `3335`301		// Minimum execution time: 15_812_000 picoseconds.302		Weight::from_parts(16_102_000, 3335)303			.saturating_add(RocksDbWeight::get().reads(1_u64))304			.saturating_add(RocksDbWeight::get().writes(1_u64))305	}306	/// Storage: Common CollectionById (r:1 w:1)307	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)308	fn change_collection_owner() -> Weight {309		// Proof Size summary in bytes:310		//  Measured:  `999`311		//  Estimated: `3335`312		// Minimum execution time: 15_072_000 picoseconds.313		Weight::from_parts(15_540_000, 3335)314			.saturating_add(RocksDbWeight::get().reads(1_u64))315			.saturating_add(RocksDbWeight::get().writes(1_u64))316	}317	/// Storage: Common CollectionById (r:1 w:0)318	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)319	/// Storage: Common IsAdmin (r:1 w:1)320	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)321	/// Storage: Common AdminAmount (r:1 w:1)322	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)323	fn add_collection_admin() -> Weight {324		// Proof Size summary in bytes:325		//  Measured:  `999`326		//  Estimated: `8379`327		// Minimum execution time: 18_268_000 picoseconds.328		Weight::from_parts(18_931_000, 8379)329			.saturating_add(RocksDbWeight::get().reads(3_u64))330			.saturating_add(RocksDbWeight::get().writes(2_u64))331	}332	/// Storage: Common CollectionById (r:1 w:0)333	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)334	/// Storage: Common IsAdmin (r:1 w:1)335	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)336	/// Storage: Common AdminAmount (r:1 w:1)337	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)338	fn remove_collection_admin() -> Weight {339		// Proof Size summary in bytes:340		//  Measured:  `1139`341		//  Estimated: `8379`342		// Minimum execution time: 21_786_000 picoseconds.343		Weight::from_parts(22_088_000, 8379)344			.saturating_add(RocksDbWeight::get().reads(3_u64))345			.saturating_add(RocksDbWeight::get().writes(2_u64))346	}347	/// Storage: Common CollectionById (r:1 w:1)348	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)349	fn set_collection_sponsor() -> Weight {350		// Proof Size summary in bytes:351		//  Measured:  `999`352		//  Estimated: `3335`353		// Minimum execution time: 15_245_000 picoseconds.354		Weight::from_parts(15_574_000, 3335)355			.saturating_add(RocksDbWeight::get().reads(1_u64))356			.saturating_add(RocksDbWeight::get().writes(1_u64))357	}358	/// Storage: Common CollectionById (r:1 w:1)359	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)360	fn confirm_sponsorship() -> Weight {361		// Proof Size summary in bytes:362		//  Measured:  `1031`363		//  Estimated: `3335`364		// Minimum execution time: 15_073_000 picoseconds.365		Weight::from_parts(15_407_000, 3335)366			.saturating_add(RocksDbWeight::get().reads(1_u64))367			.saturating_add(RocksDbWeight::get().writes(1_u64))368	}369	/// Storage: Common CollectionById (r:1 w:1)370	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)371	fn remove_collection_sponsor() -> Weight {372		// Proof Size summary in bytes:373		//  Measured:  `1031`374		//  Estimated: `3335`375		// Minimum execution time: 14_938_000 picoseconds.376		Weight::from_parts(15_262_000, 3335)377			.saturating_add(RocksDbWeight::get().reads(1_u64))378			.saturating_add(RocksDbWeight::get().writes(1_u64))379	}380	/// Storage: Common CollectionById (r:1 w:1)381	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)382	fn set_transfers_enabled_flag() -> Weight {383		// Proof Size summary in bytes:384		//  Measured:  `999`385		//  Estimated: `3335`386		// Minimum execution time: 10_318_000 picoseconds.387		Weight::from_parts(10_652_000, 3335)388			.saturating_add(RocksDbWeight::get().reads(1_u64))389			.saturating_add(RocksDbWeight::get().writes(1_u64))390	}391	/// Storage: Common CollectionById (r:1 w:1)392	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)393	fn set_collection_limits() -> Weight {394		// Proof Size summary in bytes:395		//  Measured:  `999`396		//  Estimated: `3335`397		// Minimum execution time: 15_535_000 picoseconds.398		Weight::from_parts(15_937_000, 3335)399			.saturating_add(RocksDbWeight::get().reads(1_u64))400			.saturating_add(RocksDbWeight::get().writes(1_u64))401	}402	/// Storage: Common CollectionProperties (r:1 w:1)403	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)404	fn force_repair_collection() -> Weight {405		// Proof Size summary in bytes:406		//  Measured:  `265`407		//  Estimated: `43467`408		// Minimum execution time: 8_178_000 picoseconds.409		Weight::from_parts(8_390_000, 43467)410			.saturating_add(RocksDbWeight::get().reads(1_u64))411			.saturating_add(RocksDbWeight::get().writes(1_u64))412	}413}414