difftreelog
feat(rmrk) benchmark burn_nft
in: master
3 files changed
pallets/proxy-rmrk-core/src/benchmarking.rsdiffbeforeafterboth149 Ok((root_nft_id, deepest_nft_id))149 Ok((root_nft_id, deepest_nft_id))150 }150 }151152 fn build_wide_tree<T: Config>(153 &mut self,154 owner: &T::AccountId,155 width: u32,156 ) -> Result<RmrkNftId, DispatchError> {157 self.build::<T>(owner)?;158159 let root_nft_id = self.current_nft_id;160161 let root_owner =162 <RmrkAccountIdOrCollectionNftTuple<T::AccountId>>::CollectionAndNftTuple(163 self.collection_id,164 root_nft_id,165 );166167 for _ in 0..width {168 self.build::<T>(owner)?;169170 <Pallet<T>>::send(171 RawOrigin::Signed(owner.clone()).into(),172 self.collection_id,173 self.current_nft_id,174 root_owner.clone(),175 )?;176 } 177178 Ok(root_nft_id)179 }151}180}152181153benchmarks! {182benchmarks! {205 transferable234 transferable206 )235 )236237 burn_nft {238 let b in 0..200;239240 let caller: T::AccountId = account("caller", 0, SEED);241 create_max_collection::<T>(&caller)?;242 let collection_id = 0;243244 let mut nft_builder = NftBuilder::new(collection_id);245 let root_nft_id = nft_builder.build_wide_tree::<T>(&caller, b)?;246 let max_burns = b + 1;247 }: _(248 RawOrigin::Signed(caller),249 collection_id,250 root_nft_id,251 max_burns252 )207253208 send {254 send {209 let caller: T::AccountId = account("caller", 0, SEED);255 let caller: T::AccountId = account("caller", 0, SEED);pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth400 }400 }401401402 /// burn nft402 /// burn nft403 #[transactional]403 #[pallet::weight(10_000 + T::DbWeight::get().reads_writes(1,1))]404 #[pallet::weight(<SelfWeightOf<T>>::burn_nft(*max_burns))]404 #[transactional]405 pub fn burn_nft(405 pub fn burn_nft(406 origin: OriginFor<T>,406 origin: OriginFor<T>,407 collection_id: RmrkCollectionId,407 collection_id: RmrkCollectionId,pallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth38 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() -> Weight;41 fn burn_nft(b: u32, ) -> Weight;41 fn send() -> Weight;42 fn send() -> Weight;42 fn accept_nft() -> Weight;43 fn accept_nft() -> Weight;43 fn reject_nft() -> Weight;44 fn reject_nft() -> Weight;63 // Storage: Common CollectionById (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)64 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)65 fn create_collection() -> Weight {66 fn create_collection() -> Weight {66 (40_456_000 as Weight)67 (40_837_000 as Weight)67 .saturating_add(T::DbWeight::get().reads(5 as Weight))68 .saturating_add(T::DbWeight::get().reads(5 as Weight))68 .saturating_add(T::DbWeight::get().writes(8 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))69 }70 }76 // Storage: Nonfungible TokensBurnt (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)77 // Storage: Common AdminAmount (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)78 fn destroy_collection() -> Weight {79 fn destroy_collection() -> Weight {79 (43_812_000 as Weight)80 (44_544_000 as Weight)80 .saturating_add(T::DbWeight::get().reads(5 as Weight))81 .saturating_add(T::DbWeight::get().reads(5 as Weight))81 .saturating_add(T::DbWeight::get().writes(6 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))82 }83 }83 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)84 // Storage: Common CollectionById (r:1 w:1)85 // Storage: Common CollectionById (r:1 w:1)85 // Storage: Common CollectionProperties (r:1 w:0)86 // Storage: Common CollectionProperties (r:1 w:0)86 fn change_collection_issuer() -> Weight {87 fn change_collection_issuer() -> Weight {87 (22_032_000 as Weight)88 (22_151_000 as Weight)88 .saturating_add(T::DbWeight::get().reads(3 as Weight))89 .saturating_add(T::DbWeight::get().reads(3 as Weight))89 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 }91 }94 // Storage: Nonfungible TokensMinted (r:1 w:0)95 // Storage: Nonfungible TokensMinted (r:1 w:0)95 // Storage: Nonfungible TokensBurnt (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)96 fn lock_collection() -> Weight {97 fn lock_collection() -> Weight {97 (23_314_000 as Weight)98 (23_766_000 as Weight)98 .saturating_add(T::DbWeight::get().reads(5 as Weight))99 .saturating_add(T::DbWeight::get().reads(5 as Weight))99 .saturating_add(T::DbWeight::get().writes(1 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))100 }101 }107 // Storage: Nonfungible TokenData (r:0 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)108 // Storage: Nonfungible Owned (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)109 fn mint_nft() -> Weight {110 fn mint_nft() -> Weight {110 (40_075_000 as Weight)111 (40_237_000 as Weight)111 .saturating_add(T::DbWeight::get().reads(6 as Weight))112 .saturating_add(T::DbWeight::get().reads(6 as Weight))112 .saturating_add(T::DbWeight::get().writes(5 as Weight))113 .saturating_add(T::DbWeight::get().writes(5 as Weight))113 }114 }114 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)115 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)116 // Storage: Common CollectionProperties (r:1 w:0)117 // Storage: Common CollectionById (r:1 w:0)118 // Storage: Nonfungible TokenData (r:1 w:1)119 // Storage: Nonfungible TokenChildren (r:1 w:0)120 // Storage: Nonfungible TokensBurnt (r:1 w:1)121 // Storage: Nonfungible AccountBalance (r:1 w:1)122 // Storage: Nonfungible Allowance (r:1 w:0)123 // Storage: Nonfungible Owned (r:0 w:1)124 // Storage: Nonfungible TokenProperties (r:0 w:1)125 fn burn_nft(b: u32, ) -> Weight {126 (0 as Weight)127 // Standard Error: 1_023_000128 .saturating_add((318_424_000 as Weight).saturating_mul(b as Weight))129 .saturating_add(T::DbWeight::get().reads(9 as Weight))130 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))131 .saturating_add(T::DbWeight::get().writes(6 as Weight))132 .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))133 }134 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)115 // Storage: Common CollectionProperties (r:1 w:0)135 // Storage: Common CollectionProperties (r:1 w:0)116 // Storage: Common CollectionById (r:1 w:0)136 // Storage: Common CollectionById (r:1 w:0)117 // Storage: Nonfungible TokenData (r:5 w:1)137 // Storage: Nonfungible TokenData (r:5 w:1)121 // Storage: Nonfungible TokenChildren (r:0 w:1)141 // Storage: Nonfungible TokenChildren (r:0 w:1)122 // Storage: Nonfungible Owned (r:0 w:2)142 // Storage: Nonfungible Owned (r:0 w:2)123 fn send() -> Weight {143 fn send() -> Weight {124 (71_474_000 as Weight)144 (71_055_000 as Weight)125 .saturating_add(T::DbWeight::get().reads(12 as Weight))145 .saturating_add(T::DbWeight::get().reads(12 as Weight))126 .saturating_add(T::DbWeight::get().writes(6 as Weight))146 .saturating_add(T::DbWeight::get().writes(6 as Weight))127 }147 }135 // Storage: Nonfungible TokenChildren (r:0 w:1)155 // Storage: Nonfungible TokenChildren (r:0 w:1)136 // Storage: Nonfungible Owned (r:0 w:2)156 // Storage: Nonfungible Owned (r:0 w:2)137 fn accept_nft() -> Weight {157 fn accept_nft() -> Weight {138 (79_890_000 as Weight)158 (79_098_000 as Weight)139 .saturating_add(T::DbWeight::get().reads(15 as Weight))159 .saturating_add(T::DbWeight::get().reads(15 as Weight))140 .saturating_add(T::DbWeight::get().writes(7 as Weight))160 .saturating_add(T::DbWeight::get().writes(7 as Weight))141 }161 }150 // Storage: Nonfungible Allowance (r:5 w:0)170 // Storage: Nonfungible Allowance (r:5 w:0)151 // Storage: Nonfungible Owned (r:0 w:5)171 // Storage: Nonfungible Owned (r:0 w:5)152 fn reject_nft() -> Weight {172 fn reject_nft() -> Weight {153 (236_754_000 as Weight)173 (237_777_000 as Weight)154 .saturating_add(T::DbWeight::get().reads(29 as Weight))174 .saturating_add(T::DbWeight::get().reads(29 as Weight))155 .saturating_add(T::DbWeight::get().writes(25 as Weight))175 .saturating_add(T::DbWeight::get().writes(25 as Weight))156 }176 }160 // Storage: Nonfungible TokenProperties (r:1 w:1)180 // Storage: Nonfungible TokenProperties (r:1 w:1)161 // Storage: Nonfungible TokenData (r:5 w:0)181 // Storage: Nonfungible TokenData (r:5 w:0)162 fn set_property() -> Weight {182 fn set_property() -> Weight {163 (48_370_000 as Weight)183 (47_359_000 as Weight)164 .saturating_add(T::DbWeight::get().reads(9 as Weight))184 .saturating_add(T::DbWeight::get().reads(9 as Weight))165 .saturating_add(T::DbWeight::get().writes(1 as Weight))185 .saturating_add(T::DbWeight::get().writes(1 as Weight))166 }186 }170 // Storage: Nonfungible TokenProperties (r:1 w:1)190 // Storage: Nonfungible TokenProperties (r:1 w:1)171 // Storage: Nonfungible TokenData (r:5 w:0)191 // Storage: Nonfungible TokenData (r:5 w:0)172 fn set_priority() -> Weight {192 fn set_priority() -> Weight {173 (47_128_000 as Weight)193 (46_537_000 as Weight)174 .saturating_add(T::DbWeight::get().reads(9 as Weight))194 .saturating_add(T::DbWeight::get().reads(9 as Weight))175 .saturating_add(T::DbWeight::get().writes(1 as Weight))195 .saturating_add(T::DbWeight::get().writes(1 as Weight))176 }196 }187 // Storage: Nonfungible Owned (r:0 w:1)207 // Storage: Nonfungible Owned (r:0 w:1)188 // Storage: Common CollectionPropertyPermissions (r:0 w:1)208 // Storage: Common CollectionPropertyPermissions (r:0 w:1)189 fn add_basic_resource() -> Weight {209 fn add_basic_resource() -> Weight {190 (101_501_000 as Weight)210 (100_939_000 as Weight)191 .saturating_add(T::DbWeight::get().reads(16 as Weight))211 .saturating_add(T::DbWeight::get().reads(16 as Weight))192 .saturating_add(T::DbWeight::get().writes(12 as Weight))212 .saturating_add(T::DbWeight::get().writes(12 as Weight))193 }213 }204 // Storage: Nonfungible Owned (r:0 w:1)224 // Storage: Nonfungible Owned (r:0 w:1)205 // Storage: Common CollectionPropertyPermissions (r:0 w:1)225 // Storage: Common CollectionPropertyPermissions (r:0 w:1)206 fn add_composable_resource() -> Weight {226 fn add_composable_resource() -> Weight {207 (103_004_000 as Weight)227 (101_821_000 as Weight)208 .saturating_add(T::DbWeight::get().reads(16 as Weight))228 .saturating_add(T::DbWeight::get().reads(16 as Weight))209 .saturating_add(T::DbWeight::get().writes(12 as Weight))229 .saturating_add(T::DbWeight::get().writes(12 as Weight))210 }230 }221 // Storage: Nonfungible Owned (r:0 w:1)241 // Storage: Nonfungible Owned (r:0 w:1)222 // Storage: Common CollectionPropertyPermissions (r:0 w:1)242 // Storage: Common CollectionPropertyPermissions (r:0 w:1)223 fn add_slot_resource() -> Weight {243 fn add_slot_resource() -> Weight {224 (102_613_000 as Weight)244 (100_880_000 as Weight)225 .saturating_add(T::DbWeight::get().reads(16 as Weight))245 .saturating_add(T::DbWeight::get().reads(16 as Weight))226 .saturating_add(T::DbWeight::get().writes(12 as Weight))246 .saturating_add(T::DbWeight::get().writes(12 as Weight))227 }247 }236 // Storage: Nonfungible Allowance (r:1 w:0)256 // Storage: Nonfungible Allowance (r:1 w:0)237 // Storage: Nonfungible Owned (r:0 w:1)257 // Storage: Nonfungible Owned (r:0 w:1)238 fn remove_resource() -> Weight {258 fn remove_resource() -> Weight {239 (82_084_000 as Weight)259 (79_831_000 as Weight)240 .saturating_add(T::DbWeight::get().reads(16 as Weight))260 .saturating_add(T::DbWeight::get().reads(16 as Weight))241 .saturating_add(T::DbWeight::get().writes(5 as Weight))261 .saturating_add(T::DbWeight::get().writes(5 as Weight))242 }262 }246 // Storage: Nonfungible TokenData (r:5 w:0)266 // Storage: Nonfungible TokenData (r:5 w:0)247 // Storage: Nonfungible TokenProperties (r:2 w:1)267 // Storage: Nonfungible TokenProperties (r:2 w:1)248 fn accept_resource() -> Weight {268 fn accept_resource() -> Weight {249 (56_426_000 as Weight)269 (54_573_000 as Weight)250 .saturating_add(T::DbWeight::get().reads(10 as Weight))270 .saturating_add(T::DbWeight::get().reads(10 as Weight))251 .saturating_add(T::DbWeight::get().writes(1 as Weight))271 .saturating_add(T::DbWeight::get().writes(1 as Weight))252 }272 }261 // Storage: Nonfungible Allowance (r:1 w:0)281 // Storage: Nonfungible Allowance (r:1 w:0)262 // Storage: Nonfungible Owned (r:0 w:1)282 // Storage: Nonfungible Owned (r:0 w:1)263 fn accept_resource_removal() -> Weight {283 fn accept_resource_removal() -> Weight {264 (85_631_000 as Weight)284 (83_426_000 as Weight)265 .saturating_add(T::DbWeight::get().reads(17 as Weight))285 .saturating_add(T::DbWeight::get().reads(17 as Weight))266 .saturating_add(T::DbWeight::get().writes(5 as Weight))286 .saturating_add(T::DbWeight::get().writes(5 as Weight))267 }287 }278 // Storage: Common CollectionById (r:0 w:1)298 // Storage: Common CollectionById (r:0 w:1)279 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)299 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)280 fn create_collection() -> Weight {300 fn create_collection() -> Weight {281 (40_456_000 as Weight)301 (40_837_000 as Weight)282 .saturating_add(RocksDbWeight::get().reads(5 as Weight))302 .saturating_add(RocksDbWeight::get().reads(5 as Weight))283 .saturating_add(RocksDbWeight::get().writes(8 as Weight))303 .saturating_add(RocksDbWeight::get().writes(8 as Weight))284 }304 }291 // Storage: Nonfungible TokensBurnt (r:0 w:1)311 // Storage: Nonfungible TokensBurnt (r:0 w:1)292 // Storage: Common AdminAmount (r:0 w:1)312 // Storage: Common AdminAmount (r:0 w:1)293 fn destroy_collection() -> Weight {313 fn destroy_collection() -> Weight {294 (43_812_000 as Weight)314 (44_544_000 as Weight)295 .saturating_add(RocksDbWeight::get().reads(5 as Weight))315 .saturating_add(RocksDbWeight::get().reads(5 as Weight))296 .saturating_add(RocksDbWeight::get().writes(6 as Weight))316 .saturating_add(RocksDbWeight::get().writes(6 as Weight))297 }317 }298 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)318 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)299 // Storage: Common CollectionById (r:1 w:1)319 // Storage: Common CollectionById (r:1 w:1)300 // Storage: Common CollectionProperties (r:1 w:0)320 // Storage: Common CollectionProperties (r:1 w:0)301 fn change_collection_issuer() -> Weight {321 fn change_collection_issuer() -> Weight {302 (22_032_000 as Weight)322 (22_151_000 as Weight)303 .saturating_add(RocksDbWeight::get().reads(3 as Weight))323 .saturating_add(RocksDbWeight::get().reads(3 as Weight))304 .saturating_add(RocksDbWeight::get().writes(1 as Weight))324 .saturating_add(RocksDbWeight::get().writes(1 as Weight))305 }325 }309 // Storage: Nonfungible TokensMinted (r:1 w:0)329 // Storage: Nonfungible TokensMinted (r:1 w:0)310 // Storage: Nonfungible TokensBurnt (r:1 w:0)330 // Storage: Nonfungible TokensBurnt (r:1 w:0)311 fn lock_collection() -> Weight {331 fn lock_collection() -> Weight {312 (23_314_000 as Weight)332 (23_766_000 as Weight)313 .saturating_add(RocksDbWeight::get().reads(5 as Weight))333 .saturating_add(RocksDbWeight::get().reads(5 as Weight))314 .saturating_add(RocksDbWeight::get().writes(1 as Weight))334 .saturating_add(RocksDbWeight::get().writes(1 as Weight))315 }335 }322 // Storage: Nonfungible TokenData (r:0 w:1)342 // Storage: Nonfungible TokenData (r:0 w:1)323 // Storage: Nonfungible Owned (r:0 w:1)343 // Storage: Nonfungible Owned (r:0 w:1)324 fn mint_nft() -> Weight {344 fn mint_nft() -> Weight {325 (40_075_000 as Weight)345 (40_237_000 as Weight)326 .saturating_add(RocksDbWeight::get().reads(6 as Weight))346 .saturating_add(RocksDbWeight::get().reads(6 as Weight))327 .saturating_add(RocksDbWeight::get().writes(5 as Weight))347 .saturating_add(RocksDbWeight::get().writes(5 as Weight))328 }348 }329 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)349 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)350 // Storage: Common CollectionProperties (r:1 w:0)351 // Storage: Common CollectionById (r:1 w:0)352 // Storage: Nonfungible TokenData (r:1 w:1)353 // Storage: Nonfungible TokenChildren (r:1 w:0)354 // Storage: Nonfungible TokensBurnt (r:1 w:1)355 // Storage: Nonfungible AccountBalance (r:1 w:1)356 // Storage: Nonfungible Allowance (r:1 w:0)357 // Storage: Nonfungible Owned (r:0 w:1)358 // Storage: Nonfungible TokenProperties (r:0 w:1)359 fn burn_nft(b: u32, ) -> Weight {360 (0 as Weight)361 // Standard Error: 1_023_000362 .saturating_add((318_424_000 as Weight).saturating_mul(b as Weight))363 .saturating_add(RocksDbWeight::get().reads(9 as Weight))364 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))365 .saturating_add(RocksDbWeight::get().writes(6 as Weight))366 .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))367 }368 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)330 // Storage: Common CollectionProperties (r:1 w:0)369 // Storage: Common CollectionProperties (r:1 w:0)331 // Storage: Common CollectionById (r:1 w:0)370 // Storage: Common CollectionById (r:1 w:0)332 // Storage: Nonfungible TokenData (r:5 w:1)371 // Storage: Nonfungible TokenData (r:5 w:1)336 // Storage: Nonfungible TokenChildren (r:0 w:1)375 // Storage: Nonfungible TokenChildren (r:0 w:1)337 // Storage: Nonfungible Owned (r:0 w:2)376 // Storage: Nonfungible Owned (r:0 w:2)338 fn send() -> Weight {377 fn send() -> Weight {339 (71_474_000 as Weight)378 (71_055_000 as Weight)340 .saturating_add(RocksDbWeight::get().reads(12 as Weight))379 .saturating_add(RocksDbWeight::get().reads(12 as Weight))341 .saturating_add(RocksDbWeight::get().writes(6 as Weight))380 .saturating_add(RocksDbWeight::get().writes(6 as Weight))342 }381 }350 // Storage: Nonfungible TokenChildren (r:0 w:1)389 // Storage: Nonfungible TokenChildren (r:0 w:1)351 // Storage: Nonfungible Owned (r:0 w:2)390 // Storage: Nonfungible Owned (r:0 w:2)352 fn accept_nft() -> Weight {391 fn accept_nft() -> Weight {353 (79_890_000 as Weight)392 (79_098_000 as Weight)354 .saturating_add(RocksDbWeight::get().reads(15 as Weight))393 .saturating_add(RocksDbWeight::get().reads(15 as Weight))355 .saturating_add(RocksDbWeight::get().writes(7 as Weight))394 .saturating_add(RocksDbWeight::get().writes(7 as Weight))356 }395 }365 // Storage: Nonfungible Allowance (r:5 w:0)404 // Storage: Nonfungible Allowance (r:5 w:0)366 // Storage: Nonfungible Owned (r:0 w:5)405 // Storage: Nonfungible Owned (r:0 w:5)367 fn reject_nft() -> Weight {406 fn reject_nft() -> Weight {368 (236_754_000 as Weight)407 (237_777_000 as Weight)369 .saturating_add(RocksDbWeight::get().reads(29 as Weight))408 .saturating_add(RocksDbWeight::get().reads(29 as Weight))370 .saturating_add(RocksDbWeight::get().writes(25 as Weight))409 .saturating_add(RocksDbWeight::get().writes(25 as Weight))371 }410 }375 // Storage: Nonfungible TokenProperties (r:1 w:1)414 // Storage: Nonfungible TokenProperties (r:1 w:1)376 // Storage: Nonfungible TokenData (r:5 w:0)415 // Storage: Nonfungible TokenData (r:5 w:0)377 fn set_property() -> Weight {416 fn set_property() -> Weight {378 (48_370_000 as Weight)417 (47_359_000 as Weight)379 .saturating_add(RocksDbWeight::get().reads(9 as Weight))418 .saturating_add(RocksDbWeight::get().reads(9 as Weight))380 .saturating_add(RocksDbWeight::get().writes(1 as Weight))419 .saturating_add(RocksDbWeight::get().writes(1 as Weight))381 }420 }385 // Storage: Nonfungible TokenProperties (r:1 w:1)424 // Storage: Nonfungible TokenProperties (r:1 w:1)386 // Storage: Nonfungible TokenData (r:5 w:0)425 // Storage: Nonfungible TokenData (r:5 w:0)387 fn set_priority() -> Weight {426 fn set_priority() -> Weight {388 (47_128_000 as Weight)427 (46_537_000 as Weight)389 .saturating_add(RocksDbWeight::get().reads(9 as Weight))428 .saturating_add(RocksDbWeight::get().reads(9 as Weight))390 .saturating_add(RocksDbWeight::get().writes(1 as Weight))429 .saturating_add(RocksDbWeight::get().writes(1 as Weight))391 }430 }402 // Storage: Nonfungible Owned (r:0 w:1)441 // Storage: Nonfungible Owned (r:0 w:1)403 // Storage: Common CollectionPropertyPermissions (r:0 w:1)442 // Storage: Common CollectionPropertyPermissions (r:0 w:1)404 fn add_basic_resource() -> Weight {443 fn add_basic_resource() -> Weight {405 (101_501_000 as Weight)444 (100_939_000 as Weight)406 .saturating_add(RocksDbWeight::get().reads(16 as Weight))445 .saturating_add(RocksDbWeight::get().reads(16 as Weight))407 .saturating_add(RocksDbWeight::get().writes(12 as Weight))446 .saturating_add(RocksDbWeight::get().writes(12 as Weight))408 }447 }419 // Storage: Nonfungible Owned (r:0 w:1)458 // Storage: Nonfungible Owned (r:0 w:1)420 // Storage: Common CollectionPropertyPermissions (r:0 w:1)459 // Storage: Common CollectionPropertyPermissions (r:0 w:1)421 fn add_composable_resource() -> Weight {460 fn add_composable_resource() -> Weight {422 (103_004_000 as Weight)461 (101_821_000 as Weight)423 .saturating_add(RocksDbWeight::get().reads(16 as Weight))462 .saturating_add(RocksDbWeight::get().reads(16 as Weight))424 .saturating_add(RocksDbWeight::get().writes(12 as Weight))463 .saturating_add(RocksDbWeight::get().writes(12 as Weight))425 }464 }436 // Storage: Nonfungible Owned (r:0 w:1)475 // Storage: Nonfungible Owned (r:0 w:1)437 // Storage: Common CollectionPropertyPermissions (r:0 w:1)476 // Storage: Common CollectionPropertyPermissions (r:0 w:1)438 fn add_slot_resource() -> Weight {477 fn add_slot_resource() -> Weight {439 (102_613_000 as Weight)478 (100_880_000 as Weight)440 .saturating_add(RocksDbWeight::get().reads(16 as Weight))479 .saturating_add(RocksDbWeight::get().reads(16 as Weight))441 .saturating_add(RocksDbWeight::get().writes(12 as Weight))480 .saturating_add(RocksDbWeight::get().writes(12 as Weight))442 }481 }451 // Storage: Nonfungible Allowance (r:1 w:0)490 // Storage: Nonfungible Allowance (r:1 w:0)452 // Storage: Nonfungible Owned (r:0 w:1)491 // Storage: Nonfungible Owned (r:0 w:1)453 fn remove_resource() -> Weight {492 fn remove_resource() -> Weight {454 (82_084_000 as Weight)493 (79_831_000 as Weight)455 .saturating_add(RocksDbWeight::get().reads(16 as Weight))494 .saturating_add(RocksDbWeight::get().reads(16 as Weight))456 .saturating_add(RocksDbWeight::get().writes(5 as Weight))495 .saturating_add(RocksDbWeight::get().writes(5 as Weight))457 }496 }461 // Storage: Nonfungible TokenData (r:5 w:0)500 // Storage: Nonfungible TokenData (r:5 w:0)462 // Storage: Nonfungible TokenProperties (r:2 w:1)501 // Storage: Nonfungible TokenProperties (r:2 w:1)463 fn accept_resource() -> Weight {502 fn accept_resource() -> Weight {464 (56_426_000 as Weight)503 (54_573_000 as Weight)465 .saturating_add(RocksDbWeight::get().reads(10 as Weight))504 .saturating_add(RocksDbWeight::get().reads(10 as Weight))466 .saturating_add(RocksDbWeight::get().writes(1 as Weight))505 .saturating_add(RocksDbWeight::get().writes(1 as Weight))467 }506 }476 // Storage: Nonfungible Allowance (r:1 w:0)515 // Storage: Nonfungible Allowance (r:1 w:0)477 // Storage: Nonfungible Owned (r:0 w:1)516 // Storage: Nonfungible Owned (r:0 w:1)478 fn accept_resource_removal() -> Weight {517 fn accept_resource_removal() -> Weight {479 (85_631_000 as Weight)518 (83_426_000 as Weight)480 .saturating_add(RocksDbWeight::get().reads(17 as Weight))519 .saturating_add(RocksDbWeight::get().reads(17 as Weight))481 .saturating_add(RocksDbWeight::get().writes(5 as Weight))520 .saturating_add(RocksDbWeight::get().writes(5 as Weight))482 }521 }