1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_proxy_rmrk_core4//!5//! 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: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-proxy-rmrk-core15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=20023// --heap-pages=409624// --output=./pallets/proxy-rmrk-core/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_proxy_rmrk_core.35pub trait WeightInfo {36 fn create_collection() -> Weight;37 fn destroy_collection() -> Weight;38 fn change_collection_issuer() -> Weight;39 fn lock_collection() -> Weight;40 fn mint_nft() -> Weight;41 fn burn_nft(b: u32, ) -> Weight;42 fn send() -> Weight;43 fn accept_nft() -> Weight;44 fn reject_nft() -> Weight;45 fn set_property() -> Weight;46 fn set_priority() -> Weight;47 fn add_basic_resource() -> Weight;48 fn add_composable_resource() -> Weight;49 fn add_slot_resource() -> Weight;50 fn remove_resource() -> Weight;51 fn accept_resource() -> Weight;52 fn accept_resource_removal() -> Weight;53}5455/// Weights for pallet_proxy_rmrk_core using the Substrate node and recommended hardware.56pub struct SubstrateWeight<T>(PhantomData<T>);57impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {58 // Storage: Common CreatedCollectionCount (r:1 w:1)59 // Storage: Common DestroyedCollectionCount (r:1 w:0)60 // Storage: System Account (r:2 w:2)61 // Storage: RmrkCore CollectionIndex (r:1 w:1)62 // Storage: Common CollectionPropertyPermissions (r:0 w:1)63 // Storage: Common CollectionProperties (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)66 fn create_collection() -> Weight {67 (40_837_000 as Weight)68 .saturating_add(T::DbWeight::get().reads(5 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))70 }71 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)72 // Storage: Common CollectionProperties (r:1 w:1)73 // Storage: Common CollectionById (r:1 w:1)74 // Storage: Nonfungible TokenData (r:1 w:0)75 // Storage: Common DestroyedCollectionCount (r:1 w:1)76 // Storage: Nonfungible TokensMinted (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)79 fn destroy_collection() -> Weight {80 (44_544_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(5 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))83 }84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)85 // Storage: Common CollectionById (r:1 w:1)86 // Storage: Common CollectionProperties (r:1 w:0)87 fn change_collection_issuer() -> Weight {88 (22_151_000 as Weight)89 .saturating_add(T::DbWeight::get().reads(3 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))91 }92 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)93 // Storage: Common CollectionProperties (r:1 w:0)94 // Storage: Common CollectionById (r:1 w:1)95 // Storage: Nonfungible TokensMinted (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)97 fn lock_collection() -> Weight {98 (23_766_000 as Weight)99 .saturating_add(T::DbWeight::get().reads(5 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 }102 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)103 // Storage: Common CollectionProperties (r:1 w:0)104 // Storage: Common CollectionById (r:1 w:0)105 // Storage: Nonfungible TokensMinted (r:1 w:1)106 // Storage: Nonfungible AccountBalance (r:1 w:1)107 // Storage: Nonfungible TokenProperties (r:1 w:1)108 // Storage: Nonfungible TokenData (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)110 fn mint_nft() -> Weight {111 (40_237_000 as Weight)112 .saturating_add(T::DbWeight::get().reads(6 as Weight))113 .saturating_add(T::DbWeight::get().writes(5 as Weight))114 }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)135 // Storage: Common CollectionProperties (r:1 w:0)136 // Storage: Common CollectionById (r:1 w:0)137 // Storage: Nonfungible TokenData (r:5 w:1)138 // Storage: Nonfungible TokenProperties (r:1 w:0)139 // Storage: Nonfungible AccountBalance (r:2 w:2)140 // Storage: Nonfungible Allowance (r:1 w:0)141 // Storage: Nonfungible TokenChildren (r:0 w:1)142 // Storage: Nonfungible Owned (r:0 w:2)143 fn send() -> Weight {144 (71_055_000 as Weight)145 .saturating_add(T::DbWeight::get().reads(12 as Weight))146 .saturating_add(T::DbWeight::get().writes(6 as Weight))147 }148 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)149 // Storage: Common CollectionProperties (r:1 w:0)150 // Storage: Common CollectionById (r:2 w:0)151 // Storage: Nonfungible TokenData (r:6 w:1)152 // Storage: Nonfungible AccountBalance (r:2 w:2)153 // Storage: Nonfungible Allowance (r:1 w:0)154 // Storage: Nonfungible TokenProperties (r:1 w:1)155 // Storage: Nonfungible TokenChildren (r:0 w:1)156 // Storage: Nonfungible Owned (r:0 w:2)157 fn accept_nft() -> Weight {158 (79_098_000 as Weight)159 .saturating_add(T::DbWeight::get().reads(15 as Weight))160 .saturating_add(T::DbWeight::get().writes(7 as Weight))161 }162 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)163 // Storage: Common CollectionProperties (r:1 w:0)164 // Storage: Common CollectionById (r:1 w:0)165 // Storage: Nonfungible TokenProperties (r:1 w:5)166 // Storage: Nonfungible TokenData (r:5 w:5)167 // Storage: Nonfungible TokenChildren (r:9 w:4)168 // Storage: Nonfungible TokensBurnt (r:1 w:1)169 // Storage: Nonfungible AccountBalance (r:5 w:5)170 // Storage: Nonfungible Allowance (r:5 w:0)171 // Storage: Nonfungible Owned (r:0 w:5)172 fn reject_nft() -> Weight {173 (237_777_000 as Weight)174 .saturating_add(T::DbWeight::get().reads(29 as Weight))175 .saturating_add(T::DbWeight::get().writes(25 as Weight))176 }177 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)178 // Storage: Common CollectionProperties (r:1 w:0)179 // Storage: Common CollectionById (r:1 w:0)180 // Storage: Nonfungible TokenProperties (r:1 w:1)181 // Storage: Nonfungible TokenData (r:5 w:0)182 fn set_property() -> Weight {183 (47_359_000 as Weight)184 .saturating_add(T::DbWeight::get().reads(9 as Weight))185 .saturating_add(T::DbWeight::get().writes(1 as Weight))186 }187 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)188 // Storage: Common CollectionProperties (r:1 w:0)189 // Storage: Common CollectionById (r:1 w:0)190 // Storage: Nonfungible TokenProperties (r:1 w:1)191 // Storage: Nonfungible TokenData (r:5 w:0)192 fn set_priority() -> Weight {193 (46_537_000 as Weight)194 .saturating_add(T::DbWeight::get().reads(9 as Weight))195 .saturating_add(T::DbWeight::get().writes(1 as Weight))196 }197 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)198 // Storage: Common CollectionProperties (r:1 w:1)199 // Storage: Common CollectionById (r:1 w:1)200 // Storage: Nonfungible TokenData (r:5 w:1)201 // Storage: Nonfungible TokenProperties (r:2 w:2)202 // Storage: Common CreatedCollectionCount (r:1 w:1)203 // Storage: Common DestroyedCollectionCount (r:1 w:0)204 // Storage: System Account (r:2 w:2)205 // Storage: Nonfungible TokensMinted (r:1 w:1)206 // Storage: Nonfungible AccountBalance (r:1 w:1)207 // Storage: Nonfungible Owned (r:0 w:1)208 // Storage: Common CollectionPropertyPermissions (r:0 w:1)209 fn add_basic_resource() -> Weight {210 (100_939_000 as Weight)211 .saturating_add(T::DbWeight::get().reads(16 as Weight))212 .saturating_add(T::DbWeight::get().writes(12 as Weight))213 }214 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)215 // Storage: Common CollectionProperties (r:1 w:1)216 // Storage: Common CollectionById (r:1 w:1)217 // Storage: Nonfungible TokenData (r:5 w:1)218 // Storage: Nonfungible TokenProperties (r:2 w:2)219 // Storage: Common CreatedCollectionCount (r:1 w:1)220 // Storage: Common DestroyedCollectionCount (r:1 w:0)221 // Storage: System Account (r:2 w:2)222 // Storage: Nonfungible TokensMinted (r:1 w:1)223 // Storage: Nonfungible AccountBalance (r:1 w:1)224 // Storage: Nonfungible Owned (r:0 w:1)225 // Storage: Common CollectionPropertyPermissions (r:0 w:1)226 fn add_composable_resource() -> Weight {227 (101_821_000 as Weight)228 .saturating_add(T::DbWeight::get().reads(16 as Weight))229 .saturating_add(T::DbWeight::get().writes(12 as Weight))230 }231 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)232 // Storage: Common CollectionProperties (r:1 w:1)233 // Storage: Common CollectionById (r:1 w:1)234 // Storage: Nonfungible TokenData (r:5 w:1)235 // Storage: Nonfungible TokenProperties (r:2 w:2)236 // Storage: Common CreatedCollectionCount (r:1 w:1)237 // Storage: Common DestroyedCollectionCount (r:1 w:0)238 // Storage: System Account (r:2 w:2)239 // Storage: Nonfungible TokensMinted (r:1 w:1)240 // Storage: Nonfungible AccountBalance (r:1 w:1)241 // Storage: Nonfungible Owned (r:0 w:1)242 // Storage: Common CollectionPropertyPermissions (r:0 w:1)243 fn add_slot_resource() -> Weight {244 (100_880_000 as Weight)245 .saturating_add(T::DbWeight::get().reads(16 as Weight))246 .saturating_add(T::DbWeight::get().writes(12 as Weight))247 }248 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)249 // Storage: Common CollectionProperties (r:2 w:0)250 // Storage: Common CollectionById (r:2 w:0)251 // Storage: Nonfungible TokenProperties (r:1 w:1)252 // Storage: Nonfungible TokenData (r:6 w:1)253 // Storage: Nonfungible TokenChildren (r:1 w:0)254 // Storage: Nonfungible TokensBurnt (r:1 w:1)255 // Storage: Nonfungible AccountBalance (r:1 w:1)256 // Storage: Nonfungible Allowance (r:1 w:0)257 // Storage: Nonfungible Owned (r:0 w:1)258 fn remove_resource() -> Weight {259 (79_831_000 as Weight)260 .saturating_add(T::DbWeight::get().reads(16 as Weight))261 .saturating_add(T::DbWeight::get().writes(5 as Weight))262 }263 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)264 // Storage: Common CollectionProperties (r:1 w:0)265 // Storage: Common CollectionById (r:1 w:0)266 // Storage: Nonfungible TokenData (r:5 w:0)267 // Storage: Nonfungible TokenProperties (r:2 w:1)268 fn accept_resource() -> Weight {269 (54_573_000 as Weight)270 .saturating_add(T::DbWeight::get().reads(10 as Weight))271 .saturating_add(T::DbWeight::get().writes(1 as Weight))272 }273 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)274 // Storage: Common CollectionProperties (r:2 w:0)275 // Storage: Common CollectionById (r:2 w:0)276 // Storage: Nonfungible TokenData (r:6 w:1)277 // Storage: Nonfungible TokenProperties (r:2 w:1)278 // Storage: Nonfungible TokenChildren (r:1 w:0)279 // Storage: Nonfungible TokensBurnt (r:1 w:1)280 // Storage: Nonfungible AccountBalance (r:1 w:1)281 // Storage: Nonfungible Allowance (r:1 w:0)282 // Storage: Nonfungible Owned (r:0 w:1)283 fn accept_resource_removal() -> Weight {284 (83_426_000 as Weight)285 .saturating_add(T::DbWeight::get().reads(17 as Weight))286 .saturating_add(T::DbWeight::get().writes(5 as Weight))287 }288}289290// For backwards compatibility and tests291impl WeightInfo for () {292 // Storage: Common CreatedCollectionCount (r:1 w:1)293 // Storage: Common DestroyedCollectionCount (r:1 w:0)294 // Storage: System Account (r:2 w:2)295 // Storage: RmrkCore CollectionIndex (r:1 w:1)296 // Storage: Common CollectionPropertyPermissions (r:0 w:1)297 // Storage: Common CollectionProperties (r:0 w:1)298 // Storage: Common CollectionById (r:0 w:1)299 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)300 fn create_collection() -> Weight {301 (40_837_000 as Weight)302 .saturating_add(RocksDbWeight::get().reads(5 as Weight))303 .saturating_add(RocksDbWeight::get().writes(8 as Weight))304 }305 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)306 // Storage: Common CollectionProperties (r:1 w:1)307 // Storage: Common CollectionById (r:1 w:1)308 // Storage: Nonfungible TokenData (r:1 w:0)309 // Storage: Common DestroyedCollectionCount (r:1 w:1)310 // Storage: Nonfungible TokensMinted (r:0 w:1)311 // Storage: Nonfungible TokensBurnt (r:0 w:1)312 // Storage: Common AdminAmount (r:0 w:1)313 fn destroy_collection() -> Weight {314 (44_544_000 as Weight)315 .saturating_add(RocksDbWeight::get().reads(5 as Weight))316 .saturating_add(RocksDbWeight::get().writes(6 as Weight))317 }318 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)319 // Storage: Common CollectionById (r:1 w:1)320 // Storage: Common CollectionProperties (r:1 w:0)321 fn change_collection_issuer() -> Weight {322 (22_151_000 as Weight)323 .saturating_add(RocksDbWeight::get().reads(3 as Weight))324 .saturating_add(RocksDbWeight::get().writes(1 as Weight))325 }326 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)327 // Storage: Common CollectionProperties (r:1 w:0)328 // Storage: Common CollectionById (r:1 w:1)329 // Storage: Nonfungible TokensMinted (r:1 w:0)330 // Storage: Nonfungible TokensBurnt (r:1 w:0)331 fn lock_collection() -> Weight {332 (23_766_000 as Weight)333 .saturating_add(RocksDbWeight::get().reads(5 as Weight))334 .saturating_add(RocksDbWeight::get().writes(1 as Weight))335 }336 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)337 // Storage: Common CollectionProperties (r:1 w:0)338 // Storage: Common CollectionById (r:1 w:0)339 // Storage: Nonfungible TokensMinted (r:1 w:1)340 // Storage: Nonfungible AccountBalance (r:1 w:1)341 // Storage: Nonfungible TokenProperties (r:1 w:1)342 // Storage: Nonfungible TokenData (r:0 w:1)343 // Storage: Nonfungible Owned (r:0 w:1)344 fn mint_nft() -> Weight {345 (40_237_000 as Weight)346 .saturating_add(RocksDbWeight::get().reads(6 as Weight))347 .saturating_add(RocksDbWeight::get().writes(5 as Weight))348 }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)369 // Storage: Common CollectionProperties (r:1 w:0)370 // Storage: Common CollectionById (r:1 w:0)371 // Storage: Nonfungible TokenData (r:5 w:1)372 // Storage: Nonfungible TokenProperties (r:1 w:0)373 // Storage: Nonfungible AccountBalance (r:2 w:2)374 // Storage: Nonfungible Allowance (r:1 w:0)375 // Storage: Nonfungible TokenChildren (r:0 w:1)376 // Storage: Nonfungible Owned (r:0 w:2)377 fn send() -> Weight {378 (71_055_000 as Weight)379 .saturating_add(RocksDbWeight::get().reads(12 as Weight))380 .saturating_add(RocksDbWeight::get().writes(6 as Weight))381 }382 // Storage: RmrkCore UniqueCollectionId (r:2 w:0)383 // Storage: Common CollectionProperties (r:1 w:0)384 // Storage: Common CollectionById (r:2 w:0)385 // Storage: Nonfungible TokenData (r:6 w:1)386 // Storage: Nonfungible AccountBalance (r:2 w:2)387 // Storage: Nonfungible Allowance (r:1 w:0)388 // Storage: Nonfungible TokenProperties (r:1 w:1)389 // Storage: Nonfungible TokenChildren (r:0 w:1)390 // Storage: Nonfungible Owned (r:0 w:2)391 fn accept_nft() -> Weight {392 (79_098_000 as Weight)393 .saturating_add(RocksDbWeight::get().reads(15 as Weight))394 .saturating_add(RocksDbWeight::get().writes(7 as Weight))395 }396 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)397 // Storage: Common CollectionProperties (r:1 w:0)398 // Storage: Common CollectionById (r:1 w:0)399 // Storage: Nonfungible TokenProperties (r:1 w:5)400 // Storage: Nonfungible TokenData (r:5 w:5)401 // Storage: Nonfungible TokenChildren (r:9 w:4)402 // Storage: Nonfungible TokensBurnt (r:1 w:1)403 // Storage: Nonfungible AccountBalance (r:5 w:5)404 // Storage: Nonfungible Allowance (r:5 w:0)405 // Storage: Nonfungible Owned (r:0 w:5)406 fn reject_nft() -> Weight {407 (237_777_000 as Weight)408 .saturating_add(RocksDbWeight::get().reads(29 as Weight))409 .saturating_add(RocksDbWeight::get().writes(25 as Weight))410 }411 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)412 // Storage: Common CollectionProperties (r:1 w:0)413 // Storage: Common CollectionById (r:1 w:0)414 // Storage: Nonfungible TokenProperties (r:1 w:1)415 // Storage: Nonfungible TokenData (r:5 w:0)416 fn set_property() -> Weight {417 (47_359_000 as Weight)418 .saturating_add(RocksDbWeight::get().reads(9 as Weight))419 .saturating_add(RocksDbWeight::get().writes(1 as Weight))420 }421 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)422 // Storage: Common CollectionProperties (r:1 w:0)423 // Storage: Common CollectionById (r:1 w:0)424 // Storage: Nonfungible TokenProperties (r:1 w:1)425 // Storage: Nonfungible TokenData (r:5 w:0)426 fn set_priority() -> Weight {427 (46_537_000 as Weight)428 .saturating_add(RocksDbWeight::get().reads(9 as Weight))429 .saturating_add(RocksDbWeight::get().writes(1 as Weight))430 }431 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)432 // Storage: Common CollectionProperties (r:1 w:1)433 // Storage: Common CollectionById (r:1 w:1)434 // Storage: Nonfungible TokenData (r:5 w:1)435 // Storage: Nonfungible TokenProperties (r:2 w:2)436 // Storage: Common CreatedCollectionCount (r:1 w:1)437 // Storage: Common DestroyedCollectionCount (r:1 w:0)438 // Storage: System Account (r:2 w:2)439 // Storage: Nonfungible TokensMinted (r:1 w:1)440 // Storage: Nonfungible AccountBalance (r:1 w:1)441 // Storage: Nonfungible Owned (r:0 w:1)442 // Storage: Common CollectionPropertyPermissions (r:0 w:1)443 fn add_basic_resource() -> Weight {444 (100_939_000 as Weight)445 .saturating_add(RocksDbWeight::get().reads(16 as Weight))446 .saturating_add(RocksDbWeight::get().writes(12 as Weight))447 }448 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)449 // Storage: Common CollectionProperties (r:1 w:1)450 // Storage: Common CollectionById (r:1 w:1)451 // Storage: Nonfungible TokenData (r:5 w:1)452 // Storage: Nonfungible TokenProperties (r:2 w:2)453 // Storage: Common CreatedCollectionCount (r:1 w:1)454 // Storage: Common DestroyedCollectionCount (r:1 w:0)455 // Storage: System Account (r:2 w:2)456 // Storage: Nonfungible TokensMinted (r:1 w:1)457 // Storage: Nonfungible AccountBalance (r:1 w:1)458 // Storage: Nonfungible Owned (r:0 w:1)459 // Storage: Common CollectionPropertyPermissions (r:0 w:1)460 fn add_composable_resource() -> Weight {461 (101_821_000 as Weight)462 .saturating_add(RocksDbWeight::get().reads(16 as Weight))463 .saturating_add(RocksDbWeight::get().writes(12 as Weight))464 }465 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)466 // Storage: Common CollectionProperties (r:1 w:1)467 // Storage: Common CollectionById (r:1 w:1)468 // Storage: Nonfungible TokenData (r:5 w:1)469 // Storage: Nonfungible TokenProperties (r:2 w:2)470 // Storage: Common CreatedCollectionCount (r:1 w:1)471 // Storage: Common DestroyedCollectionCount (r:1 w:0)472 // Storage: System Account (r:2 w:2)473 // Storage: Nonfungible TokensMinted (r:1 w:1)474 // Storage: Nonfungible AccountBalance (r:1 w:1)475 // Storage: Nonfungible Owned (r:0 w:1)476 // Storage: Common CollectionPropertyPermissions (r:0 w:1)477 fn add_slot_resource() -> Weight {478 (100_880_000 as Weight)479 .saturating_add(RocksDbWeight::get().reads(16 as Weight))480 .saturating_add(RocksDbWeight::get().writes(12 as Weight))481 }482 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)483 // Storage: Common CollectionProperties (r:2 w:0)484 // Storage: Common CollectionById (r:2 w:0)485 // Storage: Nonfungible TokenProperties (r:1 w:1)486 // Storage: Nonfungible TokenData (r:6 w:1)487 // Storage: Nonfungible TokenChildren (r:1 w:0)488 // Storage: Nonfungible TokensBurnt (r:1 w:1)489 // Storage: Nonfungible AccountBalance (r:1 w:1)490 // Storage: Nonfungible Allowance (r:1 w:0)491 // Storage: Nonfungible Owned (r:0 w:1)492 fn remove_resource() -> Weight {493 (79_831_000 as Weight)494 .saturating_add(RocksDbWeight::get().reads(16 as Weight))495 .saturating_add(RocksDbWeight::get().writes(5 as Weight))496 }497 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)498 // Storage: Common CollectionProperties (r:1 w:0)499 // Storage: Common CollectionById (r:1 w:0)500 // Storage: Nonfungible TokenData (r:5 w:0)501 // Storage: Nonfungible TokenProperties (r:2 w:1)502 fn accept_resource() -> Weight {503 (54_573_000 as Weight)504 .saturating_add(RocksDbWeight::get().reads(10 as Weight))505 .saturating_add(RocksDbWeight::get().writes(1 as Weight))506 }507 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)508 // Storage: Common CollectionProperties (r:2 w:0)509 // Storage: Common CollectionById (r:2 w:0)510 // Storage: Nonfungible TokenData (r:6 w:1)511 // Storage: Nonfungible TokenProperties (r:2 w:1)512 // Storage: Nonfungible TokenChildren (r:1 w:0)513 // Storage: Nonfungible TokensBurnt (r:1 w:1)514 // Storage: Nonfungible AccountBalance (r:1 w:1)515 // Storage: Nonfungible Allowance (r:1 w:0)516 // Storage: Nonfungible Owned (r:0 w:1)517 fn accept_resource_removal() -> Weight {518 (83_426_000 as Weight)519 .saturating_add(RocksDbWeight::get().reads(17 as Weight))520 .saturating_add(RocksDbWeight::get().writes(5 as Weight))521 }522}difftreelog
source
pallets/proxy-rmrk-core/src/weights.rs21.7 KiBsourcehistory