git.delta.rocks / unique-network / refs/commits / 22b45b5cd782

difftreelog

Merge pull request #1000 from UniqueNetwork/fix/minting-prop-weight

Yaroslav Bolyukin2023-10-02parents: #dc6f0e2 #630fc89.patch.diff
in: master
Refactor property writing + dev mode enhancements

42 files changed

modified.docker/Dockerfile-chain-devdiffbeforeafterboth
--- a/.docker/Dockerfile-chain-dev
+++ b/.docker/Dockerfile-chain-dev
@@ -21,7 +21,7 @@
 
 WORKDIR /dev_chain
 
-RUN cargo build --release
+RUN cargo build --profile integration-tests --features=${NETWORK}-runtime
 RUN echo "$NETWORK"
 
-CMD cargo run --release --features=${NETWORK}-runtime -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
+CMD cargo run --profile integration-tests --features=${NETWORK}-runtime -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
modified.docker/Dockerfile-uniquediffbeforeafterboth
--- a/.docker/Dockerfile-unique
+++ b/.docker/Dockerfile-unique
@@ -47,7 +47,7 @@
     --mount=type=cache,target=/unique_parachain/unique-chain/target \
     cd unique-chain && \
     echo "Using runtime features '$RUNTIME_FEATURES'" && \
-    CARGO_INCREMENTAL=0 cargo build --release --features="$RUNTIME_FEATURES" --locked && \
+    CARGO_INCREMENTAL=0 cargo build --profile integration-tests --features="$RUNTIME_FEATURES" --locked && \
     mv ./target/release/unique-collator /unique_parachain/unique-chain/ && \
     cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;
 
modified.docker/docker-compose.gov.j2diffbeforeafterboth
--- a/.docker/docker-compose.gov.j2
+++ b/.docker/docker-compose.gov.j2
@@ -21,4 +21,4 @@
       options:
         max-size: "1m"
         max-file: "3"
-    command: cargo run --release --features={{ NETWORK }}-runtime,gov-test-timings -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
+    command: cargo run --profile integration-tests --features={{ NETWORK }}-runtime,gov-test-timings -- --dev -linfo --rpc-cors=all --unsafe-rpc-external
modifiedCargo.tomldiffbeforeafterboth
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,6 +24,10 @@
 lto = true
 opt-level = 3
 
+[profile.integration-tests]
+inherits = "release"
+debug-assertions = true
+
 [workspace.dependencies]
 # Unique
 app-promotion-rpc = { path = "primitives/app_promotion_rpc", default-features = false }
modifiedMakefilediffbeforeafterboth
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,7 @@
 
 .PHONY: _bench
 _bench:
-	cargo run --release --features runtime-benchmarks,$(RUNTIME) -- \
+	cargo run --profile production --features runtime-benchmarks,$(RUNTIME) -- \
 	benchmark pallet --pallet pallet-$(if $(PALLET),$(PALLET),$(error Must set PALLET)) \
 	--wasm-execution compiled --extrinsic '*' \
 	$(if $(TEMPLATE),$(TEMPLATE),--template=.maintain/frame-weight-template.hbs) --steps=50 --repeat=80 --heap-pages=4096 \
modifiednode/cli/src/cli.rsdiffbeforeafterboth
--- a/node/cli/src/cli.rs
+++ b/node/cli/src/cli.rs
@@ -80,10 +80,20 @@
 	/// an empty block will be sealed automatically
 	/// after the `--idle-autoseal-interval` milliseconds.
 	///
-	/// The default interval is 500 milliseconds
+	/// The default interval is 500 milliseconds.
 	#[structopt(default_value = "500", long)]
 	pub idle_autoseal_interval: u64,
 
+	/// Disable auto-sealing blocks on new transactions in the `--dev` mode.
+	#[structopt(long)]
+	pub disable_autoseal_on_tx: bool,
+
+	/// Finalization delay (in seconds) of auto-sealed blocks in the `--dev` mode.
+	///
+	/// Disabled by default.
+	#[structopt(long)]
+	pub autoseal_finalization_delay: Option<u64>,
+
 	/// Disable automatic hardware benchmarks.
 	///
 	/// By default these benchmarks are automatically ran at startup and measure
modifiednode/cli/src/command.rsdiffbeforeafterboth
--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -62,7 +62,6 @@
 use sc_service::config::{BasePath, PrometheusConfig};
 use sp_core::hexdisplay::HexDisplay;
 use sp_runtime::traits::{AccountIdConversion, Block as BlockT};
-use std::{time::Duration};
 
 use up_common::types::opaque::{Block, RuntimeId};
 
@@ -480,15 +479,13 @@
 
 				if is_dev_service {
 					info!("Running Dev service");
-
-					let autoseal_interval = Duration::from_millis(cli.idle_autoseal_interval);
 
 					let mut config = config;
 
 					config.state_pruning = Some(sc_service::PruningMode::ArchiveAll);
 
 					return start_node_using_chain_runtime! {
-						start_dev_node(config, autoseal_interval).map_err(Into::into)
+						start_dev_node(config, cli.idle_autoseal_interval, cli.autoseal_finalization_delay, cli.disable_autoseal_on_tx).map_err(Into::into)
 					};
 				};
 
