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-04-20, 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: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/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 delete_token_properties(b: u32, ) -> Weight;50 fn token_owner() -> Weight;51 fn set_allowance_for_all() -> Weight;52 fn allowance_for_all() -> Weight;53 fn repair_item() -> Weight;54}5556/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.57pub struct SubstrateWeight<T>(PhantomData<T>);58impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {59 /// Storage: Nonfungible TokensMinted (r:1 w:1)60 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)61 /// Storage: Nonfungible AccountBalance (r:1 w:1)62 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)63 /// Storage: Nonfungible TokenProperties (r:1 w:1)64 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)65 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)66 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)67 /// Storage: Nonfungible TokenData (r:0 w:1)68 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)69 /// Storage: Nonfungible Owned (r:0 w:1)70 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)71 fn create_item() -> Weight {72 // Proof Size summary in bytes:73 // Measured: `390`74 // Estimated: `63471`75 // Minimum execution time: 25_892_000 picoseconds.76 Weight::from_parts(26_424_000, 63471)77 .saturating_add(T::DbWeight::get().reads(4_u64))78 .saturating_add(T::DbWeight::get().writes(5_u64))79 }80 /// Storage: Nonfungible TokensMinted (r:1 w:1)81 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)82 /// Storage: Nonfungible AccountBalance (r:1 w:1)83 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)84 /// Storage: Nonfungible TokenProperties (r:200 w:200)85 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)86 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)87 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)88 /// Storage: Nonfungible TokenData (r:0 w:200)89 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)90 /// Storage: Nonfungible Owned (r:0 w:200)91 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)92 /// The range of component `b` is `[0, 200]`.93 fn create_multiple_items(b: u32, ) -> Weight {94 // Proof Size summary in bytes:95 // Measured: `390`96 // Estimated: `28192 + b * (35279 ±0)`97 // Minimum execution time: 4_612_000 picoseconds.98 Weight::from_parts(6_399_460, 28192)99 // Standard Error: 5_119100 .saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into()))101 .saturating_add(T::DbWeight::get().reads(3_u64))102 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))103 .saturating_add(T::DbWeight::get().writes(2_u64))104 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))105 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))106 }107 /// Storage: Nonfungible TokensMinted (r:1 w:1)108 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)109 /// Storage: Nonfungible AccountBalance (r:200 w:200)110 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)111 /// Storage: Nonfungible TokenProperties (r:200 w:200)112 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)113 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)114 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)115 /// Storage: Nonfungible TokenData (r:0 w:200)116 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)117 /// Storage: Nonfungible Owned (r:0 w:200)118 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)119 /// The range of component `b` is `[0, 200]`.120 fn create_multiple_items_ex(b: u32, ) -> Weight {121 // Proof Size summary in bytes:122 // Measured: `390`123 // Estimated: `25652 + b * (37819 ±0)`124 // Minimum execution time: 4_538_000 picoseconds.125 Weight::from_parts(4_686_000, 25652)126 // Standard Error: 3_518127 .saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into()))128 .saturating_add(T::DbWeight::get().reads(2_u64))129 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))130 .saturating_add(T::DbWeight::get().writes(1_u64))131 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))132 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))133 }134 /// Storage: Nonfungible TokenData (r:1 w:1)135 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)136 /// Storage: Nonfungible TokenChildren (r:1 w:0)137 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)138 /// Storage: Nonfungible TokensBurnt (r:1 w:1)139 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)140 /// Storage: Nonfungible AccountBalance (r:1 w:1)141 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)142 /// Storage: Nonfungible Allowance (r:1 w:0)143 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)144 /// Storage: Nonfungible Owned (r:0 w:1)145 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)146 /// Storage: Nonfungible TokenProperties (r:0 w:1)147 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)148 fn burn_item() -> Weight {149 // Proof Size summary in bytes:150 // Measured: `380`151 // Estimated: `17561`152 // Minimum execution time: 24_230_000 picoseconds.153 Weight::from_parts(24_672_000, 17561)154 .saturating_add(T::DbWeight::get().reads(5_u64))155 .saturating_add(T::DbWeight::get().writes(5_u64))156 }157 /// Storage: Nonfungible TokenChildren (r:1 w:0)158 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)159 /// Storage: Nonfungible TokenData (r:1 w:1)160 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)161 /// Storage: Nonfungible TokensBurnt (r:1 w:1)162 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)163 /// Storage: Nonfungible AccountBalance (r:1 w:1)164 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)165 /// Storage: Nonfungible Allowance (r:1 w:0)166 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)167 /// Storage: Nonfungible Owned (r:0 w:1)168 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)169 /// Storage: Nonfungible TokenProperties (r:0 w:1)170 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)171 fn burn_recursively_self_raw() -> Weight {172 // Proof Size summary in bytes:173 // Measured: `380`174 // Estimated: `17561`175 // Minimum execution time: 30_521_000 picoseconds.176 Weight::from_parts(31_241_000, 17561)177 .saturating_add(T::DbWeight::get().reads(5_u64))178 .saturating_add(T::DbWeight::get().writes(5_u64))179 }180 /// Storage: Nonfungible TokenChildren (r:401 w:200)181 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)182 /// Storage: Common CollectionById (r:1 w:0)183 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)184 /// Storage: Nonfungible TokenData (r:201 w:201)185 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)186 /// Storage: Nonfungible TokensBurnt (r:1 w:1)187 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)188 /// Storage: Nonfungible AccountBalance (r:2 w:2)189 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)190 /// Storage: Nonfungible Allowance (r:201 w:0)191 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)192 /// Storage: Nonfungible Owned (r:0 w:201)193 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)194 /// Storage: Nonfungible TokenProperties (r:0 w:201)195 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)196 /// The range of component `b` is `[0, 200]`.197 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {198 // Proof Size summary in bytes:199 // Measured: `1467 + b * (58 ±0)`200 // Estimated: `24230 + b * (10097 ±0)`201 // Minimum execution time: 31_734_000 picoseconds.202 Weight::from_parts(32_162_000, 24230)203 // Standard Error: 210_514204 .saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into()))205 .saturating_add(T::DbWeight::get().reads(7_u64))206 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))207 .saturating_add(T::DbWeight::get().writes(6_u64))208 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))209 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))210 }211 /// Storage: Nonfungible TokenData (r:1 w:1)212 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)213 /// Storage: Nonfungible AccountBalance (r:2 w:2)214 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)215 /// Storage: Nonfungible Allowance (r:1 w:0)216 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)217 /// Storage: Nonfungible Owned (r:0 w:2)218 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)219 fn transfer_raw() -> Weight {220 // Proof Size summary in bytes:221 // Measured: `380`222 // Estimated: `13114`223 // Minimum execution time: 18_305_000 picoseconds.224 Weight::from_parts(18_859_000, 13114)225 .saturating_add(T::DbWeight::get().reads(4_u64))226 .saturating_add(T::DbWeight::get().writes(5_u64))227 }228 /// Storage: Nonfungible TokenData (r:1 w:0)229 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)230 /// Storage: Nonfungible Allowance (r:1 w:1)231 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)232 fn approve() -> Weight {233 // Proof Size summary in bytes:234 // Measured: `326`235 // Estimated: `7044`236 // Minimum execution time: 10_977_000 picoseconds.237 Weight::from_parts(11_184_000, 7044)238 .saturating_add(T::DbWeight::get().reads(2_u64))239 .saturating_add(T::DbWeight::get().writes(1_u64))240 }241 /// Storage: Nonfungible TokenData (r:1 w:0)242 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)243 /// Storage: Nonfungible Allowance (r:1 w:1)244 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)245 fn approve_from() -> Weight {246 // Proof Size summary in bytes:247 // Measured: `313`248 // Estimated: `7044`249 // Minimum execution time: 11_456_000 picoseconds.250 Weight::from_parts(11_731_000, 7044)251 .saturating_add(T::DbWeight::get().reads(2_u64))252 .saturating_add(T::DbWeight::get().writes(1_u64))253 }254 /// Storage: Nonfungible Allowance (r:1 w:0)255 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)256 fn check_allowed_raw() -> Weight {257 // Proof Size summary in bytes:258 // Measured: `362`259 // Estimated: `3522`260 // Minimum execution time: 5_771_000 picoseconds.261 Weight::from_parts(5_972_000, 3522)262 .saturating_add(T::DbWeight::get().reads(1_u64))263 }264 /// Storage: Nonfungible Allowance (r:1 w:1)265 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)266 /// Storage: Nonfungible TokenData (r:1 w:1)267 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)268 /// Storage: Nonfungible TokenChildren (r:1 w:0)269 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)270 /// Storage: Nonfungible TokensBurnt (r:1 w:1)271 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)272 /// Storage: Nonfungible AccountBalance (r:1 w:1)273 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)274 /// Storage: Nonfungible Owned (r:0 w:1)275 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)276 /// Storage: Nonfungible TokenProperties (r:0 w:1)277 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)278 fn burn_from() -> Weight {279 // Proof Size summary in bytes:280 // Measured: `463`281 // Estimated: `17561`282 // Minimum execution time: 30_633_000 picoseconds.283 Weight::from_parts(31_136_000, 17561)284 .saturating_add(T::DbWeight::get().reads(5_u64))285 .saturating_add(T::DbWeight::get().writes(6_u64))286 }287 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)288 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)289 /// The range of component `b` is `[0, 64]`.290 fn set_token_property_permissions(b: u32, ) -> Weight {291 // Proof Size summary in bytes:292 // Measured: `281`293 // Estimated: `20191`294 // Minimum execution time: 2_300_000 picoseconds.295 Weight::from_parts(2_382_000, 20191)296 // Standard Error: 45_076297 .saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into()))298 .saturating_add(T::DbWeight::get().reads(1_u64))299 .saturating_add(T::DbWeight::get().writes(1_u64))300 }301 /// Storage: Nonfungible TokenProperties (r:1 w:1)302 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)303 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)304 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)305 /// The range of component `b` is `[0, 64]`.306 fn set_token_properties(b: u32, ) -> Weight {307 // Proof Size summary in bytes:308 // Measured: `584 + b * (261 ±0)`309 // Estimated: `56460`310 // Minimum execution time: 12_422_000 picoseconds.311 Weight::from_parts(5_523_689, 56460)312 // Standard Error: 74_137313 .saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into()))314 .saturating_add(T::DbWeight::get().reads(2_u64))315 .saturating_add(T::DbWeight::get().writes(1_u64))316 }317 /// Storage: Nonfungible TokenProperties (r:1 w:1)318 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)319 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)320 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)321 /// The range of component `b` is `[0, 64]`.322 fn delete_token_properties(b: u32, ) -> Weight {323 // Proof Size summary in bytes:324 // Measured: `589 + b * (33291 ±0)`325 // Estimated: `56460`326 // Minimum execution time: 12_006_000 picoseconds.327 Weight::from_parts(12_216_000, 56460)328 // Standard Error: 83_431329 .saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into()))330 .saturating_add(T::DbWeight::get().reads(2_u64))331 .saturating_add(T::DbWeight::get().writes(1_u64))332 }333 /// Storage: Nonfungible TokenData (r:1 w:0)334 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)335 fn token_owner() -> Weight {336 // Proof Size summary in bytes:337 // Measured: `326`338 // Estimated: `3522`339 // Minimum execution time: 4_827_000 picoseconds.340 Weight::from_parts(4_984_000, 3522)341 .saturating_add(T::DbWeight::get().reads(1_u64))342 }343 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)344 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)345 fn set_allowance_for_all() -> Weight {346 // Proof Size summary in bytes:347 // Measured: `0`348 // Estimated: `0`349 // Minimum execution time: 6_151_000 picoseconds.350 Weight::from_parts(6_394_000, 0)351 .saturating_add(T::DbWeight::get().writes(1_u64))352 }353 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)354 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)355 fn allowance_for_all() -> Weight {356 // Proof Size summary in bytes:357 // Measured: `109`358 // Estimated: `3576`359 // Minimum execution time: 3_791_000 picoseconds.360 Weight::from_parts(3_950_000, 3576)361 .saturating_add(T::DbWeight::get().reads(1_u64))362 }363 /// Storage: Nonfungible TokenProperties (r:1 w:1)364 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)365 fn repair_item() -> Weight {366 // Proof Size summary in bytes:367 // Measured: `300`368 // Estimated: `36269`369 // Minimum execution time: 5_364_000 picoseconds.370 Weight::from_parts(5_539_000, 36269)371 .saturating_add(T::DbWeight::get().reads(1_u64))372 .saturating_add(T::DbWeight::get().writes(1_u64))373 }374}375376// For backwards compatibility and tests377impl WeightInfo for () {378 /// Storage: Nonfungible TokensMinted (r:1 w:1)379 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)380 /// Storage: Nonfungible AccountBalance (r:1 w:1)381 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)382 /// Storage: Nonfungible TokenProperties (r:1 w:1)383 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)384 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)385 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)386 /// Storage: Nonfungible TokenData (r:0 w:1)387 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)388 /// Storage: Nonfungible Owned (r:0 w:1)389 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)390 fn create_item() -> Weight {391 // Proof Size summary in bytes:392 // Measured: `390`393 // Estimated: `63471`394 // Minimum execution time: 25_892_000 picoseconds.395 Weight::from_parts(26_424_000, 63471)396 .saturating_add(RocksDbWeight::get().reads(4_u64))397 .saturating_add(RocksDbWeight::get().writes(5_u64))398 }399 /// Storage: Nonfungible TokensMinted (r:1 w:1)400 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)401 /// Storage: Nonfungible AccountBalance (r:1 w:1)402 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)403 /// Storage: Nonfungible TokenProperties (r:200 w:200)404 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)405 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)406 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)407 /// Storage: Nonfungible TokenData (r:0 w:200)408 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)409 /// Storage: Nonfungible Owned (r:0 w:200)410 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)411 /// The range of component `b` is `[0, 200]`.412 fn create_multiple_items(b: u32, ) -> Weight {413 // Proof Size summary in bytes:414 // Measured: `390`415 // Estimated: `28192 + b * (35279 ±0)`416 // Minimum execution time: 4_612_000 picoseconds.417 Weight::from_parts(6_399_460, 28192)418 // Standard Error: 5_119419 .saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into()))420 .saturating_add(RocksDbWeight::get().reads(3_u64))421 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))422 .saturating_add(RocksDbWeight::get().writes(2_u64))423 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))424 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))425 }426 /// Storage: Nonfungible TokensMinted (r:1 w:1)427 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)428 /// Storage: Nonfungible AccountBalance (r:200 w:200)429 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)430 /// Storage: Nonfungible TokenProperties (r:200 w:200)431 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)432 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)433 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)434 /// Storage: Nonfungible TokenData (r:0 w:200)435 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)436 /// Storage: Nonfungible Owned (r:0 w:200)437 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)438 /// The range of component `b` is `[0, 200]`.439 fn create_multiple_items_ex(b: u32, ) -> Weight {440 // Proof Size summary in bytes:441 // Measured: `390`442 // Estimated: `25652 + b * (37819 ±0)`443 // Minimum execution time: 4_538_000 picoseconds.444 Weight::from_parts(4_686_000, 25652)445 // Standard Error: 3_518446 .saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into()))447 .saturating_add(RocksDbWeight::get().reads(2_u64))448 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))449 .saturating_add(RocksDbWeight::get().writes(1_u64))450 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))451 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))452 }453 /// Storage: Nonfungible TokenData (r:1 w:1)454 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)455 /// Storage: Nonfungible TokenChildren (r:1 w:0)456 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)457 /// Storage: Nonfungible TokensBurnt (r:1 w:1)458 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)459 /// Storage: Nonfungible AccountBalance (r:1 w:1)460 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)461 /// Storage: Nonfungible Allowance (r:1 w:0)462 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)463 /// Storage: Nonfungible Owned (r:0 w:1)464 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)465 /// Storage: Nonfungible TokenProperties (r:0 w:1)466 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)467 fn burn_item() -> Weight {468 // Proof Size summary in bytes:469 // Measured: `380`470 // Estimated: `17561`471 // Minimum execution time: 24_230_000 picoseconds.472 Weight::from_parts(24_672_000, 17561)473 .saturating_add(RocksDbWeight::get().reads(5_u64))474 .saturating_add(RocksDbWeight::get().writes(5_u64))475 }476 /// Storage: Nonfungible TokenChildren (r:1 w:0)477 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)478 /// Storage: Nonfungible TokenData (r:1 w:1)479 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)480 /// Storage: Nonfungible TokensBurnt (r:1 w:1)481 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)482 /// Storage: Nonfungible AccountBalance (r:1 w:1)483 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)484 /// Storage: Nonfungible Allowance (r:1 w:0)485 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)486 /// Storage: Nonfungible Owned (r:0 w:1)487 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)488 /// Storage: Nonfungible TokenProperties (r:0 w:1)489 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)490 fn burn_recursively_self_raw() -> Weight {491 // Proof Size summary in bytes:492 // Measured: `380`493 // Estimated: `17561`494 // Minimum execution time: 30_521_000 picoseconds.495 Weight::from_parts(31_241_000, 17561)496 .saturating_add(RocksDbWeight::get().reads(5_u64))497 .saturating_add(RocksDbWeight::get().writes(5_u64))498 }499 /// Storage: Nonfungible TokenChildren (r:401 w:200)500 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)501 /// Storage: Common CollectionById (r:1 w:0)502 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)503 /// Storage: Nonfungible TokenData (r:201 w:201)504 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)505 /// Storage: Nonfungible TokensBurnt (r:1 w:1)506 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)507 /// Storage: Nonfungible AccountBalance (r:2 w:2)508 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)509 /// Storage: Nonfungible Allowance (r:201 w:0)510 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)511 /// Storage: Nonfungible Owned (r:0 w:201)512 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)513 /// Storage: Nonfungible TokenProperties (r:0 w:201)514 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)515 /// The range of component `b` is `[0, 200]`.516 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {517 // Proof Size summary in bytes:518 // Measured: `1467 + b * (58 ±0)`519 // Estimated: `24230 + b * (10097 ±0)`520 // Minimum execution time: 31_734_000 picoseconds.521 Weight::from_parts(32_162_000, 24230)522 // Standard Error: 210_514523 .saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into()))524 .saturating_add(RocksDbWeight::get().reads(7_u64))525 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))526 .saturating_add(RocksDbWeight::get().writes(6_u64))527 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))528 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))529 }530 /// Storage: Nonfungible TokenData (r:1 w:1)531 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)532 /// Storage: Nonfungible AccountBalance (r:2 w:2)533 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)534 /// Storage: Nonfungible Allowance (r:1 w:0)535 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)536 /// Storage: Nonfungible Owned (r:0 w:2)537 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)538 fn transfer_raw() -> Weight {539 // Proof Size summary in bytes:540 // Measured: `380`541 // Estimated: `13114`542 // Minimum execution time: 18_305_000 picoseconds.543 Weight::from_parts(18_859_000, 13114)544 .saturating_add(RocksDbWeight::get().reads(4_u64))545 .saturating_add(RocksDbWeight::get().writes(5_u64))546 }547 /// Storage: Nonfungible TokenData (r:1 w:0)548 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)549 /// Storage: Nonfungible Allowance (r:1 w:1)550 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)551 fn approve() -> Weight {552 // Proof Size summary in bytes:553 // Measured: `326`554 // Estimated: `7044`555 // Minimum execution time: 10_977_000 picoseconds.556 Weight::from_parts(11_184_000, 7044)557 .saturating_add(RocksDbWeight::get().reads(2_u64))558 .saturating_add(RocksDbWeight::get().writes(1_u64))559 }560 /// Storage: Nonfungible TokenData (r:1 w:0)561 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)562 /// Storage: Nonfungible Allowance (r:1 w:1)563 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)564 fn approve_from() -> Weight {565 // Proof Size summary in bytes:566 // Measured: `313`567 // Estimated: `7044`568 // Minimum execution time: 11_456_000 picoseconds.569 Weight::from_parts(11_731_000, 7044)570 .saturating_add(RocksDbWeight::get().reads(2_u64))571 .saturating_add(RocksDbWeight::get().writes(1_u64))572 }573 /// Storage: Nonfungible Allowance (r:1 w:0)574 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)575 fn check_allowed_raw() -> Weight {576 // Proof Size summary in bytes:577 // Measured: `362`578 // Estimated: `3522`579 // Minimum execution time: 5_771_000 picoseconds.580 Weight::from_parts(5_972_000, 3522)581 .saturating_add(RocksDbWeight::get().reads(1_u64))582 }583 /// Storage: Nonfungible Allowance (r:1 w:1)584 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)585 /// Storage: Nonfungible TokenData (r:1 w:1)586 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)587 /// Storage: Nonfungible TokenChildren (r:1 w:0)588 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)589 /// Storage: Nonfungible TokensBurnt (r:1 w:1)590 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)591 /// Storage: Nonfungible AccountBalance (r:1 w:1)592 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)593 /// Storage: Nonfungible Owned (r:0 w:1)594 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)595 /// Storage: Nonfungible TokenProperties (r:0 w:1)596 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)597 fn burn_from() -> Weight {598 // Proof Size summary in bytes:599 // Measured: `463`600 // Estimated: `17561`601 // Minimum execution time: 30_633_000 picoseconds.602 Weight::from_parts(31_136_000, 17561)603 .saturating_add(RocksDbWeight::get().reads(5_u64))604 .saturating_add(RocksDbWeight::get().writes(6_u64))605 }606 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)607 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)608 /// The range of component `b` is `[0, 64]`.609 fn set_token_property_permissions(b: u32, ) -> Weight {610 // Proof Size summary in bytes:611 // Measured: `281`612 // Estimated: `20191`613 // Minimum execution time: 2_300_000 picoseconds.614 Weight::from_parts(2_382_000, 20191)615 // Standard Error: 45_076616 .saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into()))617 .saturating_add(RocksDbWeight::get().reads(1_u64))618 .saturating_add(RocksDbWeight::get().writes(1_u64))619 }620 /// Storage: Nonfungible TokenProperties (r:1 w:1)621 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)622 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)623 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)624 /// The range of component `b` is `[0, 64]`.625 fn set_token_properties(b: u32, ) -> Weight {626 // Proof Size summary in bytes:627 // Measured: `584 + b * (261 ±0)`628 // Estimated: `56460`629 // Minimum execution time: 12_422_000 picoseconds.630 Weight::from_parts(5_523_689, 56460)631 // Standard Error: 74_137632 .saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into()))633 .saturating_add(RocksDbWeight::get().reads(2_u64))634 .saturating_add(RocksDbWeight::get().writes(1_u64))635 }636 /// Storage: Nonfungible TokenProperties (r:1 w:1)637 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)638 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)639 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)640 /// The range of component `b` is `[0, 64]`.641 fn delete_token_properties(b: u32, ) -> Weight {642 // Proof Size summary in bytes:643 // Measured: `589 + b * (33291 ±0)`644 // Estimated: `56460`645 // Minimum execution time: 12_006_000 picoseconds.646 Weight::from_parts(12_216_000, 56460)647 // Standard Error: 83_431648 .saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into()))649 .saturating_add(RocksDbWeight::get().reads(2_u64))650 .saturating_add(RocksDbWeight::get().writes(1_u64))651 }652 /// Storage: Nonfungible TokenData (r:1 w:0)653 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)654 fn token_owner() -> Weight {655 // Proof Size summary in bytes:656 // Measured: `326`657 // Estimated: `3522`658 // Minimum execution time: 4_827_000 picoseconds.659 Weight::from_parts(4_984_000, 3522)660 .saturating_add(RocksDbWeight::get().reads(1_u64))661 }662 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)663 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)664 fn set_allowance_for_all() -> Weight {665 // Proof Size summary in bytes:666 // Measured: `0`667 // Estimated: `0`668 // Minimum execution time: 6_151_000 picoseconds.669 Weight::from_parts(6_394_000, 0)670 .saturating_add(RocksDbWeight::get().writes(1_u64))671 }672 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)673 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)674 fn allowance_for_all() -> Weight {675 // Proof Size summary in bytes:676 // Measured: `109`677 // Estimated: `3576`678 // Minimum execution time: 3_791_000 picoseconds.679 Weight::from_parts(3_950_000, 3576)680 .saturating_add(RocksDbWeight::get().reads(1_u64))681 }682 /// Storage: Nonfungible TokenProperties (r:1 w:1)683 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)684 fn repair_item() -> Weight {685 // Proof Size summary in bytes:686 // Measured: `300`687 // Estimated: `36269`688 // Minimum execution time: 5_364_000 picoseconds.689 Weight::from_parts(5_539_000, 36269)690 .saturating_add(RocksDbWeight::get().reads(1_u64))691 .saturating_add(RocksDbWeight::get().writes(1_u64))692 }693}694difftreelog
source
pallets/nonfungible/src/weights.rs36.8 KiBsourcehistory