difftreelog
refactor(weight) bench rename `transfer` to `transfer_raw`
in: master
8 files changed
pallets/fungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/fungible/src/benchmarking.rs
+++ b/pallets/fungible/src/benchmarking.rs
@@ -66,7 +66,7 @@
<Pallet<T>>::create_item(&collection, &owner, (burner.clone(), 200), &Unlimited)?;
}: {<Pallet<T>>::burn(&collection, &burner, 100)?}
- transfer {
+ transfer_raw {
bench_init!{
owner: sub; collection: collection(owner);
owner: cross_from_sub; sender: cross_sub; to: cross_sub;
pallets/fungible/src/common.rsdiffbeforeafterboth--- a/pallets/fungible/src/common.rs
+++ b/pallets/fungible/src/common.rs
@@ -78,7 +78,7 @@
}
fn transfer() -> Weight {
- <SelfWeightOf<T>>::transfer() + <PalletCommonWeightOf<T>>::check_accesslist() * 2
+ <SelfWeightOf<T>>::transfer_raw() + <PalletCommonWeightOf<T>>::check_accesslist() * 2
}
fn approve() -> Weight {
pallets/fungible/src/lib.rsdiffbeforeafterboth--- a/pallets/fungible/src/lib.rs
+++ b/pallets/fungible/src/lib.rs
@@ -400,7 +400,7 @@
<CommonError<T>>::TransferNotAllowed,
);
- let mut actual_weight = <SelfWeightOf<T>>::transfer();
+ let mut actual_weight = <SelfWeightOf<T>>::transfer_raw();
if collection.permissions.access() == AccessMode::AllowList {
collection.check_allowlist(from)?;
pallets/fungible/src/weights.rsdiffbeforeafterboth--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -37,7 +37,7 @@
fn create_item() -> Weight;
fn create_multiple_items_ex(b: u32, ) -> Weight;
fn burn_item() -> Weight;
- fn transfer() -> Weight;
+ fn transfer_raw() -> Weight;
fn approve() -> Weight;
fn approve_from() -> Weight;
fn check_allowed_raw() -> Weight;
@@ -93,16 +93,11 @@
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
- /// Storage: Fungible Balance (r:2 w:2)
- /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
- fn transfer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `182`
- // Estimated: `5104`
- // Minimum execution time: 13_832_000 picoseconds.
- Weight::from_parts(14_064_000, 5104)
- .saturating_add(T::DbWeight::get().reads(2_u64))
- .saturating_add(T::DbWeight::get().writes(2_u64))
+ // Storage: Fungible Balance (r:2 w:2)
+ fn transfer_raw() -> Weight {
+ Weight::from_ref_time(12_041_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(2 as u64))
+ .saturating_add(T::DbWeight::get().writes(2 as u64))
}
/// Storage: Fungible Balance (r:1 w:0)
/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
@@ -205,16 +200,11 @@
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
- /// Storage: Fungible Balance (r:2 w:2)
- /// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
- fn transfer() -> Weight {
- // Proof Size summary in bytes:
- // Measured: `182`
- // Estimated: `5104`
- // Minimum execution time: 13_832_000 picoseconds.
- Weight::from_parts(14_064_000, 5104)
- .saturating_add(RocksDbWeight::get().reads(2_u64))
- .saturating_add(RocksDbWeight::get().writes(2_u64))
+ // Storage: Fungible Balance (r:2 w:2)
+ fn transfer_raw() -> Weight {
+ Weight::from_ref_time(12_041_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(2 as u64))
+ .saturating_add(RocksDbWeight::get().writes(2 as u64))
}
/// Storage: Fungible Balance (r:1 w:0)
/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)
pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -121,7 +121,7 @@
}
}: {<Pallet<T>>::burn_recursively(&collection, &burner, item, &Unlimited, &Unlimited)?}
- transfer {
+ transfer_raw {
bench_init!{
owner: sub; collection: collection(owner);
owner: cross_from_sub; sender: cross_sub; receiver: cross_sub;
pallets/nonfungible/src/common.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/common.rs
+++ b/pallets/nonfungible/src/common.rs
@@ -91,7 +91,7 @@
}
fn transfer() -> Weight {
- <SelfWeightOf<T>>::transfer() + <PalletCommonWeightOf<T>>::check_accesslist() * 2
+ <SelfWeightOf<T>>::transfer_raw() + <PalletCommonWeightOf<T>>::check_accesslist() * 2
}
fn approve() -> Weight {
pallets/nonfungible/src/lib.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -809,7 +809,7 @@
<CommonError<T>>::TransferNotAllowed
);
- let mut actual_weight = <SelfWeightOf<T>>::transfer();
+ let mut actual_weight = <SelfWeightOf<T>>::transfer_raw();
let token_data =
<TokenData<T>>::get((collection.id, token)).ok_or(<CommonError<T>>::TokenNotFound)?;
ensure!(&token_data.owner == from, <CommonError<T>>::NoPermission);
pallets/nonfungible/src/weights.rsdiffbeforeafterboth1// 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-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-nonfungible16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/nonfungible/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_nonfungible.36pub trait WeightInfo {37 fn create_item() -> Weight;38 fn create_multiple_items(b: u32, ) -> Weight;39 fn create_multiple_items_ex(b: u32, ) -> Weight;40 fn burn_item() -> Weight;41 fn burn_recursively_self_raw() -> Weight;42 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight;43 fn transfer() -> Weight;44 fn approve() -> Weight;45 fn approve_from() -> Weight;46 fn checks_allowed_raw() -> Weight;47 fn burn_from() -> Weight;48 fn set_token_property_permissions(b: u32, ) -> Weight;49 fn set_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 TokenProperties (r:1 w:1)65 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)66 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)67 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)68 /// Storage: Nonfungible TokenData (r:0 w:1)69 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)70 /// Storage: Nonfungible Owned (r:0 w:1)71 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)72 fn create_item() -> Weight {73 // Proof Size summary in bytes:74 // Measured: `390`75 // Estimated: `59511`76 // Minimum execution time: 23_081_000 picoseconds.77 Weight::from_parts(23_551_000, 59511)78 .saturating_add(T::DbWeight::get().reads(4_u64))79 .saturating_add(T::DbWeight::get().writes(5_u64))80 }81 /// Storage: Nonfungible TokensMinted (r:1 w:1)82 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)83 /// Storage: Nonfungible AccountBalance (r:1 w:1)84 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)85 /// Storage: Nonfungible TokenProperties (r:200 w:200)86 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)87 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)88 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)89 /// Storage: Nonfungible TokenData (r:0 w:200)90 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)91 /// Storage: Nonfungible Owned (r:0 w:200)92 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)93 /// The range of component `b` is `[0, 200]`.94 fn create_multiple_items(b: u32, ) -> Weight {95 // Proof Size summary in bytes:96 // Measured: `390`97 // Estimated: `24232 + b * (35279 ±0)`98 // Minimum execution time: 4_557_000 picoseconds.99 Weight::from_parts(5_994_058, 24232)100 // Standard Error: 4_326101 .saturating_add(Weight::from_parts(7_369_489, 0).saturating_mul(b.into()))102 .saturating_add(T::DbWeight::get().reads(3_u64))103 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))104 .saturating_add(T::DbWeight::get().writes(2_u64))105 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))106 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))107 }108 /// Storage: Nonfungible TokensMinted (r:1 w:1)109 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)110 /// Storage: Nonfungible AccountBalance (r:200 w:200)111 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)112 /// Storage: Nonfungible TokenProperties (r:200 w:200)113 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)114 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)115 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)116 /// Storage: Nonfungible TokenData (r:0 w:200)117 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)118 /// Storage: Nonfungible Owned (r:0 w:200)119 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)120 /// The range of component `b` is `[0, 200]`.121 fn create_multiple_items_ex(b: u32, ) -> Weight {122 // Proof Size summary in bytes:123 // Measured: `390`124 // Estimated: `21692 + b * (37819 ±0)`125 // Minimum execution time: 4_533_000 picoseconds.126 Weight::from_parts(2_822_660, 21692)127 // Standard Error: 3_650128 .saturating_add(Weight::from_parts(9_100_706, 0).saturating_mul(b.into()))129 .saturating_add(T::DbWeight::get().reads(2_u64))130 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))131 .saturating_add(T::DbWeight::get().writes(1_u64))132 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))133 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))134 }135 /// Storage: Nonfungible TokenData (r:1 w:1)136 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)137 /// Storage: Nonfungible TokenChildren (r:1 w:0)138 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)139 /// Storage: Nonfungible TokensBurnt (r:1 w:1)140 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)141 /// Storage: Nonfungible AccountBalance (r:1 w:1)142 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)143 /// Storage: Nonfungible Allowance (r:1 w:0)144 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)145 /// Storage: Nonfungible Owned (r:0 w:1)146 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)147 /// Storage: Nonfungible TokenProperties (r:0 w:1)148 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)149 fn burn_item() -> Weight {150 // Proof Size summary in bytes:151 // Measured: `412`152 // Estimated: `12611`153 // Minimum execution time: 23_528_000 picoseconds.154 Weight::from_parts(24_680_000, 12611)155 .saturating_add(T::DbWeight::get().reads(5_u64))156 .saturating_add(T::DbWeight::get().writes(5_u64))157 }158 /// Storage: Nonfungible TokenChildren (r:1 w:0)159 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)160 /// Storage: Nonfungible TokenData (r:1 w:1)161 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)162 /// Storage: Nonfungible TokensBurnt (r:1 w:1)163 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)164 /// Storage: Nonfungible AccountBalance (r:1 w:1)165 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)166 /// Storage: Nonfungible Allowance (r:1 w:0)167 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)168 /// Storage: Nonfungible Owned (r:0 w:1)169 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)170 /// Storage: Nonfungible TokenProperties (r:0 w:1)171 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)172 fn burn_recursively_self_raw() -> Weight {173 // Proof Size summary in bytes:174 // Measured: `412`175 // Estimated: `12611`176 // Minimum execution time: 29_770_000 picoseconds.177 Weight::from_parts(30_114_000, 12611)178 .saturating_add(T::DbWeight::get().reads(5_u64))179 .saturating_add(T::DbWeight::get().writes(5_u64))180 }181 /// Storage: Nonfungible TokenChildren (r:401 w:200)182 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)183 /// Storage: Common CollectionById (r:1 w:0)184 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)185 /// Storage: Nonfungible TokenData (r:201 w:201)186 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)187 /// Storage: Nonfungible TokensBurnt (r:1 w:1)188 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)189 /// Storage: Nonfungible AccountBalance (r:2 w:2)190 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)191 /// Storage: Nonfungible Allowance (r:201 w:0)192 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)193 /// Storage: Nonfungible Owned (r:0 w:201)194 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)195 /// Storage: Nonfungible TokenProperties (r:0 w:201)196 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)197 /// The range of component `b` is `[0, 200]`.198 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {199 // Proof Size summary in bytes:200 // Measured: `1530 + b * (58 ±0)`201 // Estimated: `18290 + b * (10097 ±0)`202 // Minimum execution time: 31_413_000 picoseconds.203 Weight::from_parts(31_865_000, 18290)204 // Standard Error: 980_032205 .saturating_add(Weight::from_parts(205_236_443, 0).saturating_mul(b.into()))206 .saturating_add(T::DbWeight::get().reads(7_u64))207 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))208 .saturating_add(T::DbWeight::get().writes(6_u64))209 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))210 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))211 }212 /// Storage: Nonfungible TokenData (r:1 w:1)213 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)214 /// Storage: Nonfungible AccountBalance (r:2 w:2)215 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)216 /// Storage: Nonfungible Allowance (r:1 w:0)217 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)218 /// Storage: Nonfungible Owned (r:0 w:2)219 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)220 fn transfer() -> Weight {221 // Proof Size summary in bytes:222 // Measured: `412`223 // Estimated: `10144`224 // Minimum execution time: 18_629_000 picoseconds.225 Weight::from_parts(18_997_000, 10144)226 .saturating_add(T::DbWeight::get().reads(4_u64))227 .saturating_add(T::DbWeight::get().writes(5_u64))228 }229 /// Storage: Nonfungible TokenData (r:1 w:0)230 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)231 /// Storage: Nonfungible Allowance (r:1 w:1)232 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)233 fn approve() -> Weight {234 // Proof Size summary in bytes:235 // Measured: `358`236 // Estimated: `5064`237 // Minimum execution time: 11_507_000 picoseconds.238 Weight::from_parts(11_771_000, 5064)239 .saturating_add(T::DbWeight::get().reads(2_u64))240 .saturating_add(T::DbWeight::get().writes(1_u64))241 }242 /// Storage: Nonfungible TokenData (r:1 w:0)243 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)244 /// Storage: Nonfungible Allowance (r:1 w:1)245 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)246 fn approve_from() -> Weight {247 // Proof Size summary in bytes:248 // Measured: `313`249 // Estimated: `5064`250 // Minimum execution time: 11_558_000 picoseconds.251 Weight::from_parts(11_789_000, 5064)252 .saturating_add(T::DbWeight::get().reads(2_u64))253 .saturating_add(T::DbWeight::get().writes(1_u64))254 }255 // Storage: Nonfungible Allowance (r:1 w:0)256 fn checks_allowed_raw() -> Weight {257 Weight::from_ref_time(3_341_000 as u64)258 .saturating_add(T::DbWeight::get().reads(1 as u64))259 }260 /// Storage: Nonfungible Allowance (r:1 w:1)261 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)262 /// Storage: Nonfungible TokenData (r:1 w:1)263 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)264 /// Storage: Nonfungible TokenChildren (r:1 w:0)265 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)266 /// Storage: Nonfungible TokensBurnt (r:1 w:1)267 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)268 /// Storage: Nonfungible AccountBalance (r:1 w:1)269 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)270 /// Storage: Nonfungible Owned (r:0 w:1)271 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)272 /// Storage: Nonfungible TokenProperties (r:0 w:1)273 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)274 fn burn_from() -> Weight {275 // Proof Size summary in bytes:276 // Measured: `527`277 // Estimated: `12611`278 // Minimum execution time: 30_713_000 picoseconds.279 Weight::from_parts(31_160_000, 12611)280 .saturating_add(T::DbWeight::get().reads(5_u64))281 .saturating_add(T::DbWeight::get().writes(6_u64))282 }283 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)284 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)285 /// The range of component `b` is `[0, 64]`.286 fn set_token_property_permissions(b: u32, ) -> Weight {287 // Proof Size summary in bytes:288 // Measured: `281`289 // Estimated: `19201`290 // Minimum execution time: 2_360_000 picoseconds.291 Weight::from_parts(2_396_000, 19201)292 // Standard Error: 43_257293 .saturating_add(Weight::from_parts(12_085_808, 0).saturating_mul(b.into()))294 .saturating_add(T::DbWeight::get().reads(1_u64))295 .saturating_add(T::DbWeight::get().writes(1_u64))296 }297 /// Storage: Nonfungible TokenProperties (r:1 w:1)298 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)299 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)300 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)301 /// The range of component `b` is `[0, 64]`.302 fn set_token_properties(b: u32, ) -> Weight {303 // Proof Size summary in bytes:304 // Measured: `616 + b * (261 ±0)`305 // Estimated: `54480`306 // Minimum execution time: 12_543_000 picoseconds.307 Weight::from_parts(12_686_000, 54480)308 // Standard Error: 52_286309 .saturating_add(Weight::from_parts(6_894_785, 0).saturating_mul(b.into()))310 .saturating_add(T::DbWeight::get().reads(2_u64))311 .saturating_add(T::DbWeight::get().writes(1_u64))312 }313 /// Storage: Nonfungible TokenProperties (r:1 w:1)314 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)315 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)316 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)317 /// The range of component `b` is `[0, 64]`.318 fn delete_token_properties(b: u32, ) -> Weight {319 // Proof Size summary in bytes:320 // Measured: `653 + b * (33291 ±0)`321 // Estimated: `54480`322 // Minimum execution time: 12_352_000 picoseconds.323 Weight::from_parts(12_523_000, 54480)324 // Standard Error: 70_401325 .saturating_add(Weight::from_parts(21_959_228, 0).saturating_mul(b.into()))326 .saturating_add(T::DbWeight::get().reads(2_u64))327 .saturating_add(T::DbWeight::get().writes(1_u64))328 }329 /// Storage: Nonfungible TokenData (r:1 w:0)330 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)331 fn token_owner() -> Weight {332 // Proof Size summary in bytes:333 // Measured: `358`334 // Estimated: `2532`335 // Minimum execution time: 4_797_000 picoseconds.336 Weight::from_parts(5_499_000, 2532)337 .saturating_add(T::DbWeight::get().reads(1_u64))338 }339 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)340 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)341 fn set_allowance_for_all() -> Weight {342 // Proof Size summary in bytes:343 // Measured: `0`344 // Estimated: `0`345 // Minimum execution time: 6_303_000 picoseconds.346 Weight::from_parts(6_712_000, 0)347 .saturating_add(T::DbWeight::get().writes(1_u64))348 }349 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)350 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)351 fn allowance_for_all() -> Weight {352 // Proof Size summary in bytes:353 // Measured: `109`354 // Estimated: `2586`355 // Minimum execution time: 3_798_000 picoseconds.356 Weight::from_parts(4_017_000, 2586)357 .saturating_add(T::DbWeight::get().reads(1_u64))358 }359 /// Storage: Nonfungible TokenProperties (r:1 w:1)360 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)361 fn repair_item() -> Weight {362 // Proof Size summary in bytes:363 // Measured: `300`364 // Estimated: `35279`365 // Minimum execution time: 5_531_000 picoseconds.366 Weight::from_parts(5_750_000, 35279)367 .saturating_add(T::DbWeight::get().reads(1_u64))368 .saturating_add(T::DbWeight::get().writes(1_u64))369 }370}371372// For backwards compatibility and tests373impl WeightInfo for () {374 /// Storage: Nonfungible TokensMinted (r:1 w:1)375 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)376 /// Storage: Nonfungible AccountBalance (r:1 w:1)377 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)378 /// Storage: Nonfungible TokenProperties (r:1 w:1)379 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)380 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)381 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)382 /// Storage: Nonfungible TokenData (r:0 w:1)383 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)384 /// Storage: Nonfungible Owned (r:0 w:1)385 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)386 fn create_item() -> Weight {387 // Proof Size summary in bytes:388 // Measured: `390`389 // Estimated: `59511`390 // Minimum execution time: 23_081_000 picoseconds.391 Weight::from_parts(23_551_000, 59511)392 .saturating_add(RocksDbWeight::get().reads(4_u64))393 .saturating_add(RocksDbWeight::get().writes(5_u64))394 }395 /// Storage: Nonfungible TokensMinted (r:1 w:1)396 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)397 /// Storage: Nonfungible AccountBalance (r:1 w:1)398 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)399 /// Storage: Nonfungible TokenProperties (r:200 w:200)400 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)401 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)402 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, 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: `390`411 // Estimated: `24232 + b * (35279 ±0)`412 // Minimum execution time: 4_557_000 picoseconds.413 Weight::from_parts(5_994_058, 24232)414 // Standard Error: 4_326415 .saturating_add(Weight::from_parts(7_369_489, 0).saturating_mul(b.into()))416 .saturating_add(RocksDbWeight::get().reads(3_u64))417 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))418 .saturating_add(RocksDbWeight::get().writes(2_u64))419 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))420 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))421 }422 /// Storage: Nonfungible TokensMinted (r:1 w:1)423 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)424 /// Storage: Nonfungible AccountBalance (r:200 w:200)425 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)426 /// Storage: Nonfungible TokenProperties (r:200 w:200)427 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)428 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)429 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)430 /// Storage: Nonfungible TokenData (r:0 w:200)431 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)432 /// Storage: Nonfungible Owned (r:0 w:200)433 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)434 /// The range of component `b` is `[0, 200]`.435 fn create_multiple_items_ex(b: u32, ) -> Weight {436 // Proof Size summary in bytes:437 // Measured: `390`438 // Estimated: `21692 + b * (37819 ±0)`439 // Minimum execution time: 4_533_000 picoseconds.440 Weight::from_parts(2_822_660, 21692)441 // Standard Error: 3_650442 .saturating_add(Weight::from_parts(9_100_706, 0).saturating_mul(b.into()))443 .saturating_add(RocksDbWeight::get().reads(2_u64))444 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))445 .saturating_add(RocksDbWeight::get().writes(1_u64))446 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))447 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))448 }449 /// Storage: Nonfungible TokenData (r:1 w:1)450 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)451 /// Storage: Nonfungible TokenChildren (r:1 w:0)452 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)453 /// Storage: Nonfungible TokensBurnt (r:1 w:1)454 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)455 /// Storage: Nonfungible AccountBalance (r:1 w:1)456 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)457 /// Storage: Nonfungible Allowance (r:1 w:0)458 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)459 /// Storage: Nonfungible Owned (r:0 w:1)460 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)461 /// Storage: Nonfungible TokenProperties (r:0 w:1)462 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)463 fn burn_item() -> Weight {464 // Proof Size summary in bytes:465 // Measured: `412`466 // Estimated: `12611`467 // Minimum execution time: 23_528_000 picoseconds.468 Weight::from_parts(24_680_000, 12611)469 .saturating_add(RocksDbWeight::get().reads(5_u64))470 .saturating_add(RocksDbWeight::get().writes(5_u64))471 }472 /// Storage: Nonfungible TokenChildren (r:1 w:0)473 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)474 /// Storage: Nonfungible TokenData (r:1 w:1)475 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)476 /// Storage: Nonfungible TokensBurnt (r:1 w:1)477 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)478 /// Storage: Nonfungible AccountBalance (r:1 w:1)479 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)480 /// Storage: Nonfungible Allowance (r:1 w:0)481 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)482 /// Storage: Nonfungible Owned (r:0 w:1)483 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)484 /// Storage: Nonfungible TokenProperties (r:0 w:1)485 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)486 fn burn_recursively_self_raw() -> Weight {487 // Proof Size summary in bytes:488 // Measured: `412`489 // Estimated: `12611`490 // Minimum execution time: 29_770_000 picoseconds.491 Weight::from_parts(30_114_000, 12611)492 .saturating_add(RocksDbWeight::get().reads(5_u64))493 .saturating_add(RocksDbWeight::get().writes(5_u64))494 }495 /// Storage: Nonfungible TokenChildren (r:401 w:200)496 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)497 /// Storage: Common CollectionById (r:1 w:0)498 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)499 /// Storage: Nonfungible TokenData (r:201 w:201)500 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)501 /// Storage: Nonfungible TokensBurnt (r:1 w:1)502 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)503 /// Storage: Nonfungible AccountBalance (r:2 w:2)504 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)505 /// Storage: Nonfungible Allowance (r:201 w:0)506 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)507 /// Storage: Nonfungible Owned (r:0 w:201)508 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)509 /// Storage: Nonfungible TokenProperties (r:0 w:201)510 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)511 /// The range of component `b` is `[0, 200]`.512 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {513 // Proof Size summary in bytes:514 // Measured: `1530 + b * (58 ±0)`515 // Estimated: `18290 + b * (10097 ±0)`516 // Minimum execution time: 31_413_000 picoseconds.517 Weight::from_parts(31_865_000, 18290)518 // Standard Error: 980_032519 .saturating_add(Weight::from_parts(205_236_443, 0).saturating_mul(b.into()))520 .saturating_add(RocksDbWeight::get().reads(7_u64))521 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))522 .saturating_add(RocksDbWeight::get().writes(6_u64))523 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))524 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))525 }526 /// Storage: Nonfungible TokenData (r:1 w:1)527 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)528 /// Storage: Nonfungible AccountBalance (r:2 w:2)529 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)530 /// Storage: Nonfungible Allowance (r:1 w:0)531 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)532 /// Storage: Nonfungible Owned (r:0 w:2)533 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)534 fn transfer() -> Weight {535 // Proof Size summary in bytes:536 // Measured: `412`537 // Estimated: `10144`538 // Minimum execution time: 18_629_000 picoseconds.539 Weight::from_parts(18_997_000, 10144)540 .saturating_add(RocksDbWeight::get().reads(4_u64))541 .saturating_add(RocksDbWeight::get().writes(5_u64))542 }543 /// Storage: Nonfungible TokenData (r:1 w:0)544 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)545 /// Storage: Nonfungible Allowance (r:1 w:1)546 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)547 fn approve() -> Weight {548 // Proof Size summary in bytes:549 // Measured: `358`550 // Estimated: `5064`551 // Minimum execution time: 11_507_000 picoseconds.552 Weight::from_parts(11_771_000, 5064)553 .saturating_add(RocksDbWeight::get().reads(2_u64))554 .saturating_add(RocksDbWeight::get().writes(1_u64))555 }556 /// Storage: Nonfungible TokenData (r:1 w:0)557 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)558 /// Storage: Nonfungible Allowance (r:1 w:1)559 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)560 fn approve_from() -> Weight {561 // Proof Size summary in bytes:562 // Measured: `313`563 // Estimated: `5064`564 // Minimum execution time: 11_558_000 picoseconds.565 Weight::from_parts(11_789_000, 5064)566 .saturating_add(RocksDbWeight::get().reads(2_u64))567 .saturating_add(RocksDbWeight::get().writes(1_u64))568 }569 // Storage: Nonfungible Allowance (r:1 w:0)570 fn checks_allowed_raw() -> Weight {571 Weight::from_ref_time(3_341_000 as u64)572 .saturating_add(RocksDbWeight::get().reads(1 as u64))573 }574 /// Storage: Nonfungible Allowance (r:1 w:1)575 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)576 /// Storage: Nonfungible TokenData (r:1 w:1)577 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)578 /// Storage: Nonfungible TokenChildren (r:1 w:0)579 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)580 /// Storage: Nonfungible TokensBurnt (r:1 w:1)581 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)582 /// Storage: Nonfungible AccountBalance (r:1 w:1)583 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)584 /// Storage: Nonfungible Owned (r:0 w:1)585 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)586 /// Storage: Nonfungible TokenProperties (r:0 w:1)587 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)588 fn burn_from() -> Weight {589 // Proof Size summary in bytes:590 // Measured: `527`591 // Estimated: `12611`592 // Minimum execution time: 30_713_000 picoseconds.593 Weight::from_parts(31_160_000, 12611)594 .saturating_add(RocksDbWeight::get().reads(5_u64))595 .saturating_add(RocksDbWeight::get().writes(6_u64))596 }597 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)598 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)599 /// The range of component `b` is `[0, 64]`.600 fn set_token_property_permissions(b: u32, ) -> Weight {601 // Proof Size summary in bytes:602 // Measured: `281`603 // Estimated: `19201`604 // Minimum execution time: 2_360_000 picoseconds.605 Weight::from_parts(2_396_000, 19201)606 // Standard Error: 43_257607 .saturating_add(Weight::from_parts(12_085_808, 0).saturating_mul(b.into()))608 .saturating_add(RocksDbWeight::get().reads(1_u64))609 .saturating_add(RocksDbWeight::get().writes(1_u64))610 }611 /// Storage: Nonfungible TokenProperties (r:1 w:1)612 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)613 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)614 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)615 /// The range of component `b` is `[0, 64]`.616 fn set_token_properties(b: u32, ) -> Weight {617 // Proof Size summary in bytes:618 // Measured: `616 + b * (261 ±0)`619 // Estimated: `54480`620 // Minimum execution time: 12_543_000 picoseconds.621 Weight::from_parts(12_686_000, 54480)622 // Standard Error: 52_286623 .saturating_add(Weight::from_parts(6_894_785, 0).saturating_mul(b.into()))624 .saturating_add(RocksDbWeight::get().reads(2_u64))625 .saturating_add(RocksDbWeight::get().writes(1_u64))626 }627 /// Storage: Nonfungible TokenProperties (r:1 w:1)628 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)629 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)630 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)631 /// The range of component `b` is `[0, 64]`.632 fn delete_token_properties(b: u32, ) -> Weight {633 // Proof Size summary in bytes:634 // Measured: `653 + b * (33291 ±0)`635 // Estimated: `54480`636 // Minimum execution time: 12_352_000 picoseconds.637 Weight::from_parts(12_523_000, 54480)638 // Standard Error: 70_401639 .saturating_add(Weight::from_parts(21_959_228, 0).saturating_mul(b.into()))640 .saturating_add(RocksDbWeight::get().reads(2_u64))641 .saturating_add(RocksDbWeight::get().writes(1_u64))642 }643 /// Storage: Nonfungible TokenData (r:1 w:0)644 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)645 fn token_owner() -> Weight {646 // Proof Size summary in bytes:647 // Measured: `358`648 // Estimated: `2532`649 // Minimum execution time: 4_797_000 picoseconds.650 Weight::from_parts(5_499_000, 2532)651 .saturating_add(RocksDbWeight::get().reads(1_u64))652 }653 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)654 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)655 fn set_allowance_for_all() -> Weight {656 // Proof Size summary in bytes:657 // Measured: `0`658 // Estimated: `0`659 // Minimum execution time: 6_303_000 picoseconds.660 Weight::from_parts(6_712_000, 0)661 .saturating_add(RocksDbWeight::get().writes(1_u64))662 }663 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)664 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)665 fn allowance_for_all() -> Weight {666 // Proof Size summary in bytes:667 // Measured: `109`668 // Estimated: `2586`669 // Minimum execution time: 3_798_000 picoseconds.670 Weight::from_parts(4_017_000, 2586)671 .saturating_add(RocksDbWeight::get().reads(1_u64))672 }673 /// Storage: Nonfungible TokenProperties (r:1 w:1)674 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)675 fn repair_item() -> Weight {676 // Proof Size summary in bytes:677 // Measured: `300`678 // Estimated: `35279`679 // Minimum execution time: 5_531_000 picoseconds.680 Weight::from_parts(5_750_000, 35279)681 .saturating_add(RocksDbWeight::get().reads(1_u64))682 .saturating_add(RocksDbWeight::get().writes(1_u64))683 }684}6851// 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-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-nonfungible16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/nonfungible/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_nonfungible.36pub trait WeightInfo {37 fn create_item() -> Weight;38 fn create_multiple_items(b: u32, ) -> Weight;39 fn create_multiple_items_ex(b: u32, ) -> Weight;40 fn burn_item() -> Weight;41 fn burn_recursively_self_raw() -> Weight;42 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight;43 fn transfer_raw() -> Weight;44 fn approve() -> Weight;45 fn approve_from() -> Weight;46 fn checks_allowed_raw() -> Weight;47 fn burn_from() -> Weight;48 fn set_token_property_permissions(b: u32, ) -> Weight;49 fn set_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 TokenProperties (r:1 w:1)65 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)66 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)67 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)68 /// Storage: Nonfungible TokenData (r:0 w:1)69 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)70 /// Storage: Nonfungible Owned (r:0 w:1)71 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)72 fn create_item() -> Weight {73 // Proof Size summary in bytes:74 // Measured: `390`75 // Estimated: `59511`76 // Minimum execution time: 23_081_000 picoseconds.77 Weight::from_parts(23_551_000, 59511)78 .saturating_add(T::DbWeight::get().reads(4_u64))79 .saturating_add(T::DbWeight::get().writes(5_u64))80 }81 /// Storage: Nonfungible TokensMinted (r:1 w:1)82 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)83 /// Storage: Nonfungible AccountBalance (r:1 w:1)84 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)85 /// Storage: Nonfungible TokenProperties (r:200 w:200)86 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)87 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)88 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)89 /// Storage: Nonfungible TokenData (r:0 w:200)90 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)91 /// Storage: Nonfungible Owned (r:0 w:200)92 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)93 /// The range of component `b` is `[0, 200]`.94 fn create_multiple_items(b: u32, ) -> Weight {95 // Proof Size summary in bytes:96 // Measured: `390`97 // Estimated: `24232 + b * (35279 ±0)`98 // Minimum execution time: 4_557_000 picoseconds.99 Weight::from_parts(5_994_058, 24232)100 // Standard Error: 4_326101 .saturating_add(Weight::from_parts(7_369_489, 0).saturating_mul(b.into()))102 .saturating_add(T::DbWeight::get().reads(3_u64))103 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))104 .saturating_add(T::DbWeight::get().writes(2_u64))105 .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))106 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))107 }108 /// Storage: Nonfungible TokensMinted (r:1 w:1)109 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)110 /// Storage: Nonfungible AccountBalance (r:200 w:200)111 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)112 /// Storage: Nonfungible TokenProperties (r:200 w:200)113 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)114 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)115 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)116 /// Storage: Nonfungible TokenData (r:0 w:200)117 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)118 /// Storage: Nonfungible Owned (r:0 w:200)119 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)120 /// The range of component `b` is `[0, 200]`.121 fn create_multiple_items_ex(b: u32, ) -> Weight {122 // Proof Size summary in bytes:123 // Measured: `390`124 // Estimated: `21692 + b * (37819 ±0)`125 // Minimum execution time: 4_533_000 picoseconds.126 Weight::from_parts(2_822_660, 21692)127 // Standard Error: 3_650128 .saturating_add(Weight::from_parts(9_100_706, 0).saturating_mul(b.into()))129 .saturating_add(T::DbWeight::get().reads(2_u64))130 .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))131 .saturating_add(T::DbWeight::get().writes(1_u64))132 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))133 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))134 }135 /// Storage: Nonfungible TokenData (r:1 w:1)136 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)137 /// Storage: Nonfungible TokenChildren (r:1 w:0)138 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)139 /// Storage: Nonfungible TokensBurnt (r:1 w:1)140 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)141 /// Storage: Nonfungible AccountBalance (r:1 w:1)142 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)143 /// Storage: Nonfungible Allowance (r:1 w:0)144 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)145 /// Storage: Nonfungible Owned (r:0 w:1)146 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)147 /// Storage: Nonfungible TokenProperties (r:0 w:1)148 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)149 fn burn_item() -> Weight {150 // Proof Size summary in bytes:151 // Measured: `412`152 // Estimated: `12611`153 // Minimum execution time: 23_528_000 picoseconds.154 Weight::from_parts(24_680_000, 12611)155 .saturating_add(T::DbWeight::get().reads(5_u64))156 .saturating_add(T::DbWeight::get().writes(5_u64))157 }158 /// Storage: Nonfungible TokenChildren (r:1 w:0)159 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)160 /// Storage: Nonfungible TokenData (r:1 w:1)161 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)162 /// Storage: Nonfungible TokensBurnt (r:1 w:1)163 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)164 /// Storage: Nonfungible AccountBalance (r:1 w:1)165 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)166 /// Storage: Nonfungible Allowance (r:1 w:0)167 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)168 /// Storage: Nonfungible Owned (r:0 w:1)169 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)170 /// Storage: Nonfungible TokenProperties (r:0 w:1)171 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)172 fn burn_recursively_self_raw() -> Weight {173 // Proof Size summary in bytes:174 // Measured: `412`175 // Estimated: `12611`176 // Minimum execution time: 29_770_000 picoseconds.177 Weight::from_parts(30_114_000, 12611)178 .saturating_add(T::DbWeight::get().reads(5_u64))179 .saturating_add(T::DbWeight::get().writes(5_u64))180 }181 /// Storage: Nonfungible TokenChildren (r:401 w:200)182 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)183 /// Storage: Common CollectionById (r:1 w:0)184 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)185 /// Storage: Nonfungible TokenData (r:201 w:201)186 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)187 /// Storage: Nonfungible TokensBurnt (r:1 w:1)188 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)189 /// Storage: Nonfungible AccountBalance (r:2 w:2)190 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)191 /// Storage: Nonfungible Allowance (r:201 w:0)192 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)193 /// Storage: Nonfungible Owned (r:0 w:201)194 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)195 /// Storage: Nonfungible TokenProperties (r:0 w:201)196 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)197 /// The range of component `b` is `[0, 200]`.198 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {199 // Proof Size summary in bytes:200 // Measured: `1530 + b * (58 ±0)`201 // Estimated: `18290 + b * (10097 ±0)`202 // Minimum execution time: 31_413_000 picoseconds.203 Weight::from_parts(31_865_000, 18290)204 // Standard Error: 980_032205 .saturating_add(Weight::from_parts(205_236_443, 0).saturating_mul(b.into()))206 .saturating_add(T::DbWeight::get().reads(7_u64))207 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))208 .saturating_add(T::DbWeight::get().writes(6_u64))209 .saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))210 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))211 }212 // Storage: Nonfungible TokenData (r:1 w:1)213 // Storage: Nonfungible AccountBalance (r:2 w:2)214 // Storage: Nonfungible Allowance (r:1 w:0)215 // Storage: Nonfungible Owned (r:0 w:2)216 fn transfer_raw() -> Weight {217 Weight::from_ref_time(14_909_000 as u64)218 .saturating_add(T::DbWeight::get().reads(4 as u64))219 .saturating_add(T::DbWeight::get().writes(5 as u64))220 }221 /// Storage: Nonfungible TokenData (r:1 w:0)222 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)223 /// Storage: Nonfungible Allowance (r:1 w:1)224 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)225 fn approve() -> Weight {226 // Proof Size summary in bytes:227 // Measured: `358`228 // Estimated: `5064`229 // Minimum execution time: 11_507_000 picoseconds.230 Weight::from_parts(11_771_000, 5064)231 .saturating_add(T::DbWeight::get().reads(2_u64))232 .saturating_add(T::DbWeight::get().writes(1_u64))233 }234 /// Storage: Nonfungible TokenData (r:1 w:0)235 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)236 /// Storage: Nonfungible Allowance (r:1 w:1)237 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)238 fn approve_from() -> Weight {239 // Proof Size summary in bytes:240 // Measured: `313`241 // Estimated: `5064`242 // Minimum execution time: 11_558_000 picoseconds.243 Weight::from_parts(11_789_000, 5064)244 .saturating_add(T::DbWeight::get().reads(2_u64))245 .saturating_add(T::DbWeight::get().writes(1_u64))246 }247 // Storage: Nonfungible Allowance (r:1 w:0)248 fn checks_allowed_raw() -> Weight {249 Weight::from_ref_time(3_341_000 as u64)250 .saturating_add(T::DbWeight::get().reads(1 as u64))251 }252 /// Storage: Nonfungible Allowance (r:1 w:1)253 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)254 /// Storage: Nonfungible TokenData (r:1 w:1)255 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)256 /// Storage: Nonfungible TokenChildren (r:1 w:0)257 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)258 /// Storage: Nonfungible TokensBurnt (r:1 w:1)259 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)260 /// Storage: Nonfungible AccountBalance (r:1 w:1)261 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)262 /// Storage: Nonfungible Owned (r:0 w:1)263 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)264 /// Storage: Nonfungible TokenProperties (r:0 w:1)265 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)266 fn burn_from() -> Weight {267 // Proof Size summary in bytes:268 // Measured: `527`269 // Estimated: `12611`270 // Minimum execution time: 30_713_000 picoseconds.271 Weight::from_parts(31_160_000, 12611)272 .saturating_add(T::DbWeight::get().reads(5_u64))273 .saturating_add(T::DbWeight::get().writes(6_u64))274 }275 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)276 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)277 /// The range of component `b` is `[0, 64]`.278 fn set_token_property_permissions(b: u32, ) -> Weight {279 // Proof Size summary in bytes:280 // Measured: `281`281 // Estimated: `19201`282 // Minimum execution time: 2_360_000 picoseconds.283 Weight::from_parts(2_396_000, 19201)284 // Standard Error: 43_257285 .saturating_add(Weight::from_parts(12_085_808, 0).saturating_mul(b.into()))286 .saturating_add(T::DbWeight::get().reads(1_u64))287 .saturating_add(T::DbWeight::get().writes(1_u64))288 }289 /// Storage: Nonfungible TokenProperties (r:1 w:1)290 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)291 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)292 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)293 /// The range of component `b` is `[0, 64]`.294 fn set_token_properties(b: u32, ) -> Weight {295 // Proof Size summary in bytes:296 // Measured: `616 + b * (261 ±0)`297 // Estimated: `54480`298 // Minimum execution time: 12_543_000 picoseconds.299 Weight::from_parts(12_686_000, 54480)300 // Standard Error: 52_286301 .saturating_add(Weight::from_parts(6_894_785, 0).saturating_mul(b.into()))302 .saturating_add(T::DbWeight::get().reads(2_u64))303 .saturating_add(T::DbWeight::get().writes(1_u64))304 }305 /// Storage: Nonfungible TokenProperties (r:1 w:1)306 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)307 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)308 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)309 /// The range of component `b` is `[0, 64]`.310 fn delete_token_properties(b: u32, ) -> Weight {311 // Proof Size summary in bytes:312 // Measured: `653 + b * (33291 ±0)`313 // Estimated: `54480`314 // Minimum execution time: 12_352_000 picoseconds.315 Weight::from_parts(12_523_000, 54480)316 // Standard Error: 70_401317 .saturating_add(Weight::from_parts(21_959_228, 0).saturating_mul(b.into()))318 .saturating_add(T::DbWeight::get().reads(2_u64))319 .saturating_add(T::DbWeight::get().writes(1_u64))320 }321 /// Storage: Nonfungible TokenData (r:1 w:0)322 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)323 fn token_owner() -> Weight {324 // Proof Size summary in bytes:325 // Measured: `358`326 // Estimated: `2532`327 // Minimum execution time: 4_797_000 picoseconds.328 Weight::from_parts(5_499_000, 2532)329 .saturating_add(T::DbWeight::get().reads(1_u64))330 }331 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)332 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)333 fn set_allowance_for_all() -> Weight {334 // Proof Size summary in bytes:335 // Measured: `0`336 // Estimated: `0`337 // Minimum execution time: 6_303_000 picoseconds.338 Weight::from_parts(6_712_000, 0)339 .saturating_add(T::DbWeight::get().writes(1_u64))340 }341 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)342 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)343 fn allowance_for_all() -> Weight {344 // Proof Size summary in bytes:345 // Measured: `109`346 // Estimated: `2586`347 // Minimum execution time: 3_798_000 picoseconds.348 Weight::from_parts(4_017_000, 2586)349 .saturating_add(T::DbWeight::get().reads(1_u64))350 }351 /// Storage: Nonfungible TokenProperties (r:1 w:1)352 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)353 fn repair_item() -> Weight {354 // Proof Size summary in bytes:355 // Measured: `300`356 // Estimated: `35279`357 // Minimum execution time: 5_531_000 picoseconds.358 Weight::from_parts(5_750_000, 35279)359 .saturating_add(T::DbWeight::get().reads(1_u64))360 .saturating_add(T::DbWeight::get().writes(1_u64))361 }362}363364// For backwards compatibility and tests365impl WeightInfo for () {366 /// Storage: Nonfungible TokensMinted (r:1 w:1)367 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)368 /// Storage: Nonfungible AccountBalance (r:1 w:1)369 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)370 /// Storage: Nonfungible TokenProperties (r:1 w:1)371 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)372 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)373 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)374 /// Storage: Nonfungible TokenData (r:0 w:1)375 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)376 /// Storage: Nonfungible Owned (r:0 w:1)377 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)378 fn create_item() -> Weight {379 // Proof Size summary in bytes:380 // Measured: `390`381 // Estimated: `59511`382 // Minimum execution time: 23_081_000 picoseconds.383 Weight::from_parts(23_551_000, 59511)384 .saturating_add(RocksDbWeight::get().reads(4_u64))385 .saturating_add(RocksDbWeight::get().writes(5_u64))386 }387 /// Storage: Nonfungible TokensMinted (r:1 w:1)388 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)389 /// Storage: Nonfungible AccountBalance (r:1 w:1)390 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)391 /// Storage: Nonfungible TokenProperties (r:200 w:200)392 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)393 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)394 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)395 /// Storage: Nonfungible TokenData (r:0 w:200)396 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)397 /// Storage: Nonfungible Owned (r:0 w:200)398 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)399 /// The range of component `b` is `[0, 200]`.400 fn create_multiple_items(b: u32, ) -> Weight {401 // Proof Size summary in bytes:402 // Measured: `390`403 // Estimated: `24232 + b * (35279 ±0)`404 // Minimum execution time: 4_557_000 picoseconds.405 Weight::from_parts(5_994_058, 24232)406 // Standard Error: 4_326407 .saturating_add(Weight::from_parts(7_369_489, 0).saturating_mul(b.into()))408 .saturating_add(RocksDbWeight::get().reads(3_u64))409 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))410 .saturating_add(RocksDbWeight::get().writes(2_u64))411 .saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))412 .saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))413 }414 /// Storage: Nonfungible TokensMinted (r:1 w:1)415 /// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)416 /// Storage: Nonfungible AccountBalance (r:200 w:200)417 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)418 /// Storage: Nonfungible TokenProperties (r:200 w:200)419 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)420 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)421 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)422 /// Storage: Nonfungible TokenData (r:0 w:200)423 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)424 /// Storage: Nonfungible Owned (r:0 w:200)425 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)426 /// The range of component `b` is `[0, 200]`.427 fn create_multiple_items_ex(b: u32, ) -> Weight {428 // Proof Size summary in bytes:429 // Measured: `390`430 // Estimated: `21692 + b * (37819 ±0)`431 // Minimum execution time: 4_533_000 picoseconds.432 Weight::from_parts(2_822_660, 21692)433 // Standard Error: 3_650434 .saturating_add(Weight::from_parts(9_100_706, 0).saturating_mul(b.into()))435 .saturating_add(RocksDbWeight::get().reads(2_u64))436 .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))437 .saturating_add(RocksDbWeight::get().writes(1_u64))438 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))439 .saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))440 }441 /// Storage: Nonfungible TokenData (r:1 w:1)442 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)443 /// Storage: Nonfungible TokenChildren (r:1 w:0)444 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)445 /// Storage: Nonfungible TokensBurnt (r:1 w:1)446 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)447 /// Storage: Nonfungible AccountBalance (r:1 w:1)448 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)449 /// Storage: Nonfungible Allowance (r:1 w:0)450 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)451 /// Storage: Nonfungible Owned (r:0 w:1)452 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)453 /// Storage: Nonfungible TokenProperties (r:0 w:1)454 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)455 fn burn_item() -> Weight {456 // Proof Size summary in bytes:457 // Measured: `412`458 // Estimated: `12611`459 // Minimum execution time: 23_528_000 picoseconds.460 Weight::from_parts(24_680_000, 12611)461 .saturating_add(RocksDbWeight::get().reads(5_u64))462 .saturating_add(RocksDbWeight::get().writes(5_u64))463 }464 /// Storage: Nonfungible TokenChildren (r:1 w:0)465 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)466 /// Storage: Nonfungible TokenData (r:1 w:1)467 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)468 /// Storage: Nonfungible TokensBurnt (r:1 w:1)469 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)470 /// Storage: Nonfungible AccountBalance (r:1 w:1)471 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)472 /// Storage: Nonfungible Allowance (r:1 w:0)473 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)474 /// Storage: Nonfungible Owned (r:0 w:1)475 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)476 /// Storage: Nonfungible TokenProperties (r:0 w:1)477 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)478 fn burn_recursively_self_raw() -> Weight {479 // Proof Size summary in bytes:480 // Measured: `412`481 // Estimated: `12611`482 // Minimum execution time: 29_770_000 picoseconds.483 Weight::from_parts(30_114_000, 12611)484 .saturating_add(RocksDbWeight::get().reads(5_u64))485 .saturating_add(RocksDbWeight::get().writes(5_u64))486 }487 /// Storage: Nonfungible TokenChildren (r:401 w:200)488 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)489 /// Storage: Common CollectionById (r:1 w:0)490 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)491 /// Storage: Nonfungible TokenData (r:201 w:201)492 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)493 /// Storage: Nonfungible TokensBurnt (r:1 w:1)494 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)495 /// Storage: Nonfungible AccountBalance (r:2 w:2)496 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)497 /// Storage: Nonfungible Allowance (r:201 w:0)498 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)499 /// Storage: Nonfungible Owned (r:0 w:201)500 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)501 /// Storage: Nonfungible TokenProperties (r:0 w:201)502 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)503 /// The range of component `b` is `[0, 200]`.504 fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {505 // Proof Size summary in bytes:506 // Measured: `1530 + b * (58 ±0)`507 // Estimated: `18290 + b * (10097 ±0)`508 // Minimum execution time: 31_413_000 picoseconds.509 Weight::from_parts(31_865_000, 18290)510 // Standard Error: 980_032511 .saturating_add(Weight::from_parts(205_236_443, 0).saturating_mul(b.into()))512 .saturating_add(RocksDbWeight::get().reads(7_u64))513 .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))514 .saturating_add(RocksDbWeight::get().writes(6_u64))515 .saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))516 .saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))517 }518 // Storage: Nonfungible TokenData (r:1 w:1)519 // Storage: Nonfungible AccountBalance (r:2 w:2)520 // Storage: Nonfungible Allowance (r:1 w:0)521 // Storage: Nonfungible Owned (r:0 w:2)522 fn transfer_raw() -> Weight {523 Weight::from_ref_time(14_909_000 as u64)524 .saturating_add(RocksDbWeight::get().reads(4 as u64))525 .saturating_add(RocksDbWeight::get().writes(5 as u64))526 }527 /// Storage: Nonfungible TokenData (r:1 w:0)528 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)529 /// Storage: Nonfungible Allowance (r:1 w:1)530 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)531 fn approve() -> Weight {532 // Proof Size summary in bytes:533 // Measured: `358`534 // Estimated: `5064`535 // Minimum execution time: 11_507_000 picoseconds.536 Weight::from_parts(11_771_000, 5064)537 .saturating_add(RocksDbWeight::get().reads(2_u64))538 .saturating_add(RocksDbWeight::get().writes(1_u64))539 }540 /// Storage: Nonfungible TokenData (r:1 w:0)541 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)542 /// Storage: Nonfungible Allowance (r:1 w:1)543 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)544 fn approve_from() -> Weight {545 // Proof Size summary in bytes:546 // Measured: `313`547 // Estimated: `5064`548 // Minimum execution time: 11_558_000 picoseconds.549 Weight::from_parts(11_789_000, 5064)550 .saturating_add(RocksDbWeight::get().reads(2_u64))551 .saturating_add(RocksDbWeight::get().writes(1_u64))552 }553 // Storage: Nonfungible Allowance (r:1 w:0)554 fn checks_allowed_raw() -> Weight {555 Weight::from_ref_time(3_341_000 as u64)556 .saturating_add(RocksDbWeight::get().reads(1 as u64))557 }558 /// Storage: Nonfungible Allowance (r:1 w:1)559 /// Proof: Nonfungible Allowance (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)560 /// Storage: Nonfungible TokenData (r:1 w:1)561 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)562 /// Storage: Nonfungible TokenChildren (r:1 w:0)563 /// Proof: Nonfungible TokenChildren (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)564 /// Storage: Nonfungible TokensBurnt (r:1 w:1)565 /// Proof: Nonfungible TokensBurnt (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)566 /// Storage: Nonfungible AccountBalance (r:1 w:1)567 /// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)568 /// Storage: Nonfungible Owned (r:0 w:1)569 /// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)570 /// Storage: Nonfungible TokenProperties (r:0 w:1)571 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)572 fn burn_from() -> Weight {573 // Proof Size summary in bytes:574 // Measured: `527`575 // Estimated: `12611`576 // Minimum execution time: 30_713_000 picoseconds.577 Weight::from_parts(31_160_000, 12611)578 .saturating_add(RocksDbWeight::get().reads(5_u64))579 .saturating_add(RocksDbWeight::get().writes(6_u64))580 }581 /// Storage: Common CollectionPropertyPermissions (r:1 w:1)582 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)583 /// The range of component `b` is `[0, 64]`.584 fn set_token_property_permissions(b: u32, ) -> Weight {585 // Proof Size summary in bytes:586 // Measured: `281`587 // Estimated: `19201`588 // Minimum execution time: 2_360_000 picoseconds.589 Weight::from_parts(2_396_000, 19201)590 // Standard Error: 43_257591 .saturating_add(Weight::from_parts(12_085_808, 0).saturating_mul(b.into()))592 .saturating_add(RocksDbWeight::get().reads(1_u64))593 .saturating_add(RocksDbWeight::get().writes(1_u64))594 }595 /// Storage: Nonfungible TokenProperties (r:1 w:1)596 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)597 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)598 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)599 /// The range of component `b` is `[0, 64]`.600 fn set_token_properties(b: u32, ) -> Weight {601 // Proof Size summary in bytes:602 // Measured: `616 + b * (261 ±0)`603 // Estimated: `54480`604 // Minimum execution time: 12_543_000 picoseconds.605 Weight::from_parts(12_686_000, 54480)606 // Standard Error: 52_286607 .saturating_add(Weight::from_parts(6_894_785, 0).saturating_mul(b.into()))608 .saturating_add(RocksDbWeight::get().reads(2_u64))609 .saturating_add(RocksDbWeight::get().writes(1_u64))610 }611 /// Storage: Nonfungible TokenProperties (r:1 w:1)612 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)613 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)614 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)615 /// The range of component `b` is `[0, 64]`.616 fn delete_token_properties(b: u32, ) -> Weight {617 // Proof Size summary in bytes:618 // Measured: `653 + b * (33291 ±0)`619 // Estimated: `54480`620 // Minimum execution time: 12_352_000 picoseconds.621 Weight::from_parts(12_523_000, 54480)622 // Standard Error: 70_401623 .saturating_add(Weight::from_parts(21_959_228, 0).saturating_mul(b.into()))624 .saturating_add(RocksDbWeight::get().reads(2_u64))625 .saturating_add(RocksDbWeight::get().writes(1_u64))626 }627 /// Storage: Nonfungible TokenData (r:1 w:0)628 /// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)629 fn token_owner() -> Weight {630 // Proof Size summary in bytes:631 // Measured: `358`632 // Estimated: `2532`633 // Minimum execution time: 4_797_000 picoseconds.634 Weight::from_parts(5_499_000, 2532)635 .saturating_add(RocksDbWeight::get().reads(1_u64))636 }637 /// Storage: Nonfungible CollectionAllowance (r:0 w:1)638 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)639 fn set_allowance_for_all() -> Weight {640 // Proof Size summary in bytes:641 // Measured: `0`642 // Estimated: `0`643 // Minimum execution time: 6_303_000 picoseconds.644 Weight::from_parts(6_712_000, 0)645 .saturating_add(RocksDbWeight::get().writes(1_u64))646 }647 /// Storage: Nonfungible CollectionAllowance (r:1 w:0)648 /// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)649 fn allowance_for_all() -> Weight {650 // Proof Size summary in bytes:651 // Measured: `109`652 // Estimated: `2586`653 // Minimum execution time: 3_798_000 picoseconds.654 Weight::from_parts(4_017_000, 2586)655 .saturating_add(RocksDbWeight::get().reads(1_u64))656 }657 /// Storage: Nonfungible TokenProperties (r:1 w:1)658 /// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)659 fn repair_item() -> Weight {660 // Proof Size summary in bytes:661 // Measured: `300`662 // Estimated: `35279`663 // Minimum execution time: 5_531_000 picoseconds.664 Weight::from_parts(5_750_000, 35279)665 .saturating_add(RocksDbWeight::get().reads(1_u64))666 .saturating_add(RocksDbWeight::get().writes(1_u64))667 }668}669