modifiednode/cli/src/service.rsdiffbeforeafterboth
--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -169,9 +169,9 @@
 }
 
 impl AutosealInterval {
-	pub fn new(config: &Configuration, interval: Duration) -> Self {
+	pub fn new(config: &Configuration, interval: u64) -> Self {
 		let _tokio_runtime = config.tokio_handle.enter();
-		let interval = tokio::time::interval(interval);
+		let interval = tokio::time::interval(Duration::from_millis(interval));
 
 		Self { interval }
 	}
@@ -885,7 +885,9 @@
 /// the parachain inherent
 pub fn start_dev_node<Runtime, RuntimeApi, ExecutorDispatch>(
 	config: Configuration,
-	autoseal_interval: Duration,
+	autoseal_interval: u64,
+	autoseal_finalize_delay: Option<u64>,
+	disable_autoseal_on_tx: bool,
 ) -> sc_service::error::Result<TaskManager>
 where
 	Runtime: RuntimeInstance + Send + Sync + 'static,
@@ -912,7 +914,10 @@
 		+ sp_consensus_aura::AuraApi<Block, AuraId>,
 	ExecutorDispatch: NativeExecutionDispatch + 'static,
 {
-	use sc_consensus_manual_seal::{run_manual_seal, EngineCommand, ManualSealParams};
+	use sc_consensus_manual_seal::{
+		run_manual_seal, run_delayed_finalize, EngineCommand, ManualSealParams,
+		DelayedFinalizeParams,
+	};
 	use fc_consensus::FrontierBlockImport;
 
 	let sc_service::PartialComponents {
@@ -980,20 +985,22 @@
 				.pool()
 				.validated_pool()
 				.import_notification_stream()
+				.filter(move |_| futures::future::ready(!disable_autoseal_on_tx))
 				.map(|_| EngineCommand::SealNewBlock {
 					create_empty: true,
-					finalize: false, // todo:collator finalize true
+					finalize: false,
 					parent_hash: None,
 					sender: None,
 				}),
 		);
 
 		let autoseal_interval = Box::pin(AutosealInterval::new(&config, autoseal_interval));
+
 		let idle_commands_stream: Box<
 			dyn Stream<Item = EngineCommand<Hash>> + Send + Sync + Unpin,
 		> = Box::new(autoseal_interval.map(|_| EngineCommand::SealNewBlock {
 			create_empty: true,
-			finalize: false, // todo:collator finalize true
+			finalize: false,
 			parent_hash: None,
 			sender: None,
 		}));
@@ -1003,6 +1010,20 @@
 		let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?;
 		let client_set_aside_for_cidp = client.clone();
 
+		if let Some(delay_sec) = autoseal_finalize_delay {
+			let spawn_handle = task_manager.spawn_handle();
+
+			task_manager.spawn_essential_handle().spawn_blocking(
+				"finalization_task",
+				Some("block-authoring"),
+				run_delayed_finalize(DelayedFinalizeParams {
+					client: client.clone(),
+					delay_sec,
+					spawn_handle,
+				}),
+			);
+		}
+
 		task_manager.spawn_essential_handle().spawn_blocking(
 			"authorship_task",
 			Some("block-authoring"),
modifiedpallets/app-promotion/src/weights.rsdiffbeforeafterboth
--- a/pallets/app-promotion/src/weights.rs
+++ b/pallets/app-promotion/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_app_promotion
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/app-promotion/src/weights.rs
 
@@ -48,25 +48,29 @@
 /// Weights for pallet_app_promotion using the Substrate node and recommended hardware.
 pub struct SubstrateWeight<T>(PhantomData<T>);
 impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+	/// Storage: Maintenance Enabled (r:1 w:0)
+	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
 	/// Storage: AppPromotion PendingUnstake (r:1 w:1)
 	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:3 w:3)
-	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
+	/// Storage: Balances Freezes (r:3 w:3)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: System Account (r:3 w:3)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:3 w:0)
+	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 3]`.
 	fn on_initialize(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `180 + b * (277 ±0)`
-		//  Estimated: `5602 + b * (6377 ±0)`
-		// Minimum execution time: 3_724_000 picoseconds.
-		Weight::from_parts(4_538_653, 5602)
-			// Standard Error: 14_774
-			.saturating_add(Weight::from_parts(10_368_686, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(1_u64))
-			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `222 + b * (285 ±0)`
+		//  Estimated: `3622 + b * (3774 ±0)`
+		// Minimum execution time: 4_107_000 picoseconds.
+		Weight::from_parts(4_751_973, 3622)
+			// Standard Error: 4_668
+			.saturating_add(Weight::from_parts(10_570_330, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(2_u64))
+			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 6377).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
 	}
 	/// Storage: AppPromotion Admin (r:0 w:1)
 	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
@@ -74,8 +78,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_426_000 picoseconds.
-		Weight::from_parts(6_149_000, 0)
+		// Minimum execution time: 3_459_000 picoseconds.
+		Weight::from_parts(3_627_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: AppPromotion Admin (r:1 w:0)
@@ -90,24 +94,26 @@
 	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
 	/// Storage: System Account (r:101 w:101)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:100 w:100)
+	/// Storage: Balances Freezes (r:100 w:100)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:100 w:0)
 	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// Storage: AppPromotion TotalStaked (r:1 w:1)
 	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
 	/// The range of component `b` is `[1, 100]`.
 	fn payout_stakers(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `531 + b * (633 ±0)`
-		//  Estimated: `16194 + b * (32560 ±0)`
-		// Minimum execution time: 84_632_000 picoseconds.
-		Weight::from_parts(800_384, 16194)
-			// Standard Error: 19_457
-			.saturating_add(Weight::from_parts(49_393_958, 0).saturating_mul(b.into()))
+		//  Measured:  `564 + b * (641 ±0)`
+		//  Estimated: `3593 + b * (25550 ±0)`
+		// Minimum execution time: 73_245_000 picoseconds.
+		Weight::from_parts(74_196_000, 3593)
+			// Standard Error: 8_231
+			.saturating_add(Weight::from_parts(49_090_053, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(7_u64))
-			.saturating_add(T::DbWeight::get().reads((12_u64).saturating_mul(b.into())))
+			.saturating_add(T::DbWeight::get().reads((13_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes(3_u64))
 			.saturating_add(T::DbWeight::get().writes((12_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 32560).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 25550).saturating_mul(b.into()))
 	}
 	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
@@ -115,7 +121,9 @@
 	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)
 	/// Storage: System Account (r:1 w:1)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:1 w:1)
+	/// Storage: Balances Freezes (r:1 w:1)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:1 w:0)
 	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// Storage: ParachainSystem ValidationData (r:1 w:0)
 	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)
@@ -125,11 +133,11 @@
 	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
 	fn stake() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `356`
-		//  Estimated: `20260`
-		// Minimum execution time: 24_750_000 picoseconds.
-		Weight::from_parts(25_157_000, 20260)
-			.saturating_add(T::DbWeight::get().reads(7_u64))
+		//  Measured:  `389`
+		//  Estimated: `4764`
+		// Minimum execution time: 21_088_000 picoseconds.
+		Weight::from_parts(21_639_000, 4764)
+			.saturating_add(T::DbWeight::get().reads(8_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
 	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
@@ -144,10 +152,10 @@
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
 	fn unstake_all() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `796`
-		//  Estimated: `35720`
-		// Minimum execution time: 53_670_000 picoseconds.
-		Weight::from_parts(54_376_000, 35720)
+		//  Measured:  `829`
+		//  Estimated: `29095`
+		// Minimum execution time: 42_086_000 picoseconds.
+		Weight::from_parts(43_149_000, 29095)
 			.saturating_add(T::DbWeight::get().reads(14_u64))
 			.saturating_add(T::DbWeight::get().writes(13_u64))
 	}
@@ -163,10 +171,10 @@
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
 	fn unstake_partial() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `796`
-		//  Estimated: `39234`
-		// Minimum execution time: 58_317_000 picoseconds.
-		Weight::from_parts(59_059_000, 39234)
+		//  Measured:  `829`
+		//  Estimated: `29095`
+		// Minimum execution time: 46_458_000 picoseconds.
+		Weight::from_parts(47_333_000, 29095)
 			.saturating_add(T::DbWeight::get().reads(15_u64))
 			.saturating_add(T::DbWeight::get().writes(13_u64))
 	}
@@ -176,10 +184,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn sponsor_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1027`
-		//  Estimated: `5842`
-		// Minimum execution time: 18_117_000 picoseconds.
-		Weight::from_parts(18_634_000, 5842)
+		//  Measured:  `1060`
+		//  Estimated: `4325`
+		// Minimum execution time: 12_827_000 picoseconds.
+		Weight::from_parts(13_610_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -189,10 +197,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn stop_sponsoring_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1059`
-		//  Estimated: `5842`
-		// Minimum execution time: 16_999_000 picoseconds.
-		Weight::from_parts(17_417_000, 5842)
+		//  Measured:  `1092`
+		//  Estimated: `4325`
+		// Minimum execution time: 11_899_000 picoseconds.
+		Weight::from_parts(12_303_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -204,8 +212,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `198`
 		//  Estimated: `1517`
-		// Minimum execution time: 14_438_000 picoseconds.
-		Weight::from_parts(14_931_000, 1517)
+		// Minimum execution time: 10_226_000 picoseconds.
+		Weight::from_parts(10_549_000, 1517)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -215,10 +223,10 @@
 	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)
 	fn stop_sponsoring_contract() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `363`
-		//  Estimated: `5044`
-		// Minimum execution time: 14_786_000 picoseconds.
-		Weight::from_parts(15_105_000, 5044)
+		//  Measured:  `396`
+		//  Estimated: `3527`
+		// Minimum execution time: 10_528_000 picoseconds.
+		Weight::from_parts(10_842_000, 3527)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -226,25 +234,29 @@
 
 // For backwards compatibility and tests
 impl WeightInfo for () {
+	/// Storage: Maintenance Enabled (r:1 w:0)
+	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
 	/// Storage: AppPromotion PendingUnstake (r:1 w:1)
 	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:3 w:3)
-	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
+	/// Storage: Balances Freezes (r:3 w:3)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: System Account (r:3 w:3)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:3 w:0)
+	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 3]`.
 	fn on_initialize(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `180 + b * (277 ±0)`
-		//  Estimated: `5602 + b * (6377 ±0)`
-		// Minimum execution time: 3_724_000 picoseconds.
-		Weight::from_parts(4_538_653, 5602)
-			// Standard Error: 14_774
-			.saturating_add(Weight::from_parts(10_368_686, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(1_u64))
-			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `222 + b * (285 ±0)`
+		//  Estimated: `3622 + b * (3774 ±0)`
+		// Minimum execution time: 4_107_000 picoseconds.
+		Weight::from_parts(4_751_973, 3622)
+			// Standard Error: 4_668
+			.saturating_add(Weight::from_parts(10_570_330, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
+			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 6377).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
 	}
 	/// Storage: AppPromotion Admin (r:0 w:1)
 	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
@@ -252,8 +264,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_426_000 picoseconds.
-		Weight::from_parts(6_149_000, 0)
+		// Minimum execution time: 3_459_000 picoseconds.
+		Weight::from_parts(3_627_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: AppPromotion Admin (r:1 w:0)
@@ -268,24 +280,26 @@
 	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
 	/// Storage: System Account (r:101 w:101)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:100 w:100)
+	/// Storage: Balances Freezes (r:100 w:100)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:100 w:0)
 	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// Storage: AppPromotion TotalStaked (r:1 w:1)
 	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
 	/// The range of component `b` is `[1, 100]`.
 	fn payout_stakers(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `531 + b * (633 ±0)`
-		//  Estimated: `16194 + b * (32560 ±0)`
-		// Minimum execution time: 84_632_000 picoseconds.
-		Weight::from_parts(800_384, 16194)
-			// Standard Error: 19_457
-			.saturating_add(Weight::from_parts(49_393_958, 0).saturating_mul(b.into()))
+		//  Measured:  `564 + b * (641 ±0)`
+		//  Estimated: `3593 + b * (25550 ±0)`
+		// Minimum execution time: 73_245_000 picoseconds.
+		Weight::from_parts(74_196_000, 3593)
+			// Standard Error: 8_231
+			.saturating_add(Weight::from_parts(49_090_053, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(7_u64))
-			.saturating_add(RocksDbWeight::get().reads((12_u64).saturating_mul(b.into())))
+			.saturating_add(RocksDbWeight::get().reads((13_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes(3_u64))
 			.saturating_add(RocksDbWeight::get().writes((12_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 32560).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 25550).saturating_mul(b.into()))
 	}
 	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
@@ -293,7 +307,9 @@
 	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)
 	/// Storage: System Account (r:1 w:1)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// Storage: Balances Locks (r:1 w:1)
+	/// Storage: Balances Freezes (r:1 w:1)
+	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: Balances Locks (r:1 w:0)
 	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
 	/// Storage: ParachainSystem ValidationData (r:1 w:0)
 	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)
@@ -303,11 +319,11 @@
 	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
 	fn stake() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `356`
-		//  Estimated: `20260`
-		// Minimum execution time: 24_750_000 picoseconds.
-		Weight::from_parts(25_157_000, 20260)
-			.saturating_add(RocksDbWeight::get().reads(7_u64))
+		//  Measured:  `389`
+		//  Estimated: `4764`
+		// Minimum execution time: 21_088_000 picoseconds.
+		Weight::from_parts(21_639_000, 4764)
+			.saturating_add(RocksDbWeight::get().reads(8_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
 	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)
@@ -322,10 +338,10 @@
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
 	fn unstake_all() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `796`
-		//  Estimated: `35720`
-		// Minimum execution time: 53_670_000 picoseconds.
-		Weight::from_parts(54_376_000, 35720)
+		//  Measured:  `829`
+		//  Estimated: `29095`
+		// Minimum execution time: 42_086_000 picoseconds.
+		Weight::from_parts(43_149_000, 29095)
 			.saturating_add(RocksDbWeight::get().reads(14_u64))
 			.saturating_add(RocksDbWeight::get().writes(13_u64))
 	}
@@ -341,10 +357,10 @@
 	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
 	fn unstake_partial() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `796`
-		//  Estimated: `39234`
-		// Minimum execution time: 58_317_000 picoseconds.
-		Weight::from_parts(59_059_000, 39234)
+		//  Measured:  `829`
+		//  Estimated: `29095`
+		// Minimum execution time: 46_458_000 picoseconds.
+		Weight::from_parts(47_333_000, 29095)
 			.saturating_add(RocksDbWeight::get().reads(15_u64))
 			.saturating_add(RocksDbWeight::get().writes(13_u64))
 	}
@@ -354,10 +370,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn sponsor_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1027`
-		//  Estimated: `5842`
-		// Minimum execution time: 18_117_000 picoseconds.
-		Weight::from_parts(18_634_000, 5842)
+		//  Measured:  `1060`
+		//  Estimated: `4325`
+		// Minimum execution time: 12_827_000 picoseconds.
+		Weight::from_parts(13_610_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -367,10 +383,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn stop_sponsoring_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1059`
-		//  Estimated: `5842`
-		// Minimum execution time: 16_999_000 picoseconds.
-		Weight::from_parts(17_417_000, 5842)
+		//  Measured:  `1092`
+		//  Estimated: `4325`
+		// Minimum execution time: 11_899_000 picoseconds.
+		Weight::from_parts(12_303_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -382,8 +398,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `198`
 		//  Estimated: `1517`
-		// Minimum execution time: 14_438_000 picoseconds.
-		Weight::from_parts(14_931_000, 1517)
+		// Minimum execution time: 10_226_000 picoseconds.
+		Weight::from_parts(10_549_000, 1517)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -393,10 +409,10 @@
 	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)
 	fn stop_sponsoring_contract() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `363`
-		//  Estimated: `5044`
-		// Minimum execution time: 14_786_000 picoseconds.
-		Weight::from_parts(15_105_000, 5044)
+		//  Measured:  `396`
+		//  Estimated: `3527`
+		// Minimum execution time: 10_528_000 picoseconds.
+		Weight::from_parts(10_842_000, 3527)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
modifiedpallets/balances-adapter/src/common.rsdiffbeforeafterboth
--- a/pallets/balances-adapter/src/common.rs
+++ b/pallets/balances-adapter/src/common.rs
@@ -172,6 +172,18 @@
 		fail!(<pallet_common::Error<T>>::UnsupportedOperation);
 	}
 
+	fn get_token_properties_raw(
+		&self,
+		_token_id: TokenId,
+	) -> Option<up_data_structs::TokenProperties> {
+		// No token properties are defined on fungibles
+		None
+	}
+
+	fn set_token_properties_raw(&self, _token_id: TokenId, _map: up_data_structs::TokenProperties) {
+		// No token properties are defined on fungibles
+	}
+
 	fn set_token_property_permissions(
 		&self,
 		_sender: &<T>::CrossAccountId,
@@ -277,6 +289,15 @@
 		Err(up_data_structs::TokenOwnerError::MultipleOwners)
 	}
 
+	fn check_token_indirect_owner(
+		&self,
+		_token: TokenId,
+		_maybe_owner: &<T>::CrossAccountId,
+		_nesting_budget: &dyn up_data_structs::budget::Budget,
+	) -> Result<bool, frame_support::sp_runtime::DispatchError> {
+		Ok(false)
+	}
+
 	fn token_owners(&self, _token: TokenId) -> Vec<<T>::CrossAccountId> {
 		vec![]
 	}
modifiedpallets/balances-adapter/src/erc.rsdiffbeforeafterboth
--- a/pallets/balances-adapter/src/erc.rs
+++ b/pallets/balances-adapter/src/erc.rs
@@ -25,7 +25,7 @@
 	}
 
 	fn approve(&mut self, _caller: Caller, _spender: Address, _amount: U256) -> Result<bool> {
-		Err("Approve not supported".into())
+		Err("approve not supported".into())
 	}
 
 	fn balance_of(&self, owner: Address) -> Result<U256> {
modifiedpallets/collator-selection/src/weights.rsdiffbeforeafterboth
--- a/pallets/collator-selection/src/weights.rs
+++ b/pallets/collator-selection/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_collator_selection
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/collator-selection/src/weights.rs
 
@@ -57,11 +57,11 @@
 	fn add_invulnerable(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `403 + b * (45 ±0)`
-		//  Estimated: `7485 + b * (45 ±0)`
-		// Minimum execution time: 14_147_000 picoseconds.
-		Weight::from_parts(15_313_627, 7485)
-			// Standard Error: 1_744
-			.saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))
+		//  Estimated: `3873 + b * (45 ±0)`
+		// Minimum execution time: 10_975_000 picoseconds.
+		Weight::from_parts(11_362_608, 3873)
+			// Standard Error: 411
+			.saturating_add(Weight::from_parts(152_014, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 			.saturating_add(Weight::from_parts(0, 45).saturating_mul(b.into()))
@@ -73,10 +73,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `96 + b * (32 ±0)`
 		//  Estimated: `1806`
-		// Minimum execution time: 9_426_000 picoseconds.
-		Weight::from_parts(9_693_408, 1806)
-			// Standard Error: 1_638
-			.saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))
+		// Minimum execution time: 6_369_000 picoseconds.
+		Weight::from_parts(6_604_933, 1806)
+			// Standard Error: 424
+			.saturating_add(Weight::from_parts(145_929, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -86,18 +86,20 @@
 	/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
 	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:1 w:0)
 	/// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// The range of component `c` is `[1, 9]`.
 	fn get_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `610 + c * (26 ±0)`
-		//  Estimated: `9099 + c * (28 ±0)`
-		// Minimum execution time: 22_741_000 picoseconds.
-		Weight::from_parts(24_210_604, 9099)
-			// Standard Error: 2_703
-			.saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))
-			.saturating_add(T::DbWeight::get().reads(3_u64))
-			.saturating_add(T::DbWeight::get().writes(1_u64))
-			.saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))
+		//  Measured:  `668 + c * (46 ±0)`
+		//  Estimated: `4131 + c * (47 ±0)`
+		// Minimum execution time: 23_857_000 picoseconds.
+		Weight::from_parts(25_984_655, 4131)
+			// Standard Error: 4_364
+			.saturating_add(Weight::from_parts(521_198, 0).saturating_mul(c.into()))
+			.saturating_add(T::DbWeight::get().reads(4_u64))
+			.saturating_add(T::DbWeight::get().writes(2_u64))
+			.saturating_add(Weight::from_parts(0, 47).saturating_mul(c.into()))
 	}
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:0)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
@@ -114,12 +116,12 @@
 	/// The range of component `c` is `[1, 7]`.
 	fn onboard(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `445 + c * (54 ±0)`
-		//  Estimated: `10119`
-		// Minimum execution time: 20_397_000 picoseconds.
-		Weight::from_parts(21_415_013, 10119)
-			// Standard Error: 4_086
-			.saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))
+		//  Measured:  `414 + c * (54 ±0)`
+		//  Estimated: `3529`
+		// Minimum execution time: 14_337_000 picoseconds.
+		Weight::from_parts(14_827_525, 3529)
+			// Standard Error: 1_210
+			.saturating_add(Weight::from_parts(298_748, 0).saturating_mul(c.into()))
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -127,15 +129,15 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn offboard(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `111 + c * (32 ±0)`
 		//  Estimated: `1806`
-		// Minimum execution time: 10_543_000 picoseconds.
-		Weight::from_parts(11_227_541, 1806)
-			// Standard Error: 1_699
-			.saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))
+		// Minimum execution time: 7_320_000 picoseconds.
+		Weight::from_parts(7_646_004, 1806)
+			// Standard Error: 479
+			.saturating_add(Weight::from_parts(160_089, 0).saturating_mul(c.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -143,37 +145,41 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn release_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `306 + c * (61 ±0)`
-		//  Estimated: `5335`
-		// Minimum execution time: 22_214_000 picoseconds.
-		Weight::from_parts(24_373_981, 5335)
-			// Standard Error: 8_018
-			.saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
-			.saturating_add(T::DbWeight::get().writes(3_u64))
+		//  Measured:  `328 + c * (103 ±0)`
+		//  Estimated: `3834`
+		// Minimum execution time: 22_821_000 picoseconds.
+		Weight::from_parts(23_668_202, 3834)
+			// Standard Error: 6_654
+			.saturating_add(Weight::from_parts(844_978, 0).saturating_mul(c.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
+			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
 	/// Storage: CollatorSelection Candidates (r:1 w:1)
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn force_release_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `306 + c * (61 ±0)`
-		//  Estimated: `5335`
-		// Minimum execution time: 22_159_000 picoseconds.
-		Weight::from_parts(24_200_796, 5335)
-			// Standard Error: 8_328
-			.saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
-			.saturating_add(T::DbWeight::get().writes(3_u64))
+		//  Measured:  `328 + c * (103 ±0)`
+		//  Estimated: `3834`
+		// Minimum execution time: 22_462_000 picoseconds.
+		Weight::from_parts(23_215_875, 3834)
+			// Standard Error: 6_450
+			.saturating_add(Weight::from_parts(830_887, 0).saturating_mul(c.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
+			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
 	/// Storage: System Account (r:2 w:2)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -184,9 +190,9 @@
 	fn note_author() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `155`
-		//  Estimated: `7729`
-		// Minimum execution time: 16_520_000 picoseconds.
-		Weight::from_parts(16_933_000, 7729)
+		//  Estimated: `6196`
+		// Minimum execution time: 17_624_000 picoseconds.
+		Weight::from_parts(18_025_000, 6196)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
@@ -194,32 +200,34 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
 	/// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
-	/// Storage: CollatorSelection LastAuthoredBlock (r:10 w:0)
+	/// Storage: CollatorSelection LastAuthoredBlock (r:8 w:0)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection Invulnerables (r:1 w:0)
 	/// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: System BlockWeight (r:1 w:1)
 	/// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
-	/// Storage: CollatorSelection LicenseDepositOf (r:9 w:9)
+	/// Storage: CollatorSelection LicenseDepositOf (r:7 w:7)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
-	/// Storage: System Account (r:10 w:10)
+	/// Storage: Balances Holds (r:7 w:7)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: System Account (r:8 w:8)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// The range of component `r` is `[1, 10]`.
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `r` is `[1, 8]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn new_session(r: u32, c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `562 + r * (190 ±0) + c * (83 ±0)`
-		//  Estimated: `91818518943723 + c * (2519 ±0) + r * (5142 ±1)`
-		// Minimum execution time: 16_153_000 picoseconds.
-		Weight::from_parts(16_601_000, 91818518943723)
-			// Standard Error: 119_095
-			.saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))
+		//  Measured:  `725 + c * (84 ±0) + r * (254 ±0)`
+		//  Estimated: `6196 + c * (2519 ±0) + r * (2844 ±0)`
+		// Minimum execution time: 11_318_000 picoseconds.
+		Weight::from_parts(11_615_000, 6196)
+			// Standard Error: 69_557
+			.saturating_add(Weight::from_parts(13_016_275, 0).saturating_mul(c.into()))
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into())))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into())))
 			.saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))
-			.saturating_add(Weight::from_parts(0, 5142).saturating_mul(r.into()))
+			.saturating_add(Weight::from_parts(0, 2844).saturating_mul(r.into()))
 	}
 }
 
@@ -235,11 +243,11 @@
 	fn add_invulnerable(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `403 + b * (45 ±0)`
-		//  Estimated: `7485 + b * (45 ±0)`
-		// Minimum execution time: 14_147_000 picoseconds.
-		Weight::from_parts(15_313_627, 7485)
-			// Standard Error: 1_744
-			.saturating_add(Weight::from_parts(178_890, 0).saturating_mul(b.into()))
+		//  Estimated: `3873 + b * (45 ±0)`
+		// Minimum execution time: 10_975_000 picoseconds.
+		Weight::from_parts(11_362_608, 3873)
+			// Standard Error: 411
+			.saturating_add(Weight::from_parts(152_014, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 			.saturating_add(Weight::from_parts(0, 45).saturating_mul(b.into()))
@@ -251,10 +259,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `96 + b * (32 ±0)`
 		//  Estimated: `1806`
-		// Minimum execution time: 9_426_000 picoseconds.
-		Weight::from_parts(9_693_408, 1806)
-			// Standard Error: 1_638
-			.saturating_add(Weight::from_parts(227_917, 0).saturating_mul(b.into()))
+		// Minimum execution time: 6_369_000 picoseconds.
+		Weight::from_parts(6_604_933, 1806)
+			// Standard Error: 424
+			.saturating_add(Weight::from_parts(145_929, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -264,18 +272,20 @@
 	/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
 	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:1 w:0)
 	/// Proof: Configuration CollatorSelectionLicenseBondOverride (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// The range of component `c` is `[1, 9]`.
 	fn get_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `610 + c * (26 ±0)`
-		//  Estimated: `9099 + c * (28 ±0)`
-		// Minimum execution time: 22_741_000 picoseconds.
-		Weight::from_parts(24_210_604, 9099)
-			// Standard Error: 2_703
-			.saturating_add(Weight::from_parts(255_686, 0).saturating_mul(c.into()))
-			.saturating_add(RocksDbWeight::get().reads(3_u64))
-			.saturating_add(RocksDbWeight::get().writes(1_u64))
-			.saturating_add(Weight::from_parts(0, 28).saturating_mul(c.into()))
+		//  Measured:  `668 + c * (46 ±0)`
+		//  Estimated: `4131 + c * (47 ±0)`
+		// Minimum execution time: 23_857_000 picoseconds.
+		Weight::from_parts(25_984_655, 4131)
+			// Standard Error: 4_364
+			.saturating_add(Weight::from_parts(521_198, 0).saturating_mul(c.into()))
+			.saturating_add(RocksDbWeight::get().reads(4_u64))
+			.saturating_add(RocksDbWeight::get().writes(2_u64))
+			.saturating_add(Weight::from_parts(0, 47).saturating_mul(c.into()))
 	}
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:0)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
@@ -292,12 +302,12 @@
 	/// The range of component `c` is `[1, 7]`.
 	fn onboard(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `445 + c * (54 ±0)`
-		//  Estimated: `10119`
-		// Minimum execution time: 20_397_000 picoseconds.
-		Weight::from_parts(21_415_013, 10119)
-			// Standard Error: 4_086
-			.saturating_add(Weight::from_parts(252_810, 0).saturating_mul(c.into()))
+		//  Measured:  `414 + c * (54 ±0)`
+		//  Estimated: `3529`
+		// Minimum execution time: 14_337_000 picoseconds.
+		Weight::from_parts(14_827_525, 3529)
+			// Standard Error: 1_210
+			.saturating_add(Weight::from_parts(298_748, 0).saturating_mul(c.into()))
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -305,15 +315,15 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn offboard(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `111 + c * (32 ±0)`
 		//  Estimated: `1806`
-		// Minimum execution time: 10_543_000 picoseconds.
-		Weight::from_parts(11_227_541, 1806)
-			// Standard Error: 1_699
-			.saturating_add(Weight::from_parts(181_030, 0).saturating_mul(c.into()))
+		// Minimum execution time: 7_320_000 picoseconds.
+		Weight::from_parts(7_646_004, 1806)
+			// Standard Error: 479
+			.saturating_add(Weight::from_parts(160_089, 0).saturating_mul(c.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -321,37 +331,41 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn release_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `306 + c * (61 ±0)`
-		//  Estimated: `5335`
-		// Minimum execution time: 22_214_000 picoseconds.
-		Weight::from_parts(24_373_981, 5335)
-			// Standard Error: 8_018
-			.saturating_add(Weight::from_parts(405_404, 0).saturating_mul(c.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
-			.saturating_add(RocksDbWeight::get().writes(3_u64))
+		//  Measured:  `328 + c * (103 ±0)`
+		//  Estimated: `3834`
+		// Minimum execution time: 22_821_000 picoseconds.
+		Weight::from_parts(23_668_202, 3834)
+			// Standard Error: 6_654
+			.saturating_add(Weight::from_parts(844_978, 0).saturating_mul(c.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
+			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
 	/// Storage: CollatorSelection Candidates (r:1 w:1)
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LicenseDepositOf (r:1 w:1)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
+	/// Storage: Balances Holds (r:1 w:1)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn force_release_license(c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `306 + c * (61 ±0)`
-		//  Estimated: `5335`
-		// Minimum execution time: 22_159_000 picoseconds.
-		Weight::from_parts(24_200_796, 5335)
-			// Standard Error: 8_328
-			.saturating_add(Weight::from_parts(312_138, 0).saturating_mul(c.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
-			.saturating_add(RocksDbWeight::get().writes(3_u64))
+		//  Measured:  `328 + c * (103 ±0)`
+		//  Estimated: `3834`
+		// Minimum execution time: 22_462_000 picoseconds.
+		Weight::from_parts(23_215_875, 3834)
+			// Standard Error: 6_450
+			.saturating_add(Weight::from_parts(830_887, 0).saturating_mul(c.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
+			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
 	/// Storage: System Account (r:2 w:2)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -362,9 +376,9 @@
 	fn note_author() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `155`
-		//  Estimated: `7729`
-		// Minimum execution time: 16_520_000 picoseconds.
-		Weight::from_parts(16_933_000, 7729)
+		//  Estimated: `6196`
+		// Minimum execution time: 17_624_000 picoseconds.
+		Weight::from_parts(18_025_000, 6196)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
@@ -372,32 +386,34 @@
 	/// Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:1 w:0)
 	/// Proof: Configuration CollatorSelectionKickThresholdOverride (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
-	/// Storage: CollatorSelection LastAuthoredBlock (r:10 w:0)
+	/// Storage: CollatorSelection LastAuthoredBlock (r:8 w:0)
 	/// Proof: CollatorSelection LastAuthoredBlock (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
 	/// Storage: CollatorSelection Invulnerables (r:1 w:0)
 	/// Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(321), added: 816, mode: MaxEncodedLen)
 	/// Storage: System BlockWeight (r:1 w:1)
 	/// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
-	/// Storage: CollatorSelection LicenseDepositOf (r:9 w:9)
+	/// Storage: CollatorSelection LicenseDepositOf (r:7 w:7)
 	/// Proof: CollatorSelection LicenseDepositOf (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
-	/// Storage: System Account (r:10 w:10)
+	/// Storage: Balances Holds (r:7 w:7)
+	/// Proof: Balances Holds (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)
+	/// Storage: System Account (r:8 w:8)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
-	/// The range of component `r` is `[1, 10]`.
-	/// The range of component `c` is `[1, 10]`.
+	/// The range of component `r` is `[1, 8]`.
+	/// The range of component `c` is `[1, 8]`.
 	fn new_session(r: u32, c: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `562 + r * (190 ±0) + c * (83 ±0)`
-		//  Estimated: `91818518943723 + c * (2519 ±0) + r * (5142 ±1)`
-		// Minimum execution time: 16_153_000 picoseconds.
-		Weight::from_parts(16_601_000, 91818518943723)
-			// Standard Error: 119_095
-			.saturating_add(Weight::from_parts(10_660_813, 0).saturating_mul(c.into()))
+		//  Measured:  `725 + c * (84 ±0) + r * (254 ±0)`
+		//  Estimated: `6196 + c * (2519 ±0) + r * (2844 ±0)`
+		// Minimum execution time: 11_318_000 picoseconds.
+		Weight::from_parts(11_615_000, 6196)
+			// Standard Error: 69_557
+			.saturating_add(Weight::from_parts(13_016_275, 0).saturating_mul(c.into()))
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(c.into())))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(c.into())))
 			.saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into()))
-			.saturating_add(Weight::from_parts(0, 5142).saturating_mul(r.into()))
+			.saturating_add(Weight::from_parts(0, 2844).saturating_mul(r.into()))
 	}
 }
 
modifiedpallets/common/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/common/src/benchmarking.rs
+++ b/pallets/common/src/benchmarking.rs
@@ -22,8 +22,9 @@
 use frame_benchmarking::{benchmarks, account};
 use up_data_structs::{
 	CollectionMode, CreateCollectionData, CollectionId, Property, PropertyKey, PropertyValue,
-	CollectionPermissions, NestingPermissions, AccessMode, MAX_COLLECTION_NAME_LENGTH,
-	MAX_COLLECTION_DESCRIPTION_LENGTH, MAX_TOKEN_PREFIX_LENGTH, MAX_PROPERTIES_PER_ITEM,
+	CollectionPermissions, NestingPermissions, AccessMode, PropertiesPermissionMap,
+	MAX_COLLECTION_NAME_LENGTH, MAX_COLLECTION_DESCRIPTION_LENGTH, MAX_TOKEN_PREFIX_LENGTH,
+	MAX_PROPERTIES_PER_ITEM,
 };
 use frame_support::{
 	traits::{Get, fungible::Balanced, Imbalance, tokens::Precision},
@@ -123,6 +124,16 @@
 	)
 }
 
+pub fn load_is_admin_and_property_permissions<T: Config>(
+	collection: &CollectionHandle<T>,
+	sender: &T::CrossAccountId,
+) -> (bool, PropertiesPermissionMap) {
+	(
+		collection.is_owner_or_admin(sender),
+		<Pallet<T>>::property_permissions(collection.id),
+	)
+}
+
 /// Helper macros, which handles all benchmarking preparation in semi-declarative way
 ///
 /// `name` is a substrate account
@@ -215,4 +226,12 @@
 		assert_eq!(collection_handle.permissions.access(), AccessMode::AllowList);
 
 	}: {collection_handle.check_allowlist(&sender)?;}
+
+	init_token_properties_common {
+		bench_init!{
+			owner: sub; collection: collection(owner);
+			sender: sub;
+			sender: cross_from_sub(sender);
+		};
+	}: {load_is_admin_and_property_permissions(&collection, &sender);}
 }
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -56,6 +56,7 @@
 use core::{
 	ops::{Deref, DerefMut},
 	slice::from_ref,
+	marker::PhantomData,
 };
 use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
 use sp_std::vec::Vec;
@@ -97,6 +98,9 @@
 pub mod helpers;
 #[allow(missing_docs)]
 pub mod weights;
+
+use weights::WeightInfo;
+
 /// Weight info.
 pub type SelfWeightOf<T> = <T as Config>::WeightInfo;
 
@@ -863,18 +867,6 @@
 		),
 		QueryKind = OptionQuery,
 	>;
-}
-
-/// Represents the change mode for the token property.
-pub enum SetPropertyMode {
-	/// The token already exists.
-	ExistingToken,
-
-	/// New token.
-	NewToken {
-		/// The creator of the token is the recipient.
-		mint_target_is_sender: bool,
-	},
 }
 
 /// Value representation with delayed initialization time.
@@ -892,19 +884,33 @@
 		}
 	}
 
-	/// Get the value. If it call furst time the value will be initialized.
+	/// Get the value. If it is called the first time, the value will be initialized.
 	pub fn value(&mut self) -> &T {
-		if self.value.is_none() {
-			self.value = Some(self.f.take().unwrap()())
-		}
+		self.compute_value_if_not_already();
+		self.value.as_ref().unwrap()
+	}
+
+	/// Get the value. If it is called the first time, the value will be initialized.
+	pub fn value_mut(&mut self) -> &mut T {
+		self.compute_value_if_not_already();
+		self.value.as_mut().unwrap()
+	}
 
-		self.value.as_ref().unwrap()
+	fn into_inner(mut self) -> T {
+		self.compute_value_if_not_already();
+		self.value.unwrap()
 	}
 
-	/// Is value initialized.
+	/// Is value initialized?
 	pub fn has_value(&self) -> bool {
 		self.value.is_some()
 	}
+
+	fn compute_value_if_not_already(&mut self) {
+		if self.value.is_none() {
+			self.value = Some(self.f.take().unwrap()())
+		}
+	}
 }
 
 fn check_token_permissions<T, FCA, FTO, FTE>(
@@ -926,10 +932,19 @@
 		fail!(<Error<T>>::NoPermission);
 	}
 
-	let token_certainly_exist = is_token_owner.has_value() && (*is_token_owner.value())?;
-	if !token_certainly_exist && !is_token_exist.value() {
-		fail!(<Error<T>>::TokenNotFound);
+	let token_exist_due_to_owner_check_success =
+		is_token_owner.has_value() && (*is_token_owner.value())?;
+
+	// If the token owner check has occurred and succeeded,
+	// we know the token exists (otherwise, the owner check must fail).
+	if !token_exist_due_to_owner_check_success {
+		// If the token owner check didn't occur,
+		// we must check the token's existence ourselves.
+		if !is_token_exist.value() {
+			fail!(<Error<T>>::TokenNotFound);
+		}
 	}
+
 	Ok(())
 }
 
@@ -1308,92 +1323,6 @@
 		}
 
 		<CollectionProperties<T>>::set(collection.id, stored_properties);
-
-		Ok(())
-	}
-
-	/// A batch operation to add, edit or remove properties for a token.
-	/// It sets or removes a token's properties according to
-	/// `properties_updates` contents:
-	/// * sets a property under the <key> with the value provided `(<key>, Some(<value>))`
-	/// * removes a property under the <key> if the value is `None` `(<key>, None)`.
-	///
-	/// All affected properties should have `mutable` permission
-	/// to be **deleted** or to be **set more than once**,
-	/// and the sender should have permission to edit those properties.
-	///
-	/// This function fires an event for each property change.
-	/// In case of an error, all the changes (including the events) will be reverted
-	/// since the function is transactional.
-	#[allow(clippy::too_many_arguments)]
-	pub fn modify_token_properties<FTO, FTE>(
-		collection: &CollectionHandle<T>,
-		sender: &T::CrossAccountId,
-		token_id: TokenId,
-		is_token_exist: &mut LazyValue<bool, FTE>,
-		properties_updates: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,
-		mut stored_properties: TokenProperties,
-		is_token_owner: &mut LazyValue<Result<bool, DispatchError>, FTO>,
-		set_token_properties: impl FnOnce(TokenProperties),
-		log: evm_coder::ethereum::Log,
-	) -> DispatchResult
-	where
-		FTO: FnOnce() -> Result<bool, DispatchError>,
-		FTE: FnOnce() -> bool,
-	{
-		let mut is_collection_admin = LazyValue::new(|| collection.is_owner_or_admin(sender));
-		let permissions = Self::property_permissions(collection.id);
-
-		let mut changed = false;
-		for (key, value) in properties_updates {
-			let permission = permissions
-				.get(&key)
-				.cloned()
-				.unwrap_or_else(PropertyPermission::none);
-
-			let property_exists = stored_properties.get(&key).is_some();
-
-			match permission {
-				PropertyPermission { mutable: false, .. } if property_exists => {
-					return Err(<Error<T>>::NoPermission.into());
-				}
-
-				PropertyPermission {
-					collection_admin,
-					token_owner,
-					..
-				} => check_token_permissions::<T, _, FTO, FTE>(
-					collection_admin,
-					token_owner,
-					&mut is_collection_admin,
-					is_token_owner,
-					is_token_exist,
-				)?,
-			}
-
-			match value {
-				Some(value) => {
-					stored_properties
-						.try_set(key.clone(), value)
-						.map_err(<Error<T>>::from)?;
-
-					Self::deposit_event(Event::TokenPropertySet(collection.id, token_id, key));
-				}
-				None => {
-					stored_properties.remove(&key).map_err(<Error<T>>::from)?;
-
-					Self::deposit_event(Event::TokenPropertyDeleted(collection.id, token_id, key));
-				}
-			}
-
-			changed = true;
-		}
-
-		if changed {
-			<PalletEvm<T>>::deposit_log(log);
-		}
-
-		set_token_properties(stored_properties);
 
 		Ok(())
 	}
@@ -2166,6 +2095,17 @@
 		budget: &dyn Budget,
 	) -> DispatchResultWithPostInfo;
 
+	/// Get token properties raw map.
+	///
+	/// * `token_id` - The token which properties are needed.
+	fn get_token_properties_raw(&self, token_id: TokenId) -> Option<TokenProperties>;
+
+	/// Set token properties raw map.
+	///
+	/// * `token_id` - The token for which the properties are being set.
+	/// * `map` - The raw map containing the token's properties.
+	fn set_token_properties_raw(&self, token_id: TokenId, map: TokenProperties);
+
 	/// Set token property permissions.
 	///
 	/// * `sender` - Must be either the owner of the token or its admin.
@@ -2309,6 +2249,18 @@
 	/// * `token` - The token for which you need to find out the owner.
 	fn token_owner(&self, token: TokenId) -> Result<T::CrossAccountId, TokenOwnerError>;
 
+	/// Checks if the `maybe_owner` is the indirect owner of the `token`.
+	///
+	/// * `token` - Id token to check.
+	/// * `maybe_owner` - The account to check.
+	/// * `nesting_budget` - A budget that can be spent on nesting tokens.
+	fn check_token_indirect_owner(
+		&self,
+		token: TokenId,
+		maybe_owner: &T::CrossAccountId,
+		nesting_budget: &dyn Budget,
+	) -> Result<bool, DispatchError>;
+
 	/// Returns 10 tokens owners in no particular order.
 	///
 	/// * `token` - The token for which you need to find out the owners.
@@ -2420,6 +2372,352 @@
 	}
 }
 
+/// A marker structure that enables the writer implementation
+/// to provide the interface to write properties to **newly created** tokens.
+pub struct NewTokenPropertyWriter;
+
+/// A marker structure that enables the writer implementation
+/// to provide the interface to write properties to **already existing** tokens.
+pub struct ExistingTokenPropertyWriter;
+
+/// The type-safe interface for writing properties (setting or deleting) to tokens.
+/// It has two distinct implementations for newly created tokens and existing ones.
+///
+/// This type utilizes the lazy evaluation to avoid repeating the computation
+/// of several performance-heavy or PoV-heavy tasks,
+/// such as checking the indirect ownership or reading the token property permissions.
+pub struct PropertyWriter<
+	'a,
+	T,
+	Handle,
+	WriterVariant,
+	FIsAdmin,
+	FPropertyPermissions,
+	FCheckTokenExist,
+	FGetProperties,
+> where
+	T: Config,
+	FIsAdmin: FnOnce() -> bool,
+	FPropertyPermissions: FnOnce() -> PropertiesPermissionMap,
+{
+	collection: &'a Handle,
+	is_collection_admin: LazyValue<bool, FIsAdmin>,
+	property_permissions: LazyValue<PropertiesPermissionMap, FPropertyPermissions>,
+	check_token_exist: FCheckTokenExist,
+	get_properties: FGetProperties,
+	_phantom: PhantomData<(T, WriterVariant)>,
+}
+
+impl<'a, T, Handle, FIsAdmin, FPropertyPermissions, FCheckTokenExist, FGetProperties>
+	PropertyWriter<
+		'a,
+		T,
+		Handle,
+		NewTokenPropertyWriter,
+		FIsAdmin,
+		FPropertyPermissions,
+		FCheckTokenExist,
+		FGetProperties,
+	> where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+	FIsAdmin: FnOnce() -> bool,
+	FPropertyPermissions: FnOnce() -> PropertiesPermissionMap,
+	FCheckTokenExist: Copy + FnOnce(TokenId) -> bool,
+	FGetProperties: Copy + FnOnce(TokenId) -> TokenProperties,
+{
+	/// A function to write properties to a **newly created** token.
+	pub fn write_token_properties(
+		&mut self,
+		mint_target_is_sender: bool,
+		token_id: TokenId,
+		properties_updates: impl Iterator<Item = Property>,
+		log: evm_coder::ethereum::Log,
+	) -> DispatchResult {
+		self.internal_write_token_properties(
+			token_id,
+			properties_updates.map(|p| (p.key, Some(p.value))),
+			|_| Ok(mint_target_is_sender),
+			log,
+		)
+	}
+}
+
+impl<'a, T, Handle, FIsAdmin, FPropertyPermissions, FCheckTokenExist, FGetProperties>
+	PropertyWriter<
+		'a,
+		T,
+		Handle,
+		ExistingTokenPropertyWriter,
+		FIsAdmin,
+		FPropertyPermissions,
+		FCheckTokenExist,
+		FGetProperties,
+	> where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+	FIsAdmin: FnOnce() -> bool,
+	FPropertyPermissions: FnOnce() -> PropertiesPermissionMap,
+	FCheckTokenExist: Copy + FnOnce(TokenId) -> bool,
+	FGetProperties: Copy + FnOnce(TokenId) -> TokenProperties,
+{
+	/// A function to write properties to an **already existing** token.
+	pub fn write_token_properties(
+		&mut self,
+		sender: &T::CrossAccountId,
+		token_id: TokenId,
+		properties_updates: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,
+		nesting_budget: &dyn Budget,
+		log: evm_coder::ethereum::Log,
+	) -> DispatchResult {
+		self.internal_write_token_properties(
+			token_id,
+			properties_updates,
+			|collection| collection.check_token_indirect_owner(token_id, sender, nesting_budget),
+			log,
+		)
+	}
+}
+
+impl<
+		'a,
+		T,
+		Handle,
+		WriterVariant,
+		FIsAdmin,
+		FPropertyPermissions,
+		FCheckTokenExist,
+		FGetProperties,
+	>
+	PropertyWriter<
+		'a,
+		T,
+		Handle,
+		WriterVariant,
+		FIsAdmin,
+		FPropertyPermissions,
+		FCheckTokenExist,
+		FGetProperties,
+	> where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+	FIsAdmin: FnOnce() -> bool,
+	FPropertyPermissions: FnOnce() -> PropertiesPermissionMap,
+	FCheckTokenExist: Copy + FnOnce(TokenId) -> bool,
+	FGetProperties: Copy + FnOnce(TokenId) -> TokenProperties,
+{
+	fn internal_write_token_properties<FCheckTokenOwner>(
+		&mut self,
+		token_id: TokenId,
+		properties_updates: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,
+		check_token_owner: FCheckTokenOwner,
+		log: evm_coder::ethereum::Log,
+	) -> DispatchResult
+	where
+		FCheckTokenOwner: FnOnce(&Handle) -> Result<bool, DispatchError>,
+	{
+		let get_properties = self.get_properties;
+		let mut stored_properties = LazyValue::new(move || get_properties(token_id));
+
+		let mut is_token_owner = LazyValue::new(|| check_token_owner(self.collection));
+
+		let check_token_exist = self.check_token_exist;
+		let mut is_token_exist = LazyValue::new(move || check_token_exist(token_id));
+
+		for (key, value) in properties_updates {
+			let permission = self
+				.property_permissions
+				.value()
+				.get(&key)
+				.cloned()
+				.unwrap_or_else(PropertyPermission::none);
+
+			match permission {
+				PropertyPermission { mutable: false, .. }
+					if stored_properties.value().get(&key).is_some() =>
+				{
+					return Err(<Error<T>>::NoPermission.into());
+				}
+
+				PropertyPermission {
+					collection_admin,
+					token_owner,
+					..
+				} => check_token_permissions::<T, _, _, _>(
+					collection_admin,
+					token_owner,
+					&mut self.is_collection_admin,
+					&mut is_token_owner,
+					&mut is_token_exist,
+				)?,
+			}
+
+			match value {
+				Some(value) => {
+					stored_properties
+						.value_mut()
+						.try_set(key.clone(), value)
+						.map_err(<Error<T>>::from)?;
+
+					<Pallet<T>>::deposit_event(Event::TokenPropertySet(
+						self.collection.id,
+						token_id,
+						key,
+					));
+				}
+				None => {
+					stored_properties
+						.value_mut()
+						.remove(&key)
+						.map_err(<Error<T>>::from)?;
+
+					<Pallet<T>>::deposit_event(Event::TokenPropertyDeleted(
+						self.collection.id,
+						token_id,
+						key,
+					));
+				}
+			}
+		}
+
+		let properties_changed = stored_properties.has_value();
+		if properties_changed {
+			<PalletEvm<T>>::deposit_log(log);
+
+			self.collection
+				.set_token_properties_raw(token_id, stored_properties.into_inner());
+		}
+
+		Ok(())
+	}
+}
+
+/// Create a [`PropertyWriter`] for newly created tokens.
+pub fn property_writer_for_new_token<'a, T, Handle>(
+	collection: &'a Handle,
+	sender: &'a T::CrossAccountId,
+) -> PropertyWriter<
+	'a,
+	T,
+	Handle,
+	NewTokenPropertyWriter,
+	impl FnOnce() -> bool + 'a,
+	impl FnOnce() -> PropertiesPermissionMap + 'a,
+	impl Copy + FnOnce(TokenId) -> bool + 'a,
+	impl Copy + FnOnce(TokenId) -> TokenProperties + 'a,
+>
+where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+{
+	PropertyWriter {
+		collection,
+		is_collection_admin: LazyValue::new(|| collection.is_owner_or_admin(sender)),
+		property_permissions: LazyValue::new(|| <Pallet<T>>::property_permissions(collection.id)),
+		check_token_exist: |token_id| {
+			debug_assert!(collection.token_exists(token_id));
+			true
+		},
+		get_properties: |token_id| {
+			debug_assert!(collection.get_token_properties_raw(token_id).is_none());
+			TokenProperties::new()
+		},
+		_phantom: PhantomData,
+	}
+}
+
+#[cfg(feature = "runtime-benchmarks")]
+/// Create a `PropertyWriter` with preloaded `is_collection_admin` and `property_permissions.
+/// Also:
+/// * it will return `true` for the token ownership check.
+/// * it will return empty stored properties without reading them from the storage.
+pub fn collection_info_loaded_property_writer<T, Handle>(
+	collection: &Handle,
+	is_collection_admin: bool,
+	property_permissions: PropertiesPermissionMap,
+) -> PropertyWriter<
+	T,
+	Handle,
+	NewTokenPropertyWriter,
+	impl FnOnce() -> bool,
+	impl FnOnce() -> PropertiesPermissionMap,
+	impl Copy + FnOnce(TokenId) -> bool,
+	impl Copy + FnOnce(TokenId) -> TokenProperties,
+>
+where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+{
+	PropertyWriter {
+		collection,
+		is_collection_admin: LazyValue::new(move || is_collection_admin),
+		property_permissions: LazyValue::new(move || property_permissions),
+		check_token_exist: |_token_id| true,
+		get_properties: |_token_id| TokenProperties::new(),
+		_phantom: PhantomData,
+	}
+}
+
+/// Create a [`PropertyWriter`] for already existing tokens.
+pub fn property_writer_for_existing_token<'a, T, Handle>(
+	collection: &'a Handle,
+	sender: &'a T::CrossAccountId,
+) -> PropertyWriter<
+	'a,
+	T,
+	Handle,
+	ExistingTokenPropertyWriter,
+	impl FnOnce() -> bool + 'a,
+	impl FnOnce() -> PropertiesPermissionMap + 'a,
+	impl Copy + FnOnce(TokenId) -> bool + 'a,
+	impl Copy + FnOnce(TokenId) -> TokenProperties + 'a,
+>
+where
+	T: Config,
+	Handle: CommonCollectionOperations<T> + Deref<Target = CollectionHandle<T>>,
+{
+	PropertyWriter {
+		collection,
+		is_collection_admin: LazyValue::new(|| collection.is_owner_or_admin(sender)),
+		property_permissions: LazyValue::new(|| <Pallet<T>>::property_permissions(collection.id)),
+		check_token_exist: |token_id| collection.token_exists(token_id),
+		get_properties: |token_id| {
+			collection
+				.get_token_properties_raw(token_id)
+				.unwrap_or_default()
+		},
+		_phantom: PhantomData,
+	}
+}
+
+/// Computes the weight delta for newly created tokens with properties.
+/// * `properties_nums` - The properties num of each created token.
+/// * `init_token_properties` - The function to obtain the weight from a token's properties num.
+pub fn init_token_properties_delta<T: Config, I: Fn(u32) -> Weight>(
+	properties_nums: impl Iterator<Item = u32>,
+	init_token_properties: I,
+) -> Weight {
+	let mut delta = properties_nums
+		.filter_map(|properties_num| {
+			if properties_num > 0 {
+				Some(init_token_properties(properties_num))
+			} else {
+				None
+			}
+		})
+		.fold(Weight::zero(), |a, b| a.saturating_add(b));
+
+	// If at least once the `init_token_properties` was called,
+	// it means at least one newly created token has properties.
+	// Becuase of that, some common collection data also was loaded and we need to add this weight.
+	// However, these common data was loaded only once which is guaranteed by the `PropertyWriter`.
+	if !delta.is_zero() {
+		delta = delta.saturating_add(<SelfWeightOf<T>>::init_token_properties_common())
+	}
+
+	delta
+}
+
 #[cfg(any(feature = "tests", test))]
 #[allow(missing_docs)]
 pub mod tests {
modifiedpallets/common/src/weights.rsdiffbeforeafterboth
--- a/pallets/common/src/weights.rs
+++ b/pallets/common/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_common
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/common/src/weights.rs
 
@@ -36,6 +36,7 @@
 	fn set_collection_properties(b: u32, ) -> Weight;
 	fn delete_collection_properties(b: u32, ) -> Weight;
 	fn check_accesslist() -> Weight;
+	fn init_token_properties_common() -> Weight;
 }
 
 /// Weights for pallet_common using the Substrate node and recommended hardware.
@@ -46,12 +47,12 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_collection_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `265`
+		//  Measured:  `298`
 		//  Estimated: `44457`
-		// Minimum execution time: 6_805_000 picoseconds.
-		Weight::from_parts(6_965_000, 44457)
-			// Standard Error: 20_175
-			.saturating_add(Weight::from_parts(6_191_369, 0).saturating_mul(b.into()))
+		// Minimum execution time: 4_987_000 picoseconds.
+		Weight::from_parts(5_119_000, 44457)
+			// Standard Error: 7_609
+			.saturating_add(Weight::from_parts(5_750_459, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -60,12 +61,12 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_collection_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `270 + b * (33030 ±0)`
+		//  Measured:  `303 + b * (33030 ±0)`
 		//  Estimated: `44457`
-		// Minimum execution time: 6_284_000 picoseconds.
-		Weight::from_parts(6_416_000, 44457)
-			// Standard Error: 81_929
-			.saturating_add(Weight::from_parts(23_972_425, 0).saturating_mul(b.into()))
+		// Minimum execution time: 4_923_000 picoseconds.
+		Weight::from_parts(5_074_000, 44457)
+			// Standard Error: 36_651
+			.saturating_add(Weight::from_parts(23_145_677, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -73,12 +74,24 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn check_accesslist() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `340`
+		//  Measured:  `373`
 		//  Estimated: `3535`
-		// Minimum execution time: 5_205_000 picoseconds.
-		Weight::from_parts(5_438_000, 3535)
+		// Minimum execution time: 4_271_000 picoseconds.
+		Weight::from_parts(4_461_000, 3535)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
+	/// Storage: Common IsAdmin (r:1 w:0)
+	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
+	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
+	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	fn init_token_properties_common() -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `326`
+		//  Estimated: `20191`
+		// Minimum execution time: 5_889_000 picoseconds.
+		Weight::from_parts(6_138_000, 20191)
+			.saturating_add(T::DbWeight::get().reads(2_u64))
+	}
 }
 
 // For backwards compatibility and tests
@@ -88,12 +101,12 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_collection_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `265`
+		//  Measured:  `298`
 		//  Estimated: `44457`
-		// Minimum execution time: 6_805_000 picoseconds.
-		Weight::from_parts(6_965_000, 44457)
-			// Standard Error: 20_175
-			.saturating_add(Weight::from_parts(6_191_369, 0).saturating_mul(b.into()))
+		// Minimum execution time: 4_987_000 picoseconds.
+		Weight::from_parts(5_119_000, 44457)
+			// Standard Error: 7_609
+			.saturating_add(Weight::from_parts(5_750_459, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -102,12 +115,12 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_collection_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `270 + b * (33030 ±0)`
+		//  Measured:  `303 + b * (33030 ±0)`
 		//  Estimated: `44457`
-		// Minimum execution time: 6_284_000 picoseconds.
-		Weight::from_parts(6_416_000, 44457)
-			// Standard Error: 81_929
-			.saturating_add(Weight::from_parts(23_972_425, 0).saturating_mul(b.into()))
+		// Minimum execution time: 4_923_000 picoseconds.
+		Weight::from_parts(5_074_000, 44457)
+			// Standard Error: 36_651
+			.saturating_add(Weight::from_parts(23_145_677, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -115,11 +128,23 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn check_accesslist() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `340`
+		//  Measured:  `373`
 		//  Estimated: `3535`
-		// Minimum execution time: 5_205_000 picoseconds.
-		Weight::from_parts(5_438_000, 3535)
+		// Minimum execution time: 4_271_000 picoseconds.
+		Weight::from_parts(4_461_000, 3535)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
+	/// Storage: Common IsAdmin (r:1 w:0)
+	/// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
+	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
+	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	fn init_token_properties_common() -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `326`
+		//  Estimated: `20191`
+		// Minimum execution time: 5_889_000 picoseconds.
+		Weight::from_parts(6_138_000, 20191)
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
+	}
 }
 
modifiedpallets/configuration/src/weights.rsdiffbeforeafterboth
--- a/pallets/configuration/src/weights.rs
+++ b/pallets/configuration/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_configuration
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/configuration/src/weights.rs
 
@@ -50,19 +50,23 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_725_000 picoseconds.
-		Weight::from_parts(1_853_000, 0)
+		// Minimum execution time: 990_000 picoseconds.
+		Weight::from_parts(1_090_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration MinGasPriceOverride (r:0 w:1)
 	/// Proof: Configuration MinGasPriceOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
+	/// Storage: unknown `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)
+	/// Proof Skipped: unknown `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)
+	/// Storage: unknown `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)
+	/// Proof Skipped: unknown `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)
 	fn set_min_gas_price_override() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_802_000 picoseconds.
-		Weight::from_parts(1_903_000, 0)
-			.saturating_add(T::DbWeight::get().writes(1_u64))
+		// Minimum execution time: 1_469_000 picoseconds.
+		Weight::from_parts(1_565_000, 0)
+			.saturating_add(T::DbWeight::get().writes(3_u64))
 	}
 	/// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)
 	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)
@@ -70,8 +74,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 2_048_000 picoseconds.
-		Weight::from_parts(2_157_000, 0)
+		// Minimum execution time: 1_027_000 picoseconds.
+		Weight::from_parts(1_098_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)
@@ -80,8 +84,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 7_622_000 picoseconds.
-		Weight::from_parts(8_014_000, 0)
+		// Minimum execution time: 4_149_000 picoseconds.
+		Weight::from_parts(4_326_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)
@@ -90,8 +94,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_981_000 picoseconds.
-		Weight::from_parts(5_811_000, 0)
+		// Minimum execution time: 2_758_000 picoseconds.
+		Weight::from_parts(2_911_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)
@@ -100,8 +104,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_664_000 picoseconds.
-		Weight::from_parts(4_816_000, 0)
+		// Minimum execution time: 2_695_000 picoseconds.
+		Weight::from_parts(2_829_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 }
@@ -114,19 +118,23 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_725_000 picoseconds.
-		Weight::from_parts(1_853_000, 0)
+		// Minimum execution time: 990_000 picoseconds.
+		Weight::from_parts(1_090_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration MinGasPriceOverride (r:0 w:1)
 	/// Proof: Configuration MinGasPriceOverride (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
+	/// Storage: unknown `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)
+	/// Proof Skipped: unknown `0xc1fef3b7207c11a52df13c12884e772609bc3a1e532c9cb85d57feed02cbff8e` (r:0 w:1)
+	/// Storage: unknown `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)
+	/// Proof Skipped: unknown `0xc1fef3b7207c11a52df13c12884e77263864ade243c642793ebcfe9e16f454ca` (r:0 w:1)
 	fn set_min_gas_price_override() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_802_000 picoseconds.
-		Weight::from_parts(1_903_000, 0)
-			.saturating_add(RocksDbWeight::get().writes(1_u64))
+		// Minimum execution time: 1_469_000 picoseconds.
+		Weight::from_parts(1_565_000, 0)
+			.saturating_add(RocksDbWeight::get().writes(3_u64))
 	}
 	/// Storage: Configuration AppPromomotionConfigurationOverride (r:0 w:1)
 	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)
@@ -134,8 +142,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 2_048_000 picoseconds.
-		Weight::from_parts(2_157_000, 0)
+		// Minimum execution time: 1_027_000 picoseconds.
+		Weight::from_parts(1_098_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionDesiredCollatorsOverride (r:0 w:1)
@@ -144,8 +152,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 7_622_000 picoseconds.
-		Weight::from_parts(8_014_000, 0)
+		// Minimum execution time: 4_149_000 picoseconds.
+		Weight::from_parts(4_326_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionLicenseBondOverride (r:0 w:1)
@@ -154,8 +162,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_981_000 picoseconds.
-		Weight::from_parts(5_811_000, 0)
+		// Minimum execution time: 2_758_000 picoseconds.
+		Weight::from_parts(2_911_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Configuration CollatorSelectionKickThresholdOverride (r:0 w:1)
@@ -164,8 +172,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_664_000 picoseconds.
-		Weight::from_parts(4_816_000, 0)
+		// Minimum execution time: 2_695_000 picoseconds.
+		Weight::from_parts(2_829_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 }
modifiedpallets/evm-migration/src/weights.rsdiffbeforeafterboth
--- a/pallets/evm-migration/src/weights.rs
+++ b/pallets/evm-migration/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_evm_migration
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/evm-migration/src/weights.rs
 
@@ -52,9 +52,9 @@
 	fn begin() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `94`
-		//  Estimated: `10646`
-		// Minimum execution time: 8_519_000 picoseconds.
-		Weight::from_parts(8_729_000, 10646)
+		//  Estimated: `3593`
+		// Minimum execution time: 6_131_000 picoseconds.
+		Weight::from_parts(6_351_000, 3593)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -66,11 +66,11 @@
 	fn set_data(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `96`
-		//  Estimated: `3590`
-		// Minimum execution time: 6_062_000 picoseconds.
-		Weight::from_parts(7_193_727, 3590)
-			// Standard Error: 1_844
-			.saturating_add(Weight::from_parts(876_826, 0).saturating_mul(b.into()))
+		//  Estimated: `3494`
+		// Minimum execution time: 4_522_000 picoseconds.
+		Weight::from_parts(4_569_839, 3494)
+			// Standard Error: 253
+			.saturating_add(Weight::from_parts(743_780, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))
 	}
@@ -79,12 +79,14 @@
 	/// Storage: EVM AccountCodes (r:0 w:1)
 	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)
 	/// The range of component `b` is `[0, 80]`.
-	fn finish(_b: u32, ) -> Weight {
+	fn finish(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `96`
-		//  Estimated: `3590`
-		// Minimum execution time: 7_452_000 picoseconds.
-		Weight::from_parts(8_531_888, 3590)
+		//  Estimated: `3494`
+		// Minimum execution time: 5_329_000 picoseconds.
+		Weight::from_parts(5_677_312, 3494)
+			// Standard Error: 22
+			.saturating_add(Weight::from_parts(1_369, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -93,20 +95,20 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_377_000 picoseconds.
-		Weight::from_parts(3_388_877, 0)
-			// Standard Error: 1_205
-			.saturating_add(Weight::from_parts(696_701, 0).saturating_mul(b.into()))
+		// Minimum execution time: 890_000 picoseconds.
+		Weight::from_parts(1_279_871, 0)
+			// Standard Error: 112
+			.saturating_add(Weight::from_parts(408_968, 0).saturating_mul(b.into()))
 	}
 	/// The range of component `b` is `[0, 200]`.
 	fn insert_events(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_671_000 picoseconds.
-		Weight::from_parts(4_402_497, 0)
-			// Standard Error: 723
-			.saturating_add(Weight::from_parts(1_338_678, 0).saturating_mul(b.into()))
+		// Minimum execution time: 896_000 picoseconds.
+		Weight::from_parts(1_975_680, 0)
+			// Standard Error: 117
+			.saturating_add(Weight::from_parts(1_003_721, 0).saturating_mul(b.into()))
 	}
 }
 
@@ -121,9 +123,9 @@
 	fn begin() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `94`
-		//  Estimated: `10646`
-		// Minimum execution time: 8_519_000 picoseconds.
-		Weight::from_parts(8_729_000, 10646)
+		//  Estimated: `3593`
+		// Minimum execution time: 6_131_000 picoseconds.
+		Weight::from_parts(6_351_000, 3593)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -135,11 +137,11 @@
 	fn set_data(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `96`
-		//  Estimated: `3590`
-		// Minimum execution time: 6_062_000 picoseconds.
-		Weight::from_parts(7_193_727, 3590)
-			// Standard Error: 1_844
-			.saturating_add(Weight::from_parts(876_826, 0).saturating_mul(b.into()))
+		//  Estimated: `3494`
+		// Minimum execution time: 4_522_000 picoseconds.
+		Weight::from_parts(4_569_839, 3494)
+			// Standard Error: 253
+			.saturating_add(Weight::from_parts(743_780, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(b.into())))
 	}
@@ -148,12 +150,14 @@
 	/// Storage: EVM AccountCodes (r:0 w:1)
 	/// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)
 	/// The range of component `b` is `[0, 80]`.
-	fn finish(_b: u32, ) -> Weight {
+	fn finish(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `96`
-		//  Estimated: `3590`
-		// Minimum execution time: 7_452_000 picoseconds.
-		Weight::from_parts(8_531_888, 3590)
+		//  Estimated: `3494`
+		// Minimum execution time: 5_329_000 picoseconds.
+		Weight::from_parts(5_677_312, 3494)
+			// Standard Error: 22
+			.saturating_add(Weight::from_parts(1_369, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -162,20 +166,20 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_377_000 picoseconds.
-		Weight::from_parts(3_388_877, 0)
-			// Standard Error: 1_205
-			.saturating_add(Weight::from_parts(696_701, 0).saturating_mul(b.into()))
+		// Minimum execution time: 890_000 picoseconds.
+		Weight::from_parts(1_279_871, 0)
+			// Standard Error: 112
+			.saturating_add(Weight::from_parts(408_968, 0).saturating_mul(b.into()))
 	}
 	/// The range of component `b` is `[0, 200]`.
 	fn insert_events(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 1_671_000 picoseconds.
-		Weight::from_parts(4_402_497, 0)
-			// Standard Error: 723
-			.saturating_add(Weight::from_parts(1_338_678, 0).saturating_mul(b.into()))
+		// Minimum execution time: 896_000 picoseconds.
+		Weight::from_parts(1_975_680, 0)
+			// Standard Error: 117
+			.saturating_add(Weight::from_parts(1_003_721, 0).saturating_mul(b.into()))
 	}
 }
 
modifiedpallets/foreign-assets/src/weights.rsdiffbeforeafterboth
--- a/pallets/foreign-assets/src/weights.rs
+++ b/pallets/foreign-assets/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_foreign_assets
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/foreign-assets/src/weights.rs
 
@@ -56,6 +56,8 @@
 	/// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
 	/// Storage: ForeignAssets AssetBinding (r:1 w:1)
 	/// Proof: ForeignAssets AssetBinding (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
+	/// Storage: Common AdminAmount (r:0 w:1)
+	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Common CollectionProperties (r:0 w:1)
@@ -65,11 +67,11 @@
 	fn register_foreign_asset() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `286`
-		//  Estimated: `25838`
-		// Minimum execution time: 37_778_000 picoseconds.
-		Weight::from_parts(38_334_000, 25838)
+		//  Estimated: `6196`
+		// Minimum execution time: 33_294_000 picoseconds.
+		Weight::from_parts(34_011_000, 6196)
 			.saturating_add(T::DbWeight::get().reads(9_u64))
-			.saturating_add(T::DbWeight::get().writes(11_u64))
+			.saturating_add(T::DbWeight::get().writes(12_u64))
 	}
 	/// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)
 	/// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
@@ -78,9 +80,9 @@
 	fn update_foreign_asset() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `197`
-		//  Estimated: `7615`
-		// Minimum execution time: 13_739_000 picoseconds.
-		Weight::from_parts(22_366_000, 7615)
+		//  Estimated: `4079`
+		// Minimum execution time: 9_296_000 picoseconds.
+		Weight::from_parts(9_594_000, 4079)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -104,6 +106,8 @@
 	/// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
 	/// Storage: ForeignAssets AssetBinding (r:1 w:1)
 	/// Proof: ForeignAssets AssetBinding (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
+	/// Storage: Common AdminAmount (r:0 w:1)
+	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Common CollectionProperties (r:0 w:1)
@@ -113,11 +117,11 @@
 	fn register_foreign_asset() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `286`
-		//  Estimated: `25838`
-		// Minimum execution time: 37_778_000 picoseconds.
-		Weight::from_parts(38_334_000, 25838)
+		//  Estimated: `6196`
+		// Minimum execution time: 33_294_000 picoseconds.
+		Weight::from_parts(34_011_000, 6196)
 			.saturating_add(RocksDbWeight::get().reads(9_u64))
-			.saturating_add(RocksDbWeight::get().writes(11_u64))
+			.saturating_add(RocksDbWeight::get().writes(12_u64))
 	}
 	/// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)
 	/// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)
@@ -126,9 +130,9 @@
 	fn update_foreign_asset() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `197`
-		//  Estimated: `7615`
-		// Minimum execution time: 13_739_000 picoseconds.
-		Weight::from_parts(22_366_000, 7615)
+		//  Estimated: `4079`
+		// Minimum execution time: 9_296_000 picoseconds.
+		Weight::from_parts(9_594_000, 4079)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
modifiedpallets/fungible/src/common.rsdiffbeforeafterboth
--- a/pallets/fungible/src/common.rs
+++ b/pallets/fungible/src/common.rs
@@ -25,7 +25,7 @@
 	weights::WeightInfo as _, SelfWeightOf as PalletCommonWeightOf,
 };
 use pallet_structure::Error as StructureError;
-use sp_runtime::ArithmeticError;
+use sp_runtime::{ArithmeticError, DispatchError};
 use sp_std::{vec::Vec, vec};
 use up_data_structs::{Property, PropertyKey, PropertyValue, PropertyKeyPermission};
 
@@ -364,6 +364,18 @@
 		fail!(<Error<T>>::SettingPropertiesNotAllowed)
 	}
 
+	fn get_token_properties_raw(
+		&self,
+		_token_id: TokenId,
+	) -> Option<up_data_structs::TokenProperties> {
+		// No token properties are defined on fungibles
+		None
+	}
+
+	fn set_token_properties_raw(&self, _token_id: TokenId, _map: up_data_structs::TokenProperties) {
+		// No token properties are defined on fungibles
+	}
+
 	fn check_nesting(
 		&self,
 		_sender: <T>::CrossAccountId,
@@ -402,6 +414,15 @@
 		Err(TokenOwnerError::MultipleOwners)
 	}
 
+	fn check_token_indirect_owner(
+		&self,
+		_token: TokenId,
+		_maybe_owner: &T::CrossAccountId,
+		_nesting_budget: &dyn Budget,
+	) -> Result<bool, DispatchError> {
+		Ok(false)
+	}
+
 	/// Returns 10 tokens owners in no particular order.
 	fn token_owners(&self, token: TokenId) -> Vec<T::CrossAccountId> {
 		<Pallet<T>>::token_owners(self.id, token).unwrap_or_default()
modifiedpallets/fungible/src/weights.rsdiffbeforeafterboth
--- a/pallets/fungible/src/weights.rs
+++ b/pallets/fungible/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_fungible
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/fungible/src/weights.rs
 
@@ -54,9 +54,9 @@
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `42`
-		//  Estimated: `7035`
-		// Minimum execution time: 10_168_000 picoseconds.
-		Weight::from_parts(10_453_000, 7035)
+		//  Estimated: `3542`
+		// Minimum execution time: 7_228_000 picoseconds.
+		Weight::from_parts(7_472_000, 3542)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -68,11 +68,11 @@
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `42`
-		//  Estimated: `4483 + b * (2552 ±0)`
-		// Minimum execution time: 3_248_000 picoseconds.
-		Weight::from_parts(12_455_981, 4483)
-			// Standard Error: 2_698
-			.saturating_add(Weight::from_parts(3_426_148, 0).saturating_mul(b.into()))
+		//  Estimated: `3493 + b * (2552 ±0)`
+		// Minimum execution time: 2_398_000 picoseconds.
+		Weight::from_parts(4_432_908, 3493)
+			// Standard Error: 263
+			.saturating_add(Weight::from_parts(2_617_422, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
@@ -86,9 +86,9 @@
 	fn burn_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `197`
-		//  Estimated: `7035`
-		// Minimum execution time: 12_717_000 picoseconds.
-		Weight::from_parts(13_031_000, 7035)
+		//  Estimated: `3542`
+		// Minimum execution time: 9_444_000 picoseconds.
+		Weight::from_parts(9_742_000, 3542)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -98,8 +98,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `182`
 		//  Estimated: `6094`
-		// Minimum execution time: 13_640_000 picoseconds.
-		Weight::from_parts(13_935_000, 6094)
+		// Minimum execution time: 9_553_000 picoseconds.
+		Weight::from_parts(9_852_000, 6094)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -111,8 +111,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `182`
 		//  Estimated: `3542`
-		// Minimum execution time: 11_769_000 picoseconds.
-		Weight::from_parts(12_072_000, 3542)
+		// Minimum execution time: 8_435_000 picoseconds.
+		Weight::from_parts(8_714_000, 3542)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -124,8 +124,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `170`
 		//  Estimated: `3542`
-		// Minimum execution time: 11_603_000 picoseconds.
-		Weight::from_parts(12_003_000, 3542)
+		// Minimum execution time: 8_475_000 picoseconds.
+		Weight::from_parts(8_735_000, 3542)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -135,8 +135,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `210`
 		//  Estimated: `3558`
-		// Minimum execution time: 5_682_000 picoseconds.
-		Weight::from_parts(5_892_000, 3558)
+		// Minimum execution time: 4_426_000 picoseconds.
+		Weight::from_parts(4_604_000, 3558)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: Fungible Allowance (r:0 w:1)
@@ -145,8 +145,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_415_000 picoseconds.
-		Weight::from_parts(6_599_000, 0)
+		// Minimum execution time: 4_130_000 picoseconds.
+		Weight::from_parts(4_275_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Fungible Allowance (r:1 w:1)
@@ -158,9 +158,9 @@
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `315`
-		//  Estimated: `10593`
-		// Minimum execution time: 20_257_000 picoseconds.
-		Weight::from_parts(20_625_000, 10593)
+		//  Estimated: `3558`
+		// Minimum execution time: 14_878_000 picoseconds.
+		Weight::from_parts(15_263_000, 3558)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(3_u64))
 	}
@@ -175,9 +175,9 @@
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `42`
-		//  Estimated: `7035`
-		// Minimum execution time: 10_168_000 picoseconds.
-		Weight::from_parts(10_453_000, 7035)
+		//  Estimated: `3542`
+		// Minimum execution time: 7_228_000 picoseconds.
+		Weight::from_parts(7_472_000, 3542)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -189,11 +189,11 @@
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `42`
-		//  Estimated: `4483 + b * (2552 ±0)`
-		// Minimum execution time: 3_248_000 picoseconds.
-		Weight::from_parts(12_455_981, 4483)
-			// Standard Error: 2_698
-			.saturating_add(Weight::from_parts(3_426_148, 0).saturating_mul(b.into()))
+		//  Estimated: `3493 + b * (2552 ±0)`
+		// Minimum execution time: 2_398_000 picoseconds.
+		Weight::from_parts(4_432_908, 3493)
+			// Standard Error: 263
+			.saturating_add(Weight::from_parts(2_617_422, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
@@ -207,9 +207,9 @@
 	fn burn_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `197`
-		//  Estimated: `7035`
-		// Minimum execution time: 12_717_000 picoseconds.
-		Weight::from_parts(13_031_000, 7035)
+		//  Estimated: `3542`
+		// Minimum execution time: 9_444_000 picoseconds.
+		Weight::from_parts(9_742_000, 3542)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -219,8 +219,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `182`
 		//  Estimated: `6094`
-		// Minimum execution time: 13_640_000 picoseconds.
-		Weight::from_parts(13_935_000, 6094)
+		// Minimum execution time: 9_553_000 picoseconds.
+		Weight::from_parts(9_852_000, 6094)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -232,8 +232,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `182`
 		//  Estimated: `3542`
-		// Minimum execution time: 11_769_000 picoseconds.
-		Weight::from_parts(12_072_000, 3542)
+		// Minimum execution time: 8_435_000 picoseconds.
+		Weight::from_parts(8_714_000, 3542)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -245,8 +245,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `170`
 		//  Estimated: `3542`
-		// Minimum execution time: 11_603_000 picoseconds.
-		Weight::from_parts(12_003_000, 3542)
+		// Minimum execution time: 8_475_000 picoseconds.
+		Weight::from_parts(8_735_000, 3542)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -256,8 +256,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `210`
 		//  Estimated: `3558`
-		// Minimum execution time: 5_682_000 picoseconds.
-		Weight::from_parts(5_892_000, 3558)
+		// Minimum execution time: 4_426_000 picoseconds.
+		Weight::from_parts(4_604_000, 3558)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
 	/// Storage: Fungible Allowance (r:0 w:1)
@@ -266,8 +266,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_415_000 picoseconds.
-		Weight::from_parts(6_599_000, 0)
+		// Minimum execution time: 4_130_000 picoseconds.
+		Weight::from_parts(4_275_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Fungible Allowance (r:1 w:1)
@@ -279,9 +279,9 @@
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `315`
-		//  Estimated: `10593`
-		// Minimum execution time: 20_257_000 picoseconds.
-		Weight::from_parts(20_625_000, 10593)
+		//  Estimated: `3558`
+		// Minimum execution time: 14_878_000 picoseconds.
+		Weight::from_parts(15_263_000, 3558)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(3_u64))
 	}
modifiedpallets/identity/src/weights.rsdiffbeforeafterboth
--- a/pallets/identity/src/weights.rs
+++ b/pallets/identity/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_identity
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-27, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/identity/src/weights.rs
 
@@ -64,10 +64,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `31 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 9_094_000 picoseconds.
-		Weight::from_parts(10_431_627, 2626)
-			// Standard Error: 1_046
-			.saturating_add(Weight::from_parts(99_468, 0).saturating_mul(r.into()))
+		// Minimum execution time: 6_759_000 picoseconds.
+		Weight::from_parts(7_254_560, 2626)
+			// Standard Error: 231
+			.saturating_add(Weight::from_parts(64_513, 0).saturating_mul(r.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -79,12 +79,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `441 + r * (5 ±0)`
 		//  Estimated: `11003`
-		// Minimum execution time: 18_662_000 picoseconds.
-		Weight::from_parts(17_939_760, 11003)
-			// Standard Error: 2_371
-			.saturating_add(Weight::from_parts(22_184, 0).saturating_mul(r.into()))
-			// Standard Error: 462
-			.saturating_add(Weight::from_parts(151_368, 0).saturating_mul(x.into()))
+		// Minimum execution time: 14_134_000 picoseconds.
+		Weight::from_parts(12_591_985, 11003)
+			// Standard Error: 562
+			.saturating_add(Weight::from_parts(77_682, 0).saturating_mul(r.into()))
+			// Standard Error: 109
+			.saturating_add(Weight::from_parts(96_303, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -98,11 +98,11 @@
 	fn set_subs_new(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `100`
-		//  Estimated: `18716 + s * (2589 ±0)`
-		// Minimum execution time: 6_921_000 picoseconds.
-		Weight::from_parts(16_118_195, 18716)
-			// Standard Error: 1_786
-			.saturating_add(Weight::from_parts(1_350_155, 0).saturating_mul(s.into()))
+		//  Estimated: `11003 + s * (2589 ±0)`
+		// Minimum execution time: 4_763_000 picoseconds.
+		Weight::from_parts(11_344_974, 11003)
+			// Standard Error: 401
+			.saturating_add(Weight::from_parts(1_141_028, 0).saturating_mul(s.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
@@ -119,11 +119,11 @@
 	fn set_subs_old(p: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `193 + p * (32 ±0)`
-		//  Estimated: `17726`
-		// Minimum execution time: 6_858_000 picoseconds.
-		Weight::from_parts(16_222_054, 17726)
-			// Standard Error: 1_409
-			.saturating_add(Weight::from_parts(593_588, 0).saturating_mul(p.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 4_783_000 picoseconds.
+		Weight::from_parts(11_531_027, 11003)
+			// Standard Error: 369
+			.saturating_add(Weight::from_parts(542_102, 0).saturating_mul(p.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
@@ -140,15 +140,15 @@
 	fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
-		//  Estimated: `17726`
-		// Minimum execution time: 27_212_000 picoseconds.
-		Weight::from_parts(19_030_840, 17726)
-			// Standard Error: 3_118
-			.saturating_add(Weight::from_parts(29_836, 0).saturating_mul(r.into()))
-			// Standard Error: 608
-			.saturating_add(Weight::from_parts(590_661, 0).saturating_mul(s.into()))
-			// Standard Error: 608
-			.saturating_add(Weight::from_parts(110_108, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 23_175_000 picoseconds.
+		Weight::from_parts(16_503_215, 11003)
+			// Standard Error: 625
+			.saturating_add(Weight::from_parts(1_175, 0).saturating_mul(r.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(533_184, 0).saturating_mul(s.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(94_600, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -162,13 +162,13 @@
 	fn request_judgement(r: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `366 + r * (57 ±0) + x * (66 ±0)`
-		//  Estimated: `13629`
-		// Minimum execution time: 19_771_000 picoseconds.
-		Weight::from_parts(18_917_892, 13629)
-			// Standard Error: 1_957
-			.saturating_add(Weight::from_parts(57_465, 0).saturating_mul(r.into()))
-			// Standard Error: 381
-			.saturating_add(Weight::from_parts(168_586, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 15_322_000 picoseconds.
+		Weight::from_parts(13_671_670, 11003)
+			// Standard Error: 722
+			.saturating_add(Weight::from_parts(73_665, 0).saturating_mul(r.into()))
+			// Standard Error: 140
+			.saturating_add(Weight::from_parts(124_598, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -180,12 +180,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `397 + x * (66 ±0)`
 		//  Estimated: `11003`
-		// Minimum execution time: 17_411_000 picoseconds.
-		Weight::from_parts(16_856_331, 11003)
-			// Standard Error: 7_002
-			.saturating_add(Weight::from_parts(34_389, 0).saturating_mul(r.into()))
-			// Standard Error: 1_366
-			.saturating_add(Weight::from_parts(165_686, 0).saturating_mul(x.into()))
+		// Minimum execution time: 13_268_000 picoseconds.
+		Weight::from_parts(12_489_352, 11003)
+			// Standard Error: 544
+			.saturating_add(Weight::from_parts(35_424, 0).saturating_mul(r.into()))
+			// Standard Error: 106
+			.saturating_add(Weight::from_parts(123_149, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -196,10 +196,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 7_089_000 picoseconds.
-		Weight::from_parts(7_750_487, 2626)
-			// Standard Error: 1_625
-			.saturating_add(Weight::from_parts(101_135, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_845_000 picoseconds.
+		Weight::from_parts(5_147_478, 2626)
+			// Standard Error: 169
+			.saturating_add(Weight::from_parts(55_561, 0).saturating_mul(r.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -210,10 +210,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 6_300_000 picoseconds.
-		Weight::from_parts(6_836_140, 2626)
-			// Standard Error: 655
-			.saturating_add(Weight::from_parts(102_284, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_191_000 picoseconds.
+		Weight::from_parts(4_478_351, 2626)
+			// Standard Error: 138
+			.saturating_add(Weight::from_parts(53_627, 0).saturating_mul(r.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -224,10 +224,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 6_257_000 picoseconds.
-		Weight::from_parts(6_917_052, 2626)
-			// Standard Error: 2_628
-			.saturating_add(Weight::from_parts(71_362, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_003_000 picoseconds.
+		Weight::from_parts(4_303_365, 2626)
+			// Standard Error: 147
+			.saturating_add(Weight::from_parts(52_472, 0).saturating_mul(r.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -240,13 +240,13 @@
 	fn provide_judgement(r: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `444 + r * (57 ±0) + x * (66 ±0)`
-		//  Estimated: `13629`
-		// Minimum execution time: 16_021_000 picoseconds.
-		Weight::from_parts(15_553_670, 13629)
-			// Standard Error: 5_797
-			.saturating_add(Weight::from_parts(42_423, 0).saturating_mul(r.into()))
-			// Standard Error: 1_072
-			.saturating_add(Weight::from_parts(252_721, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 11_465_000 picoseconds.
+		Weight::from_parts(10_326_049, 11003)
+			// Standard Error: 660
+			.saturating_add(Weight::from_parts(48_922, 0).saturating_mul(r.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(185_374, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -264,15 +264,15 @@
 	fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `665 + r * (12 ±0) + s * (32 ±0) + x * (66 ±0)`
-		//  Estimated: `23922`
-		// Minimum execution time: 40_801_000 picoseconds.
-		Weight::from_parts(34_079_397, 23922)
-			// Standard Error: 3_750
-			.saturating_add(Weight::from_parts(31_496, 0).saturating_mul(r.into()))
-			// Standard Error: 732
-			.saturating_add(Weight::from_parts(599_691, 0).saturating_mul(s.into()))
-			// Standard Error: 732
-			.saturating_add(Weight::from_parts(101_683, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 34_933_000 picoseconds.
+		Weight::from_parts(28_994_022, 11003)
+			// Standard Error: 668
+			.saturating_add(Weight::from_parts(21_722, 0).saturating_mul(r.into()))
+			// Standard Error: 130
+			.saturating_add(Weight::from_parts(540_580, 0).saturating_mul(s.into()))
+			// Standard Error: 130
+			.saturating_add(Weight::from_parts(89_348, 0).saturating_mul(x.into()))
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -285,12 +285,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_412_000 picoseconds.
-		Weight::from_parts(4_592_000, 0)
-			// Standard Error: 703_509
-			.saturating_add(Weight::from_parts(43_647_925, 0).saturating_mul(x.into()))
-			// Standard Error: 117_043
-			.saturating_add(Weight::from_parts(9_312_431, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_770_000 picoseconds.
+		Weight::from_parts(2_875_000, 0)
+			// Standard Error: 281_295
+			.saturating_add(Weight::from_parts(37_513_186, 0).saturating_mul(x.into()))
+			// Standard Error: 46_799
+			.saturating_add(Weight::from_parts(7_949_936, 0).saturating_mul(n.into()))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
 	}
 	/// Storage: Identity SubsOf (r:600 w:0)
@@ -303,12 +303,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `41`
 		//  Estimated: `990 + n * (5733 ±0)`
-		// Minimum execution time: 3_824_000 picoseconds.
-		Weight::from_parts(3_950_000, 990)
-			// Standard Error: 2_864
-			.saturating_add(Weight::from_parts(55_678, 0).saturating_mul(x.into()))
-			// Standard Error: 476
-			.saturating_add(Weight::from_parts(1_138_349, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_751_000 picoseconds.
+		Weight::from_parts(2_862_000, 990)
+			// Standard Error: 953
+			.saturating_add(Weight::from_parts(28_947, 0).saturating_mul(x.into()))
+			// Standard Error: 158
+			.saturating_add(Weight::from_parts(994_085, 0).saturating_mul(n.into()))
 			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
 			.saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))
@@ -323,12 +323,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `41`
 		//  Estimated: `990 + n * (5733 ±0)`
-		// Minimum execution time: 4_196_000 picoseconds.
-		Weight::from_parts(4_340_000, 990)
-			// Standard Error: 2_081_979
-			.saturating_add(Weight::from_parts(130_653_903, 0).saturating_mul(s.into()))
-			// Standard Error: 346_381
-			.saturating_add(Weight::from_parts(23_046_001, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_671_000 picoseconds.
+		Weight::from_parts(2_814_000, 990)
+			// Standard Error: 785_159
+			.saturating_add(Weight::from_parts(109_659_566, 0).saturating_mul(s.into()))
+			// Standard Error: 130_628
+			.saturating_add(Weight::from_parts(19_169_269, 0).saturating_mul(n.into()))
 			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
 			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
@@ -344,11 +344,11 @@
 	fn add_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `474 + s * (36 ±0)`
-		//  Estimated: `21305`
-		// Minimum execution time: 15_289_000 picoseconds.
-		Weight::from_parts(21_319_844, 21305)
-			// Standard Error: 893
-			.saturating_add(Weight::from_parts(53_159, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 12_571_000 picoseconds.
+		Weight::from_parts(16_366_301, 11003)
+			// Standard Error: 217
+			.saturating_add(Weight::from_parts(42_542, 0).saturating_mul(s.into()))
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -360,11 +360,11 @@
 	fn rename_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `590 + s * (3 ±0)`
-		//  Estimated: `14582`
-		// Minimum execution time: 9_867_000 picoseconds.
-		Weight::from_parts(12_546_245, 14582)
-			// Standard Error: 509
-			.saturating_add(Weight::from_parts(10_078, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 7_278_000 picoseconds.
+		Weight::from_parts(9_227_799, 11003)
+			// Standard Error: 104
+			.saturating_add(Weight::from_parts(14_014, 0).saturating_mul(s.into()))
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -378,11 +378,11 @@
 	fn remove_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `637 + s * (35 ±0)`
-		//  Estimated: `21305`
-		// Minimum execution time: 19_299_000 picoseconds.
-		Weight::from_parts(24_125_576, 21305)
-			// Standard Error: 1_479
-			.saturating_add(Weight::from_parts(22_611, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 15_771_000 picoseconds.
+		Weight::from_parts(18_105_475, 11003)
+			// Standard Error: 129
+			.saturating_add(Weight::from_parts(32_074, 0).saturating_mul(s.into()))
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -390,16 +390,18 @@
 	/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
 	/// Storage: Identity SubsOf (r:1 w:1)
 	/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
+	/// Storage: System Account (r:1 w:0)
+	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
 	/// The range of component `s` is `[0, 99]`.
 	fn quit_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `563 + s * (37 ±0)`
-		//  Estimated: `10302`
-		// Minimum execution time: 14_183_000 picoseconds.
-		Weight::from_parts(17_343_547, 10302)
-			// Standard Error: 454
-			.saturating_add(Weight::from_parts(45_925, 0).saturating_mul(s.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
+		//  Measured:  `703 + s * (37 ±0)`
+		//  Estimated: `6723`
+		// Minimum execution time: 14_093_000 picoseconds.
+		Weight::from_parts(16_125_177, 6723)
+			// Standard Error: 146
+			.saturating_add(Weight::from_parts(39_270, 0).saturating_mul(s.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
 }
@@ -413,10 +415,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `31 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 9_094_000 picoseconds.
-		Weight::from_parts(10_431_627, 2626)
-			// Standard Error: 1_046
-			.saturating_add(Weight::from_parts(99_468, 0).saturating_mul(r.into()))
+		// Minimum execution time: 6_759_000 picoseconds.
+		Weight::from_parts(7_254_560, 2626)
+			// Standard Error: 231
+			.saturating_add(Weight::from_parts(64_513, 0).saturating_mul(r.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -428,12 +430,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `441 + r * (5 ±0)`
 		//  Estimated: `11003`
-		// Minimum execution time: 18_662_000 picoseconds.
-		Weight::from_parts(17_939_760, 11003)
-			// Standard Error: 2_371
-			.saturating_add(Weight::from_parts(22_184, 0).saturating_mul(r.into()))
-			// Standard Error: 462
-			.saturating_add(Weight::from_parts(151_368, 0).saturating_mul(x.into()))
+		// Minimum execution time: 14_134_000 picoseconds.
+		Weight::from_parts(12_591_985, 11003)
+			// Standard Error: 562
+			.saturating_add(Weight::from_parts(77_682, 0).saturating_mul(r.into()))
+			// Standard Error: 109
+			.saturating_add(Weight::from_parts(96_303, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -447,11 +449,11 @@
 	fn set_subs_new(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `100`
-		//  Estimated: `18716 + s * (2589 ±0)`
-		// Minimum execution time: 6_921_000 picoseconds.
-		Weight::from_parts(16_118_195, 18716)
-			// Standard Error: 1_786
-			.saturating_add(Weight::from_parts(1_350_155, 0).saturating_mul(s.into()))
+		//  Estimated: `11003 + s * (2589 ±0)`
+		// Minimum execution time: 4_763_000 picoseconds.
+		Weight::from_parts(11_344_974, 11003)
+			// Standard Error: 401
+			.saturating_add(Weight::from_parts(1_141_028, 0).saturating_mul(s.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
@@ -468,11 +470,11 @@
 	fn set_subs_old(p: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `193 + p * (32 ±0)`
-		//  Estimated: `17726`
-		// Minimum execution time: 6_858_000 picoseconds.
-		Weight::from_parts(16_222_054, 17726)
-			// Standard Error: 1_409
-			.saturating_add(Weight::from_parts(593_588, 0).saturating_mul(p.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 4_783_000 picoseconds.
+		Weight::from_parts(11_531_027, 11003)
+			// Standard Error: 369
+			.saturating_add(Weight::from_parts(542_102, 0).saturating_mul(p.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
@@ -489,15 +491,15 @@
 	fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
-		//  Estimated: `17726`
-		// Minimum execution time: 27_212_000 picoseconds.
-		Weight::from_parts(19_030_840, 17726)
-			// Standard Error: 3_118
-			.saturating_add(Weight::from_parts(29_836, 0).saturating_mul(r.into()))
-			// Standard Error: 608
-			.saturating_add(Weight::from_parts(590_661, 0).saturating_mul(s.into()))
-			// Standard Error: 608
-			.saturating_add(Weight::from_parts(110_108, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 23_175_000 picoseconds.
+		Weight::from_parts(16_503_215, 11003)
+			// Standard Error: 625
+			.saturating_add(Weight::from_parts(1_175, 0).saturating_mul(r.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(533_184, 0).saturating_mul(s.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(94_600, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -511,13 +513,13 @@
 	fn request_judgement(r: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `366 + r * (57 ±0) + x * (66 ±0)`
-		//  Estimated: `13629`
-		// Minimum execution time: 19_771_000 picoseconds.
-		Weight::from_parts(18_917_892, 13629)
-			// Standard Error: 1_957
-			.saturating_add(Weight::from_parts(57_465, 0).saturating_mul(r.into()))
-			// Standard Error: 381
-			.saturating_add(Weight::from_parts(168_586, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 15_322_000 picoseconds.
+		Weight::from_parts(13_671_670, 11003)
+			// Standard Error: 722
+			.saturating_add(Weight::from_parts(73_665, 0).saturating_mul(r.into()))
+			// Standard Error: 140
+			.saturating_add(Weight::from_parts(124_598, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -529,12 +531,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `397 + x * (66 ±0)`
 		//  Estimated: `11003`
-		// Minimum execution time: 17_411_000 picoseconds.
-		Weight::from_parts(16_856_331, 11003)
-			// Standard Error: 7_002
-			.saturating_add(Weight::from_parts(34_389, 0).saturating_mul(r.into()))
-			// Standard Error: 1_366
-			.saturating_add(Weight::from_parts(165_686, 0).saturating_mul(x.into()))
+		// Minimum execution time: 13_268_000 picoseconds.
+		Weight::from_parts(12_489_352, 11003)
+			// Standard Error: 544
+			.saturating_add(Weight::from_parts(35_424, 0).saturating_mul(r.into()))
+			// Standard Error: 106
+			.saturating_add(Weight::from_parts(123_149, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -545,10 +547,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 7_089_000 picoseconds.
-		Weight::from_parts(7_750_487, 2626)
-			// Standard Error: 1_625
-			.saturating_add(Weight::from_parts(101_135, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_845_000 picoseconds.
+		Weight::from_parts(5_147_478, 2626)
+			// Standard Error: 169
+			.saturating_add(Weight::from_parts(55_561, 0).saturating_mul(r.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -559,10 +561,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 6_300_000 picoseconds.
-		Weight::from_parts(6_836_140, 2626)
-			// Standard Error: 655
-			.saturating_add(Weight::from_parts(102_284, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_191_000 picoseconds.
+		Weight::from_parts(4_478_351, 2626)
+			// Standard Error: 138
+			.saturating_add(Weight::from_parts(53_627, 0).saturating_mul(r.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -573,10 +575,10 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `88 + r * (57 ±0)`
 		//  Estimated: `2626`
-		// Minimum execution time: 6_257_000 picoseconds.
-		Weight::from_parts(6_917_052, 2626)
-			// Standard Error: 2_628
-			.saturating_add(Weight::from_parts(71_362, 0).saturating_mul(r.into()))
+		// Minimum execution time: 4_003_000 picoseconds.
+		Weight::from_parts(4_303_365, 2626)
+			// Standard Error: 147
+			.saturating_add(Weight::from_parts(52_472, 0).saturating_mul(r.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -589,13 +591,13 @@
 	fn provide_judgement(r: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `444 + r * (57 ±0) + x * (66 ±0)`
-		//  Estimated: `13629`
-		// Minimum execution time: 16_021_000 picoseconds.
-		Weight::from_parts(15_553_670, 13629)
-			// Standard Error: 5_797
-			.saturating_add(Weight::from_parts(42_423, 0).saturating_mul(r.into()))
-			// Standard Error: 1_072
-			.saturating_add(Weight::from_parts(252_721, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 11_465_000 picoseconds.
+		Weight::from_parts(10_326_049, 11003)
+			// Standard Error: 660
+			.saturating_add(Weight::from_parts(48_922, 0).saturating_mul(r.into()))
+			// Standard Error: 122
+			.saturating_add(Weight::from_parts(185_374, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -613,15 +615,15 @@
 	fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `665 + r * (12 ±0) + s * (32 ±0) + x * (66 ±0)`
-		//  Estimated: `23922`
-		// Minimum execution time: 40_801_000 picoseconds.
-		Weight::from_parts(34_079_397, 23922)
-			// Standard Error: 3_750
-			.saturating_add(Weight::from_parts(31_496, 0).saturating_mul(r.into()))
-			// Standard Error: 732
-			.saturating_add(Weight::from_parts(599_691, 0).saturating_mul(s.into()))
-			// Standard Error: 732
-			.saturating_add(Weight::from_parts(101_683, 0).saturating_mul(x.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 34_933_000 picoseconds.
+		Weight::from_parts(28_994_022, 11003)
+			// Standard Error: 668
+			.saturating_add(Weight::from_parts(21_722, 0).saturating_mul(r.into()))
+			// Standard Error: 130
+			.saturating_add(Weight::from_parts(540_580, 0).saturating_mul(s.into()))
+			// Standard Error: 130
+			.saturating_add(Weight::from_parts(89_348, 0).saturating_mul(x.into()))
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(4_u64))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -634,12 +636,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_412_000 picoseconds.
-		Weight::from_parts(4_592_000, 0)
-			// Standard Error: 703_509
-			.saturating_add(Weight::from_parts(43_647_925, 0).saturating_mul(x.into()))
-			// Standard Error: 117_043
-			.saturating_add(Weight::from_parts(9_312_431, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_770_000 picoseconds.
+		Weight::from_parts(2_875_000, 0)
+			// Standard Error: 281_295
+			.saturating_add(Weight::from_parts(37_513_186, 0).saturating_mul(x.into()))
+			// Standard Error: 46_799
+			.saturating_add(Weight::from_parts(7_949_936, 0).saturating_mul(n.into()))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
 	}
 	/// Storage: Identity SubsOf (r:600 w:0)
@@ -652,12 +654,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `41`
 		//  Estimated: `990 + n * (5733 ±0)`
-		// Minimum execution time: 3_824_000 picoseconds.
-		Weight::from_parts(3_950_000, 990)
-			// Standard Error: 2_864
-			.saturating_add(Weight::from_parts(55_678, 0).saturating_mul(x.into()))
-			// Standard Error: 476
-			.saturating_add(Weight::from_parts(1_138_349, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_751_000 picoseconds.
+		Weight::from_parts(2_862_000, 990)
+			// Standard Error: 953
+			.saturating_add(Weight::from_parts(28_947, 0).saturating_mul(x.into()))
+			// Standard Error: 158
+			.saturating_add(Weight::from_parts(994_085, 0).saturating_mul(n.into()))
 			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
 			.saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))
@@ -672,12 +674,12 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `41`
 		//  Estimated: `990 + n * (5733 ±0)`
-		// Minimum execution time: 4_196_000 picoseconds.
-		Weight::from_parts(4_340_000, 990)
-			// Standard Error: 2_081_979
-			.saturating_add(Weight::from_parts(130_653_903, 0).saturating_mul(s.into()))
-			// Standard Error: 346_381
-			.saturating_add(Weight::from_parts(23_046_001, 0).saturating_mul(n.into()))
+		// Minimum execution time: 2_671_000 picoseconds.
+		Weight::from_parts(2_814_000, 990)
+			// Standard Error: 785_159
+			.saturating_add(Weight::from_parts(109_659_566, 0).saturating_mul(s.into()))
+			// Standard Error: 130_628
+			.saturating_add(Weight::from_parts(19_169_269, 0).saturating_mul(n.into()))
 			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
 			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
@@ -693,11 +695,11 @@
 	fn add_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `474 + s * (36 ±0)`
-		//  Estimated: `21305`
-		// Minimum execution time: 15_289_000 picoseconds.
-		Weight::from_parts(21_319_844, 21305)
-			// Standard Error: 893
-			.saturating_add(Weight::from_parts(53_159, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 12_571_000 picoseconds.
+		Weight::from_parts(16_366_301, 11003)
+			// Standard Error: 217
+			.saturating_add(Weight::from_parts(42_542, 0).saturating_mul(s.into()))
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -709,11 +711,11 @@
 	fn rename_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `590 + s * (3 ±0)`
-		//  Estimated: `14582`
-		// Minimum execution time: 9_867_000 picoseconds.
-		Weight::from_parts(12_546_245, 14582)
-			// Standard Error: 509
-			.saturating_add(Weight::from_parts(10_078, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 7_278_000 picoseconds.
+		Weight::from_parts(9_227_799, 11003)
+			// Standard Error: 104
+			.saturating_add(Weight::from_parts(14_014, 0).saturating_mul(s.into()))
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -727,11 +729,11 @@
 	fn remove_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `637 + s * (35 ±0)`
-		//  Estimated: `21305`
-		// Minimum execution time: 19_299_000 picoseconds.
-		Weight::from_parts(24_125_576, 21305)
-			// Standard Error: 1_479
-			.saturating_add(Weight::from_parts(22_611, 0).saturating_mul(s.into()))
+		//  Estimated: `11003`
+		// Minimum execution time: 15_771_000 picoseconds.
+		Weight::from_parts(18_105_475, 11003)
+			// Standard Error: 129
+			.saturating_add(Weight::from_parts(32_074, 0).saturating_mul(s.into()))
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -739,16 +741,18 @@
 	/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
 	/// Storage: Identity SubsOf (r:1 w:1)
 	/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
+	/// Storage: System Account (r:1 w:0)
+	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
 	/// The range of component `s` is `[0, 99]`.
 	fn quit_sub(s: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `563 + s * (37 ±0)`
-		//  Estimated: `10302`
-		// Minimum execution time: 14_183_000 picoseconds.
-		Weight::from_parts(17_343_547, 10302)
-			// Standard Error: 454
-			.saturating_add(Weight::from_parts(45_925, 0).saturating_mul(s.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
+		//  Measured:  `703 + s * (37 ±0)`
+		//  Estimated: `6723`
+		// Minimum execution time: 14_093_000 picoseconds.
+		Weight::from_parts(16_125_177, 6723)
+			// Standard Error: 146
+			.saturating_add(Weight::from_parts(39_270, 0).saturating_mul(s.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
 }
modifiedpallets/maintenance/src/weights.rsdiffbeforeafterboth
--- a/pallets/maintenance/src/weights.rs
+++ b/pallets/maintenance/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_maintenance
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/maintenance/src/weights.rs
 
@@ -47,8 +47,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_407_000 picoseconds.
-		Weight::from_parts(4_556_000, 0)
+		// Minimum execution time: 3_015_000 picoseconds.
+		Weight::from_parts(3_184_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Maintenance Enabled (r:0 w:1)
@@ -57,8 +57,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_868_000 picoseconds.
-		Weight::from_parts(6_100_000, 0)
+		// Minimum execution time: 2_976_000 picoseconds.
+		Weight::from_parts(3_111_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Preimage StatusFor (r:1 w:0)
@@ -68,9 +68,9 @@
 	fn execute_preimage() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `209`
-		//  Estimated: `7230`
-		// Minimum execution time: 14_046_000 picoseconds.
-		Weight::from_parts(14_419_000, 7230)
+		//  Estimated: `3674`
+		// Minimum execution time: 7_359_000 picoseconds.
+		Weight::from_parts(7_613_000, 3674)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 	}
 }
@@ -83,8 +83,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 4_407_000 picoseconds.
-		Weight::from_parts(4_556_000, 0)
+		// Minimum execution time: 3_015_000 picoseconds.
+		Weight::from_parts(3_184_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Maintenance Enabled (r:0 w:1)
@@ -93,8 +93,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_868_000 picoseconds.
-		Weight::from_parts(6_100_000, 0)
+		// Minimum execution time: 2_976_000 picoseconds.
+		Weight::from_parts(3_111_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Preimage StatusFor (r:1 w:0)
@@ -104,9 +104,9 @@
 	fn execute_preimage() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `209`
-		//  Estimated: `7230`
-		// Minimum execution time: 14_046_000 picoseconds.
-		Weight::from_parts(14_419_000, 7230)
+		//  Estimated: `3674`
+		// Minimum execution time: 7_359_000 picoseconds.
+		Weight::from_parts(7_613_000, 3674)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 	}
 }
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -20,7 +20,9 @@
 use frame_benchmarking::{benchmarks, account};
 use pallet_common::{
 	bench_init,
-	benchmarking::{create_collection_raw, property_key, property_value},
+	benchmarking::{
+		create_collection_raw, property_key, property_value, load_is_admin_and_property_permissions,
+	},
 	CommonCollectionOperations,
 };
 use sp_std::prelude::*;
@@ -198,8 +200,49 @@
 			value: property_value(),
 		}).collect::<Vec<_>>();
 		let item = create_max_item(&collection, &owner, owner.clone())?;
-	}: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), SetPropertyMode::ExistingToken, &Unlimited)?}
+	}: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), &Unlimited)?}
+
+	init_token_properties {
+		let b in 0..MAX_PROPERTIES_PER_ITEM;
+		bench_init!{
+			owner: sub; collection: collection(owner);
+			owner: cross_from_sub;
+		};
 
+		let perms = (0..b).map(|k| PropertyKeyPermission {
+			key: property_key(k as usize),
+			permission: PropertyPermission {
+				mutable: false,
+				collection_admin: true,
+				token_owner: true,
+			},
+		}).collect::<Vec<_>>();
+		<Pallet<T>>::set_token_property_permissions(&collection, &owner, perms)?;
+		let props = (0..b).map(|k| Property {
+			key: property_key(k as usize),
+			value: property_value(),
+		}).collect::<Vec<_>>();
+		let item = create_max_item(&collection, &owner, owner.clone())?;
+
+		let (is_collection_admin, property_permissions) = load_is_admin_and_property_permissions(&collection, &owner);
+	}: {
+		let mut property_writer = pallet_common::collection_info_loaded_property_writer(
+			&collection,
+			is_collection_admin,
+			property_permissions,
+		);
+
+		property_writer.write_token_properties(
+			true,
+			item,
+			props.into_iter(),
+			crate::erc::ERC721TokenEvent::TokenChanged {
+				token_id: item.into(),
+			}
+			.to_log(T::ContractAddress::get()),
+		)?
+	}
+
 	delete_token_properties {
 		let b in 0..MAX_PROPERTIES_PER_ITEM;
 		bench_init!{
@@ -220,7 +263,7 @@
 			value: property_value(),
 		}).collect::<Vec<_>>();
 		let item = create_max_item(&collection, &owner, owner.clone())?;
-		<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), SetPropertyMode::ExistingToken, &Unlimited)?;
+		<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), &Unlimited)?;
 		let to_delete = (0..b).map(|k| property_key(k as usize)).collect::<Vec<_>>();
 	}: {<Pallet<T>>::delete_token_properties(&collection, &owner, item, to_delete.into_iter(), &Unlimited)?}
 
modifiedpallets/nonfungible/src/common.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/common.rs
+++ b/pallets/nonfungible/src/common.rs
@@ -23,47 +23,40 @@
 };
 use pallet_common::{
 	CommonCollectionOperations, CommonWeightInfo, RefungibleExtensions, with_weight,
-	weights::WeightInfo as _, SelfWeightOf as PalletCommonWeightOf,
+	weights::WeightInfo as _, SelfWeightOf as PalletCommonWeightOf, init_token_properties_delta,
 };
+use pallet_structure::Pallet as PalletStructure;
 use sp_runtime::DispatchError;
 use sp_std::{vec::Vec, vec};
 
 use crate::{
 	AccountBalance, Allowance, Config, CreateItemData, Error, NonfungibleHandle, Owned, Pallet,
-	SelfWeightOf, TokenData, weights::WeightInfo, TokensMinted,
+	SelfWeightOf, TokenData, weights::WeightInfo, TokensMinted, TokenProperties,
 };
 
 pub struct CommonWeights<T: Config>(PhantomData<T>);
 impl<T: Config> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T> {
 	fn create_multiple_items_ex(data: &CreateItemExData<T::CrossAccountId>) -> Weight {
 		match data {
-			CreateItemExData::NFT(t) => {
-				<SelfWeightOf<T>>::create_multiple_items_ex(t.len() as u32)
-					+ t.iter()
-						.filter_map(|t| {
-							if t.properties.len() > 0 {
-								Some(Self::set_token_properties(t.properties.len() as u32))
-							} else {
-								None
-							}
-						})
-						.fold(Weight::zero(), |a, b| a.saturating_add(b))
-			}
+			CreateItemExData::NFT(t) => <SelfWeightOf<T>>::create_multiple_items_ex(t.len() as u32)
+				.saturating_add(init_token_properties_delta::<T, _>(
+					t.iter().map(|t| t.properties.len() as u32),
+					<SelfWeightOf<T>>::init_token_properties,
+				)),
 			_ => Weight::zero(),
 		}
 	}
 
 	fn create_multiple_items(data: &[up_data_structs::CreateItemData]) -> Weight {
-		<SelfWeightOf<T>>::create_multiple_items(data.len() as u32)
-			+ data
-				.iter()
-				.filter_map(|t| match t {
-					up_data_structs::CreateItemData::NFT(n) if n.properties.len() > 0 => {
-						Some(Self::set_token_properties(n.properties.len() as u32))
-					}
-					_ => None,
-				})
-				.fold(Weight::zero(), |a, b| a.saturating_add(b))
+		<SelfWeightOf<T>>::create_multiple_items(data.len() as u32).saturating_add(
+			init_token_properties_delta::<T, _>(
+				data.iter().map(|t| match t {
+					up_data_structs::CreateItemData::NFT(n) => n.properties.len() as u32,
+					_ => 0,
+				}),
+				<SelfWeightOf<T>>::init_token_properties,
+			),
+		)
 	}
 
 	fn burn_item() -> Weight {
@@ -245,7 +238,6 @@
 				&sender,
 				token_id,
 				properties.into_iter(),
-				pallet_common::SetPropertyMode::ExistingToken,
 				nesting_budget,
 			),
 			weight,
@@ -273,6 +265,17 @@
 		)
 	}
 
+	fn get_token_properties_raw(
+		&self,
+		token_id: TokenId,
+	) -> Option<up_data_structs::TokenProperties> {
+		<TokenProperties<T>>::get((self.id, token_id))
+	}
+
+	fn set_token_properties_raw(&self, token_id: TokenId, map: up_data_structs::TokenProperties) {
+		<TokenProperties<T>>::insert((self.id, token_id), map)
+	}
+
 	fn set_token_property_permissions(
 		&self,
 		sender: &T::CrossAccountId,
@@ -457,19 +460,36 @@
 			.ok_or(TokenOwnerError::NotFound)
 	}
 
+	fn check_token_indirect_owner(
+		&self,
+		token: TokenId,
+		maybe_owner: &T::CrossAccountId,
+		nesting_budget: &dyn Budget,
+	) -> Result<bool, DispatchError> {
+		<PalletStructure<T>>::check_indirectly_owned(
+			maybe_owner.clone(),
+			self.id,
+			token,
+			None,
+			nesting_budget,
+		)
+	}
+
 	/// Returns token owners.
 	fn token_owners(&self, token: TokenId) -> Vec<T::CrossAccountId> {
 		self.token_owner(token).map_or_else(|_| vec![], |t| vec![t])
 	}
 
 	fn token_property(&self, token_id: TokenId, key: &PropertyKey) -> Option<PropertyValue> {
-		<Pallet<T>>::token_properties((self.id, token_id))
+		<Pallet<T>>::token_properties((self.id, token_id))?
 			.get(key)
 			.cloned()
 	}
 
 	fn token_properties(&self, token_id: TokenId, keys: Option<Vec<PropertyKey>>) -> Vec<Property> {
-		let properties = <Pallet<T>>::token_properties((self.id, token_id));
+		let Some(properties) = <Pallet<T>>::token_properties((self.id, token_id)) else {
+			return vec![];
+		};
 
 		keys.map(|keys| {
 			keys.into_iter()
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -203,7 +203,6 @@
 			&caller,
 			TokenId(token_id),
 			properties.into_iter(),
-			pallet_common::SetPropertyMode::ExistingToken,
 			&nesting_budget,
 		)
 		.map_err(dispatch_to_evm::<T>)
@@ -273,7 +272,8 @@
 			.try_into()
 			.map_err(|_| "key too long")?;
 
-		let props = <TokenProperties<T>>::get((self.id, token_id));
+		let props =
+			<TokenProperties<T>>::get((self.id, token_id)).ok_or("token properties not found")?;
 		let prop = props.get(&key).ok_or("key not found")?;
 
 		Ok(prop.to_vec().into())
@@ -367,7 +367,7 @@
 				.transpose()
 				.map_err(|e| {
 					Error::Revert(alloc::format!(
-						"Can not convert value \"baseURI\" to string with error \"{e}\""
+						"can not convert value \"baseURI\" to string with error \"{e}\""
 					))
 				})?;
 
@@ -658,7 +658,7 @@
 		let key = key::url();
 		let permission = get_token_permission::<T>(self.id, &key)?;
 		if !permission.collection_admin {
-			return Err("Operation is not allowed".into());
+			return Err("operation is not allowed".into());
 		}
 
 		let caller = T::CrossAccountId::from_eth(caller);
@@ -685,7 +685,7 @@
 					.try_into()
 					.map_err(|_| "token uri is too long")?,
 			})
-			.map_err(|e| Error::Revert(alloc::format!("Can't add property: {e:?}")))?;
+			.map_err(|e| Error::Revert(alloc::format!("can't add property: {e:?}")))?;
 
 		<Pallet<T>>::create_item(
 			self,
@@ -708,12 +708,12 @@
 ) -> Result<String> {
 	collection.consume_store_reads(1)?;
 	let properties = <TokenProperties<T>>::try_get((collection.id, token_id))
-		.map_err(|_| Error::Revert("Token properties not found".into()))?;
+		.map_err(|_| Error::Revert("token properties not found".into()))?;
 	if let Some(property) = properties.get(key) {
 		return Ok(String::from_utf8_lossy(property).into());
 	}
 
-	Err("Property tokenURI not found".into())
+	Err("property tokenURI not found".into())
 }
 
 fn get_token_permission<T: Config>(
@@ -721,13 +721,13 @@
 	key: &PropertyKey,
 ) -> Result<PropertyPermission> {
 	let token_property_permissions = CollectionPropertyPermissions::<T>::try_get(collection_id)
-		.map_err(|_| Error::Revert("No permissions for collection".into()))?;
+		.map_err(|_| Error::Revert("no permissions for collection".into()))?;
 	let a = token_property_permissions
 		.get(key)
 		.map(Clone::clone)
 		.ok_or_else(|| {
 			let key = String::from_utf8(key.clone().into_inner()).unwrap_or_default();
-			Error::Revert(alloc::format!("No permission for key {key}"))
+			Error::Revert(alloc::format!("no permission for key {key}"))
 		})?;
 	Ok(a)
 }
@@ -1058,7 +1058,7 @@
 						.try_into()
 						.map_err(|_| "token uri is too long")?,
 				})
-				.map_err(|e| Error::Revert(alloc::format!("Can't add property: {e:?}")))?;
+				.map_err(|e| Error::Revert(alloc::format!("can't add property: {e:?}")))?;
 
 			data.push(CreateItemData::<T> {
 				properties,
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -102,14 +102,14 @@
 use up_data_structs::{
 	AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,
 	mapping::TokenAddressMapping, budget::Budget, Property, PropertyKey, PropertyValue,
-	PropertyKeyPermission, PropertyScope, TrySetProperty, TokenChild, AuxPropertyValue,
-	PropertiesPermissionMap, TokenProperties as TokenPropertiesT,
+	PropertyKeyPermission, PropertyScope, TokenChild, AuxPropertyValue, PropertiesPermissionMap,
+	TokenProperties as TokenPropertiesT,
 };
 use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
 use pallet_common::{
 	Error as CommonError, Pallet as PalletCommon, Event as CommonEvent, CollectionHandle,
 	eth::collection_id_to_address, SelfWeightOf as PalletCommonWeightOf,
-	weights::WeightInfo as CommonWeightInfo, helpers::add_weight_to_post_info, SetPropertyMode,
+	weights::WeightInfo as CommonWeightInfo, helpers::add_weight_to_post_info,
 };
 use pallet_structure::{Pallet as PalletStructure, Error as StructureError};
 use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
@@ -201,7 +201,7 @@
 	pub type TokenProperties<T: Config> = StorageNMap<
 		Key = (Key<Twox64Concat, CollectionId>, Key<Twox64Concat, TokenId>),
 		Value = TokenPropertiesT,
-		QueryKind = ValueQuery,
+		QueryKind = OptionQuery,
 	>;
 
 	/// Custom data of a token that is serialized to bytes,
@@ -340,38 +340,6 @@
 	/// - `token`: Token ID.
 	pub fn token_exists(collection: &NonfungibleHandle<T>, token: TokenId) -> bool {
 		<TokenData<T>>::contains_key((collection.id, token))
-	}
-
-	/// Set the token property with the scope.
-	///
-	/// - `property`: Contains key-value pair.
-	pub fn set_scoped_token_property(
-		collection_id: CollectionId,
-		token_id: TokenId,
-		scope: PropertyScope,
-		property: Property,
-	) -> DispatchResult {
-		TokenProperties::<T>::try_mutate((collection_id, token_id), |properties| {
-			properties.try_scoped_set(scope, property.key, property.value)
-		})
-		.map_err(<CommonError<T>>::from)?;
-
-		Ok(())
-	}
-
-	/// Batch operation to set multiple properties with the same scope.
-	pub fn set_scoped_token_properties(
-		collection_id: CollectionId,
-		token_id: TokenId,
-		scope: PropertyScope,
-		properties: impl Iterator<Item = Property>,
-	) -> DispatchResult {
-		TokenProperties::<T>::try_mutate((collection_id, token_id), |stored_properties| {
-			stored_properties.try_scoped_set_from_iter(scope, properties)
-		})
-		.map_err(<CommonError<T>>::from)?;
-
-		Ok(())
 	}
 
 	/// Add or edit auxiliary data for the property.
@@ -598,42 +566,16 @@
 		sender: &T::CrossAccountId,
 		token_id: TokenId,
 		properties_updates: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,
-		mode: SetPropertyMode,
 		nesting_budget: &dyn Budget,
 	) -> DispatchResult {
-		let mut is_token_owner = pallet_common::LazyValue::new(|| {
-			if let SetPropertyMode::NewToken {
-				mint_target_is_sender,
-			} = mode
-			{
-				return Ok(mint_target_is_sender);
-			}
-
-			let is_owned = <PalletStructure<T>>::check_indirectly_owned(
-				sender.clone(),
-				collection.id,
-				token_id,
-				None,
-				nesting_budget,
-			)?;
-
-			Ok(is_owned)
-		});
+		let mut property_writer =
+			pallet_common::property_writer_for_existing_token(collection, sender);
 
-		let mut is_token_exist =
-			pallet_common::LazyValue::new(|| Self::token_exists(collection, token_id));
-
-		let stored_properties = <TokenProperties<T>>::get((collection.id, token_id));
-
-		<PalletCommon<T>>::modify_token_properties(
-			collection,
+		property_writer.write_token_properties(
 			sender,
 			token_id,
-			&mut is_token_exist,
 			properties_updates,
-			stored_properties,
-			&mut is_token_owner,
-			|properties| <TokenProperties<T>>::set((collection.id, token_id), properties),
+			nesting_budget,
 			erc::ERC721TokenEvent::TokenChanged {
 				token_id: token_id.into(),
 			}
@@ -664,7 +606,6 @@
 		sender: &T::CrossAccountId,
 		token_id: TokenId,
 		properties: impl Iterator<Item = Property>,
-		mode: SetPropertyMode,
 		nesting_budget: &dyn Budget,
 	) -> DispatchResult {
 		Self::modify_token_properties(
@@ -672,7 +613,6 @@
 			sender,
 			token_id,
 			properties.map(|p| (p.key, Some(p.value))),
-			mode,
 			nesting_budget,
 		)
 	}
@@ -694,7 +634,6 @@
 			sender,
 			token_id,
 			[property].into_iter(),
-			SetPropertyMode::ExistingToken,
 			nesting_budget,
 		)
 	}
@@ -716,7 +655,6 @@
 			sender,
 			token_id,
 			property_keys.into_iter().map(|key| (key, None)),
-			SetPropertyMode::ExistingToken,
 			nesting_budget,
 		)
 	}
@@ -978,6 +916,8 @@
 
 		// =========
 
+		let mut property_writer = pallet_common::property_writer_for_new_token(collection, sender);
+
 		with_transaction(|| {
 			for (i, data) in data.iter().enumerate() {
 				let token = first_token + i as u32 + 1;
@@ -990,21 +930,22 @@
 					},
 				);
 
+				let token = TokenId(token);
+
 				<PalletStructure<T>>::nest_if_sent_to_token_unchecked(
 					&data.owner,
 					collection.id,
-					TokenId(token),
+					token,
 				);
 
-				if let Err(e) = Self::set_token_properties(
-					collection,
-					sender,
-					TokenId(token),
+				if let Err(e) = property_writer.write_token_properties(
+					sender.conv_eq(&data.owner),
+					token,
 					data.properties.clone().into_iter(),
-					SetPropertyMode::NewToken {
-						mint_target_is_sender: sender.conv_eq(&data.owner),
-					},
-					nesting_budget,
+					erc::ERC721TokenEvent::TokenChanged {
+						token_id: token.into(),
+					}
+					.to_log(T::ContractAddress::get()),
 				) {
 					return TransactionOutcome::Rollback(Err(e));
 				}
@@ -1421,7 +1362,9 @@
 
 	pub fn repair_item(collection: &NonfungibleHandle<T>, token: TokenId) -> DispatchResult {
 		<TokenProperties<T>>::mutate((collection.id, token), |properties| {
-			properties.recompute_consumed_space();
+			if let Some(properties) = properties {
+				properties.recompute_consumed_space();
+			}
 		});
 
 		Ok(())
modifiedpallets/nonfungible/src/weights.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/weights.rs
+++ b/pallets/nonfungible/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_nonfungible
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/nonfungible/src/weights.rs
 
@@ -46,6 +46,7 @@
 	fn burn_from() -> Weight;
 	fn set_token_property_permissions(b: u32, ) -> Weight;
 	fn set_token_properties(b: u32, ) -> Weight;
+	fn init_token_properties(b: u32, ) -> Weight;
 	fn delete_token_properties(b: u32, ) -> Weight;
 	fn token_owner() -> Weight;
 	fn set_allowance_for_all() -> Weight;
@@ -60,31 +61,23 @@
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:1 w:1)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:1 w:1)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:1)
 	/// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `63471`
-		// Minimum execution time: 25_892_000 picoseconds.
-		Weight::from_parts(26_424_000, 63471)
-			.saturating_add(T::DbWeight::get().reads(4_u64))
-			.saturating_add(T::DbWeight::get().writes(5_u64))
+		//  Measured:  `142`
+		//  Estimated: `3530`
+		// Minimum execution time: 9_726_000 picoseconds.
+		Weight::from_parts(10_059_000, 3530)
+			.saturating_add(T::DbWeight::get().reads(2_u64))
+			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
 	/// Storage: Nonfungible TokensMinted (r:1 w:1)
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:1 w:1)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:200 w:200)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:200)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:200)
@@ -92,26 +85,20 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `28192 + b * (35279 ±0)`
-		// Minimum execution time: 4_612_000 picoseconds.
-		Weight::from_parts(6_399_460, 28192)
-			// Standard Error: 5_119
-			.saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(3_u64))
-			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
+		//  Measured:  `142`
+		//  Estimated: `3530`
+		// Minimum execution time: 3_270_000 picoseconds.
+		Weight::from_parts(3_693_659, 3530)
+			// Standard Error: 255
+			.saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
-			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))
 	}
 	/// Storage: Nonfungible TokensMinted (r:1 w:1)
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:200 w:200)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:200 w:200)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:200)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:200)
@@ -119,17 +106,17 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `25652 + b * (37819 ±0)`
-		// Minimum execution time: 4_538_000 picoseconds.
-		Weight::from_parts(4_686_000, 25652)
-			// Standard Error: 3_518
-			.saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
-			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `142`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 3_188_000 picoseconds.
+		Weight::from_parts(3_307_000, 3481)
+			// Standard Error: 567
+			.saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(1_u64))
+			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
-			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
+			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -148,9 +135,9 @@
 	fn burn_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `17561`
-		// Minimum execution time: 24_230_000 picoseconds.
-		Weight::from_parts(24_672_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 18_062_000 picoseconds.
+		Weight::from_parts(18_433_000, 3530)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -171,9 +158,9 @@
 	fn burn_recursively_self_raw() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `17561`
-		// Minimum execution time: 30_521_000 picoseconds.
-		Weight::from_parts(31_241_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 22_942_000 picoseconds.
+		Weight::from_parts(23_527_000, 3530)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -196,17 +183,17 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1467 + b * (58 ±0)`
-		//  Estimated: `24230 + b * (10097 ±0)`
-		// Minimum execution time: 31_734_000 picoseconds.
-		Weight::from_parts(32_162_000, 24230)
-			// Standard Error: 210_514
-			.saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into()))
+		//  Measured:  `1500 + b * (58 ±0)`
+		//  Estimated: `5874 + b * (5032 ±0)`
+		// Minimum execution time: 22_709_000 picoseconds.
+		Weight::from_parts(23_287_000, 5874)
+			// Standard Error: 89_471
+			.saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(7_u64))
 			.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes(6_u64))
 			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -219,9 +206,9 @@
 	fn transfer_raw() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `13114`
-		// Minimum execution time: 18_305_000 picoseconds.
-		Weight::from_parts(18_859_000, 13114)
+		//  Estimated: `6070`
+		// Minimum execution time: 13_652_000 picoseconds.
+		Weight::from_parts(13_981_000, 6070)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -232,9 +219,9 @@
 	fn approve() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `326`
-		//  Estimated: `7044`
-		// Minimum execution time: 10_977_000 picoseconds.
-		Weight::from_parts(11_184_000, 7044)
+		//  Estimated: `3522`
+		// Minimum execution time: 7_837_000 picoseconds.
+		Weight::from_parts(8_113_000, 3522)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -245,9 +232,9 @@
 	fn approve_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `313`
-		//  Estimated: `7044`
-		// Minimum execution time: 11_456_000 picoseconds.
-		Weight::from_parts(11_731_000, 7044)
+		//  Estimated: `3522`
+		// Minimum execution time: 7_769_000 picoseconds.
+		Weight::from_parts(7_979_000, 3522)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -257,8 +244,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `362`
 		//  Estimated: `3522`
-		// Minimum execution time: 5_771_000 picoseconds.
-		Weight::from_parts(5_972_000, 3522)
+		// Minimum execution time: 4_194_000 picoseconds.
+		Weight::from_parts(4_353_000, 3522)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible Allowance (r:1 w:1)
@@ -278,9 +265,9 @@
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `463`
-		//  Estimated: `17561`
-		// Minimum execution time: 30_633_000 picoseconds.
-		Weight::from_parts(31_136_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 21_978_000 picoseconds.
+		Weight::from_parts(22_519_000, 3530)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(6_u64))
 	}
@@ -289,45 +276,62 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_property_permissions(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `281`
+		//  Measured:  `314`
 		//  Estimated: `20191`
-		// Minimum execution time: 2_300_000 picoseconds.
-		Weight::from_parts(2_382_000, 20191)
-			// Standard Error: 45_076
-			.saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into()))
+		// Minimum execution time: 1_457_000 picoseconds.
+		Weight::from_parts(1_563_000, 20191)
+			// Standard Error: 14_041
+			.saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
+	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
+	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenProperties (r:1 w:1)
 	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenData (r:1 w:0)
+	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `584 + b * (261 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 12_422_000 picoseconds.
-		Weight::from_parts(5_523_689, 56460)
-			// Standard Error: 74_137
-			.saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
+		//  Measured:  `640 + b * (261 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 963_000 picoseconds.
+		Weight::from_parts(1_126_511, 36269)
+			// Standard Error: 9_175
+			.saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
-	/// Storage: Nonfungible TokenProperties (r:1 w:1)
+	/// Storage: Nonfungible TokenProperties (r:0 w:1)
 	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// The range of component `b` is `[0, 64]`.
+	fn init_token_properties(b: u32, ) -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 194_000 picoseconds.
+		Weight::from_parts(222_000, 0)
+			// Standard Error: 7_295
+			.saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes(1_u64))
+	}
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenData (r:1 w:0)
+	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenProperties (r:1 w:1)
+	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `589 + b * (33291 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 12_006_000 picoseconds.
-		Weight::from_parts(12_216_000, 56460)
-			// Standard Error: 83_431
-			.saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
+		//  Measured:  `699 + b * (33291 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 992_000 picoseconds.
+		Weight::from_parts(1_043_000, 36269)
+			// Standard Error: 37_370
+			.saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:0)
@@ -336,8 +340,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `326`
 		//  Estimated: `3522`
-		// Minimum execution time: 4_827_000 picoseconds.
-		Weight::from_parts(4_984_000, 3522)
+		// Minimum execution time: 3_743_000 picoseconds.
+		Weight::from_parts(3_908_000, 3522)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible CollectionAllowance (r:0 w:1)
@@ -346,28 +350,28 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_151_000 picoseconds.
-		Weight::from_parts(6_394_000, 0)
+		// Minimum execution time: 4_106_000 picoseconds.
+		Weight::from_parts(4_293_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Nonfungible CollectionAllowance (r:1 w:0)
 	/// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)
 	fn allowance_for_all() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `109`
+		//  Measured:  `142`
 		//  Estimated: `3576`
-		// Minimum execution time: 3_791_000 picoseconds.
-		Weight::from_parts(3_950_000, 3576)
+		// Minimum execution time: 2_775_000 picoseconds.
+		Weight::from_parts(2_923_000, 3576)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible TokenProperties (r:1 w:1)
 	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn repair_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `300`
+		//  Measured:  `279`
 		//  Estimated: `36269`
-		// Minimum execution time: 5_364_000 picoseconds.
-		Weight::from_parts(5_539_000, 36269)
+		// Minimum execution time: 3_033_000 picoseconds.
+		Weight::from_parts(3_174_000, 36269)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -379,31 +383,23 @@
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:1 w:1)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:1 w:1)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:1)
 	/// Proof: Nonfungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `63471`
-		// Minimum execution time: 25_892_000 picoseconds.
-		Weight::from_parts(26_424_000, 63471)
-			.saturating_add(RocksDbWeight::get().reads(4_u64))
-			.saturating_add(RocksDbWeight::get().writes(5_u64))
+		//  Measured:  `142`
+		//  Estimated: `3530`
+		// Minimum execution time: 9_726_000 picoseconds.
+		Weight::from_parts(10_059_000, 3530)
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
+			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
 	/// Storage: Nonfungible TokensMinted (r:1 w:1)
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:1 w:1)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:200 w:200)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:200)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:200)
@@ -411,26 +407,20 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `28192 + b * (35279 ±0)`
-		// Minimum execution time: 4_612_000 picoseconds.
-		Weight::from_parts(6_399_460, 28192)
-			// Standard Error: 5_119
-			.saturating_add(Weight::from_parts(7_230_389, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(3_u64))
-			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
+		//  Measured:  `142`
+		//  Estimated: `3530`
+		// Minimum execution time: 3_270_000 picoseconds.
+		Weight::from_parts(3_693_659, 3530)
+			// Standard Error: 255
+			.saturating_add(Weight::from_parts(3_024_284, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
-			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))
 	}
 	/// Storage: Nonfungible TokensMinted (r:1 w:1)
 	/// Proof: Nonfungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Nonfungible AccountBalance (r:200 w:200)
 	/// Proof: Nonfungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Nonfungible TokenProperties (r:200 w:200)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Nonfungible TokenData (r:0 w:200)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// Storage: Nonfungible Owned (r:0 w:200)
@@ -438,17 +428,17 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `390`
-		//  Estimated: `25652 + b * (37819 ±0)`
-		// Minimum execution time: 4_538_000 picoseconds.
-		Weight::from_parts(4_686_000, 25652)
-			// Standard Error: 3_518
-			.saturating_add(Weight::from_parts(8_905_771, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
-			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `142`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 3_188_000 picoseconds.
+		Weight::from_parts(3_307_000, 3481)
+			// Standard Error: 567
+			.saturating_add(Weight::from_parts(4_320_449, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(1_u64))
+			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
-			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
+			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -467,9 +457,9 @@
 	fn burn_item() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `17561`
-		// Minimum execution time: 24_230_000 picoseconds.
-		Weight::from_parts(24_672_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 18_062_000 picoseconds.
+		Weight::from_parts(18_433_000, 3530)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
@@ -490,9 +480,9 @@
 	fn burn_recursively_self_raw() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `17561`
-		// Minimum execution time: 30_521_000 picoseconds.
-		Weight::from_parts(31_241_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 22_942_000 picoseconds.
+		Weight::from_parts(23_527_000, 3530)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
@@ -515,17 +505,17 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn burn_recursively_breadth_plus_self_plus_self_per_each_raw(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1467 + b * (58 ±0)`
-		//  Estimated: `24230 + b * (10097 ±0)`
-		// Minimum execution time: 31_734_000 picoseconds.
-		Weight::from_parts(32_162_000, 24230)
-			// Standard Error: 210_514
-			.saturating_add(Weight::from_parts(71_382_804, 0).saturating_mul(b.into()))
+		//  Measured:  `1500 + b * (58 ±0)`
+		//  Estimated: `5874 + b * (5032 ±0)`
+		// Minimum execution time: 22_709_000 picoseconds.
+		Weight::from_parts(23_287_000, 5874)
+			// Standard Error: 89_471
+			.saturating_add(Weight::from_parts(63_285_201, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(7_u64))
 			.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes(6_u64))
 			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 10097).saturating_mul(b.into()))
+			.saturating_add(Weight::from_parts(0, 5032).saturating_mul(b.into()))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:1)
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
@@ -538,9 +528,9 @@
 	fn transfer_raw() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `380`
-		//  Estimated: `13114`
-		// Minimum execution time: 18_305_000 picoseconds.
-		Weight::from_parts(18_859_000, 13114)
+		//  Estimated: `6070`
+		// Minimum execution time: 13_652_000 picoseconds.
+		Weight::from_parts(13_981_000, 6070)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
@@ -551,9 +541,9 @@
 	fn approve() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `326`
-		//  Estimated: `7044`
-		// Minimum execution time: 10_977_000 picoseconds.
-		Weight::from_parts(11_184_000, 7044)
+		//  Estimated: `3522`
+		// Minimum execution time: 7_837_000 picoseconds.
+		Weight::from_parts(8_113_000, 3522)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -564,9 +554,9 @@
 	fn approve_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `313`
-		//  Estimated: `7044`
-		// Minimum execution time: 11_456_000 picoseconds.
-		Weight::from_parts(11_731_000, 7044)
+		//  Estimated: `3522`
+		// Minimum execution time: 7_769_000 picoseconds.
+		Weight::from_parts(7_979_000, 3522)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -576,8 +566,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `362`
 		//  Estimated: `3522`
-		// Minimum execution time: 5_771_000 picoseconds.
-		Weight::from_parts(5_972_000, 3522)
+		// Minimum execution time: 4_194_000 picoseconds.
+		Weight::from_parts(4_353_000, 3522)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible Allowance (r:1 w:1)
@@ -597,9 +587,9 @@
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `463`
-		//  Estimated: `17561`
-		// Minimum execution time: 30_633_000 picoseconds.
-		Weight::from_parts(31_136_000, 17561)
+		//  Estimated: `3530`
+		// Minimum execution time: 21_978_000 picoseconds.
+		Weight::from_parts(22_519_000, 3530)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(6_u64))
 	}
@@ -608,45 +598,62 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_property_permissions(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `281`
+		//  Measured:  `314`
 		//  Estimated: `20191`
-		// Minimum execution time: 2_300_000 picoseconds.
-		Weight::from_parts(2_382_000, 20191)
-			// Standard Error: 45_076
-			.saturating_add(Weight::from_parts(12_000_777, 0).saturating_mul(b.into()))
+		// Minimum execution time: 1_457_000 picoseconds.
+		Weight::from_parts(1_563_000, 20191)
+			// Standard Error: 14_041
+			.saturating_add(Weight::from_parts(8_452_415, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
-	/// Storage: Nonfungible TokenProperties (r:1 w:1)
-	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenProperties (r:1 w:1)
+	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenData (r:1 w:0)
+	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `584 + b * (261 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 12_422_000 picoseconds.
-		Weight::from_parts(5_523_689, 56460)
-			// Standard Error: 74_137
-			.saturating_add(Weight::from_parts(6_320_501, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
+		//  Measured:  `640 + b * (261 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 963_000 picoseconds.
+		Weight::from_parts(1_126_511, 36269)
+			// Standard Error: 9_175
+			.saturating_add(Weight::from_parts(5_096_011, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
-	/// Storage: Nonfungible TokenProperties (r:1 w:1)
+	/// Storage: Nonfungible TokenProperties (r:0 w:1)
 	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// The range of component `b` is `[0, 64]`.
+	fn init_token_properties(b: u32, ) -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 194_000 picoseconds.
+		Weight::from_parts(222_000, 0)
+			// Standard Error: 7_295
+			.saturating_add(Weight::from_parts(4_499_463, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes(1_u64))
+	}
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenData (r:1 w:0)
+	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
+	/// Storage: Nonfungible TokenProperties (r:1 w:1)
+	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `589 + b * (33291 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 12_006_000 picoseconds.
-		Weight::from_parts(12_216_000, 56460)
-			// Standard Error: 83_431
-			.saturating_add(Weight::from_parts(24_556_999, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
+		//  Measured:  `699 + b * (33291 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 992_000 picoseconds.
+		Weight::from_parts(1_043_000, 36269)
+			// Standard Error: 37_370
+			.saturating_add(Weight::from_parts(23_672_870, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Nonfungible TokenData (r:1 w:0)
@@ -655,8 +662,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `326`
 		//  Estimated: `3522`
-		// Minimum execution time: 4_827_000 picoseconds.
-		Weight::from_parts(4_984_000, 3522)
+		// Minimum execution time: 3_743_000 picoseconds.
+		Weight::from_parts(3_908_000, 3522)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible CollectionAllowance (r:0 w:1)
@@ -665,28 +672,28 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_151_000 picoseconds.
-		Weight::from_parts(6_394_000, 0)
+		// Minimum execution time: 4_106_000 picoseconds.
+		Weight::from_parts(4_293_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Nonfungible CollectionAllowance (r:1 w:0)
 	/// Proof: Nonfungible CollectionAllowance (max_values: None, max_size: Some(111), added: 2586, mode: MaxEncodedLen)
 	fn allowance_for_all() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `109`
+		//  Measured:  `142`
 		//  Estimated: `3576`
-		// Minimum execution time: 3_791_000 picoseconds.
-		Weight::from_parts(3_950_000, 3576)
+		// Minimum execution time: 2_775_000 picoseconds.
+		Weight::from_parts(2_923_000, 3576)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
 	/// Storage: Nonfungible TokenProperties (r:1 w:1)
 	/// Proof: Nonfungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn repair_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `300`
+		//  Measured:  `279`
 		//  Estimated: `36269`
-		// Minimum execution time: 5_364_000 picoseconds.
-		Weight::from_parts(5_539_000, 36269)
+		// Minimum execution time: 3_033_000 picoseconds.
+		Weight::from_parts(3_174_000, 36269)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
modifiedpallets/refungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -22,7 +22,9 @@
 use frame_benchmarking::{benchmarks, account};
 use pallet_common::{
 	bench_init,
-	benchmarking::{create_collection_raw, property_key, property_value},
+	benchmarking::{
+		create_collection_raw, property_key, property_value, load_is_admin_and_property_permissions,
+	},
 };
 use sp_std::prelude::*;
 use up_data_structs::{
@@ -255,8 +257,49 @@
 			value: property_value(),
 		}).collect::<Vec<_>>();
 		let item = create_max_item(&collection, &owner, [(owner.clone(), 200)])?;
-	}: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), SetPropertyMode::ExistingToken, &Unlimited)?}
+	}: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), &Unlimited)?}
+
+	init_token_properties {
+		let b in 0..MAX_PROPERTIES_PER_ITEM;
+		bench_init!{
+			owner: sub; collection: collection(owner);
+			owner: cross_from_sub;
+		};
 
+		let perms = (0..b).map(|k| PropertyKeyPermission {
+			key: property_key(k as usize),
+			permission: PropertyPermission {
+				mutable: false,
+				collection_admin: true,
+				token_owner: true,
+			},
+		}).collect::<Vec<_>>();
+		<Pallet<T>>::set_token_property_permissions(&collection, &owner, perms)?;
+		let props = (0..b).map(|k| Property {
+			key: property_key(k as usize),
+			value: property_value(),
+		}).collect::<Vec<_>>();
+		let item = create_max_item(&collection, &owner, [(owner.clone(), 200)])?;
+
+		let (is_collection_admin, property_permissions) = load_is_admin_and_property_permissions(&collection, &owner);
+	}: {
+		let mut property_writer = pallet_common::collection_info_loaded_property_writer(
+			&collection,
+			is_collection_admin,
+			property_permissions,
+		);
+
+		property_writer.write_token_properties(
+			true,
+			item,
+			props.into_iter(),
+			crate::erc::ERC721TokenEvent::TokenChanged {
+				token_id: item.into(),
+			}
+			.to_log(T::ContractAddress::get()),
+		)?
+	}
+
 	delete_token_properties {
 		let b in 0..MAX_PROPERTIES_PER_ITEM;
 		bench_init!{
@@ -277,7 +320,7 @@
 			value: property_value(),
 		}).collect::<Vec<_>>();
 		let item = create_max_item(&collection, &owner, [(owner.clone(), 200)])?;
-		<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), SetPropertyMode::ExistingToken, &Unlimited)?;
+		<Pallet<T>>::set_token_properties(&collection, &owner, item, props.into_iter(), &Unlimited)?;
 		let to_delete = (0..b).map(|k| property_key(k as usize)).collect::<Vec<_>>();
 	}: {<Pallet<T>>::delete_token_properties(&collection, &owner, item, to_delete.into_iter(), &Unlimited)?}
 
modifiedpallets/refungible/src/common.rsdiffbeforeafterboth
--- a/pallets/refungible/src/common.rs
+++ b/pallets/refungible/src/common.rs
@@ -20,20 +20,20 @@
 use frame_support::{dispatch::DispatchResultWithPostInfo, ensure, fail, weights::Weight, traits::Get};
 use up_data_structs::{
 	CollectionId, TokenId, CreateItemExData, budget::Budget, Property, PropertyKey, PropertyValue,
-	PropertyKeyPermission, CollectionPropertiesVec, CreateRefungibleExMultipleOwners,
-	CreateRefungibleExSingleOwner, TokenOwnerError,
+	PropertyKeyPermission, CreateRefungibleExMultipleOwners, CreateRefungibleExSingleOwner,
+	TokenOwnerError,
 };
 use pallet_common::{
 	CommonCollectionOperations, CommonWeightInfo, RefungibleExtensions, with_weight,
-	weights::WeightInfo as _,
+	weights::WeightInfo as _, init_token_properties_delta,
 };
-use pallet_structure::Error as StructureError;
+use pallet_structure::{Pallet as PalletStructure, Error as StructureError};
 use sp_runtime::{DispatchError};
 use sp_std::{vec::Vec, vec};
 
 use crate::{
 	AccountBalance, Allowance, Balance, Config, Error, Owned, Pallet, RefungibleHandle,
-	SelfWeightOf, weights::WeightInfo, TokensMinted, TotalSupply, CreateItemData,
+	SelfWeightOf, weights::WeightInfo, TokensMinted, TotalSupply, CreateItemData, TokenProperties,
 };
 
 macro_rules! max_weight_of {
@@ -43,28 +43,21 @@
 			.max(<SelfWeightOf<T>>::$method($($args)*))
 		)*
 	};
-}
-
-fn properties_weight<T: Config>(properties: &CollectionPropertiesVec) -> Weight {
-	if properties.len() > 0 {
-		<CommonWeights<T>>::set_token_properties(properties.len() as u32)
-	} else {
-		Weight::zero()
-	}
 }
 
 pub struct CommonWeights<T: Config>(PhantomData<T>);
 impl<T: Config> CommonWeightInfo<T::CrossAccountId> for CommonWeights<T> {
 	fn create_multiple_items(data: &[up_data_structs::CreateItemData]) -> Weight {
 		<SelfWeightOf<T>>::create_multiple_items(data.len() as u32).saturating_add(
-			data.iter()
-				.map(|data| match data {
+			init_token_properties_delta::<T, _>(
+				data.iter().map(|data| match data {
 					up_data_structs::CreateItemData::ReFungible(rft_data) => {
-						properties_weight::<T>(&rft_data.properties)
+						rft_data.properties.len() as u32
 					}
-					_ => Weight::zero(),
-				})
-				.fold(Weight::zero(), |a, b| a.saturating_add(b)),
+					_ => 0,
+				}),
+				<SelfWeightOf<T>>::init_token_properties,
+			),
 		)
 	}
 
@@ -72,15 +65,17 @@
 		match call {
 			CreateItemExData::RefungibleMultipleOwners(i) => {
 				<SelfWeightOf<T>>::create_multiple_items_ex_multiple_owners(i.users.len() as u32)
-					.saturating_add(properties_weight::<T>(&i.properties))
+					.saturating_add(init_token_properties_delta::<T, _>(
+						[i.properties.len() as u32].into_iter(),
+						<SelfWeightOf<T>>::init_token_properties,
+					))
 			}
 			CreateItemExData::RefungibleMultipleItems(i) => {
 				<SelfWeightOf<T>>::create_multiple_items_ex_multiple_items(i.len() as u32)
-					.saturating_add(
-						i.iter()
-							.map(|d| properties_weight::<T>(&d.properties))
-							.fold(Weight::zero(), |a, b| a.saturating_add(b)),
-					)
+					.saturating_add(init_token_properties_delta::<T, _>(
+						i.iter().map(|d| d.properties.len() as u32),
+						<SelfWeightOf<T>>::init_token_properties,
+					))
 			}
 			_ => Weight::zero(),
 		}
@@ -399,7 +394,6 @@
 				&sender,
 				token_id,
 				properties.into_iter(),
-				pallet_common::SetPropertyMode::ExistingToken,
 				nesting_budget,
 			),
 			weight,
@@ -441,6 +435,17 @@
 		)
 	}
 
+	fn get_token_properties_raw(
+		&self,
+		token_id: TokenId,
+	) -> Option<up_data_structs::TokenProperties> {
+		<TokenProperties<T>>::get((self.id, token_id))
+	}
+
+	fn set_token_properties_raw(&self, token_id: TokenId, map: up_data_structs::TokenProperties) {
+		<TokenProperties<T>>::insert((self.id, token_id), map)
+	}
+
 	fn check_nesting(
 		&self,
 		_sender: <T>::CrossAccountId,
@@ -479,19 +484,44 @@
 		<Pallet<T>>::token_owner(self.id, token)
 	}
 
+	fn check_token_indirect_owner(
+		&self,
+		token: TokenId,
+		maybe_owner: &T::CrossAccountId,
+		nesting_budget: &dyn Budget,
+	) -> Result<bool, DispatchError> {
+		let balance = self.balance(maybe_owner.clone(), token);
+		let total_pieces: u128 = <Pallet<T>>::total_pieces(self.id, token).unwrap_or(u128::MAX);
+		if balance != total_pieces {
+			return Ok(false);
+		}
+
+		let is_bundle_owner = <PalletStructure<T>>::check_indirectly_owned(
+			maybe_owner.clone(),
+			self.id,
+			token,
+			None,
+			nesting_budget,
+		)?;
+
+		Ok(is_bundle_owner)
+	}
+
 	/// Returns 10 token in no particular order.
 	fn token_owners(&self, token: TokenId) -> Vec<T::CrossAccountId> {
 		<Pallet<T>>::token_owners(self.id, token).unwrap_or_default()
 	}
 
 	fn token_property(&self, token_id: TokenId, key: &PropertyKey) -> Option<PropertyValue> {
-		<Pallet<T>>::token_properties((self.id, token_id))
+		<Pallet<T>>::token_properties((self.id, token_id))?
 			.get(key)
 			.cloned()
 	}
 
 	fn token_properties(&self, token_id: TokenId, keys: Option<Vec<PropertyKey>>) -> Vec<Property> {
-		let properties = <Pallet<T>>::token_properties((self.id, token_id));
+		let Some(properties) = <Pallet<T>>::token_properties((self.id, token_id)) else {
+			return vec![];
+		};
 
 		keys.map(|keys| {
 			keys.into_iter()
modifiedpallets/refungible/src/erc.rsdiffbeforeafterboth
--- a/pallets/refungible/src/erc.rs
+++ b/pallets/refungible/src/erc.rs
@@ -214,7 +214,6 @@
 			&caller,
 			TokenId(token_id),
 			properties.into_iter(),
-			pallet_common::SetPropertyMode::ExistingToken,
 			&nesting_budget,
 		)
 		.map_err(dispatch_to_evm::<T>)
@@ -284,7 +283,8 @@
 			.try_into()
 			.map_err(|_| "key too long")?;
 
-		let props = <TokenProperties<T>>::get((self.id, token_id));
+		let props =
+			<TokenProperties<T>>::get((self.id, token_id)).ok_or("token properties not found")?;
 		let prop = props.get(&key).ok_or("key not found")?;
 
 		Ok(prop.to_vec().into())
@@ -372,7 +372,7 @@
 				.transpose()
 				.map_err(|e| {
 					Error::Revert(alloc::format!(
-						"Can not convert value \"baseURI\" to string with error \"{e}\""
+						"can not convert value \"baseURI\" to string with error \"{e}\""
 					))
 				})?;
 
@@ -697,7 +697,7 @@
 		let key = key::url();
 		let permission = get_token_permission::<T>(self.id, &key)?;
 		if !permission.collection_admin {
-			return Err("Operation is not allowed".into());
+			return Err("operation is not allowed".into());
 		}
 
 		let caller = T::CrossAccountId::from_eth(caller);
@@ -724,7 +724,7 @@
 					.try_into()
 					.map_err(|_| "token uri is too long")?,
 			})
-			.map_err(|e| Error::Revert(alloc::format!("Can't add property: {e:?}")))?;
+			.map_err(|e| Error::Revert(alloc::format!("can't add property: {e:?}")))?;
 
 		let users = [(to, 1)]
 			.into_iter()
@@ -749,12 +749,12 @@
 ) -> Result<String> {
 	collection.consume_store_reads(1)?;
 	let properties = <TokenProperties<T>>::try_get((collection.id, token_id))
-		.map_err(|_| Error::Revert("Token properties not found".into()))?;
+		.map_err(|_| Error::Revert("token properties not found".into()))?;
 	if let Some(property) = properties.get(key) {
 		return Ok(String::from_utf8_lossy(property).into());
 	}
 
-	Err("Property tokenURI not found".into())
+	Err("property tokenURI not found".into())
 }
 
 fn get_token_permission<T: Config>(
@@ -762,13 +762,13 @@
 	key: &PropertyKey,
 ) -> Result<PropertyPermission> {
 	let token_property_permissions = CollectionPropertyPermissions::<T>::try_get(collection_id)
-		.map_err(|_| Error::Revert("No permissions for collection".into()))?;
+		.map_err(|_| Error::Revert("no permissions for collection".into()))?;
 	let a = token_property_permissions
 		.get(key)
 		.map(Clone::clone)
 		.ok_or_else(|| {
 			let key = String::from_utf8(key.clone().into_inner()).unwrap_or_default();
-			Error::Revert(alloc::format!("No permission for key {key}"))
+			Error::Revert(alloc::format!("no permission for key {key}"))
 		})?;
 	Ok(a)
 }
@@ -1133,7 +1133,7 @@
 						.try_into()
 						.map_err(|_| "token uri is too long")?,
 				})
-				.map_err(|e| Error::Revert(alloc::format!("Can't add property: {e:?}")))?;
+				.map_err(|e| Error::Revert(alloc::format!("can't add property: {e:?}")))?;
 
 			let create_item_data = CreateItemData::<T> {
 				users: users.clone(),
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -96,8 +96,8 @@
 use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
 use pallet_evm_coder_substrate::WithRecorder;
 use pallet_common::{
-	CommonCollectionOperations, Error as CommonError, eth::collection_id_to_address,
-	Event as CommonEvent, Pallet as PalletCommon, SetPropertyMode,
+	Error as CommonError, eth::collection_id_to_address, Event as CommonEvent,
+	Pallet as PalletCommon,
 };
 use pallet_structure::Pallet as PalletStructure;
 use sp_core::{Get, H160};
@@ -106,8 +106,8 @@
 use up_data_structs::{
 	AccessMode, budget::Budget, CollectionId, CreateCollectionData, mapping::TokenAddressMapping,
 	MAX_REFUNGIBLE_PIECES, Property, PropertyKey, PropertyKeyPermission, PropertyScope,
-	PropertyValue, TokenId, TrySetProperty, PropertiesPermissionMap,
-	CreateRefungibleExMultipleOwners, TokenOwnerError, TokenProperties as TokenPropertiesT,
+	PropertyValue, TokenId, PropertiesPermissionMap, CreateRefungibleExMultipleOwners,
+	TokenOwnerError, TokenProperties as TokenPropertiesT,
 };
 
 pub use pallet::*;
@@ -175,7 +175,7 @@
 	pub type TokenProperties<T: Config> = StorageNMap<
 		Key = (Key<Twox64Concat, CollectionId>, Key<Twox64Concat, TokenId>),
 		Value = TokenPropertiesT,
-		QueryKind = ValueQuery,
+		QueryKind = OptionQuery,
 	>;
 
 	/// Total amount of pieces for token
@@ -292,34 +292,6 @@
 	/// - `token`: Token ID.
 	pub fn token_exists(collection: &RefungibleHandle<T>, token: TokenId) -> bool {
 		<TotalSupply<T>>::contains_key((collection.id, token))
-	}
-
-	pub fn set_scoped_token_property(
-		collection_id: CollectionId,
-		token_id: TokenId,
-		scope: PropertyScope,
-		property: Property,
-	) -> DispatchResult {
-		TokenProperties::<T>::try_mutate((collection_id, token_id), |properties| {
-			properties.try_scoped_set(scope, property.key, property.value)
-		})
-		.map_err(<CommonError<T>>::from)?;
-
-		Ok(())
-	}
-
-	pub fn set_scoped_token_properties(
-		collection_id: CollectionId,
-		token_id: TokenId,
-		scope: PropertyScope,
-		properties: impl Iterator<Item = Property>,
-	) -> DispatchResult {
-		TokenProperties::<T>::try_mutate((collection_id, token_id), |stored_properties| {
-			stored_properties.try_scoped_set_from_iter(scope, properties)
-		})
-		.map_err(<CommonError<T>>::from)?;
-
-		Ok(())
 	}
 }
 
@@ -533,50 +505,16 @@
 		sender: &T::CrossAccountId,
 		token_id: TokenId,
 		properties_updates: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,
-		mode: SetPropertyMode,
 		nesting_budget: &dyn Budget,
 	) -> DispatchResult {
-		let mut is_token_owner =
-			pallet_common::LazyValue::new(|| -> Result<bool, DispatchError> {
-				if let SetPropertyMode::NewToken {
-					mint_target_is_sender,
-				} = mode
-				{
-					return Ok(mint_target_is_sender);
-				}
-
-				let balance = collection.balance(sender.clone(), token_id);
-				let total_pieces: u128 =
-					Self::total_pieces(collection.id, token_id).unwrap_or(u128::MAX);
-				if balance != total_pieces {
-					return Ok(false);
-				}
-
-				let is_bundle_owner = <PalletStructure<T>>::check_indirectly_owned(
-					sender.clone(),
-					collection.id,
-					token_id,
-					None,
-					nesting_budget,
-				)?;
-
-				Ok(is_bundle_owner)
-			});
+		let mut property_writer =
+			pallet_common::property_writer_for_existing_token(collection, sender);
 
-		let mut is_token_exist =
-			pallet_common::LazyValue::new(|| Self::token_exists(collection, token_id));
-
-		let stored_properties = <TokenProperties<T>>::get((collection.id, token_id));
-
-		<PalletCommon<T>>::modify_token_properties(
-			collection,
+		property_writer.write_token_properties(
 			sender,
 			token_id,
-			&mut is_token_exist,
 			properties_updates,
-			stored_properties,
-			&mut is_token_owner,
-			|properties| <TokenProperties<T>>::set((collection.id, token_id), properties),
+			nesting_budget,
 			erc::ERC721TokenEvent::TokenChanged {
 				token_id: token_id.into(),
 			}
@@ -602,7 +540,6 @@
 		sender: &T::CrossAccountId,
 		token_id: TokenId,
 		properties: impl Iterator<Item = Property>,
-		mode: SetPropertyMode,
 		nesting_budget: &dyn Budget,
 	) -> DispatchResult {
 		Self::modify_token_properties(
@@ -610,7 +547,6 @@
 			sender,
 			token_id,
 			properties.map(|p| (p.key, Some(p.value))),
-			mode,
 			nesting_budget,
 		)
 	}
@@ -627,7 +563,6 @@
 			sender,
 			token_id,
 			[property].into_iter(),
-			SetPropertyMode::ExistingToken,
 			nesting_budget,
 		)
 	}
@@ -644,7 +579,6 @@
 			sender,
 			token_id,
 			property_keys.into_iter().map(|key| (key, None)),
-			SetPropertyMode::ExistingToken,
 			nesting_budget,
 		)
 	}
@@ -925,11 +859,15 @@
 
 		// =========
 
+		let mut property_writer = pallet_common::property_writer_for_new_token(collection, sender);
+
 		with_transaction(|| {
 			for (i, data) in data.iter().enumerate() {
 				let token_id = first_token_id + i as u32 + 1;
 				<TotalSupply<T>>::insert((collection.id, token_id), totals[i]);
 
+				let token = TokenId(token_id);
+
 				let mut mint_target_is_sender = true;
 				for (user, amount) in data.users.iter() {
 					if *amount == 0 {
@@ -939,23 +877,22 @@
 					mint_target_is_sender = mint_target_is_sender && sender.conv_eq(user);
 
 					<Balance<T>>::insert((collection.id, token_id, &user), amount);
-					<Owned<T>>::insert((collection.id, &user, TokenId(token_id)), true);
+					<Owned<T>>::insert((collection.id, &user, token), true);
 					<PalletStructure<T>>::nest_if_sent_to_token_unchecked(
 						user,
 						collection.id,
-						TokenId(token_id),
+						token,
 					);
 				}
 
-				if let Err(e) = Self::set_token_properties(
-					collection,
-					sender,
-					TokenId(token_id),
+				if let Err(e) = property_writer.write_token_properties(
+					mint_target_is_sender,
+					token,
 					data.properties.clone().into_iter(),
-					SetPropertyMode::NewToken {
-						mint_target_is_sender,
-					},
-					nesting_budget,
+					erc::ERC721TokenEvent::TokenChanged {
+						token_id: token.into(),
+					}
+					.to_log(T::ContractAddress::get()),
 				) {
 					return TransactionOutcome::Rollback(Err(e));
 				}
@@ -1461,7 +1398,9 @@
 
 	pub fn repair_item(collection: &RefungibleHandle<T>, token: TokenId) -> DispatchResult {
 		<TokenProperties<T>>::mutate((collection.id, token), |properties| {
-			properties.recompute_consumed_space();
+			if let Some(properties) = properties {
+				properties.recompute_consumed_space();
+			}
 		});
 
 		Ok(())
modifiedpallets/refungible/src/weights.rsdiffbeforeafterboth
--- a/pallets/refungible/src/weights.rs
+++ b/pallets/refungible/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_refungible
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-30, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/refungible/src/weights.rs
 
@@ -52,6 +52,7 @@
 	fn burn_from() -> Weight;
 	fn set_token_property_permissions(b: u32, ) -> Weight;
 	fn set_token_properties(b: u32, ) -> Weight;
+	fn init_token_properties(b: u32, ) -> Weight;
 	fn delete_token_properties(b: u32, ) -> Weight;
 	fn repartition_item() -> Weight;
 	fn token_owner() -> Weight;
@@ -67,10 +68,6 @@
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:1 w:1)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:1 w:1)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:1)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:1)
@@ -79,21 +76,17 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `63471`
-		// Minimum execution time: 30_759_000 picoseconds.
-		Weight::from_parts(31_321_000, 63471)
-			.saturating_add(T::DbWeight::get().reads(4_u64))
-			.saturating_add(T::DbWeight::get().writes(6_u64))
+		//  Measured:  `4`
+		//  Estimated: `3530`
+		// Minimum execution time: 11_341_000 picoseconds.
+		Weight::from_parts(11_741_000, 3530)
+			.saturating_add(T::DbWeight::get().reads(2_u64))
+			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:1 w:1)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:200 w:200)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:200)
@@ -103,26 +96,20 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `28192 + b * (35279 ±0)`
-		// Minimum execution time: 4_024_000 picoseconds.
-		Weight::from_parts(4_145_000, 28192)
-			// Standard Error: 3_332
-			.saturating_add(Weight::from_parts(8_967_757, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(3_u64))
-			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
+		//  Measured:  `4`
+		//  Estimated: `3530`
+		// Minimum execution time: 2_665_000 picoseconds.
+		Weight::from_parts(2_791_000, 3530)
+			// Standard Error: 996
+			.saturating_add(Weight::from_parts(4_343_736, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
-			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:200 w:200)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:200 w:200)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:200)
@@ -132,26 +119,22 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `25652 + b * (37819 ±0)`
-		// Minimum execution time: 3_715_000 picoseconds.
-		Weight::from_parts(3_881_000, 25652)
-			// Standard Error: 3_275
-			.saturating_add(Weight::from_parts(10_525_271, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
-			.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `4`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 2_616_000 picoseconds.
+		Weight::from_parts(2_726_000, 3481)
+			// Standard Error: 665
+			.saturating_add(Weight::from_parts(5_554_066, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(1_u64))
+			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
-			.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(b.into())))
+			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:200 w:200)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:1 w:1)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:1)
@@ -161,15 +144,15 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `60931 + b * (2540 ±0)`
-		// Minimum execution time: 13_150_000 picoseconds.
-		Weight::from_parts(15_655_930, 60931)
-			// Standard Error: 4_170
-			.saturating_add(Weight::from_parts(5_673_702, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(3_u64))
+		//  Measured:  `4`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 3_697_000 picoseconds.
+		Weight::from_parts(2_136_481, 3481)
+			// Standard Error: 567
+			.saturating_add(Weight::from_parts(4_390_621, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))
-			.saturating_add(T::DbWeight::get().writes(3_u64))
+			.saturating_add(T::DbWeight::get().writes(2_u64))
 			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
 			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
@@ -183,10 +166,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn burn_item_partial() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `490`
-		//  Estimated: `15717`
-		// Minimum execution time: 28_992_000 picoseconds.
-		Weight::from_parts(29_325_000, 15717)
+		//  Measured:  `456`
+		//  Estimated: `8682`
+		// Minimum execution time: 22_859_000 picoseconds.
+		Weight::from_parts(23_295_000, 8682)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
@@ -204,10 +187,10 @@
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn burn_item_fully() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `14070`
-		// Minimum execution time: 27_980_000 picoseconds.
-		Weight::from_parts(28_582_000, 14070)
+		//  Measured:  `341`
+		//  Estimated: `3554`
+		// Minimum execution time: 21_477_000 picoseconds.
+		Weight::from_parts(22_037_000, 3554)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(6_u64))
 	}
@@ -217,10 +200,10 @@
 	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	fn transfer_normal() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `398`
-		//  Estimated: `9623`
-		// Minimum execution time: 18_746_000 picoseconds.
-		Weight::from_parts(19_096_000, 9623)
+		//  Measured:  `365`
+		//  Estimated: `6118`
+		// Minimum execution time: 13_714_000 picoseconds.
+		Weight::from_parts(14_050_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -234,10 +217,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_creating() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `13153`
-		// Minimum execution time: 21_719_000 picoseconds.
-		Weight::from_parts(22_219_000, 13153)
+		//  Measured:  `341`
+		//  Estimated: `6118`
+		// Minimum execution time: 15_879_000 picoseconds.
+		Weight::from_parts(16_266_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
@@ -251,10 +234,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `490`
-		//  Estimated: `13153`
-		// Minimum execution time: 24_784_000 picoseconds.
-		Weight::from_parts(25_231_000, 13153)
+		//  Measured:  `456`
+		//  Estimated: `6118`
+		// Minimum execution time: 18_186_000 picoseconds.
+		Weight::from_parts(18_682_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
@@ -268,10 +251,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_creating_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `15693`
-		// Minimum execution time: 24_865_000 picoseconds.
-		Weight::from_parts(25_253_000, 15693)
+		//  Measured:  `341`
+		//  Estimated: `6118`
+		// Minimum execution time: 17_943_000 picoseconds.
+		Weight::from_parts(18_333_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(6_u64))
 	}
@@ -281,10 +264,10 @@
 	/// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen)
 	fn approve() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `256`
+		//  Measured:  `223`
 		//  Estimated: `3554`
-		// Minimum execution time: 12_318_000 picoseconds.
-		Weight::from_parts(12_597_000, 3554)
+		// Minimum execution time: 8_391_000 picoseconds.
+		Weight::from_parts(8_637_000, 3554)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -294,10 +277,10 @@
 	/// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen)
 	fn approve_from() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `244`
+		//  Measured:  `211`
 		//  Estimated: `3554`
-		// Minimum execution time: 12_276_000 picoseconds.
-		Weight::from_parts(12_557_000, 3554)
+		// Minimum execution time: 8_519_000 picoseconds.
+		Weight::from_parts(8_760_000, 3554)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -309,10 +292,10 @@
 	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	fn transfer_from_normal() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `528`
-		//  Estimated: `13193`
-		// Minimum execution time: 26_852_000 picoseconds.
-		Weight::from_parts(27_427_000, 13193)
+		//  Measured:  `495`
+		//  Estimated: `6118`
+		// Minimum execution time: 19_554_000 picoseconds.
+		Weight::from_parts(20_031_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(3_u64))
 	}
@@ -328,10 +311,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_creating() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `16723`
-		// Minimum execution time: 29_893_000 picoseconds.
-		Weight::from_parts(30_345_000, 16723)
+		//  Measured:  `471`
+		//  Estimated: `6118`
+		// Minimum execution time: 21_338_000 picoseconds.
+		Weight::from_parts(21_803_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -347,10 +330,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `620`
-		//  Estimated: `16723`
-		// Minimum execution time: 32_784_000 picoseconds.
-		Weight::from_parts(33_322_000, 16723)
+		//  Measured:  `586`
+		//  Estimated: `6118`
+		// Minimum execution time: 24_179_000 picoseconds.
+		Weight::from_parts(24_647_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -366,10 +349,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_creating_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `19263`
-		// Minimum execution time: 32_987_000 picoseconds.
-		Weight::from_parts(33_428_000, 19263)
+		//  Measured:  `471`
+		//  Estimated: `6118`
+		// Minimum execution time: 24_008_000 picoseconds.
+		Weight::from_parts(24_545_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(6_u64))
 			.saturating_add(T::DbWeight::get().writes(7_u64))
 	}
@@ -389,10 +372,10 @@
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `17640`
-		// Minimum execution time: 38_277_000 picoseconds.
-		Weight::from_parts(38_983_000, 17640)
+		//  Measured:  `471`
+		//  Estimated: `3570`
+		// Minimum execution time: 27_907_000 picoseconds.
+		Weight::from_parts(28_489_000, 3570)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(7_u64))
 	}
@@ -401,45 +384,62 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_property_permissions(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `281`
+		//  Measured:  `314`
 		//  Estimated: `20191`
-		// Minimum execution time: 2_254_000 picoseconds.
-		Weight::from_parts(2_335_000, 20191)
-			// Standard Error: 44_906
-			.saturating_add(Weight::from_parts(12_118_499, 0).saturating_mul(b.into()))
+		// Minimum execution time: 1_460_000 picoseconds.
+		Weight::from_parts(1_564_000, 20191)
+			// Standard Error: 14_117
+			.saturating_add(Weight::from_parts(8_196_214, 0).saturating_mul(b.into()))
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
+	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
+	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible TokenProperties (r:1 w:1)
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Refungible TotalSupply (r:1 w:0)
+	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `458 + b * (261 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 11_249_000 picoseconds.
-		Weight::from_parts(11_420_000, 56460)
-			// Standard Error: 72_033
-			.saturating_add(Weight::from_parts(7_008_012, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
+		//  Measured:  `502 + b * (261 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 1_012_000 picoseconds.
+		Weight::from_parts(1_081_000, 36269)
+			// Standard Error: 6_838
+			.saturating_add(Weight::from_parts(5_801_181, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
-	/// Storage: Refungible TokenProperties (r:1 w:1)
+	/// Storage: Refungible TokenProperties (r:0 w:1)
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// The range of component `b` is `[0, 64]`.
+	fn init_token_properties(b: u32, ) -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 229_000 picoseconds.
+		Weight::from_parts(253_000, 0)
+			// Standard Error: 100_218
+			.saturating_add(Weight::from_parts(12_632_221, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().writes(1_u64))
+	}
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Refungible TotalSupply (r:1 w:0)
+	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
+	/// Storage: Refungible TokenProperties (r:1 w:1)
+	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `463 + b * (33291 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 11_368_000 picoseconds.
-		Weight::from_parts(11_546_000, 56460)
-			// Standard Error: 85_444
-			.saturating_add(Weight::from_parts(24_644_980, 0).saturating_mul(b.into()))
-			.saturating_add(T::DbWeight::get().reads(2_u64))
+		//  Measured:  `561 + b * (33291 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 1_014_000 picoseconds.
+		Weight::from_parts(1_065_000, 36269)
+			// Standard Error: 39_536
+			.saturating_add(Weight::from_parts(24_125_838, 0).saturating_mul(b.into()))
+			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Refungible TotalSupply (r:1 w:1)
@@ -448,10 +448,10 @@
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	fn repartition_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `321`
-		//  Estimated: `7059`
-		// Minimum execution time: 13_586_000 picoseconds.
-		Weight::from_parts(14_489_000, 7059)
+		//  Measured:  `288`
+		//  Estimated: `3554`
+		// Minimum execution time: 10_315_000 picoseconds.
+		Weight::from_parts(10_601_000, 3554)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -459,10 +459,10 @@
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	fn token_owner() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `321`
+		//  Measured:  `288`
 		//  Estimated: `6118`
-		// Minimum execution time: 7_049_000 picoseconds.
-		Weight::from_parts(7_320_000, 6118)
+		// Minimum execution time: 4_898_000 picoseconds.
+		Weight::from_parts(5_136_000, 6118)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 	}
 	/// Storage: Refungible CollectionAllowance (r:0 w:1)
@@ -471,8 +471,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_432_000 picoseconds.
-		Weight::from_parts(6_642_000, 0)
+		// Minimum execution time: 4_146_000 picoseconds.
+		Weight::from_parts(4_337_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: Refungible CollectionAllowance (r:1 w:0)
@@ -481,18 +481,18 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `4`
 		//  Estimated: `3576`
-		// Minimum execution time: 3_030_000 picoseconds.
-		Weight::from_parts(3_206_000, 3576)
+		// Minimum execution time: 2_170_000 picoseconds.
+		Weight::from_parts(2_301_000, 3576)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: Refungible TokenProperties (r:1 w:1)
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn repair_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `174`
+		//  Measured:  `120`
 		//  Estimated: `36269`
-		// Minimum execution time: 4_371_000 picoseconds.
-		Weight::from_parts(4_555_000, 36269)
+		// Minimum execution time: 2_098_000 picoseconds.
+		Weight::from_parts(2_251_000, 36269)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -504,10 +504,6 @@
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:1 w:1)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:1 w:1)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:1)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:1)
@@ -516,21 +512,17 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn create_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `63471`
-		// Minimum execution time: 30_759_000 picoseconds.
-		Weight::from_parts(31_321_000, 63471)
-			.saturating_add(RocksDbWeight::get().reads(4_u64))
-			.saturating_add(RocksDbWeight::get().writes(6_u64))
+		//  Measured:  `4`
+		//  Estimated: `3530`
+		// Minimum execution time: 11_341_000 picoseconds.
+		Weight::from_parts(11_741_000, 3530)
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
+			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:1 w:1)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:200 w:200)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:200)
@@ -540,26 +532,20 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `28192 + b * (35279 ±0)`
-		// Minimum execution time: 4_024_000 picoseconds.
-		Weight::from_parts(4_145_000, 28192)
-			// Standard Error: 3_332
-			.saturating_add(Weight::from_parts(8_967_757, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(3_u64))
-			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
+		//  Measured:  `4`
+		//  Estimated: `3530`
+		// Minimum execution time: 2_665_000 picoseconds.
+		Weight::from_parts(2_791_000, 3530)
+			// Standard Error: 996
+			.saturating_add(Weight::from_parts(4_343_736, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
-			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 35279).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:200 w:200)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:200 w:200)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:200)
@@ -569,26 +555,22 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `25652 + b * (37819 ±0)`
-		// Minimum execution time: 3_715_000 picoseconds.
-		Weight::from_parts(3_881_000, 25652)
-			// Standard Error: 3_275
-			.saturating_add(Weight::from_parts(10_525_271, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
-			.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(b.into())))
+		//  Measured:  `4`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 2_616_000 picoseconds.
+		Weight::from_parts(2_726_000, 3481)
+			// Standard Error: 665
+			.saturating_add(Weight::from_parts(5_554_066, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(1_u64))
+			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
-			.saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(b.into())))
-			.saturating_add(Weight::from_parts(0, 37819).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(b.into())))
+			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
 	/// Storage: Refungible TokensMinted (r:1 w:1)
 	/// Proof: Refungible TokensMinted (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
 	/// Storage: Refungible AccountBalance (r:200 w:200)
 	/// Proof: Refungible AccountBalance (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
-	/// Storage: Refungible TokenProperties (r:1 w:1)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
-	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
-	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Refungible Balance (r:0 w:200)
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	/// Storage: Refungible TotalSupply (r:0 w:1)
@@ -598,15 +580,15 @@
 	/// The range of component `b` is `[0, 200]`.
 	fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `285`
-		//  Estimated: `60931 + b * (2540 ±0)`
-		// Minimum execution time: 13_150_000 picoseconds.
-		Weight::from_parts(15_655_930, 60931)
-			// Standard Error: 4_170
-			.saturating_add(Weight::from_parts(5_673_702, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(3_u64))
+		//  Measured:  `4`
+		//  Estimated: `3481 + b * (2540 ±0)`
+		// Minimum execution time: 3_697_000 picoseconds.
+		Weight::from_parts(2_136_481, 3481)
+			// Standard Error: 567
+			.saturating_add(Weight::from_parts(4_390_621, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))
-			.saturating_add(RocksDbWeight::get().writes(3_u64))
+			.saturating_add(RocksDbWeight::get().writes(2_u64))
 			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
 			.saturating_add(Weight::from_parts(0, 2540).saturating_mul(b.into()))
 	}
@@ -620,10 +602,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn burn_item_partial() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `490`
-		//  Estimated: `15717`
-		// Minimum execution time: 28_992_000 picoseconds.
-		Weight::from_parts(29_325_000, 15717)
+		//  Measured:  `456`
+		//  Estimated: `8682`
+		// Minimum execution time: 22_859_000 picoseconds.
+		Weight::from_parts(23_295_000, 8682)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
@@ -641,10 +623,10 @@
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn burn_item_fully() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `14070`
-		// Minimum execution time: 27_980_000 picoseconds.
-		Weight::from_parts(28_582_000, 14070)
+		//  Measured:  `341`
+		//  Estimated: `3554`
+		// Minimum execution time: 21_477_000 picoseconds.
+		Weight::from_parts(22_037_000, 3554)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(6_u64))
 	}
@@ -654,10 +636,10 @@
 	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	fn transfer_normal() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `398`
-		//  Estimated: `9623`
-		// Minimum execution time: 18_746_000 picoseconds.
-		Weight::from_parts(19_096_000, 9623)
+		//  Measured:  `365`
+		//  Estimated: `6118`
+		// Minimum execution time: 13_714_000 picoseconds.
+		Weight::from_parts(14_050_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -671,10 +653,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_creating() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `13153`
-		// Minimum execution time: 21_719_000 picoseconds.
-		Weight::from_parts(22_219_000, 13153)
+		//  Measured:  `341`
+		//  Estimated: `6118`
+		// Minimum execution time: 15_879_000 picoseconds.
+		Weight::from_parts(16_266_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
@@ -688,10 +670,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `490`
-		//  Estimated: `13153`
-		// Minimum execution time: 24_784_000 picoseconds.
-		Weight::from_parts(25_231_000, 13153)
+		//  Measured:  `456`
+		//  Estimated: `6118`
+		// Minimum execution time: 18_186_000 picoseconds.
+		Weight::from_parts(18_682_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(4_u64))
 	}
@@ -705,10 +687,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_creating_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `375`
-		//  Estimated: `15693`
-		// Minimum execution time: 24_865_000 picoseconds.
-		Weight::from_parts(25_253_000, 15693)
+		//  Measured:  `341`
+		//  Estimated: `6118`
+		// Minimum execution time: 17_943_000 picoseconds.
+		Weight::from_parts(18_333_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(6_u64))
 	}
@@ -718,10 +700,10 @@
 	/// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen)
 	fn approve() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `256`
+		//  Measured:  `223`
 		//  Estimated: `3554`
-		// Minimum execution time: 12_318_000 picoseconds.
-		Weight::from_parts(12_597_000, 3554)
+		// Minimum execution time: 8_391_000 picoseconds.
+		Weight::from_parts(8_637_000, 3554)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -731,10 +713,10 @@
 	/// Proof: Refungible Allowance (max_values: None, max_size: Some(105), added: 2580, mode: MaxEncodedLen)
 	fn approve_from() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `244`
+		//  Measured:  `211`
 		//  Estimated: `3554`
-		// Minimum execution time: 12_276_000 picoseconds.
-		Weight::from_parts(12_557_000, 3554)
+		// Minimum execution time: 8_519_000 picoseconds.
+		Weight::from_parts(8_760_000, 3554)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -746,10 +728,10 @@
 	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	fn transfer_from_normal() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `528`
-		//  Estimated: `13193`
-		// Minimum execution time: 26_852_000 picoseconds.
-		Weight::from_parts(27_427_000, 13193)
+		//  Measured:  `495`
+		//  Estimated: `6118`
+		// Minimum execution time: 19_554_000 picoseconds.
+		Weight::from_parts(20_031_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
 			.saturating_add(RocksDbWeight::get().writes(3_u64))
 	}
@@ -765,10 +747,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_creating() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `16723`
-		// Minimum execution time: 29_893_000 picoseconds.
-		Weight::from_parts(30_345_000, 16723)
+		//  Measured:  `471`
+		//  Estimated: `6118`
+		// Minimum execution time: 21_338_000 picoseconds.
+		Weight::from_parts(21_803_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
@@ -784,10 +766,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `620`
-		//  Estimated: `16723`
-		// Minimum execution time: 32_784_000 picoseconds.
-		Weight::from_parts(33_322_000, 16723)
+		//  Measured:  `586`
+		//  Estimated: `6118`
+		// Minimum execution time: 24_179_000 picoseconds.
+		Weight::from_parts(24_647_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(5_u64))
 	}
@@ -803,10 +785,10 @@
 	/// Proof: Refungible Owned (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen)
 	fn transfer_from_creating_removing() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `19263`
-		// Minimum execution time: 32_987_000 picoseconds.
-		Weight::from_parts(33_428_000, 19263)
+		//  Measured:  `471`
+		//  Estimated: `6118`
+		// Minimum execution time: 24_008_000 picoseconds.
+		Weight::from_parts(24_545_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(6_u64))
 			.saturating_add(RocksDbWeight::get().writes(7_u64))
 	}
@@ -826,10 +808,10 @@
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn burn_from() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `505`
-		//  Estimated: `17640`
-		// Minimum execution time: 38_277_000 picoseconds.
-		Weight::from_parts(38_983_000, 17640)
+		//  Measured:  `471`
+		//  Estimated: `3570`
+		// Minimum execution time: 27_907_000 picoseconds.
+		Weight::from_parts(28_489_000, 3570)
 			.saturating_add(RocksDbWeight::get().reads(5_u64))
 			.saturating_add(RocksDbWeight::get().writes(7_u64))
 	}
@@ -838,45 +820,62 @@
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_property_permissions(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `281`
+		//  Measured:  `314`
 		//  Estimated: `20191`
-		// Minimum execution time: 2_254_000 picoseconds.
-		Weight::from_parts(2_335_000, 20191)
-			// Standard Error: 44_906
-			.saturating_add(Weight::from_parts(12_118_499, 0).saturating_mul(b.into()))
+		// Minimum execution time: 1_460_000 picoseconds.
+		Weight::from_parts(1_564_000, 20191)
+			// Standard Error: 14_117
+			.saturating_add(Weight::from_parts(8_196_214, 0).saturating_mul(b.into()))
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
-	/// Storage: Refungible TokenProperties (r:1 w:1)
-	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Refungible TokenProperties (r:1 w:1)
+	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// Storage: Refungible TotalSupply (r:1 w:0)
+	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn set_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `458 + b * (261 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 11_249_000 picoseconds.
-		Weight::from_parts(11_420_000, 56460)
-			// Standard Error: 72_033
-			.saturating_add(Weight::from_parts(7_008_012, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
+		//  Measured:  `502 + b * (261 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 1_012_000 picoseconds.
+		Weight::from_parts(1_081_000, 36269)
+			// Standard Error: 6_838
+			.saturating_add(Weight::from_parts(5_801_181, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
-	/// Storage: Refungible TokenProperties (r:1 w:1)
+	/// Storage: Refungible TokenProperties (r:0 w:1)
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
+	/// The range of component `b` is `[0, 64]`.
+	fn init_token_properties(b: u32, ) -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 229_000 picoseconds.
+		Weight::from_parts(253_000, 0)
+			// Standard Error: 100_218
+			.saturating_add(Weight::from_parts(12_632_221, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().writes(1_u64))
+	}
 	/// Storage: Common CollectionPropertyPermissions (r:1 w:0)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
+	/// Storage: Refungible TotalSupply (r:1 w:0)
+	/// Proof: Refungible TotalSupply (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
+	/// Storage: Refungible TokenProperties (r:1 w:1)
+	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	/// The range of component `b` is `[0, 64]`.
 	fn delete_token_properties(b: u32, ) -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `463 + b * (33291 ±0)`
-		//  Estimated: `56460`
-		// Minimum execution time: 11_368_000 picoseconds.
-		Weight::from_parts(11_546_000, 56460)
-			// Standard Error: 85_444
-			.saturating_add(Weight::from_parts(24_644_980, 0).saturating_mul(b.into()))
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
+		//  Measured:  `561 + b * (33291 ±0)`
+		//  Estimated: `36269`
+		// Minimum execution time: 1_014_000 picoseconds.
+		Weight::from_parts(1_065_000, 36269)
+			// Standard Error: 39_536
+			.saturating_add(Weight::from_parts(24_125_838, 0).saturating_mul(b.into()))
+			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Refungible TotalSupply (r:1 w:1)
@@ -885,10 +884,10 @@
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	fn repartition_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `321`
-		//  Estimated: `7059`
-		// Minimum execution time: 13_586_000 picoseconds.
-		Weight::from_parts(14_489_000, 7059)
+		//  Measured:  `288`
+		//  Estimated: `3554`
+		// Minimum execution time: 10_315_000 picoseconds.
+		Weight::from_parts(10_601_000, 3554)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -896,10 +895,10 @@
 	/// Proof: Refungible Balance (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
 	fn token_owner() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `321`
+		//  Measured:  `288`
 		//  Estimated: `6118`
-		// Minimum execution time: 7_049_000 picoseconds.
-		Weight::from_parts(7_320_000, 6118)
+		// Minimum execution time: 4_898_000 picoseconds.
+		Weight::from_parts(5_136_000, 6118)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 	}
 	/// Storage: Refungible CollectionAllowance (r:0 w:1)
@@ -908,8 +907,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 6_432_000 picoseconds.
-		Weight::from_parts(6_642_000, 0)
+		// Minimum execution time: 4_146_000 picoseconds.
+		Weight::from_parts(4_337_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
 	/// Storage: Refungible CollectionAllowance (r:1 w:0)
@@ -918,18 +917,18 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `4`
 		//  Estimated: `3576`
-		// Minimum execution time: 3_030_000 picoseconds.
-		Weight::from_parts(3_206_000, 3576)
+		// Minimum execution time: 2_170_000 picoseconds.
+		Weight::from_parts(2_301_000, 3576)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 	}
 	/// Storage: Refungible TokenProperties (r:1 w:1)
 	/// Proof: Refungible TokenProperties (max_values: None, max_size: Some(32804), added: 35279, mode: MaxEncodedLen)
 	fn repair_item() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `174`
+		//  Measured:  `120`
 		//  Estimated: `36269`
-		// Minimum execution time: 4_371_000 picoseconds.
-		Weight::from_parts(4_555_000, 36269)
+		// Minimum execution time: 2_098_000 picoseconds.
+		Weight::from_parts(2_251_000, 36269)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
modifiedpallets/structure/src/weights.rsdiffbeforeafterboth
--- a/pallets/structure/src/weights.rs
+++ b/pallets/structure/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_structure
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/structure/src/weights.rs
 
@@ -45,10 +45,10 @@
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	fn find_parent() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `634`
-		//  Estimated: `7847`
-		// Minimum execution time: 10_781_000 picoseconds.
-		Weight::from_parts(11_675_000, 7847)
+		//  Measured:  `667`
+		//  Estimated: `4325`
+		// Minimum execution time: 7_344_000 picoseconds.
+		Weight::from_parts(7_578_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(2_u64))
 	}
 }
@@ -61,10 +61,10 @@
 	/// Proof: Nonfungible TokenData (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
 	fn find_parent() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `634`
-		//  Estimated: `7847`
-		// Minimum execution time: 10_781_000 picoseconds.
-		Weight::from_parts(11_675_000, 7847)
+		//  Measured:  `667`
+		//  Estimated: `4325`
+		// Minimum execution time: 7_344_000 picoseconds.
+		Weight::from_parts(7_578_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(2_u64))
 	}
 }
modifiedpallets/unique/src/weights.rsdiffbeforeafterboth
--- a/pallets/unique/src/weights.rs
+++ b/pallets/unique/src/weights.rs
@@ -3,13 +3,13 @@
 //! Autogenerated weights for pallet_unique
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -20,7 +20,7 @@
 // *
 // --template=.maintain/frame-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./pallets/unique/src/weights.rs
 
@@ -57,6 +57,8 @@
 	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
 	/// Storage: System Account (r:2 w:2)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+	/// Storage: Common AdminAmount (r:0 w:1)
+	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Common CollectionProperties (r:0 w:1)
@@ -66,11 +68,11 @@
 	fn create_collection() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `245`
-		//  Estimated: `9174`
-		// Minimum execution time: 31_198_000 picoseconds.
-		Weight::from_parts(32_046_000, 9174)
+		//  Estimated: `6196`
+		// Minimum execution time: 26_618_000 picoseconds.
+		Weight::from_parts(27_287_000, 6196)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
-			.saturating_add(T::DbWeight::get().writes(6_u64))
+			.saturating_add(T::DbWeight::get().writes(7_u64))
 	}
 	/// Storage: Common CollectionById (r:1 w:1)
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
@@ -88,10 +90,10 @@
 	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
 	fn destroy_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1086`
-		//  Estimated: `9336`
-		// Minimum execution time: 48_208_000 picoseconds.
-		Weight::from_parts(49_031_000, 9336)
+		//  Measured:  `1200`
+		//  Estimated: `4325`
+		// Minimum execution time: 37_428_000 picoseconds.
+		Weight::from_parts(38_258_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(6_u64))
 	}
@@ -101,10 +103,10 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn add_to_allow_list() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_852_000 picoseconds.
-		Weight::from_parts(15_268_000, 4325)
+		// Minimum execution time: 9_968_000 picoseconds.
+		Weight::from_parts(10_388_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -114,10 +116,10 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn remove_from_allow_list() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1000`
+		//  Measured:  `1033`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_595_000 picoseconds.
-		Weight::from_parts(14_933_000, 4325)
+		// Minimum execution time: 9_600_000 picoseconds.
+		Weight::from_parts(9_974_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -125,10 +127,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn change_collection_owner() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_132_000 picoseconds.
-		Weight::from_parts(14_501_000, 4325)
+		// Minimum execution time: 9_185_000 picoseconds.
+		Weight::from_parts(9_525_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -140,10 +142,10 @@
 	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	fn add_collection_admin() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
-		//  Estimated: `11349`
-		// Minimum execution time: 17_229_000 picoseconds.
-		Weight::from_parts(17_657_000, 11349)
+		//  Measured:  `1012`
+		//  Estimated: `4325`
+		// Minimum execution time: 12_704_000 picoseconds.
+		Weight::from_parts(13_115_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -156,9 +158,9 @@
 	fn remove_collection_admin() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `1107`
-		//  Estimated: `11349`
-		// Minimum execution time: 19_827_000 picoseconds.
-		Weight::from_parts(20_479_000, 11349)
+		//  Estimated: `4325`
+		// Minimum execution time: 14_185_000 picoseconds.
+		Weight::from_parts(14_492_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -166,10 +168,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_collection_sponsor() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_049_000 picoseconds.
-		Weight::from_parts(14_420_000, 4325)
+		// Minimum execution time: 9_217_000 picoseconds.
+		Weight::from_parts(9_499_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -177,10 +179,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn confirm_sponsorship() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `999`
+		//  Measured:  `1032`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_689_000 picoseconds.
-		Weight::from_parts(14_044_000, 4325)
+		// Minimum execution time: 8_993_000 picoseconds.
+		Weight::from_parts(9_264_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -188,10 +190,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn remove_collection_sponsor() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `999`
+		//  Measured:  `1032`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_275_000 picoseconds.
-		Weight::from_parts(13_598_000, 4325)
+		// Minimum execution time: 8_804_000 picoseconds.
+		Weight::from_parts(9_302_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -199,10 +201,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_transfers_enabled_flag() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 9_411_000 picoseconds.
-		Weight::from_parts(9_706_000, 4325)
+		// Minimum execution time: 5_985_000 picoseconds.
+		Weight::from_parts(6_155_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -210,10 +212,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_collection_limits() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_864_000 picoseconds.
-		Weight::from_parts(14_368_000, 4325)
+		// Minimum execution time: 9_288_000 picoseconds.
+		Weight::from_parts(9_608_000, 4325)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -221,10 +223,10 @@
 	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
 	fn force_repair_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `265`
+		//  Measured:  `298`
 		//  Estimated: `44457`
-		// Minimum execution time: 7_104_000 picoseconds.
-		Weight::from_parts(7_293_000, 44457)
+		// Minimum execution time: 4_904_000 picoseconds.
+		Weight::from_parts(5_142_000, 44457)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
@@ -238,6 +240,8 @@
 	/// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
 	/// Storage: System Account (r:2 w:2)
 	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
+	/// Storage: Common AdminAmount (r:0 w:1)
+	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	/// Storage: Common CollectionPropertyPermissions (r:0 w:1)
 	/// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)
 	/// Storage: Common CollectionProperties (r:0 w:1)
@@ -247,11 +251,11 @@
 	fn create_collection() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `245`
-		//  Estimated: `9174`
-		// Minimum execution time: 31_198_000 picoseconds.
-		Weight::from_parts(32_046_000, 9174)
+		//  Estimated: `6196`
+		// Minimum execution time: 26_618_000 picoseconds.
+		Weight::from_parts(27_287_000, 6196)
 			.saturating_add(RocksDbWeight::get().reads(4_u64))
-			.saturating_add(RocksDbWeight::get().writes(6_u64))
+			.saturating_add(RocksDbWeight::get().writes(7_u64))
 	}
 	/// Storage: Common CollectionById (r:1 w:1)
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
@@ -269,10 +273,10 @@
 	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
 	fn destroy_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1086`
-		//  Estimated: `9336`
-		// Minimum execution time: 48_208_000 picoseconds.
-		Weight::from_parts(49_031_000, 9336)
+		//  Measured:  `1200`
+		//  Estimated: `4325`
+		// Minimum execution time: 37_428_000 picoseconds.
+		Weight::from_parts(38_258_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(6_u64))
 	}
@@ -282,10 +286,10 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn add_to_allow_list() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_852_000 picoseconds.
-		Weight::from_parts(15_268_000, 4325)
+		// Minimum execution time: 9_968_000 picoseconds.
+		Weight::from_parts(10_388_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -295,10 +299,10 @@
 	/// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)
 	fn remove_from_allow_list() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `1000`
+		//  Measured:  `1033`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_595_000 picoseconds.
-		Weight::from_parts(14_933_000, 4325)
+		// Minimum execution time: 9_600_000 picoseconds.
+		Weight::from_parts(9_974_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -306,10 +310,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn change_collection_owner() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_132_000 picoseconds.
-		Weight::from_parts(14_501_000, 4325)
+		// Minimum execution time: 9_185_000 picoseconds.
+		Weight::from_parts(9_525_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -321,10 +325,10 @@
 	/// Proof: Common AdminAmount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
 	fn add_collection_admin() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
-		//  Estimated: `11349`
-		// Minimum execution time: 17_229_000 picoseconds.
-		Weight::from_parts(17_657_000, 11349)
+		//  Measured:  `1012`
+		//  Estimated: `4325`
+		// Minimum execution time: 12_704_000 picoseconds.
+		Weight::from_parts(13_115_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -337,9 +341,9 @@
 	fn remove_collection_admin() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `1107`
-		//  Estimated: `11349`
-		// Minimum execution time: 19_827_000 picoseconds.
-		Weight::from_parts(20_479_000, 11349)
+		//  Estimated: `4325`
+		// Minimum execution time: 14_185_000 picoseconds.
+		Weight::from_parts(14_492_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(3_u64))
 			.saturating_add(RocksDbWeight::get().writes(2_u64))
 	}
@@ -347,10 +351,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_collection_sponsor() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 14_049_000 picoseconds.
-		Weight::from_parts(14_420_000, 4325)
+		// Minimum execution time: 9_217_000 picoseconds.
+		Weight::from_parts(9_499_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -358,10 +362,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn confirm_sponsorship() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `999`
+		//  Measured:  `1032`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_689_000 picoseconds.
-		Weight::from_parts(14_044_000, 4325)
+		// Minimum execution time: 8_993_000 picoseconds.
+		Weight::from_parts(9_264_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -369,10 +373,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn remove_collection_sponsor() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `999`
+		//  Measured:  `1032`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_275_000 picoseconds.
-		Weight::from_parts(13_598_000, 4325)
+		// Minimum execution time: 8_804_000 picoseconds.
+		Weight::from_parts(9_302_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -380,10 +384,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_transfers_enabled_flag() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 9_411_000 picoseconds.
-		Weight::from_parts(9_706_000, 4325)
+		// Minimum execution time: 5_985_000 picoseconds.
+		Weight::from_parts(6_155_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -391,10 +395,10 @@
 	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)
 	fn set_collection_limits() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `967`
+		//  Measured:  `1000`
 		//  Estimated: `4325`
-		// Minimum execution time: 13_864_000 picoseconds.
-		Weight::from_parts(14_368_000, 4325)
+		// Minimum execution time: 9_288_000 picoseconds.
+		Weight::from_parts(9_608_000, 4325)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
@@ -402,10 +406,10 @@
 	/// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)
 	fn force_repair_collection() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `265`
+		//  Measured:  `298`
 		//  Estimated: `44457`
-		// Minimum execution time: 7_104_000 picoseconds.
-		Weight::from_parts(7_293_000, 44457)
+		// Minimum execution time: 4_904_000 picoseconds.
+		Weight::from_parts(5_142_000, 44457)
 			.saturating_add(RocksDbWeight::get().reads(1_u64))
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
 	}
modifiedprimitives/common/src/constants.rsdiffbeforeafterboth
--- a/primitives/common/src/constants.rs
+++ b/primitives/common/src/constants.rs
@@ -52,10 +52,10 @@
 pub const SESSION_LENGTH: BlockNumber = HOURS;
 
 // Targeting 0.1 UNQ per transfer
-pub const WEIGHT_TO_FEE_COEFF: u64 = /*<weight2fee>*/76_840_511_488_584_762/*</weight2fee>*/;
+pub const WEIGHT_TO_FEE_COEFF: u64 = /*<weight2fee>*/77_334_604_063_436_322/*</weight2fee>*/;
 
 // Targeting 0.15 UNQ per transfer via ETH
-pub const MIN_GAS_PRICE: u64 = /*<mingasprice>*/1_906_626_161_453/*</mingasprice>*/;
+pub const MIN_GAS_PRICE: u64 = /*<mingasprice>*/1_920_639_188_722/*</mingasprice>*/;
 
 /// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
 /// This is used to limit the maximal weight of a single extrinsic.
modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -692,7 +692,7 @@
                     {
                         use codec::Decode;
 
-                        let uxt_decode = <<Block as BlockT>::Extrinsic as Decode>::decode(&mut &uxt)
+                        let uxt_decode = <<Block as BlockT>::Extrinsic as Decode>::decode(&mut &*uxt)
                             .map_err(|_| DispatchError::Other("failed to decode the extrinsic"));
 
                         let uxt = match uxt_decode {
modifiedruntime/common/weights/xcm.rsdiffbeforeafterboth
--- a/runtime/common/weights/xcm.rs
+++ b/runtime/common/weights/xcm.rs
@@ -3,12 +3,12 @@
 //! Autogenerated weights for pallet_xcm
 //!
 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-04-20, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-09-26, STEPS: `50`, REPEAT: 400, LOW RANGE: `[]`, HIGH RANGE: `[]`
 //! WORST CASE MAP SIZE: `1000000`
 //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
 
 // Executed Command:
-// target/release/unique-collator
+// target/production/unique-collator
 // benchmark
 // pallet
 // --pallet
@@ -19,7 +19,7 @@
 // *
 // --template=.maintain/external-weight-template.hbs
 // --steps=50
-// --repeat=80
+// --repeat=400
 // --heap-pages=4096
 // --output=./runtime/common/weights/xcm.rs
 
@@ -47,10 +47,10 @@
 	/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
 	fn send() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `211`
-		//  Estimated: `10460`
-		// Minimum execution time: 17_089_000 picoseconds.
-		Weight::from_parts(17_615_000, 10460)
+		//  Measured:  `278`
+		//  Estimated: `3743`
+		// Minimum execution time: 12_999_000 picoseconds.
+		Weight::from_parts(13_426_000, 3743)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -58,28 +58,28 @@
 	/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
 	fn teleport_assets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `136`
+		//  Measured:  `169`
 		//  Estimated: `1489`
-		// Minimum execution time: 14_443_000 picoseconds.
-		Weight::from_parts(14_895_000, 1489)
+		// Minimum execution time: 10_299_000 picoseconds.
+		Weight::from_parts(10_647_000, 1489)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	/// Storage: ParachainInfo ParachainId (r:1 w:0)
 	/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
 	fn reserve_transfer_assets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `136`
+		//  Measured:  `169`
 		//  Estimated: `1489`
-		// Minimum execution time: 14_340_000 picoseconds.
-		Weight::from_parts(14_748_000, 1489)
+		// Minimum execution time: 10_094_000 picoseconds.
+		Weight::from_parts(10_464_000, 1489)
 			.saturating_add(T::DbWeight::get().reads(1_u64))
 	}
 	fn execute() -> Weight {
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_266_000 picoseconds.
-		Weight::from_parts(5_430_000, 0)
+		// Minimum execution time: 3_485_000 picoseconds.
+		Weight::from_parts(3_664_000, 0)
 	}
 	/// Storage: PolkadotXcm SupportedVersion (r:0 w:1)
 	/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
@@ -87,8 +87,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 5_621_000 picoseconds.
-		Weight::from_parts(5_888_000, 0)
+		// Minimum execution time: 3_717_000 picoseconds.
+		Weight::from_parts(3_866_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1)
@@ -97,8 +97,8 @@
 		// Proof Size summary in bytes:
 		//  Measured:  `0`
 		//  Estimated: `0`
-		// Minimum execution time: 2_087_000 picoseconds.
-		Weight::from_parts(2_218_000, 0)
+		// Minimum execution time: 1_328_000 picoseconds.
+		Weight::from_parts(1_400_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
 	}
 	/// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)
@@ -119,10 +119,10 @@
 	/// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)
 	fn force_subscribe_version_notify() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `211`
-		//  Estimated: `16043`
-		// Minimum execution time: 21_067_000 picoseconds.
-		Weight::from_parts(21_466_000, 16043)
+		//  Measured:  `278`
+		//  Estimated: `3743`
+		// Minimum execution time: 16_057_000 picoseconds.
+		Weight::from_parts(16_483_000, 3743)
 			.saturating_add(T::DbWeight::get().reads(7_u64))
 			.saturating_add(T::DbWeight::get().writes(5_u64))
 	}
@@ -142,21 +142,31 @@
 	/// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)
 	fn force_unsubscribe_version_notify() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `394`
-		//  Estimated: `15628`
-		// Minimum execution time: 23_986_000 picoseconds.
-		Weight::from_parts(25_328_000, 15628)
+		//  Measured:  `461`
+		//  Estimated: `3926`
+		// Minimum execution time: 18_009_000 picoseconds.
+		Weight::from_parts(18_565_000, 3926)
 			.saturating_add(T::DbWeight::get().reads(6_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
 	}
+	/// Storage: PolkadotXcm XcmExecutionSuspended (r:0 w:1)
+	/// Proof Skipped: PolkadotXcm XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured)
+	fn force_suspension() -> Weight {
+		// Proof Size summary in bytes:
+		//  Measured:  `0`
+		//  Estimated: `0`
+		// Minimum execution time: 1_378_000 picoseconds.
+		Weight::from_parts(1_447_000, 0)
+			.saturating_add(T::DbWeight::get().writes(1_u64))
+	}
 	/// Storage: PolkadotXcm SupportedVersion (r:4 w:2)
 	/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
 	fn migrate_supported_version() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `131`
-		//  Estimated: `11021`
-		// Minimum execution time: 15_073_000 picoseconds.
-		Weight::from_parts(15_451_000, 11021)
+		//  Measured:  `196`
+		//  Estimated: `11086`
+		// Minimum execution time: 10_770_000 picoseconds.
+		Weight::from_parts(11_090_000, 11086)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -164,10 +174,10 @@
 	/// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)
 	fn migrate_version_notifiers() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `135`
-		//  Estimated: `11025`
-		// Minimum execution time: 14_840_000 picoseconds.
-		Weight::from_parts(15_347_000, 11025)
+		//  Measured:  `200`
+		//  Estimated: `11090`
+		// Minimum execution time: 10_760_000 picoseconds.
+		Weight::from_parts(11_091_000, 11090)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -175,10 +185,10 @@
 	/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
 	fn already_notified_target() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `142`
-		//  Estimated: `13507`
-		// Minimum execution time: 16_215_000 picoseconds.
-		Weight::from_parts(16_461_000, 13507)
+		//  Measured:  `207`
+		//  Estimated: `13572`
+		// Minimum execution time: 12_026_000 picoseconds.
+		Weight::from_parts(12_321_000, 13572)
 			.saturating_add(T::DbWeight::get().reads(5_u64))
 	}
 	/// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1)
@@ -195,10 +205,10 @@
 	/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
 	fn notify_current_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `278`
-		//  Estimated: `17013`
-		// Minimum execution time: 21_705_000 picoseconds.
-		Weight::from_parts(22_313_000, 17013)
+		//  Measured:  `345`
+		//  Estimated: `6285`
+		// Minimum execution time: 15_508_000 picoseconds.
+		Weight::from_parts(15_885_000, 6285)
 			.saturating_add(T::DbWeight::get().reads(7_u64))
 			.saturating_add(T::DbWeight::get().writes(3_u64))
 	}
@@ -206,20 +216,20 @@
 	/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
 	fn notify_target_migration_fail() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `172`
-		//  Estimated: `8587`
-		// Minimum execution time: 7_869_000 picoseconds.
-		Weight::from_parts(8_052_000, 8587)
+		//  Measured:  `239`
+		//  Estimated: `8654`
+		// Minimum execution time: 5_580_000 picoseconds.
+		Weight::from_parts(5_753_000, 8654)
 			.saturating_add(T::DbWeight::get().reads(3_u64))
 	}
 	/// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)
 	/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
 	fn migrate_version_notify_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `142`
-		//  Estimated: `11032`
-		// Minimum execution time: 15_340_000 picoseconds.
-		Weight::from_parts(15_738_000, 11032)
+		//  Measured:  `207`
+		//  Estimated: `11097`
+		// Minimum execution time: 10_951_000 picoseconds.
+		Weight::from_parts(11_341_000, 11097)
 			.saturating_add(T::DbWeight::get().reads(4_u64))
 			.saturating_add(T::DbWeight::get().writes(2_u64))
 	}
@@ -237,16 +247,12 @@
 	/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
 	fn migrate_and_notify_old_targets() -> Weight {
 		// Proof Size summary in bytes:
-		//  Measured:  `284`
-		//  Estimated: `21999`
-		// Minimum execution time: 27_809_000 picoseconds.
-		Weight::from_parts(28_290_000, 21999)
+		//  Measured:  `349`
+		//  Estimated: `11239`
+		// Minimum execution time: 19_990_000 picoseconds.
+		Weight::from_parts(20_433_000, 11239)
 			.saturating_add(T::DbWeight::get().reads(9_u64))
 			.saturating_add(T::DbWeight::get().writes(4_u64))
-	}
-
-	fn force_suspension() -> Weight {
-		Default::default()
 	}
 }
 
modifiedruntime/tests/src/tests.rsdiffbeforeafterboth
after · runtime/tests/src/tests.rs
1// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.2// This file is part of Unique Network.34// Unique Network is free software: you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation, either version 3 of the License, or7// (at your option) any later version.89// Unique Network is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the12// GNU General Public License for more details.1314// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617// Tests to be written here18use crate::{Test, TestCrossAccountId, CollectionCreationPrice, RuntimeOrigin, Unique, new_test_ext};19use up_data_structs::{20	COLLECTION_NUMBER_LIMIT, CollectionId, CreateItemData, CreateFungibleData, CreateNftData,21	CreateReFungibleData, MAX_DECIMAL_POINTS, COLLECTION_ADMINS_LIMIT, TokenId,22	MAX_TOKEN_OWNERSHIP, CreateCollectionData, CollectionMode, AccessMode, CollectionPermissions,23	PropertyKeyPermission, PropertyPermission, Property, CollectionPropertiesVec,24	CollectionPropertiesPermissionsVec,25};26use frame_support::{assert_noop, assert_ok, assert_err};27use sp_std::convert::TryInto;28use pallet_evm::account::CrossAccountId;29use pallet_common::Error as CommonError;30use pallet_unique::Error as UniqueError;3132fn add_balance(user: u64, value: u64) {33	const DONOR_USER: u64 = 999;34	assert_ok!(<pallet_balances::Pallet<Test>>::force_set_balance(35		RuntimeOrigin::root(),36		DONOR_USER,37		value,38	));39	assert_ok!(<pallet_balances::Pallet<Test>>::force_transfer(40		RuntimeOrigin::root(),41		DONOR_USER,42		user,43		value44	));45}4647fn default_nft_data() -> CreateNftData {48	CreateNftData {49		properties: vec![Property {50			key: b"test-prop".to_vec().try_into().unwrap(),51			value: b"test-nft-prop".to_vec().try_into().unwrap(),52		}]53		.try_into()54		.unwrap(),55	}56}5758fn default_fungible_data() -> CreateFungibleData {59	CreateFungibleData { value: 5 }60}6162fn default_re_fungible_data() -> CreateReFungibleData {63	CreateReFungibleData {64		pieces: 1023,65		properties: vec![Property {66			key: b"test-prop".to_vec().try_into().unwrap(),67			value: b"test-nft-prop".to_vec().try_into().unwrap(),68		}]69		.try_into()70		.unwrap(),71	}72}7374fn create_test_collection_for_owner(75	mode: &CollectionMode,76	owner: u64,77	id: CollectionId,78) -> CollectionId {79	add_balance(owner, CollectionCreationPrice::get() as u64 + 1);8081	let col_name1: Vec<u16> = "Test1\0".encode_utf16().collect::<Vec<u16>>();82	let col_desc1: Vec<u16> = "TestDescription1\0".encode_utf16().collect::<Vec<u16>>();83	let token_prefix1: Vec<u8> = b"token_prefix1\0".to_vec();84	let token_property_permissions: CollectionPropertiesPermissionsVec =85		vec![PropertyKeyPermission {86			key: b"test-prop".to_vec().try_into().unwrap(),87			permission: PropertyPermission {88				mutable: true,89				collection_admin: false,90				token_owner: true,91			},92		}]93		.try_into()94		.unwrap();95	let properties: CollectionPropertiesVec = vec![Property {96		key: b"test-collection-prop".to_vec().try_into().unwrap(),97		value: b"test-collection-value".to_vec().try_into().unwrap(),98	}]99	.try_into()100	.unwrap();101102	let data = CreateCollectionData {103		name: col_name1.try_into().unwrap(),104		description: col_desc1.try_into().unwrap(),105		token_prefix: token_prefix1.try_into().unwrap(),106		mode: mode.clone(),107		token_property_permissions: token_property_permissions.clone(),108		properties: properties.clone(),109		..Default::default()110	};111112	let origin1 = RuntimeOrigin::signed(owner);113	assert_ok!(Unique::create_collection_ex(origin1, data));114115	let saved_col_name: Vec<u16> = "Test1\0".encode_utf16().collect::<Vec<u16>>();116	let saved_description: Vec<u16> = "TestDescription1\0".encode_utf16().collect::<Vec<u16>>();117	let saved_prefix: Vec<u8> = b"token_prefix1\0".to_vec();118	assert_eq!(119		<pallet_common::CollectionById<Test>>::get(id)120			.unwrap()121			.owner,122		owner123	);124	assert_eq!(125		<pallet_common::CollectionById<Test>>::get(id).unwrap().name,126		saved_col_name127	);128	assert_eq!(129		<pallet_common::CollectionById<Test>>::get(id).unwrap().mode,130		*mode131	);132	assert_eq!(133		<pallet_common::CollectionById<Test>>::get(id)134			.unwrap()135			.description,136		saved_description137	);138	assert_eq!(139		<pallet_common::CollectionById<Test>>::get(id)140			.unwrap()141			.token_prefix,142		saved_prefix143	);144	assert_eq!(145		get_collection_property_permissions(id).as_slice(),146		token_property_permissions.as_slice()147	);148	assert_eq!(149		get_collection_properties(id).as_slice(),150		properties.as_slice()151	);152	id153}154155fn get_collection_property_permissions(collection_id: CollectionId) -> Vec<PropertyKeyPermission> {156	<pallet_common::Pallet<Test>>::property_permissions(collection_id)157		.into_iter()158		.map(|(key, permission)| PropertyKeyPermission { key, permission })159		.collect()160}161162fn get_collection_properties(collection_id: CollectionId) -> Vec<Property> {163	<pallet_common::Pallet<Test>>::collection_properties(collection_id)164		.into_iter()165		.map(|(key, value)| Property { key, value })166		.collect()167}168169fn get_token_properties(collection_id: CollectionId, token_id: TokenId) -> Vec<Property> {170	<pallet_nonfungible::Pallet<Test>>::token_properties((collection_id, token_id))171		.unwrap_or_default()172		.into_iter()173		.map(|(key, value)| Property { key, value })174		.collect()175}176177fn create_test_collection(mode: &CollectionMode, id: CollectionId) -> CollectionId {178	create_test_collection_for_owner(&mode, 1, id)179}180181fn create_test_item(collection_id: CollectionId, data: &CreateItemData) {182	let origin1 = RuntimeOrigin::signed(1);183	assert_ok!(Unique::create_item(184		origin1,185		collection_id,186		account(1),187		data.clone()188	));189}190191fn account(sub: u64) -> TestCrossAccountId {192	TestCrossAccountId::from_sub(sub)193}194195// Use cases tests region196// #region197198#[test]199fn check_not_sufficient_founds() {200	new_test_ext().execute_with(|| {201		let acc: u64 = 1;202		<pallet_balances::Pallet<Test>>::force_set_balance(RuntimeOrigin::root(), acc, 0).unwrap();203204		let name: Vec<u16> = "Test1\0".encode_utf16().collect::<Vec<u16>>();205		let description: Vec<u16> = "TestDescription1\0".encode_utf16().collect::<Vec<u16>>();206		let token_prefix: Vec<u8> = b"token_prefix1\0".to_vec();207208		let data = CreateCollectionData {209			name: name.try_into().unwrap(),210			description: description.try_into().unwrap(),211			token_prefix: token_prefix.try_into().unwrap(),212			mode: CollectionMode::NFT,213			..Default::default()214		};215216		let result = Unique::create_collection_ex(RuntimeOrigin::signed(acc), data);217		assert_err!(result, <CommonError<Test>>::NotSufficientFounds);218	});219}220221#[test]222fn create_fungible_collection_fails_with_large_decimal_numbers() {223	new_test_ext().execute_with(|| {224		let col_name1: Vec<u16> = "Test1\0".encode_utf16().collect::<Vec<u16>>();225		let col_desc1: Vec<u16> = "TestDescription1\0".encode_utf16().collect::<Vec<u16>>();226		let token_prefix1: Vec<u8> = b"token_prefix1\0".to_vec();227228		let data = CreateCollectionData {229			name: col_name1.try_into().unwrap(),230			description: col_desc1.try_into().unwrap(),231			token_prefix: token_prefix1.try_into().unwrap(),232			mode: CollectionMode::Fungible(MAX_DECIMAL_POINTS + 1),233			..Default::default()234		};235236		let origin1 = RuntimeOrigin::signed(1);237		assert_noop!(238			Unique::create_collection_ex(origin1, data),239			UniqueError::<Test>::CollectionDecimalPointLimitExceeded240		);241	});242}243244#[test]245fn create_nft_item() {246	new_test_ext().execute_with(|| {247		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));248249		let data = default_nft_data();250		create_test_item(collection_id, &data.clone().into());251252		assert_eq!(253			get_token_properties(collection_id, TokenId(1)).as_slice(),254			data.properties.as_slice(),255		);256	});257}258259// Use cases tests region260// #region261#[test]262fn create_nft_multiple_items() {263	new_test_ext().execute_with(|| {264		create_test_collection(&CollectionMode::NFT, CollectionId(1));265266		let origin1 = RuntimeOrigin::signed(1);267268		let items_data = vec![default_nft_data(), default_nft_data(), default_nft_data()];269270		assert_ok!(Unique::create_multiple_items(271			origin1,272			CollectionId(1),273			account(1),274			items_data275				.clone()276				.into_iter()277				.map(|d| { d.into() })278				.collect()279		));280		for (index, data) in items_data.into_iter().enumerate() {281			assert_eq!(282				get_token_properties(CollectionId(1), TokenId(index as u32 + 1)).as_slice(),283				data.properties.as_slice()284			);285		}286	});287}288289#[test]290fn create_refungible_item() {291	new_test_ext().execute_with(|| {292		let collection_id = create_test_collection(&CollectionMode::ReFungible, CollectionId(1));293294		let data = default_re_fungible_data();295		create_test_item(collection_id, &data.clone().into());296		let balance =297			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1)));298		assert_eq!(balance, 1023);299	});300}301302#[test]303fn create_multiple_refungible_items() {304	new_test_ext().execute_with(|| {305		create_test_collection(&CollectionMode::ReFungible, CollectionId(1));306307		let origin1 = RuntimeOrigin::signed(1);308309		let items_data = vec![310			default_re_fungible_data(),311			default_re_fungible_data(),312			default_re_fungible_data(),313		];314315		assert_ok!(Unique::create_multiple_items(316			origin1,317			CollectionId(1),318			account(1),319			items_data320				.clone()321				.into_iter()322				.map(|d| { d.into() })323				.collect()324		));325		for (index, _data) in items_data.into_iter().enumerate() {326			let balance = <pallet_refungible::Balance<Test>>::get((327				CollectionId(1),328				TokenId((index + 1) as u32),329				account(1),330			));331			assert_eq!(balance, 1023);332		}333	});334}335336#[test]337fn create_fungible_item() {338	new_test_ext().execute_with(|| {339		let collection_id = create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));340341		let data = default_fungible_data();342		create_test_item(collection_id, &data.into());343344		assert_eq!(345			<pallet_fungible::Balance<Test>>::get((collection_id, account(1))),346			5347		);348	});349}350351//#[test]352// fn create_multiple_fungible_items() {353//     new_test_ext().execute_with(|| {354//         default_limits();355356//         create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));357358//         let origin1 = RuntimeOrigin::signed(1);359360//         let items_data = vec![default_fungible_data(), default_fungible_data(), default_fungible_data()];361362//         assert_ok!(Unique::create_multiple_items(363//             origin1.clone(),364//             1,365//             1,366//             items_data.clone().into_iter().map(|d| { d.into() }).collect()367//         ));368369//         for (index, _) in items_data.iter().enumerate() {370//             assert_eq!(Unique::fungible_item_id(1, (index + 1) as TokenId).value, 5);371//         }372//         assert_eq!(Unique::balance_count(1, 1), 3000);373//         assert_eq!(Unique::address_tokens(1, 1), [1, 2, 3]);374//     });375// }376377#[test]378fn transfer_fungible_item() {379	new_test_ext().execute_with(|| {380		let collection_id = create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));381382		let origin1 = RuntimeOrigin::signed(1);383		let origin2 = RuntimeOrigin::signed(2);384385		let data = default_fungible_data();386		create_test_item(collection_id, &data.into());387388		assert_eq!(389			<pallet_fungible::Balance<Test>>::get((CollectionId(1), account(1))),390			5391		);392393		// change owner scenario394		assert_ok!(Unique::transfer(395			origin1,396			account(2),397			CollectionId(1),398			TokenId(0),399			5400		));401		assert_eq!(402			<pallet_fungible::Balance<Test>>::get((CollectionId(1), account(1))),403			0404		);405406		// split item scenario407		assert_ok!(Unique::transfer(408			origin2.clone(),409			account(3),410			CollectionId(1),411			TokenId(0),412			3413		));414415		// split item and new owner has account scenario416		assert_ok!(Unique::transfer(417			origin2,418			account(3),419			CollectionId(1),420			TokenId(0),421			1422		));423		assert_eq!(424			<pallet_fungible::Balance<Test>>::get((CollectionId(1), account(2))),425			1426		);427		assert_eq!(428			<pallet_fungible::Balance<Test>>::get((CollectionId(1), account(3))),429			4430		);431	});432}433434#[test]435fn transfer_refungible_item() {436	new_test_ext().execute_with(|| {437		let collection_id = create_test_collection(&CollectionMode::ReFungible, CollectionId(1));438439		// Create RFT 1 in 1023 pieces for account 1440		let data = default_re_fungible_data();441		create_test_item(collection_id, &data.clone().into());442		assert_eq!(443			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(1))),444			1445		);446		assert_eq!(447			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1))),448			1023449		);450		assert_eq!(451			<pallet_refungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),452			true453		);454455		// Account 1 transfers all 1023 pieces of RFT 1 to account 2456		let origin1 = RuntimeOrigin::signed(1);457		let origin2 = RuntimeOrigin::signed(2);458		assert_ok!(Unique::transfer(459			origin1,460			account(2),461			CollectionId(1),462			TokenId(1),463			1023464		));465		assert_eq!(466			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(2))),467			1023468		);469		assert_eq!(470			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(1))),471			0472		);473		assert_eq!(474			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(2))),475			1476		);477		assert_eq!(478			<pallet_refungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),479			false480		);481		assert_eq!(482			<pallet_refungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),483			true484		);485486		// Account 2 transfers 500 pieces of RFT 1 to account 3487		assert_ok!(Unique::transfer(488			origin2.clone(),489			account(3),490			CollectionId(1),491			TokenId(1),492			500493		));494		assert_eq!(495			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(2))),496			523497		);498		assert_eq!(499			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(3))),500			500501		);502		assert_eq!(503			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(2))),504			1505		);506		assert_eq!(507			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(3))),508			1509		);510		assert_eq!(511			<pallet_refungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),512			true513		);514		assert_eq!(515			<pallet_refungible::Owned<Test>>::get((collection_id, account(3), TokenId(1))),516			true517		);518519		// Account 2 transfers 200 more pieces of RFT 1 to account 3 with pre-existing balance520		assert_ok!(Unique::transfer(521			origin2,522			account(3),523			CollectionId(1),524			TokenId(1),525			200526		));527		assert_eq!(528			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(2))),529			323530		);531		assert_eq!(532			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(3))),533			700534		);535		assert_eq!(536			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(2))),537			1538		);539		assert_eq!(540			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(3))),541			1542		);543		assert_eq!(544			<pallet_refungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),545			true546		);547		assert_eq!(548			<pallet_refungible::Owned<Test>>::get((collection_id, account(3), TokenId(1))),549			true550		);551	});552}553554#[test]555fn transfer_nft_item() {556	new_test_ext().execute_with(|| {557		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));558559		let data = default_nft_data();560		create_test_item(collection_id, &data.into());561		assert_eq!(562			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),563			1564		);565		assert_eq!(566			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),567			true568		);569570		let origin1 = RuntimeOrigin::signed(1);571		// default scenario572		assert_ok!(Unique::transfer(573			origin1,574			account(2),575			CollectionId(1),576			TokenId(1),577			1578		));579		assert_eq!(580			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),581			0582		);583		assert_eq!(584			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(2))),585			1586		);587		assert_eq!(588			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),589			false590		);591		assert_eq!(592			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),593			true594		);595	});596}597598#[test]599fn transfer_nft_item_wrong_value() {600	new_test_ext().execute_with(|| {601		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));602603		let data = default_nft_data();604		create_test_item(collection_id, &data.into());605		assert_eq!(606			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),607			1608		);609		assert_eq!(610			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),611			true612		);613614		let origin1 = RuntimeOrigin::signed(1);615616		assert_noop!(617			Unique::transfer(origin1, account(2), CollectionId(1), TokenId(1), 2)618				.map_err(|e| e.error),619			<pallet_nonfungible::Error::<Test>>::NonfungibleItemsHaveNoAmount620		);621	});622}623624#[test]625fn transfer_nft_item_zero_value() {626	new_test_ext().execute_with(|| {627		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));628629		let data = default_nft_data();630		create_test_item(collection_id, &data.into());631		assert_eq!(632			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),633			1634		);635		assert_eq!(636			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),637			true638		);639640		let origin1 = RuntimeOrigin::signed(1);641642		// Transferring 0 amount works on NFT...643		assert_ok!(Unique::transfer(644			origin1,645			account(2),646			CollectionId(1),647			TokenId(1),648			0649		));650		// ... and results in no transfer651		assert_eq!(652			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),653			1654		);655		assert_eq!(656			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),657			true658		);659	});660}661662#[test]663fn nft_approve_and_transfer_from() {664	new_test_ext().execute_with(|| {665		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));666667		let data = default_nft_data();668		create_test_item(collection_id, &data.into());669670		let origin1 = RuntimeOrigin::signed(1);671		let origin2 = RuntimeOrigin::signed(2);672673		assert_eq!(674			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),675			1676		);677		assert_eq!(678			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),679			true680		);681682		// neg transfer_from683		assert_noop!(684			Unique::transfer_from(685				origin2.clone(),686				account(1),687				account(2),688				CollectionId(1),689				TokenId(1),690				1691			)692			.map_err(|e| e.error),693			CommonError::<Test>::ApprovedValueTooLow694		);695696		// do approve697		assert_ok!(Unique::approve(698			origin1,699			account(2),700			CollectionId(1),701			TokenId(1),702			1703		));704		assert_eq!(705			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),706			account(2)707		);708709		assert_ok!(Unique::transfer_from(710			origin2,711			account(1),712			account(3),713			CollectionId(1),714			TokenId(1),715			1716		));717		assert!(718			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).is_none()719		);720	});721}722723#[test]724fn nft_approve_and_transfer_from_allow_list() {725	new_test_ext().execute_with(|| {726		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));727728		let origin1 = RuntimeOrigin::signed(1);729		let origin2 = RuntimeOrigin::signed(2);730731		// Create NFT 1 for account 1732		let data = default_nft_data();733		create_test_item(collection_id, &data.clone().into());734		assert_eq!(735			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),736			1737		);738		assert_eq!(739			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),740			true741		);742743		// Allow allow-list users to mint and add accounts 1, 2, and 3 to allow-list744		assert_ok!(Unique::set_collection_permissions(745			origin1.clone(),746			CollectionId(1),747			CollectionPermissions {748				mint_mode: Some(true),749				access: Some(AccessMode::AllowList),750				nesting: None,751			}752		));753		assert_ok!(Unique::add_to_allow_list(754			origin1.clone(),755			CollectionId(1),756			account(1)757		));758		assert_ok!(Unique::add_to_allow_list(759			origin1.clone(),760			CollectionId(1),761			account(2)762		));763		assert_ok!(Unique::add_to_allow_list(764			origin1.clone(),765			CollectionId(1),766			account(3)767		));768769		// Account 1 approves account 2 for NFT 1770		assert_ok!(Unique::approve(771			origin1.clone(),772			account(2),773			CollectionId(1),774			TokenId(1),775			1776		));777		assert_eq!(778			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),779			account(2)780		);781782		// Account 2 transfers NFT 1 from account 1 to account 3783		assert_ok!(Unique::transfer_from(784			origin2,785			account(1),786			account(3),787			CollectionId(1),788			TokenId(1),789			1790		));791		assert!(792			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).is_none()793		);794	});795}796797#[test]798fn refungible_approve_and_transfer_from() {799	new_test_ext().execute_with(|| {800		let collection_id = create_test_collection(&CollectionMode::ReFungible, CollectionId(1));801802		let origin1 = RuntimeOrigin::signed(1);803		let origin2 = RuntimeOrigin::signed(2);804805		// Create RFT 1 in 1023 pieces for account 1806		let data = default_re_fungible_data();807		create_test_item(collection_id, &data.into());808809		assert_eq!(810			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(1))),811			1812		);813		assert_eq!(814			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1))),815			1023816		);817		assert_eq!(818			<pallet_refungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),819			true820		);821822		// Allow public minting, enable allow-list and add accounts 1, 2, 3 to allow-list823		assert_ok!(Unique::set_collection_permissions(824			origin1.clone(),825			CollectionId(1),826			CollectionPermissions {827				mint_mode: Some(true),828				access: Some(AccessMode::AllowList),829				nesting: None,830			}831		));832		assert_ok!(Unique::add_to_allow_list(833			origin1.clone(),834			CollectionId(1),835			account(1)836		));837		assert_ok!(Unique::add_to_allow_list(838			origin1.clone(),839			CollectionId(1),840			account(2)841		));842		assert_ok!(Unique::add_to_allow_list(843			origin1.clone(),844			CollectionId(1),845			account(3)846		));847848		// Account 1 approves account 2 for 1023 pieces of RFT 1849		assert_ok!(Unique::approve(850			origin1,851			account(2),852			CollectionId(1),853			TokenId(1),854			1023855		));856		assert_eq!(857			<pallet_refungible::Allowance<Test>>::get((858				CollectionId(1),859				TokenId(1),860				account(1),861				account(2)862			)),863			1023864		);865866		// Account 2 transfers 100 pieces of RFT 1 from account 1 to account 3867		assert_ok!(Unique::transfer_from(868			origin2,869			account(1),870			account(3),871			CollectionId(1),872			TokenId(1),873			100874		));875		assert_eq!(876			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(1))),877			1878		);879		assert_eq!(880			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(3))),881			1882		);883		assert_eq!(884			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1))),885			923886		);887		assert_eq!(888			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(3))),889			100890		);891		assert_eq!(892			<pallet_refungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),893			true894		);895		assert_eq!(896			<pallet_refungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),897			true898		);899		assert_eq!(900			<pallet_refungible::Allowance<Test>>::get((901				CollectionId(1),902				TokenId(1),903				account(1),904				account(2)905			)),906			923907		);908	});909}910911#[test]912fn fungible_approve_and_transfer_from() {913	new_test_ext().execute_with(|| {914		let collection_id = create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));915916		let data = default_fungible_data();917		create_test_item(collection_id, &data.into());918919		let origin1 = RuntimeOrigin::signed(1);920		let origin2 = RuntimeOrigin::signed(2);921922		assert_ok!(Unique::set_collection_permissions(923			origin1.clone(),924			CollectionId(1),925			CollectionPermissions {926				mint_mode: Some(true),927				access: Some(AccessMode::AllowList),928				nesting: None,929			}930		));931		assert_ok!(Unique::add_to_allow_list(932			origin1.clone(),933			CollectionId(1),934			account(1)935		));936		assert_ok!(Unique::add_to_allow_list(937			origin1.clone(),938			CollectionId(1),939			account(2)940		));941		assert_ok!(Unique::add_to_allow_list(942			origin1.clone(),943			CollectionId(1),944			account(3)945		));946947		// do approve948		assert_ok!(Unique::approve(949			origin1.clone(),950			account(2),951			CollectionId(1),952			TokenId(0),953			5954		));955		assert_eq!(956			<pallet_fungible::Allowance<Test>>::get((CollectionId(1), account(1), account(2))),957			5958		);959		assert_ok!(Unique::approve(960			origin1,961			account(3),962			CollectionId(1),963			TokenId(0),964			5965		));966		assert_eq!(967			<pallet_fungible::Allowance<Test>>::get((CollectionId(1), account(1), account(2))),968			5969		);970		assert_eq!(971			<pallet_fungible::Allowance<Test>>::get((CollectionId(1), account(1), account(3))),972			5973		);974975		assert_ok!(Unique::transfer_from(976			origin2.clone(),977			account(1),978			account(3),979			CollectionId(1),980			TokenId(0),981			4982		));983984		assert_eq!(985			<pallet_fungible::Allowance<Test>>::get((CollectionId(1), account(1), account(2))),986			1987		);988989		assert_noop!(990			Unique::transfer_from(991				origin2,992				account(1),993				account(3),994				CollectionId(1),995				TokenId(0),996				4997			)998			.map_err(|e| e.error),999			CommonError::<Test>::ApprovedValueTooLow1000		);1001	});1002}10031004#[test]1005fn change_collection_owner() {1006	new_test_ext().execute_with(|| {1007		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));10081009		let origin1 = RuntimeOrigin::signed(1);1010		assert_ok!(Unique::change_collection_owner(origin1, collection_id, 2));1011		assert_eq!(1012			<pallet_common::CollectionById<Test>>::get(collection_id)1013				.unwrap()1014				.owner,1015			21016		);1017	});1018}10191020#[test]1021fn destroy_collection() {1022	new_test_ext().execute_with(|| {1023		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));10241025		let origin1 = RuntimeOrigin::signed(1);1026		assert_ok!(Unique::destroy_collection(origin1, collection_id));1027	});1028}10291030#[test]1031fn burn_nft_item() {1032	new_test_ext().execute_with(|| {1033		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));10341035		let origin1 = RuntimeOrigin::signed(1);10361037		let data = default_nft_data();1038		create_test_item(collection_id, &data.into());10391040		// check balance (collection with id = 1, user id = 1)1041		assert_eq!(1042			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),1043			11044		);10451046		// burn item1047		assert_ok!(Unique::burn_item(1048			origin1.clone(),1049			collection_id,1050			TokenId(1),1051			11052		));1053		assert_eq!(1054			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),1055			01056		);1057	});1058}10591060#[test]1061fn burn_same_nft_item_twice() {1062	new_test_ext().execute_with(|| {1063		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));10641065		let origin1 = RuntimeOrigin::signed(1);10661067		let data = default_nft_data();1068		create_test_item(collection_id, &data.into());10691070		// check balance (collection with id = 1, user id = 1)1071		assert_eq!(1072			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),1073			11074		);10751076		// burn item1077		assert_ok!(Unique::burn_item(1078			origin1.clone(),1079			collection_id,1080			TokenId(1),1081			11082		));10831084		// burn item again1085		assert_noop!(1086			Unique::burn_item(origin1, collection_id, TokenId(1), 1).map_err(|e| e.error),1087			CommonError::<Test>::TokenNotFound1088		);10891090		assert_eq!(1091			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),1092			01093		);1094	});1095}10961097#[test]1098fn burn_fungible_item() {1099	new_test_ext().execute_with(|| {1100		let collection_id = create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));11011102		let origin1 = RuntimeOrigin::signed(1);1103		assert_ok!(Unique::add_collection_admin(1104			origin1.clone(),1105			collection_id,1106			account(2)1107		));11081109		let data = default_fungible_data();1110		create_test_item(collection_id, &data.into());11111112		// check balance (collection with id = 1, user id = 1)1113		assert_eq!(1114			<pallet_fungible::Balance<Test>>::get((collection_id, account(1))),1115			51116		);11171118		// burn item1119		assert_ok!(Unique::burn_item(1120			origin1.clone(),1121			CollectionId(1),1122			TokenId(0),1123			51124		));1125		assert_noop!(1126			Unique::burn_item(origin1, CollectionId(1), TokenId(0), 5).map_err(|e| e.error),1127			CommonError::<Test>::TokenValueTooLow1128		);11291130		assert_eq!(1131			<pallet_fungible::Balance<Test>>::get((collection_id, account(1))),1132			01133		);1134	});1135}11361137#[test]1138fn burn_fungible_item_with_token_id() {1139	new_test_ext().execute_with(|| {1140		let collection_id = create_test_collection(&CollectionMode::Fungible(3), CollectionId(1));11411142		let origin1 = RuntimeOrigin::signed(1);1143		assert_ok!(Unique::add_collection_admin(1144			origin1.clone(),1145			collection_id,1146			account(2)1147		));11481149		let data = default_fungible_data();1150		create_test_item(collection_id, &data.into());11511152		// check balance (collection with id = 1, user id = 1)1153		assert_eq!(1154			<pallet_fungible::Balance<Test>>::get((collection_id, account(1))),1155			51156		);11571158		// Try to burn item using Token ID1159		assert_noop!(1160			Unique::burn_item(origin1, CollectionId(1), TokenId(1), 5).map_err(|e| e.error),1161			<pallet_fungible::Error::<Test>>::FungibleItemsHaveNoId1162		);1163	});1164}1165#[test]1166fn burn_refungible_item() {1167	new_test_ext().execute_with(|| {1168		let collection_id = create_test_collection(&CollectionMode::ReFungible, CollectionId(1));1169		let origin1 = RuntimeOrigin::signed(1);11701171		assert_ok!(Unique::set_collection_permissions(1172			origin1.clone(),1173			collection_id,1174			CollectionPermissions {1175				mint_mode: Some(true),1176				access: Some(AccessMode::AllowList),1177				nesting: None,1178			}1179		));1180		assert_ok!(Unique::add_to_allow_list(1181			origin1.clone(),1182			collection_id,1183			account(1)1184		));11851186		assert_ok!(Unique::add_collection_admin(1187			origin1.clone(),1188			collection_id,1189			account(2)1190		));11911192		let data = default_re_fungible_data();1193		create_test_item(collection_id, &data.into());11941195		// check balance (collection with id = 1, user id = 2)1196		assert_eq!(1197			<pallet_refungible::AccountBalance<Test>>::get((collection_id, account(1))),1198			11199		);1200		assert_eq!(1201			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1))),1202			10231203		);12041205		// burn item1206		assert_ok!(Unique::burn_item(1207			origin1.clone(),1208			collection_id,1209			TokenId(1),1210			10231211		));1212		assert_noop!(1213			Unique::burn_item(origin1, collection_id, TokenId(1), 1023).map_err(|e| e.error),1214			CommonError::<Test>::TokenValueTooLow1215		);12161217		assert_eq!(1218			<pallet_refungible::Balance<Test>>::get((collection_id, TokenId(1), account(1))),1219			01220		);1221	});1222}12231224#[test]1225fn add_collection_admin() {1226	new_test_ext().execute_with(|| {1227		let collection1_id =1228			create_test_collection_for_owner(&CollectionMode::NFT, 1, CollectionId(1));1229		let origin1 = RuntimeOrigin::signed(1);12301231		// Add collection admins1232		assert_ok!(Unique::add_collection_admin(1233			origin1.clone(),1234			collection1_id,1235			account(2)1236		));1237		assert_ok!(Unique::add_collection_admin(1238			origin1,1239			collection1_id,1240			account(3)1241		));12421243		// Owner is not an admin by default1244		assert_eq!(1245			<pallet_common::IsAdmin<Test>>::get((CollectionId(1), account(1))),1246			false1247		);1248		assert!(<pallet_common::IsAdmin<Test>>::get((1249			CollectionId(1),1250			account(2)1251		)));1252		assert!(<pallet_common::IsAdmin<Test>>::get((1253			CollectionId(1),1254			account(3)1255		)));1256	});1257}12581259#[test]1260fn remove_collection_admin() {1261	new_test_ext().execute_with(|| {1262		let collection1_id =1263			create_test_collection_for_owner(&CollectionMode::NFT, 1, CollectionId(1));1264		let origin1 = RuntimeOrigin::signed(1);12651266		// Add collection admins 2 and 31267		assert_ok!(Unique::add_collection_admin(1268			origin1.clone(),1269			collection1_id,1270			account(2)1271		));1272		assert_ok!(Unique::add_collection_admin(1273			origin1.clone(),1274			collection1_id,1275			account(3)1276		));12771278		assert!(<pallet_common::IsAdmin<Test>>::get((1279			CollectionId(1),1280			account(2)1281		)));1282		assert!(<pallet_common::IsAdmin<Test>>::get((1283			CollectionId(1),1284			account(3)1285		)));12861287		// remove admin 31288		assert_ok!(Unique::remove_collection_admin(1289			origin1,1290			CollectionId(1),1291			account(3)1292		));12931294		// 2 is still admin, 3 is not an admin anymore1295		assert!(<pallet_common::IsAdmin<Test>>::get((1296			CollectionId(1),1297			account(2)1298		)));1299		assert_eq!(1300			<pallet_common::IsAdmin<Test>>::get((CollectionId(1), account(3))),1301			false1302		);1303	});1304}13051306#[test]1307fn balance_of() {1308	new_test_ext().execute_with(|| {1309		let nft_collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1310		let fungible_collection_id =1311			create_test_collection(&CollectionMode::Fungible(3), CollectionId(2));1312		let re_fungible_collection_id =1313			create_test_collection(&CollectionMode::ReFungible, CollectionId(3));13141315		// check balance before1316		assert_eq!(1317			<pallet_nonfungible::AccountBalance<Test>>::get((nft_collection_id, account(1))),1318			01319		);1320		assert_eq!(1321			<pallet_fungible::Balance<Test>>::get((fungible_collection_id, account(1))),1322			01323		);1324		assert_eq!(1325			<pallet_refungible::AccountBalance<Test>>::get((re_fungible_collection_id, account(1))),1326			01327		);13281329		let nft_data = default_nft_data();1330		create_test_item(nft_collection_id, &nft_data.into());13311332		let fungible_data = default_fungible_data();1333		create_test_item(fungible_collection_id, &fungible_data.into());13341335		let re_fungible_data = default_re_fungible_data();1336		create_test_item(re_fungible_collection_id, &re_fungible_data.into());13371338		// check balance (collection with id = 1, user id = 1)1339		assert_eq!(1340			<pallet_nonfungible::AccountBalance<Test>>::get((nft_collection_id, account(1))),1341			11342		);1343		assert_eq!(1344			<pallet_fungible::Balance<Test>>::get((fungible_collection_id, account(1))),1345			51346		);1347		assert_eq!(1348			<pallet_refungible::AccountBalance<Test>>::get((re_fungible_collection_id, account(1))),1349			11350		);13511352		assert_eq!(1353			<pallet_nonfungible::Owned<Test>>::get((nft_collection_id, account(1), TokenId(1))),1354			true1355		);1356		assert_eq!(1357			<pallet_refungible::Owned<Test>>::get((1358				re_fungible_collection_id,1359				account(1),1360				TokenId(1)1361			)),1362			true1363		);1364	});1365}13661367#[test]1368fn approve() {1369	new_test_ext().execute_with(|| {1370		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));13711372		let data = default_nft_data();1373		create_test_item(collection_id, &data.into());13741375		let origin1 = RuntimeOrigin::signed(1);13761377		// approve1378		assert_ok!(Unique::approve(1379			origin1,1380			account(2),1381			CollectionId(1),1382			TokenId(1),1383			11384		));1385		assert_eq!(1386			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),1387			account(2)1388		);1389	});1390}13911392#[test]1393fn transfer_from() {1394	new_test_ext().execute_with(|| {1395		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1396		let origin1 = RuntimeOrigin::signed(1);1397		let origin2 = RuntimeOrigin::signed(2);13981399		let data = default_nft_data();1400		create_test_item(collection_id, &data.into());14011402		// approve1403		assert_ok!(Unique::approve(1404			origin1.clone(),1405			account(2),1406			CollectionId(1),1407			TokenId(1),1408			11409		));1410		assert_eq!(1411			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),1412			account(2)1413		);14141415		assert_ok!(Unique::set_collection_permissions(1416			origin1.clone(),1417			CollectionId(1),1418			CollectionPermissions {1419				mint_mode: Some(true),1420				access: Some(AccessMode::AllowList),1421				nesting: None,1422			}1423		));1424		assert_ok!(Unique::add_to_allow_list(1425			origin1.clone(),1426			CollectionId(1),1427			account(1)1428		));1429		assert_ok!(Unique::add_to_allow_list(1430			origin1.clone(),1431			CollectionId(1),1432			account(2)1433		));1434		assert_ok!(Unique::add_to_allow_list(1435			origin1,1436			CollectionId(1),1437			account(3)1438		));14391440		assert_ok!(Unique::transfer_from(1441			origin2,1442			account(1),1443			account(2),1444			CollectionId(1),1445			TokenId(1),1446			11447		));14481449		// after transfer1450		assert_eq!(1451			<pallet_nonfungible::AccountBalance<Test>>::get((CollectionId(1), account(1))),1452			01453		);1454		assert_eq!(1455			<pallet_nonfungible::AccountBalance<Test>>::get((CollectionId(1), account(2))),1456			11457		);1458	});1459}14601461// #endregion14621463// Coverage tests region1464// #region14651466#[test]1467fn owner_can_add_address_to_allow_list() {1468	new_test_ext().execute_with(|| {1469		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));14701471		let origin1 = RuntimeOrigin::signed(1);1472		assert_ok!(Unique::add_to_allow_list(1473			origin1,1474			collection_id,1475			account(2)1476		));1477		assert!(<pallet_common::Allowlist<Test>>::get((1478			collection_id,1479			account(2)1480		)));1481	});1482}14831484#[test]1485fn admin_can_add_address_to_allow_list() {1486	new_test_ext().execute_with(|| {1487		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1488		let origin1 = RuntimeOrigin::signed(1);1489		let origin2 = RuntimeOrigin::signed(2);14901491		assert_ok!(Unique::add_collection_admin(1492			origin1,1493			collection_id,1494			account(2)1495		));1496		assert_ok!(Unique::add_to_allow_list(1497			origin2,1498			collection_id,1499			account(3)1500		));1501		assert!(<pallet_common::Allowlist<Test>>::get((1502			collection_id,1503			account(3)1504		)));1505	});1506}15071508#[test]1509fn nonprivileged_user_cannot_add_address_to_allow_list() {1510	new_test_ext().execute_with(|| {1511		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));15121513		let origin2 = RuntimeOrigin::signed(2);1514		assert_noop!(1515			Unique::add_to_allow_list(origin2, collection_id, account(3)),1516			CommonError::<Test>::NoPermission1517		);1518	});1519}15201521#[test]1522fn nobody_can_add_address_to_allow_list_of_nonexisting_collection() {1523	new_test_ext().execute_with(|| {1524		let origin1 = RuntimeOrigin::signed(1);15251526		assert_noop!(1527			Unique::add_to_allow_list(origin1, CollectionId(1), account(2)),1528			CommonError::<Test>::CollectionNotFound1529		);1530	});1531}15321533#[test]1534fn nobody_can_add_address_to_allow_list_of_deleted_collection() {1535	new_test_ext().execute_with(|| {1536		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));15371538		let origin1 = RuntimeOrigin::signed(1);1539		assert_ok!(Unique::destroy_collection(origin1.clone(), collection_id));1540		assert_noop!(1541			Unique::add_to_allow_list(origin1, collection_id, account(2)),1542			CommonError::<Test>::CollectionNotFound1543		);1544	});1545}15461547// If address is already added to allow list, nothing happens1548#[test]1549fn address_is_already_added_to_allow_list() {1550	new_test_ext().execute_with(|| {1551		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1552		let origin1 = RuntimeOrigin::signed(1);15531554		assert_ok!(Unique::add_to_allow_list(1555			origin1.clone(),1556			collection_id,1557			account(2)1558		));1559		assert_ok!(Unique::add_to_allow_list(1560			origin1,1561			collection_id,1562			account(2)1563		));1564		assert!(<pallet_common::Allowlist<Test>>::get((1565			collection_id,1566			account(2)1567		)));1568	});1569}15701571#[test]1572fn owner_can_remove_address_from_allow_list() {1573	new_test_ext().execute_with(|| {1574		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));15751576		let origin1 = RuntimeOrigin::signed(1);1577		assert_ok!(Unique::add_to_allow_list(1578			origin1.clone(),1579			collection_id,1580			account(2)1581		));1582		assert_ok!(Unique::remove_from_allow_list(1583			origin1,1584			collection_id,1585			account(2)1586		));1587		assert_eq!(1588			<pallet_common::Allowlist<Test>>::get((collection_id, account(2))),1589			false1590		);1591	});1592}15931594#[test]1595fn admin_can_remove_address_from_allow_list() {1596	new_test_ext().execute_with(|| {1597		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1598		let origin1 = RuntimeOrigin::signed(1);1599		let origin2 = RuntimeOrigin::signed(2);16001601		// Owner adds admin1602		assert_ok!(Unique::add_collection_admin(1603			origin1.clone(),1604			collection_id,1605			account(2)1606		));16071608		// Owner adds address 3 to allow list1609		assert_ok!(Unique::add_to_allow_list(1610			origin1,1611			collection_id,1612			account(3)1613		));16141615		// Admin removes address 3 from allow list1616		assert_ok!(Unique::remove_from_allow_list(1617			origin2,1618			collection_id,1619			account(3)1620		));1621		assert_eq!(1622			<pallet_common::Allowlist<Test>>::get((collection_id, account(3))),1623			false1624		);1625	});1626}16271628#[test]1629fn nonprivileged_user_cannot_remove_address_from_allow_list() {1630	new_test_ext().execute_with(|| {1631		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1632		let origin1 = RuntimeOrigin::signed(1);1633		let origin2 = RuntimeOrigin::signed(2);16341635		assert_ok!(Unique::add_to_allow_list(1636			origin1,1637			collection_id,1638			account(2)1639		));1640		assert_noop!(1641			Unique::remove_from_allow_list(origin2, collection_id, account(2)),1642			CommonError::<Test>::NoPermission1643		);1644		assert!(<pallet_common::Allowlist<Test>>::get((1645			collection_id,1646			account(2)1647		)));1648	});1649}16501651#[test]1652fn nobody_can_remove_address_from_allow_list_of_nonexisting_collection() {1653	new_test_ext().execute_with(|| {1654		let origin1 = RuntimeOrigin::signed(1);16551656		assert_noop!(1657			Unique::remove_from_allow_list(origin1, CollectionId(1), account(2)),1658			CommonError::<Test>::CollectionNotFound1659		);1660	});1661}16621663#[test]1664fn nobody_can_remove_address_from_allow_list_of_deleted_collection() {1665	new_test_ext().execute_with(|| {1666		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1667		let origin1 = RuntimeOrigin::signed(1);1668		let origin2 = RuntimeOrigin::signed(2);16691670		// Add account 2 to allow list1671		assert_ok!(Unique::add_to_allow_list(1672			origin1.clone(),1673			collection_id,1674			account(2)1675		));16761677		// Account 2 is in collection allow-list1678		assert!(<pallet_common::Allowlist<Test>>::get((1679			collection_id,1680			account(2)1681		)));16821683		// Destroy collection1684		assert_ok!(Unique::destroy_collection(origin1, collection_id));16851686		// Attempt to remove account 2 from collection allow-list => error1687		assert_noop!(1688			Unique::remove_from_allow_list(origin2, collection_id, account(2)),1689			CommonError::<Test>::CollectionNotFound1690		);16911692		// Account 2 is not found in collection allow-list anyway1693		assert_eq!(1694			<pallet_common::Allowlist<Test>>::get((collection_id, account(2))),1695			false1696		);1697	});1698}16991700// If address is already removed from allow list, nothing happens1701#[test]1702fn address_is_already_removed_from_allow_list() {1703	new_test_ext().execute_with(|| {1704		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1705		let origin1 = RuntimeOrigin::signed(1);17061707		assert_ok!(Unique::add_to_allow_list(1708			origin1.clone(),1709			collection_id,1710			account(2)1711		));1712		assert_ok!(Unique::remove_from_allow_list(1713			origin1.clone(),1714			collection_id,1715			account(2)1716		));1717		assert_eq!(1718			<pallet_common::Allowlist<Test>>::get((collection_id, account(2))),1719			false1720		);1721		assert_ok!(Unique::remove_from_allow_list(1722			origin1,1723			collection_id,1724			account(2)1725		));1726		assert_eq!(1727			<pallet_common::Allowlist<Test>>::get((collection_id, account(2))),1728			false1729		);1730	});1731}17321733// If Public Access mode is set to AllowList, tokens can’t be transferred from a non-allowlisted address with transfer or transferFrom (2 tests)1734#[test]1735fn allow_list_test_1() {1736	new_test_ext().execute_with(|| {1737		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));17381739		let origin1 = RuntimeOrigin::signed(1);1740		assert_ok!(Unique::add_collection_admin(1741			origin1.clone(),1742			collection_id,1743			account(1)1744		));17451746		let data = default_nft_data();1747		create_test_item(collection_id, &data.into());17481749		assert_ok!(Unique::set_collection_permissions(1750			origin1.clone(),1751			collection_id,1752			CollectionPermissions {1753				mint_mode: None,1754				access: Some(AccessMode::AllowList),1755				nesting: None,1756			}1757		));1758		assert_ok!(Unique::add_to_allow_list(1759			origin1.clone(),1760			collection_id,1761			account(2)1762		));17631764		assert_noop!(1765			Unique::transfer(origin1, account(3), CollectionId(1), TokenId(1), 1)1766				.map_err(|e| e.error),1767			CommonError::<Test>::AddressNotInAllowlist1768		);1769	});1770}17711772#[test]1773fn allow_list_test_2() {1774	new_test_ext().execute_with(|| {1775		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));1776		let origin1 = RuntimeOrigin::signed(1);17771778		let data = default_nft_data();1779		create_test_item(collection_id, &data.into());17801781		assert_ok!(Unique::set_collection_permissions(1782			origin1.clone(),1783			collection_id,1784			CollectionPermissions {1785				mint_mode: None,1786				access: Some(AccessMode::AllowList),1787				nesting: None,1788			}1789		));1790		assert_ok!(Unique::add_to_allow_list(1791			origin1.clone(),1792			collection_id,1793			account(1)1794		));1795		assert_ok!(Unique::add_to_allow_list(1796			origin1.clone(),1797			collection_id,1798			account(2)1799		));18001801		// do approve1802		assert_ok!(Unique::approve(1803			origin1.clone(),1804			account(1),1805			collection_id,1806			TokenId(1),1807			11808		));1809		assert_eq!(1810			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),1811			account(1)1812		);18131814		assert_ok!(Unique::remove_from_allow_list(1815			origin1.clone(),1816			collection_id,1817			account(1)1818		));18191820		assert_noop!(1821			Unique::transfer_from(1822				origin1,1823				account(1),1824				account(3),1825				CollectionId(1),1826				TokenId(1),1827				11828			)1829			.map_err(|e| e.error),1830			CommonError::<Test>::AddressNotInAllowlist1831		);1832	});1833}18341835// If Public Access mode is set to AllowList, tokens can’t be transferred to a non-allowlisted address with transfer or transferFrom (2 tests)1836#[test]1837fn allow_list_test_3() {1838	new_test_ext().execute_with(|| {1839		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));18401841		let origin1 = RuntimeOrigin::signed(1);18421843		let data = default_nft_data();1844		create_test_item(collection_id, &data.into());18451846		assert_ok!(Unique::set_collection_permissions(1847			origin1.clone(),1848			collection_id,1849			CollectionPermissions {1850				mint_mode: None,1851				access: Some(AccessMode::AllowList),1852				nesting: None,1853			}1854		));1855		assert_ok!(Unique::add_to_allow_list(1856			origin1.clone(),1857			collection_id,1858			account(1)1859		));18601861		assert_noop!(1862			Unique::transfer(origin1, account(3), collection_id, TokenId(1), 1)1863				.map_err(|e| e.error),1864			CommonError::<Test>::AddressNotInAllowlist1865		);1866	});1867}18681869#[test]1870fn allow_list_test_4() {1871	new_test_ext().execute_with(|| {1872		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));18731874		let origin1 = RuntimeOrigin::signed(1);18751876		let data = default_nft_data();1877		create_test_item(collection_id, &data.into());18781879		assert_ok!(Unique::set_collection_permissions(1880			origin1.clone(),1881			collection_id,1882			CollectionPermissions {1883				mint_mode: None,1884				access: Some(AccessMode::AllowList),1885				nesting: None,1886			}1887		));1888		assert_ok!(Unique::add_to_allow_list(1889			origin1.clone(),1890			collection_id,1891			account(1)1892		));1893		assert_ok!(Unique::add_to_allow_list(1894			origin1.clone(),1895			collection_id,1896			account(2)1897		));18981899		// do approve1900		assert_ok!(Unique::approve(1901			origin1.clone(),1902			account(1),1903			collection_id,1904			TokenId(1),1905			11906		));1907		assert_eq!(1908			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),1909			account(1)1910		);19111912		assert_ok!(Unique::remove_from_allow_list(1913			origin1.clone(),1914			collection_id,1915			account(2)1916		));19171918		assert_noop!(1919			Unique::transfer_from(1920				origin1,1921				account(1),1922				account(3),1923				collection_id,1924				TokenId(1),1925				11926			)1927			.map_err(|e| e.error),1928			CommonError::<Test>::AddressNotInAllowlist1929		);1930	});1931}19321933// If Public Access mode is set to AllowList, tokens can’t be destroyed by a non-allowlisted address (even if it owned them before enabling AllowList mode)1934#[test]1935fn allow_list_test_5() {1936	new_test_ext().execute_with(|| {1937		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));19381939		let origin1 = RuntimeOrigin::signed(1);19401941		let data = default_nft_data();1942		create_test_item(collection_id, &data.into());19431944		assert_ok!(Unique::set_collection_permissions(1945			origin1.clone(),1946			collection_id,1947			CollectionPermissions {1948				mint_mode: None,1949				access: Some(AccessMode::AllowList),1950				nesting: None,1951			}1952		));1953		assert_noop!(1954			Unique::burn_item(origin1.clone(), CollectionId(1), TokenId(1), 1).map_err(|e| e.error),1955			CommonError::<Test>::AddressNotInAllowlist1956		);1957	});1958}19591960// If Public Access mode is set to AllowList, token transfers can’t be Approved by a non-allowlisted address (see Approve method).1961#[test]1962fn allow_list_test_6() {1963	new_test_ext().execute_with(|| {1964		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));19651966		let origin1 = RuntimeOrigin::signed(1);19671968		let data = default_nft_data();1969		create_test_item(collection_id, &data.into());19701971		assert_ok!(Unique::set_collection_permissions(1972			origin1.clone(),1973			collection_id,1974			CollectionPermissions {1975				mint_mode: None,1976				access: Some(AccessMode::AllowList),1977				nesting: None,1978			}1979		));19801981		// do approve1982		assert_noop!(1983			Unique::approve(origin1, account(1), CollectionId(1), TokenId(1), 1)1984				.map_err(|e| e.error),1985			CommonError::<Test>::AddressNotInAllowlist1986		);1987	});1988}19891990// If Public Access mode is set to AllowList, tokens can be transferred from a allowlisted address with transfer or transferFrom (2 tests) and1991//          tokens can be transferred from a allowlisted address with transfer or transferFrom (2 tests)1992#[test]1993fn allow_list_test_7() {1994	new_test_ext().execute_with(|| {1995		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));19961997		let data = default_nft_data();1998		create_test_item(collection_id, &data.into());19992000		let origin1 = RuntimeOrigin::signed(1);20012002		assert_ok!(Unique::set_collection_permissions(2003			origin1.clone(),2004			collection_id,2005			CollectionPermissions {2006				mint_mode: None,2007				access: Some(AccessMode::AllowList),2008				nesting: None,2009			}2010		));2011		assert_ok!(Unique::add_to_allow_list(2012			origin1.clone(),2013			collection_id,2014			account(1)2015		));2016		assert_ok!(Unique::add_to_allow_list(2017			origin1.clone(),2018			collection_id,2019			account(2)2020		));20212022		assert_ok!(Unique::transfer(2023			origin1,2024			account(2),2025			CollectionId(1),2026			TokenId(1),2027			12028		));2029	});2030}20312032#[test]2033fn allow_list_test_8() {2034	new_test_ext().execute_with(|| {2035		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));20362037		// Create NFT for account 12038		let data = default_nft_data();2039		create_test_item(collection_id, &data.into());20402041		let origin1 = RuntimeOrigin::signed(1);20422043		// Toggle Allow List mode and add accounts 1 and 22044		assert_ok!(Unique::set_collection_permissions(2045			origin1.clone(),2046			collection_id,2047			CollectionPermissions {2048				mint_mode: None,2049				access: Some(AccessMode::AllowList),2050				nesting: None,2051			}2052		));2053		assert_ok!(Unique::add_to_allow_list(2054			origin1.clone(),2055			collection_id,2056			account(1)2057		));2058		assert_ok!(Unique::add_to_allow_list(2059			origin1.clone(),2060			collection_id,2061			account(2)2062		));20632064		// Sself-approve account 1 for NFT 12065		assert_ok!(Unique::approve(2066			origin1.clone(),2067			account(1),2068			CollectionId(1),2069			TokenId(1),2070			12071		));2072		assert_eq!(2073			<pallet_nonfungible::Allowance<Test>>::get((CollectionId(1), TokenId(1))).unwrap(),2074			account(1)2075		);20762077		// Transfer from 1 to 22078		assert_ok!(Unique::transfer_from(2079			origin1,2080			account(1),2081			account(2),2082			CollectionId(1),2083			TokenId(1),2084			12085		));2086	});2087}20882089// If Public Access mode is set to AllowList, and Mint Permission is set to false, tokens can be created by owner.2090#[test]2091fn allow_list_test_9() {2092	new_test_ext().execute_with(|| {2093		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));2094		let origin1 = RuntimeOrigin::signed(1);20952096		assert_ok!(Unique::set_collection_permissions(2097			origin1.clone(),2098			collection_id,2099			CollectionPermissions {2100				mint_mode: Some(false),2101				access: Some(AccessMode::AllowList),2102				nesting: None,2103			}2104		));21052106		let data = default_nft_data();2107		create_test_item(collection_id, &data.into());2108	});2109}21102111// If Public Access mode is set to AllowList, and Mint Permission is set to false, tokens can be created by admin.2112#[test]2113fn allow_list_test_10() {2114	new_test_ext().execute_with(|| {2115		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));21162117		let origin1 = RuntimeOrigin::signed(1);2118		let origin2 = RuntimeOrigin::signed(2);21192120		assert_ok!(Unique::set_collection_permissions(2121			origin1.clone(),2122			collection_id,2123			CollectionPermissions {2124				mint_mode: Some(false),2125				access: Some(AccessMode::AllowList),2126				nesting: None,2127			}2128		));21292130		assert_ok!(Unique::add_collection_admin(2131			origin1,2132			collection_id,2133			account(2)2134		));21352136		assert_ok!(Unique::create_item(2137			origin2,2138			collection_id,2139			account(2),2140			default_nft_data().into()2141		));2142	});2143}21442145// If Public Access mode is set to AllowList, and Mint Permission is set to false, tokens cannot be created by non-privileged and allow listed address.2146#[test]2147fn allow_list_test_11() {2148	new_test_ext().execute_with(|| {2149		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));21502151		let origin1 = RuntimeOrigin::signed(1);2152		let origin2 = RuntimeOrigin::signed(2);21532154		assert_ok!(Unique::set_collection_permissions(2155			origin1.clone(),2156			collection_id,2157			CollectionPermissions {2158				mint_mode: Some(false),2159				access: Some(AccessMode::AllowList),2160				nesting: None,2161			}2162		));2163		assert_ok!(Unique::add_to_allow_list(2164			origin1,2165			collection_id,2166			account(2)2167		));21682169		assert_noop!(2170			Unique::create_item(2171				origin2,2172				CollectionId(1),2173				account(2),2174				default_nft_data().into()2175			)2176			.map_err(|e| e.error),2177			CommonError::<Test>::PublicMintingNotAllowed2178		);2179	});2180}21812182// If Public Access mode is set to AllowList, and Mint Permission is set to false, tokens cannot be created by non-privileged and non-allow listed address.2183#[test]2184fn allow_list_test_12() {2185	new_test_ext().execute_with(|| {2186		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));21872188		let origin1 = RuntimeOrigin::signed(1);2189		let origin2 = RuntimeOrigin::signed(2);21902191		assert_ok!(Unique::set_collection_permissions(2192			origin1.clone(),2193			collection_id,2194			CollectionPermissions {2195				mint_mode: Some(false),2196				access: Some(AccessMode::AllowList),2197				nesting: None,2198			}2199		));22002201		assert_noop!(2202			Unique::create_item(2203				origin2,2204				CollectionId(1),2205				account(2),2206				default_nft_data().into()2207			)2208			.map_err(|e| e.error),2209			CommonError::<Test>::PublicMintingNotAllowed2210		);2211	});2212}22132214// If Public Access mode is set to AllowList, and Mint Permission is set to true, tokens can be created by owner.2215#[test]2216fn allow_list_test_13() {2217	new_test_ext().execute_with(|| {2218		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));22192220		let origin1 = RuntimeOrigin::signed(1);22212222		assert_ok!(Unique::set_collection_permissions(2223			origin1.clone(),2224			collection_id,2225			CollectionPermissions {2226				mint_mode: Some(true),2227				access: Some(AccessMode::AllowList),2228				nesting: None,2229			}2230		));22312232		let data = default_nft_data();2233		create_test_item(collection_id, &data.into());2234	});2235}22362237// If Public Access mode is set to AllowList, and Mint Permission is set to true, tokens can be created by admin.2238#[test]2239fn allow_list_test_14() {2240	new_test_ext().execute_with(|| {2241		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));22422243		let origin1 = RuntimeOrigin::signed(1);2244		let origin2 = RuntimeOrigin::signed(2);22452246		assert_ok!(Unique::set_collection_permissions(2247			origin1.clone(),2248			collection_id,2249			CollectionPermissions {2250				mint_mode: Some(true),2251				access: Some(AccessMode::AllowList),2252				nesting: None,2253			}2254		));22552256		assert_ok!(Unique::add_collection_admin(2257			origin1,2258			collection_id,2259			account(2)2260		));22612262		assert_ok!(Unique::create_item(2263			origin2,2264			collection_id,2265			account(2),2266			default_nft_data().into()2267		));2268	});2269}22702271// If Public Access mode is set to AllowList, and Mint Permission is set to true, tokens cannot be created by non-privileged and non-allow listed address.2272#[test]2273fn allow_list_test_15() {2274	new_test_ext().execute_with(|| {2275		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));22762277		let origin1 = RuntimeOrigin::signed(1);2278		let origin2 = RuntimeOrigin::signed(2);22792280		assert_ok!(Unique::set_collection_permissions(2281			origin1.clone(),2282			collection_id,2283			CollectionPermissions {2284				mint_mode: Some(true),2285				access: Some(AccessMode::AllowList),2286				nesting: None,2287			}2288		));22892290		assert_noop!(2291			Unique::create_item(2292				origin2,2293				collection_id,2294				account(2),2295				default_nft_data().into()2296			)2297			.map_err(|e| e.error),2298			CommonError::<Test>::AddressNotInAllowlist2299		);2300	});2301}23022303// If Public Access mode is set to AllowList, and Mint Permission is set to true, tokens can be created by non-privileged and allow listed address.2304#[test]2305fn allow_list_test_16() {2306	new_test_ext().execute_with(|| {2307		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));23082309		let origin1 = RuntimeOrigin::signed(1);2310		let origin2 = RuntimeOrigin::signed(2);23112312		assert_ok!(Unique::set_collection_permissions(2313			origin1.clone(),2314			collection_id,2315			CollectionPermissions {2316				mint_mode: Some(true),2317				access: Some(AccessMode::AllowList),2318				nesting: None,2319			}2320		));2321		assert_ok!(Unique::add_to_allow_list(2322			origin1,2323			collection_id,2324			account(2)2325		));23262327		assert_ok!(Unique::create_item(2328			origin2,2329			collection_id,2330			account(2),2331			default_nft_data().into()2332		));2333	});2334}23352336// Total number of collections. Positive test2337#[test]2338fn total_number_collections_bound() {2339	new_test_ext().execute_with(|| {2340		create_test_collection(&CollectionMode::NFT, CollectionId(1));2341	});2342}23432344#[test]2345fn create_max_collections() {2346	new_test_ext().execute_with(|| {2347		for i in 1..COLLECTION_NUMBER_LIMIT {2348			create_test_collection(&CollectionMode::NFT, CollectionId(i));2349		}2350	});2351}23522353// Total number of collections. Negative test2354#[test]2355fn total_number_collections_bound_neg() {2356	new_test_ext().execute_with(|| {2357		let origin1 = RuntimeOrigin::signed(1);23582359		for i in 1..=COLLECTION_NUMBER_LIMIT {2360			create_test_collection(&CollectionMode::NFT, CollectionId(i));2361		}23622363		let col_name1: Vec<u16> = "Test1\0".encode_utf16().collect::<Vec<u16>>();2364		let col_desc1: Vec<u16> = "TestDescription1\0".encode_utf16().collect::<Vec<u16>>();2365		let token_prefix1: Vec<u8> = b"token_prefix1\0".to_vec();23662367		let data = CreateCollectionData {2368			name: col_name1.try_into().unwrap(),2369			description: col_desc1.try_into().unwrap(),2370			token_prefix: token_prefix1.try_into().unwrap(),2371			mode: CollectionMode::NFT,2372			..Default::default()2373		};23742375		// 11-th collection in chain. Expects error2376		assert_noop!(2377			Unique::create_collection_ex(origin1, data),2378			CommonError::<Test>::TotalCollectionsLimitExceeded2379		);2380	});2381}23822383// Owned tokens by a single address. Positive test2384#[test]2385fn owned_tokens_bound() {2386	new_test_ext().execute_with(|| {2387		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));23882389		let data = default_nft_data();2390		create_test_item(collection_id, &data.clone().into());2391		create_test_item(collection_id, &data.into());2392	});2393}23942395// Owned tokens by a single address. Negotive test2396#[test]2397fn owned_tokens_bound_neg() {2398	new_test_ext().execute_with(|| {2399		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));24002401		let origin1 = RuntimeOrigin::signed(1);24022403		for _ in 1..=MAX_TOKEN_OWNERSHIP {2404			let data = default_nft_data();2405			create_test_item(collection_id, &data.clone().into());2406		}24072408		let data = default_nft_data();2409		assert_noop!(2410			Unique::create_item(origin1, CollectionId(1), account(1), data.into())2411				.map_err(|e| e.error),2412			CommonError::<Test>::AccountTokenLimitExceeded2413		);2414	});2415}24162417// Number of collection admins. Positive test2418#[test]2419fn collection_admins_bound() {2420	new_test_ext().execute_with(|| {2421		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));24222423		let origin1 = RuntimeOrigin::signed(1);24242425		assert_ok!(Unique::add_collection_admin(2426			origin1.clone(),2427			collection_id,2428			account(2)2429		));2430		assert_ok!(Unique::add_collection_admin(2431			origin1,2432			collection_id,2433			account(3)2434		));2435	});2436}24372438// Number of collection admins. Negotive test2439#[test]2440fn collection_admins_bound_neg() {2441	new_test_ext().execute_with(|| {2442		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));24432444		let origin1 = RuntimeOrigin::signed(1);24452446		for i in 0..COLLECTION_ADMINS_LIMIT {2447			assert_ok!(Unique::add_collection_admin(2448				origin1.clone(),2449				collection_id,2450				account((2 + i).into())2451			));2452		}2453		assert_noop!(2454			Unique::add_collection_admin(2455				origin1,2456				collection_id,2457				account((3 + COLLECTION_ADMINS_LIMIT).into())2458			),2459			CommonError::<Test>::CollectionAdminCountExceeded2460		);2461	});2462}2463// #endregion24642465#[test]2466fn collection_transfer_flag_works() {2467	new_test_ext().execute_with(|| {2468		let origin1 = RuntimeOrigin::signed(1);24692470		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));2471		assert_ok!(Unique::set_transfers_enabled_flag(2472			origin1,2473			collection_id,2474			true2475		));24762477		let data = default_nft_data();2478		create_test_item(collection_id, &data.into());2479		assert_eq!(2480			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),2481			12482		);2483		assert_eq!(2484			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),2485			true2486		);24872488		let origin1 = RuntimeOrigin::signed(1);24892490		// default scenario2491		assert_ok!(Unique::transfer(2492			origin1,2493			account(2),2494			collection_id,2495			TokenId(1),2496			12497		));2498		assert_eq!(2499			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),2500			false2501		);2502		assert_eq!(2503			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),2504			true2505		);2506		assert_eq!(2507			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),2508			02509		);2510		assert_eq!(2511			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(2))),2512			12513		);2514	});2515}25162517#[test]2518fn collection_transfer_flag_works_neg() {2519	new_test_ext().execute_with(|| {2520		let origin1 = RuntimeOrigin::signed(1);25212522		let collection_id = create_test_collection(&CollectionMode::NFT, CollectionId(1));2523		assert_ok!(Unique::set_transfers_enabled_flag(2524			origin1,2525			collection_id,2526			false2527		));25282529		let data = default_nft_data();2530		create_test_item(collection_id, &data.into());2531		assert_eq!(2532			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),2533			12534		);2535		assert_eq!(2536			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),2537			true2538		);25392540		let origin1 = RuntimeOrigin::signed(1);25412542		// default scenario2543		assert_noop!(2544			Unique::transfer(origin1, account(2), CollectionId(1), TokenId(1), 1)2545				.map_err(|e| e.error),2546			CommonError::<Test>::TransferNotAllowed2547		);2548		assert_eq!(2549			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(1))),2550			12551		);2552		assert_eq!(2553			<pallet_nonfungible::AccountBalance<Test>>::get((collection_id, account(2))),2554			02555		);2556		assert_eq!(2557			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(1), TokenId(1))),2558			true2559		);2560		assert_eq!(2561			<pallet_nonfungible::Owned<Test>>::get((collection_id, account(2), TokenId(1))),2562			false2563		);2564	});2565}25662567#[test]2568fn collection_sponsoring() {2569	new_test_ext().execute_with(|| {2570		// default_limits();2571		let user1 = 1_u64;2572		let user2 = 777_u64;2573		let origin1 = RuntimeOrigin::signed(user1);2574		let origin2 = RuntimeOrigin::signed(user2);2575		let account2 = account(user2);25762577		let collection_id =2578			create_test_collection_for_owner(&CollectionMode::NFT, user1, CollectionId(1));2579		assert_ok!(Unique::set_collection_sponsor(2580			origin1.clone(),2581			collection_id,2582			user12583		));2584		assert_ok!(Unique::confirm_sponsorship(origin1.clone(), collection_id));25852586		// Expect error while have no permissions2587		assert!(Unique::create_item(2588			origin2.clone(),2589			collection_id,2590			account2.clone(),2591			default_nft_data().into()2592		)2593		.is_err());25942595		assert_ok!(Unique::set_collection_permissions(2596			origin1.clone(),2597			collection_id,2598			CollectionPermissions {2599				mint_mode: Some(true),2600				access: Some(AccessMode::AllowList),2601				nesting: None,2602			}2603		));2604		assert_ok!(Unique::add_to_allow_list(2605			origin1.clone(),2606			collection_id,2607			account2.clone()2608		));26092610		assert_ok!(Unique::create_item(2611			origin2,2612			collection_id,2613			account2,2614			default_nft_data().into()2615		));2616	});2617}26182619mod check_token_permissions {2620	use super::*;2621	use pallet_common::LazyValue;26222623	fn test<FTE: FnOnce() -> bool>(2624		i: usize,2625		test_case: &pallet_common::tests::TestCase,2626		check_token_existence: &mut LazyValue<bool, FTE>,2627	) {2628		let collection_admin = test_case.collection_admin;2629		let mut is_collection_admin = LazyValue::new(|| test_case.is_collection_admin);2630		let token_owner = test_case.token_owner;2631		let mut is_token_owner = LazyValue::new(|| Ok(test_case.is_token_owner));2632		let is_no_permission = test_case.no_permission;26332634		let result = pallet_common::tests::check_token_permissions::<Test, _, _, FTE>(2635			collection_admin,2636			token_owner,2637			&mut is_collection_admin,2638			&mut is_token_owner,2639			check_token_existence,2640		);26412642		if is_no_permission {2643			assert!(2644				result.is_err(),2645				"{i}: {test_case:?}, token_exist: {}",2646				check_token_existence.value()2647			);2648			assert_err!(result, pallet_common::Error::<Test>::NoPermission,);2649		} else if check_token_existence.has_value() && !check_token_existence.value() {2650			assert!(2651				result.is_err(),2652				"{i}: {test_case:?}, token_exist: {}",2653				check_token_existence.value()2654			);2655			assert_err!(result, pallet_common::Error::<Test>::TokenNotFound,);2656		}2657	}26582659	#[test]2660	fn no_permission_only() {2661		new_test_ext().execute_with(|| {2662			let mut check_token_existence = LazyValue::new(|| true);2663			for (i, row) in pallet_common::tests::TABLE.iter().enumerate() {2664				test(i, row, &mut check_token_existence);2665			}2666		});2667	}26682669	#[test]2670	fn no_permission_and_token_not_found() {2671		new_test_ext().execute_with(|| {2672			for (i, row) in pallet_common::tests::TABLE.iter().enumerate() {2673				// This is inside the loop to keep track of whether the lambda was called2674				let mut check_token_existence = LazyValue::new(|| false);2675				test(i, row, &mut check_token_existence);2676			}2677		});2678	}2679}
modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -48,6 +48,7 @@
     "testEthFractionalizer": "yarn _test './**/eth/fractionalizer/**/*.*test.ts'",
     "testEthMarketplace": "yarn _test './**/eth/marketplace/**/*.*test.ts'",
     "testEthMarket": "yarn _test './**/eth/marketplace-v2/**/*.*test.ts'",
+    "testPerformance": "yarn _test ./**/performance.*test.ts",
     "testSub": "yarn _test './**/sub/**/*.*test.ts'",
     "testSubNesting": "yarn _test './**/sub/nesting/**/*.*test.ts'",
     "testEvent": "yarn _test ./src/check-event/*.*test.ts",
modifiedtests/src/migrations/942057-appPromotion/lockedToFreeze.tsdiffbeforeafterboth
--- a/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts
+++ b/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts
@@ -4,9 +4,10 @@
 import path, {dirname} from 'path';
 import {isInteger, parse} from 'lossless-json';
 import {fileURLToPath} from 'url';
+import config from '../../config';
 
 
-const WS_ENDPOINT = 'ws://localhost:9944';
+const WS_ENDPOINT = config.substrateUrl;
 const DONOR_SEED = '//Alice';
 const UPDATE_IF_VERSION = 942057;
 
modifiedtests/src/migrations/correctStateAfterMaintenance.tsdiffbeforeafterboth
--- a/tests/src/migrations/correctStateAfterMaintenance.ts
+++ b/tests/src/migrations/correctStateAfterMaintenance.ts
@@ -1,8 +1,9 @@
+import config from '../config';
 import {usingPlaygrounds} from '../util';
 
 
 
-const WS_ENDPOINT = 'ws://localhost:9944';
+const WS_ENDPOINT = config.substrateUrl;
 const DONOR_SEED = '//Alice';
 
 export const main = async(options: { wsEndpoint: string; donorSeed: string } = {
@@ -66,4 +67,4 @@
 
 const chunk = <T>(arr: T[], size: number) =>
   Array.from({length: Math.ceil(arr.length / size)}, (_: any, i: number) =>
-    arr.slice(i * size, i * size + size));
\ No newline at end of file
+    arr.slice(i * size, i * size + size));
addedtests/src/performance.seq.test.tsdiffbeforeafterboth
--- /dev/null
+++ b/tests/src/performance.seq.test.ts
@@ -0,0 +1,166 @@
+// Copyright 2019-2023 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+import {ApiPromise} from '@polkadot/api';
+import {IKeyringPair} from '@polkadot/types/types';
+import {expect, itSub, usingPlaygrounds} from './util';
+import {ICrossAccountId, IProperty} from './util/playgrounds/types';
+import {UniqueHelper} from './util/playgrounds/unique';
+
+describe('Performace tests', () => {
+  let alice: IKeyringPair;
+  const MAX_TOKENS_TO_MINT = 200;
+
+  before(async () => {
+    await usingPlaygrounds(async (helper, privateKey) => {
+      const donor = await privateKey({url: import.meta.url});
+      [alice] = await helper.arrange.createAccounts([100_000n], donor);
+    });
+  });
+
+  itSub('NFT tokens minting', async ({helper}) => {
+    const propertyKey = 'prop-a';
+    const collection = await helper.nft.mintCollection(alice, {
+      name: 'test properties',
+      description: 'test properties collection',
+      tokenPrefix: 'TPC',
+      tokenPropertyPermissions: [
+        {key: propertyKey, permission: {mutable: true, collectionAdmin: true, tokenOwner: true}},
+      ],
+    });
+
+
+    const results = [];
+    const step = 1_000;
+    const sizeOfKey = sizeOfEncodedStr(propertyKey);
+    let currentSize = step;
+    let startCount = 0;
+    let minterFunc = tryMintUnsafeRPC;
+    try {
+      startCount = await tryMintUnsafeRPC(helper, alice, MAX_TOKENS_TO_MINT, collection.collectionId, {Substrate: alice.address});
+    }
+    catch (e) {
+      startCount = await tryMintExplicit(helper, alice, MAX_TOKENS_TO_MINT, collection.collectionId, {Substrate: alice.address});
+      minterFunc = tryMintExplicit;
+    }
+    results.push({propertySize: 0, tokens: startCount});
+
+    while(currentSize <= 32_000) {
+      const property = {key: propertyKey, value: 'A'.repeat(currentSize - sizeOfKey - sizeOfInt(currentSize))};
+      const maxTokens = Math.ceil(results.map(x => x.tokens).reduce((a, b) => a + b) / results.length);
+      const tokens = await minterFunc(helper, alice, maxTokens, collection.collectionId, {Substrate: alice.address}, property);
+      results.push({propertySize: sizeOfProperty(property), tokens});
+      currentSize += step;
+      await helper.wait.newBlocks(2);
+    }
+
+    expect(results).to.be.deep.equal([
+      {propertySize: 0, tokens: 200},
+      {propertySize: 1000, tokens: 149},
+      {propertySize: 2000, tokens: 149},
+      {propertySize: 3000, tokens: 149},
+      {propertySize: 4000, tokens: 149},
+      {propertySize: 5000, tokens: 149},
+      {propertySize: 6000, tokens: 149},
+      {propertySize: 7000, tokens: 149},
+      {propertySize: 8000, tokens: 149},
+      {propertySize: 9000, tokens: 149},
+      {propertySize: 10000, tokens: 149},
+      {propertySize: 11000, tokens: 149},
+      {propertySize: 12000, tokens: 149},
+      {propertySize: 13000, tokens: 149},
+      {propertySize: 14000, tokens: 149},
+      {propertySize: 15000, tokens: 149},
+      {propertySize: 16000, tokens: 149},
+      {propertySize: 17000, tokens: 149},
+      {propertySize: 18000, tokens: 149},
+      {propertySize: 19000, tokens: 149},
+      {propertySize: 20000, tokens: 149},
+      {propertySize: 21000, tokens: 149},
+      {propertySize: 22000, tokens: 149},
+      {propertySize: 23000, tokens: 149},
+      {propertySize: 24000, tokens: 149},
+      {propertySize: 25000, tokens: 149},
+      {propertySize: 26000, tokens: 149},
+      {propertySize: 27000, tokens: 145},
+      {propertySize: 28000, tokens: 140},
+      {propertySize: 29000, tokens: 135},
+      {propertySize: 30000, tokens: 130},
+      {propertySize: 31000, tokens: 126},
+      {propertySize: 32000, tokens: 122},
+    ]);
+  });
+});
+
+
+const dryRun = async (api: ApiPromise, signer: IKeyringPair, tx: any) => {
+  const signed = await tx.signAsync(signer);
+  const dryRun = await api.rpc.system.dryRun(signed.toHex());
+  return dryRun.isOk && dryRun.asOk.isOk;
+};
+
+const getTokens = (tokensCount: number, owner: ICrossAccountId, property?: IProperty) => (new Array(tokensCount)).fill(0).map(() => {
+  const token = {owner} as {owner: ICrossAccountId, properties?: IProperty[]};
+  if(property) token.properties = [property];
+  return token;
+});
+
+const tryMintUnsafeRPC = async (helper: UniqueHelper, signer: IKeyringPair, tokensCount: number, collectionId: number, owner: ICrossAccountId, property?: IProperty): Promise<number> => {
+  if(tokensCount < 10) console.log('try mint', tokensCount, 'tokens');
+  const tokens = getTokens(tokensCount, owner, property);
+  const tx = helper.constructApiCall('api.tx.unique.createMultipleItemsEx', [collectionId, {NFT: tokens}]);
+  if(!(await dryRun(helper.getApi(), signer, tx))) {
+    if(tokensCount < 2) return 0;
+    return await tryMintUnsafeRPC(helper, signer, tokensCount - 1, collectionId, owner, property);
+  }
+  await helper.executeExtrinsic(signer, 'api.tx.unique.createMultipleItemsEx', [collectionId, {NFT: tokens}]);
+  return tokensCount;
+};
+
+const tryMintExplicit = async (helper: UniqueHelper, signer: IKeyringPair, tokensCount: number, collectionId: number, owner: ICrossAccountId, property?: IProperty): Promise<number> => {
+  const tokens = getTokens(tokensCount, owner, property);
+  try {
+    await helper.executeExtrinsic(signer, 'api.tx.unique.createMultipleItemsEx', [collectionId, {NFT: tokens}]);
+  }
+  catch (e) {
+    if(tokensCount < 2) return 0;
+    return await tryMintExplicit(helper, signer, tokensCount - 1, collectionId, owner, property);
+  }
+  return tokensCount;
+};
+
+function sizeOfProperty(prop: IProperty) {
+  return sizeOfEncodedStr(prop.key) + sizeOfEncodedStr(prop.value!);
+}
+
+function sizeOfInt(i: number) {
+  if(i < 0 || i > 0xffffffff) throw new Error('out of range');
+  if(i < 0b11_1111) {
+    return 1;
+  } else if(i < 0b11_1111_1111_1111) {
+    return 2;
+  } else if(i < 0b11_1111_1111_1111_1111_1111_1111_1111) {
+    return 4;
+  } else {
+    return 5;
+  }
+}
+
+const UTF8_ENCODER = new TextEncoder();
+function sizeOfEncodedStr(v: string) {
+  const encoded = UTF8_ENCODER.encode(v);
+  return sizeOfInt(encoded.length) + encoded.length;
+}