difftreelog
fix nft weights
in: master
1 file changed
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: 2022-03-01, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// --pallet13// pallet-nonfungible14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=20022// --heap-pages=409623// --output=./pallets/nonfungible/src/weights.rs2425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_nonfungible.34pub trait WeightInfo {35 fn create_item() -> Weight;36 fn create_multiple_items(b: u32, ) -> Weight;37 fn create_multiple_items_ex(b: u32, ) -> Weight;38 fn burn_item() -> Weight;39 fn set_collection_properties(amount: u32) -> Weight;40 fn delete_collection_properties(amount: u32) -> Weight;41 fn set_token_properties(amount: u32) -> Weight;42 fn delete_token_properties(amount: u32) -> Weight;43 fn set_property_permissions(amount: u32) -> Weight;44 fn transfer() -> Weight;45 fn approve() -> Weight;46 fn transfer_from() -> Weight;47 fn burn_from() -> Weight;48}4950/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.51pub struct SubstrateWeight<T>(PhantomData<T>);52impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {53 // Storage: Nonfungible TokensMinted (r:1 w:1)54 // Storage: Nonfungible AccountBalance (r:1 w:1)55 // Storage: Nonfungible TokenData (r:0 w:1)56 // Storage: Nonfungible Owned (r:0 w:1)57 fn create_item() -> Weight {58 (18_450_000 as Weight)59 .saturating_add(T::DbWeight::get().reads(2 as Weight))60 .saturating_add(T::DbWeight::get().writes(4 as Weight))61 }62 // Storage: Nonfungible TokensMinted (r:1 w:1)63 // Storage: Nonfungible AccountBalance (r:1 w:1)64 // Storage: Nonfungible TokenData (r:0 w:4)65 // Storage: Nonfungible Owned (r:0 w:4)66 fn create_multiple_items(b: u32, ) -> Weight {67 (10_228_000 as Weight)68 // Standard Error: 1_00069 .saturating_add((4_392_000 as Weight).saturating_mul(b as Weight))70 .saturating_add(T::DbWeight::get().reads(2 as Weight))71 .saturating_add(T::DbWeight::get().writes(2 as Weight))72 .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))73 }74 // Storage: Nonfungible TokensMinted (r:1 w:1)75 // Storage: Nonfungible AccountBalance (r:4 w:4)76 // Storage: Nonfungible TokenData (r:0 w:4)77 // Storage: Nonfungible Owned (r:0 w:4)78 fn create_multiple_items_ex(b: u32, ) -> Weight {79 (6_543_000 as Weight)80 // Standard Error: 2_00081 .saturating_add((7_175_000 as Weight).saturating_mul(b as Weight))82 .saturating_add(T::DbWeight::get().reads(1 as Weight))83 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))84 .saturating_add(T::DbWeight::get().writes(1 as Weight))85 .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))86 }87 // Storage: Nonfungible TokenData (r:1 w:1)88 // Storage: Nonfungible TokensBurnt (r:1 w:1)89 // Storage: Nonfungible AccountBalance (r:1 w:1)90 // Storage: Nonfungible Allowance (r:1 w:0)91 // Storage: Nonfungible Owned (r:0 w:1)92 fn burn_item() -> Weight {93 (24_554_000 as Weight)94 .saturating_add(T::DbWeight::get().reads(4 as Weight))95 .saturating_add(T::DbWeight::get().writes(4 as Weight))96 }9798 fn set_collection_properties(amount: u32) -> Weight {99 // TODO calculate appropriate weight100 (50_000_000 as Weight).saturating_mul(amount as Weight)101 }102103 fn delete_collection_properties(amount: u32) -> Weight {104 // TODO calculate appropriate weight105 (50_000_000 as Weight).saturating_mul(amount as Weight)106 }107108 fn set_token_properties(amount: u32) -> Weight {109 // TODO calculate appropriate weight110 (50_000_000 as Weight).saturating_mul(amount as Weight)111 }112113 fn delete_token_properties(amount: u32) -> Weight {114 // TODO calculate appropriate weight115 (50_000_000 as Weight).saturating_mul(amount as Weight)116 }117118 fn set_property_permissions(amount: u32) -> Weight {119 // TODO calculate appropriate weight120 (50_000_000 as Weight).saturating_mul(amount as Weight)121 }122123 // Storage: Nonfungible TokenData (r:1 w:1)124 // Storage: Nonfungible AccountBalance (r:2 w:2)125 // Storage: Nonfungible Allowance (r:1 w:0)126 // Storage: Nonfungible Owned (r:0 w:2)127 fn transfer() -> Weight {128 (28_339_000 as Weight)129 .saturating_add(T::DbWeight::get().reads(4 as Weight))130 .saturating_add(T::DbWeight::get().writes(5 as Weight))131 }132 // Storage: Nonfungible TokenData (r:1 w:0)133 // Storage: Nonfungible Allowance (r:1 w:1)134 fn approve() -> Weight {135 (17_616_000 as Weight)136 .saturating_add(T::DbWeight::get().reads(2 as Weight))137 .saturating_add(T::DbWeight::get().writes(1 as Weight))138 }139 // Storage: Nonfungible Allowance (r:1 w:1)140 // Storage: Nonfungible TokenData (r:1 w:1)141 // Storage: Nonfungible AccountBalance (r:2 w:2)142 // Storage: Nonfungible Owned (r:0 w:2)143 fn transfer_from() -> Weight {144 (32_196_000 as Weight)145 .saturating_add(T::DbWeight::get().reads(4 as Weight))146 .saturating_add(T::DbWeight::get().writes(6 as Weight))147 }148 // Storage: Nonfungible Allowance (r:1 w:1)149 // Storage: Nonfungible TokenData (r:1 w:1)150 // Storage: Nonfungible TokensBurnt (r:1 w:1)151 // Storage: Nonfungible AccountBalance (r:1 w:1)152 // Storage: Nonfungible Owned (r:0 w:1)153 fn burn_from() -> Weight {154 }155 // Storage: Common CollectionPropertyPermissions (r:1 w:1)156 fn set_property_permissions(b: u32, ) -> Weight {157 (0 as Weight)158 // Standard Error: 3_432_000159 .saturating_add((126_888_000 as Weight).saturating_mul(b as Weight))160 .saturating_add(T::DbWeight::get().reads(1 as Weight))161 .saturating_add(T::DbWeight::get().writes(1 as Weight))162 }163 // Storage: Common CollectionPropertyPermissions (r:1 w:0)164 // Storage: Nonfungible TokenData (r:1 w:0)165 // Storage: Nonfungible TokenProperties (r:1 w:1)166 fn set_token_properties(b: u32, ) -> Weight {167 (0 as Weight)168 // Standard Error: 158_583_000169 .saturating_add((4_707_700_000 as Weight).saturating_mul(b as Weight))170 .saturating_add(T::DbWeight::get().reads(3 as Weight))171 .saturating_add(T::DbWeight::get().writes(1 as Weight))172 }173 // Storage: Common CollectionPropertyPermissions (r:1 w:0)174 // Storage: Nonfungible TokenData (r:1 w:0)175 // Storage: Nonfungible TokenProperties (r:1 w:1)176 fn delete_token_properties(b: u32, ) -> Weight {177 (0 as Weight)178 // Standard Error: 169_018_000179 .saturating_add((4_783_967_000 as Weight).saturating_mul(b as Weight))180 .saturating_add(T::DbWeight::get().reads(3 as Weight))181 .saturating_add(T::DbWeight::get().writes(1 as Weight))182 }183}184185// For backwards compatibility and tests186impl WeightInfo for () {187 // Storage: Nonfungible TokensMinted (r:1 w:1)188 // Storage: Nonfungible AccountBalance (r:1 w:1)189 // Storage: Nonfungible TokenData (r:0 w:1)190 // Storage: Nonfungible Owned (r:0 w:1)191 fn create_item() -> Weight {192 (18_450_000 as Weight)193 .saturating_add(RocksDbWeight::get().reads(2 as Weight))194 .saturating_add(RocksDbWeight::get().writes(4 as Weight))195 }196 // Storage: Nonfungible TokensMinted (r:1 w:1)197 // Storage: Nonfungible AccountBalance (r:1 w:1)198 // Storage: Nonfungible TokenData (r:0 w:4)199 // Storage: Nonfungible Owned (r:0 w:4)200 fn create_multiple_items(b: u32, ) -> Weight {201 (10_228_000 as Weight)202 // Standard Error: 1_000203 .saturating_add((4_392_000 as Weight).saturating_mul(b as Weight))204 .saturating_add(RocksDbWeight::get().reads(2 as Weight))205 .saturating_add(RocksDbWeight::get().writes(2 as Weight))206 .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))207 }208 // Storage: Nonfungible TokensMinted (r:1 w:1)209 // Storage: Nonfungible AccountBalance (r:4 w:4)210 // Storage: Nonfungible TokenData (r:0 w:4)211 // Storage: Nonfungible Owned (r:0 w:4)212 fn create_multiple_items_ex(b: u32, ) -> Weight {213 (6_543_000 as Weight)214 // Standard Error: 2_000215 .saturating_add((7_175_000 as Weight).saturating_mul(b as Weight))216 .saturating_add(RocksDbWeight::get().reads(1 as Weight))217 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))218 .saturating_add(RocksDbWeight::get().writes(1 as Weight))219 .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))220 }221 // Storage: Nonfungible TokenData (r:1 w:1)222 // Storage: Nonfungible TokensBurnt (r:1 w:1)223 // Storage: Nonfungible AccountBalance (r:1 w:1)224 // Storage: Nonfungible Allowance (r:1 w:0)225 // Storage: Nonfungible Owned (r:0 w:1)226 fn burn_item() -> Weight {227 (24_554_000 as Weight)228 .saturating_add(RocksDbWeight::get().reads(4 as Weight))229 .saturating_add(RocksDbWeight::get().writes(4 as Weight))230 }231232 fn set_collection_properties(amount: u32) -> Weight {233 // TODO calculate appropriate weight234 (50_000_000 as Weight).saturating_mul(amount as Weight)235 }236237 fn delete_collection_properties(amount: u32) -> Weight {238 // TODO calculate appropriate weight239 (50_000_000 as Weight).saturating_mul(amount as Weight)240 }241242 fn set_token_properties(amount: u32) -> Weight {243 // TODO calculate appropriate weight244 (50_000_000 as Weight).saturating_mul(amount as Weight)245 }246247 fn delete_token_properties(amount: u32) -> Weight {248 // TODO calculate appropriate weight249 (50_000_000 as Weight).saturating_mul(amount as Weight)250 }251252 fn set_property_permissions(amount: u32) -> Weight {253 // TODO calculate appropriate weight254 (50_000_000 as Weight).saturating_mul(amount as Weight)255 }256257 // Storage: Nonfungible TokenData (r:1 w:1)258 // Storage: Nonfungible AccountBalance (r:2 w:2)259 // Storage: Nonfungible Allowance (r:1 w:0)260 // Storage: Nonfungible Owned (r:0 w:2)261 fn transfer() -> Weight {262 (28_339_000 as Weight)263 .saturating_add(RocksDbWeight::get().reads(4 as Weight))264 .saturating_add(RocksDbWeight::get().writes(5 as Weight))265 }266 // Storage: Nonfungible TokenData (r:1 w:0)267 // Storage: Nonfungible Allowance (r:1 w:1)268 fn approve() -> Weight {269 (17_616_000 as Weight)270 .saturating_add(RocksDbWeight::get().reads(2 as Weight))271 .saturating_add(RocksDbWeight::get().writes(1 as Weight))272 }273 // Storage: Nonfungible Allowance (r:1 w:1)274 // Storage: Nonfungible TokenData (r:1 w:1)275 // Storage: Nonfungible AccountBalance (r:2 w:2)276 // Storage: Nonfungible Owned (r:0 w:2)277 fn transfer_from() -> Weight {278 (32_196_000 as Weight)279 .saturating_add(RocksDbWeight::get().reads(4 as Weight))280 .saturating_add(RocksDbWeight::get().writes(6 as Weight))281 }282 // Storage: Nonfungible Allowance (r:1 w:1)283 // Storage: Nonfungible TokenData (r:1 w:1)284 // Storage: Nonfungible TokensBurnt (r:1 w:1)285 // Storage: Nonfungible AccountBalance (r:1 w:1)286 // Storage: Nonfungible Owned (r:0 w:1)287 fn burn_from() -> Weight {288 }289 // Storage: Common CollectionPropertyPermissions (r:1 w:1)290 fn set_property_permissions(b: u32, ) -> Weight {291 (0 as Weight)292 // Standard Error: 3_432_000293 .saturating_add((126_888_000 as Weight).saturating_mul(b as Weight))294 .saturating_add(RocksDbWeight::get().reads(1 as Weight))295 .saturating_add(RocksDbWeight::get().writes(1 as Weight))296 }297 // Storage: Common CollectionPropertyPermissions (r:1 w:0)298 // Storage: Nonfungible TokenData (r:1 w:0)299 // Storage: Nonfungible TokenProperties (r:1 w:1)300 fn set_token_properties(b: u32, ) -> Weight {301 (0 as Weight)302 // Standard Error: 158_583_000303 .saturating_add((4_707_700_000 as Weight).saturating_mul(b as Weight))304 .saturating_add(RocksDbWeight::get().reads(3 as Weight))305 .saturating_add(RocksDbWeight::get().writes(1 as Weight))306 }307 // Storage: Common CollectionPropertyPermissions (r:1 w:0)308 // Storage: Nonfungible TokenData (r:1 w:0)309 // Storage: Nonfungible TokenProperties (r:1 w:1)310 fn delete_token_properties(b: u32, ) -> Weight {311 (0 as Weight)312 // Standard Error: 169_018_000313 .saturating_add((4_783_967_000 as Weight).saturating_mul(b as Weight))314 .saturating_add(RocksDbWeight::get().reads(3 as Weight))315 .saturating_add(RocksDbWeight::get().writes(1 as Weight))316 }317}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: 2022-03-01, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// --pallet13// pallet-nonfungible14// --wasm-execution15// compiled16// --extrinsic17// *18// --template19// .maintain/frame-weight-template.hbs20// --steps=5021// --repeat=20022// --heap-pages=409623// --output=./pallets/nonfungible/src/weights.rs2425#![cfg_attr(rustfmt, rustfmt_skip)]26#![allow(unused_parens)]27#![allow(unused_imports)]28#![allow(clippy::unnecessary_cast)]2930use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};31use sp_std::marker::PhantomData;3233/// Weight functions needed for pallet_nonfungible.34pub trait WeightInfo {35 fn create_item() -> Weight;36 fn create_multiple_items(b: u32, ) -> Weight;37 fn create_multiple_items_ex(b: u32, ) -> Weight;38 fn burn_item() -> Weight;39 fn transfer() -> Weight;40 fn approve() -> Weight;41 fn transfer_from() -> Weight;42 fn burn_from() -> Weight;43 fn set_property_permissions(b: u32) -> Weight;44 fn set_token_properties(b: u32) -> Weight;45 fn delete_token_properties(b: u32) -> Weight;46}4748/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.49pub struct SubstrateWeight<T>(PhantomData<T>);50impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {51 // Storage: Nonfungible TokensMinted (r:1 w:1)52 // Storage: Nonfungible AccountBalance (r:1 w:1)53 // Storage: Nonfungible TokenData (r:0 w:1)54 // Storage: Nonfungible Owned (r:0 w:1)55 fn create_item() -> Weight {56 (18_450_000 as Weight)57 .saturating_add(T::DbWeight::get().reads(2 as Weight))58 .saturating_add(T::DbWeight::get().writes(4 as Weight))59 }60 // Storage: Nonfungible TokensMinted (r:1 w:1)61 // Storage: Nonfungible AccountBalance (r:1 w:1)62 // Storage: Nonfungible TokenData (r:0 w:4)63 // Storage: Nonfungible Owned (r:0 w:4)64 fn create_multiple_items(b: u32, ) -> Weight {65 (10_228_000 as Weight)66 // Standard Error: 1_00067 .saturating_add((4_392_000 as Weight).saturating_mul(b as Weight))68 .saturating_add(T::DbWeight::get().reads(2 as Weight))69 .saturating_add(T::DbWeight::get().writes(2 as Weight))70 .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))71 }72 // Storage: Nonfungible TokensMinted (r:1 w:1)73 // Storage: Nonfungible AccountBalance (r:4 w:4)74 // Storage: Nonfungible TokenData (r:0 w:4)75 // Storage: Nonfungible Owned (r:0 w:4)76 fn create_multiple_items_ex(b: u32, ) -> Weight {77 (6_543_000 as Weight)78 // Standard Error: 2_00079 .saturating_add((7_175_000 as Weight).saturating_mul(b as Weight))80 .saturating_add(T::DbWeight::get().reads(1 as Weight))81 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))82 .saturating_add(T::DbWeight::get().writes(1 as Weight))83 .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))84 }85 // Storage: Nonfungible TokenData (r:1 w:1)86 // Storage: Nonfungible TokensBurnt (r:1 w:1)87 // Storage: Nonfungible AccountBalance (r:1 w:1)88 // Storage: Nonfungible Allowance (r:1 w:0)89 // Storage: Nonfungible Owned (r:0 w:1)90 fn burn_item() -> Weight {91 (24_554_000 as Weight)92 .saturating_add(T::DbWeight::get().reads(4 as Weight))93 .saturating_add(T::DbWeight::get().writes(4 as Weight))94 }9596 // Storage: Nonfungible TokenData (r:1 w:1)97 // Storage: Nonfungible AccountBalance (r:2 w:2)98 // Storage: Nonfungible Allowance (r:1 w:0)99 // Storage: Nonfungible Owned (r:0 w:2)100 fn transfer() -> Weight {101 (28_339_000 as Weight)102 .saturating_add(T::DbWeight::get().reads(4 as Weight))103 .saturating_add(T::DbWeight::get().writes(5 as Weight))104 }105 // Storage: Nonfungible TokenData (r:1 w:0)106 // Storage: Nonfungible Allowance (r:1 w:1)107 fn approve() -> Weight {108 (17_616_000 as Weight)109 .saturating_add(T::DbWeight::get().reads(2 as Weight))110 .saturating_add(T::DbWeight::get().writes(1 as Weight))111 }112 // Storage: Nonfungible Allowance (r:1 w:1)113 // Storage: Nonfungible TokenData (r:1 w:1)114 // Storage: Nonfungible AccountBalance (r:2 w:2)115 // Storage: Nonfungible Owned (r:0 w:2)116 fn transfer_from() -> Weight {117 (32_196_000 as Weight)118 .saturating_add(T::DbWeight::get().reads(4 as Weight))119 .saturating_add(T::DbWeight::get().writes(6 as Weight))120 }121 // Storage: Nonfungible Allowance (r:1 w:1)122 // Storage: Nonfungible TokenData (r:1 w:1)123 // Storage: Nonfungible TokensBurnt (r:1 w:1)124 // Storage: Nonfungible AccountBalance (r:1 w:1)125 // Storage: Nonfungible Owned (r:0 w:1)126 fn burn_from() -> Weight {127 (27_580_000 as Weight)128 .saturating_add(T::DbWeight::get().reads(4 as Weight))129 .saturating_add(T::DbWeight::get().writes(5 as Weight))130 }131 // Storage: Common CollectionPropertyPermissions (r:1 w:1)132 fn set_property_permissions(b: u32, ) -> Weight {133 (0 as Weight)134 // Standard Error: 3_432_000135 .saturating_add((126_888_000 as Weight).saturating_mul(b as Weight))136 .saturating_add(T::DbWeight::get().reads(1 as Weight))137 .saturating_add(T::DbWeight::get().writes(1 as Weight))138 }139 // Storage: Common CollectionPropertyPermissions (r:1 w:0)140 // Storage: Nonfungible TokenData (r:1 w:0)141 // Storage: Nonfungible TokenProperties (r:1 w:1)142 fn set_token_properties(b: u32, ) -> Weight {143 (0 as Weight)144 // Standard Error: 158_583_000145 .saturating_add((4_707_700_000 as Weight).saturating_mul(b as Weight))146 .saturating_add(T::DbWeight::get().reads(3 as Weight))147 .saturating_add(T::DbWeight::get().writes(1 as Weight))148 }149 // Storage: Common CollectionPropertyPermissions (r:1 w:0)150 // Storage: Nonfungible TokenData (r:1 w:0)151 // Storage: Nonfungible TokenProperties (r:1 w:1)152 fn delete_token_properties(b: u32, ) -> Weight {153 (0 as Weight)154 // Standard Error: 169_018_000155 .saturating_add((4_783_967_000 as Weight).saturating_mul(b as Weight))156 .saturating_add(T::DbWeight::get().reads(3 as Weight))157 .saturating_add(T::DbWeight::get().writes(1 as Weight))158 }159}160161// For backwards compatibility and tests162impl WeightInfo for () {163 // Storage: Nonfungible TokensMinted (r:1 w:1)164 // Storage: Nonfungible AccountBalance (r:1 w:1)165 // Storage: Nonfungible TokenData (r:0 w:1)166 // Storage: Nonfungible Owned (r:0 w:1)167 fn create_item() -> Weight {168 (18_450_000 as Weight)169 .saturating_add(RocksDbWeight::get().reads(2 as Weight))170 .saturating_add(RocksDbWeight::get().writes(4 as Weight))171 }172 // Storage: Nonfungible TokensMinted (r:1 w:1)173 // Storage: Nonfungible AccountBalance (r:1 w:1)174 // Storage: Nonfungible TokenData (r:0 w:4)175 // Storage: Nonfungible Owned (r:0 w:4)176 fn create_multiple_items(b: u32, ) -> Weight {177 (10_228_000 as Weight)178 // Standard Error: 1_000179 .saturating_add((4_392_000 as Weight).saturating_mul(b as Weight))180 .saturating_add(RocksDbWeight::get().reads(2 as Weight))181 .saturating_add(RocksDbWeight::get().writes(2 as Weight))182 .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(b as Weight)))183 }184 // Storage: Nonfungible TokensMinted (r:1 w:1)185 // Storage: Nonfungible AccountBalance (r:4 w:4)186 // Storage: Nonfungible TokenData (r:0 w:4)187 // Storage: Nonfungible Owned (r:0 w:4)188 fn create_multiple_items_ex(b: u32, ) -> Weight {189 (6_543_000 as Weight)190 // Standard Error: 2_000191 .saturating_add((7_175_000 as Weight).saturating_mul(b as Weight))192 .saturating_add(RocksDbWeight::get().reads(1 as Weight))193 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))194 .saturating_add(RocksDbWeight::get().writes(1 as Weight))195 .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))196 }197 // Storage: Nonfungible TokenData (r:1 w:1)198 // Storage: Nonfungible TokensBurnt (r:1 w:1)199 // Storage: Nonfungible AccountBalance (r:1 w:1)200 // Storage: Nonfungible Allowance (r:1 w:0)201 // Storage: Nonfungible Owned (r:0 w:1)202 fn burn_item() -> Weight {203 (24_554_000 as Weight)204 .saturating_add(RocksDbWeight::get().reads(4 as Weight))205 .saturating_add(RocksDbWeight::get().writes(4 as Weight))206 }207208 // Storage: Nonfungible TokenData (r:1 w:1)209 // Storage: Nonfungible AccountBalance (r:2 w:2)210 // Storage: Nonfungible Allowance (r:1 w:0)211 // Storage: Nonfungible Owned (r:0 w:2)212 fn transfer() -> Weight {213 (28_339_000 as Weight)214 .saturating_add(RocksDbWeight::get().reads(4 as Weight))215 .saturating_add(RocksDbWeight::get().writes(5 as Weight))216 }217 // Storage: Nonfungible TokenData (r:1 w:0)218 // Storage: Nonfungible Allowance (r:1 w:1)219 fn approve() -> Weight {220 (17_616_000 as Weight)221 .saturating_add(RocksDbWeight::get().reads(2 as Weight))222 .saturating_add(RocksDbWeight::get().writes(1 as Weight))223 }224 // Storage: Nonfungible Allowance (r:1 w:1)225 // Storage: Nonfungible TokenData (r:1 w:1)226 // Storage: Nonfungible AccountBalance (r:2 w:2)227 // Storage: Nonfungible Owned (r:0 w:2)228 fn transfer_from() -> Weight {229 (32_196_000 as Weight)230 .saturating_add(RocksDbWeight::get().reads(4 as Weight))231 .saturating_add(RocksDbWeight::get().writes(6 as Weight))232 }233 // Storage: Nonfungible Allowance (r:1 w:1)234 // Storage: Nonfungible TokenData (r:1 w:1)235 // Storage: Nonfungible TokensBurnt (r:1 w:1)236 // Storage: Nonfungible AccountBalance (r:1 w:1)237 // Storage: Nonfungible Owned (r:0 w:1)238 fn burn_from() -> Weight {239 (27_580_000 as Weight)240 .saturating_add(RocksDbWeight::get().reads(4 as Weight))241 .saturating_add(RocksDbWeight::get().writes(5 as Weight))242 }243 // Storage: Common CollectionPropertyPermissions (r:1 w:1)244 fn set_property_permissions(b: u32, ) -> Weight {245 (0 as Weight)246 // Standard Error: 3_432_000247 .saturating_add((126_888_000 as Weight).saturating_mul(b as Weight))248 .saturating_add(RocksDbWeight::get().reads(1 as Weight))249 .saturating_add(RocksDbWeight::get().writes(1 as Weight))250 }251 // Storage: Common CollectionPropertyPermissions (r:1 w:0)252 // Storage: Nonfungible TokenData (r:1 w:0)253 // Storage: Nonfungible TokenProperties (r:1 w:1)254 fn set_token_properties(b: u32, ) -> Weight {255 (0 as Weight)256 // Standard Error: 158_583_000257 .saturating_add((4_707_700_000 as Weight).saturating_mul(b as Weight))258 .saturating_add(RocksDbWeight::get().reads(3 as Weight))259 .saturating_add(RocksDbWeight::get().writes(1 as Weight))260 }261 // Storage: Common CollectionPropertyPermissions (r:1 w:0)262 // Storage: Nonfungible TokenData (r:1 w:0)263 // Storage: Nonfungible TokenProperties (r:1 w:1)264 fn delete_token_properties(b: u32, ) -> Weight {265 (0 as Weight)266 // Standard Error: 169_018_000267 .saturating_add((4_783_967_000 as Weight).saturating_mul(b as Weight))268 .saturating_add(RocksDbWeight::get().reads(3 as Weight))269 .saturating_add(RocksDbWeight::get().writes(1 as Weight))270 }271}