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-09-30, STEPS: `50`, REPEAT: `400`, 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/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-nonfungible17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=40024// --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 init_token_properties(b: u32, ) -> Weight;50 fn delete_token_properties(b: u32, ) -> Weight;51 fn token_owner() -> Weight;52 fn set_allowance_for_all() -> Weight;53 fn allowance_for_all() -> Weight;54 fn repair_item() -> Weight;55}5657/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.58pub struct SubstrateWeight<T>(PhantomData<T>);59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {60 /// Storage: Nonfungible TokensMinted (r:1 w:1)61 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)62 /// Storage: Nonfungible AccountBalance (r:1 w:1)63 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)64 /// Storage: Nonfungible TokenData (r:0 w:1)65 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)66 /// Storage: Nonfungible Owned (r:0 w:1)67 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)68 fn create_item() -> Weight {69 // Proof Size summary in bytes:70 // Measured: `142`71 // Estimated: `3530`72 // Minimum execution time: 9_726_000 picoseconds.73 Weight::from_parts(10_059_000, 3530)74 .saturating_add(T::DbWeight::get().reads(2_u64))75 .saturating_add(T::DbWeight::get().writes(4_u64))76 }77 /// Storage: Nonfungible TokensMinted (r:1 w:1)78 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)79 /// Storage: Nonfungible AccountBalance (r:1 w:1)80 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)81 /// Storage: Nonfungible TokenData (r:0 w:200)82 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)83 /// Storage: Nonfungible Owned (r:0 w:200)84 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)85 /// The range of component `b` is `[0, 200]`.86 fn create_multiple_items(b: u32, ) -> Weight {87 // Proof Size summary in bytes:88 // Measured: `142`89 // Estimated: `3530`90 // Minimum execution time: 3_270_000 picoseconds.91 Weight::from_parts(3_693_659, 3530)92 // Standard Error: 25593 .saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into()))94 .saturating_add(T::DbWeight::get().reads(2_u64))95 .saturating_add(T::DbWeight::get().writes(2_u64))96 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))97 }98 /// Storage: Nonfungible TokensMinted (r:1 w:1)99 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)100 /// Storage: Nonfungible AccountBalance (r:200 w:200)101 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)102 /// Storage: Nonfungible TokenData (r:0 w:200)103 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)104 /// Storage: Nonfungible Owned (r:0 w:200)105 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)106 /// The range of component `b` is `[0, 200]`.107 fn create_multiple_items_ex(b: u32, ) -> Weight {108 // Proof Size summary in bytes:109 // Measured: `142`110 // Estimated: `3481 + b * (2540 ±0)`111 // Minimum execution time: 3_188_000 picoseconds.112 Weight::from_parts(3_307_000, 3481)113 // Standard Error: 567114 .saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into()))115 .saturating_add(T::DbWeight::get().reads(1_u64))116 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))117 .saturating_add(T::DbWeight::get().writes(1_u64))118 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))119 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))120 }121 /// Storage: Nonfungible TokenData (r:1 w:1)122 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)123 /// Storage: Nonfungible TokenChildren (r:1 w:0)124 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)125 /// Storage: Nonfungible TokensBurnt (r:1 w:1)126 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)127 /// Storage: Nonfungible AccountBalance (r:1 w:1)128 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)129 /// Storage: Nonfungible Allowance (r:1 w:0)130 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)131 /// Storage: Nonfungible Owned (r:0 w:1)132 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)133 /// Storage: Nonfungible TokenProperties (r:0 w:1)134 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)135 fn burn_item() -> Weight {136 // Proof Size summary in bytes:137 // Measured: `380`138 // Estimated: `3530`139 // Minimum execution time: 18_062_000 picoseconds.140 Weight::from_parts(18_433_000, 3530)141 .saturating_add(T::DbWeight::get().reads(5_u64))142 .saturating_add(T::DbWeight::get().writes(5_u64))143 }144 /// Storage: Nonfungible TokenChildren (r:1 w:0)145 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)146 /// Storage: Nonfungible TokenData (r:1 w:1)147 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)148 /// Storage: Nonfungible TokensBurnt (r:1 w:1)149 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)150 /// Storage: Nonfungible AccountBalance (r:1 w:1)151 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)152 /// Storage: Nonfungible Allowance (r:1 w:0)153 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)154 /// Storage: Nonfungible Owned (r:0 w:1)155 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)156 /// Storage: Nonfungible TokenProperties (r:0 w:1)157 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)158 fn burn_recursively_self_raw() -> Weight {159 // Proof Size summary in bytes:160 // Measured: `380`161 // Estimated: `3530`162 // Minimum execution time: 22_942_000 picoseconds.163 Weight::from_parts(23_527_000, 3530)164 .saturating_add(T::DbWeight::get().reads(5_u64))165 .saturating_add(T::DbWeight::get().writes(5_u64))166 }167 /// Storage: Nonfungible TokenChildren (r:401 w:200)168 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)169 /// Storage: Common CollectionById (r:1 w:0)170 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)171 /// Storage: Nonfungible TokenData (r:201 w:201)172 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)173 /// Storage: Nonfungible TokensBurnt (r:1 w:1)174 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)175 /// Storage: Nonfungible AccountBalance (r:2 w:2)176 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)177 /// Storage: Nonfungible Allowance (r:201 w:0)178 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)179 /// Storage: Nonfungible Owned (r:0 w:201)180 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)181 /// Storage: Nonfungible TokenProperties (r:0 w:201)182 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)183 /// The range of component `b` is `[0, 200]`.184 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {185 // Proof Size summary in bytes:186 // Measured: `1500 + b * (58 ±0)`187 // Estimated: `5874 + b * (5032 ±0)`188 // Minimum execution time: 22_709_000 picoseconds.189 Weight::from_parts(23_287_000, 5874)190 // Standard Error: 89_471191 .saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into()))192 .saturating_add(T::DbWeight::get().reads(7_u64))193 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))194 .saturating_add(T::DbWeight::get().writes(6_u64))195 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))196 .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))197 }198 /// Storage: Nonfungible TokenData (r:1 w:1)199 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)200 /// Storage: Nonfungible AccountBalance (r:2 w:2)201 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)202 /// Storage: Nonfungible Allowance (r:1 w:0)203 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)204 /// Storage: Nonfungible Owned (r:0 w:2)205 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)206 fn transfer_raw() -> Weight {207 // Proof Size summary in bytes:208 // Measured: `380`209 // Estimated: `6070`210 // Minimum execution time: 13_652_000 picoseconds.211 Weight::from_parts(13_981_000, 6070)212 .saturating_add(T::DbWeight::get().reads(4_u64))213 .saturating_add(T::DbWeight::get().writes(5_u64))214 }215 /// Storage: Nonfungible TokenData (r:1 w:0)216 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)217 /// Storage: Nonfungible Allowance (r:1 w:1)218 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)219 fn approve() -> Weight {220 // Proof Size summary in bytes:221 // Measured: `326`222 // Estimated: `3522`223 // Minimum execution time: 7_837_000 picoseconds.224 Weight::from_parts(8_113_000, 3522)225 .saturating_add(T::DbWeight::get().reads(2_u64))226 .saturating_add(T::DbWeight::get().writes(1_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_from() -> Weight {233 // Proof Size summary in bytes:234 // Measured: `313`235 // Estimated: `3522`236 // Minimum execution time: 7_769_000 picoseconds.237 Weight::from_parts(7_979_000, 3522)238 .saturating_add(T::DbWeight::get().reads(2_u64))239 .saturating_add(T::DbWeight::get().writes(1_u64))240 }241 /// Storage: Nonfungible Allowance (r:1 w:0)242 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)243 fn check_allowed_raw() -> Weight {244 // Proof Size summary in bytes:245 // Measured: `362`246 // Estimated: `3522`247 // Minimum execution time: 4_194_000 picoseconds.248 Weight::from_parts(4_353_000, 3522)249 .saturating_add(T::DbWeight::get().reads(1_u64))250 }251 /// Storage: Nonfungible Allowance (r:1 w:1)252 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)253 /// Storage: Nonfungible TokenData (r:1 w:1)254 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)255 /// Storage: Nonfungible TokenChildren (r:1 w:0)256 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)257 /// Storage: Nonfungible TokensBurnt (r:1 w:1)258 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)259 /// Storage: Nonfungible AccountBalance (r:1 w:1)260 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)261 /// Storage: Nonfungible Owned (r:0 w:1)262 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)263 /// Storage: Nonfungible TokenProperties (r:0 w:1)264 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)265 fn burn_from() -> Weight {266 // Proof Size summary in bytes:267 // Measured: `463`268 // Estimated: `3530`269 // Minimum execution time: 21_978_000 picoseconds.270 Weight::from_parts(22_519_000, 3530)271 .saturating_add(T::DbWeight::get().reads(5_u64))272 .saturating_add(T::DbWeight::get().writes(6_u64))273 }274 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)275 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)276 /// The range of component `b` is `[0, 64]`.277 fn set_token_property_permissions(b: u32, ) -> Weight {278 // Proof Size summary in bytes:279 // Measured: `314`280 // Estimated: `20191`281 // Minimum execution time: 1_457_000 picoseconds.282 Weight::from_parts(1_563_000, 20191)283 // Standard Error: 14_041284 .saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into()))285 .saturating_add(T::DbWeight::get().reads(1_u64))286 .saturating_add(T::DbWeight::get().writes(1_u64))287 }288 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)289 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)290 /// Storage: Nonfungible TokenProperties (r:1 w:1)291 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)292 /// Storage: Nonfungible TokenData (r:1 w:0)293 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)294 /// The range of component `b` is `[0, 64]`.295 fn set_token_properties(b: u32, ) -> Weight {296 // Proof Size summary in bytes:297 // Measured: `640 + b * (261 ±0)`298 // Estimated: `36269`299 // Minimum execution time: 963_000 picoseconds.300 Weight::from_parts(1_126_511, 36269)301 // Standard Error: 9_175302 .saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into()))303 .saturating_add(T::DbWeight::get().reads(3_u64))304 .saturating_add(T::DbWeight::get().writes(1_u64))305 }306 /// Storage: Nonfungible TokenProperties (r:0 w:1)307 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)308 /// The range of component `b` is `[0, 64]`.309 fn init_token_properties(b: u32, ) -> Weight {310 // Proof Size summary in bytes:311 // Measured: `0`312 // Estimated: `0`313 // Minimum execution time: 194_000 picoseconds.314 Weight::from_parts(222_000, 0)315 // Standard Error: 7_295316 .saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into()))317 .saturating_add(T::DbWeight::get().writes(1_u64))318 }319 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)320 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)321 /// Storage: Nonfungible TokenData (r:1 w:0)322 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)323 /// Storage: Nonfungible TokenProperties (r:1 w:1)324 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)325 /// The range of component `b` is `[0, 64]`.326 fn delete_token_properties(b: u32, ) -> Weight {327 // Proof Size summary in bytes:328 // Measured: `699 + b * (33291 ±0)`329 // Estimated: `36269`330 // Minimum execution time: 992_000 picoseconds.331 Weight::from_parts(1_043_000, 36269)332 // Standard Error: 37_370333 .saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into()))334 .saturating_add(T::DbWeight::get().reads(3_u64))335 .saturating_add(T::DbWeight::get().writes(1_u64))336 }337 /// Storage: Nonfungible TokenData (r:1 w:0)338 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)339 fn token_owner() -> Weight {340 // Proof Size summary in bytes:341 // Measured: `326`342 // Estimated: `3522`343 // Minimum execution time: 3_743_000 picoseconds.344 Weight::from_parts(3_908_000, 3522)345 .saturating_add(T::DbWeight::get().reads(1_u64))346 }347 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)348 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)349 fn set_allowance_for_all() -> Weight {350 // Proof Size summary in bytes:351 // Measured: `0`352 // Estimated: `0`353 // Minimum execution time: 4_106_000 picoseconds.354 Weight::from_parts(4_293_000, 0)355 .saturating_add(T::DbWeight::get().writes(1_u64))356 }357 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)358 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)359 fn allowance_for_all() -> Weight {360 // Proof Size summary in bytes:361 // Measured: `142`362 // Estimated: `3576`363 // Minimum execution time: 2_775_000 picoseconds.364 Weight::from_parts(2_923_000, 3576)365 .saturating_add(T::DbWeight::get().reads(1_u64))366 }367 /// Storage: Nonfungible TokenProperties (r:1 w:1)368 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)369 fn repair_item() -> Weight {370 // Proof Size summary in bytes:371 // Measured: `279`372 // Estimated: `36269`373 // Minimum execution time: 3_033_000 picoseconds.374 Weight::from_parts(3_174_000, 36269)375 .saturating_add(T::DbWeight::get().reads(1_u64))376 .saturating_add(T::DbWeight::get().writes(1_u64))377 }378}379380// For backwards compatibility and tests381impl WeightInfo for () {382 /// Storage: Nonfungible TokensMinted (r:1 w:1)383 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)384 /// Storage: Nonfungible AccountBalance (r:1 w:1)385 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, 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: `142`393 // Estimated: `3530`394 // Minimum execution time: 9_726_000 picoseconds.395 Weight::from_parts(10_059_000, 3530)396 .saturating_add(RocksDbWeight::get().reads(2_u64))397 .saturating_add(RocksDbWeight::get().writes(4_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 TokenData (r:0 w:200)404 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)405 /// Storage: Nonfungible Owned (r:0 w:200)406 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)407 /// The range of component `b` is `[0, 200]`.408 fn create_multiple_items(b: u32, ) -> Weight {409 // Proof Size summary in bytes:410 // Measured: `142`411 // Estimated: `3530`412 // Minimum execution time: 3_270_000 picoseconds.413 Weight::from_parts(3_693_659, 3530)414 // Standard Error: 255415 .saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into()))416 .saturating_add(RocksDbWeight::get().reads(2_u64))417 .saturating_add(RocksDbWeight::get().writes(2_u64))418 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))419 }420 /// Storage: Nonfungible TokensMinted (r:1 w:1)421 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)422 /// Storage: Nonfungible AccountBalance (r:200 w:200)423 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)424 /// Storage: Nonfungible TokenData (r:0 w:200)425 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)426 /// Storage: Nonfungible Owned (r:0 w:200)427 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)428 /// The range of component `b` is `[0, 200]`.429 fn create_multiple_items_ex(b: u32, ) -> Weight {430 // Proof Size summary in bytes:431 // Measured: `142`432 // Estimated: `3481 + b * (2540 ±0)`433 // Minimum execution time: 3_188_000 picoseconds.434 Weight::from_parts(3_307_000, 3481)435 // Standard Error: 567436 .saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into()))437 .saturating_add(RocksDbWeight::get().reads(1_u64))438 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))439 .saturating_add(RocksDbWeight::get().writes(1_u64))440 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))441 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))442 }443 /// Storage: Nonfungible TokenData (r:1 w:1)444 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)445 /// Storage: Nonfungible TokenChildren (r:1 w:0)446 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)447 /// Storage: Nonfungible TokensBurnt (r:1 w:1)448 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)449 /// Storage: Nonfungible AccountBalance (r:1 w:1)450 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)451 /// Storage: Nonfungible Allowance (r:1 w:0)452 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)453 /// Storage: Nonfungible Owned (r:0 w:1)454 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)455 /// Storage: Nonfungible TokenProperties (r:0 w:1)456 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)457 fn burn_item() -> Weight {458 // Proof Size summary in bytes:459 // Measured: `380`460 // Estimated: `3530`461 // Minimum execution time: 18_062_000 picoseconds.462 Weight::from_parts(18_433_000, 3530)463 .saturating_add(RocksDbWeight::get().reads(5_u64))464 .saturating_add(RocksDbWeight::get().writes(5_u64))465 }466 /// Storage: Nonfungible TokenChildren (r:1 w:0)467 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)468 /// Storage: Nonfungible TokenData (r:1 w:1)469 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)470 /// Storage: Nonfungible TokensBurnt (r:1 w:1)471 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)472 /// Storage: Nonfungible AccountBalance (r:1 w:1)473 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)474 /// Storage: Nonfungible Allowance (r:1 w:0)475 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)476 /// Storage: Nonfungible Owned (r:0 w:1)477 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)478 /// Storage: Nonfungible TokenProperties (r:0 w:1)479 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)480 fn burn_recursively_self_raw() -> Weight {481 // Proof Size summary in bytes:482 // Measured: `380`483 // Estimated: `3530`484 // Minimum execution time: 22_942_000 picoseconds.485 Weight::from_parts(23_527_000, 3530)486 .saturating_add(RocksDbWeight::get().reads(5_u64))487 .saturating_add(RocksDbWeight::get().writes(5_u64))488 }489 /// Storage: Nonfungible TokenChildren (r:401 w:200)490 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)491 /// Storage: Common CollectionById (r:1 w:0)492 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)493 /// Storage: Nonfungible TokenData (r:201 w:201)494 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)495 /// Storage: Nonfungible TokensBurnt (r:1 w:1)496 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)497 /// Storage: Nonfungible AccountBalance (r:2 w:2)498 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)499 /// Storage: Nonfungible Allowance (r:201 w:0)500 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)501 /// Storage: Nonfungible Owned (r:0 w:201)502 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)503 /// Storage: Nonfungible TokenProperties (r:0 w:201)504 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)505 /// The range of component `b` is `[0, 200]`.506 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {507 // Proof Size summary in bytes:508 // Measured: `1500 + b * (58 ±0)`509 // Estimated: `5874 + b * (5032 ±0)`510 // Minimum execution time: 22_709_000 picoseconds.511 Weight::from_parts(23_287_000, 5874)512 // Standard Error: 89_471513 .saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into()))514 .saturating_add(RocksDbWeight::get().reads(7_u64))515 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))516 .saturating_add(RocksDbWeight::get().writes(6_u64))517 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))518 .saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))519 }520 /// Storage: Nonfungible TokenData (r:1 w:1)521 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)522 /// Storage: Nonfungible AccountBalance (r:2 w:2)523 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)524 /// Storage: Nonfungible Allowance (r:1 w:0)525 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)526 /// Storage: Nonfungible Owned (r:0 w:2)527 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)528 fn transfer_raw() -> Weight {529 // Proof Size summary in bytes:530 // Measured: `380`531 // Estimated: `6070`532 // Minimum execution time: 13_652_000 picoseconds.533 Weight::from_parts(13_981_000, 6070)534 .saturating_add(RocksDbWeight::get().reads(4_u64))535 .saturating_add(RocksDbWeight::get().writes(5_u64))536 }537 /// Storage: Nonfungible TokenData (r:1 w:0)538 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)539 /// Storage: Nonfungible Allowance (r:1 w:1)540 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)541 fn approve() -> Weight {542 // Proof Size summary in bytes:543 // Measured: `326`544 // Estimated: `3522`545 // Minimum execution time: 7_837_000 picoseconds.546 Weight::from_parts(8_113_000, 3522)547 .saturating_add(RocksDbWeight::get().reads(2_u64))548 .saturating_add(RocksDbWeight::get().writes(1_u64))549 }550 /// Storage: Nonfungible TokenData (r:1 w:0)551 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)552 /// Storage: Nonfungible Allowance (r:1 w:1)553 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)554 fn approve_from() -> Weight {555 // Proof Size summary in bytes:556 // Measured: `313`557 // Estimated: `3522`558 // Minimum execution time: 7_769_000 picoseconds.559 Weight::from_parts(7_979_000, 3522)560 .saturating_add(RocksDbWeight::get().reads(2_u64))561 .saturating_add(RocksDbWeight::get().writes(1_u64))562 }563 /// Storage: Nonfungible Allowance (r:1 w:0)564 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)565 fn check_allowed_raw() -> Weight {566 // Proof Size summary in bytes:567 // Measured: `362`568 // Estimated: `3522`569 // Minimum execution time: 4_194_000 picoseconds.570 Weight::from_parts(4_353_000, 3522)571 .saturating_add(RocksDbWeight::get().reads(1_u64))572 }573 /// Storage: Nonfungible Allowance (r:1 w:1)574 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)575 /// Storage: Nonfungible TokenData (r:1 w:1)576 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)577 /// Storage: Nonfungible TokenChildren (r:1 w:0)578 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)579 /// Storage: Nonfungible TokensBurnt (r:1 w:1)580 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)581 /// Storage: Nonfungible AccountBalance (r:1 w:1)582 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)583 /// Storage: Nonfungible Owned (r:0 w:1)584 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)585 /// Storage: Nonfungible TokenProperties (r:0 w:1)586 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)587 fn burn_from() -> Weight {588 // Proof Size summary in bytes:589 // Measured: `463`590 // Estimated: `3530`591 // Minimum execution time: 21_978_000 picoseconds.592 Weight::from_parts(22_519_000, 3530)593 .saturating_add(RocksDbWeight::get().reads(5_u64))594 .saturating_add(RocksDbWeight::get().writes(6_u64))595 }596 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)597 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)598 /// The range of component `b` is `[0, 64]`.599 fn set_token_property_permissions(b: u32, ) -> Weight {600 // Proof Size summary in bytes:601 // Measured: `314`602 // Estimated: `20191`603 // Minimum execution time: 1_457_000 picoseconds.604 Weight::from_parts(1_563_000, 20191)605 // Standard Error: 14_041606 .saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into()))607 .saturating_add(RocksDbWeight::get().reads(1_u64))608 .saturating_add(RocksDbWeight::get().writes(1_u64))609 }610 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)611 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)612 /// Storage: Nonfungible TokenProperties (r:1 w:1)613 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)614 /// Storage: Nonfungible TokenData (r:1 w:0)615 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)616 /// The range of component `b` is `[0, 64]`.617 fn set_token_properties(b: u32, ) -> Weight {618 // Proof Size summary in bytes:619 // Measured: `640 + b * (261 ±0)`620 // Estimated: `36269`621 // Minimum execution time: 963_000 picoseconds.622 Weight::from_parts(1_126_511, 36269)623 // Standard Error: 9_175624 .saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into()))625 .saturating_add(RocksDbWeight::get().reads(3_u64))626 .saturating_add(RocksDbWeight::get().writes(1_u64))627 }628 /// Storage: Nonfungible TokenProperties (r:0 w:1)629 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)630 /// The range of component `b` is `[0, 64]`.631 fn init_token_properties(b: u32, ) -> Weight {632 // Proof Size summary in bytes:633 // Measured: `0`634 // Estimated: `0`635 // Minimum execution time: 194_000 picoseconds.636 Weight::from_parts(222_000, 0)637 // Standard Error: 7_295638 .saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into()))639 .saturating_add(RocksDbWeight::get().writes(1_u64))640 }641 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)642 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)643 /// Storage: Nonfungible TokenData (r:1 w:0)644 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)645 /// Storage: Nonfungible TokenProperties (r:1 w:1)646 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)647 /// The range of component `b` is `[0, 64]`.648 fn delete_token_properties(b: u32, ) -> Weight {649 // Proof Size summary in bytes:650 // Measured: `699 + b * (33291 ±0)`651 // Estimated: `36269`652 // Minimum execution time: 992_000 picoseconds.653 Weight::from_parts(1_043_000, 36269)654 // Standard Error: 37_370655 .saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into()))656 .saturating_add(RocksDbWeight::get().reads(3_u64))657 .saturating_add(RocksDbWeight::get().writes(1_u64))658 }659 /// Storage: Nonfungible TokenData (r:1 w:0)660 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)661 fn token_owner() -> Weight {662 // Proof Size summary in bytes:663 // Measured: `326`664 // Estimated: `3522`665 // Minimum execution time: 3_743_000 picoseconds.666 Weight::from_parts(3_908_000, 3522)667 .saturating_add(RocksDbWeight::get().reads(1_u64))668 }669 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)670 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)671 fn set_allowance_for_all() -> Weight {672 // Proof Size summary in bytes:673 // Measured: `0`674 // Estimated: `0`675 // Minimum execution time: 4_106_000 picoseconds.676 Weight::from_parts(4_293_000, 0)677 .saturating_add(RocksDbWeight::get().writes(1_u64))678 }679 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)680 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)681 fn allowance_for_all() -> Weight {682 // Proof Size summary in bytes:683 // Measured: `142`684 // Estimated: `3576`685 // Minimum execution time: 2_775_000 picoseconds.686 Weight::from_parts(2_923_000, 3576)687 .saturating_add(RocksDbWeight::get().reads(1_u64))688 }689 /// Storage: Nonfungible TokenProperties (r:1 w:1)690 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)691 fn repair_item() -> Weight {692 // Proof Size summary in bytes:693 // Measured: `279`694 // Estimated: `36269`695 // Minimum execution time: 3_033_000 picoseconds.696 Weight::from_parts(3_174_000, 36269)697 .saturating_add(RocksDbWeight::get().reads(1_u64))698 .saturating_add(RocksDbWeight::get().writes(1_u64))699 }700}701difftreelog
source
pallets/nonfungible/src/weights.rs36.1 KiBsourcehistory