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-13, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-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 transfer_raw() -> Weight;41 fn approve() -> Weight;42 fn approve_from() -> Weight;43 fn check_allowed_raw() -> Weight;44 fn burn_from() -> Weight;45 fn load_token_properties() -> Weight;46 fn write_token_properties(b: u32, ) -> Weight;47 fn set_token_property_permissions(b: u32, ) -> Weight;48 fn set_allowance_for_all() -> Weight;49 fn allowance_for_all() -> Weight;50 fn repair_item() -> Weight;51}5253/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.54pub struct SubstrateWeight<T>(PhantomData<T>);55impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {56 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)57 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)58 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)59 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)60 /// Storage: `Nonfungible::TokenData` (r:0 w:1)61 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)62 /// Storage: `Nonfungible::Owned` (r:0 w:1)63 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)64 fn create_item() -> Weight {65 // Proof Size summary in bytes:66 // Measured: `142`67 // Estimated: `3530`68 // Minimum execution time: 25_209_000 picoseconds.69 Weight::from_parts(25_648_000, 3530)70 .saturating_add(T::DbWeight::get().reads(2_u64))71 .saturating_add(T::DbWeight::get().writes(4_u64))72 }73 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)74 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)75 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)76 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)77 /// Storage: `Nonfungible::TokenData` (r:0 w:200)78 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)79 /// Storage: `Nonfungible::Owned` (r:0 w:200)80 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)81 /// The range of component `b` is `[0, 200]`.82 fn create_multiple_items(b: u32, ) -> Weight {83 // Proof Size summary in bytes:84 // Measured: `142`85 // Estimated: `3530`86 // Minimum execution time: 6_239_000 picoseconds.87 Weight::from_parts(11_021_733, 3530)88 // Standard Error: 3_01389 .saturating_add(Weight::from_parts(9_580_947, 0).saturating_mul(b.into()))90 .saturating_add(T::DbWeight::get().reads(2_u64))91 .saturating_add(T::DbWeight::get().writes(2_u64))92 .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))93 }94 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)95 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)96 /// Storage: `Nonfungible::AccountBalance` (r:200 w:200)97 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)98 /// Storage: `Nonfungible::TokenData` (r:0 w:200)99 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)100 /// Storage: `Nonfungible::Owned` (r:0 w:200)101 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)102 /// The range of component `b` is `[0, 200]`.103 fn create_multiple_items_ex(b: u32, ) -> Weight {104 // Proof Size summary in bytes:105 // Measured: `142`106 // Estimated: `3481 + b * (2540 ±0)`107 // Minimum execution time: 6_278_000 picoseconds.108 Weight::from_parts(5_169_950, 3481)109 // Standard Error: 3_419110 .saturating_add(Weight::from_parts(13_514_569, 0).saturating_mul(b.into()))111 .saturating_add(T::DbWeight::get().reads(1_u64))112 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))113 .saturating_add(T::DbWeight::get().writes(1_u64))114 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))115 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))116 }117 /// Storage: `Nonfungible::TokenData` (r:1 w:1)118 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)119 /// Storage: `Nonfungible::TokenChildren` (r:1 w:0)120 /// Proof: `Nonfungible::TokenChildren` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)121 /// Storage: `Nonfungible::TokensBurnt` (r:1 w:1)122 /// Proof: `Nonfungible::TokensBurnt` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)123 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)124 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)125 /// Storage: `Nonfungible::Allowance` (r:1 w:0)126 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)127 /// Storage: `Nonfungible::Owned` (r:0 w:1)128 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)129 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)130 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)131 fn burn_item() -> Weight {132 // Proof Size summary in bytes:133 // Measured: `380`134 // Estimated: `3530`135 // Minimum execution time: 39_015_000 picoseconds.136 Weight::from_parts(39_562_000, 3530)137 .saturating_add(T::DbWeight::get().reads(5_u64))138 .saturating_add(T::DbWeight::get().writes(5_u64))139 }140 /// Storage: `Nonfungible::TokenData` (r:1 w:1)141 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)142 /// Storage: `Nonfungible::AccountBalance` (r:2 w:2)143 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)144 /// Storage: `Nonfungible::Allowance` (r:1 w:0)145 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)146 /// Storage: `Nonfungible::Owned` (r:0 w:2)147 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)148 fn transfer_raw() -> Weight {149 // Proof Size summary in bytes:150 // Measured: `380`151 // Estimated: `6070`152 // Minimum execution time: 32_930_000 picoseconds.153 Weight::from_parts(33_398_000, 6070)154 .saturating_add(T::DbWeight::get().reads(4_u64))155 .saturating_add(T::DbWeight::get().writes(5_u64))156 }157 /// Storage: `Nonfungible::TokenData` (r:1 w:0)158 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)159 /// Storage: `Nonfungible::Allowance` (r:1 w:1)160 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)161 fn approve() -> Weight {162 // Proof Size summary in bytes:163 // Measured: `326`164 // Estimated: `3522`165 // Minimum execution time: 17_411_000 picoseconds.166 Weight::from_parts(17_790_000, 3522)167 .saturating_add(T::DbWeight::get().reads(2_u64))168 .saturating_add(T::DbWeight::get().writes(1_u64))169 }170 /// Storage: `Nonfungible::TokenData` (r:1 w:0)171 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)172 /// Storage: `Nonfungible::Allowance` (r:1 w:1)173 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)174 fn approve_from() -> Weight {175 // Proof Size summary in bytes:176 // Measured: `313`177 // Estimated: `3522`178 // Minimum execution time: 17_707_000 picoseconds.179 Weight::from_parts(18_035_000, 3522)180 .saturating_add(T::DbWeight::get().reads(2_u64))181 .saturating_add(T::DbWeight::get().writes(1_u64))182 }183 /// Storage: `Nonfungible::Allowance` (r:1 w:0)184 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)185 fn check_allowed_raw() -> Weight {186 // Proof Size summary in bytes:187 // Measured: `362`188 // Estimated: `3522`189 // Minimum execution time: 6_353_000 picoseconds.190 Weight::from_parts(6_515_000, 3522)191 .saturating_add(T::DbWeight::get().reads(1_u64))192 }193 /// Storage: `Nonfungible::Allowance` (r:1 w:1)194 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)195 /// Storage: `Nonfungible::TokenData` (r:1 w:1)196 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)197 /// Storage: `Nonfungible::TokenChildren` (r:1 w:0)198 /// Proof: `Nonfungible::TokenChildren` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)199 /// Storage: `Nonfungible::TokensBurnt` (r:1 w:1)200 /// Proof: `Nonfungible::TokensBurnt` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)201 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)202 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)203 /// Storage: `Nonfungible::Owned` (r:0 w:1)204 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)205 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)206 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)207 fn burn_from() -> Weight {208 // Proof Size summary in bytes:209 // Measured: `463`210 // Estimated: `3530`211 // Minimum execution time: 47_086_000 picoseconds.212 Weight::from_parts(47_687_000, 3530)213 .saturating_add(T::DbWeight::get().reads(5_u64))214 .saturating_add(T::DbWeight::get().writes(6_u64))215 }216 /// Storage: `Nonfungible::TokenProperties` (r:1 w:0)217 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)218 fn load_token_properties() -> Weight {219 // Proof Size summary in bytes:220 // Measured: `279`221 // Estimated: `36269`222 // Minimum execution time: 4_868_000 picoseconds.223 Weight::from_parts(4_994_000, 36269)224 .saturating_add(T::DbWeight::get().reads(1_u64))225 }226 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)227 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)228 /// The range of component `b` is `[0, 64]`.229 fn write_token_properties(b: u32, ) -> Weight {230 // Proof Size summary in bytes:231 // Measured: `0`232 // Estimated: `0`233 // Minimum execution time: 860_000 picoseconds.234 Weight::from_parts(886_000, 0)235 // Standard Error: 70_909236 .saturating_add(Weight::from_parts(38_734_650, 0).saturating_mul(b.into()))237 .saturating_add(T::DbWeight::get().writes(1_u64))238 }239 /// Storage: `Common::CollectionPropertyPermissions` (r:1 w:1)240 /// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)241 /// The range of component `b` is `[0, 64]`.242 fn set_token_property_permissions(b: u32, ) -> Weight {243 // Proof Size summary in bytes:244 // Measured: `314`245 // Estimated: `20191`246 // Minimum execution time: 3_151_000 picoseconds.247 Weight::from_parts(3_276_000, 20191)248 // Standard Error: 169_159249 .saturating_add(Weight::from_parts(38_018_122, 0).saturating_mul(b.into()))250 .saturating_add(T::DbWeight::get().reads(1_u64))251 .saturating_add(T::DbWeight::get().writes(1_u64))252 }253 /// Storage: `Nonfungible::CollectionAllowance` (r:0 w:1)254 /// Proof: `Nonfungible::CollectionAllowance` (`max_values`: None, `max_size`: Some(111), added: 2586, mode: `MaxEncodedLen`)255 fn set_allowance_for_all() -> Weight {256 // Proof Size summary in bytes:257 // Measured: `0`258 // Estimated: `0`259 // Minimum execution time: 11_146_000 picoseconds.260 Weight::from_parts(11_344_000, 0)261 .saturating_add(T::DbWeight::get().writes(1_u64))262 }263 /// Storage: `Nonfungible::CollectionAllowance` (r:1 w:0)264 /// Proof: `Nonfungible::CollectionAllowance` (`max_values`: None, `max_size`: Some(111), added: 2586, mode: `MaxEncodedLen`)265 fn allowance_for_all() -> Weight {266 // Proof Size summary in bytes:267 // Measured: `142`268 // Estimated: `3576`269 // Minimum execution time: 5_413_000 picoseconds.270 Weight::from_parts(5_593_000, 3576)271 .saturating_add(T::DbWeight::get().reads(1_u64))272 }273 /// Storage: `Nonfungible::TokenProperties` (r:1 w:1)274 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)275 fn repair_item() -> Weight {276 // Proof Size summary in bytes:277 // Measured: `279`278 // Estimated: `36269`279 // Minimum execution time: 4_968_000 picoseconds.280 Weight::from_parts(5_138_000, 36269)281 .saturating_add(T::DbWeight::get().reads(1_u64))282 .saturating_add(T::DbWeight::get().writes(1_u64))283 }284}285286// For backwards compatibility and tests287impl WeightInfo for () {288 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)289 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)290 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)291 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)292 /// Storage: `Nonfungible::TokenData` (r:0 w:1)293 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)294 /// Storage: `Nonfungible::Owned` (r:0 w:1)295 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)296 fn create_item() -> Weight {297 // Proof Size summary in bytes:298 // Measured: `142`299 // Estimated: `3530`300 // Minimum execution time: 25_209_000 picoseconds.301 Weight::from_parts(25_648_000, 3530)302 .saturating_add(RocksDbWeight::get().reads(2_u64))303 .saturating_add(RocksDbWeight::get().writes(4_u64))304 }305 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)306 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)307 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)308 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)309 /// Storage: `Nonfungible::TokenData` (r:0 w:200)310 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)311 /// Storage: `Nonfungible::Owned` (r:0 w:200)312 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)313 /// The range of component `b` is `[0, 200]`.314 fn create_multiple_items(b: u32, ) -> Weight {315 // Proof Size summary in bytes:316 // Measured: `142`317 // Estimated: `3530`318 // Minimum execution time: 6_239_000 picoseconds.319 Weight::from_parts(11_021_733, 3530)320 // Standard Error: 3_013321 .saturating_add(Weight::from_parts(9_580_947, 0).saturating_mul(b.into()))322 .saturating_add(RocksDbWeight::get().reads(2_u64))323 .saturating_add(RocksDbWeight::get().writes(2_u64))324 .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))325 }326 /// Storage: `Nonfungible::TokensMinted` (r:1 w:1)327 /// Proof: `Nonfungible::TokensMinted` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)328 /// Storage: `Nonfungible::AccountBalance` (r:200 w:200)329 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)330 /// Storage: `Nonfungible::TokenData` (r:0 w:200)331 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)332 /// Storage: `Nonfungible::Owned` (r:0 w:200)333 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)334 /// The range of component `b` is `[0, 200]`.335 fn create_multiple_items_ex(b: u32, ) -> Weight {336 // Proof Size summary in bytes:337 // Measured: `142`338 // Estimated: `3481 + b * (2540 ±0)`339 // Minimum execution time: 6_278_000 picoseconds.340 Weight::from_parts(5_169_950, 3481)341 // Standard Error: 3_419342 .saturating_add(Weight::from_parts(13_514_569, 0).saturating_mul(b.into()))343 .saturating_add(RocksDbWeight::get().reads(1_u64))344 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))345 .saturating_add(RocksDbWeight::get().writes(1_u64))346 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))347 .saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))348 }349 /// Storage: `Nonfungible::TokenData` (r:1 w:1)350 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)351 /// Storage: `Nonfungible::TokenChildren` (r:1 w:0)352 /// Proof: `Nonfungible::TokenChildren` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)353 /// Storage: `Nonfungible::TokensBurnt` (r:1 w:1)354 /// Proof: `Nonfungible::TokensBurnt` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)355 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)356 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)357 /// Storage: `Nonfungible::Allowance` (r:1 w:0)358 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)359 /// Storage: `Nonfungible::Owned` (r:0 w:1)360 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)361 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)362 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)363 fn burn_item() -> Weight {364 // Proof Size summary in bytes:365 // Measured: `380`366 // Estimated: `3530`367 // Minimum execution time: 39_015_000 picoseconds.368 Weight::from_parts(39_562_000, 3530)369 .saturating_add(RocksDbWeight::get().reads(5_u64))370 .saturating_add(RocksDbWeight::get().writes(5_u64))371 }372 /// Storage: `Nonfungible::TokenData` (r:1 w:1)373 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)374 /// Storage: `Nonfungible::AccountBalance` (r:2 w:2)375 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)376 /// Storage: `Nonfungible::Allowance` (r:1 w:0)377 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)378 /// Storage: `Nonfungible::Owned` (r:0 w:2)379 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)380 fn transfer_raw() -> Weight {381 // Proof Size summary in bytes:382 // Measured: `380`383 // Estimated: `6070`384 // Minimum execution time: 32_930_000 picoseconds.385 Weight::from_parts(33_398_000, 6070)386 .saturating_add(RocksDbWeight::get().reads(4_u64))387 .saturating_add(RocksDbWeight::get().writes(5_u64))388 }389 /// Storage: `Nonfungible::TokenData` (r:1 w:0)390 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)391 /// Storage: `Nonfungible::Allowance` (r:1 w:1)392 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)393 fn approve() -> Weight {394 // Proof Size summary in bytes:395 // Measured: `326`396 // Estimated: `3522`397 // Minimum execution time: 17_411_000 picoseconds.398 Weight::from_parts(17_790_000, 3522)399 .saturating_add(RocksDbWeight::get().reads(2_u64))400 .saturating_add(RocksDbWeight::get().writes(1_u64))401 }402 /// Storage: `Nonfungible::TokenData` (r:1 w:0)403 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)404 /// Storage: `Nonfungible::Allowance` (r:1 w:1)405 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)406 fn approve_from() -> Weight {407 // Proof Size summary in bytes:408 // Measured: `313`409 // Estimated: `3522`410 // Minimum execution time: 17_707_000 picoseconds.411 Weight::from_parts(18_035_000, 3522)412 .saturating_add(RocksDbWeight::get().reads(2_u64))413 .saturating_add(RocksDbWeight::get().writes(1_u64))414 }415 /// Storage: `Nonfungible::Allowance` (r:1 w:0)416 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)417 fn check_allowed_raw() -> Weight {418 // Proof Size summary in bytes:419 // Measured: `362`420 // Estimated: `3522`421 // Minimum execution time: 6_353_000 picoseconds.422 Weight::from_parts(6_515_000, 3522)423 .saturating_add(RocksDbWeight::get().reads(1_u64))424 }425 /// Storage: `Nonfungible::Allowance` (r:1 w:1)426 /// Proof: `Nonfungible::Allowance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)427 /// Storage: `Nonfungible::TokenData` (r:1 w:1)428 /// Proof: `Nonfungible::TokenData` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)429 /// Storage: `Nonfungible::TokenChildren` (r:1 w:0)430 /// Proof: `Nonfungible::TokenChildren` (`max_values`: None, `max_size`: Some(41), added: 2516, mode: `MaxEncodedLen`)431 /// Storage: `Nonfungible::TokensBurnt` (r:1 w:1)432 /// Proof: `Nonfungible::TokensBurnt` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)433 /// Storage: `Nonfungible::AccountBalance` (r:1 w:1)434 /// Proof: `Nonfungible::AccountBalance` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)435 /// Storage: `Nonfungible::Owned` (r:0 w:1)436 /// Proof: `Nonfungible::Owned` (`max_values`: None, `max_size`: Some(74), added: 2549, mode: `MaxEncodedLen`)437 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)438 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)439 fn burn_from() -> Weight {440 // Proof Size summary in bytes:441 // Measured: `463`442 // Estimated: `3530`443 // Minimum execution time: 47_086_000 picoseconds.444 Weight::from_parts(47_687_000, 3530)445 .saturating_add(RocksDbWeight::get().reads(5_u64))446 .saturating_add(RocksDbWeight::get().writes(6_u64))447 }448 /// Storage: `Nonfungible::TokenProperties` (r:1 w:0)449 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)450 fn load_token_properties() -> Weight {451 // Proof Size summary in bytes:452 // Measured: `279`453 // Estimated: `36269`454 // Minimum execution time: 4_868_000 picoseconds.455 Weight::from_parts(4_994_000, 36269)456 .saturating_add(RocksDbWeight::get().reads(1_u64))457 }458 /// Storage: `Nonfungible::TokenProperties` (r:0 w:1)459 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)460 /// The range of component `b` is `[0, 64]`.461 fn write_token_properties(b: u32, ) -> Weight {462 // Proof Size summary in bytes:463 // Measured: `0`464 // Estimated: `0`465 // Minimum execution time: 860_000 picoseconds.466 Weight::from_parts(886_000, 0)467 // Standard Error: 70_909468 .saturating_add(Weight::from_parts(38_734_650, 0).saturating_mul(b.into()))469 .saturating_add(RocksDbWeight::get().writes(1_u64))470 }471 /// Storage: `Common::CollectionPropertyPermissions` (r:1 w:1)472 /// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)473 /// The range of component `b` is `[0, 64]`.474 fn set_token_property_permissions(b: u32, ) -> Weight {475 // Proof Size summary in bytes:476 // Measured: `314`477 // Estimated: `20191`478 // Minimum execution time: 3_151_000 picoseconds.479 Weight::from_parts(3_276_000, 20191)480 // Standard Error: 169_159481 .saturating_add(Weight::from_parts(38_018_122, 0).saturating_mul(b.into()))482 .saturating_add(RocksDbWeight::get().reads(1_u64))483 .saturating_add(RocksDbWeight::get().writes(1_u64))484 }485 /// Storage: `Nonfungible::CollectionAllowance` (r:0 w:1)486 /// Proof: `Nonfungible::CollectionAllowance` (`max_values`: None, `max_size`: Some(111), added: 2586, mode: `MaxEncodedLen`)487 fn set_allowance_for_all() -> Weight {488 // Proof Size summary in bytes:489 // Measured: `0`490 // Estimated: `0`491 // Minimum execution time: 11_146_000 picoseconds.492 Weight::from_parts(11_344_000, 0)493 .saturating_add(RocksDbWeight::get().writes(1_u64))494 }495 /// Storage: `Nonfungible::CollectionAllowance` (r:1 w:0)496 /// Proof: `Nonfungible::CollectionAllowance` (`max_values`: None, `max_size`: Some(111), added: 2586, mode: `MaxEncodedLen`)497 fn allowance_for_all() -> Weight {498 // Proof Size summary in bytes:499 // Measured: `142`500 // Estimated: `3576`501 // Minimum execution time: 5_413_000 picoseconds.502 Weight::from_parts(5_593_000, 3576)503 .saturating_add(RocksDbWeight::get().reads(1_u64))504 }505 /// Storage: `Nonfungible::TokenProperties` (r:1 w:1)506 /// Proof: `Nonfungible::TokenProperties` (`max_values`: None, `max_size`: Some(32804), added: 35279, mode: `MaxEncodedLen`)507 fn repair_item() -> Weight {508 // Proof Size summary in bytes:509 // Measured: `279`510 // Estimated: `36269`511 // Minimum execution time: 4_968_000 picoseconds.512 Weight::from_parts(5_138_000, 36269)513 .saturating_add(RocksDbWeight::get().reads(1_u64))514 .saturating_add(RocksDbWeight::get().writes(1_u64))515 }516}517difftreelog
source
pallets/nonfungible/src/weights.rs26.2 KiBsourcehistory