difftreelog
feat(rmrk) benchmark new mint_nft
in: master
3 files changed
pallets/proxy-rmrk-core/src/benchmarking.rsdiffbeforeafterboth53 }53 }54}54}5556fn create_max_resource_types_array<S: Get<u32>>(num: usize) -> BoundedVec<RmrkResourceTypes, S> {57 vec![RmrkResourceTypes::Composable(create_composable_resource()); num].try_into().expect("num <= S")58}555956fn create_max_collection<T: Config>(owner: &T::AccountId) -> DispatchResult {60fn create_max_collection<T: Config>(owner: &T::AccountId) -> DispatchResult {57 <T as pallet_common::Config>::Currency::deposit_creating(61 <T as pallet_common::Config>::Currency::deposit_creating(71 )75 )72}76}737774fn create_max_nft<T: Config>(78fn create_nft<T: Config>(75 owner: &T::AccountId,79 owner: &T::AccountId,76 collection_id: RmrkCollectionId,80 collection_id: RmrkCollectionId,77) -> DispatchResult {81) -> DispatchResult {88 royalty_amount,92 royalty_amount,89 metadata,93 metadata,90 transferable,94 transferable,95 None91 )96 )92}97}9398109 }114 }110115111 fn build<T: Config>(&mut self, owner: &T::AccountId) -> Result<RmrkNftId, DispatchError> {116 fn build<T: Config>(&mut self, owner: &T::AccountId) -> Result<RmrkNftId, DispatchError> {112 create_max_nft::<T>(owner, self.collection_id)?;117 create_nft::<T>(owner, self.collection_id)?;113 self.current_nft_id += 1;118 self.current_nft_id += 1;114119115 Ok(self.current_nft_id)120 Ok(self.current_nft_id)213 }: _(RawOrigin::Signed(caller), collection_id)218 }: _(RawOrigin::Signed(caller), collection_id)214219215 mint_nft {220 mint_nft {221 let b in 0..100;222216 let caller: T::AccountId = account("caller", 0, SEED);223 let caller: T::AccountId = account("caller", 0, SEED);224 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());217225218 create_max_collection::<T>(&caller)?;226 create_max_collection::<T>(&caller)?;219 let collection_id = 0;227 let collection_id = 0;230 royalty_recipient,238 royalty_recipient,231 royalty_amount,239 royalty_amount,232 metadata,240 metadata,233 transferable241 transferable,242 Some(create_max_resource_types_array(b as usize))234 )243 )235244236 burn_nft {245 burn_nft {pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth344 /// - `metadata`: Arbitrary data about an nft, e.g. IPFS hash344 /// - `metadata`: Arbitrary data about an nft, e.g. IPFS hash345 /// - `transferable`: Ability to transfer this NFT345 /// - `transferable`: Ability to transfer this NFT346 #[transactional]346 #[transactional]347 #[pallet::weight(<SelfWeightOf<T>>::mint_nft())]347 #[pallet::weight(<SelfWeightOf<T>>::mint_nft(resources.as_ref().map(|r| r.len() as u32).unwrap_or(0)))]348 pub fn mint_nft(348 pub fn mint_nft(349 origin: OriginFor<T>,349 origin: OriginFor<T>,350 owner: T::AccountId,350 owner: T::AccountId,pallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth3//! Autogenerated weights for pallet_proxy_rmrk_core3//! Autogenerated weights for pallet_proxy_rmrk_core4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-10, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-14, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024889// Executed Command:9// Executed Command:37 fn destroy_collection() -> Weight;37 fn destroy_collection() -> Weight;38 fn change_collection_issuer() -> Weight;38 fn change_collection_issuer() -> Weight;39 fn lock_collection() -> Weight;39 fn lock_collection() -> Weight;40 fn mint_nft() -> Weight;40 fn mint_nft(b: u32, ) -> Weight;41 fn burn_nft(b: u32, ) -> Weight;41 fn burn_nft(b: u32, ) -> Weight;42 fn send() -> Weight;42 fn send() -> Weight;43 fn accept_nft() -> Weight;43 fn accept_nft() -> Weight;64 // Storage: Common CollectionById (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)66 fn create_collection() -> Weight {66 fn create_collection() -> Weight {67 (40_837_000 as Weight)67 (41_277_000 as Weight)68 .saturating_add(T::DbWeight::get().reads(5 as Weight))68 .saturating_add(T::DbWeight::get().reads(5 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))70 }70 }77 // Storage: Nonfungible TokensBurnt (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)79 fn destroy_collection() -> Weight {79 fn destroy_collection() -> Weight {80 (44_544_000 as Weight)80 (43_371_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(5 as Weight))81 .saturating_add(T::DbWeight::get().reads(5 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))83 }83 }84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)85 // Storage: Common CollectionById (r:1 w:1)85 // Storage: Common CollectionById (r:1 w:1)86 // Storage: Common CollectionProperties (r:1 w:0)86 // Storage: Common CollectionProperties (r:1 w:0)87 fn change_collection_issuer() -> Weight {87 fn change_collection_issuer() -> Weight {88 (22_151_000 as Weight)88 (21_891_000 as Weight)89 .saturating_add(T::DbWeight::get().reads(3 as Weight))89 .saturating_add(T::DbWeight::get().reads(3 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))91 }91 }95 // Storage: Nonfungible TokensMinted (r:1 w:0)95 // Storage: Nonfungible TokensMinted (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)97 fn lock_collection() -> Weight {97 fn lock_collection() -> Weight {98 (23_766_000 as Weight)98 (23_144_000 as Weight)99 .saturating_add(T::DbWeight::get().reads(5 as Weight))99 .saturating_add(T::DbWeight::get().reads(5 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 }101 }107 // Storage: Nonfungible TokenProperties (r:1 w:1)107 // Storage: Nonfungible TokenProperties (r:1 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)110 // Storage: Common CreatedCollectionCount (r:1 w:1)111 // Storage: Common DestroyedCollectionCount (r:1 w:0)112 // Storage: System Account (r:2 w:2)113 // Storage: Common CollectionPropertyPermissions (r:0 w:1)110 fn mint_nft() -> Weight {114 fn mint_nft(b: u32, ) -> Weight {115 (68_329_000 as Weight)116 // Standard Error: 3_000117 .saturating_add((21_470_000 as Weight).saturating_mul(b as Weight))118 .saturating_add(T::DbWeight::get().reads(12 as Weight))111 (40_237_000 as Weight)119 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))112 .saturating_add(T::DbWeight::get().reads(6 as Weight))120 .saturating_add(T::DbWeight::get().writes(12 as Weight))113 .saturating_add(T::DbWeight::get().writes(5 as Weight))121 .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))114 }122 }115 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)123 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)116 // Storage: Common CollectionProperties (r:1 w:0)124 // Storage: Common CollectionProperties (r:1 w:0)124 // Storage: Nonfungible TokenProperties (r:0 w:1)132 // Storage: Nonfungible TokenProperties (r:0 w:1)125 fn burn_nft(b: u32, ) -> Weight {133 fn burn_nft(b: u32, ) -> Weight {126 (0 as Weight)134 (0 as Weight)127 // Standard Error: 1_023_000135 // Standard Error: 959_000128 .saturating_add((318_424_000 as Weight).saturating_mul(b as Weight))136 .saturating_add((305_872_000 as Weight).saturating_mul(b as Weight))129 .saturating_add(T::DbWeight::get().reads(9 as Weight))137 .saturating_add(T::DbWeight::get().reads(9 as Weight))130 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))138 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))131 .saturating_add(T::DbWeight::get().writes(6 as Weight))139 .saturating_add(T::DbWeight::get().writes(6 as Weight))141 // Storage: Nonfungible TokenChildren (r:0 w:1)149 // Storage: Nonfungible TokenChildren (r:0 w:1)142 // Storage: Nonfungible Owned (r:0 w:2)150 // Storage: Nonfungible Owned (r:0 w:2)143 fn send() -> Weight {151 fn send() -> Weight {144 (71_055_000 as Weight)152 (71_405_000 as Weight)145 .saturating_add(T::DbWeight::get().reads(12 as Weight))153 .saturating_add(T::DbWeight::get().reads(12 as Weight))146 .saturating_add(T::DbWeight::get().writes(6 as Weight))154 .saturating_add(T::DbWeight::get().writes(6 as Weight))147 }155 }155 // Storage: Nonfungible TokenChildren (r:0 w:1)163 // Storage: Nonfungible TokenChildren (r:0 w:1)156 // Storage: Nonfungible Owned (r:0 w:2)164 // Storage: Nonfungible Owned (r:0 w:2)157 fn accept_nft() -> Weight {165 fn accept_nft() -> Weight {158 (79_098_000 as Weight)166 (79_159_000 as Weight)159 .saturating_add(T::DbWeight::get().reads(15 as Weight))167 .saturating_add(T::DbWeight::get().reads(15 as Weight))160 .saturating_add(T::DbWeight::get().writes(7 as Weight))168 .saturating_add(T::DbWeight::get().writes(7 as Weight))161 }169 }170 // Storage: Nonfungible Allowance (r:5 w:0)178 // Storage: Nonfungible Allowance (r:5 w:0)171 // Storage: Nonfungible Owned (r:0 w:5)179 // Storage: Nonfungible Owned (r:0 w:5)172 fn reject_nft() -> Weight {180 fn reject_nft() -> Weight {173 (237_777_000 as Weight)181 (238_179_000 as Weight)174 .saturating_add(T::DbWeight::get().reads(29 as Weight))182 .saturating_add(T::DbWeight::get().reads(29 as Weight))175 .saturating_add(T::DbWeight::get().writes(25 as Weight))183 .saturating_add(T::DbWeight::get().writes(25 as Weight))176 }184 }180 // Storage: Nonfungible TokenProperties (r:1 w:1)188 // Storage: Nonfungible TokenProperties (r:1 w:1)181 // Storage: Nonfungible TokenData (r:5 w:0)189 // Storage: Nonfungible TokenData (r:5 w:0)182 fn set_property() -> Weight {190 fn set_property() -> Weight {183 (47_359_000 as Weight)191 (47_770_000 as Weight)184 .saturating_add(T::DbWeight::get().reads(9 as Weight))192 .saturating_add(T::DbWeight::get().reads(9 as Weight))185 .saturating_add(T::DbWeight::get().writes(1 as Weight))193 .saturating_add(T::DbWeight::get().writes(1 as Weight))186 }194 }190 // Storage: Nonfungible TokenProperties (r:1 w:1)198 // Storage: Nonfungible TokenProperties (r:1 w:1)191 // Storage: Nonfungible TokenData (r:5 w:0)199 // Storage: Nonfungible TokenData (r:5 w:0)192 fn set_priority() -> Weight {200 fn set_priority() -> Weight {193 (46_537_000 as Weight)201 (46_679_000 as Weight)194 .saturating_add(T::DbWeight::get().reads(9 as Weight))202 .saturating_add(T::DbWeight::get().reads(9 as Weight))195 .saturating_add(T::DbWeight::get().writes(1 as Weight))203 .saturating_add(T::DbWeight::get().writes(1 as Weight))196 }204 }207 // Storage: Nonfungible Owned (r:0 w:1)215 // Storage: Nonfungible Owned (r:0 w:1)208 // Storage: Common CollectionPropertyPermissions (r:0 w:1)216 // Storage: Common CollectionPropertyPermissions (r:0 w:1)209 fn add_basic_resource() -> Weight {217 fn add_basic_resource() -> Weight {210 (100_939_000 as Weight)218 (100_770_000 as Weight)211 .saturating_add(T::DbWeight::get().reads(16 as Weight))219 .saturating_add(T::DbWeight::get().reads(16 as Weight))212 .saturating_add(T::DbWeight::get().writes(12 as Weight))220 .saturating_add(T::DbWeight::get().writes(12 as Weight))213 }221 }224 // Storage: Nonfungible Owned (r:0 w:1)232 // Storage: Nonfungible Owned (r:0 w:1)225 // Storage: Common CollectionPropertyPermissions (r:0 w:1)233 // Storage: Common CollectionPropertyPermissions (r:0 w:1)226 fn add_composable_resource() -> Weight {234 fn add_composable_resource() -> Weight {227 (101_821_000 as Weight)235 (101_791_000 as Weight)228 .saturating_add(T::DbWeight::get().reads(16 as Weight))236 .saturating_add(T::DbWeight::get().reads(16 as Weight))229 .saturating_add(T::DbWeight::get().writes(12 as Weight))237 .saturating_add(T::DbWeight::get().writes(12 as Weight))230 }238 }241 // Storage: Nonfungible Owned (r:0 w:1)249 // Storage: Nonfungible Owned (r:0 w:1)242 // Storage: Common CollectionPropertyPermissions (r:0 w:1)250 // Storage: Common CollectionPropertyPermissions (r:0 w:1)243 fn add_slot_resource() -> Weight {251 fn add_slot_resource() -> Weight {244 (100_880_000 as Weight)252 (101_610_000 as Weight)245 .saturating_add(T::DbWeight::get().reads(16 as Weight))253 .saturating_add(T::DbWeight::get().reads(16 as Weight))246 .saturating_add(T::DbWeight::get().writes(12 as Weight))254 .saturating_add(T::DbWeight::get().writes(12 as Weight))247 }255 }256 // Storage: Nonfungible Allowance (r:1 w:0)264 // Storage: Nonfungible Allowance (r:1 w:0)257 // Storage: Nonfungible Owned (r:0 w:1)265 // Storage: Nonfungible Owned (r:0 w:1)258 fn remove_resource() -> Weight {266 fn remove_resource() -> Weight {259 (79_831_000 as Weight)267 (80_571_000 as Weight)260 .saturating_add(T::DbWeight::get().reads(16 as Weight))268 .saturating_add(T::DbWeight::get().reads(16 as Weight))261 .saturating_add(T::DbWeight::get().writes(5 as Weight))269 .saturating_add(T::DbWeight::get().writes(5 as Weight))262 }270 }266 // Storage: Nonfungible TokenData (r:5 w:0)274 // Storage: Nonfungible TokenData (r:5 w:0)267 // Storage: Nonfungible TokenProperties (r:2 w:1)275 // Storage: Nonfungible TokenProperties (r:2 w:1)268 fn accept_resource() -> Weight {276 fn accept_resource() -> Weight {269 (54_573_000 as Weight)277 (54_733_000 as Weight)270 .saturating_add(T::DbWeight::get().reads(10 as Weight))278 .saturating_add(T::DbWeight::get().reads(10 as Weight))271 .saturating_add(T::DbWeight::get().writes(1 as Weight))279 .saturating_add(T::DbWeight::get().writes(1 as Weight))272 }280 }281 // Storage: Nonfungible Allowance (r:1 w:0)289 // Storage: Nonfungible Allowance (r:1 w:0)282 // Storage: Nonfungible Owned (r:0 w:1)290 // Storage: Nonfungible Owned (r:0 w:1)283 fn accept_resource_removal() -> Weight {291 fn accept_resource_removal() -> Weight {284 (83_426_000 as Weight)292 (84_138_000 as Weight)285 .saturating_add(T::DbWeight::get().reads(17 as Weight))293 .saturating_add(T::DbWeight::get().reads(17 as Weight))286 .saturating_add(T::DbWeight::get().writes(5 as Weight))294 .saturating_add(T::DbWeight::get().writes(5 as Weight))287 }295 }298 // Storage: Common CollectionById (r:0 w:1)306 // Storage: Common CollectionById (r:0 w:1)299 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)307 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)300 fn create_collection() -> Weight {308 fn create_collection() -> Weight {301 (40_837_000 as Weight)309 (41_277_000 as Weight)302 .saturating_add(RocksDbWeight::get().reads(5 as Weight))310 .saturating_add(RocksDbWeight::get().reads(5 as Weight))303 .saturating_add(RocksDbWeight::get().writes(8 as Weight))311 .saturating_add(RocksDbWeight::get().writes(8 as Weight))304 }312 }311 // Storage: Nonfungible TokensBurnt (r:0 w:1)319 // Storage: Nonfungible TokensBurnt (r:0 w:1)312 // Storage: Common AdminAmount (r:0 w:1)320 // Storage: Common AdminAmount (r:0 w:1)313 fn destroy_collection() -> Weight {321 fn destroy_collection() -> Weight {314 (44_544_000 as Weight)322 (43_371_000 as Weight)315 .saturating_add(RocksDbWeight::get().reads(5 as Weight))323 .saturating_add(RocksDbWeight::get().reads(5 as Weight))316 .saturating_add(RocksDbWeight::get().writes(6 as Weight))324 .saturating_add(RocksDbWeight::get().writes(6 as Weight))317 }325 }318 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)326 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)319 // Storage: Common CollectionById (r:1 w:1)327 // Storage: Common CollectionById (r:1 w:1)320 // Storage: Common CollectionProperties (r:1 w:0)328 // Storage: Common CollectionProperties (r:1 w:0)321 fn change_collection_issuer() -> Weight {329 fn change_collection_issuer() -> Weight {322 (22_151_000 as Weight)330 (21_891_000 as Weight)323 .saturating_add(RocksDbWeight::get().reads(3 as Weight))331 .saturating_add(RocksDbWeight::get().reads(3 as Weight))324 .saturating_add(RocksDbWeight::get().writes(1 as Weight))332 .saturating_add(RocksDbWeight::get().writes(1 as Weight))325 }333 }329 // Storage: Nonfungible TokensMinted (r:1 w:0)337 // Storage: Nonfungible TokensMinted (r:1 w:0)330 // Storage: Nonfungible TokensBurnt (r:1 w:0)338 // Storage: Nonfungible TokensBurnt (r:1 w:0)331 fn lock_collection() -> Weight {339 fn lock_collection() -> Weight {332 (23_766_000 as Weight)340 (23_144_000 as Weight)333 .saturating_add(RocksDbWeight::get().reads(5 as Weight))341 .saturating_add(RocksDbWeight::get().reads(5 as Weight))334 .saturating_add(RocksDbWeight::get().writes(1 as Weight))342 .saturating_add(RocksDbWeight::get().writes(1 as Weight))335 }343 }341 // Storage: Nonfungible TokenProperties (r:1 w:1)349 // Storage: Nonfungible TokenProperties (r:1 w:1)342 // Storage: Nonfungible TokenData (r:0 w:1)350 // Storage: Nonfungible TokenData (r:0 w:1)343 // Storage: Nonfungible Owned (r:0 w:1)351 // Storage: Nonfungible Owned (r:0 w:1)352 // Storage: Common CreatedCollectionCount (r:1 w:1)353 // Storage: Common DestroyedCollectionCount (r:1 w:0)354 // Storage: System Account (r:2 w:2)355 // Storage: Common CollectionPropertyPermissions (r:0 w:1)344 fn mint_nft() -> Weight {356 fn mint_nft(b: u32, ) -> Weight {357 (68_329_000 as Weight)358 // Standard Error: 3_000359 .saturating_add((21_470_000 as Weight).saturating_mul(b as Weight))360 .saturating_add(RocksDbWeight::get().reads(12 as Weight))345 (40_237_000 as Weight)361 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))346 .saturating_add(RocksDbWeight::get().reads(6 as Weight))362 .saturating_add(RocksDbWeight::get().writes(12 as Weight))347 .saturating_add(RocksDbWeight::get().writes(5 as Weight))363 .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))348 }364 }349 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)365 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)350 // Storage: Common CollectionProperties (r:1 w:0)366 // Storage: Common CollectionProperties (r:1 w:0)358 // Storage: Nonfungible TokenProperties (r:0 w:1)374 // Storage: Nonfungible TokenProperties (r:0 w:1)359 fn burn_nft(b: u32, ) -> Weight {375 fn burn_nft(b: u32, ) -> Weight {360 (0 as Weight)376 (0 as Weight)361 // Standard Error: 1_023_000377 // Standard Error: 959_000362 .saturating_add((318_424_000 as Weight).saturating_mul(b as Weight))378 .saturating_add((305_872_000 as Weight).saturating_mul(b as Weight))363 .saturating_add(RocksDbWeight::get().reads(9 as Weight))379 .saturating_add(RocksDbWeight::get().reads(9 as Weight))364 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))380 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))365 .saturating_add(RocksDbWeight::get().writes(6 as Weight))381 .saturating_add(RocksDbWeight::get().writes(6 as Weight))375 // Storage: Nonfungible TokenChildren (r:0 w:1)391 // Storage: Nonfungible TokenChildren (r:0 w:1)376 // Storage: Nonfungible Owned (r:0 w:2)392 // Storage: Nonfungible Owned (r:0 w:2)377 fn send() -> Weight {393 fn send() -> Weight {378 (71_055_000 as Weight)394 (71_405_000 as Weight)379 .saturating_add(RocksDbWeight::get().reads(12 as Weight))395 .saturating_add(RocksDbWeight::get().reads(12 as Weight))380 .saturating_add(RocksDbWeight::get().writes(6 as Weight))396 .saturating_add(RocksDbWeight::get().writes(6 as Weight))381 }397 }389 // Storage: Nonfungible TokenChildren (r:0 w:1)405 // Storage: Nonfungible TokenChildren (r:0 w:1)390 // Storage: Nonfungible Owned (r:0 w:2)406 // Storage: Nonfungible Owned (r:0 w:2)391 fn accept_nft() -> Weight {407 fn accept_nft() -> Weight {392 (79_098_000 as Weight)408 (79_159_000 as Weight)393 .saturating_add(RocksDbWeight::get().reads(15 as Weight))409 .saturating_add(RocksDbWeight::get().reads(15 as Weight))394 .saturating_add(RocksDbWeight::get().writes(7 as Weight))410 .saturating_add(RocksDbWeight::get().writes(7 as Weight))395 }411 }404 // Storage: Nonfungible Allowance (r:5 w:0)420 // Storage: Nonfungible Allowance (r:5 w:0)405 // Storage: Nonfungible Owned (r:0 w:5)421 // Storage: Nonfungible Owned (r:0 w:5)406 fn reject_nft() -> Weight {422 fn reject_nft() -> Weight {407 (237_777_000 as Weight)423 (238_179_000 as Weight)408 .saturating_add(RocksDbWeight::get().reads(29 as Weight))424 .saturating_add(RocksDbWeight::get().reads(29 as Weight))409 .saturating_add(RocksDbWeight::get().writes(25 as Weight))425 .saturating_add(RocksDbWeight::get().writes(25 as Weight))410 }426 }414 // Storage: Nonfungible TokenProperties (r:1 w:1)430 // Storage: Nonfungible TokenProperties (r:1 w:1)415 // Storage: Nonfungible TokenData (r:5 w:0)431 // Storage: Nonfungible TokenData (r:5 w:0)416 fn set_property() -> Weight {432 fn set_property() -> Weight {417 (47_359_000 as Weight)433 (47_770_000 as Weight)418 .saturating_add(RocksDbWeight::get().reads(9 as Weight))434 .saturating_add(RocksDbWeight::get().reads(9 as Weight))419 .saturating_add(RocksDbWeight::get().writes(1 as Weight))435 .saturating_add(RocksDbWeight::get().writes(1 as Weight))420 }436 }424 // Storage: Nonfungible TokenProperties (r:1 w:1)440 // Storage: Nonfungible TokenProperties (r:1 w:1)425 // Storage: Nonfungible TokenData (r:5 w:0)441 // Storage: Nonfungible TokenData (r:5 w:0)426 fn set_priority() -> Weight {442 fn set_priority() -> Weight {427 (46_537_000 as Weight)443 (46_679_000 as Weight)428 .saturating_add(RocksDbWeight::get().reads(9 as Weight))444 .saturating_add(RocksDbWeight::get().reads(9 as Weight))429 .saturating_add(RocksDbWeight::get().writes(1 as Weight))445 .saturating_add(RocksDbWeight::get().writes(1 as Weight))430 }446 }441 // Storage: Nonfungible Owned (r:0 w:1)457 // Storage: Nonfungible Owned (r:0 w:1)442 // Storage: Common CollectionPropertyPermissions (r:0 w:1)458 // Storage: Common CollectionPropertyPermissions (r:0 w:1)443 fn add_basic_resource() -> Weight {459 fn add_basic_resource() -> Weight {444 (100_939_000 as Weight)460 (100_770_000 as Weight)445 .saturating_add(RocksDbWeight::get().reads(16 as Weight))461 .saturating_add(RocksDbWeight::get().reads(16 as Weight))446 .saturating_add(RocksDbWeight::get().writes(12 as Weight))462 .saturating_add(RocksDbWeight::get().writes(12 as Weight))447 }463 }458 // Storage: Nonfungible Owned (r:0 w:1)474 // Storage: Nonfungible Owned (r:0 w:1)459 // Storage: Common CollectionPropertyPermissions (r:0 w:1)475 // Storage: Common CollectionPropertyPermissions (r:0 w:1)460 fn add_composable_resource() -> Weight {476 fn add_composable_resource() -> Weight {461 (101_821_000 as Weight)477 (101_791_000 as Weight)462 .saturating_add(RocksDbWeight::get().reads(16 as Weight))478 .saturating_add(RocksDbWeight::get().reads(16 as Weight))463 .saturating_add(RocksDbWeight::get().writes(12 as Weight))479 .saturating_add(RocksDbWeight::get().writes(12 as Weight))464 }480 }475 // Storage: Nonfungible Owned (r:0 w:1)491 // Storage: Nonfungible Owned (r:0 w:1)476 // Storage: Common CollectionPropertyPermissions (r:0 w:1)492 // Storage: Common CollectionPropertyPermissions (r:0 w:1)477 fn add_slot_resource() -> Weight {493 fn add_slot_resource() -> Weight {478 (100_880_000 as Weight)494 (101_610_000 as Weight)479 .saturating_add(RocksDbWeight::get().reads(16 as Weight))495 .saturating_add(RocksDbWeight::get().reads(16 as Weight))480 .saturating_add(RocksDbWeight::get().writes(12 as Weight))496 .saturating_add(RocksDbWeight::get().writes(12 as Weight))481 }497 }490 // Storage: Nonfungible Allowance (r:1 w:0)506 // Storage: Nonfungible Allowance (r:1 w:0)491 // Storage: Nonfungible Owned (r:0 w:1)507 // Storage: Nonfungible Owned (r:0 w:1)492 fn remove_resource() -> Weight {508 fn remove_resource() -> Weight {493 (79_831_000 as Weight)509 (80_571_000 as Weight)494 .saturating_add(RocksDbWeight::get().reads(16 as Weight))510 .saturating_add(RocksDbWeight::get().reads(16 as Weight))495 .saturating_add(RocksDbWeight::get().writes(5 as Weight))511 .saturating_add(RocksDbWeight::get().writes(5 as Weight))496 }512 }500 // Storage: Nonfungible TokenData (r:5 w:0)516 // Storage: Nonfungible TokenData (r:5 w:0)501 // Storage: Nonfungible TokenProperties (r:2 w:1)517 // Storage: Nonfungible TokenProperties (r:2 w:1)502 fn accept_resource() -> Weight {518 fn accept_resource() -> Weight {503 (54_573_000 as Weight)519 (54_733_000 as Weight)504 .saturating_add(RocksDbWeight::get().reads(10 as Weight))520 .saturating_add(RocksDbWeight::get().reads(10 as Weight))505 .saturating_add(RocksDbWeight::get().writes(1 as Weight))521 .saturating_add(RocksDbWeight::get().writes(1 as Weight))506 }522 }515 // Storage: Nonfungible Allowance (r:1 w:0)531 // Storage: Nonfungible Allowance (r:1 w:0)516 // Storage: Nonfungible Owned (r:0 w:1)532 // Storage: Nonfungible Owned (r:0 w:1)517 fn accept_resource_removal() -> Weight {533 fn accept_resource_removal() -> Weight {518 (83_426_000 as Weight)534 (84_138_000 as Weight)519 .saturating_add(RocksDbWeight::get().reads(17 as Weight))535 .saturating_add(RocksDbWeight::get().reads(17 as Weight))520 .saturating_add(RocksDbWeight::get().writes(5 as Weight))536 .saturating_add(RocksDbWeight::get().writes(5 as Weight))521 }537 }