difftreelog
fix benchmark rmrk-core with opal-runtime
in: master
10 files changed
Cargo.lockdiffbeforeafterboth8558 "fp-evm-mapping",8558 "fp-evm-mapping",8559 "fp-rpc",8559 "fp-rpc",8560 "fp-self-contained",8560 "fp-self-contained",8561 "frame-benchmarking",8561 "frame-executive",8562 "frame-executive",8562 "frame-support",8563 "frame-support",8563 "frame-system",8564 "frame-system",8565 "frame-system-benchmarking",8564 "frame-system-rpc-runtime-api",8566 "frame-system-rpc-runtime-api",8565 "frame-try-runtime",8567 "frame-try-runtime",8568 "hex-literal",8566 "log",8569 "log",8567 "orml-vesting",8570 "orml-vesting",8568 "pallet-aura",8571 "pallet-aura",Makefilediffbeforeafterboth595960.PHONY: _bench60.PHONY: _bench61_bench:61_bench:62 cargo run --release --features runtime-benchmarks,unique-runtime -- \62 cargo run --release --features runtime-benchmarks,$(RUNTIME) -- \63 benchmark pallet --pallet pallet-$(if $(PALLET),$(PALLET),$(error Must set PALLET)) \63 benchmark pallet --pallet pallet-$(if $(PALLET),$(PALLET),$(error Must set PALLET)) \64 --wasm-execution compiled --extrinsic '*' \64 --wasm-execution compiled --extrinsic '*' \65 --template .maintain/frame-weight-template.hbs --steps=50 --repeat=80 --heap-pages=4096 \65 --template .maintain/frame-weight-template.hbs --steps=50 --repeat=80 --heap-pages=4096 \node/cli/Cargo.tomldiffbeforeafterboth323[features]323[features]324default = []324default = []325runtime-benchmarks = [325runtime-benchmarks = [326 'unique-runtime/runtime-benchmarks',326 'unique-runtime?/runtime-benchmarks',327 'quartz-runtime?/runtime-benchmarks',328 'opal-runtime/runtime-benchmarks',327 'polkadot-service/runtime-benchmarks',329 'polkadot-service/runtime-benchmarks',328]330]329try-runtime = []331try-runtime = []node/cli/src/chain_spec.rsdiffbeforeafterboth26use unique_runtime_common::types::*;26use unique_runtime_common::types::*;272728#[cfg(feature = "unique-runtime")]28#[cfg(feature = "unique-runtime")]29use unique_runtime as default_runtime;29pub use unique_runtime as default_runtime;303031#[cfg(all(not(feature = "unique-runtime"), feature = "quartz-runtime"))]31#[cfg(all(not(feature = "unique-runtime"), feature = "quartz-runtime"))]32use quartz_runtime as default_runtime;32pub use quartz_runtime as default_runtime;333334#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]34#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]35use opal_runtime as default_runtime;35pub use opal_runtime as default_runtime;363637/// The `ChainSpec` parameterized for the unique runtime.37/// The `ChainSpec` parameterized for the unique runtime.38#[cfg(feature = "unique-runtime")]38#[cfg(feature = "unique-runtime")]node/cli/src/command.rsdiffbeforeafterboth33// limitations under the License.33// limitations under the License.343435use crate::{35use crate::{36 chain_spec::{self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification},36 chain_spec::{self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification, default_runtime},37 cli::{Cli, RelayChainCli, Subcommand},37 cli::{Cli, RelayChainCli, Subcommand},38 service::{new_partial, start_node, start_dev_node},38 service::{new_partial, start_node, start_dev_node},39};39};44#[cfg(feature = "quartz-runtime")]44#[cfg(feature = "quartz-runtime")]45use crate::service::QuartzRuntimeExecutor;45use crate::service::QuartzRuntimeExecutor;464647use crate::service::OpalRuntimeExecutor;47use crate::service::{OpalRuntimeExecutor, DefaultRuntimeExecutor};484849use codec::Encode;49use codec::Encode;50use cumulus_primitives_core::ParaId;50use cumulus_primitives_core::ParaId;372372373 Ok(())373 Ok(())374 }374 }375 #[cfg(feature = "unique-runtime")]376 Some(Subcommand::Benchmark(cmd)) => {375 Some(Subcommand::Benchmark(cmd)) => {377 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};376 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};378 let runner = cli.create_runner(cmd)?;377 let runner = cli.create_runner(cmd)?;379 // Switch on the concrete benchmark sub-command-378 // Switch on the concrete benchmark sub-command-380 match cmd {379 match cmd {381 BenchmarkCmd::Pallet(cmd) => {380 BenchmarkCmd::Pallet(cmd) => {382 if cfg!(feature = "runtime-benchmarks") {381 if cfg!(feature = "runtime-benchmarks") {383 runner.sync_run(|config| cmd.run::<Block, UniqueRuntimeExecutor>(config))382 runner.sync_run(|config| cmd.run::<Block, DefaultRuntimeExecutor>(config))384 } else {383 } else {385 Err("Benchmarking wasn't enabled when building the node. \384 Err("Benchmarking wasn't enabled when building the node. \386 You can enable it with `--features runtime-benchmarks`."385 You can enable it with `--features runtime-benchmarks`."389 }388 }390 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {389 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {391 let partials = new_partial::<390 let partials = new_partial::<392 unique_runtime::RuntimeApi,391 default_runtime::RuntimeApi,393 UniqueRuntimeExecutor,392 DefaultRuntimeExecutor,394 _,393 _,395 >(&config, crate::service::parachain_build_import_queue)?;394 >(&config, crate::service::parachain_build_import_queue)?;396 cmd.run(partials.client)395 cmd.run(partials.client)397 }),396 }),398 BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {397 BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {399 let partials = new_partial::<398 let partials = new_partial::<400 unique_runtime::RuntimeApi,399 default_runtime::RuntimeApi,401 UniqueRuntimeExecutor,400 DefaultRuntimeExecutor,402 _,401 _,403 >(&config, crate::service::parachain_build_import_queue)?;402 >(&config, crate::service::parachain_build_import_queue)?;404 let db = partials.backend.expose_db();403 let db = partials.backend.expose_db();412 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),411 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),413 }412 }414 }413 }415 #[cfg(not(feature = "unique-runtime"))]416 Some(Subcommand::Benchmark(..)) => {417 Err("benchmarking is only available with unique runtime enabled".into())418 }419 Some(Subcommand::TryRuntime(cmd)) => {414 Some(Subcommand::TryRuntime(cmd)) => {420 if cfg!(feature = "try-runtime") {415 if cfg!(feature = "try-runtime") {421 let runner = cli.create_runner(cmd)?;416 let runner = cli.create_runner(cmd)?;node/cli/src/service.rsdiffbeforeafterboth83/// Opal native executor instance.82/// Opal native executor instance.84pub struct OpalRuntimeExecutor;83pub struct OpalRuntimeExecutor;8485#[cfg(feature = "unique-runtime")]86pub type DefaultRuntimeExecutor = UniqueRuntimeExecutor;8788#[cfg(all(not(feature = "unique-runtime"), feature = "quartz-runtime"))]89pub type DefaultRuntimeExecutor = QuartzRuntimeExecutor;9091#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]92pub type DefaultRuntimeExecutor = OpalRuntimeExecutor;859386#[cfg(feature = "unique-runtime")]94#[cfg(feature = "unique-runtime")]87impl NativeExecutionDispatch for UniqueRuntimeExecutor {95impl NativeExecutionDispatch for UniqueRuntimeExecutor {pallets/proxy-rmrk-core/src/benchmarking.rsdiffbeforeafterboth220 let b in 0..100;220 let b in 0..100;221221222 let caller: T::AccountId = account("caller", 0, SEED);222 let caller: T::AccountId = account("caller", 0, SEED);223 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());224223225 create_max_collection::<T>(&caller)?;224 create_max_collection::<T>(&caller)?;226 let collection_id = 0;225 let collection_id = 0;381380382 add_basic_resource {381 add_basic_resource {383 let caller: T::AccountId = account("caller", 0, SEED);382 let caller: T::AccountId = account("caller", 0, SEED);384 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());385383386 create_max_collection::<T>(&caller)?;384 create_max_collection::<T>(&caller)?;387 let collection_id = 0;385 let collection_id = 0;398396399 add_composable_resource {397 add_composable_resource {400 let caller: T::AccountId = account("caller", 0, SEED);398 let caller: T::AccountId = account("caller", 0, SEED);401 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());402399403 create_max_collection::<T>(&caller)?;400 create_max_collection::<T>(&caller)?;404 let collection_id = 0;401 let collection_id = 0;415412416 add_slot_resource {413 add_slot_resource {417 let caller: T::AccountId = account("caller", 0, SEED);414 let caller: T::AccountId = account("caller", 0, SEED);418 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());419415420 create_max_collection::<T>(&caller)?;416 create_max_collection::<T>(&caller)?;421 let collection_id = 0;417 let collection_id = 0;432428433 remove_resource {429 remove_resource {434 let caller: T::AccountId = account("caller", 0, SEED);430 let caller: T::AccountId = account("caller", 0, SEED);435 <T as pallet_common::Config>::Currency::deposit_creating(&caller, T::CollectionCreationPrice::get());436431437 create_max_collection::<T>(&caller)?;432 create_max_collection::<T>(&caller)?;438 let collection_id = 0;433 let collection_id = 0;448 resource443 resource449 )?;444 )?;450445451 let resource_id = 1;446 let resource_id = 0;452 }: _(447 }: _(453 RawOrigin::Signed(caller),448 RawOrigin::Signed(caller),454 collection_id,449 collection_id,460 let caller: T::AccountId = account("caller", 0, SEED);455 let caller: T::AccountId = account("caller", 0, SEED);461 let admin: T::AccountId = account("admin", 0, SEED);456 let admin: T::AccountId = account("admin", 0, SEED);462463 <T as pallet_common::Config>::Currency::deposit_creating(&admin, T::CollectionCreationPrice::get());464457465 create_max_collection::<T>(&admin)?;458 create_max_collection::<T>(&admin)?;466 let collection_id = 0;459 let collection_id = 0;486 resource479 resource487 )?;480 )?;488481489 let resource_id = 1;482 let resource_id = 0;490 }: _(483 }: _(491 RawOrigin::Signed(caller),484 RawOrigin::Signed(caller),492 collection_id,485 collection_id,498 let caller: T::AccountId = account("caller", 0, SEED);491 let caller: T::AccountId = account("caller", 0, SEED);499 let admin: T::AccountId = account("admin", 0, SEED);492 let admin: T::AccountId = account("admin", 0, SEED);500501 <T as pallet_common::Config>::Currency::deposit_creating(&admin, T::CollectionCreationPrice::get());502493503 create_max_collection::<T>(&admin)?;494 create_max_collection::<T>(&admin)?;504 let collection_id = 0;495 let collection_id = 0;515 resource506 resource516 )?;507 )?;517508518 let resource_id = 1;509 let resource_id = 0;519510520 let new_owner = <RmrkAccountIdOrCollectionNftTuple<T::AccountId>>::AccountId(caller.clone());511 let new_owner = <RmrkAccountIdOrCollectionNftTuple<T::AccountId>>::AccountId(caller.clone());521512pallets/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-14, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-16, STEPS: `50`, REPEAT: 80, 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:19// --template19// --template20// .maintain/frame-weight-template.hbs20// .maintain/frame-weight-template.hbs21// --steps=5021// --steps=5022// --repeat=20022// --repeat=8023// --heap-pages=409623// --heap-pages=409624// --output=./pallets/proxy-rmrk-core/src/weights.rs24// --output=./pallets/proxy-rmrk-core/src/weights.rs252564 // 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 (41_277_000 as Weight)67 (41_768_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 (43_371_000 as Weight)80 (43_402_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 (21_891_000 as Weight)88 (21_711_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_144_000 as Weight)98 (23_204_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 // Storage: Nonfungible TokenSysProperties (r:2 w:2)114 fn mint_nft(b: u32, ) -> Weight {111 fn mint_nft(b: u32, ) -> Weight {115 (68_329_000 as Weight)112 (44_655_000 as Weight)116 // Standard Error: 3_000113 // Standard Error: 2_000117 .saturating_add((21_470_000 as Weight).saturating_mul(b as Weight))114 .saturating_add((10_953_000 as Weight).saturating_mul(b as Weight))118 .saturating_add(T::DbWeight::get().reads(12 as Weight))115 .saturating_add(T::DbWeight::get().reads(6 as Weight))119 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))116 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))120 .saturating_add(T::DbWeight::get().writes(12 as Weight))117 .saturating_add(T::DbWeight::get().writes(5 as Weight))121 .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))118 .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))122 }119 }123 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)120 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)124 // Storage: Common CollectionProperties (r:1 w:0)121 // Storage: Common CollectionProperties (r:1 w:0)132 // Storage: Nonfungible TokenProperties (r:0 w:1)129 // Storage: Nonfungible TokenProperties (r:0 w:1)133 fn burn_nft(b: u32, ) -> Weight {130 fn burn_nft(b: u32, ) -> Weight {134 (0 as Weight)131 (0 as Weight)135 // Standard Error: 959_000132 // Standard Error: 3_677_000136 .saturating_add((305_872_000 as Weight).saturating_mul(b as Weight))133 .saturating_add((357_082_000 as Weight).saturating_mul(b as Weight))137 .saturating_add(T::DbWeight::get().reads(9 as Weight))134 .saturating_add(T::DbWeight::get().reads(9 as Weight))138 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))135 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))139 .saturating_add(T::DbWeight::get().writes(6 as Weight))136 .saturating_add(T::DbWeight::get().writes(6 as Weight))149 // Storage: Nonfungible TokenChildren (r:0 w:1)146 // Storage: Nonfungible TokenChildren (r:0 w:1)150 // Storage: Nonfungible Owned (r:0 w:2)147 // Storage: Nonfungible Owned (r:0 w:2)151 fn send() -> Weight {148 fn send() -> Weight {152 (71_405_000 as Weight)149 (73_968_000 as Weight)153 .saturating_add(T::DbWeight::get().reads(12 as Weight))150 .saturating_add(T::DbWeight::get().reads(12 as Weight))154 .saturating_add(T::DbWeight::get().writes(6 as Weight))151 .saturating_add(T::DbWeight::get().writes(6 as Weight))155 }152 }163 // Storage: Nonfungible TokenChildren (r:0 w:1)160 // Storage: Nonfungible TokenChildren (r:0 w:1)164 // Storage: Nonfungible Owned (r:0 w:2)161 // Storage: Nonfungible Owned (r:0 w:2)165 fn accept_nft() -> Weight {162 fn accept_nft() -> Weight {166 (79_159_000 as Weight)163 (81_954_000 as Weight)167 .saturating_add(T::DbWeight::get().reads(15 as Weight))164 .saturating_add(T::DbWeight::get().reads(15 as Weight))168 .saturating_add(T::DbWeight::get().writes(7 as Weight))165 .saturating_add(T::DbWeight::get().writes(7 as Weight))169 }166 }170 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)167 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)171 // Storage: Common CollectionProperties (r:1 w:0)168 // Storage: Common CollectionProperties (r:1 w:0)172 // Storage: Common CollectionById (r:1 w:0)169 // Storage: Common CollectionById (r:1 w:0)173 // Storage: Nonfungible TokenProperties (r:1 w:5)174 // Storage: Nonfungible TokenData (r:5 w:5)170 // Storage: Nonfungible TokenData (r:5 w:5)171 // Storage: Nonfungible TokenProperties (r:1 w:5)175 // Storage: Nonfungible TokenChildren (r:9 w:4)172 // Storage: Nonfungible TokenChildren (r:9 w:4)176 // Storage: Nonfungible TokensBurnt (r:1 w:1)173 // Storage: Nonfungible TokensBurnt (r:1 w:1)177 // Storage: Nonfungible AccountBalance (r:5 w:5)174 // Storage: Nonfungible AccountBalance (r:5 w:5)178 // Storage: Nonfungible Allowance (r:5 w:0)175 // Storage: Nonfungible Allowance (r:5 w:0)179 // Storage: Nonfungible Owned (r:0 w:5)176 // Storage: Nonfungible Owned (r:0 w:5)180 fn reject_nft() -> Weight {177 fn reject_nft() -> Weight {181 (238_179_000 as Weight)178 (250_041_000 as Weight)182 .saturating_add(T::DbWeight::get().reads(29 as Weight))179 .saturating_add(T::DbWeight::get().reads(29 as Weight))183 .saturating_add(T::DbWeight::get().writes(25 as Weight))180 .saturating_add(T::DbWeight::get().writes(25 as Weight))184 }181 }188 // Storage: Nonfungible TokenProperties (r:1 w:1)185 // Storage: Nonfungible TokenProperties (r:1 w:1)189 // Storage: Nonfungible TokenData (r:5 w:0)186 // Storage: Nonfungible TokenData (r:5 w:0)190 fn set_property() -> Weight {187 fn set_property() -> Weight {191 (47_770_000 as Weight)188 (48_631_000 as Weight)192 .saturating_add(T::DbWeight::get().reads(9 as Weight))189 .saturating_add(T::DbWeight::get().reads(9 as Weight))193 .saturating_add(T::DbWeight::get().writes(1 as Weight))190 .saturating_add(T::DbWeight::get().writes(1 as Weight))194 }191 }198 // Storage: Nonfungible TokenProperties (r:1 w:1)195 // Storage: Nonfungible TokenProperties (r:1 w:1)199 // Storage: Nonfungible TokenData (r:5 w:0)196 // Storage: Nonfungible TokenData (r:5 w:0)200 fn set_priority() -> Weight {197 fn set_priority() -> Weight {201 (46_679_000 as Weight)198 (47_830_000 as Weight)202 .saturating_add(T::DbWeight::get().reads(9 as Weight))199 .saturating_add(T::DbWeight::get().reads(9 as Weight))203 .saturating_add(T::DbWeight::get().writes(1 as Weight))200 .saturating_add(T::DbWeight::get().writes(1 as Weight))204 }201 }205 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)202 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)206 // Storage: Common CollectionProperties (r:1 w:1)203 // Storage: Common CollectionProperties (r:1 w:0)207 // Storage: Common CollectionById (r:1 w:1)204 // Storage: Common CollectionById (r:1 w:0)208 // Storage: Nonfungible TokenData (r:5 w:1)205 // Storage: Nonfungible TokenData (r:5 w:0)209 // Storage: Nonfungible TokenProperties (r:2 w:2)206 // Storage: Nonfungible TokenProperties (r:1 w:1)210 // Storage: Common CreatedCollectionCount (r:1 w:1)211 // Storage: Common DestroyedCollectionCount (r:1 w:0)212 // Storage: System Account (r:2 w:2)213 // Storage: Nonfungible TokensMinted (r:1 w:1)207 // Storage: Nonfungible TokenSysProperties (r:1 w:1)214 // Storage: Nonfungible AccountBalance (r:1 w:1)215 // Storage: Nonfungible Owned (r:0 w:1)216 // Storage: Common CollectionPropertyPermissions (r:0 w:1)217 fn add_basic_resource() -> Weight {208 fn add_basic_resource() -> Weight {218 (100_770_000 as Weight)209 (54_773_000 as Weight)219 .saturating_add(T::DbWeight::get().reads(16 as Weight))210 .saturating_add(T::DbWeight::get().reads(10 as Weight))220 .saturating_add(T::DbWeight::get().writes(12 as Weight))211 .saturating_add(T::DbWeight::get().writes(2 as Weight))221 }212 }222 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)213 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)223 // Storage: Common CollectionProperties (r:1 w:1)214 // Storage: Common CollectionProperties (r:1 w:0)224 // Storage: Common CollectionById (r:1 w:1)215 // Storage: Common CollectionById (r:1 w:0)225 // Storage: Nonfungible TokenData (r:5 w:1)216 // Storage: Nonfungible TokenData (r:5 w:0)226 // Storage: Nonfungible TokenProperties (r:2 w:2)217 // Storage: Nonfungible TokenProperties (r:1 w:1)227 // Storage: Common CreatedCollectionCount (r:1 w:1)228 // Storage: Common DestroyedCollectionCount (r:1 w:0)229 // Storage: System Account (r:2 w:2)230 // Storage: Nonfungible TokensMinted (r:1 w:1)218 // Storage: Nonfungible TokenSysProperties (r:1 w:1)231 // Storage: Nonfungible AccountBalance (r:1 w:1)232 // Storage: Nonfungible Owned (r:0 w:1)233 // Storage: Common CollectionPropertyPermissions (r:0 w:1)234 fn add_composable_resource() -> Weight {219 fn add_composable_resource() -> Weight {235 (101_791_000 as Weight)220 (55_214_000 as Weight)236 .saturating_add(T::DbWeight::get().reads(16 as Weight))221 .saturating_add(T::DbWeight::get().reads(10 as Weight))237 .saturating_add(T::DbWeight::get().writes(12 as Weight))222 .saturating_add(T::DbWeight::get().writes(2 as Weight))238 }223 }239 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)224 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)240 // Storage: Common CollectionProperties (r:1 w:1)225 // Storage: Common CollectionProperties (r:1 w:0)241 // Storage: Common CollectionById (r:1 w:1)226 // Storage: Common CollectionById (r:1 w:0)242 // Storage: Nonfungible TokenData (r:5 w:1)227 // Storage: Nonfungible TokenData (r:5 w:0)243 // Storage: Nonfungible TokenProperties (r:2 w:2)228 // Storage: Nonfungible TokenProperties (r:1 w:1)244 // Storage: Common CreatedCollectionCount (r:1 w:1)245 // Storage: Common DestroyedCollectionCount (r:1 w:0)246 // Storage: System Account (r:2 w:2)247 // Storage: Nonfungible TokensMinted (r:1 w:1)229 // Storage: Nonfungible TokenSysProperties (r:1 w:1)248 // Storage: Nonfungible AccountBalance (r:1 w:1)249 // Storage: Nonfungible Owned (r:0 w:1)250 // Storage: Common CollectionPropertyPermissions (r:0 w:1)251 fn add_slot_resource() -> Weight {230 fn add_slot_resource() -> Weight {252 (101_610_000 as Weight)231 (54_863_000 as Weight)253 .saturating_add(T::DbWeight::get().reads(16 as Weight))232 .saturating_add(T::DbWeight::get().reads(10 as Weight))254 .saturating_add(T::DbWeight::get().writes(12 as Weight))233 .saturating_add(T::DbWeight::get().writes(2 as Weight))255 }234 }256 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)235 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)257 // Storage: Common CollectionProperties (r:2 w:0)236 // Storage: Common CollectionProperties (r:1 w:0)258 // Storage: Common CollectionById (r:2 w:0)237 // Storage: Common CollectionById (r:1 w:0)259 // Storage: Nonfungible TokenProperties (r:1 w:1)238 // Storage: Nonfungible TokenSysProperties (r:1 w:1)260 // Storage: Nonfungible TokenData (r:6 w:1)239 // Storage: Nonfungible TokenData (r:5 w:0)261 // Storage: Nonfungible TokenChildren (r:1 w:0)262 // Storage: Nonfungible TokensBurnt (r:1 w:1)263 // Storage: Nonfungible AccountBalance (r:1 w:1)264 // Storage: Nonfungible Allowance (r:1 w:0)265 // Storage: Nonfungible Owned (r:0 w:1)266 fn remove_resource() -> Weight {240 fn remove_resource() -> Weight {267 (80_571_000 as Weight)241 (46_848_000 as Weight)268 .saturating_add(T::DbWeight::get().reads(16 as Weight))242 .saturating_add(T::DbWeight::get().reads(9 as Weight))269 .saturating_add(T::DbWeight::get().writes(5 as Weight))243 .saturating_add(T::DbWeight::get().writes(1 as Weight))270 }244 }271 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)245 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)272 // Storage: Common CollectionProperties (r:1 w:0)246 // Storage: Common CollectionProperties (r:1 w:0)273 // Storage: Common CollectionById (r:1 w:0)247 // Storage: Common CollectionById (r:1 w:0)274 // Storage: Nonfungible TokenData (r:5 w:0)248 // Storage: Nonfungible TokenData (r:5 w:0)275 // Storage: Nonfungible TokenProperties (r:2 w:1)249 // Storage: Nonfungible TokenSysProperties (r:1 w:1)276 fn accept_resource() -> Weight {250 fn accept_resource() -> Weight {277 (54_733_000 as Weight)251 (45_635_000 as Weight)278 .saturating_add(T::DbWeight::get().reads(10 as Weight))252 .saturating_add(T::DbWeight::get().reads(9 as Weight))279 .saturating_add(T::DbWeight::get().writes(1 as Weight))253 .saturating_add(T::DbWeight::get().writes(1 as Weight))280 }254 }281 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)255 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)282 // Storage: Common CollectionProperties (r:2 w:0)256 // Storage: Common CollectionProperties (r:1 w:0)283 // Storage: Common CollectionById (r:2 w:0)257 // Storage: Common CollectionById (r:1 w:0)284 // Storage: Nonfungible TokenData (r:6 w:1)258 // Storage: Nonfungible TokenData (r:5 w:0)285 // Storage: Nonfungible TokenProperties (r:2 w:1)259 // Storage: Nonfungible TokenSysProperties (r:1 w:1)286 // Storage: Nonfungible TokenChildren (r:1 w:0)287 // Storage: Nonfungible TokensBurnt (r:1 w:1)288 // Storage: Nonfungible AccountBalance (r:1 w:1)289 // Storage: Nonfungible Allowance (r:1 w:0)290 // Storage: Nonfungible Owned (r:0 w:1)291 fn accept_resource_removal() -> Weight {260 fn accept_resource_removal() -> Weight {292 (84_138_000 as Weight)261 (45_535_000 as Weight)293 .saturating_add(T::DbWeight::get().reads(17 as Weight))262 .saturating_add(T::DbWeight::get().reads(9 as Weight))294 .saturating_add(T::DbWeight::get().writes(5 as Weight))263 .saturating_add(T::DbWeight::get().writes(1 as Weight))295 }264 }296}265}297266306 // Storage: Common CollectionById (r:0 w:1)275 // Storage: Common CollectionById (r:0 w:1)307 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)276 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)308 fn create_collection() -> Weight {277 fn create_collection() -> Weight {309 (41_277_000 as Weight)278 (41_768_000 as Weight)310 .saturating_add(RocksDbWeight::get().reads(5 as Weight))279 .saturating_add(RocksDbWeight::get().reads(5 as Weight))311 .saturating_add(RocksDbWeight::get().writes(8 as Weight))280 .saturating_add(RocksDbWeight::get().writes(8 as Weight))312 }281 }319 // Storage: Nonfungible TokensBurnt (r:0 w:1)288 // Storage: Nonfungible TokensBurnt (r:0 w:1)320 // Storage: Common AdminAmount (r:0 w:1)289 // Storage: Common AdminAmount (r:0 w:1)321 fn destroy_collection() -> Weight {290 fn destroy_collection() -> Weight {322 (43_371_000 as Weight)291 (43_402_000 as Weight)323 .saturating_add(RocksDbWeight::get().reads(5 as Weight))292 .saturating_add(RocksDbWeight::get().reads(5 as Weight))324 .saturating_add(RocksDbWeight::get().writes(6 as Weight))293 .saturating_add(RocksDbWeight::get().writes(6 as Weight))325 }294 }326 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)295 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)327 // Storage: Common CollectionById (r:1 w:1)296 // Storage: Common CollectionById (r:1 w:1)328 // Storage: Common CollectionProperties (r:1 w:0)297 // Storage: Common CollectionProperties (r:1 w:0)329 fn change_collection_issuer() -> Weight {298 fn change_collection_issuer() -> Weight {330 (21_891_000 as Weight)299 (21_711_000 as Weight)331 .saturating_add(RocksDbWeight::get().reads(3 as Weight))300 .saturating_add(RocksDbWeight::get().reads(3 as Weight))332 .saturating_add(RocksDbWeight::get().writes(1 as Weight))301 .saturating_add(RocksDbWeight::get().writes(1 as Weight))333 }302 }337 // Storage: Nonfungible TokensMinted (r:1 w:0)306 // Storage: Nonfungible TokensMinted (r:1 w:0)338 // Storage: Nonfungible TokensBurnt (r:1 w:0)307 // Storage: Nonfungible TokensBurnt (r:1 w:0)339 fn lock_collection() -> Weight {308 fn lock_collection() -> Weight {340 (23_144_000 as Weight)309 (23_204_000 as Weight)341 .saturating_add(RocksDbWeight::get().reads(5 as Weight))310 .saturating_add(RocksDbWeight::get().reads(5 as Weight))342 .saturating_add(RocksDbWeight::get().writes(1 as Weight))311 .saturating_add(RocksDbWeight::get().writes(1 as Weight))343 }312 }349 // Storage: Nonfungible TokenProperties (r:1 w:1)318 // Storage: Nonfungible TokenProperties (r:1 w:1)350 // Storage: Nonfungible TokenData (r:0 w:1)319 // Storage: Nonfungible TokenData (r:0 w:1)351 // Storage: Nonfungible Owned (r:0 w:1)320 // 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)321 // Storage: Nonfungible TokenSysProperties (r:2 w:2)356 fn mint_nft(b: u32, ) -> Weight {322 fn mint_nft(b: u32, ) -> Weight {357 (68_329_000 as Weight)323 (44_655_000 as Weight)358 // Standard Error: 3_000324 // Standard Error: 2_000359 .saturating_add((21_470_000 as Weight).saturating_mul(b as Weight))325 .saturating_add((10_953_000 as Weight).saturating_mul(b as Weight))360 .saturating_add(RocksDbWeight::get().reads(12 as Weight))326 .saturating_add(RocksDbWeight::get().reads(6 as Weight))361 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))327 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))362 .saturating_add(RocksDbWeight::get().writes(12 as Weight))328 .saturating_add(RocksDbWeight::get().writes(5 as Weight))363 .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(b as Weight)))329 .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))364 }330 }365 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)331 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)366 // Storage: Common CollectionProperties (r:1 w:0)332 // Storage: Common CollectionProperties (r:1 w:0)374 // Storage: Nonfungible TokenProperties (r:0 w:1)340 // Storage: Nonfungible TokenProperties (r:0 w:1)375 fn burn_nft(b: u32, ) -> Weight {341 fn burn_nft(b: u32, ) -> Weight {376 (0 as Weight)342 (0 as Weight)377 // Standard Error: 959_000343 // Standard Error: 3_677_000378 .saturating_add((305_872_000 as Weight).saturating_mul(b as Weight))344 .saturating_add((357_082_000 as Weight).saturating_mul(b as Weight))379 .saturating_add(RocksDbWeight::get().reads(9 as Weight))345 .saturating_add(RocksDbWeight::get().reads(9 as Weight))380 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))346 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))381 .saturating_add(RocksDbWeight::get().writes(6 as Weight))347 .saturating_add(RocksDbWeight::get().writes(6 as Weight))391 // Storage: Nonfungible TokenChildren (r:0 w:1)357 // Storage: Nonfungible TokenChildren (r:0 w:1)392 // Storage: Nonfungible Owned (r:0 w:2)358 // Storage: Nonfungible Owned (r:0 w:2)393 fn send() -> Weight {359 fn send() -> Weight {394 (71_405_000 as Weight)360 (73_968_000 as Weight)395 .saturating_add(RocksDbWeight::get().reads(12 as Weight))361 .saturating_add(RocksDbWeight::get().reads(12 as Weight))396 .saturating_add(RocksDbWeight::get().writes(6 as Weight))362 .saturating_add(RocksDbWeight::get().writes(6 as Weight))397 }363 }405 // Storage: Nonfungible TokenChildren (r:0 w:1)371 // Storage: Nonfungible TokenChildren (r:0 w:1)406 // Storage: Nonfungible Owned (r:0 w:2)372 // Storage: Nonfungible Owned (r:0 w:2)407 fn accept_nft() -> Weight {373 fn accept_nft() -> Weight {408 (79_159_000 as Weight)374 (81_954_000 as Weight)409 .saturating_add(RocksDbWeight::get().reads(15 as Weight))375 .saturating_add(RocksDbWeight::get().reads(15 as Weight))410 .saturating_add(RocksDbWeight::get().writes(7 as Weight))376 .saturating_add(RocksDbWeight::get().writes(7 as Weight))411 }377 }412 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)378 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)413 // Storage: Common CollectionProperties (r:1 w:0)379 // Storage: Common CollectionProperties (r:1 w:0)414 // Storage: Common CollectionById (r:1 w:0)380 // Storage: Common CollectionById (r:1 w:0)415 // Storage: Nonfungible TokenProperties (r:1 w:5)416 // Storage: Nonfungible TokenData (r:5 w:5)381 // Storage: Nonfungible TokenData (r:5 w:5)382 // Storage: Nonfungible TokenProperties (r:1 w:5)417 // Storage: Nonfungible TokenChildren (r:9 w:4)383 // Storage: Nonfungible TokenChildren (r:9 w:4)418 // Storage: Nonfungible TokensBurnt (r:1 w:1)384 // Storage: Nonfungible TokensBurnt (r:1 w:1)419 // Storage: Nonfungible AccountBalance (r:5 w:5)385 // Storage: Nonfungible AccountBalance (r:5 w:5)420 // Storage: Nonfungible Allowance (r:5 w:0)386 // Storage: Nonfungible Allowance (r:5 w:0)421 // Storage: Nonfungible Owned (r:0 w:5)387 // Storage: Nonfungible Owned (r:0 w:5)422 fn reject_nft() -> Weight {388 fn reject_nft() -> Weight {423 (238_179_000 as Weight)389 (250_041_000 as Weight)424 .saturating_add(RocksDbWeight::get().reads(29 as Weight))390 .saturating_add(RocksDbWeight::get().reads(29 as Weight))425 .saturating_add(RocksDbWeight::get().writes(25 as Weight))391 .saturating_add(RocksDbWeight::get().writes(25 as Weight))426 }392 }430 // Storage: Nonfungible TokenProperties (r:1 w:1)396 // Storage: Nonfungible TokenProperties (r:1 w:1)431 // Storage: Nonfungible TokenData (r:5 w:0)397 // Storage: Nonfungible TokenData (r:5 w:0)432 fn set_property() -> Weight {398 fn set_property() -> Weight {433 (47_770_000 as Weight)399 (48_631_000 as Weight)434 .saturating_add(RocksDbWeight::get().reads(9 as Weight))400 .saturating_add(RocksDbWeight::get().reads(9 as Weight))435 .saturating_add(RocksDbWeight::get().writes(1 as Weight))401 .saturating_add(RocksDbWeight::get().writes(1 as Weight))436 }402 }440 // Storage: Nonfungible TokenProperties (r:1 w:1)406 // Storage: Nonfungible TokenProperties (r:1 w:1)441 // Storage: Nonfungible TokenData (r:5 w:0)407 // Storage: Nonfungible TokenData (r:5 w:0)442 fn set_priority() -> Weight {408 fn set_priority() -> Weight {443 (46_679_000 as Weight)409 (47_830_000 as Weight)444 .saturating_add(RocksDbWeight::get().reads(9 as Weight))410 .saturating_add(RocksDbWeight::get().reads(9 as Weight))445 .saturating_add(RocksDbWeight::get().writes(1 as Weight))411 .saturating_add(RocksDbWeight::get().writes(1 as Weight))446 }412 }447 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)413 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)448 // Storage: Common CollectionProperties (r:1 w:1)414 // Storage: Common CollectionProperties (r:1 w:0)449 // Storage: Common CollectionById (r:1 w:1)415 // Storage: Common CollectionById (r:1 w:0)450 // Storage: Nonfungible TokenData (r:5 w:1)416 // Storage: Nonfungible TokenData (r:5 w:0)451 // Storage: Nonfungible TokenProperties (r:2 w:2)417 // Storage: Nonfungible TokenProperties (r:1 w:1)452 // Storage: Common CreatedCollectionCount (r:1 w:1)453 // Storage: Common DestroyedCollectionCount (r:1 w:0)454 // Storage: System Account (r:2 w:2)455 // Storage: Nonfungible TokensMinted (r:1 w:1)418 // Storage: Nonfungible TokenSysProperties (r:1 w:1)456 // Storage: Nonfungible AccountBalance (r:1 w:1)457 // Storage: Nonfungible Owned (r:0 w:1)458 // Storage: Common CollectionPropertyPermissions (r:0 w:1)459 fn add_basic_resource() -> Weight {419 fn add_basic_resource() -> Weight {460 (100_770_000 as Weight)420 (54_773_000 as Weight)461 .saturating_add(RocksDbWeight::get().reads(16 as Weight))421 .saturating_add(RocksDbWeight::get().reads(10 as Weight))462 .saturating_add(RocksDbWeight::get().writes(12 as Weight))422 .saturating_add(RocksDbWeight::get().writes(2 as Weight))463 }423 }464 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)424 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)465 // Storage: Common CollectionProperties (r:1 w:1)425 // Storage: Common CollectionProperties (r:1 w:0)466 // Storage: Common CollectionById (r:1 w:1)426 // Storage: Common CollectionById (r:1 w:0)467 // Storage: Nonfungible TokenData (r:5 w:1)427 // Storage: Nonfungible TokenData (r:5 w:0)468 // Storage: Nonfungible TokenProperties (r:2 w:2)428 // Storage: Nonfungible TokenProperties (r:1 w:1)469 // Storage: Common CreatedCollectionCount (r:1 w:1)470 // Storage: Common DestroyedCollectionCount (r:1 w:0)471 // Storage: System Account (r:2 w:2)472 // Storage: Nonfungible TokensMinted (r:1 w:1)429 // Storage: Nonfungible TokenSysProperties (r:1 w:1)473 // Storage: Nonfungible AccountBalance (r:1 w:1)474 // Storage: Nonfungible Owned (r:0 w:1)475 // Storage: Common CollectionPropertyPermissions (r:0 w:1)476 fn add_composable_resource() -> Weight {430 fn add_composable_resource() -> Weight {477 (101_791_000 as Weight)431 (55_214_000 as Weight)478 .saturating_add(RocksDbWeight::get().reads(16 as Weight))432 .saturating_add(RocksDbWeight::get().reads(10 as Weight))479 .saturating_add(RocksDbWeight::get().writes(12 as Weight))433 .saturating_add(RocksDbWeight::get().writes(2 as Weight))480 }434 }481 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)435 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)482 // Storage: Common CollectionProperties (r:1 w:1)436 // Storage: Common CollectionProperties (r:1 w:0)483 // Storage: Common CollectionById (r:1 w:1)437 // Storage: Common CollectionById (r:1 w:0)484 // Storage: Nonfungible TokenData (r:5 w:1)438 // Storage: Nonfungible TokenData (r:5 w:0)485 // Storage: Nonfungible TokenProperties (r:2 w:2)439 // Storage: Nonfungible TokenProperties (r:1 w:1)486 // Storage: Common CreatedCollectionCount (r:1 w:1)487 // Storage: Common DestroyedCollectionCount (r:1 w:0)488 // Storage: System Account (r:2 w:2)489 // Storage: Nonfungible TokensMinted (r:1 w:1)440 // Storage: Nonfungible TokenSysProperties (r:1 w:1)490 // Storage: Nonfungible AccountBalance (r:1 w:1)491 // Storage: Nonfungible Owned (r:0 w:1)492 // Storage: Common CollectionPropertyPermissions (r:0 w:1)493 fn add_slot_resource() -> Weight {441 fn add_slot_resource() -> Weight {494 (101_610_000 as Weight)442 (54_863_000 as Weight)495 .saturating_add(RocksDbWeight::get().reads(16 as Weight))443 .saturating_add(RocksDbWeight::get().reads(10 as Weight))496 .saturating_add(RocksDbWeight::get().writes(12 as Weight))444 .saturating_add(RocksDbWeight::get().writes(2 as Weight))497 }445 }498 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)446 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)499 // Storage: Common CollectionProperties (r:2 w:0)447 // Storage: Common CollectionProperties (r:1 w:0)500 // Storage: Common CollectionById (r:2 w:0)448 // Storage: Common CollectionById (r:1 w:0)501 // Storage: Nonfungible TokenProperties (r:1 w:1)449 // Storage: Nonfungible TokenSysProperties (r:1 w:1)502 // Storage: Nonfungible TokenData (r:6 w:1)450 // Storage: Nonfungible TokenData (r:5 w:0)503 // Storage: Nonfungible TokenChildren (r:1 w:0)504 // Storage: Nonfungible TokensBurnt (r:1 w:1)505 // Storage: Nonfungible AccountBalance (r:1 w:1)506 // Storage: Nonfungible Allowance (r:1 w:0)507 // Storage: Nonfungible Owned (r:0 w:1)508 fn remove_resource() -> Weight {451 fn remove_resource() -> Weight {509 (80_571_000 as Weight)452 (46_848_000 as Weight)510 .saturating_add(RocksDbWeight::get().reads(16 as Weight))453 .saturating_add(RocksDbWeight::get().reads(9 as Weight))511 .saturating_add(RocksDbWeight::get().writes(5 as Weight))454 .saturating_add(RocksDbWeight::get().writes(1 as Weight))512 }455 }513 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)456 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)514 // Storage: Common CollectionProperties (r:1 w:0)457 // Storage: Common CollectionProperties (r:1 w:0)515 // Storage: Common CollectionById (r:1 w:0)458 // Storage: Common CollectionById (r:1 w:0)516 // Storage: Nonfungible TokenData (r:5 w:0)459 // Storage: Nonfungible TokenData (r:5 w:0)517 // Storage: Nonfungible TokenProperties (r:2 w:1)460 // Storage: Nonfungible TokenSysProperties (r:1 w:1)518 fn accept_resource() -> Weight {461 fn accept_resource() -> Weight {519 (54_733_000 as Weight)462 (45_635_000 as Weight)520 .saturating_add(RocksDbWeight::get().reads(10 as Weight))463 .saturating_add(RocksDbWeight::get().reads(9 as Weight))521 .saturating_add(RocksDbWeight::get().writes(1 as Weight))464 .saturating_add(RocksDbWeight::get().writes(1 as Weight))522 }465 }523 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)466 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)524 // Storage: Common CollectionProperties (r:2 w:0)467 // Storage: Common CollectionProperties (r:1 w:0)525 // Storage: Common CollectionById (r:2 w:0)468 // Storage: Common CollectionById (r:1 w:0)526 // Storage: Nonfungible TokenData (r:6 w:1)469 // Storage: Nonfungible TokenData (r:5 w:0)527 // Storage: Nonfungible TokenProperties (r:2 w:1)470 // Storage: Nonfungible TokenSysProperties (r:1 w:1)528 // Storage: Nonfungible TokenChildren (r:1 w:0)529 // Storage: Nonfungible TokensBurnt (r:1 w:1)530 // Storage: Nonfungible AccountBalance (r:1 w:1)531 // Storage: Nonfungible Allowance (r:1 w:0)532 // Storage: Nonfungible Owned (r:0 w:1)533 fn accept_resource_removal() -> Weight {471 fn accept_resource_removal() -> Weight {534 (84_138_000 as Weight)472 (45_535_000 as Weight)535 .saturating_add(RocksDbWeight::get().reads(17 as Weight))473 .saturating_add(RocksDbWeight::get().reads(9 as Weight))536 .saturating_add(RocksDbWeight::get().writes(5 as Weight))474 .saturating_add(RocksDbWeight::get().writes(1 as Weight))537 }475 }538}476}539477runtime/common/src/runtime_apis.rsdiffbeforeafterboth455 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);455 list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);456 list_benchmark!(list, extra, pallet_unique_scheduler, Scheduler);456 list_benchmark!(list, extra, pallet_unique_scheduler, Scheduler);457458 #[cfg(not(feature = "unique-runtime"))]459 list_benchmark!(list, extra, pallet_proxy_rmrk_core, RmrkCore);460457 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);461 // list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);458462499 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);503 add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);500 add_benchmark!(params, batches, pallet_unique_scheduler, Scheduler);504 add_benchmark!(params, batches, pallet_unique_scheduler, Scheduler);505506 #[cfg(not(feature = "unique-runtime"))]507 add_benchmark!(params, batches, pallet_proxy_rmrk_core, RmrkCore);508501 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);509 // add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);502510runtime/unique/Cargo.tomldiffbeforeafterboth16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']171718[features]18[features]19default = ['std']19default = ['std', 'unique-runtime']20runtime-benchmarks = [20runtime-benchmarks = [21 'hex-literal',21 'hex-literal',22 'frame-benchmarking',22 'frame-benchmarking',119 "orml-vesting/std",119 "orml-vesting/std",120]120]121limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']121limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']122unique-runtime = []122123123################################################################################124################################################################################124# Substrate Dependencies125# Substrate Dependencies