1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_nonfungible4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-10-05, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-nonfungible17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/nonfungible/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_nonfungible.35pub trait WeightInfo {36 fn create_item() -> Weight;37 fn create_multiple_items(b: u32, ) -> Weight;38 fn create_multiple_items_ex(b: u32, ) -> Weight;39 fn burn_item() -> Weight;40 fn burn_recursively_self_raw() -> Weight;41 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight;42 fn transfer_raw() -> Weight;43 fn approve() -> Weight;44 fn approve_from() -> Weight;45 fn check_allowed_raw() -> Weight;46 fn burn_from() -> Weight;47 fn set_token_property_permissions(b: u32, ) -> Weight;48 fn set_token_properties(b: u32, ) -> Weight;49 fn load_token_properties() -> Weight;50 fn write_token_properties(b: u32, ) -> Weight;51 fn delete_token_properties(b: u32, ) -> Weight;52 fn token_owner() -> Weight;53 fn set_allowance_for_all() -> Weight;54 fn allowance_for_all() -> Weight;55 fn repair_item() -> Weight;56}5758/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.59pub struct SubstrateWeight<T>(PhantomData<T>);60impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {61 /// Storage: Nonfungible TokensMinted (r:1 w:1)62 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)63 /// Storage: Nonfungible AccountBalance (r:1 w:1)64 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)65 /// Storage: Nonfungible TokenData (r:0 w:1)66 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)67 /// Storage: Nonfungible Owned (r:0 w:1)68 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)69 fn create_item() -> Weight {70 // Proof Size summary in bytes:71 // Measured: `142`72 // Estimated: `3530`73 // Minimum execution time: 4_990_000 picoseconds.74 Weight::from_parts(5_170_000, 3530)75 .saturating_add(T::DbWeight::get().reads(2_u64))76 .saturating_add(T::DbWeight::get().writes(4_u64))77 }78 /// Storage: Nonfungible TokensMinted (r:1 w:1)79 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)80 /// Storage: Nonfungible AccountBalance (r:1 w:1)81 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)82 /// Storage: Nonfungible TokenData (r:0 w:200)83 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)84 /// Storage: Nonfungible Owned (r:0 w:200)85 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)86 /// The range of component `b` is `[0, 200]`.87 fn create_multiple_items(b: u32, ) -> Weight {88 // Proof Size summary in bytes:89 // Measured: `142`90 // Estimated: `3530`91 // Minimum execution time: 1_680_000 picoseconds.92 Weight::from_parts(1_720_000, 3530)93 // Standard Error: 67494 .saturating_add(Weight::from_parts(2_406_591, 0).saturating_mul(b.into()))95 .saturating_add(T::DbWeight::get().reads(2_u64))96 .saturating_add(T::DbWeight::get().writes(2_u64))97 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))98 }99 /// Storage: Nonfungible TokensMinted (r:1 w:1)100 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)101 /// Storage: Nonfungible AccountBalance (r:200 w:200)102 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)103 /// Storage: Nonfungible TokenData (r:0 w:200)104 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)105 /// Storage: Nonfungible Owned (r:0 w:200)106 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)107 /// The range of component `b` is `[0, 200]`.108 fn create_multiple_items_ex(b: u32, ) -> Weight {109 // Proof Size summary in bytes:110 // Measured: `142`111 // Estimated: `3481 + b * (2540 ±0)`112 // Minimum execution time: 1_680_000 picoseconds.113 Weight::from_parts(1_720_000, 3481)114 // Standard Error: 1_729115 .saturating_add(Weight::from_parts(3_418_983, 0).saturating_mul(b.into()))116 .saturating_add(T::DbWeight::get().reads(1_u64))117 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))118 .saturating_add(T::DbWeight::get().writes(1_u64))119 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))120 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))121 }122 /// Storage: Nonfungible TokenData (r:1 w:1)123 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)124 /// Storage: Nonfungible TokenChildren (r:1 w:0)125 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)126 /// Storage: Nonfungible TokensBurnt (r:1 w:1)127 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)128 /// Storage: Nonfungible AccountBalance (r:1 w:1)129 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)130 /// Storage: Nonfungible Allowance (r:1 w:0)131 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)132 /// Storage: Nonfungible Owned (r:0 w:1)133 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)134 /// Storage: Nonfungible TokenProperties (r:0 w:1)135 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)136 fn burn_item() -> Weight {137 // Proof Size summary in bytes:138 // Measured: `380`139 // Estimated: `3530`140 // Minimum execution time: 10_700_000 picoseconds.141 Weight::from_parts(11_180_000, 3530)142 .saturating_add(T::DbWeight::get().reads(5_u64))143 .saturating_add(T::DbWeight::get().writes(5_u64))144 }145 /// Storage: Nonfungible TokenChildren (r:1 w:0)146 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)147 /// Storage: Nonfungible TokenData (r:1 w:1)148 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)149 /// Storage: Nonfungible TokensBurnt (r:1 w:1)150 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)151 /// Storage: Nonfungible AccountBalance (r:1 w:1)152 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)153 /// Storage: Nonfungible Allowance (r:1 w:0)154 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)155 /// Storage: Nonfungible Owned (r:0 w:1)156 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)157 /// Storage: Nonfungible TokenProperties (r:0 w:1)158 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)159 fn burn_recursively_self_raw() -> Weight {160 // Proof Size summary in bytes:161 // Measured: `380`162 // Estimated: `3530`163 // Minimum execution time: 13_650_000 picoseconds.164 Weight::from_parts(13_910_000, 3530)165 .saturating_add(T::DbWeight::get().reads(5_u64))166 .saturating_add(T::DbWeight::get().writes(5_u64))167 }168 /// Storage: Nonfungible TokenChildren (r:401 w:200)169 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)170 /// Storage: Common CollectionById (r:1 w:0)171 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)172 /// Storage: Nonfungible TokenData (r:201 w:201)173 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)174 /// Storage: Nonfungible TokensBurnt (r:1 w:1)175 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)176 /// Storage: Nonfungible AccountBalance (r:2 w:2)177 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)178 /// Storage: Nonfungible Allowance (r:201 w:0)179 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)180 /// Storage: Nonfungible Owned (r:0 w:201)181 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)182 /// Storage: Nonfungible TokenProperties (r:0 w:201)183 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)184 /// The range of component `b` is `[0, 200]`.185 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {186 // Proof Size summary in bytes:187 // Measured: `1500 + b * (58 ±0)`188 // Estimated: `5874 + b * (5032 ±0)`189 // Minimum execution time: 13_500_000 picoseconds.190 Weight::from_parts(13_830_000, 5874)191 // Standard Error: 136_447192 .saturating_add(Weight::from_parts(43_149_279, 0).saturating_mul(b.into()))193 .saturating_add(T::DbWeight::get().reads(7_u64))194 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))195 .saturating_add(T::DbWeight::get().writes(6_u64))196 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))197 .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))198 }199 /// Storage: Nonfungible TokenData (r:1 w:1)200 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)201 /// Storage: Nonfungible AccountBalance (r:2 w:2)202 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)203 /// Storage: Nonfungible Allowance (r:1 w:0)204 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)205 /// Storage: Nonfungible Owned (r:0 w:2)206 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)207 fn transfer_raw() -> Weight {208 // Proof Size summary in bytes:209 // Measured: `380`210 // Estimated: `6070`211 // Minimum execution time: 8_440_000 picoseconds.212 Weight::from_parts(8_680_000, 6070)213 .saturating_add(T::DbWeight::get().reads(4_u64))214 .saturating_add(T::DbWeight::get().writes(5_u64))215 }216 /// Storage: Nonfungible TokenData (r:1 w:0)217 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)218 /// Storage: Nonfungible Allowance (r:1 w:1)219 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)220 fn approve() -> Weight {221 // Proof Size summary in bytes:222 // Measured: `326`223 // Estimated: `3522`224 // Minimum execution time: 4_580_000 picoseconds.225 Weight::from_parts(4_850_000, 3522)226 .saturating_add(T::DbWeight::get().reads(2_u64))227 .saturating_add(T::DbWeight::get().writes(1_u64))228 }229 /// Storage: Nonfungible TokenData (r:1 w:0)230 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)231 /// Storage: Nonfungible Allowance (r:1 w:1)232 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)233 fn approve_from() -> Weight {234 // Proof Size summary in bytes:235 // Measured: `313`236 // Estimated: `3522`237 // Minimum execution time: 4_650_000 picoseconds.238 Weight::from_parts(4_890_000, 3522)239 .saturating_add(T::DbWeight::get().reads(2_u64))240 .saturating_add(T::DbWeight::get().writes(1_u64))241 }242 /// Storage: Nonfungible Allowance (r:1 w:0)243 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)244 fn check_allowed_raw() -> Weight {245 // Proof Size summary in bytes:246 // Measured: `362`247 // Estimated: `3522`248 // Minimum execution time: 2_630_000 picoseconds.249 Weight::from_parts(2_760_000, 3522)250 .saturating_add(T::DbWeight::get().reads(1_u64))251 }252 /// Storage: Nonfungible Allowance (r:1 w:1)253 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)254 /// Storage: Nonfungible TokenData (r:1 w:1)255 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)256 /// Storage: Nonfungible TokenChildren (r:1 w:0)257 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)258 /// Storage: Nonfungible TokensBurnt (r:1 w:1)259 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)260 /// Storage: Nonfungible AccountBalance (r:1 w:1)261 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)262 /// Storage: Nonfungible Owned (r:0 w:1)263 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)264 /// Storage: Nonfungible TokenProperties (r:0 w:1)265 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)266 fn burn_from() -> Weight {267 // Proof Size summary in bytes:268 // Measured: `463`269 // Estimated: `3530`270 // Minimum execution time: 13_300_000 picoseconds.271 Weight::from_parts(13_650_000, 3530)272 .saturating_add(T::DbWeight::get().reads(5_u64))273 .saturating_add(T::DbWeight::get().writes(6_u64))274 }275 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)276 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)277 /// The range of component `b` is `[0, 64]`.278 fn set_token_property_permissions(b: u32, ) -> Weight {279 // Proof Size summary in bytes:280 // Measured: `314`281 // Estimated: `20191`282 // Minimum execution time: 550_000 picoseconds.283 Weight::from_parts(600_000, 20191)284 // Standard Error: 23_117285 .saturating_add(Weight::from_parts(6_048_092, 0).saturating_mul(b.into()))286 .saturating_add(T::DbWeight::get().reads(1_u64))287 .saturating_add(T::DbWeight::get().writes(1_u64))288 }289 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)290 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)291 /// Storage: Nonfungible TokenProperties (r:1 w:1)292 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)293 /// Storage: Nonfungible TokenData (r:1 w:0)294 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)295 /// The range of component `b` is `[0, 64]`.296 fn set_token_properties(b: u32, ) -> Weight {297 // Proof Size summary in bytes:298 // Measured: `640 + b * (261 ±0)`299 // Estimated: `36269`300 // Minimum execution time: 340_000 picoseconds.301 Weight::from_parts(7_359_078, 36269)302 // Standard Error: 9_052303 .saturating_add(Weight::from_parts(2_763_267, 0).saturating_mul(b.into()))304 .saturating_add(T::DbWeight::get().reads(3_u64))305 .saturating_add(T::DbWeight::get().writes(1_u64))306 }307 /// Storage: Nonfungible TokenProperties (r:1 w:0)308 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)309 fn load_token_properties() -> Weight {310 // Proof Size summary in bytes:311 // Measured: `279`312 // Estimated: `36269`313 // Minimum execution time: 1_610_000 picoseconds.314 Weight::from_parts(1_690_000, 36269)315 .saturating_add(T::DbWeight::get().reads(1_u64))316 }317 /// Storage: Nonfungible TokenProperties (r:0 w:1)318 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)319 /// The range of component `b` is `[0, 64]`.320 fn write_token_properties(b: u32, ) -> Weight {321 // Proof Size summary in bytes:322 // Measured: `0`323 // Estimated: `0`324 // Minimum execution time: 70_000 picoseconds.325 Weight::from_parts(3_262_181, 0)326 // Standard Error: 5_240327 .saturating_add(Weight::from_parts(2_426_582, 0).saturating_mul(b.into()))328 .saturating_add(T::DbWeight::get().writes(1_u64))329 }330 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)331 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)332 /// Storage: Nonfungible TokenData (r:1 w:0)333 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)334 /// Storage: Nonfungible TokenProperties (r:1 w:1)335 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)336 /// The range of component `b` is `[0, 64]`.337 fn delete_token_properties(b: u32, ) -> Weight {338 // Proof Size summary in bytes:339 // Measured: `699 + b * (33291 ±0)`340 // Estimated: `36269`341 // Minimum execution time: 350_000 picoseconds.342 Weight::from_parts(370_000, 36269)343 // Standard Error: 29_081344 .saturating_add(Weight::from_parts(9_667_268, 0).saturating_mul(b.into()))345 .saturating_add(T::DbWeight::get().reads(3_u64))346 .saturating_add(T::DbWeight::get().writes(1_u64))347 }348 /// Storage: Nonfungible TokenData (r:1 w:0)349 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)350 fn token_owner() -> Weight {351 // Proof Size summary in bytes:352 // Measured: `326`353 // Estimated: `3522`354 // Minimum execution time: 2_380_000 picoseconds.355 Weight::from_parts(2_500_000, 3522)356 .saturating_add(T::DbWeight::get().reads(1_u64))357 }358 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)359 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)360 fn set_allowance_for_all() -> Weight {361 // Proof Size summary in bytes:362 // Measured: `0`363 // Estimated: `0`364 // Minimum execution time: 2_060_000 picoseconds.365 Weight::from_parts(2_150_000, 0)366 .saturating_add(T::DbWeight::get().writes(1_u64))367 }368 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)369 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)370 fn allowance_for_all() -> Weight {371 // Proof Size summary in bytes:372 // Measured: `142`373 // Estimated: `3576`374 // Minimum execution time: 1_630_000 picoseconds.375 Weight::from_parts(1_730_000, 3576)376 .saturating_add(T::DbWeight::get().reads(1_u64))377 }378 /// Storage: Nonfungible TokenProperties (r:1 w:1)379 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)380 fn repair_item() -> Weight {381 // Proof Size summary in bytes:382 // Measured: `279`383 // Estimated: `36269`384 // Minimum execution time: 1_700_000 picoseconds.385 Weight::from_parts(1_780_000, 36269)386 .saturating_add(T::DbWeight::get().reads(1_u64))387 .saturating_add(T::DbWeight::get().writes(1_u64))388 }389}390391// For backwards compatibility and tests392impl WeightInfo for () {393 /// Storage: Nonfungible TokensMinted (r:1 w:1)394 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)395 /// Storage: Nonfungible AccountBalance (r:1 w:1)396 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)397 /// Storage: Nonfungible TokenData (r:0 w:1)398 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)399 /// Storage: Nonfungible Owned (r:0 w:1)400 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)401 fn create_item() -> Weight {402 // Proof Size summary in bytes:403 // Measured: `142`404 // Estimated: `3530`405 // Minimum execution time: 4_990_000 picoseconds.406 Weight::from_parts(5_170_000, 3530)407 .saturating_add(RocksDbWeight::get().reads(2_u64))408 .saturating_add(RocksDbWeight::get().writes(4_u64))409 }410 /// Storage: Nonfungible TokensMinted (r:1 w:1)411 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)412 /// Storage: Nonfungible AccountBalance (r:1 w:1)413 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)414 /// Storage: Nonfungible TokenData (r:0 w:200)415 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)416 /// Storage: Nonfungible Owned (r:0 w:200)417 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)418 /// The range of component `b` is `[0, 200]`.419 fn create_multiple_items(b: u32, ) -> Weight {420 // Proof Size summary in bytes:421 // Measured: `142`422 // Estimated: `3530`423 // Minimum execution time: 1_680_000 picoseconds.424 Weight::from_parts(1_720_000, 3530)425 // Standard Error: 674426 .saturating_add(Weight::from_parts(2_406_591, 0).saturating_mul(b.into()))427 .saturating_add(RocksDbWeight::get().reads(2_u64))428 .saturating_add(RocksDbWeight::get().writes(2_u64))429 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))430 }431 /// Storage: Nonfungible TokensMinted (r:1 w:1)432 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)433 /// Storage: Nonfungible AccountBalance (r:200 w:200)434 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)435 /// Storage: Nonfungible TokenData (r:0 w:200)436 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)437 /// Storage: Nonfungible Owned (r:0 w:200)438 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)439 /// The range of component `b` is `[0, 200]`.440 fn create_multiple_items_ex(b: u32, ) -> Weight {441 // Proof Size summary in bytes:442 // Measured: `142`443 // Estimated: `3481 + b * (2540 ±0)`444 // Minimum execution time: 1_680_000 picoseconds.445 Weight::from_parts(1_720_000, 3481)446 // Standard Error: 1_729447 .saturating_add(Weight::from_parts(3_418_983, 0).saturating_mul(b.into()))448 .saturating_add(RocksDbWeight::get().reads(1_u64))449 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))450 .saturating_add(RocksDbWeight::get().writes(1_u64))451 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))452 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))453 }454 /// Storage: Nonfungible TokenData (r:1 w:1)455 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)456 /// Storage: Nonfungible TokenChildren (r:1 w:0)457 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)458 /// Storage: Nonfungible TokensBurnt (r:1 w:1)459 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)460 /// Storage: Nonfungible AccountBalance (r:1 w:1)461 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)462 /// Storage: Nonfungible Allowance (r:1 w:0)463 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)464 /// Storage: Nonfungible Owned (r:0 w:1)465 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)466 /// Storage: Nonfungible TokenProperties (r:0 w:1)467 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)468 fn burn_item() -> Weight {469 // Proof Size summary in bytes:470 // Measured: `380`471 // Estimated: `3530`472 // Minimum execution time: 10_700_000 picoseconds.473 Weight::from_parts(11_180_000, 3530)474 .saturating_add(RocksDbWeight::get().reads(5_u64))475 .saturating_add(RocksDbWeight::get().writes(5_u64))476 }477 /// Storage: Nonfungible TokenChildren (r:1 w:0)478 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)479 /// Storage: Nonfungible TokenData (r:1 w:1)480 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)481 /// Storage: Nonfungible TokensBurnt (r:1 w:1)482 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)483 /// Storage: Nonfungible AccountBalance (r:1 w:1)484 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)485 /// Storage: Nonfungible Allowance (r:1 w:0)486 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)487 /// Storage: Nonfungible Owned (r:0 w:1)488 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)489 /// Storage: Nonfungible TokenProperties (r:0 w:1)490 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)491 fn burn_recursively_self_raw() -> Weight {492 // Proof Size summary in bytes:493 // Measured: `380`494 // Estimated: `3530`495 // Minimum execution time: 13_650_000 picoseconds.496 Weight::from_parts(13_910_000, 3530)497 .saturating_add(RocksDbWeight::get().reads(5_u64))498 .saturating_add(RocksDbWeight::get().writes(5_u64))499 }500 /// Storage: Nonfungible TokenChildren (r:401 w:200)501 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)502 /// Storage: Common CollectionById (r:1 w:0)503 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)504 /// Storage: Nonfungible TokenData (r:201 w:201)505 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)506 /// Storage: Nonfungible TokensBurnt (r:1 w:1)507 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)508 /// Storage: Nonfungible AccountBalance (r:2 w:2)509 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)510 /// Storage: Nonfungible Allowance (r:201 w:0)511 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)512 /// Storage: Nonfungible Owned (r:0 w:201)513 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)514 /// Storage: Nonfungible TokenProperties (r:0 w:201)515 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)516 /// The range of component `b` is `[0, 200]`.517 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {518 // Proof Size summary in bytes:519 // Measured: `1500 + b * (58 ±0)`520 // Estimated: `5874 + b * (5032 ±0)`521 // Minimum execution time: 13_500_000 picoseconds.522 Weight::from_parts(13_830_000, 5874)523 // Standard Error: 136_447524 .saturating_add(Weight::from_parts(43_149_279, 0).saturating_mul(b.into()))525 .saturating_add(RocksDbWeight::get().reads(7_u64))526 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))527 .saturating_add(RocksDbWeight::get().writes(6_u64))528 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))529 .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))530 }531 /// Storage: Nonfungible TokenData (r:1 w:1)532 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)533 /// Storage: Nonfungible AccountBalance (r:2 w:2)534 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)535 /// Storage: Nonfungible Allowance (r:1 w:0)536 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)537 /// Storage: Nonfungible Owned (r:0 w:2)538 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)539 fn transfer_raw() -> Weight {540 // Proof Size summary in bytes:541 // Measured: `380`542 // Estimated: `6070`543 // Minimum execution time: 8_440_000 picoseconds.544 Weight::from_parts(8_680_000, 6070)545 .saturating_add(RocksDbWeight::get().reads(4_u64))546 .saturating_add(RocksDbWeight::get().writes(5_u64))547 }548 /// Storage: Nonfungible TokenData (r:1 w:0)549 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)550 /// Storage: Nonfungible Allowance (r:1 w:1)551 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)552 fn approve() -> Weight {553 // Proof Size summary in bytes:554 // Measured: `326`555 // Estimated: `3522`556 // Minimum execution time: 4_580_000 picoseconds.557 Weight::from_parts(4_850_000, 3522)558 .saturating_add(RocksDbWeight::get().reads(2_u64))559 .saturating_add(RocksDbWeight::get().writes(1_u64))560 }561 /// Storage: Nonfungible TokenData (r:1 w:0)562 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)563 /// Storage: Nonfungible Allowance (r:1 w:1)564 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)565 fn approve_from() -> Weight {566 // Proof Size summary in bytes:567 // Measured: `313`568 // Estimated: `3522`569 // Minimum execution time: 4_650_000 picoseconds.570 Weight::from_parts(4_890_000, 3522)571 .saturating_add(RocksDbWeight::get().reads(2_u64))572 .saturating_add(RocksDbWeight::get().writes(1_u64))573 }574 /// Storage: Nonfungible Allowance (r:1 w:0)575 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)576 fn check_allowed_raw() -> Weight {577 // Proof Size summary in bytes:578 // Measured: `362`579 // Estimated: `3522`580 // Minimum execution time: 2_630_000 picoseconds.581 Weight::from_parts(2_760_000, 3522)582 .saturating_add(RocksDbWeight::get().reads(1_u64))583 }584 /// Storage: Nonfungible Allowance (r:1 w:1)585 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)586 /// Storage: Nonfungible TokenData (r:1 w:1)587 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)588 /// Storage: Nonfungible TokenChildren (r:1 w:0)589 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)590 /// Storage: Nonfungible TokensBurnt (r:1 w:1)591 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)592 /// Storage: Nonfungible AccountBalance (r:1 w:1)593 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)594 /// Storage: Nonfungible Owned (r:0 w:1)595 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)596 /// Storage: Nonfungible TokenProperties (r:0 w:1)597 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)598 fn burn_from() -> Weight {599 // Proof Size summary in bytes:600 // Measured: `463`601 // Estimated: `3530`602 // Minimum execution time: 13_300_000 picoseconds.603 Weight::from_parts(13_650_000, 3530)604 .saturating_add(RocksDbWeight::get().reads(5_u64))605 .saturating_add(RocksDbWeight::get().writes(6_u64))606 }607 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)608 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)609 /// The range of component `b` is `[0, 64]`.610 fn set_token_property_permissions(b: u32, ) -> Weight {611 // Proof Size summary in bytes:612 // Measured: `314`613 // Estimated: `20191`614 // Minimum execution time: 550_000 picoseconds.615 Weight::from_parts(600_000, 20191)616 // Standard Error: 23_117617 .saturating_add(Weight::from_parts(6_048_092, 0).saturating_mul(b.into()))618 .saturating_add(RocksDbWeight::get().reads(1_u64))619 .saturating_add(RocksDbWeight::get().writes(1_u64))620 }621 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)622 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)623 /// Storage: Nonfungible TokenProperties (r:1 w:1)624 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)625 /// Storage: Nonfungible TokenData (r:1 w:0)626 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)627 /// The range of component `b` is `[0, 64]`.628 fn set_token_properties(b: u32, ) -> Weight {629 // Proof Size summary in bytes:630 // Measured: `640 + b * (261 ±0)`631 // Estimated: `36269`632 // Minimum execution time: 340_000 picoseconds.633 Weight::from_parts(7_359_078, 36269)634 // Standard Error: 9_052635 .saturating_add(Weight::from_parts(2_763_267, 0).saturating_mul(b.into()))636 .saturating_add(RocksDbWeight::get().reads(3_u64))637 .saturating_add(RocksDbWeight::get().writes(1_u64))638 }639 /// Storage: Nonfungible TokenProperties (r:1 w:0)640 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)641 fn load_token_properties() -> Weight {642 // Proof Size summary in bytes:643 // Measured: `279`644 // Estimated: `36269`645 // Minimum execution time: 1_610_000 picoseconds.646 Weight::from_parts(1_690_000, 36269)647 .saturating_add(RocksDbWeight::get().reads(1_u64))648 }649 /// Storage: Nonfungible TokenProperties (r:0 w:1)650 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)651 /// The range of component `b` is `[0, 64]`.652 fn write_token_properties(b: u32, ) -> Weight {653 // Proof Size summary in bytes:654 // Measured: `0`655 // Estimated: `0`656 // Minimum execution time: 70_000 picoseconds.657 Weight::from_parts(3_262_181, 0)658 // Standard Error: 5_240659 .saturating_add(Weight::from_parts(2_426_582, 0).saturating_mul(b.into()))660 .saturating_add(RocksDbWeight::get().writes(1_u64))661 }662 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)663 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)664 /// Storage: Nonfungible TokenData (r:1 w:0)665 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)666 /// Storage: Nonfungible TokenProperties (r:1 w:1)667 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)668 /// The range of component `b` is `[0, 64]`.669 fn delete_token_properties(b: u32, ) -> Weight {670 // Proof Size summary in bytes:671 // Measured: `699 + b * (33291 ±0)`672 // Estimated: `36269`673 // Minimum execution time: 350_000 picoseconds.674 Weight::from_parts(370_000, 36269)675 // Standard Error: 29_081676 .saturating_add(Weight::from_parts(9_667_268, 0).saturating_mul(b.into()))677 .saturating_add(RocksDbWeight::get().reads(3_u64))678 .saturating_add(RocksDbWeight::get().writes(1_u64))679 }680 /// Storage: Nonfungible TokenData (r:1 w:0)681 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)682 fn token_owner() -> Weight {683 // Proof Size summary in bytes:684 // Measured: `326`685 // Estimated: `3522`686 // Minimum execution time: 2_380_000 picoseconds.687 Weight::from_parts(2_500_000, 3522)688 .saturating_add(RocksDbWeight::get().reads(1_u64))689 }690 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)691 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)692 fn set_allowance_for_all() -> Weight {693 // Proof Size summary in bytes:694 // Measured: `0`695 // Estimated: `0`696 // Minimum execution time: 2_060_000 picoseconds.697 Weight::from_parts(2_150_000, 0)698 .saturating_add(RocksDbWeight::get().writes(1_u64))699 }700 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)701 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)702 fn allowance_for_all() -> Weight {703 // Proof Size summary in bytes:704 // Measured: `142`705 // Estimated: `3576`706 // Minimum execution time: 1_630_000 picoseconds.707 Weight::from_parts(1_730_000, 3576)708 .saturating_add(RocksDbWeight::get().reads(1_u64))709 }710 /// Storage: Nonfungible TokenProperties (r:1 w:1)711 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)712 fn repair_item() -> Weight {713 // Proof Size summary in bytes:714 // Measured: `279`715 // Estimated: `36269`716 // Minimum execution time: 1_700_000 picoseconds.717 Weight::from_parts(1_780_000, 36269)718 .saturating_add(RocksDbWeight::get().reads(1_u64))719 .saturating_add(RocksDbWeight::get().writes(1_u64))720 }721}722difftreelog
source
pallets/nonfungible/src/weights.rs37.0 KiBsourcehistory