git.delta.rocks / unique-network / refs/commits / ce1b50922ae4

difftreelog

feat(identity) divide set_identities into insert and remove + tests + finish identity inserter script

Fahrrader2022-12-28parent: #4176e4d.patch.diff
in: master

18 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6054,7 +6054,6 @@
  "frame-support",
  "frame-system",
  "pallet-evm",
- "pallet-identity 4.0.0-dev",
  "parity-scale-codec 3.2.1",
  "scale-info",
  "sp-core",
modifiedpallets/evm-migration/Cargo.tomldiffbeforeafterboth
--- a/pallets/evm-migration/Cargo.toml
+++ b/pallets/evm-migration/Cargo.toml
@@ -16,7 +16,6 @@
 sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
 sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
 sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
-pallet-identity = { default-features = false, path = "../identity" }
 pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
 fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
 
modifiedpallets/identity/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/identity/src/benchmarking.rs
+++ b/pallets/identity/src/benchmarking.rs
@@ -41,7 +41,7 @@
 use crate::Pallet as Identity;
 use frame_benchmarking::{account, benchmarks, whitelisted_caller};
 use frame_support::{
-	ensure,
+	ensure, assert_ok,
 	traits::{EnsureOrigin, Get},
 };
 use frame_system::RawOrigin;
@@ -412,21 +412,40 @@
 		ensure!(!IdentityOf::<T>::contains_key(&target), "Identity not removed");
 	}
 
-	set_identities {
+	force_insert_identities {
 		let x in 0 .. T::MaxAdditionalFields::get();
 		let n in 0..600;
 		use frame_benchmarking::account;
 		let identities = (0..n).map(|i| (
 			account("caller", i, 0),
-			Some(Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
+			Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
 				judgements: Default::default(),
 				deposit: Default::default(),
 				info: create_identity_info::<T>(x),
-			}),
+			},
 		)).collect::<Vec<_>>();
 		let origin = T::ForceOrigin::successful_origin();
 	}: _<T::RuntimeOrigin>(origin, identities)
 
+	force_remove_identities {
+		let x in 0 .. T::MaxAdditionalFields::get();
+		let n in 0..600;
+		use frame_benchmarking::account;
+		let origin = T::ForceOrigin::successful_origin();
+		let identities = (0..n).map(|i| (
+			account("caller", i, 0),
+			Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
+				judgements: Default::default(),
+				deposit: Default::default(),
+				info: create_identity_info::<T>(x),
+			},
+		)).collect::<Vec<_>>();
+		assert_ok!(
+			Identity::<T>::force_insert_identities(origin.clone(), identities.clone()),
+		);
+		let identities = identities.into_iter().map(|(acc, _)| acc).collect::<Vec<_>>();
+	}: _<T::RuntimeOrigin>(origin, identities)
+
 	add_sub {
 		let s in 0 .. T::MaxSubAccounts::get() - 1;
 
modifiedpallets/identity/src/lib.rsdiffbeforeafterboth
before · pallets/identity/src/lib.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// Original license:18// This file is part of Substrate.1920// Copyright (C) 2019-2022 Parity Technologies (UK) Ltd.21// SPDX-License-Identifier: Apache-2.02223// Licensed under the Apache License, Version 2.0 (the "License");24// you may not use this file except in compliance with the License.25// You may obtain a copy of the License at26//27// 	http://www.apache.org/licenses/LICENSE-2.028//29// Unless required by applicable law or agreed to in writing, software30// distributed under the License is distributed on an "AS IS" BASIS,31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.32// See the License for the specific language governing permissions and33// limitations under the License.3435//! # Identity Pallet36//!37//! - [`Config`]38//! - [`Call`]39//!40//! ## Overview41//!42//! A federated naming system, allowing for multiple registrars to be added from a specified origin.43//! Registrars can set a fee to provide identity-verification service. Anyone can put forth a44//! proposed identity for a fixed deposit and ask for review by any number of registrars (paying45//! each of their fees). Registrar judgements are given as an `enum`, allowing for sophisticated,46//! multi-tier opinions.47//!48//! Some judgements are identified as *sticky*, which means they cannot be removed except by49//! complete removal of the identity, or by the registrar. Judgements are allowed to represent a50//! portion of funds that have been reserved for the registrar.51//!52//! A super-user can remove accounts and in doing so, slash the deposit.53//!54//! All accounts may also have a limited number of sub-accounts which may be specified by the owner;55//! by definition, these have equivalent ownership and each has an individual name.56//!57//! The number of registrars should be limited, and the deposit made sufficiently large, to ensure58//! no state-bloat attack is viable.59//!60//! ## Interface61//!62//! ### Dispatchable Functions63//!64//! #### For general users65//! * `set_identity` - Set the associated identity of an account; a small deposit is reserved if not66//!   already taken.67//! * `clear_identity` - Remove an account's associated identity; the deposit is returned.68//! * `request_judgement` - Request a judgement from a registrar, paying a fee.69//! * `cancel_request` - Cancel the previous request for a judgement.70//!71//! #### For general users with sub-identities72//! * `set_subs` - Set the sub-accounts of an identity.73//! * `add_sub` - Add a sub-identity to an identity.74//! * `remove_sub` - Remove a sub-identity of an identity.75//! * `rename_sub` - Rename a sub-identity of an identity.76//! * `quit_sub` - Remove a sub-identity of an identity (called by the sub-identity).77//!78//! #### For registrars79//! * `set_fee` - Set the fee required to be paid for a judgement to be given by the registrar.80//! * `set_fields` - Set the fields that a registrar cares about in their judgements.81//! * `provide_judgement` - Provide a judgement to an identity.82//!83//! #### For super-users84//! * `add_registrar` - Add a new registrar to the system.85//! * `kill_identity` - Forcibly remove the associated identity; the deposit is lost.86//!87//! [`Call`]: ./enum.Call.html88//! [`Config`]: ./trait.Config.html8990#![cfg_attr(not(feature = "std"), no_std)]9192mod benchmarking;93#[cfg(test)]94mod tests;95mod types;96pub mod weights;9798use frame_support::traits::{BalanceStatus, Currency, OnUnbalanced, ReservableCurrency};99use sp_runtime::traits::{AppendZerosInput, Hash, Saturating, StaticLookup, Zero};100use sp_std::prelude::*;101pub use weights::WeightInfo;102103pub use pallet::*;104pub use types::{105	Data, IdentityField, IdentityFields, IdentityInfo, Judgement, RegistrarIndex, RegistrarInfo,106	Registration,107};108109pub type BalanceOf<T> =110	<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;111type NegativeImbalanceOf<T> = <<T as Config>::Currency as Currency<112	<T as frame_system::Config>::AccountId,113>>::NegativeImbalance;114type AccountIdLookupOf<T> = <<T as frame_system::Config>::Lookup as StaticLookup>::Source;115116#[frame_support::pallet]117pub mod pallet {118	use super::*;119	use frame_support::pallet_prelude::*;120	use frame_system::pallet_prelude::*;121122	#[pallet::config]123	pub trait Config: frame_system::Config {124		/// The overarching event type.125		type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;126127		/// The currency trait.128		type Currency: ReservableCurrency<Self::AccountId>;129130		/// The amount held on deposit for a registered identity131		#[pallet::constant]132		type BasicDeposit: Get<BalanceOf<Self>>;133134		/// The amount held on deposit per additional field for a registered identity.135		#[pallet::constant]136		type FieldDeposit: Get<BalanceOf<Self>>;137138		/// The amount held on deposit for a registered subaccount. This should account for the fact139		/// that one storage item's value will increase by the size of an account ID, and there will140		/// be another trie item whose value is the size of an account ID plus 32 bytes.141		#[pallet::constant]142		type SubAccountDeposit: Get<BalanceOf<Self>>;143144		/// The maximum number of sub-accounts allowed per identified account.145		#[pallet::constant]146		type MaxSubAccounts: Get<u32>;147148		/// Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O149		/// required to access an identity, but can be pretty high.150		#[pallet::constant]151		type MaxAdditionalFields: Get<u32>;152153		/// Maxmimum number of registrars allowed in the system. Needed to bound the complexity154		/// of, e.g., updating judgements.155		#[pallet::constant]156		type MaxRegistrars: Get<u32>;157158		/// What to do with slashed funds.159		type Slashed: OnUnbalanced<NegativeImbalanceOf<Self>>;160161		/// The origin which may forcibly set or remove a name. Root can always do this.162		type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>;163164		/// The origin which may add or remove registrars. Root can always do this.165		type RegistrarOrigin: EnsureOrigin<Self::RuntimeOrigin>;166167		/// Weight information for extrinsics in this pallet.168		type WeightInfo: WeightInfo;169	}170171	#[pallet::pallet]172	#[pallet::generate_store(pub(super) trait Store)]173	pub struct Pallet<T>(_);174175	/// Information that is pertinent to identify the entity behind an account.176	///177	/// TWOX-NOTE: OK ― `AccountId` is a secure hash.178	#[pallet::storage]179	#[pallet::getter(fn identity)]180	pub type IdentityOf<T: Config> = StorageMap<181		_,182		Twox64Concat,183		T::AccountId,184		Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>,185		OptionQuery,186	>;187188	/// The super-identity of an alternative "sub" identity together with its name, within that189	/// context. If the account is not some other account's sub-identity, then just `None`.190	#[pallet::storage]191	#[pallet::getter(fn super_of)]192	pub(super) type SuperOf<T: Config> =193		StorageMap<_, Blake2_128Concat, T::AccountId, (T::AccountId, Data), OptionQuery>;194195	/// Alternative "sub" identities of this account.196	///197	/// The first item is the deposit, the second is a vector of the accounts.198	///199	/// TWOX-NOTE: OK ― `AccountId` is a secure hash.200	#[pallet::storage]201	#[pallet::getter(fn subs_of)]202	pub(super) type SubsOf<T: Config> = StorageMap<203		_,204		Twox64Concat,205		T::AccountId,206		(BalanceOf<T>, BoundedVec<T::AccountId, T::MaxSubAccounts>),207		ValueQuery,208	>;209210	/// The set of registrars. Not expected to get very big as can only be added through a211	/// special origin (likely a council motion).212	///213	/// The index into this can be cast to `RegistrarIndex` to get a valid value.214	#[pallet::storage]215	#[pallet::getter(fn registrars)]216	pub(super) type Registrars<T: Config> = StorageValue<217		_,218		BoundedVec<Option<RegistrarInfo<BalanceOf<T>, T::AccountId>>, T::MaxRegistrars>,219		ValueQuery,220	>;221222	#[pallet::error]223	pub enum Error<T> {224		/// Too many subs-accounts.225		TooManySubAccounts,226		/// Account isn't found.227		NotFound,228		/// Account isn't named.229		NotNamed,230		/// Empty index.231		EmptyIndex,232		/// Fee is changed.233		FeeChanged,234		/// No identity found.235		NoIdentity,236		/// Sticky judgement.237		StickyJudgement,238		/// Judgement given.239		JudgementGiven,240		/// Invalid judgement.241		InvalidJudgement,242		/// The index is invalid.243		InvalidIndex,244		/// The target is invalid.245		InvalidTarget,246		/// Too many additional fields.247		TooManyFields,248		/// Maximum amount of registrars reached. Cannot add any more.249		TooManyRegistrars,250		/// Account ID is already named.251		AlreadyClaimed,252		/// Sender is not a sub-account.253		NotSub,254		/// Sub-account isn't owned by sender.255		NotOwned,256		/// The provided judgement was for a different identity.257		JudgementForDifferentIdentity,258		/// Error that occurs when there is an issue paying for judgement.259		JudgementPaymentFailed,260	}261262	#[pallet::event]263	#[pallet::generate_deposit(pub(super) fn deposit_event)]264	pub enum Event<T: Config> {265		/// A name was set or reset (which will remove all judgements).266		IdentitySet { who: T::AccountId },267		/// A name was cleared, and the given balance returned.268		IdentityCleared {269			who: T::AccountId,270			deposit: BalanceOf<T>,271		},272		/// A name was removed and the given balance slashed.273		IdentityKilled {274			who: T::AccountId,275			deposit: BalanceOf<T>,276		},277		/// A judgement was asked from a registrar.278		JudgementRequested {279			who: T::AccountId,280			registrar_index: RegistrarIndex,281		},282		/// A judgement request was retracted.283		JudgementUnrequested {284			who: T::AccountId,285			registrar_index: RegistrarIndex,286		},287		/// A judgement was given by a registrar.288		JudgementGiven {289			target: T::AccountId,290			registrar_index: RegistrarIndex,291		},292		/// A registrar was added.293		RegistrarAdded { registrar_index: RegistrarIndex },294		/// A sub-identity was added to an identity and the deposit paid.295		SubIdentityAdded {296			sub: T::AccountId,297			main: T::AccountId,298			deposit: BalanceOf<T>,299		},300		/// A sub-identity was removed from an identity and the deposit freed.301		SubIdentityRemoved {302			sub: T::AccountId,303			main: T::AccountId,304			deposit: BalanceOf<T>,305		},306		/// A sub-identity was cleared, and the given deposit repatriated from the307		/// main identity account to the sub-identity account.308		SubIdentityRevoked {309			sub: T::AccountId,310			main: T::AccountId,311			deposit: BalanceOf<T>,312		},313	}314315	#[pallet::call]316	/// Identity pallet declaration.317	impl<T: Config> Pallet<T> {318		/// Add a registrar to the system.319		///320		/// The dispatch origin for this call must be `T::RegistrarOrigin`.321		///322		/// - `account`: the account of the registrar.323		///324		/// Emits `RegistrarAdded` if successful.325		///326		/// # <weight>327		/// - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).328		/// - One storage mutation (codec `O(R)`).329		/// - One event.330		/// # </weight>331		#[pallet::call_index(0)]332		#[pallet::weight(T::WeightInfo::add_registrar(T::MaxRegistrars::get()))]333		pub fn add_registrar(334			origin: OriginFor<T>,335			account: AccountIdLookupOf<T>,336		) -> DispatchResultWithPostInfo {337			T::RegistrarOrigin::ensure_origin(origin)?;338			let account = T::Lookup::lookup(account)?;339340			let (i, registrar_count) = <Registrars<T>>::try_mutate(341				|registrars| -> Result<(RegistrarIndex, usize), DispatchError> {342					registrars343						.try_push(Some(RegistrarInfo {344							account,345							fee: Zero::zero(),346							fields: Default::default(),347						}))348						.map_err(|_| Error::<T>::TooManyRegistrars)?;349					Ok(((registrars.len() - 1) as RegistrarIndex, registrars.len()))350				},351			)?;352353			Self::deposit_event(Event::RegistrarAdded { registrar_index: i });354355			Ok(Some(T::WeightInfo::add_registrar(registrar_count as u32)).into())356		}357358		/// Set an account's identity information and reserve the appropriate deposit.359		///360		/// If the account already has identity information, the deposit is taken as part payment361		/// for the new deposit.362		///363		/// The dispatch origin for this call must be _Signed_.364		///365		/// - `info`: The identity information.366		///367		/// Emits `IdentitySet` if successful.368		///369		/// # <weight>370		/// - `O(X + X' + R)`371		///   - where `X` additional-field-count (deposit-bounded and code-bounded)372		///   - where `R` judgements-count (registrar-count-bounded)373		/// - One balance reserve operation.374		/// - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).375		/// - One event.376		/// # </weight>377		#[pallet::call_index(1)]378		#[pallet::weight( T::WeightInfo::set_identity(379			T::MaxRegistrars::get(), // R380			T::MaxAdditionalFields::get(), // X381		))]382		pub fn set_identity(383			origin: OriginFor<T>,384			info: Box<IdentityInfo<T::MaxAdditionalFields>>,385		) -> DispatchResultWithPostInfo {386			let sender = ensure_signed(origin)?;387			let extra_fields = info.additional.len() as u32;388			ensure!(389				extra_fields <= T::MaxAdditionalFields::get(),390				Error::<T>::TooManyFields391			);392			let fd = <BalanceOf<T>>::from(extra_fields) * T::FieldDeposit::get();393394			let mut id = match <IdentityOf<T>>::get(&sender) {395				Some(mut id) => {396					// Only keep non-positive judgements.397					id.judgements.retain(|j| j.1.is_sticky());398					id.info = *info;399					id400				}401				None => Registration {402					info: *info,403					judgements: BoundedVec::default(),404					deposit: Zero::zero(),405				},406			};407408			let old_deposit = id.deposit;409			id.deposit = T::BasicDeposit::get() + fd;410			if id.deposit > old_deposit {411				T::Currency::reserve(&sender, id.deposit - old_deposit)?;412			}413			if old_deposit > id.deposit {414				let err_amount = T::Currency::unreserve(&sender, old_deposit - id.deposit);415				debug_assert!(err_amount.is_zero());416			}417418			let judgements = id.judgements.len();419			<IdentityOf<T>>::insert(&sender, id);420			Self::deposit_event(Event::IdentitySet { who: sender });421422			Ok(Some(T::WeightInfo::set_identity(423				judgements as u32, // R424				extra_fields,      // X425			))426			.into())427		}428429		/// Set the sub-accounts of the sender.430		///431		/// Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned432		/// and an amount `SubAccountDeposit` will be reserved for each item in `subs`.433		///434		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered435		/// identity.436		///437		/// - `subs`: The identity's (new) sub-accounts.438		///439		/// # <weight>440		/// - `O(P + S)`441		///   - where `P` old-subs-count (hard- and deposit-bounded).442		///   - where `S` subs-count (hard- and deposit-bounded).443		/// - At most one balance operations.444		/// - DB:445		///   - `P + S` storage mutations (codec complexity `O(1)`)446		///   - One storage read (codec complexity `O(P)`).447		///   - One storage write (codec complexity `O(S)`).448		///   - One storage-exists (`IdentityOf::contains_key`).449		/// # </weight>450		// TODO: This whole extrinsic screams "not optimized". For example we could451		// filter any overlap between new and old subs, and avoid reading/writing452		// to those values... We could also ideally avoid needing to write to453		// N storage items for N sub accounts. Right now the weight on this function454		// is a large overestimate due to the fact that it could potentially write455		// to 2 x T::MaxSubAccounts::get().456		#[pallet::call_index(2)]457		#[pallet::weight(T::WeightInfo::set_subs_old(T::MaxSubAccounts::get()) // P: Assume max sub accounts removed.458			.saturating_add(T::WeightInfo::set_subs_new(subs.len() as u32)) // S: Assume all subs are new.459		)]460		pub fn set_subs(461			origin: OriginFor<T>,462			subs: Vec<(T::AccountId, Data)>,463		) -> DispatchResultWithPostInfo {464			let sender = ensure_signed(origin)?;465			ensure!(<IdentityOf<T>>::contains_key(&sender), Error::<T>::NotFound);466			ensure!(467				subs.len() <= T::MaxSubAccounts::get() as usize,468				Error::<T>::TooManySubAccounts469			);470471			let (old_deposit, old_ids) = <SubsOf<T>>::get(&sender);472			let new_deposit = T::SubAccountDeposit::get() * <BalanceOf<T>>::from(subs.len() as u32);473474			let not_other_sub = subs475				.iter()476				.filter_map(|i| SuperOf::<T>::get(&i.0))477				.all(|i| i.0 == sender);478			ensure!(not_other_sub, Error::<T>::AlreadyClaimed);479480			if old_deposit < new_deposit {481				T::Currency::reserve(&sender, new_deposit - old_deposit)?;482			} else if old_deposit > new_deposit {483				let err_amount = T::Currency::unreserve(&sender, old_deposit - new_deposit);484				debug_assert!(err_amount.is_zero());485			}486			// do nothing if they're equal.487488			for s in old_ids.iter() {489				<SuperOf<T>>::remove(s);490			}491			let mut ids = BoundedVec::<T::AccountId, T::MaxSubAccounts>::default();492			for (id, name) in subs {493				<SuperOf<T>>::insert(&id, (sender.clone(), name));494				ids.try_push(id)495					.expect("subs length is less than T::MaxSubAccounts; qed");496			}497			let new_subs = ids.len();498499			if ids.is_empty() {500				<SubsOf<T>>::remove(&sender);501			} else {502				<SubsOf<T>>::insert(&sender, (new_deposit, ids));503			}504505			Ok(Some(506				T::WeightInfo::set_subs_old(old_ids.len() as u32) // P: Real number of old accounts removed.507					// S: New subs added508					.saturating_add(T::WeightInfo::set_subs_new(new_subs as u32)),509			)510			.into())511		}512513		/// Clear an account's identity info and all sub-accounts and return all deposits.514		///515		/// Payment: All reserved balances on the account are returned.516		///517		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered518		/// identity.519		///520		/// Emits `IdentityCleared` if successful.521		///522		/// # <weight>523		/// - `O(R + S + X)`524		///   - where `R` registrar-count (governance-bounded).525		///   - where `S` subs-count (hard- and deposit-bounded).526		///   - where `X` additional-field-count (deposit-bounded and code-bounded).527		/// - One balance-unreserve operation.528		/// - `2` storage reads and `S + 2` storage deletions.529		/// - One event.530		/// # </weight>531		#[pallet::call_index(3)]532		#[pallet::weight(T::WeightInfo::clear_identity(533			T::MaxRegistrars::get(), // R534			T::MaxSubAccounts::get(), // S535			T::MaxAdditionalFields::get(), // X536		))]537		pub fn clear_identity(origin: OriginFor<T>) -> DispatchResultWithPostInfo {538			let sender = ensure_signed(origin)?;539540			let (subs_deposit, sub_ids) = <SubsOf<T>>::take(&sender);541			let id = <IdentityOf<T>>::take(&sender).ok_or(Error::<T>::NotNamed)?;542			let deposit = id.total_deposit() + subs_deposit;543			for sub in sub_ids.iter() {544				<SuperOf<T>>::remove(sub);545			}546547			let err_amount = T::Currency::unreserve(&sender, deposit);548			debug_assert!(err_amount.is_zero());549550			Self::deposit_event(Event::IdentityCleared {551				who: sender,552				deposit,553			});554555			Ok(Some(T::WeightInfo::clear_identity(556				id.judgements.len() as u32,      // R557				sub_ids.len() as u32,            // S558				id.info.additional.len() as u32, // X559			))560			.into())561		}562563		/// Request a judgement from a registrar.564		///565		/// Payment: At most `max_fee` will be reserved for payment to the registrar if judgement566		/// given.567		///568		/// The dispatch origin for this call must be _Signed_ and the sender must have a569		/// registered identity.570		///571		/// - `reg_index`: The index of the registrar whose judgement is requested.572		/// - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:573		///574		/// ```nocompile575		/// Self::registrars().get(reg_index).unwrap().fee576		/// ```577		///578		/// Emits `JudgementRequested` if successful.579		///580		/// # <weight>581		/// - `O(R + X)`.582		/// - One balance-reserve operation.583		/// - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.584		/// - One event.585		/// # </weight>586		#[pallet::call_index(4)]587		#[pallet::weight(T::WeightInfo::request_judgement(588			T::MaxRegistrars::get(), // R589			T::MaxAdditionalFields::get(), // X590		))]591		pub fn request_judgement(592			origin: OriginFor<T>,593			#[pallet::compact] reg_index: RegistrarIndex,594			#[pallet::compact] max_fee: BalanceOf<T>,595		) -> DispatchResultWithPostInfo {596			let sender = ensure_signed(origin)?;597			let registrars = <Registrars<T>>::get();598			let registrar = registrars599				.get(reg_index as usize)600				.and_then(Option::as_ref)601				.ok_or(Error::<T>::EmptyIndex)?;602			ensure!(max_fee >= registrar.fee, Error::<T>::FeeChanged);603			let mut id = <IdentityOf<T>>::get(&sender).ok_or(Error::<T>::NoIdentity)?;604605			let item = (reg_index, Judgement::FeePaid(registrar.fee));606			match id.judgements.binary_search_by_key(&reg_index, |x| x.0) {607				Ok(i) => {608					if id.judgements[i].1.is_sticky() {609						return Err(Error::<T>::StickyJudgement.into());610					} else {611						id.judgements[i] = item612					}613				}614				Err(i) => id615					.judgements616					.try_insert(i, item)617					.map_err(|_| Error::<T>::TooManyRegistrars)?,618			}619620			T::Currency::reserve(&sender, registrar.fee)?;621622			let judgements = id.judgements.len();623			let extra_fields = id.info.additional.len();624			<IdentityOf<T>>::insert(&sender, id);625626			Self::deposit_event(Event::JudgementRequested {627				who: sender,628				registrar_index: reg_index,629			});630631			Ok(Some(T::WeightInfo::request_judgement(632				judgements as u32,633				extra_fields as u32,634			))635			.into())636		}637638		/// Cancel a previous request.639		///640		/// Payment: A previously reserved deposit is returned on success.641		///642		/// The dispatch origin for this call must be _Signed_ and the sender must have a643		/// registered identity.644		///645		/// - `reg_index`: The index of the registrar whose judgement is no longer requested.646		///647		/// Emits `JudgementUnrequested` if successful.648		///649		/// # <weight>650		/// - `O(R + X)`.651		/// - One balance-reserve operation.652		/// - One storage mutation `O(R + X)`.653		/// - One event654		/// # </weight>655		#[pallet::call_index(5)]656		#[pallet::weight(T::WeightInfo::cancel_request(657			T::MaxRegistrars::get(), // R658			T::MaxAdditionalFields::get(), // X659		))]660		pub fn cancel_request(661			origin: OriginFor<T>,662			reg_index: RegistrarIndex,663		) -> DispatchResultWithPostInfo {664			let sender = ensure_signed(origin)?;665			let mut id = <IdentityOf<T>>::get(&sender).ok_or(Error::<T>::NoIdentity)?;666667			let pos = id668				.judgements669				.binary_search_by_key(&reg_index, |x| x.0)670				.map_err(|_| Error::<T>::NotFound)?;671			let fee = if let Judgement::FeePaid(fee) = id.judgements.remove(pos).1 {672				fee673			} else {674				return Err(Error::<T>::JudgementGiven.into());675			};676677			let err_amount = T::Currency::unreserve(&sender, fee);678			debug_assert!(err_amount.is_zero());679			let judgements = id.judgements.len();680			let extra_fields = id.info.additional.len();681			<IdentityOf<T>>::insert(&sender, id);682683			Self::deposit_event(Event::JudgementUnrequested {684				who: sender,685				registrar_index: reg_index,686			});687688			Ok(Some(T::WeightInfo::cancel_request(689				judgements as u32,690				extra_fields as u32,691			))692			.into())693		}694695		/// Set the fee required for a judgement to be requested from a registrar.696		///697		/// The dispatch origin for this call must be _Signed_ and the sender must be the account698		/// of the registrar whose index is `index`.699		///700		/// - `index`: the index of the registrar whose fee is to be set.701		/// - `fee`: the new fee.702		///703		/// # <weight>704		/// - `O(R)`.705		/// - One storage mutation `O(R)`.706		/// - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)707		/// # </weight>708		#[pallet::call_index(6)]709		#[pallet::weight(T::WeightInfo::set_fee(T::MaxRegistrars::get()))] // R710		pub fn set_fee(711			origin: OriginFor<T>,712			#[pallet::compact] index: RegistrarIndex,713			#[pallet::compact] fee: BalanceOf<T>,714		) -> DispatchResultWithPostInfo {715			let who = ensure_signed(origin)?;716717			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {718				rs.get_mut(index as usize)719					.and_then(|x| x.as_mut())720					.and_then(|r| {721						if r.account == who {722							r.fee = fee;723							Some(())724						} else {725							None726						}727					})728					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;729				Ok(rs.len())730			})?;731			Ok(Some(T::WeightInfo::set_fee(registrars as u32)).into()) // R732		}733734		/// Change the account associated with a registrar.735		///736		/// The dispatch origin for this call must be _Signed_ and the sender must be the account737		/// of the registrar whose index is `index`.738		///739		/// - `index`: the index of the registrar whose fee is to be set.740		/// - `new`: the new account ID.741		///742		/// # <weight>743		/// - `O(R)`.744		/// - One storage mutation `O(R)`.745		/// - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)746		/// # </weight>747		#[pallet::call_index(7)]748		#[pallet::weight(T::WeightInfo::set_account_id(T::MaxRegistrars::get()))] // R749		pub fn set_account_id(750			origin: OriginFor<T>,751			#[pallet::compact] index: RegistrarIndex,752			new: AccountIdLookupOf<T>,753		) -> DispatchResultWithPostInfo {754			let who = ensure_signed(origin)?;755			let new = T::Lookup::lookup(new)?;756757			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {758				rs.get_mut(index as usize)759					.and_then(|x| x.as_mut())760					.and_then(|r| {761						if r.account == who {762							r.account = new;763							Some(())764						} else {765							None766						}767					})768					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;769				Ok(rs.len())770			})?;771			Ok(Some(T::WeightInfo::set_account_id(registrars as u32)).into()) // R772		}773774		/// Set the field information for a registrar.775		///776		/// The dispatch origin for this call must be _Signed_ and the sender must be the account777		/// of the registrar whose index is `index`.778		///779		/// - `index`: the index of the registrar whose fee is to be set.780		/// - `fields`: the fields that the registrar concerns themselves with.781		///782		/// # <weight>783		/// - `O(R)`.784		/// - One storage mutation `O(R)`.785		/// - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)786		/// # </weight>787		#[pallet::call_index(8)]788		#[pallet::weight(T::WeightInfo::set_fields(T::MaxRegistrars::get()))] // R789		pub fn set_fields(790			origin: OriginFor<T>,791			#[pallet::compact] index: RegistrarIndex,792			fields: IdentityFields,793		) -> DispatchResultWithPostInfo {794			let who = ensure_signed(origin)?;795796			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {797				rs.get_mut(index as usize)798					.and_then(|x| x.as_mut())799					.and_then(|r| {800						if r.account == who {801							r.fields = fields;802							Some(())803						} else {804							None805						}806					})807					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;808				Ok(rs.len())809			})?;810			Ok(Some(T::WeightInfo::set_fields(811				registrars as u32, // R812			))813			.into())814		}815816		/// Provide a judgement for an account's identity.817		///818		/// The dispatch origin for this call must be _Signed_ and the sender must be the account819		/// of the registrar whose index is `reg_index`.820		///821		/// - `reg_index`: the index of the registrar whose judgement is being made.822		/// - `target`: the account whose identity the judgement is upon. This must be an account823		///   with a registered identity.824		/// - `judgement`: the judgement of the registrar of index `reg_index` about `target`.825		/// - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.826		///827		/// Emits `JudgementGiven` if successful.828		///829		/// # <weight>830		/// - `O(R + X)`.831		/// - One balance-transfer operation.832		/// - Up to one account-lookup operation.833		/// - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.834		/// - One event.835		/// # </weight>836		#[pallet::call_index(9)]837		#[pallet::weight(T::WeightInfo::provide_judgement(838			T::MaxRegistrars::get(), // R839			T::MaxAdditionalFields::get(), // X840		))]841		pub fn provide_judgement(842			origin: OriginFor<T>,843			#[pallet::compact] reg_index: RegistrarIndex,844			target: AccountIdLookupOf<T>,845			judgement: Judgement<BalanceOf<T>>,846			identity: T::Hash,847		) -> DispatchResultWithPostInfo {848			let sender = ensure_signed(origin)?;849			let target = T::Lookup::lookup(target)?;850			ensure!(!judgement.has_deposit(), Error::<T>::InvalidJudgement);851			<Registrars<T>>::get()852				.get(reg_index as usize)853				.and_then(Option::as_ref)854				.filter(|r| r.account == sender)855				.ok_or(Error::<T>::InvalidIndex)?;856			let mut id = <IdentityOf<T>>::get(&target).ok_or(Error::<T>::InvalidTarget)?;857858			if T::Hashing::hash_of(&id.info) != identity {859				return Err(Error::<T>::JudgementForDifferentIdentity.into());860			}861862			let item = (reg_index, judgement);863			match id.judgements.binary_search_by_key(&reg_index, |x| x.0) {864				Ok(position) => {865					if let Judgement::FeePaid(fee) = id.judgements[position].1 {866						T::Currency::repatriate_reserved(867							&target,868							&sender,869							fee,870							BalanceStatus::Free,871						)872						.map_err(|_| Error::<T>::JudgementPaymentFailed)?;873					}874					id.judgements[position] = item875				}876				Err(position) => id877					.judgements878					.try_insert(position, item)879					.map_err(|_| Error::<T>::TooManyRegistrars)?,880			}881882			let judgements = id.judgements.len();883			let extra_fields = id.info.additional.len();884			<IdentityOf<T>>::insert(&target, id);885			Self::deposit_event(Event::JudgementGiven {886				target,887				registrar_index: reg_index,888			});889890			Ok(Some(T::WeightInfo::provide_judgement(891				judgements as u32,892				extra_fields as u32,893			))894			.into())895		}896897		/// Remove an account's identity and sub-account information and slash the deposits.898		///899		/// Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by900		/// `Slash`. Verification request deposits are not returned; they should be cancelled901		/// manually using `cancel_request`.902		///903		/// The dispatch origin for this call must match `T::ForceOrigin`.904		///905		/// - `target`: the account whose identity the judgement is upon. This must be an account906		///   with a registered identity.907		///908		/// Emits `IdentityKilled` if successful.909		///910		/// # <weight>911		/// - `O(R + S + X)`.912		/// - One balance-reserve operation.913		/// - `S + 2` storage mutations.914		/// - One event.915		/// # </weight>916		#[pallet::call_index(10)]917		#[pallet::weight(T::WeightInfo::kill_identity(918			T::MaxRegistrars::get(), // R919			T::MaxSubAccounts::get(), // S920			T::MaxAdditionalFields::get(), // X921		))]922		pub fn kill_identity(923			origin: OriginFor<T>,924			target: AccountIdLookupOf<T>,925		) -> DispatchResultWithPostInfo {926			T::ForceOrigin::ensure_origin(origin)?;927928			// Figure out who we're meant to be clearing.929			let target = T::Lookup::lookup(target)?;930			// Grab their deposit (and check that they have one).931			let (subs_deposit, sub_ids) = <SubsOf<T>>::take(&target);932			let id = <IdentityOf<T>>::take(&target).ok_or(Error::<T>::NotNamed)?;933			let deposit = id.total_deposit() + subs_deposit;934			for sub in sub_ids.iter() {935				<SuperOf<T>>::remove(sub);936			}937			// Slash their deposit from them.938			T::Slashed::on_unbalanced(T::Currency::slash_reserved(&target, deposit).0);939940			Self::deposit_event(Event::IdentityKilled {941				who: target,942				deposit,943			});944945			Ok(Some(T::WeightInfo::kill_identity(946				id.judgements.len() as u32,      // R947				sub_ids.len() as u32,            // S948				id.info.additional.len() as u32, // X949			))950			.into())951		}952953		/// Add the given account to the sender's subs.954		///955		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated956		/// to the sender.957		///958		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered959		/// sub identity of `sub`.960		#[pallet::call_index(11)]961		#[pallet::weight(T::WeightInfo::add_sub(T::MaxSubAccounts::get()))]962		pub fn add_sub(963			origin: OriginFor<T>,964			sub: AccountIdLookupOf<T>,965			data: Data,966		) -> DispatchResult {967			let sender = ensure_signed(origin)?;968			let sub = T::Lookup::lookup(sub)?;969			ensure!(970				IdentityOf::<T>::contains_key(&sender),971				Error::<T>::NoIdentity972			);973974			// Check if it's already claimed as sub-identity.975			ensure!(976				!SuperOf::<T>::contains_key(&sub),977				Error::<T>::AlreadyClaimed978			);979980			SubsOf::<T>::try_mutate(&sender, |(ref mut subs_deposit, ref mut sub_ids)| {981				// Ensure there is space and that the deposit is paid.982				ensure!(983					sub_ids.len() < T::MaxSubAccounts::get() as usize,984					Error::<T>::TooManySubAccounts985				);986				let deposit = T::SubAccountDeposit::get();987				T::Currency::reserve(&sender, deposit)?;988989				SuperOf::<T>::insert(&sub, (sender.clone(), data));990				sub_ids991					.try_push(sub.clone())992					.expect("sub ids length checked above; qed");993				*subs_deposit = subs_deposit.saturating_add(deposit);994995				Self::deposit_event(Event::SubIdentityAdded {996					sub,997					main: sender.clone(),998					deposit,999				});1000				Ok(())1001			})1002		}10031004		/// Alter the associated name of the given sub-account.1005		///1006		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1007		/// sub identity of `sub`.1008		#[pallet::call_index(12)]1009		#[pallet::weight(T::WeightInfo::rename_sub(T::MaxSubAccounts::get()))]1010		pub fn rename_sub(1011			origin: OriginFor<T>,1012			sub: AccountIdLookupOf<T>,1013			data: Data,1014		) -> DispatchResult {1015			let sender = ensure_signed(origin)?;1016			let sub = T::Lookup::lookup(sub)?;1017			ensure!(1018				IdentityOf::<T>::contains_key(&sender),1019				Error::<T>::NoIdentity1020			);1021			ensure!(1022				SuperOf::<T>::get(&sub).map_or(false, |x| x.0 == sender),1023				Error::<T>::NotOwned1024			);1025			SuperOf::<T>::insert(&sub, (sender, data));1026			Ok(())1027		}10281029		/// Remove the given account from the sender's subs.1030		///1031		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated1032		/// to the sender.1033		///1034		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1035		/// sub identity of `sub`.1036		#[pallet::call_index(13)]1037		#[pallet::weight(T::WeightInfo::remove_sub(T::MaxSubAccounts::get()))]1038		pub fn remove_sub(origin: OriginFor<T>, sub: AccountIdLookupOf<T>) -> DispatchResult {1039			let sender = ensure_signed(origin)?;1040			ensure!(1041				IdentityOf::<T>::contains_key(&sender),1042				Error::<T>::NoIdentity1043			);1044			let sub = T::Lookup::lookup(sub)?;1045			let (sup, _) = SuperOf::<T>::get(&sub).ok_or(Error::<T>::NotSub)?;1046			ensure!(sup == sender, Error::<T>::NotOwned);1047			SuperOf::<T>::remove(&sub);1048			SubsOf::<T>::mutate(&sup, |(ref mut subs_deposit, ref mut sub_ids)| {1049				sub_ids.retain(|x| x != &sub);1050				let deposit = T::SubAccountDeposit::get().min(*subs_deposit);1051				*subs_deposit -= deposit;1052				let err_amount = T::Currency::unreserve(&sender, deposit);1053				debug_assert!(err_amount.is_zero());1054				Self::deposit_event(Event::SubIdentityRemoved {1055					sub,1056					main: sender,1057					deposit,1058				});1059			});1060			Ok(())1061		}10621063		/// Remove the sender as a sub-account.1064		///1065		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated1066		/// to the sender (*not* the original depositor).1067		///1068		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1069		/// super-identity.1070		///1071		/// NOTE: This should not normally be used, but is provided in the case that the non-1072		/// controller of an account is maliciously registered as a sub-account.1073		#[pallet::call_index(14)]1074		#[pallet::weight(T::WeightInfo::quit_sub(T::MaxSubAccounts::get()))]1075		pub fn quit_sub(origin: OriginFor<T>) -> DispatchResult {1076			let sender = ensure_signed(origin)?;1077			let (sup, _) = SuperOf::<T>::take(&sender).ok_or(Error::<T>::NotSub)?;1078			SubsOf::<T>::mutate(&sup, |(ref mut subs_deposit, ref mut sub_ids)| {1079				sub_ids.retain(|x| x != &sender);1080				let deposit = T::SubAccountDeposit::get().min(*subs_deposit);1081				*subs_deposit -= deposit;1082				let _ =1083					T::Currency::repatriate_reserved(&sup, &sender, deposit, BalanceStatus::Free);1084				Self::deposit_event(Event::SubIdentityRevoked {1085					sub: sender,1086					main: sup.clone(),1087					deposit,1088				});1089			});1090			Ok(())1091		}10921093		/// Insert or remove identities.1094		#[pallet::call_index(15)]1095		#[pallet::weight(T::WeightInfo::set_identities(1096			T::MaxAdditionalFields::get(), // X1097			identities.len() as u32, // N1098		))] // todo:collator weight1099		pub fn set_identities(1100			origin: OriginFor<T>,1101			identities: Vec<(1102				T::AccountId,1103				Option<Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>>,1104			)>,1105		) -> DispatchResult {1106			T::ForceOrigin::ensure_origin(origin)?;1107			for identity in identities {1108				IdentityOf::<T>::set(identity.0, identity.1);1109			}1110			Ok(())1111		}1112	}1113}11141115impl<T: Config> Pallet<T> {1116	/// Get the subs of an account.1117	pub fn subs(who: &T::AccountId) -> Vec<(T::AccountId, Data)> {1118		SubsOf::<T>::get(who)1119			.11120			.into_iter()1121			.filter_map(|a| SuperOf::<T>::get(&a).map(|x| (a, x.1)))1122			.collect()1123	}11241125	/// Check if the account has corresponding identity information by the identity field.1126	pub fn has_identity(who: &T::AccountId, fields: u64) -> bool {1127		IdentityOf::<T>::get(who).map_or(false, |registration| {1128			(registration.info.fields().0.bits() & fields) == fields1129		})1130	}1131}
after · pallets/identity/src/lib.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// Original license:18// This file is part of Substrate.1920// Copyright (C) 2019-2022 Parity Technologies (UK) Ltd.21// SPDX-License-Identifier: Apache-2.02223// Licensed under the Apache License, Version 2.0 (the "License");24// you may not use this file except in compliance with the License.25// You may obtain a copy of the License at26//27// 	http://www.apache.org/licenses/LICENSE-2.028//29// Unless required by applicable law or agreed to in writing, software30// distributed under the License is distributed on an "AS IS" BASIS,31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.32// See the License for the specific language governing permissions and33// limitations under the License.3435//! # Identity Pallet36//!37//! - [`Config`]38//! - [`Call`]39//!40//! ## Overview41//!42//! A federated naming system, allowing for multiple registrars to be added from a specified origin.43//! Registrars can set a fee to provide identity-verification service. Anyone can put forth a44//! proposed identity for a fixed deposit and ask for review by any number of registrars (paying45//! each of their fees). Registrar judgements are given as an `enum`, allowing for sophisticated,46//! multi-tier opinions.47//!48//! Some judgements are identified as *sticky*, which means they cannot be removed except by49//! complete removal of the identity, or by the registrar. Judgements are allowed to represent a50//! portion of funds that have been reserved for the registrar.51//!52//! A super-user can remove accounts and in doing so, slash the deposit.53//!54//! All accounts may also have a limited number of sub-accounts which may be specified by the owner;55//! by definition, these have equivalent ownership and each has an individual name.56//!57//! The number of registrars should be limited, and the deposit made sufficiently large, to ensure58//! no state-bloat attack is viable.59//!60//! ## Interface61//!62//! ### Dispatchable Functions63//!64//! #### For general users65//! * `set_identity` - Set the associated identity of an account; a small deposit is reserved if not66//!   already taken.67//! * `clear_identity` - Remove an account's associated identity; the deposit is returned.68//! * `request_judgement` - Request a judgement from a registrar, paying a fee.69//! * `cancel_request` - Cancel the previous request for a judgement.70//!71//! #### For general users with sub-identities72//! * `set_subs` - Set the sub-accounts of an identity.73//! * `add_sub` - Add a sub-identity to an identity.74//! * `remove_sub` - Remove a sub-identity of an identity.75//! * `rename_sub` - Rename a sub-identity of an identity.76//! * `quit_sub` - Remove a sub-identity of an identity (called by the sub-identity).77//!78//! #### For registrars79//! * `set_fee` - Set the fee required to be paid for a judgement to be given by the registrar.80//! * `set_fields` - Set the fields that a registrar cares about in their judgements.81//! * `provide_judgement` - Provide a judgement to an identity.82//!83//! #### For super-users84//! * `add_registrar` - Add a new registrar to the system.85//! * `kill_identity` - Forcibly remove the associated identity; the deposit is lost.86//!87//! [`Call`]: ./enum.Call.html88//! [`Config`]: ./trait.Config.html8990#![cfg_attr(not(feature = "std"), no_std)]9192mod benchmarking;93#[cfg(test)]94mod tests;95mod types;96pub mod weights;9798use frame_support::traits::{BalanceStatus, Currency, OnUnbalanced, ReservableCurrency};99use sp_runtime::traits::{AppendZerosInput, Hash, Saturating, StaticLookup, Zero};100use sp_std::prelude::*;101pub use weights::WeightInfo;102103pub use pallet::*;104pub use types::{105	Data, IdentityField, IdentityFields, IdentityInfo, Judgement, RegistrarIndex, RegistrarInfo,106	Registration,107};108109pub type BalanceOf<T> =110	<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;111type NegativeImbalanceOf<T> = <<T as Config>::Currency as Currency<112	<T as frame_system::Config>::AccountId,113>>::NegativeImbalance;114type AccountIdLookupOf<T> = <<T as frame_system::Config>::Lookup as StaticLookup>::Source;115116#[frame_support::pallet]117pub mod pallet {118	use super::*;119	use frame_support::pallet_prelude::*;120	use frame_system::pallet_prelude::*;121122	#[pallet::config]123	pub trait Config: frame_system::Config {124		/// The overarching event type.125		type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;126127		/// The currency trait.128		type Currency: ReservableCurrency<Self::AccountId>;129130		/// The amount held on deposit for a registered identity131		#[pallet::constant]132		type BasicDeposit: Get<BalanceOf<Self>>;133134		/// The amount held on deposit per additional field for a registered identity.135		#[pallet::constant]136		type FieldDeposit: Get<BalanceOf<Self>>;137138		/// The amount held on deposit for a registered subaccount. This should account for the fact139		/// that one storage item's value will increase by the size of an account ID, and there will140		/// be another trie item whose value is the size of an account ID plus 32 bytes.141		#[pallet::constant]142		type SubAccountDeposit: Get<BalanceOf<Self>>;143144		/// The maximum number of sub-accounts allowed per identified account.145		#[pallet::constant]146		type MaxSubAccounts: Get<u32>;147148		/// Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O149		/// required to access an identity, but can be pretty high.150		#[pallet::constant]151		type MaxAdditionalFields: Get<u32>;152153		/// Maxmimum number of registrars allowed in the system. Needed to bound the complexity154		/// of, e.g., updating judgements.155		#[pallet::constant]156		type MaxRegistrars: Get<u32>;157158		/// What to do with slashed funds.159		type Slashed: OnUnbalanced<NegativeImbalanceOf<Self>>;160161		/// The origin which may forcibly set or remove a name. Root can always do this.162		type ForceOrigin: EnsureOrigin<Self::RuntimeOrigin>;163164		/// The origin which may add or remove registrars. Root can always do this.165		type RegistrarOrigin: EnsureOrigin<Self::RuntimeOrigin>;166167		/// Weight information for extrinsics in this pallet.168		type WeightInfo: WeightInfo;169	}170171	#[pallet::pallet]172	#[pallet::generate_store(pub(super) trait Store)]173	pub struct Pallet<T>(_);174175	/// Information that is pertinent to identify the entity behind an account.176	///177	/// TWOX-NOTE: OK ― `AccountId` is a secure hash.178	#[pallet::storage]179	#[pallet::getter(fn identity)]180	pub(super) type IdentityOf<T: Config> = StorageMap<181		_,182		Twox64Concat,183		T::AccountId,184		Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>,185		OptionQuery,186	>;187188	/// The super-identity of an alternative "sub" identity together with its name, within that189	/// context. If the account is not some other account's sub-identity, then just `None`.190	#[pallet::storage]191	#[pallet::getter(fn super_of)]192	pub(super) type SuperOf<T: Config> =193		StorageMap<_, Blake2_128Concat, T::AccountId, (T::AccountId, Data), OptionQuery>;194195	/// Alternative "sub" identities of this account.196	///197	/// The first item is the deposit, the second is a vector of the accounts.198	///199	/// TWOX-NOTE: OK ― `AccountId` is a secure hash.200	#[pallet::storage]201	#[pallet::getter(fn subs_of)]202	pub(super) type SubsOf<T: Config> = StorageMap<203		_,204		Twox64Concat,205		T::AccountId,206		(BalanceOf<T>, BoundedVec<T::AccountId, T::MaxSubAccounts>),207		ValueQuery,208	>;209210	/// The set of registrars. Not expected to get very big as can only be added through a211	/// special origin (likely a council motion).212	///213	/// The index into this can be cast to `RegistrarIndex` to get a valid value.214	#[pallet::storage]215	#[pallet::getter(fn registrars)]216	pub(super) type Registrars<T: Config> = StorageValue<217		_,218		BoundedVec<Option<RegistrarInfo<BalanceOf<T>, T::AccountId>>, T::MaxRegistrars>,219		ValueQuery,220	>;221222	#[pallet::error]223	pub enum Error<T> {224		/// Too many subs-accounts.225		TooManySubAccounts,226		/// Account isn't found.227		NotFound,228		/// Account isn't named.229		NotNamed,230		/// Empty index.231		EmptyIndex,232		/// Fee is changed.233		FeeChanged,234		/// No identity found.235		NoIdentity,236		/// Sticky judgement.237		StickyJudgement,238		/// Judgement given.239		JudgementGiven,240		/// Invalid judgement.241		InvalidJudgement,242		/// The index is invalid.243		InvalidIndex,244		/// The target is invalid.245		InvalidTarget,246		/// Too many additional fields.247		TooManyFields,248		/// Maximum amount of registrars reached. Cannot add any more.249		TooManyRegistrars,250		/// Account ID is already named.251		AlreadyClaimed,252		/// Sender is not a sub-account.253		NotSub,254		/// Sub-account isn't owned by sender.255		NotOwned,256		/// The provided judgement was for a different identity.257		JudgementForDifferentIdentity,258		/// Error that occurs when there is an issue paying for judgement.259		JudgementPaymentFailed,260	}261262	#[pallet::event]263	#[pallet::generate_deposit(pub(super) fn deposit_event)]264	pub enum Event<T: Config> {265		/// A name was set or reset (which will remove all judgements).266		IdentitySet { who: T::AccountId },267		/// A name was cleared, and the given balance returned.268		IdentityCleared {269			who: T::AccountId,270			deposit: BalanceOf<T>,271		},272		/// A name was removed and the given balance slashed.273		IdentityKilled {274			who: T::AccountId,275			deposit: BalanceOf<T>,276		},277		/// A number of identities and associated info were forcibly inserted.278		IdentitiesInserted { amount: u32 },279		/// A number of identities and all associated info were forcibly removed.280		IdentitiesRemoved { amount: u32 },281		/// A judgement was asked from a registrar.282		JudgementRequested {283			who: T::AccountId,284			registrar_index: RegistrarIndex,285		},286		/// A judgement request was retracted.287		JudgementUnrequested {288			who: T::AccountId,289			registrar_index: RegistrarIndex,290		},291		/// A judgement was given by a registrar.292		JudgementGiven {293			target: T::AccountId,294			registrar_index: RegistrarIndex,295		},296		/// A registrar was added.297		RegistrarAdded { registrar_index: RegistrarIndex },298		/// A sub-identity was added to an identity and the deposit paid.299		SubIdentityAdded {300			sub: T::AccountId,301			main: T::AccountId,302			deposit: BalanceOf<T>,303		},304		/// A sub-identity was removed from an identity and the deposit freed.305		SubIdentityRemoved {306			sub: T::AccountId,307			main: T::AccountId,308			deposit: BalanceOf<T>,309		},310		/// A sub-identity was cleared, and the given deposit repatriated from the311		/// main identity account to the sub-identity account.312		SubIdentityRevoked {313			sub: T::AccountId,314			main: T::AccountId,315			deposit: BalanceOf<T>,316		},317	}318319	#[pallet::call]320	/// Identity pallet declaration.321	impl<T: Config> Pallet<T> {322		/// Add a registrar to the system.323		///324		/// The dispatch origin for this call must be `T::RegistrarOrigin`.325		///326		/// - `account`: the account of the registrar.327		///328		/// Emits `RegistrarAdded` if successful.329		///330		/// # <weight>331		/// - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).332		/// - One storage mutation (codec `O(R)`).333		/// - One event.334		/// # </weight>335		#[pallet::call_index(0)]336		#[pallet::weight(T::WeightInfo::add_registrar(T::MaxRegistrars::get()))]337		pub fn add_registrar(338			origin: OriginFor<T>,339			account: AccountIdLookupOf<T>,340		) -> DispatchResultWithPostInfo {341			T::RegistrarOrigin::ensure_origin(origin)?;342			let account = T::Lookup::lookup(account)?;343344			let (i, registrar_count) = <Registrars<T>>::try_mutate(345				|registrars| -> Result<(RegistrarIndex, usize), DispatchError> {346					registrars347						.try_push(Some(RegistrarInfo {348							account,349							fee: Zero::zero(),350							fields: Default::default(),351						}))352						.map_err(|_| Error::<T>::TooManyRegistrars)?;353					Ok(((registrars.len() - 1) as RegistrarIndex, registrars.len()))354				},355			)?;356357			Self::deposit_event(Event::RegistrarAdded { registrar_index: i });358359			Ok(Some(T::WeightInfo::add_registrar(registrar_count as u32)).into())360		}361362		/// Set an account's identity information and reserve the appropriate deposit.363		///364		/// If the account already has identity information, the deposit is taken as part payment365		/// for the new deposit.366		///367		/// The dispatch origin for this call must be _Signed_.368		///369		/// - `info`: The identity information.370		///371		/// Emits `IdentitySet` if successful.372		///373		/// # <weight>374		/// - `O(X + X' + R)`375		///   - where `X` additional-field-count (deposit-bounded and code-bounded)376		///   - where `R` judgements-count (registrar-count-bounded)377		/// - One balance reserve operation.378		/// - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).379		/// - One event.380		/// # </weight>381		#[pallet::call_index(1)]382		#[pallet::weight( T::WeightInfo::set_identity(383			T::MaxRegistrars::get(), // R384			T::MaxAdditionalFields::get(), // X385		))]386		pub fn set_identity(387			origin: OriginFor<T>,388			info: Box<IdentityInfo<T::MaxAdditionalFields>>,389		) -> DispatchResultWithPostInfo {390			let sender = ensure_signed(origin)?;391			let extra_fields = info.additional.len() as u32;392			ensure!(393				extra_fields <= T::MaxAdditionalFields::get(),394				Error::<T>::TooManyFields395			);396			let fd = <BalanceOf<T>>::from(extra_fields) * T::FieldDeposit::get();397398			let mut id = match <IdentityOf<T>>::get(&sender) {399				Some(mut id) => {400					// Only keep non-positive judgements.401					id.judgements.retain(|j| j.1.is_sticky());402					id.info = *info;403					id404				}405				None => Registration {406					info: *info,407					judgements: BoundedVec::default(),408					deposit: Zero::zero(),409				},410			};411412			let old_deposit = id.deposit;413			id.deposit = T::BasicDeposit::get() + fd;414			if id.deposit > old_deposit {415				T::Currency::reserve(&sender, id.deposit - old_deposit)?;416			}417			if old_deposit > id.deposit {418				let err_amount = T::Currency::unreserve(&sender, old_deposit - id.deposit);419				debug_assert!(err_amount.is_zero());420			}421422			let judgements = id.judgements.len();423			<IdentityOf<T>>::insert(&sender, id);424			Self::deposit_event(Event::IdentitySet { who: sender });425426			Ok(Some(T::WeightInfo::set_identity(427				judgements as u32, // R428				extra_fields,      // X429			))430			.into())431		}432433		/// Set the sub-accounts of the sender.434		///435		/// Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned436		/// and an amount `SubAccountDeposit` will be reserved for each item in `subs`.437		///438		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered439		/// identity.440		///441		/// - `subs`: The identity's (new) sub-accounts.442		///443		/// # <weight>444		/// - `O(P + S)`445		///   - where `P` old-subs-count (hard- and deposit-bounded).446		///   - where `S` subs-count (hard- and deposit-bounded).447		/// - At most one balance operations.448		/// - DB:449		///   - `P + S` storage mutations (codec complexity `O(1)`)450		///   - One storage read (codec complexity `O(P)`).451		///   - One storage write (codec complexity `O(S)`).452		///   - One storage-exists (`IdentityOf::contains_key`).453		/// # </weight>454		// TODO: This whole extrinsic screams "not optimized". For example we could455		// filter any overlap between new and old subs, and avoid reading/writing456		// to those values... We could also ideally avoid needing to write to457		// N storage items for N sub accounts. Right now the weight on this function458		// is a large overestimate due to the fact that it could potentially write459		// to 2 x T::MaxSubAccounts::get().460		#[pallet::call_index(2)]461		#[pallet::weight(T::WeightInfo::set_subs_old(T::MaxSubAccounts::get()) // P: Assume max sub accounts removed.462			.saturating_add(T::WeightInfo::set_subs_new(subs.len() as u32)) // S: Assume all subs are new.463		)]464		pub fn set_subs(465			origin: OriginFor<T>,466			subs: Vec<(T::AccountId, Data)>,467		) -> DispatchResultWithPostInfo {468			let sender = ensure_signed(origin)?;469			ensure!(<IdentityOf<T>>::contains_key(&sender), Error::<T>::NotFound);470			ensure!(471				subs.len() <= T::MaxSubAccounts::get() as usize,472				Error::<T>::TooManySubAccounts473			);474475			let (old_deposit, old_ids) = <SubsOf<T>>::get(&sender);476			let new_deposit = T::SubAccountDeposit::get() * <BalanceOf<T>>::from(subs.len() as u32);477478			let not_other_sub = subs479				.iter()480				.filter_map(|i| SuperOf::<T>::get(&i.0))481				.all(|i| i.0 == sender);482			ensure!(not_other_sub, Error::<T>::AlreadyClaimed);483484			if old_deposit < new_deposit {485				T::Currency::reserve(&sender, new_deposit - old_deposit)?;486			} else if old_deposit > new_deposit {487				let err_amount = T::Currency::unreserve(&sender, old_deposit - new_deposit);488				debug_assert!(err_amount.is_zero());489			}490			// do nothing if they're equal.491492			for s in old_ids.iter() {493				<SuperOf<T>>::remove(s);494			}495			let mut ids = BoundedVec::<T::AccountId, T::MaxSubAccounts>::default();496			for (id, name) in subs {497				<SuperOf<T>>::insert(&id, (sender.clone(), name));498				ids.try_push(id)499					.expect("subs length is less than T::MaxSubAccounts; qed");500			}501			let new_subs = ids.len();502503			if ids.is_empty() {504				<SubsOf<T>>::remove(&sender);505			} else {506				<SubsOf<T>>::insert(&sender, (new_deposit, ids));507			}508509			Ok(Some(510				T::WeightInfo::set_subs_old(old_ids.len() as u32) // P: Real number of old accounts removed.511					// S: New subs added512					.saturating_add(T::WeightInfo::set_subs_new(new_subs as u32)),513			)514			.into())515		}516517		/// Clear an account's identity info and all sub-accounts and return all deposits.518		///519		/// Payment: All reserved balances on the account are returned.520		///521		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered522		/// identity.523		///524		/// Emits `IdentityCleared` if successful.525		///526		/// # <weight>527		/// - `O(R + S + X)`528		///   - where `R` registrar-count (governance-bounded).529		///   - where `S` subs-count (hard- and deposit-bounded).530		///   - where `X` additional-field-count (deposit-bounded and code-bounded).531		/// - One balance-unreserve operation.532		/// - `2` storage reads and `S + 2` storage deletions.533		/// - One event.534		/// # </weight>535		#[pallet::call_index(3)]536		#[pallet::weight(T::WeightInfo::clear_identity(537			T::MaxRegistrars::get(), // R538			T::MaxSubAccounts::get(), // S539			T::MaxAdditionalFields::get(), // X540		))]541		pub fn clear_identity(origin: OriginFor<T>) -> DispatchResultWithPostInfo {542			let sender = ensure_signed(origin)?;543544			let (subs_deposit, sub_ids) = <SubsOf<T>>::take(&sender);545			let id = <IdentityOf<T>>::take(&sender).ok_or(Error::<T>::NotNamed)?;546			let deposit = id.total_deposit() + subs_deposit;547			for sub in sub_ids.iter() {548				<SuperOf<T>>::remove(sub);549			}550551			let err_amount = T::Currency::unreserve(&sender, deposit);552			debug_assert!(err_amount.is_zero());553554			Self::deposit_event(Event::IdentityCleared {555				who: sender,556				deposit,557			});558559			Ok(Some(T::WeightInfo::clear_identity(560				id.judgements.len() as u32,      // R561				sub_ids.len() as u32,            // S562				id.info.additional.len() as u32, // X563			))564			.into())565		}566567		/// Request a judgement from a registrar.568		///569		/// Payment: At most `max_fee` will be reserved for payment to the registrar if judgement570		/// given.571		///572		/// The dispatch origin for this call must be _Signed_ and the sender must have a573		/// registered identity.574		///575		/// - `reg_index`: The index of the registrar whose judgement is requested.576		/// - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:577		///578		/// ```nocompile579		/// Self::registrars().get(reg_index).unwrap().fee580		/// ```581		///582		/// Emits `JudgementRequested` if successful.583		///584		/// # <weight>585		/// - `O(R + X)`.586		/// - One balance-reserve operation.587		/// - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.588		/// - One event.589		/// # </weight>590		#[pallet::call_index(4)]591		#[pallet::weight(T::WeightInfo::request_judgement(592			T::MaxRegistrars::get(), // R593			T::MaxAdditionalFields::get(), // X594		))]595		pub fn request_judgement(596			origin: OriginFor<T>,597			#[pallet::compact] reg_index: RegistrarIndex,598			#[pallet::compact] max_fee: BalanceOf<T>,599		) -> DispatchResultWithPostInfo {600			let sender = ensure_signed(origin)?;601			let registrars = <Registrars<T>>::get();602			let registrar = registrars603				.get(reg_index as usize)604				.and_then(Option::as_ref)605				.ok_or(Error::<T>::EmptyIndex)?;606			ensure!(max_fee >= registrar.fee, Error::<T>::FeeChanged);607			let mut id = <IdentityOf<T>>::get(&sender).ok_or(Error::<T>::NoIdentity)?;608609			let item = (reg_index, Judgement::FeePaid(registrar.fee));610			match id.judgements.binary_search_by_key(&reg_index, |x| x.0) {611				Ok(i) => {612					if id.judgements[i].1.is_sticky() {613						return Err(Error::<T>::StickyJudgement.into());614					} else {615						id.judgements[i] = item616					}617				}618				Err(i) => id619					.judgements620					.try_insert(i, item)621					.map_err(|_| Error::<T>::TooManyRegistrars)?,622			}623624			T::Currency::reserve(&sender, registrar.fee)?;625626			let judgements = id.judgements.len();627			let extra_fields = id.info.additional.len();628			<IdentityOf<T>>::insert(&sender, id);629630			Self::deposit_event(Event::JudgementRequested {631				who: sender,632				registrar_index: reg_index,633			});634635			Ok(Some(T::WeightInfo::request_judgement(636				judgements as u32,637				extra_fields as u32,638			))639			.into())640		}641642		/// Cancel a previous request.643		///644		/// Payment: A previously reserved deposit is returned on success.645		///646		/// The dispatch origin for this call must be _Signed_ and the sender must have a647		/// registered identity.648		///649		/// - `reg_index`: The index of the registrar whose judgement is no longer requested.650		///651		/// Emits `JudgementUnrequested` if successful.652		///653		/// # <weight>654		/// - `O(R + X)`.655		/// - One balance-reserve operation.656		/// - One storage mutation `O(R + X)`.657		/// - One event658		/// # </weight>659		#[pallet::call_index(5)]660		#[pallet::weight(T::WeightInfo::cancel_request(661			T::MaxRegistrars::get(), // R662			T::MaxAdditionalFields::get(), // X663		))]664		pub fn cancel_request(665			origin: OriginFor<T>,666			reg_index: RegistrarIndex,667		) -> DispatchResultWithPostInfo {668			let sender = ensure_signed(origin)?;669			let mut id = <IdentityOf<T>>::get(&sender).ok_or(Error::<T>::NoIdentity)?;670671			let pos = id672				.judgements673				.binary_search_by_key(&reg_index, |x| x.0)674				.map_err(|_| Error::<T>::NotFound)?;675			let fee = if let Judgement::FeePaid(fee) = id.judgements.remove(pos).1 {676				fee677			} else {678				return Err(Error::<T>::JudgementGiven.into());679			};680681			let err_amount = T::Currency::unreserve(&sender, fee);682			debug_assert!(err_amount.is_zero());683			let judgements = id.judgements.len();684			let extra_fields = id.info.additional.len();685			<IdentityOf<T>>::insert(&sender, id);686687			Self::deposit_event(Event::JudgementUnrequested {688				who: sender,689				registrar_index: reg_index,690			});691692			Ok(Some(T::WeightInfo::cancel_request(693				judgements as u32,694				extra_fields as u32,695			))696			.into())697		}698699		/// Set the fee required for a judgement to be requested from a registrar.700		///701		/// The dispatch origin for this call must be _Signed_ and the sender must be the account702		/// of the registrar whose index is `index`.703		///704		/// - `index`: the index of the registrar whose fee is to be set.705		/// - `fee`: the new fee.706		///707		/// # <weight>708		/// - `O(R)`.709		/// - One storage mutation `O(R)`.710		/// - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)711		/// # </weight>712		#[pallet::call_index(6)]713		#[pallet::weight(T::WeightInfo::set_fee(T::MaxRegistrars::get()))] // R714		pub fn set_fee(715			origin: OriginFor<T>,716			#[pallet::compact] index: RegistrarIndex,717			#[pallet::compact] fee: BalanceOf<T>,718		) -> DispatchResultWithPostInfo {719			let who = ensure_signed(origin)?;720721			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {722				rs.get_mut(index as usize)723					.and_then(|x| x.as_mut())724					.and_then(|r| {725						if r.account == who {726							r.fee = fee;727							Some(())728						} else {729							None730						}731					})732					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;733				Ok(rs.len())734			})?;735			Ok(Some(T::WeightInfo::set_fee(registrars as u32)).into()) // R736		}737738		/// Change the account associated with a registrar.739		///740		/// The dispatch origin for this call must be _Signed_ and the sender must be the account741		/// of the registrar whose index is `index`.742		///743		/// - `index`: the index of the registrar whose fee is to be set.744		/// - `new`: the new account ID.745		///746		/// # <weight>747		/// - `O(R)`.748		/// - One storage mutation `O(R)`.749		/// - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)750		/// # </weight>751		#[pallet::call_index(7)]752		#[pallet::weight(T::WeightInfo::set_account_id(T::MaxRegistrars::get()))] // R753		pub fn set_account_id(754			origin: OriginFor<T>,755			#[pallet::compact] index: RegistrarIndex,756			new: AccountIdLookupOf<T>,757		) -> DispatchResultWithPostInfo {758			let who = ensure_signed(origin)?;759			let new = T::Lookup::lookup(new)?;760761			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {762				rs.get_mut(index as usize)763					.and_then(|x| x.as_mut())764					.and_then(|r| {765						if r.account == who {766							r.account = new;767							Some(())768						} else {769							None770						}771					})772					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;773				Ok(rs.len())774			})?;775			Ok(Some(T::WeightInfo::set_account_id(registrars as u32)).into()) // R776		}777778		/// Set the field information for a registrar.779		///780		/// The dispatch origin for this call must be _Signed_ and the sender must be the account781		/// of the registrar whose index is `index`.782		///783		/// - `index`: the index of the registrar whose fee is to be set.784		/// - `fields`: the fields that the registrar concerns themselves with.785		///786		/// # <weight>787		/// - `O(R)`.788		/// - One storage mutation `O(R)`.789		/// - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)790		/// # </weight>791		#[pallet::call_index(8)]792		#[pallet::weight(T::WeightInfo::set_fields(T::MaxRegistrars::get()))] // R793		pub fn set_fields(794			origin: OriginFor<T>,795			#[pallet::compact] index: RegistrarIndex,796			fields: IdentityFields,797		) -> DispatchResultWithPostInfo {798			let who = ensure_signed(origin)?;799800			let registrars = <Registrars<T>>::mutate(|rs| -> Result<usize, DispatchError> {801				rs.get_mut(index as usize)802					.and_then(|x| x.as_mut())803					.and_then(|r| {804						if r.account == who {805							r.fields = fields;806							Some(())807						} else {808							None809						}810					})811					.ok_or_else(|| DispatchError::from(Error::<T>::InvalidIndex))?;812				Ok(rs.len())813			})?;814			Ok(Some(T::WeightInfo::set_fields(815				registrars as u32, // R816			))817			.into())818		}819820		/// Provide a judgement for an account's identity.821		///822		/// The dispatch origin for this call must be _Signed_ and the sender must be the account823		/// of the registrar whose index is `reg_index`.824		///825		/// - `reg_index`: the index of the registrar whose judgement is being made.826		/// - `target`: the account whose identity the judgement is upon. This must be an account827		///   with a registered identity.828		/// - `judgement`: the judgement of the registrar of index `reg_index` about `target`.829		/// - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.830		///831		/// Emits `JudgementGiven` if successful.832		///833		/// # <weight>834		/// - `O(R + X)`.835		/// - One balance-transfer operation.836		/// - Up to one account-lookup operation.837		/// - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.838		/// - One event.839		/// # </weight>840		#[pallet::call_index(9)]841		#[pallet::weight(T::WeightInfo::provide_judgement(842			T::MaxRegistrars::get(), // R843			T::MaxAdditionalFields::get(), // X844		))]845		pub fn provide_judgement(846			origin: OriginFor<T>,847			#[pallet::compact] reg_index: RegistrarIndex,848			target: AccountIdLookupOf<T>,849			judgement: Judgement<BalanceOf<T>>,850			identity: T::Hash,851		) -> DispatchResultWithPostInfo {852			let sender = ensure_signed(origin)?;853			let target = T::Lookup::lookup(target)?;854			ensure!(!judgement.has_deposit(), Error::<T>::InvalidJudgement);855			<Registrars<T>>::get()856				.get(reg_index as usize)857				.and_then(Option::as_ref)858				.filter(|r| r.account == sender)859				.ok_or(Error::<T>::InvalidIndex)?;860			let mut id = <IdentityOf<T>>::get(&target).ok_or(Error::<T>::InvalidTarget)?;861862			if T::Hashing::hash_of(&id.info) != identity {863				return Err(Error::<T>::JudgementForDifferentIdentity.into());864			}865866			let item = (reg_index, judgement);867			match id.judgements.binary_search_by_key(&reg_index, |x| x.0) {868				Ok(position) => {869					if let Judgement::FeePaid(fee) = id.judgements[position].1 {870						T::Currency::repatriate_reserved(871							&target,872							&sender,873							fee,874							BalanceStatus::Free,875						)876						.map_err(|_| Error::<T>::JudgementPaymentFailed)?;877					}878					id.judgements[position] = item879				}880				Err(position) => id881					.judgements882					.try_insert(position, item)883					.map_err(|_| Error::<T>::TooManyRegistrars)?,884			}885886			let judgements = id.judgements.len();887			let extra_fields = id.info.additional.len();888			<IdentityOf<T>>::insert(&target, id);889			Self::deposit_event(Event::JudgementGiven {890				target,891				registrar_index: reg_index,892			});893894			Ok(Some(T::WeightInfo::provide_judgement(895				judgements as u32,896				extra_fields as u32,897			))898			.into())899		}900901		/// Remove an account's identity and sub-account information and slash the deposits.902		///903		/// Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by904		/// `Slash`. Verification request deposits are not returned; they should be cancelled905		/// manually using `cancel_request`.906		///907		/// The dispatch origin for this call must match `T::ForceOrigin`.908		///909		/// - `target`: the account whose identity the judgement is upon. This must be an account910		///   with a registered identity.911		///912		/// Emits `IdentityKilled` if successful.913		///914		/// # <weight>915		/// - `O(R + S + X)`.916		/// - One balance-reserve operation.917		/// - `S + 2` storage mutations.918		/// - One event.919		/// # </weight>920		#[pallet::call_index(10)]921		#[pallet::weight(T::WeightInfo::kill_identity(922			T::MaxRegistrars::get(), // R923			T::MaxSubAccounts::get(), // S924			T::MaxAdditionalFields::get(), // X925		))]926		pub fn kill_identity(927			origin: OriginFor<T>,928			target: AccountIdLookupOf<T>,929		) -> DispatchResultWithPostInfo {930			T::ForceOrigin::ensure_origin(origin)?;931932			// Figure out who we're meant to be clearing.933			let target = T::Lookup::lookup(target)?;934			// Grab their deposit (and check that they have one).935			let (subs_deposit, sub_ids) = <SubsOf<T>>::take(&target);936			let id = <IdentityOf<T>>::take(&target).ok_or(Error::<T>::NotNamed)?;937			let deposit = id.total_deposit() + subs_deposit;938			for sub in sub_ids.iter() {939				<SuperOf<T>>::remove(sub);940			}941			// Slash their deposit from them.942			T::Slashed::on_unbalanced(T::Currency::slash_reserved(&target, deposit).0);943944			Self::deposit_event(Event::IdentityKilled {945				who: target,946				deposit,947			});948949			Ok(Some(T::WeightInfo::kill_identity(950				id.judgements.len() as u32,      // R951				sub_ids.len() as u32,            // S952				id.info.additional.len() as u32, // X953			))954			.into())955		}956957		/// Add the given account to the sender's subs.958		///959		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated960		/// to the sender.961		///962		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered963		/// sub identity of `sub`.964		#[pallet::call_index(11)]965		#[pallet::weight(T::WeightInfo::add_sub(T::MaxSubAccounts::get()))]966		pub fn add_sub(967			origin: OriginFor<T>,968			sub: AccountIdLookupOf<T>,969			data: Data,970		) -> DispatchResult {971			let sender = ensure_signed(origin)?;972			let sub = T::Lookup::lookup(sub)?;973			ensure!(974				IdentityOf::<T>::contains_key(&sender),975				Error::<T>::NoIdentity976			);977978			// Check if it's already claimed as sub-identity.979			ensure!(980				!SuperOf::<T>::contains_key(&sub),981				Error::<T>::AlreadyClaimed982			);983984			SubsOf::<T>::try_mutate(&sender, |(ref mut subs_deposit, ref mut sub_ids)| {985				// Ensure there is space and that the deposit is paid.986				ensure!(987					sub_ids.len() < T::MaxSubAccounts::get() as usize,988					Error::<T>::TooManySubAccounts989				);990				let deposit = T::SubAccountDeposit::get();991				T::Currency::reserve(&sender, deposit)?;992993				SuperOf::<T>::insert(&sub, (sender.clone(), data));994				sub_ids995					.try_push(sub.clone())996					.expect("sub ids length checked above; qed");997				*subs_deposit = subs_deposit.saturating_add(deposit);998999				Self::deposit_event(Event::SubIdentityAdded {1000					sub,1001					main: sender.clone(),1002					deposit,1003				});1004				Ok(())1005			})1006		}10071008		/// Alter the associated name of the given sub-account.1009		///1010		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1011		/// sub identity of `sub`.1012		#[pallet::call_index(12)]1013		#[pallet::weight(T::WeightInfo::rename_sub(T::MaxSubAccounts::get()))]1014		pub fn rename_sub(1015			origin: OriginFor<T>,1016			sub: AccountIdLookupOf<T>,1017			data: Data,1018		) -> DispatchResult {1019			let sender = ensure_signed(origin)?;1020			let sub = T::Lookup::lookup(sub)?;1021			ensure!(1022				IdentityOf::<T>::contains_key(&sender),1023				Error::<T>::NoIdentity1024			);1025			ensure!(1026				SuperOf::<T>::get(&sub).map_or(false, |x| x.0 == sender),1027				Error::<T>::NotOwned1028			);1029			SuperOf::<T>::insert(&sub, (sender, data));1030			Ok(())1031		}10321033		/// Remove the given account from the sender's subs.1034		///1035		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated1036		/// to the sender.1037		///1038		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1039		/// sub identity of `sub`.1040		#[pallet::call_index(13)]1041		#[pallet::weight(T::WeightInfo::remove_sub(T::MaxSubAccounts::get()))]1042		pub fn remove_sub(origin: OriginFor<T>, sub: AccountIdLookupOf<T>) -> DispatchResult {1043			let sender = ensure_signed(origin)?;1044			ensure!(1045				IdentityOf::<T>::contains_key(&sender),1046				Error::<T>::NoIdentity1047			);1048			let sub = T::Lookup::lookup(sub)?;1049			let (sup, _) = SuperOf::<T>::get(&sub).ok_or(Error::<T>::NotSub)?;1050			ensure!(sup == sender, Error::<T>::NotOwned);1051			SuperOf::<T>::remove(&sub);1052			SubsOf::<T>::mutate(&sup, |(ref mut subs_deposit, ref mut sub_ids)| {1053				sub_ids.retain(|x| x != &sub);1054				let deposit = T::SubAccountDeposit::get().min(*subs_deposit);1055				*subs_deposit -= deposit;1056				let err_amount = T::Currency::unreserve(&sender, deposit);1057				debug_assert!(err_amount.is_zero());1058				Self::deposit_event(Event::SubIdentityRemoved {1059					sub,1060					main: sender,1061					deposit,1062				});1063			});1064			Ok(())1065		}10661067		/// Remove the sender as a sub-account.1068		///1069		/// Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated1070		/// to the sender (*not* the original depositor).1071		///1072		/// The dispatch origin for this call must be _Signed_ and the sender must have a registered1073		/// super-identity.1074		///1075		/// NOTE: This should not normally be used, but is provided in the case that the non-1076		/// controller of an account is maliciously registered as a sub-account.1077		#[pallet::call_index(14)]1078		#[pallet::weight(T::WeightInfo::quit_sub(T::MaxSubAccounts::get()))]1079		pub fn quit_sub(origin: OriginFor<T>) -> DispatchResult {1080			let sender = ensure_signed(origin)?;1081			let (sup, _) = SuperOf::<T>::take(&sender).ok_or(Error::<T>::NotSub)?;1082			SubsOf::<T>::mutate(&sup, |(ref mut subs_deposit, ref mut sub_ids)| {1083				sub_ids.retain(|x| x != &sender);1084				let deposit = T::SubAccountDeposit::get().min(*subs_deposit);1085				*subs_deposit -= deposit;1086				let _ =1087					T::Currency::repatriate_reserved(&sup, &sender, deposit, BalanceStatus::Free);1088				Self::deposit_event(Event::SubIdentityRevoked {1089					sub: sender,1090					main: sup.clone(),1091					deposit,1092				});1093			});1094			Ok(())1095		}10961097		/// Set identities to be associated with the provided accounts as force origin.1098		///1099		/// This is not meant to operate in tandem with the identity pallet as is,1100		/// and be instead used to keep identities made and verified externally,1101		/// forbidden from interacting with an ordinary user, since it ignores any safety mechanism.1102		#[pallet::call_index(15)]1103		#[pallet::weight(T::WeightInfo::force_insert_identities(1104			T::MaxAdditionalFields::get(), // X1105			identities.len() as u32, // N1106		))]1107		pub fn force_insert_identities(1108			origin: OriginFor<T>,1109			identities: Vec<(1110				T::AccountId,1111				Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>,1112			)>,1113		) -> DispatchResult {1114			T::ForceOrigin::ensure_origin(origin)?;1115			for identity in identities.clone() {1116				IdentityOf::<T>::insert(identity.0, identity.1);1117			}1118			Self::deposit_event(Event::IdentitiesInserted {1119				amount: identities.len() as u32,1120			});1121			Ok(())1122		}11231124		/// Remove identities associated with the provided accounts as force origin.1125		///1126		/// This is not meant to operate in tandem with the identity pallet as is,1127		/// and be instead used to keep identities made and verified externally,1128		/// forbidden from interacting with an ordinary user, since it ignores any safety mechanism.1129		#[pallet::call_index(16)]1130		#[pallet::weight(T::WeightInfo::force_remove_identities(1131			T::MaxAdditionalFields::get(), // X1132			identities.len() as u32, // N1133		))]1134		pub fn force_remove_identities(1135			origin: OriginFor<T>,1136			identities: Vec<T::AccountId>,1137		) -> DispatchResult {1138			T::ForceOrigin::ensure_origin(origin)?;1139			for identity in identities.clone() {1140				IdentityOf::<T>::set(identity, None);1141			}1142			Self::deposit_event(Event::IdentitiesRemoved {1143				amount: identities.len() as u32,1144			});1145			Ok(())1146		}1147	}1148}11491150impl<T: Config> Pallet<T> {1151	/// Get the subs of an account.1152	pub fn subs(who: &T::AccountId) -> Vec<(T::AccountId, Data)> {1153		SubsOf::<T>::get(who)1154			.11155			.into_iter()1156			.filter_map(|a| SuperOf::<T>::get(&a).map(|x| (a, x.1)))1157			.collect()1158	}11591160	/// Check if the account has corresponding identity information by the identity field.1161	pub fn has_identity(who: &T::AccountId, fields: u64) -> bool {1162		IdentityOf::<T>::get(who).map_or(false, |registration| {1163			(registration.info.fields().0.bits() & fields) == fields1164		})1165	}1166}
modifiedpallets/identity/src/weights.rsdiffbeforeafterboth
--- a/pallets/identity/src/weights.rs
+++ b/pallets/identity/src/weights.rs
@@ -76,7 +76,8 @@
 	fn set_fields(r: u32, ) -> Weight;
 	fn provide_judgement(r: u32, x: u32, ) -> Weight;
 	fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight;
-	fn set_identities(x: u32, n: u32, ) -> Weight;
+	fn force_insert_identities(x: u32, n: u32, ) -> Weight;
+	fn force_remove_identities(x: u32, n: u32, ) -> Weight;
 	fn add_sub(s: u32, ) -> Weight;
 	fn rename_sub(s: u32, ) -> Weight;
 	fn remove_sub(s: u32, ) -> Weight;
@@ -249,7 +250,7 @@
 	// Storage: Identity IdentityOf (r:1 w:1)
 	/// The range of component `x` is `[0, 100]`.
 	/// The range of component `n` is `[0, 600]`.
-	fn set_identities(x: u32, n: u32) -> Weight {
+	fn force_insert_identities(x: u32, n: u32) -> Weight {
 		// Minimum execution time: 41_872 nanoseconds.
 		Weight::from_ref_time(40_230_216 as u64)
 			// Standard Error: 2_342
@@ -259,6 +260,19 @@
 			.saturating_add(T::DbWeight::get().reads(1 as u64))
 			.saturating_add(T::DbWeight::get().writes(1 as u64).saturating_mul(n as u64))
 	}
+	// Storage: Identity IdentityOf (r:1 w:1)
+	/// The range of component `x` is `[0, 100]`.
+	/// The range of component `n` is `[0, 600]`.
+	fn force_remove_identities(x: u32, n: u32) -> Weight {
+		// Minimum execution time: 41_872 nanoseconds.
+		Weight::from_ref_time(40_230_216 as u64)
+			// Standard Error: 2_342
+			.saturating_add(Weight::from_ref_time(145_168 as u64))
+			// Standard Error: 457
+			.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
+			.saturating_add(T::DbWeight::get().reads(1 as u64))
+			.saturating_add(T::DbWeight::get().writes(1 as u64).saturating_mul(n as u64))
+	}
 	// Storage: Identity IdentityOf (r:1 w:0)
 	// Storage: Identity SuperOf (r:1 w:1)
 	// Storage: Identity SubsOf (r:1 w:1)
@@ -472,7 +486,20 @@
 	// Storage: Identity IdentityOf (r:1 w:1)
 	/// The range of component `x` is `[0, 100]`.
 	/// The range of component `n` is `[0, 600]`.
-	fn set_identities(x: u32, n: u32) -> Weight {
+	fn force_insert_identities(x: u32, n: u32) -> Weight {
+		// Minimum execution time: 41_872 nanoseconds.
+		Weight::from_ref_time(40_230_216 as u64)
+			// Standard Error: 2_342
+			.saturating_add(Weight::from_ref_time(145_168 as u64))
+			// Standard Error: 457
+			.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
+			.saturating_add(RocksDbWeight::get().reads(1 as u64))
+			.saturating_add(RocksDbWeight::get().writes(1 as u64).saturating_mul(n as u64))
+	}
+	// Storage: Identity IdentityOf (r:1 w:1)
+	/// The range of component `x` is `[0, 100]`.
+	/// The range of component `n` is `[0, 600]`.
+	fn force_remove_identities(x: u32, n: u32) -> Weight {
 		// Minimum execution time: 41_872 nanoseconds.
 		Weight::from_ref_time(40_230_216 as u64)
 			// Standard Error: 2_342
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -25,7 +25,7 @@
 	},
 	Runtime, RuntimeEvent, RuntimeCall, Balances,
 };
-use frame_support::traits::{ConstU32, ConstU64, ConstU128};
+use frame_support::traits::{ConstU32, ConstU64};
 use up_common::{
 	types::{AccountId, Balance, BlockNumber},
 	constants::*,
@@ -105,6 +105,7 @@
 parameter_types! {
 	pub AppPromotionDailyRate: Perbill = Perbill::from_rational(5u32, 10_000);
 	pub const MaxCollators: u32 = MAX_COLLATORS;
+	pub const LicenseBond: Balance = GENESIS_LICENSE_BOND;
 	pub const SessionPeriod: BlockNumber = SESSION_LENGTH;
 	pub const DayRelayBlocks: BlockNumber = RELAY_DAYS;
 }
@@ -116,8 +117,7 @@
 	type DefaultMinGasPrice = ConstU64<{ up_common::constants::MIN_GAS_PRICE }>;
 	type DefaultCollatorSelectionMaxCollators = MaxCollators;
 	type DefaultCollatorSelectionKickThreshold = SessionPeriod;
-	type DefaultCollatorSelectionLicenseBond =
-		ConstU128<{ up_common::constants::GENESIS_LICENSE_BOND }>;
+	type DefaultCollatorSelectionLicenseBond = LicenseBond;
 	type MaxXcmAllowedLocations = ConstU32<16>;
 	type AppPromotionDailyRate = AppPromotionDailyRate;
 	type DayRelayBlocks = DayRelayBlocks;
modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -89,6 +89,7 @@
     "testPalletPresence": "mocha --timeout 9999999 -r ts-node/register ./**/pallet-presence.test.ts",
     "testBlockProduction": "mocha --timeout 9999999 -r ts-node/register ./**/block-production.test.ts",
     "testCollatorSelection": "mocha --timeout 9999999 -r ts-node/register ./**/collatorSelection.*test.ts",
+    "testIdentity": "mocha --timeout 9999999 -r ts-node/register ./**/identity.*test.ts",
     "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",
     "testLimits": "mocha --timeout 9999999 -r ts-node/register ./**/limits.test.ts",
     "testEthCreateNFTCollection": "mocha --timeout 9999999 -r ts-node/register ./**/eth/createNFTCollection.test.ts",
addedtests/src/identity.seqtest.tsdiffbeforeafterboth
--- /dev/null
+++ b/tests/src/identity.seqtest.ts
@@ -0,0 +1,101 @@
+// Copyright 2019-2022 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 {IKeyringPair} from '@polkadot/types/types';
+import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from './util';
+import {UniqueHelper} from './util/playgrounds/unique';
+
+async function getIdentities(helper: UniqueHelper) {
+  const identities: [string, any][] = [];
+  for(const [key, value] of await helper.getApi().query.identity.identityOf.entries())
+    identities.push([(key as any).toHuman(), (value as any).unwrap()]);
+  return identities;
+}
+
+async function getIdentityAccounts(helper: UniqueHelper) {
+  return (await getIdentities(helper)).flatMap(([key, _value]) => key);
+}
+
+describe('Integration Test: Identities Manipulation', () => {
+  let superuser: IKeyringPair;
+
+  before(async function() {
+    await usingPlaygrounds(async (helper, privateKey) => {
+      requirePalletsOrSkip(this, helper, [Pallets.Identity]);
+      superuser = await privateKey('//Alice');
+    });
+  });
+
+  itSub('Normal calls do not work', async ({helper}) => {
+    // console.error = () => {};
+    await expect(helper.executeExtrinsic(superuser, 'api.tx.identity.setIdentity', [{info: {display: {Raw: 'Meowser'}}}]))
+      .to.be.rejectedWith(/Transaction call is not expected/);
+  });
+
+  itSub('Sets identities', async ({helper}) => {
+    const oldIdentitiesCount = (await getIdentityAccounts(helper)).length;
+
+    const crowdSize = 10;
+    const crowd = await helper.arrange.createCrowd(crowdSize, 0n, superuser);
+    const identities = crowd.map((acc, i) => [acc.address, {info: {display: {Raw: `accounter #${i}`}}}]);
+    await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [identities]);
+
+    expect((await getIdentityAccounts(helper)).length).to.be.equal(oldIdentitiesCount + crowdSize);
+  });
+
+  itSub('Setting identities does not delete existing but does overwrite', async ({helper}) => {
+    const crowd = await helper.arrange.createCrowd(10, 0n, superuser);
+    const identities = crowd.map((acc, i) => [acc.address, {info: {display: {Raw: `accounter #${i}`}}}]);
+
+    // insert a single identity
+    let singleIdentity = identities.pop()!;
+    await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [[singleIdentity]]);
+
+    const oldIdentitiesCount = (await getIdentityAccounts(helper)).length;
+
+    // change an identity and push it with a few new others
+    singleIdentity = [singleIdentity[0], {info: {display: {Raw: 'something special'}}}];
+    identities.push(singleIdentity);
+    await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [identities]);
+
+    // oldIdentitiesCount + 9 because one identity is overwritten, not inserted on top
+    expect((await getIdentityAccounts(helper)).length).to.be.equal(oldIdentitiesCount + 9);
+    expect((await helper.callRpc('api.query.identity.identityOf', [singleIdentity[0]])).toHuman().info.display)
+      .to.be.deep.equal({Raw: 'something special'});
+  });
+
+  itSub('Removes identities', async ({helper}) => {
+    const crowd = await helper.arrange.createCrowd(10, 0n, superuser);
+    const identities = crowd.map((acc, i) => [acc.address, {info: {display: {Raw: `accounter #${i}`}}}]);
+    await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [identities]);
+    const oldIdentities = await getIdentityAccounts(helper);
+
+    // delete a couple, check that they are no longer there
+    const scapegoats = [crowd.pop()!.address, crowd.pop()!.address];
+    await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceRemoveIdentities', [scapegoats]);
+    const newIdentities = await getIdentityAccounts(helper);
+    expect(newIdentities.concat(scapegoats)).to.be.have.members(oldIdentities);
+  });
+
+  after(async function() {
+    await usingPlaygrounds(async helper => {
+      if (helper.fetchMissingPalletNames([Pallets.Identity]).length != 0) return;
+
+      const identitiesToRemove: string[] = await getIdentityAccounts(helper);
+      await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceRemoveIdentities', [identitiesToRemove]);
+    });
+  });
+});
modifiedtests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -334,24 +334,6 @@
        **/
       [key: string]: AugmentedError<ApiType>;
     };
-    evmMigration: {
-      /**
-       * Migration of this account is not yet started, or already finished.
-       **/
-      AccountIsNotMigrating: AugmentedError<ApiType>;
-      /**
-       * Can only migrate to empty address.
-       **/
-      AccountNotEmpty: AugmentedError<ApiType>;
-      /**
-       * Failed to decode event bytes
-       **/
-      BadEvent: AugmentedError<ApiType>;
-      /**
-       * Generic error
-       **/
-      [key: string]: AugmentedError<ApiType>;
-    };
     dmpQueue: {
       /**
        * The amount of weight given is possibly not enough for executing the message.
@@ -456,6 +438,24 @@
        **/
       [key: string]: AugmentedError<ApiType>;
     };
+    evmMigration: {
+      /**
+       * Migration of this account is not yet started, or already finished.
+       **/
+      AccountIsNotMigrating: AugmentedError<ApiType>;
+      /**
+       * Can only migrate to empty address.
+       **/
+      AccountNotEmpty: AugmentedError<ApiType>;
+      /**
+       * Failed to decode event bytes
+       **/
+      BadEvent: AugmentedError<ApiType>;
+      /**
+       * Generic error
+       **/
+      [key: string]: AugmentedError<ApiType>;
+    };
     foreignAssets: {
       /**
        * AssetId exists
modifiedtests/src/interfaces/augment-api-events.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -236,16 +236,6 @@
        **/
       [key: string]: AugmentedEvent<ApiType>;
     };
-    evmMigration: {
-      /**
-       * This event is used in benchmarking and can be used for tests
-       **/
-      TestEvent: AugmentedEvent<ApiType, []>;
-      /**
-       * Generic event
-       **/
-      [key: string]: AugmentedEvent<ApiType>;
-    };
     dmpQueue: {
       /**
        * Downward message executed with the given outcome.
@@ -330,6 +320,16 @@
        **/
       [key: string]: AugmentedEvent<ApiType>;
     };
+    evmMigration: {
+      /**
+       * This event is used in benchmarking and can be used for tests
+       **/
+      TestEvent: AugmentedEvent<ApiType, []>;
+      /**
+       * Generic event
+       **/
+      [key: string]: AugmentedEvent<ApiType>;
+    };
     foreignAssets: {
       /**
        * The asset registered.
@@ -354,6 +354,14 @@
     };
     identity: {
       /**
+       * A number of identities and associated info were forcibly inserted.
+       **/
+      IdentitiesInserted: AugmentedEvent<ApiType, [amount: u32], { amount: u32 }>;
+      /**
+       * A number of identities and all associated info were forcibly removed.
+       **/
+      IdentitiesRemoved: AugmentedEvent<ApiType, [amount: u32], { amount: u32 }>;
+      /**
        * A name was cleared, and the given balance returned.
        **/
       IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
modifiedtests/src/interfaces/augment-api-query.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -211,13 +211,6 @@
        **/
       [key: string]: QueryableStorageEntry<ApiType>;
     };
-    evmMigration: {
-      migrationPending: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<bool>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
-      /**
-       * Generic query
-       **/
-      [key: string]: QueryableStorageEntry<ApiType>;
-    };
     dmpQueue: {
       /**
        * The configuration.
@@ -354,6 +347,13 @@
        **/
       [key: string]: QueryableStorageEntry<ApiType>;
     };
+    evmMigration: {
+      migrationPending: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<bool>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
+      /**
+       * Generic query
+       **/
+      [key: string]: QueryableStorageEntry<ApiType>;
+    };
     foreignAssets: {
       /**
        * The storages for assets to fungible collection binding
modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -292,36 +292,6 @@
        **/
       [key: string]: SubmittableExtrinsicFunction<ApiType>;
     };
-    evmMigration: {
-      /**
-       * Start contract migration, inserts contract stub at target address,
-       * and marks account as pending, allowing to insert storage
-       **/
-      begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
-      /**
-       * Finish contract migration, allows it to be called.
-       * It is not possible to alter contract storage via [`Self::set_data`]
-       * after this call.
-       **/
-      finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;
-      /**
-       * Create ethereum events attached to the fake transaction
-       **/
-      insertEthLogs: AugmentedSubmittable<(logs: Vec<EthereumLog> | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<EthereumLog>]>;
-      /**
-       * Create substrate events
-       **/
-      insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
-      /**
-       * Insert items into contract storage, this method can be called
-       * multiple times
-       **/
-      setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;
-      /**
-       * Generic tx
-       **/
-      [key: string]: SubmittableExtrinsicFunction<ApiType>;
-    };
     dmpQueue: {
       /**
        * Service a single overweight message.
@@ -376,6 +346,36 @@
        **/
       [key: string]: SubmittableExtrinsicFunction<ApiType>;
     };
+    evmMigration: {
+      /**
+       * Start contract migration, inserts contract stub at target address,
+       * and marks account as pending, allowing to insert storage
+       **/
+      begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
+      /**
+       * Finish contract migration, allows it to be called.
+       * It is not possible to alter contract storage via [`Self::set_data`]
+       * after this call.
+       **/
+      finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;
+      /**
+       * Create ethereum events attached to the fake transaction
+       **/
+      insertEthLogs: AugmentedSubmittable<(logs: Vec<EthereumLog> | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<EthereumLog>]>;
+      /**
+       * Create substrate events
+       **/
+      insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
+      /**
+       * Insert items into contract storage, this method can be called
+       * multiple times
+       **/
+      setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;
+      /**
+       * Generic tx
+       **/
+      [key: string]: SubmittableExtrinsicFunction<ApiType>;
+    };
     foreignAssets: {
       registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;
       updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;
@@ -453,6 +453,22 @@
        **/
       clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
       /**
+       * Set identities to be associated with the provided accounts as force origin.
+       * 
+       * This is not meant to operate in tandem with the identity pallet as is,
+       * and be instead used to keep identities made and verified externally,
+       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.
+       **/
+      forceInsertIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>> | ([AccountId32 | string | Uint8Array, PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>]>;
+      /**
+       * Remove identities associated with the provided accounts as force origin.
+       * 
+       * This is not meant to operate in tandem with the identity pallet as is,
+       * and be instead used to keep identities made and verified externally,
+       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.
+       **/
+      forceRemoveIdentities: AugmentedSubmittable<(identities: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
+      /**
        * Remove an account's identity and sub-account information and slash the deposits.
        * 
        * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
@@ -601,10 +617,6 @@
        * # </weight>
        **/
       setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
-      /**
-       * Insert or remove identities.
-       **/
-      setIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>> | ([AccountId32 | string | Uint8Array, Option<PalletIdentityRegistration> | null | Uint8Array | PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>]>;
       /**
        * Set an account's identity information and reserve the appropriate deposit.
        * 
modifiedtests/src/interfaces/augment-types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -5,7 +5,7 @@
 // this is required to allow for ambient/previous definitions
 import '@polkadot/types/types/registry';
 
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonDataManagementFilterIdentity, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
 import type { Data, StorageKey } from '@polkadot/types';
 import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
 import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
@@ -772,7 +772,7 @@
     Offender: Offender;
     OldV1SessionInfo: OldV1SessionInfo;
     OpalRuntimeRuntime: OpalRuntimeRuntime;
-    OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity: OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity;
+    OpalRuntimeRuntimeCommonDataManagementFilterIdentity: OpalRuntimeRuntimeCommonDataManagementFilterIdentity;
     OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance;
     OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys;
     OpaqueCall: OpaqueCall;
@@ -842,9 +842,6 @@
     PalletConfigurationEvent: PalletConfigurationEvent;
     PalletConstantMetadataLatest: PalletConstantMetadataLatest;
     PalletConstantMetadataV14: PalletConstantMetadataV14;
-    PalletEvmMigrationCall: PalletEvmMigrationCall;
-    PalletEvmMigrationError: PalletEvmMigrationError;
-    PalletEvmMigrationEvent: PalletEvmMigrationEvent;
     PalletErrorMetadataLatest: PalletErrorMetadataLatest;
     PalletErrorMetadataV14: PalletErrorMetadataV14;
     PalletEthereumCall: PalletEthereumCall;
@@ -861,6 +858,9 @@
     PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;
     PalletEvmError: PalletEvmError;
     PalletEvmEvent: PalletEvmEvent;
+    PalletEvmMigrationCall: PalletEvmMigrationCall;
+    PalletEvmMigrationError: PalletEvmMigrationError;
+    PalletEvmMigrationEvent: PalletEvmMigrationEvent;
     PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds;
     PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata;
     PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall;
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -693,8 +693,8 @@
 /** @name OpalRuntimeRuntime */
 export interface OpalRuntimeRuntime extends Null {}
 
-/** @name OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity */
-export interface OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity extends Null {}
+/** @name OpalRuntimeRuntimeCommonDataManagementFilterIdentity */
+export interface OpalRuntimeRuntimeCommonDataManagementFilterIdentity extends Null {}
 
 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance */
 export interface OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance extends Null {}
@@ -1451,49 +1451,8 @@
     readonly lengthInBlocks: Option<u32>;
   } & Struct;
   readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';
-}
-
-/** @name PalletEvmMigrationCall */
-export interface PalletEvmMigrationCall extends Enum {
-  readonly isBegin: boolean;
-  readonly asBegin: {
-    readonly address: H160;
-  } & Struct;
-  readonly isSetData: boolean;
-  readonly asSetData: {
-    readonly address: H160;
-    readonly data: Vec<ITuple<[H256, H256]>>;
-  } & Struct;
-  readonly isFinish: boolean;
-  readonly asFinish: {
-    readonly address: H160;
-    readonly code: Bytes;
-  } & Struct;
-  readonly isInsertEthLogs: boolean;
-  readonly asInsertEthLogs: {
-    readonly logs: Vec<EthereumLog>;
-  } & Struct;
-  readonly isInsertEvents: boolean;
-  readonly asInsertEvents: {
-    readonly events: Vec<Bytes>;
-  } & Struct;
-  readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
-}
-
-/** @name PalletEvmMigrationError */
-export interface PalletEvmMigrationError extends Enum {
-  readonly isAccountNotEmpty: boolean;
-  readonly isAccountIsNotMigrating: boolean;
-  readonly isBadEvent: boolean;
-  readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
 }
 
-/** @name PalletEvmMigrationEvent */
-export interface PalletEvmMigrationEvent extends Enum {
-  readonly isTestEvent: boolean;
-  readonly type: 'TestEvent';
-}
-
 /** @name PalletEthereumCall */
 export interface PalletEthereumCall extends Enum {
   readonly isTransact: boolean;
@@ -1654,6 +1613,47 @@
   readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';
 }
 
+/** @name PalletEvmMigrationCall */
+export interface PalletEvmMigrationCall extends Enum {
+  readonly isBegin: boolean;
+  readonly asBegin: {
+    readonly address: H160;
+  } & Struct;
+  readonly isSetData: boolean;
+  readonly asSetData: {
+    readonly address: H160;
+    readonly data: Vec<ITuple<[H256, H256]>>;
+  } & Struct;
+  readonly isFinish: boolean;
+  readonly asFinish: {
+    readonly address: H160;
+    readonly code: Bytes;
+  } & Struct;
+  readonly isInsertEthLogs: boolean;
+  readonly asInsertEthLogs: {
+    readonly logs: Vec<EthereumLog>;
+  } & Struct;
+  readonly isInsertEvents: boolean;
+  readonly asInsertEvents: {
+    readonly events: Vec<Bytes>;
+  } & Struct;
+  readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
+}
+
+/** @name PalletEvmMigrationError */
+export interface PalletEvmMigrationError extends Enum {
+  readonly isAccountNotEmpty: boolean;
+  readonly isAccountIsNotMigrating: boolean;
+  readonly isBadEvent: boolean;
+  readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
+}
+
+/** @name PalletEvmMigrationEvent */
+export interface PalletEvmMigrationEvent extends Enum {
+  readonly isTestEvent: boolean;
+  readonly type: 'TestEvent';
+}
+
 /** @name PalletForeignAssetsAssetIds */
 export interface PalletForeignAssetsAssetIds extends Enum {
   readonly isForeignAssetId: boolean;
@@ -1821,11 +1821,15 @@
     readonly sub: MultiAddress;
   } & Struct;
   readonly isQuitSub: boolean;
-  readonly isSetIdentities: boolean;
-  readonly asSetIdentities: {
-    readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
+  readonly isForceInsertIdentities: boolean;
+  readonly asForceInsertIdentities: {
+    readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;
   } & Struct;
-  readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'SetIdentities';
+  readonly isForceRemoveIdentities: boolean;
+  readonly asForceRemoveIdentities: {
+    readonly identities: Vec<AccountId32>;
+  } & Struct;
+  readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities';
 }
 
 /** @name PalletIdentityError */
@@ -1867,6 +1871,14 @@
     readonly who: AccountId32;
     readonly deposit: u128;
   } & Struct;
+  readonly isIdentitiesInserted: boolean;
+  readonly asIdentitiesInserted: {
+    readonly amount: u32;
+  } & Struct;
+  readonly isIdentitiesRemoved: boolean;
+  readonly asIdentitiesRemoved: {
+    readonly amount: u32;
+  } & Struct;
   readonly isJudgementRequested: boolean;
   readonly asJudgementRequested: {
     readonly who: AccountId32;
@@ -1904,7 +1916,7 @@
     readonly main: AccountId32;
     readonly deposit: u128;
   } & Struct;
-  readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';
+  readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';
 }
 
 /** @name PalletIdentityIdentityField */
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -236,6 +236,12 @@
         who: 'AccountId32',
         deposit: 'u128',
       },
+      IdentitiesInserted: {
+        amount: 'u32',
+      },
+      IdentitiesRemoved: {
+        amount: 'u32',
+      },
       JudgementRequested: {
         who: 'AccountId32',
         registrarIndex: 'u32',
@@ -1864,19 +1870,22 @@
         sub: 'MultiAddress',
       },
       quit_sub: 'Null',
-      set_identities: {
-        identities: 'Vec<(AccountId32,Option<PalletIdentityRegistration>)>'
+      force_insert_identities: {
+        identities: 'Vec<(AccountId32,PalletIdentityRegistration)>',
+      },
+      force_remove_identities: {
+        identities: 'Vec<AccountId32>'
       }
     }
   },
   /**
-   * Lookup251: pallet_identity::pallet::Error<T>
+   * Lookup250: pallet_identity::pallet::Error<T>
    **/
   PalletIdentityError: {
     _enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity', 'JudgementPaymentFailed']
   },
   /**
-   * Lookup253: pallet_balances::BalanceLock<Balance>
+   * Lookup252: pallet_balances::BalanceLock<Balance>
    **/
   PalletBalancesBalanceLock: {
     id: '[u8;8]',
@@ -1884,20 +1893,20 @@
     reasons: 'PalletBalancesReasons'
   },
   /**
-   * Lookup254: pallet_balances::Reasons
+   * Lookup253: pallet_balances::Reasons
    **/
   PalletBalancesReasons: {
     _enum: ['Fee', 'Misc', 'All']
   },
   /**
-   * Lookup257: pallet_balances::ReserveData<ReserveIdentifier, Balance>
+   * Lookup256: pallet_balances::ReserveData<ReserveIdentifier, Balance>
    **/
   PalletBalancesReserveData: {
     id: '[u8;16]',
     amount: 'u128'
   },
   /**
-   * Lookup259: pallet_balances::pallet::Call<T, I>
+   * Lookup258: pallet_balances::pallet::Call<T, I>
    **/
   PalletBalancesCall: {
     _enum: {
@@ -1930,13 +1939,13 @@
     }
   },
   /**
-   * Lookup260: pallet_balances::pallet::Error<T, I>
+   * Lookup259: pallet_balances::pallet::Error<T, I>
    **/
   PalletBalancesError: {
     _enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
   },
   /**
-   * Lookup262: pallet_timestamp::pallet::Call<T>
+   * Lookup261: pallet_timestamp::pallet::Call<T>
    **/
   PalletTimestampCall: {
     _enum: {
@@ -1946,13 +1955,13 @@
     }
   },
   /**
-   * Lookup264: pallet_transaction_payment::Releases
+   * Lookup263: pallet_transaction_payment::Releases
    **/
   PalletTransactionPaymentReleases: {
     _enum: ['V1Ancient', 'V2']
   },
   /**
-   * Lookup265: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
+   * Lookup264: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
    **/
   PalletTreasuryProposal: {
     proposer: 'AccountId32',
@@ -1961,7 +1970,7 @@
     bond: 'u128'
   },
   /**
-   * Lookup267: pallet_treasury::pallet::Call<T, I>
+   * Lookup266: pallet_treasury::pallet::Call<T, I>
    **/
   PalletTreasuryCall: {
     _enum: {
@@ -1985,17 +1994,17 @@
     }
   },
   /**
-   * Lookup269: frame_support::PalletId
+   * Lookup268: frame_support::PalletId
    **/
   FrameSupportPalletId: '[u8;8]',
   /**
-   * Lookup270: pallet_treasury::pallet::Error<T, I>
+   * Lookup269: pallet_treasury::pallet::Error<T, I>
    **/
   PalletTreasuryError: {
     _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved']
   },
   /**
-   * Lookup271: pallet_sudo::pallet::Call<T>
+   * Lookup270: pallet_sudo::pallet::Call<T>
    **/
   PalletSudoCall: {
     _enum: {
@@ -2019,7 +2028,7 @@
     }
   },
   /**
-   * Lookup273: orml_vesting::module::Call<T>
+   * Lookup272: orml_vesting::module::Call<T>
    **/
   OrmlVestingModuleCall: {
     _enum: {
@@ -2038,7 +2047,7 @@
     }
   },
   /**
-   * Lookup275: orml_xtokens::module::Call<T>
+   * Lookup274: orml_xtokens::module::Call<T>
    **/
   OrmlXtokensModuleCall: {
     _enum: {
@@ -2081,7 +2090,7 @@
     }
   },
   /**
-   * Lookup276: xcm::VersionedMultiAsset
+   * Lookup275: xcm::VersionedMultiAsset
    **/
   XcmVersionedMultiAsset: {
     _enum: {
@@ -2090,7 +2099,7 @@
     }
   },
   /**
-   * Lookup279: orml_tokens::module::Call<T>
+   * Lookup278: orml_tokens::module::Call<T>
    **/
   OrmlTokensModuleCall: {
     _enum: {
@@ -2124,7 +2133,7 @@
     }
   },
   /**
-   * Lookup280: cumulus_pallet_xcmp_queue::pallet::Call<T>
+   * Lookup279: cumulus_pallet_xcmp_queue::pallet::Call<T>
    **/
   CumulusPalletXcmpQueueCall: {
     _enum: {
@@ -2173,7 +2182,7 @@
     }
   },
   /**
-   * Lookup281: pallet_xcm::pallet::Call<T>
+   * Lookup280: pallet_xcm::pallet::Call<T>
    **/
   PalletXcmCall: {
     _enum: {
@@ -2227,7 +2236,7 @@
     }
   },
   /**
-   * Lookup282: xcm::VersionedXcm<RuntimeCall>
+   * Lookup281: xcm::VersionedXcm<RuntimeCall>
    **/
   XcmVersionedXcm: {
     _enum: {
@@ -2237,7 +2246,7 @@
     }
   },
   /**
-   * Lookup283: xcm::v0::Xcm<RuntimeCall>
+   * Lookup282: xcm::v0::Xcm<RuntimeCall>
    **/
   XcmV0Xcm: {
     _enum: {
@@ -2291,7 +2300,7 @@
     }
   },
   /**
-   * Lookup285: xcm::v0::order::Order<RuntimeCall>
+   * Lookup284: xcm::v0::order::Order<RuntimeCall>
    **/
   XcmV0Order: {
     _enum: {
@@ -2334,7 +2343,7 @@
     }
   },
   /**
-   * Lookup287: xcm::v0::Response
+   * Lookup286: xcm::v0::Response
    **/
   XcmV0Response: {
     _enum: {
@@ -2342,7 +2351,7 @@
     }
   },
   /**
-   * Lookup288: xcm::v1::Xcm<RuntimeCall>
+   * Lookup287: xcm::v1::Xcm<RuntimeCall>
    **/
   XcmV1Xcm: {
     _enum: {
@@ -2401,7 +2410,7 @@
     }
   },
   /**
-   * Lookup290: xcm::v1::order::Order<RuntimeCall>
+   * Lookup289: xcm::v1::order::Order<RuntimeCall>
    **/
   XcmV1Order: {
     _enum: {
@@ -2446,7 +2455,7 @@
     }
   },
   /**
-   * Lookup292: xcm::v1::Response
+   * Lookup291: xcm::v1::Response
    **/
   XcmV1Response: {
     _enum: {
@@ -2455,11 +2464,11 @@
     }
   },
   /**
-   * Lookup306: cumulus_pallet_xcm::pallet::Call<T>
+   * Lookup305: cumulus_pallet_xcm::pallet::Call<T>
    **/
   CumulusPalletXcmCall: 'Null',
   /**
-   * Lookup307: cumulus_pallet_dmp_queue::pallet::Call<T>
+   * Lookup306: cumulus_pallet_dmp_queue::pallet::Call<T>
    **/
   CumulusPalletDmpQueueCall: {
     _enum: {
@@ -2470,7 +2479,7 @@
     }
   },
   /**
-   * Lookup308: pallet_inflation::pallet::Call<T>
+   * Lookup307: pallet_inflation::pallet::Call<T>
    **/
   PalletInflationCall: {
     _enum: {
@@ -2480,7 +2489,7 @@
     }
   },
   /**
-   * Lookup309: pallet_unique::Call<T>
+   * Lookup308: pallet_unique::Call<T>
    **/
   PalletUniqueCall: {
     _enum: {
@@ -2624,7 +2633,7 @@
     }
   },
   /**
-   * Lookup314: up_data_structs::CollectionMode
+   * Lookup313: up_data_structs::CollectionMode
    **/
   UpDataStructsCollectionMode: {
     _enum: {
@@ -2634,7 +2643,7 @@
     }
   },
   /**
-   * Lookup315: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+   * Lookup314: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
    **/
   UpDataStructsCreateCollectionData: {
     mode: 'UpDataStructsCollectionMode',
@@ -2649,13 +2658,13 @@
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup317: up_data_structs::AccessMode
+   * Lookup316: up_data_structs::AccessMode
    **/
   UpDataStructsAccessMode: {
     _enum: ['Normal', 'AllowList']
   },
   /**
-   * Lookup319: up_data_structs::CollectionLimits
+   * Lookup318: up_data_structs::CollectionLimits
    **/
   UpDataStructsCollectionLimits: {
     accountTokenOwnershipLimit: 'Option<u32>',
@@ -2669,7 +2678,7 @@
     transfersEnabled: 'Option<bool>'
   },
   /**
-   * Lookup321: up_data_structs::SponsoringRateLimit
+   * Lookup320: up_data_structs::SponsoringRateLimit
    **/
   UpDataStructsSponsoringRateLimit: {
     _enum: {
@@ -2678,7 +2687,7 @@
     }
   },
   /**
-   * Lookup324: up_data_structs::CollectionPermissions
+   * Lookup323: up_data_structs::CollectionPermissions
    **/
   UpDataStructsCollectionPermissions: {
     access: 'Option<UpDataStructsAccessMode>',
@@ -2686,7 +2695,7 @@
     nesting: 'Option<UpDataStructsNestingPermissions>'
   },
   /**
-   * Lookup326: up_data_structs::NestingPermissions
+   * Lookup325: up_data_structs::NestingPermissions
    **/
   UpDataStructsNestingPermissions: {
     tokenOwner: 'bool',
@@ -2694,18 +2703,18 @@
     restricted: 'Option<UpDataStructsOwnerRestrictedSet>'
   },
   /**
-   * Lookup328: up_data_structs::OwnerRestrictedSet
+   * Lookup327: up_data_structs::OwnerRestrictedSet
    **/
   UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
   /**
-   * Lookup333: up_data_structs::PropertyKeyPermission
+   * Lookup332: up_data_structs::PropertyKeyPermission
    **/
   UpDataStructsPropertyKeyPermission: {
     key: 'Bytes',
     permission: 'UpDataStructsPropertyPermission'
   },
   /**
-   * Lookup334: up_data_structs::PropertyPermission
+   * Lookup333: up_data_structs::PropertyPermission
    **/
   UpDataStructsPropertyPermission: {
     mutable: 'bool',
@@ -2713,14 +2722,14 @@
     tokenOwner: 'bool'
   },
   /**
-   * Lookup337: up_data_structs::Property
+   * Lookup336: up_data_structs::Property
    **/
   UpDataStructsProperty: {
     key: 'Bytes',
     value: 'Bytes'
   },
   /**
-   * Lookup340: up_data_structs::CreateItemData
+   * Lookup339: up_data_structs::CreateItemData
    **/
   UpDataStructsCreateItemData: {
     _enum: {
@@ -2730,26 +2739,26 @@
     }
   },
   /**
-   * Lookup341: up_data_structs::CreateNftData
+   * Lookup340: up_data_structs::CreateNftData
    **/
   UpDataStructsCreateNftData: {
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup342: up_data_structs::CreateFungibleData
+   * Lookup341: up_data_structs::CreateFungibleData
    **/
   UpDataStructsCreateFungibleData: {
     value: 'u128'
   },
   /**
-   * Lookup343: up_data_structs::CreateReFungibleData
+   * Lookup342: up_data_structs::CreateReFungibleData
    **/
   UpDataStructsCreateReFungibleData: {
     pieces: 'u128',
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup346: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup345: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateItemExData: {
     _enum: {
@@ -2760,14 +2769,14 @@
     }
   },
   /**
-   * Lookup348: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup347: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateNftExData: {
     properties: 'Vec<UpDataStructsProperty>',
     owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
   },
   /**
-   * Lookup355: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup354: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateRefungibleExSingleOwner: {
     user: 'PalletEvmAccountBasicCrossAccountIdRepr',
@@ -2775,14 +2784,14 @@
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup357: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup356: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateRefungibleExMultipleOwners: {
     users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup358: pallet_configuration::pallet::Call<T>
+   * Lookup357: pallet_configuration::pallet::Call<T>
    **/
   PalletConfigurationCall: {
     _enum: {
@@ -2810,7 +2819,7 @@
     }
   },
   /**
-   * Lookup363: pallet_configuration::AppPromotionConfiguration<BlockNumber>
+   * Lookup362: pallet_configuration::AppPromotionConfiguration<BlockNumber>
    **/
   PalletConfigurationAppPromotionConfiguration: {
     recalculationInterval: 'Option<u32>',
@@ -2819,15 +2828,15 @@
     maxStakersPerCalculation: 'Option<u8>'
   },
   /**
-   * Lookup367: pallet_template_transaction_payment::Call<T>
+   * Lookup366: pallet_template_transaction_payment::Call<T>
    **/
   PalletTemplateTransactionPaymentCall: 'Null',
   /**
-   * Lookup368: pallet_structure::pallet::Call<T>
+   * Lookup367: pallet_structure::pallet::Call<T>
    **/
   PalletStructureCall: 'Null',
   /**
-   * Lookup369: pallet_rmrk_core::pallet::Call<T>
+   * Lookup368: pallet_rmrk_core::pallet::Call<T>
    **/
   PalletRmrkCoreCall: {
     _enum: {
@@ -2918,7 +2927,7 @@
     }
   },
   /**
-   * Lookup375: rmrk_traits::resource::ResourceTypes<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup374: rmrk_traits::resource::ResourceTypes<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsResourceResourceTypes: {
     _enum: {
@@ -2928,7 +2937,7 @@
     }
   },
   /**
-   * Lookup377: rmrk_traits::resource::BasicResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup376: rmrk_traits::resource::BasicResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsResourceBasicResource: {
     src: 'Option<Bytes>',
@@ -2937,7 +2946,7 @@
     thumb: 'Option<Bytes>'
   },
   /**
-   * Lookup379: rmrk_traits::resource::ComposableResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup378: rmrk_traits::resource::ComposableResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsResourceComposableResource: {
     parts: 'Vec<u32>',
@@ -2948,7 +2957,7 @@
     thumb: 'Option<Bytes>'
   },
   /**
-   * Lookup380: rmrk_traits::resource::SlotResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup379: rmrk_traits::resource::SlotResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsResourceSlotResource: {
     base: 'u32',
@@ -2959,7 +2968,7 @@
     thumb: 'Option<Bytes>'
   },
   /**
-   * Lookup383: pallet_rmrk_equip::pallet::Call<T>
+   * Lookup382: pallet_rmrk_equip::pallet::Call<T>
    **/
   PalletRmrkEquipCall: {
     _enum: {
@@ -2980,7 +2989,7 @@
     }
   },
   /**
-   * Lookup386: rmrk_traits::part::PartType<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup385: rmrk_traits::part::PartType<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsPartPartType: {
     _enum: {
@@ -2989,7 +2998,7 @@
     }
   },
   /**
-   * Lookup388: rmrk_traits::part::FixedPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup387: rmrk_traits::part::FixedPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsPartFixedPart: {
     id: 'u32',
@@ -2997,7 +3006,7 @@
     src: 'Bytes'
   },
   /**
-   * Lookup389: rmrk_traits::part::SlotPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup388: rmrk_traits::part::SlotPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsPartSlotPart: {
     id: 'u32',
@@ -3006,7 +3015,7 @@
     z: 'u32'
   },
   /**
-   * Lookup390: rmrk_traits::part::EquippableList<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup389: rmrk_traits::part::EquippableList<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsPartEquippableList: {
     _enum: {
@@ -3016,7 +3025,7 @@
     }
   },
   /**
-   * Lookup392: rmrk_traits::theme::Theme<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>, S>>
+   * Lookup391: rmrk_traits::theme::Theme<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>, S>>
    **/
   RmrkTraitsTheme: {
     name: 'Bytes',
@@ -3024,14 +3033,14 @@
     inherit: 'bool'
   },
   /**
-   * Lookup394: rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup393: rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsThemeThemeProperty: {
     key: 'Bytes',
     value: 'Bytes'
   },
   /**
-   * Lookup396: pallet_app_promotion::pallet::Call<T>
+   * Lookup395: pallet_app_promotion::pallet::Call<T>
    **/
   PalletAppPromotionCall: {
     _enum: {
@@ -3060,7 +3069,7 @@
     }
   },
   /**
-   * Lookup397: pallet_foreign_assets::module::Call<T>
+   * Lookup396: pallet_foreign_assets::module::Call<T>
    **/
   PalletForeignAssetsModuleCall: {
     _enum: {
@@ -3077,7 +3086,7 @@
     }
   },
   /**
-   * Lookup398: pallet_evm::pallet::Call<T>
+   * Lookup397: pallet_evm::pallet::Call<T>
    **/
   PalletEvmCall: {
     _enum: {
@@ -3120,7 +3129,7 @@
     }
   },
   /**
-   * Lookup404: pallet_ethereum::pallet::Call<T>
+   * Lookup403: pallet_ethereum::pallet::Call<T>
    **/
   PalletEthereumCall: {
     _enum: {
@@ -3130,7 +3139,7 @@
     }
   },
   /**
-   * Lookup405: ethereum::transaction::TransactionV2
+   * Lookup404: ethereum::transaction::TransactionV2
    **/
   EthereumTransactionTransactionV2: {
     _enum: {
@@ -3140,7 +3149,7 @@
     }
   },
   /**
-   * Lookup406: ethereum::transaction::LegacyTransaction
+   * Lookup405: ethereum::transaction::LegacyTransaction
    **/
   EthereumTransactionLegacyTransaction: {
     nonce: 'U256',
@@ -3152,7 +3161,7 @@
     signature: 'EthereumTransactionTransactionSignature'
   },
   /**
-   * Lookup407: ethereum::transaction::TransactionAction
+   * Lookup406: ethereum::transaction::TransactionAction
    **/
   EthereumTransactionTransactionAction: {
     _enum: {
@@ -3161,7 +3170,7 @@
     }
   },
   /**
-   * Lookup408: ethereum::transaction::TransactionSignature
+   * Lookup407: ethereum::transaction::TransactionSignature
    **/
   EthereumTransactionTransactionSignature: {
     v: 'u64',
@@ -3169,7 +3178,7 @@
     s: 'H256'
   },
   /**
-   * Lookup410: ethereum::transaction::EIP2930Transaction
+   * Lookup409: ethereum::transaction::EIP2930Transaction
    **/
   EthereumTransactionEip2930Transaction: {
     chainId: 'u64',
@@ -3185,14 +3194,14 @@
     s: 'H256'
   },
   /**
-   * Lookup412: ethereum::transaction::AccessListItem
+   * Lookup411: ethereum::transaction::AccessListItem
    **/
   EthereumTransactionAccessListItem: {
     address: 'H160',
     storageKeys: 'Vec<H256>'
   },
   /**
-   * Lookup413: ethereum::transaction::EIP1559Transaction
+   * Lookup412: ethereum::transaction::EIP1559Transaction
    **/
   EthereumTransactionEip1559Transaction: {
     chainId: 'u64',
@@ -3209,7 +3218,7 @@
     s: 'H256'
   },
   /**
-   * Lookup414: pallet_evm_migration::pallet::Call<T>
+   * Lookup413: pallet_evm_migration::pallet::Call<T>
    **/
   PalletEvmMigrationCall: {
     _enum: {
@@ -3233,13 +3242,13 @@
     }
   },
   /**
-   * Lookup418: pallet_maintenance::pallet::Call<T>
+   * Lookup417: pallet_maintenance::pallet::Call<T>
    **/
   PalletMaintenanceCall: {
     _enum: ['enable', 'disable']
   },
   /**
-   * Lookup419: pallet_test_utils::pallet::Call<T>
+   * Lookup418: pallet_test_utils::pallet::Call<T>
    **/
   PalletTestUtilsCall: {
     _enum: {
@@ -3258,32 +3267,32 @@
     }
   },
   /**
-   * Lookup421: pallet_sudo::pallet::Error<T>
+   * Lookup420: pallet_sudo::pallet::Error<T>
    **/
   PalletSudoError: {
     _enum: ['RequireSudo']
   },
   /**
-   * Lookup423: orml_vesting::module::Error<T>
+   * Lookup422: orml_vesting::module::Error<T>
    **/
   OrmlVestingModuleError: {
     _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
   },
   /**
-   * Lookup424: orml_xtokens::module::Error<T>
+   * Lookup423: orml_xtokens::module::Error<T>
    **/
   OrmlXtokensModuleError: {
     _enum: ['AssetHasNoReserve', 'NotCrossChainTransfer', 'InvalidDest', 'NotCrossChainTransferableCurrency', 'UnweighableMessage', 'XcmExecutionFailed', 'CannotReanchor', 'InvalidAncestry', 'InvalidAsset', 'DestinationNotInvertible', 'BadVersion', 'DistinctReserveForAssetAndFee', 'ZeroFee', 'ZeroAmount', 'TooManyAssetsBeingSent', 'AssetIndexNonExistent', 'FeeNotEnough', 'NotSupportedMultiLocation', 'MinXcmFeeNotDefined']
   },
   /**
-   * Lookup427: orml_tokens::BalanceLock<Balance>
+   * Lookup426: orml_tokens::BalanceLock<Balance>
    **/
   OrmlTokensBalanceLock: {
     id: '[u8;8]',
     amount: 'u128'
   },
   /**
-   * Lookup429: orml_tokens::AccountData<Balance>
+   * Lookup428: orml_tokens::AccountData<Balance>
    **/
   OrmlTokensAccountData: {
     free: 'u128',
@@ -3291,20 +3300,20 @@
     frozen: 'u128'
   },
   /**
-   * Lookup431: orml_tokens::ReserveData<ReserveIdentifier, Balance>
+   * Lookup430: orml_tokens::ReserveData<ReserveIdentifier, Balance>
    **/
   OrmlTokensReserveData: {
     id: 'Null',
     amount: 'u128'
   },
   /**
-   * Lookup433: orml_tokens::module::Error<T>
+   * Lookup432: orml_tokens::module::Error<T>
    **/
   OrmlTokensModuleError: {
     _enum: ['BalanceTooLow', 'AmountIntoBalanceFailed', 'LiquidityRestrictions', 'MaxLocksExceeded', 'KeepAlive', 'ExistentialDeposit', 'DeadAccount', 'TooManyReserves']
   },
   /**
-   * Lookup435: cumulus_pallet_xcmp_queue::InboundChannelDetails
+   * Lookup434: cumulus_pallet_xcmp_queue::InboundChannelDetails
    **/
   CumulusPalletXcmpQueueInboundChannelDetails: {
     sender: 'u32',
@@ -3312,19 +3321,19 @@
     messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
   },
   /**
-   * Lookup436: cumulus_pallet_xcmp_queue::InboundState
+   * Lookup435: cumulus_pallet_xcmp_queue::InboundState
    **/
   CumulusPalletXcmpQueueInboundState: {
     _enum: ['Ok', 'Suspended']
   },
   /**
-   * Lookup439: polkadot_parachain::primitives::XcmpMessageFormat
+   * Lookup438: polkadot_parachain::primitives::XcmpMessageFormat
    **/
   PolkadotParachainPrimitivesXcmpMessageFormat: {
     _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
   },
   /**
-   * Lookup442: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+   * Lookup441: cumulus_pallet_xcmp_queue::OutboundChannelDetails
    **/
   CumulusPalletXcmpQueueOutboundChannelDetails: {
     recipient: 'u32',
@@ -3334,13 +3343,13 @@
     lastIndex: 'u16'
   },
   /**
-   * Lookup443: cumulus_pallet_xcmp_queue::OutboundState
+   * Lookup442: cumulus_pallet_xcmp_queue::OutboundState
    **/
   CumulusPalletXcmpQueueOutboundState: {
     _enum: ['Ok', 'Suspended']
   },
   /**
-   * Lookup445: cumulus_pallet_xcmp_queue::QueueConfigData
+   * Lookup444: cumulus_pallet_xcmp_queue::QueueConfigData
    **/
   CumulusPalletXcmpQueueQueueConfigData: {
     suspendThreshold: 'u32',
@@ -3351,29 +3360,29 @@
     xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight'
   },
   /**
-   * Lookup447: cumulus_pallet_xcmp_queue::pallet::Error<T>
+   * Lookup446: cumulus_pallet_xcmp_queue::pallet::Error<T>
    **/
   CumulusPalletXcmpQueueError: {
     _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
   },
   /**
-   * Lookup448: pallet_xcm::pallet::Error<T>
+   * Lookup447: pallet_xcm::pallet::Error<T>
    **/
   PalletXcmError: {
     _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
   },
   /**
-   * Lookup449: cumulus_pallet_xcm::pallet::Error<T>
+   * Lookup448: cumulus_pallet_xcm::pallet::Error<T>
    **/
   CumulusPalletXcmError: 'Null',
   /**
-   * Lookup450: cumulus_pallet_dmp_queue::ConfigData
+   * Lookup449: cumulus_pallet_dmp_queue::ConfigData
    **/
   CumulusPalletDmpQueueConfigData: {
     maxIndividual: 'SpWeightsWeightV2Weight'
   },
   /**
-   * Lookup451: cumulus_pallet_dmp_queue::PageIndexData
+   * Lookup450: cumulus_pallet_dmp_queue::PageIndexData
    **/
   CumulusPalletDmpQueuePageIndexData: {
     beginUsed: 'u32',
@@ -3381,25 +3390,25 @@
     overweightCount: 'u64'
   },
   /**
-   * Lookup454: cumulus_pallet_dmp_queue::pallet::Error<T>
+   * Lookup453: cumulus_pallet_dmp_queue::pallet::Error<T>
    **/
   CumulusPalletDmpQueueError: {
     _enum: ['Unknown', 'OverLimit']
   },
   /**
-   * Lookup458: pallet_unique::Error<T>
+   * Lookup457: pallet_unique::Error<T>
    **/
   PalletUniqueError: {
     _enum: ['CollectionDecimalPointLimitExceeded', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
   },
   /**
-   * Lookup459: pallet_configuration::pallet::Error<T>
+   * Lookup458: pallet_configuration::pallet::Error<T>
    **/
   PalletConfigurationError: {
     _enum: ['InconsistentConfiguration']
   },
   /**
-   * Lookup460: up_data_structs::Collection<sp_core::crypto::AccountId32>
+   * Lookup459: up_data_structs::Collection<sp_core::crypto::AccountId32>
    **/
   UpDataStructsCollection: {
     owner: 'AccountId32',
@@ -3413,7 +3422,7 @@
     flags: '[u8;1]'
   },
   /**
-   * Lookup461: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+   * Lookup460: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
    **/
   UpDataStructsSponsorshipStateAccountId32: {
     _enum: {
@@ -3423,7 +3432,7 @@
     }
   },
   /**
-   * Lookup462: up_data_structs::Properties
+   * Lookup461: up_data_structs::Properties
    **/
   UpDataStructsProperties: {
     map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -3431,15 +3440,15 @@
     spaceLimit: 'u32'
   },
   /**
-   * Lookup463: up_data_structs::PropertiesMap<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup462: up_data_structs::PropertiesMap<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
   /**
-   * Lookup468: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+   * Lookup467: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
    **/
   UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
   /**
-   * Lookup475: up_data_structs::CollectionStats
+   * Lookup474: up_data_structs::CollectionStats
    **/
   UpDataStructsCollectionStats: {
     created: 'u32',
@@ -3447,18 +3456,18 @@
     alive: 'u32'
   },
   /**
-   * Lookup476: up_data_structs::TokenChild
+   * Lookup475: up_data_structs::TokenChild
    **/
   UpDataStructsTokenChild: {
     token: 'u32',
     collection: 'u32'
   },
   /**
-   * Lookup477: PhantomType::up_data_structs<T>
+   * Lookup476: PhantomType::up_data_structs<T>
    **/
   PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild,UpPovEstimateRpcPovInfo);0]',
   /**
-   * Lookup479: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup478: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsTokenData: {
     properties: 'Vec<UpDataStructsProperty>',
@@ -3466,7 +3475,7 @@
     pieces: 'u128'
   },
   /**
-   * Lookup481: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+   * Lookup480: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
    **/
   UpDataStructsRpcCollection: {
     owner: 'AccountId32',
@@ -3483,14 +3492,14 @@
     flags: 'UpDataStructsRpcCollectionFlags'
   },
   /**
-   * Lookup482: up_data_structs::RpcCollectionFlags
+   * Lookup481: up_data_structs::RpcCollectionFlags
    **/
   UpDataStructsRpcCollectionFlags: {
     foreign: 'bool',
     erc721metadata: 'bool'
   },
   /**
-   * Lookup483: rmrk_traits::collection::CollectionInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
+   * Lookup482: rmrk_traits::collection::CollectionInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
    **/
   RmrkTraitsCollectionCollectionInfo: {
     issuer: 'AccountId32',
@@ -3500,7 +3509,7 @@
     nftsCount: 'u32'
   },
   /**
-   * Lookup484: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup483: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsNftNftInfo: {
     owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
@@ -3510,14 +3519,14 @@
     pending: 'bool'
   },
   /**
-   * Lookup486: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
+   * Lookup485: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
    **/
   RmrkTraitsNftRoyaltyInfo: {
     recipient: 'AccountId32',
     amount: 'Permill'
   },
   /**
-   * Lookup487: rmrk_traits::resource::ResourceInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup486: rmrk_traits::resource::ResourceInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsResourceResourceInfo: {
     id: 'u32',
@@ -3526,14 +3535,14 @@
     pendingRemoval: 'bool'
   },
   /**
-   * Lookup488: rmrk_traits::property::PropertyInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup487: rmrk_traits::property::PropertyInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsPropertyPropertyInfo: {
     key: 'Bytes',
     value: 'Bytes'
   },
   /**
-   * Lookup489: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+   * Lookup488: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
    **/
   RmrkTraitsBaseBaseInfo: {
     issuer: 'AccountId32',
@@ -3541,14 +3550,14 @@
     symbol: 'Bytes'
   },
   /**
-   * Lookup490: rmrk_traits::nft::NftChild
+   * Lookup489: rmrk_traits::nft::NftChild
    **/
   RmrkTraitsNftNftChild: {
     collectionId: 'u32',
     nftId: 'u32'
   },
   /**
-   * Lookup491: up_pov_estimate_rpc::PovInfo
+   * Lookup490: up_pov_estimate_rpc::PovInfo
    **/
   UpPovEstimateRpcPovInfo: {
     proofSize: 'u64',
@@ -3558,7 +3567,7 @@
     keyValues: 'Vec<UpPovEstimateRpcTrieKeyValue>'
   },
   /**
-   * Lookup494: sp_runtime::transaction_validity::TransactionValidityError
+   * Lookup493: sp_runtime::transaction_validity::TransactionValidityError
    **/
   SpRuntimeTransactionValidityTransactionValidityError: {
     _enum: {
@@ -3567,7 +3576,7 @@
     }
   },
   /**
-   * Lookup495: sp_runtime::transaction_validity::InvalidTransaction
+   * Lookup494: sp_runtime::transaction_validity::InvalidTransaction
    **/
   SpRuntimeTransactionValidityInvalidTransaction: {
     _enum: {
@@ -3585,7 +3594,7 @@
     }
   },
   /**
-   * Lookup496: sp_runtime::transaction_validity::UnknownTransaction
+   * Lookup495: sp_runtime::transaction_validity::UnknownTransaction
    **/
   SpRuntimeTransactionValidityUnknownTransaction: {
     _enum: {
@@ -3595,86 +3604,86 @@
     }
   },
   /**
-   * Lookup498: up_pov_estimate_rpc::TrieKeyValue
+   * Lookup497: up_pov_estimate_rpc::TrieKeyValue
    **/
   UpPovEstimateRpcTrieKeyValue: {
     key: 'Bytes',
     value: 'Bytes'
   },
   /**
-   * Lookup500: pallet_common::pallet::Error<T>
+   * Lookup499: pallet_common::pallet::Error<T>
    **/
   PalletCommonError: {
     _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal', 'ConfirmSponsorshipFail', 'UserIsNotCollectionAdmin']
   },
   /**
-   * Lookup502: pallet_fungible::pallet::Error<T>
+   * Lookup501: pallet_fungible::pallet::Error<T>
    **/
   PalletFungibleError: {
     _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']
   },
   /**
-   * Lookup506: pallet_refungible::pallet::Error<T>
+   * Lookup505: pallet_refungible::pallet::Error<T>
    **/
   PalletRefungibleError: {
     _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
   },
   /**
-   * Lookup507: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup506: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   PalletNonfungibleItemData: {
     owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
   },
   /**
-   * Lookup509: up_data_structs::PropertyScope
+   * Lookup508: up_data_structs::PropertyScope
    **/
   UpDataStructsPropertyScope: {
     _enum: ['None', 'Rmrk']
   },
   /**
-   * Lookup512: pallet_nonfungible::pallet::Error<T>
+   * Lookup511: pallet_nonfungible::pallet::Error<T>
    **/
   PalletNonfungibleError: {
     _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
   },
   /**
-   * Lookup513: pallet_structure::pallet::Error<T>
+   * Lookup512: pallet_structure::pallet::Error<T>
    **/
   PalletStructureError: {
     _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
   },
   /**
-   * Lookup514: pallet_rmrk_core::pallet::Error<T>
+   * Lookup513: pallet_rmrk_core::pallet::Error<T>
    **/
   PalletRmrkCoreError: {
     _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']
   },
   /**
-   * Lookup516: pallet_rmrk_equip::pallet::Error<T>
+   * Lookup515: pallet_rmrk_equip::pallet::Error<T>
    **/
   PalletRmrkEquipError: {
     _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
   },
   /**
-   * Lookup522: pallet_app_promotion::pallet::Error<T>
+   * Lookup521: pallet_app_promotion::pallet::Error<T>
    **/
   PalletAppPromotionError: {
     _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation']
   },
   /**
-   * Lookup523: pallet_foreign_assets::module::Error<T>
+   * Lookup522: pallet_foreign_assets::module::Error<T>
    **/
   PalletForeignAssetsModuleError: {
     _enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']
   },
   /**
-   * Lookup525: pallet_evm::pallet::Error<T>
+   * Lookup524: pallet_evm::pallet::Error<T>
    **/
   PalletEvmError: {
     _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']
   },
   /**
-   * Lookup528: fp_rpc::TransactionStatus
+   * Lookup527: fp_rpc::TransactionStatus
    **/
   FpRpcTransactionStatus: {
     transactionHash: 'H256',
@@ -3686,11 +3695,11 @@
     logsBloom: 'EthbloomBloom'
   },
   /**
-   * Lookup530: ethbloom::Bloom
+   * Lookup529: ethbloom::Bloom
    **/
   EthbloomBloom: '[u8;256]',
   /**
-   * Lookup532: ethereum::receipt::ReceiptV3
+   * Lookup531: ethereum::receipt::ReceiptV3
    **/
   EthereumReceiptReceiptV3: {
     _enum: {
@@ -3700,7 +3709,7 @@
     }
   },
   /**
-   * Lookup533: ethereum::receipt::EIP658ReceiptData
+   * Lookup532: ethereum::receipt::EIP658ReceiptData
    **/
   EthereumReceiptEip658ReceiptData: {
     statusCode: 'u8',
@@ -3709,7 +3718,7 @@
     logs: 'Vec<EthereumLog>'
   },
   /**
-   * Lookup534: ethereum::block::Block<ethereum::transaction::TransactionV2>
+   * Lookup533: ethereum::block::Block<ethereum::transaction::TransactionV2>
    **/
   EthereumBlock: {
     header: 'EthereumHeader',
@@ -3717,7 +3726,7 @@
     ommers: 'Vec<EthereumHeader>'
   },
   /**
-   * Lookup535: ethereum::header::Header
+   * Lookup534: ethereum::header::Header
    **/
   EthereumHeader: {
     parentHash: 'H256',
@@ -3737,23 +3746,23 @@
     nonce: 'EthereumTypesHashH64'
   },
   /**
-   * Lookup536: ethereum_types::hash::H64
+   * Lookup535: ethereum_types::hash::H64
    **/
   EthereumTypesHashH64: '[u8;8]',
   /**
-   * Lookup541: pallet_ethereum::pallet::Error<T>
+   * Lookup540: pallet_ethereum::pallet::Error<T>
    **/
   PalletEthereumError: {
     _enum: ['InvalidSignature', 'PreLogExists']
   },
   /**
-   * Lookup542: pallet_evm_coder_substrate::pallet::Error<T>
+   * Lookup541: pallet_evm_coder_substrate::pallet::Error<T>
    **/
   PalletEvmCoderSubstrateError: {
     _enum: ['OutOfGas', 'OutOfFund']
   },
   /**
-   * Lookup543: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup542: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
     _enum: {
@@ -3763,35 +3772,35 @@
     }
   },
   /**
-   * Lookup544: pallet_evm_contract_helpers::SponsoringModeT
+   * Lookup543: pallet_evm_contract_helpers::SponsoringModeT
    **/
   PalletEvmContractHelpersSponsoringModeT: {
     _enum: ['Disabled', 'Allowlisted', 'Generous']
   },
   /**
-   * Lookup550: pallet_evm_contract_helpers::pallet::Error<T>
+   * Lookup549: pallet_evm_contract_helpers::pallet::Error<T>
    **/
   PalletEvmContractHelpersError: {
     _enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']
   },
   /**
-   * Lookup551: pallet_evm_migration::pallet::Error<T>
+   * Lookup550: pallet_evm_migration::pallet::Error<T>
    **/
   PalletEvmMigrationError: {
     _enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']
   },
   /**
-   * Lookup552: pallet_maintenance::pallet::Error<T>
+   * Lookup551: pallet_maintenance::pallet::Error<T>
    **/
   PalletMaintenanceError: 'Null',
   /**
-   * Lookup553: pallet_test_utils::pallet::Error<T>
+   * Lookup552: pallet_test_utils::pallet::Error<T>
    **/
   PalletTestUtilsError: {
     _enum: ['TestPalletDisabled', 'TriggerRollback']
   },
   /**
-   * Lookup555: sp_runtime::MultiSignature
+   * Lookup554: sp_runtime::MultiSignature
    **/
   SpRuntimeMultiSignature: {
     _enum: {
@@ -3801,55 +3810,55 @@
     }
   },
   /**
-   * Lookup556: sp_core::ed25519::Signature
+   * Lookup555: sp_core::ed25519::Signature
    **/
   SpCoreEd25519Signature: '[u8;64]',
   /**
-   * Lookup558: sp_core::sr25519::Signature
+   * Lookup557: sp_core::sr25519::Signature
    **/
   SpCoreSr25519Signature: '[u8;64]',
   /**
-   * Lookup559: sp_core::ecdsa::Signature
+   * Lookup558: sp_core::ecdsa::Signature
    **/
   SpCoreEcdsaSignature: '[u8;65]',
   /**
-   * Lookup562: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+   * Lookup561: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
    **/
   FrameSystemExtensionsCheckSpecVersion: 'Null',
   /**
-   * Lookup563: frame_system::extensions::check_tx_version::CheckTxVersion<T>
+   * Lookup562: frame_system::extensions::check_tx_version::CheckTxVersion<T>
    **/
   FrameSystemExtensionsCheckTxVersion: 'Null',
   /**
-   * Lookup564: frame_system::extensions::check_genesis::CheckGenesis<T>
+   * Lookup563: frame_system::extensions::check_genesis::CheckGenesis<T>
    **/
   FrameSystemExtensionsCheckGenesis: 'Null',
   /**
-   * Lookup567: frame_system::extensions::check_nonce::CheckNonce<T>
+   * Lookup566: frame_system::extensions::check_nonce::CheckNonce<T>
    **/
   FrameSystemExtensionsCheckNonce: 'Compact<u32>',
   /**
-   * Lookup568: frame_system::extensions::check_weight::CheckWeight<T>
+   * Lookup567: frame_system::extensions::check_weight::CheckWeight<T>
    **/
   FrameSystemExtensionsCheckWeight: 'Null',
   /**
-   * Lookup569: opal_runtime::runtime_common::maintenance::CheckMaintenance
+   * Lookup568: opal_runtime::runtime_common::maintenance::CheckMaintenance
    **/
   OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',
   /**
-   * Lookup570: opal_runtime::runtime_common::evm_migration::FilterIdentity
+   * Lookup569: opal_runtime::runtime_common::data_management::FilterIdentity
    **/
-  OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity: 'Null',
+  OpalRuntimeRuntimeCommonDataManagementFilterIdentity: 'Null',
   /**
-   * Lookup571: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+   * Lookup570: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
    **/
   PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
   /**
-   * Lookup572: opal_runtime::Runtime
+   * Lookup571: opal_runtime::Runtime
    **/
   OpalRuntimeRuntime: 'Null',
   /**
-   * Lookup573: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+   * Lookup572: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
    **/
   PalletEthereumFakeTransactionFinalizer: 'Null'
 };
modifiedtests/src/interfaces/registry.tsdiffbeforeafterboth
--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -5,7 +5,7 @@
 // this is required to allow for ambient/previous definitions
 import '@polkadot/types/types/registry';
 
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonDataManagementFilterIdentity, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
 
 declare module '@polkadot/types/types/registry' {
   interface InterfaceTypes {
@@ -74,7 +74,7 @@
     FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass;
     FrameSystemPhase: FrameSystemPhase;
     OpalRuntimeRuntime: OpalRuntimeRuntime;
-    OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity: OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity;
+    OpalRuntimeRuntimeCommonDataManagementFilterIdentity: OpalRuntimeRuntimeCommonDataManagementFilterIdentity;
     OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance;
     OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys;
     OrmlTokensAccountData: OrmlTokensAccountData;
@@ -112,9 +112,6 @@
     PalletConfigurationCall: PalletConfigurationCall;
     PalletConfigurationError: PalletConfigurationError;
     PalletConfigurationEvent: PalletConfigurationEvent;
-    PalletEvmMigrationCall: PalletEvmMigrationCall;
-    PalletEvmMigrationError: PalletEvmMigrationError;
-    PalletEvmMigrationEvent: PalletEvmMigrationEvent;
     PalletEthereumCall: PalletEthereumCall;
     PalletEthereumError: PalletEthereumError;
     PalletEthereumEvent: PalletEthereumEvent;
@@ -127,6 +124,9 @@
     PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;
     PalletEvmError: PalletEvmError;
     PalletEvmEvent: PalletEvmEvent;
+    PalletEvmMigrationCall: PalletEvmMigrationCall;
+    PalletEvmMigrationError: PalletEvmMigrationError;
+    PalletEvmMigrationEvent: PalletEvmMigrationEvent;
     PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds;
     PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata;
     PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall;
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -253,6 +253,14 @@
       readonly who: AccountId32;
       readonly deposit: u128;
     } & Struct;
+    readonly isIdentitiesInserted: boolean;
+    readonly asIdentitiesInserted: {
+      readonly amount: u32;
+    } & Struct;
+    readonly isIdentitiesRemoved: boolean;
+    readonly asIdentitiesRemoved: {
+      readonly amount: u32;
+    } & Struct;
     readonly isJudgementRequested: boolean;
     readonly asJudgementRequested: {
       readonly who: AccountId32;
@@ -290,7 +298,7 @@
       readonly main: AccountId32;
       readonly deposit: u128;
     } & Struct;
-    readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';
+    readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';
   }
 
   /** @name PalletBalancesEvent (33) */
@@ -2057,14 +2065,18 @@
       readonly sub: MultiAddress;
     } & Struct;
     readonly isQuitSub: boolean;
-    readonly isSetIdentities: boolean;
-    readonly asSetIdentities: {
-      readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
+    readonly isForceInsertIdentities: boolean;
+    readonly asForceInsertIdentities: {
+      readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;
     } & Struct;
-    readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'SetIdentities';
+    readonly isForceRemoveIdentities: boolean;
+    readonly asForceRemoveIdentities: {
+      readonly identities: Vec<AccountId32>;
+    } & Struct;
+    readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities';
   }
 
-  /** @name PalletIdentityError (251) */
+  /** @name PalletIdentityError (250) */
   interface PalletIdentityError extends Enum {
     readonly isTooManySubAccounts: boolean;
     readonly isNotFound: boolean;
@@ -2087,14 +2099,14 @@
     readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';
   }
 
-  /** @name PalletBalancesBalanceLock (253) */
+  /** @name PalletBalancesBalanceLock (252) */
   interface PalletBalancesBalanceLock extends Struct {
     readonly id: U8aFixed;
     readonly amount: u128;
     readonly reasons: PalletBalancesReasons;
   }
 
-  /** @name PalletBalancesReasons (254) */
+  /** @name PalletBalancesReasons (253) */
   interface PalletBalancesReasons extends Enum {
     readonly isFee: boolean;
     readonly isMisc: boolean;
@@ -2102,13 +2114,13 @@
     readonly type: 'Fee' | 'Misc' | 'All';
   }
 
-  /** @name PalletBalancesReserveData (257) */
+  /** @name PalletBalancesReserveData (256) */
   interface PalletBalancesReserveData extends Struct {
     readonly id: U8aFixed;
     readonly amount: u128;
   }
 
-  /** @name PalletBalancesCall (259) */
+  /** @name PalletBalancesCall (258) */
   interface PalletBalancesCall extends Enum {
     readonly isTransfer: boolean;
     readonly asTransfer: {
@@ -2145,7 +2157,7 @@
     readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
   }
 
-  /** @name PalletBalancesError (260) */
+  /** @name PalletBalancesError (259) */
   interface PalletBalancesError extends Enum {
     readonly isVestingBalance: boolean;
     readonly isLiquidityRestrictions: boolean;
@@ -2158,7 +2170,7 @@
     readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
   }
 
-  /** @name PalletTimestampCall (262) */
+  /** @name PalletTimestampCall (261) */
   interface PalletTimestampCall extends Enum {
     readonly isSet: boolean;
     readonly asSet: {
@@ -2167,14 +2179,14 @@
     readonly type: 'Set';
   }
 
-  /** @name PalletTransactionPaymentReleases (264) */
+  /** @name PalletTransactionPaymentReleases (263) */
   interface PalletTransactionPaymentReleases extends Enum {
     readonly isV1Ancient: boolean;
     readonly isV2: boolean;
     readonly type: 'V1Ancient' | 'V2';
   }
 
-  /** @name PalletTreasuryProposal (265) */
+  /** @name PalletTreasuryProposal (264) */
   interface PalletTreasuryProposal extends Struct {
     readonly proposer: AccountId32;
     readonly value: u128;
@@ -2182,7 +2194,7 @@
     readonly bond: u128;
   }
 
-  /** @name PalletTreasuryCall (267) */
+  /** @name PalletTreasuryCall (266) */
   interface PalletTreasuryCall extends Enum {
     readonly isProposeSpend: boolean;
     readonly asProposeSpend: {
@@ -2209,10 +2221,10 @@
     readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';
   }
 
-  /** @name FrameSupportPalletId (269) */
+  /** @name FrameSupportPalletId (268) */
   interface FrameSupportPalletId extends U8aFixed {}
 
-  /** @name PalletTreasuryError (270) */
+  /** @name PalletTreasuryError (269) */
   interface PalletTreasuryError extends Enum {
     readonly isInsufficientProposersBalance: boolean;
     readonly isInvalidIndex: boolean;
@@ -2222,7 +2234,7 @@
     readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';
   }
 
-  /** @name PalletSudoCall (271) */
+  /** @name PalletSudoCall (270) */
   interface PalletSudoCall extends Enum {
     readonly isSudo: boolean;
     readonly asSudo: {
@@ -2245,7 +2257,7 @@
     readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
   }
 
-  /** @name OrmlVestingModuleCall (273) */
+  /** @name OrmlVestingModuleCall (272) */
   interface OrmlVestingModuleCall extends Enum {
     readonly isClaim: boolean;
     readonly isVestedTransfer: boolean;
@@ -2265,7 +2277,7 @@
     readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
   }
 
-  /** @name OrmlXtokensModuleCall (275) */
+  /** @name OrmlXtokensModuleCall (274) */
   interface OrmlXtokensModuleCall extends Enum {
     readonly isTransfer: boolean;
     readonly asTransfer: {
@@ -2312,7 +2324,7 @@
     readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';
   }
 
-  /** @name XcmVersionedMultiAsset (276) */
+  /** @name XcmVersionedMultiAsset (275) */
   interface XcmVersionedMultiAsset extends Enum {
     readonly isV0: boolean;
     readonly asV0: XcmV0MultiAsset;
@@ -2321,7 +2333,7 @@
     readonly type: 'V0' | 'V1';
   }
 
-  /** @name OrmlTokensModuleCall (279) */
+  /** @name OrmlTokensModuleCall (278) */
   interface OrmlTokensModuleCall extends Enum {
     readonly isTransfer: boolean;
     readonly asTransfer: {
@@ -2358,7 +2370,7 @@
     readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';
   }
 
-  /** @name CumulusPalletXcmpQueueCall (280) */
+  /** @name CumulusPalletXcmpQueueCall (279) */
   interface CumulusPalletXcmpQueueCall extends Enum {
     readonly isServiceOverweight: boolean;
     readonly asServiceOverweight: {
@@ -2394,7 +2406,7 @@
     readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
   }
 
-  /** @name PalletXcmCall (281) */
+  /** @name PalletXcmCall (280) */
   interface PalletXcmCall extends Enum {
     readonly isSend: boolean;
     readonly asSend: {
@@ -2456,7 +2468,7 @@
     readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
   }
 
-  /** @name XcmVersionedXcm (282) */
+  /** @name XcmVersionedXcm (281) */
   interface XcmVersionedXcm extends Enum {
     readonly isV0: boolean;
     readonly asV0: XcmV0Xcm;
@@ -2467,7 +2479,7 @@
     readonly type: 'V0' | 'V1' | 'V2';
   }
 
-  /** @name XcmV0Xcm (283) */
+  /** @name XcmV0Xcm (282) */
   interface XcmV0Xcm extends Enum {
     readonly isWithdrawAsset: boolean;
     readonly asWithdrawAsset: {
@@ -2530,7 +2542,7 @@
     readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
   }
 
-  /** @name XcmV0Order (285) */
+  /** @name XcmV0Order (284) */
   interface XcmV0Order extends Enum {
     readonly isNull: boolean;
     readonly isDepositAsset: boolean;
@@ -2578,14 +2590,14 @@
     readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
   }
 
-  /** @name XcmV0Response (287) */
+  /** @name XcmV0Response (286) */
   interface XcmV0Response extends Enum {
     readonly isAssets: boolean;
     readonly asAssets: Vec<XcmV0MultiAsset>;
     readonly type: 'Assets';
   }
 
-  /** @name XcmV1Xcm (288) */
+  /** @name XcmV1Xcm (287) */
   interface XcmV1Xcm extends Enum {
     readonly isWithdrawAsset: boolean;
     readonly asWithdrawAsset: {
@@ -2654,7 +2666,7 @@
     readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
   }
 
-  /** @name XcmV1Order (290) */
+  /** @name XcmV1Order (289) */
   interface XcmV1Order extends Enum {
     readonly isNoop: boolean;
     readonly isDepositAsset: boolean;
@@ -2704,7 +2716,7 @@
     readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
   }
 
-  /** @name XcmV1Response (292) */
+  /** @name XcmV1Response (291) */
   interface XcmV1Response extends Enum {
     readonly isAssets: boolean;
     readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -2713,10 +2725,10 @@
     readonly type: 'Assets' | 'Version';
   }
 
-  /** @name CumulusPalletXcmCall (306) */
+  /** @name CumulusPalletXcmCall (305) */
   type CumulusPalletXcmCall = Null;
 
-  /** @name CumulusPalletDmpQueueCall (307) */
+  /** @name CumulusPalletDmpQueueCall (306) */
   interface CumulusPalletDmpQueueCall extends Enum {
     readonly isServiceOverweight: boolean;
     readonly asServiceOverweight: {
@@ -2726,7 +2738,7 @@
     readonly type: 'ServiceOverweight';
   }
 
-  /** @name PalletInflationCall (308) */
+  /** @name PalletInflationCall (307) */
   interface PalletInflationCall extends Enum {
     readonly isStartInflation: boolean;
     readonly asStartInflation: {
@@ -2735,7 +2747,7 @@
     readonly type: 'StartInflation';
   }
 
-  /** @name PalletUniqueCall (309) */
+  /** @name PalletUniqueCall (308) */
   interface PalletUniqueCall extends Enum {
     readonly isCreateCollection: boolean;
     readonly asCreateCollection: {
@@ -2908,7 +2920,7 @@
     readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';
   }
 
-  /** @name UpDataStructsCollectionMode (314) */
+  /** @name UpDataStructsCollectionMode (313) */
   interface UpDataStructsCollectionMode extends Enum {
     readonly isNft: boolean;
     readonly isFungible: boolean;
@@ -2917,7 +2929,7 @@
     readonly type: 'Nft' | 'Fungible' | 'ReFungible';
   }
 
-  /** @name UpDataStructsCreateCollectionData (315) */
+  /** @name UpDataStructsCreateCollectionData (314) */
   interface UpDataStructsCreateCollectionData extends Struct {
     readonly mode: UpDataStructsCollectionMode;
     readonly access: Option<UpDataStructsAccessMode>;
@@ -2931,14 +2943,14 @@
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsAccessMode (317) */
+  /** @name UpDataStructsAccessMode (316) */
   interface UpDataStructsAccessMode extends Enum {
     readonly isNormal: boolean;
     readonly isAllowList: boolean;
     readonly type: 'Normal' | 'AllowList';
   }
 
-  /** @name UpDataStructsCollectionLimits (319) */
+  /** @name UpDataStructsCollectionLimits (318) */
   interface UpDataStructsCollectionLimits extends Struct {
     readonly accountTokenOwnershipLimit: Option<u32>;
     readonly sponsoredDataSize: Option<u32>;
@@ -2951,7 +2963,7 @@
     readonly transfersEnabled: Option<bool>;
   }
 
-  /** @name UpDataStructsSponsoringRateLimit (321) */
+  /** @name UpDataStructsSponsoringRateLimit (320) */
   interface UpDataStructsSponsoringRateLimit extends Enum {
     readonly isSponsoringDisabled: boolean;
     readonly isBlocks: boolean;
@@ -2959,43 +2971,43 @@
     readonly type: 'SponsoringDisabled' | 'Blocks';
   }
 
-  /** @name UpDataStructsCollectionPermissions (324) */
+  /** @name UpDataStructsCollectionPermissions (323) */
   interface UpDataStructsCollectionPermissions extends Struct {
     readonly access: Option<UpDataStructsAccessMode>;
     readonly mintMode: Option<bool>;
     readonly nesting: Option<UpDataStructsNestingPermissions>;
   }
 
-  /** @name UpDataStructsNestingPermissions (326) */
+  /** @name UpDataStructsNestingPermissions (325) */
   interface UpDataStructsNestingPermissions extends Struct {
     readonly tokenOwner: bool;
     readonly collectionAdmin: bool;
     readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
   }
 
-  /** @name UpDataStructsOwnerRestrictedSet (328) */
+  /** @name UpDataStructsOwnerRestrictedSet (327) */
   interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
 
-  /** @name UpDataStructsPropertyKeyPermission (333) */
+  /** @name UpDataStructsPropertyKeyPermission (332) */
   interface UpDataStructsPropertyKeyPermission extends Struct {
     readonly key: Bytes;
     readonly permission: UpDataStructsPropertyPermission;
   }
 
-  /** @name UpDataStructsPropertyPermission (334) */
+  /** @name UpDataStructsPropertyPermission (333) */
   interface UpDataStructsPropertyPermission extends Struct {
     readonly mutable: bool;
     readonly collectionAdmin: bool;
     readonly tokenOwner: bool;
   }
 
-  /** @name UpDataStructsProperty (337) */
+  /** @name UpDataStructsProperty (336) */
   interface UpDataStructsProperty extends Struct {
     readonly key: Bytes;
     readonly value: Bytes;
   }
 
-  /** @name UpDataStructsCreateItemData (340) */
+  /** @name UpDataStructsCreateItemData (339) */
   interface UpDataStructsCreateItemData extends Enum {
     readonly isNft: boolean;
     readonly asNft: UpDataStructsCreateNftData;
@@ -3006,23 +3018,23 @@
     readonly type: 'Nft' | 'Fungible' | 'ReFungible';
   }
 
-  /** @name UpDataStructsCreateNftData (341) */
+  /** @name UpDataStructsCreateNftData (340) */
   interface UpDataStructsCreateNftData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateFungibleData (342) */
+  /** @name UpDataStructsCreateFungibleData (341) */
   interface UpDataStructsCreateFungibleData extends Struct {
     readonly value: u128;
   }
 
-  /** @name UpDataStructsCreateReFungibleData (343) */
+  /** @name UpDataStructsCreateReFungibleData (342) */
   interface UpDataStructsCreateReFungibleData extends Struct {
     readonly pieces: u128;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateItemExData (346) */
+  /** @name UpDataStructsCreateItemExData (345) */
   interface UpDataStructsCreateItemExData extends Enum {
     readonly isNft: boolean;
     readonly asNft: Vec<UpDataStructsCreateNftExData>;
@@ -3035,26 +3047,26 @@
     readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
   }
 
-  /** @name UpDataStructsCreateNftExData (348) */
+  /** @name UpDataStructsCreateNftExData (347) */
   interface UpDataStructsCreateNftExData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
     readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
   }
 
-  /** @name UpDataStructsCreateRefungibleExSingleOwner (355) */
+  /** @name UpDataStructsCreateRefungibleExSingleOwner (354) */
   interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
     readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
     readonly pieces: u128;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateRefungibleExMultipleOwners (357) */
+  /** @name UpDataStructsCreateRefungibleExMultipleOwners (356) */
   interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
     readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name PalletConfigurationCall (358) */
+  /** @name PalletConfigurationCall (357) */
   interface PalletConfigurationCall extends Enum {
     readonly isSetWeightToFeeCoefficientOverride: boolean;
     readonly asSetWeightToFeeCoefficientOverride: {
@@ -3087,7 +3099,7 @@
     readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';
   }
 
-  /** @name PalletConfigurationAppPromotionConfiguration (363) */
+  /** @name PalletConfigurationAppPromotionConfiguration (362) */
   interface PalletConfigurationAppPromotionConfiguration extends Struct {
     readonly recalculationInterval: Option<u32>;
     readonly pendingInterval: Option<u32>;
@@ -3095,13 +3107,13 @@
     readonly maxStakersPerCalculation: Option<u8>;
   }
 
-  /** @name PalletTemplateTransactionPaymentCall (367) */
+  /** @name PalletTemplateTransactionPaymentCall (366) */
   type PalletTemplateTransactionPaymentCall = Null;
 
-  /** @name PalletStructureCall (368) */
+  /** @name PalletStructureCall (367) */
   type PalletStructureCall = Null;
 
-  /** @name PalletRmrkCoreCall (369) */
+  /** @name PalletRmrkCoreCall (368) */
   interface PalletRmrkCoreCall extends Enum {
     readonly isCreateCollection: boolean;
     readonly asCreateCollection: {
@@ -3207,7 +3219,7 @@
     readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';
   }
 
-  /** @name RmrkTraitsResourceResourceTypes (375) */
+  /** @name RmrkTraitsResourceResourceTypes (374) */
   interface RmrkTraitsResourceResourceTypes extends Enum {
     readonly isBasic: boolean;
     readonly asBasic: RmrkTraitsResourceBasicResource;
@@ -3218,7 +3230,7 @@
     readonly type: 'Basic' | 'Composable' | 'Slot';
   }
 
-  /** @name RmrkTraitsResourceBasicResource (377) */
+  /** @name RmrkTraitsResourceBasicResource (376) */
   interface RmrkTraitsResourceBasicResource extends Struct {
     readonly src: Option<Bytes>;
     readonly metadata: Option<Bytes>;
@@ -3226,7 +3238,7 @@
     readonly thumb: Option<Bytes>;
   }
 
-  /** @name RmrkTraitsResourceComposableResource (379) */
+  /** @name RmrkTraitsResourceComposableResource (378) */
   interface RmrkTraitsResourceComposableResource extends Struct {
     readonly parts: Vec<u32>;
     readonly base: u32;
@@ -3236,7 +3248,7 @@
     readonly thumb: Option<Bytes>;
   }
 
-  /** @name RmrkTraitsResourceSlotResource (380) */
+  /** @name RmrkTraitsResourceSlotResource (379) */
   interface RmrkTraitsResourceSlotResource extends Struct {
     readonly base: u32;
     readonly src: Option<Bytes>;
@@ -3246,7 +3258,7 @@
     readonly thumb: Option<Bytes>;
   }
 
-  /** @name PalletRmrkEquipCall (383) */
+  /** @name PalletRmrkEquipCall (382) */
   interface PalletRmrkEquipCall extends Enum {
     readonly isCreateBase: boolean;
     readonly asCreateBase: {
@@ -3268,7 +3280,7 @@
     readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
   }
 
-  /** @name RmrkTraitsPartPartType (386) */
+  /** @name RmrkTraitsPartPartType (385) */
   interface RmrkTraitsPartPartType extends Enum {
     readonly isFixedPart: boolean;
     readonly asFixedPart: RmrkTraitsPartFixedPart;
@@ -3277,14 +3289,14 @@
     readonly type: 'FixedPart' | 'SlotPart';
   }
 
-  /** @name RmrkTraitsPartFixedPart (388) */
+  /** @name RmrkTraitsPartFixedPart (387) */
   interface RmrkTraitsPartFixedPart extends Struct {
     readonly id: u32;
     readonly z: u32;
     readonly src: Bytes;
   }
 
-  /** @name RmrkTraitsPartSlotPart (389) */
+  /** @name RmrkTraitsPartSlotPart (388) */
   interface RmrkTraitsPartSlotPart extends Struct {
     readonly id: u32;
     readonly equippable: RmrkTraitsPartEquippableList;
@@ -3292,7 +3304,7 @@
     readonly z: u32;
   }
 
-  /** @name RmrkTraitsPartEquippableList (390) */
+  /** @name RmrkTraitsPartEquippableList (389) */
   interface RmrkTraitsPartEquippableList extends Enum {
     readonly isAll: boolean;
     readonly isEmpty: boolean;
@@ -3301,20 +3313,20 @@
     readonly type: 'All' | 'Empty' | 'Custom';
   }
 
-  /** @name RmrkTraitsTheme (392) */
+  /** @name RmrkTraitsTheme (391) */
   interface RmrkTraitsTheme extends Struct {
     readonly name: Bytes;
     readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
     readonly inherit: bool;
   }
 
-  /** @name RmrkTraitsThemeThemeProperty (394) */
+  /** @name RmrkTraitsThemeThemeProperty (393) */
   interface RmrkTraitsThemeThemeProperty extends Struct {
     readonly key: Bytes;
     readonly value: Bytes;
   }
 
-  /** @name PalletAppPromotionCall (396) */
+  /** @name PalletAppPromotionCall (395) */
   interface PalletAppPromotionCall extends Enum {
     readonly isSetAdminAddress: boolean;
     readonly asSetAdminAddress: {
@@ -3348,7 +3360,7 @@
     readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';
   }
 
-  /** @name PalletForeignAssetsModuleCall (397) */
+  /** @name PalletForeignAssetsModuleCall (396) */
   interface PalletForeignAssetsModuleCall extends Enum {
     readonly isRegisterForeignAsset: boolean;
     readonly asRegisterForeignAsset: {
@@ -3365,7 +3377,7 @@
     readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';
   }
 
-  /** @name PalletEvmCall (398) */
+  /** @name PalletEvmCall (397) */
   interface PalletEvmCall extends Enum {
     readonly isWithdraw: boolean;
     readonly asWithdraw: {
@@ -3410,7 +3422,7 @@
     readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
   }
 
-  /** @name PalletEthereumCall (404) */
+  /** @name PalletEthereumCall (403) */
   interface PalletEthereumCall extends Enum {
     readonly isTransact: boolean;
     readonly asTransact: {
@@ -3419,7 +3431,7 @@
     readonly type: 'Transact';
   }
 
-  /** @name EthereumTransactionTransactionV2 (405) */
+  /** @name EthereumTransactionTransactionV2 (404) */
   interface EthereumTransactionTransactionV2 extends Enum {
     readonly isLegacy: boolean;
     readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -3430,7 +3442,7 @@
     readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
   }
 
-  /** @name EthereumTransactionLegacyTransaction (406) */
+  /** @name EthereumTransactionLegacyTransaction (405) */
   interface EthereumTransactionLegacyTransaction extends Struct {
     readonly nonce: U256;
     readonly gasPrice: U256;
@@ -3441,7 +3453,7 @@
     readonly signature: EthereumTransactionTransactionSignature;
   }
 
-  /** @name EthereumTransactionTransactionAction (407) */
+  /** @name EthereumTransactionTransactionAction (406) */
   interface EthereumTransactionTransactionAction extends Enum {
     readonly isCall: boolean;
     readonly asCall: H160;
@@ -3449,14 +3461,14 @@
     readonly type: 'Call' | 'Create';
   }
 
-  /** @name EthereumTransactionTransactionSignature (408) */
+  /** @name EthereumTransactionTransactionSignature (407) */
   interface EthereumTransactionTransactionSignature extends Struct {
     readonly v: u64;
     readonly r: H256;
     readonly s: H256;
   }
 
-  /** @name EthereumTransactionEip2930Transaction (410) */
+  /** @name EthereumTransactionEip2930Transaction (409) */
   interface EthereumTransactionEip2930Transaction extends Struct {
     readonly chainId: u64;
     readonly nonce: U256;
@@ -3471,13 +3483,13 @@
     readonly s: H256;
   }
 
-  /** @name EthereumTransactionAccessListItem (412) */
+  /** @name EthereumTransactionAccessListItem (411) */
   interface EthereumTransactionAccessListItem extends Struct {
     readonly address: H160;
     readonly storageKeys: Vec<H256>;
   }
 
-  /** @name EthereumTransactionEip1559Transaction (413) */
+  /** @name EthereumTransactionEip1559Transaction (412) */
   interface EthereumTransactionEip1559Transaction extends Struct {
     readonly chainId: u64;
     readonly nonce: U256;
@@ -3493,7 +3505,7 @@
     readonly s: H256;
   }
 
-  /** @name PalletEvmMigrationCall (414) */
+  /** @name PalletEvmMigrationCall (413) */
   interface PalletEvmMigrationCall extends Enum {
     readonly isBegin: boolean;
     readonly asBegin: {
@@ -3520,14 +3532,14 @@
     readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
   }
 
-  /** @name PalletMaintenanceCall (418) */
+  /** @name PalletMaintenanceCall (417) */
   interface PalletMaintenanceCall extends Enum {
     readonly isEnable: boolean;
     readonly isDisable: boolean;
     readonly type: 'Enable' | 'Disable';
   }
 
-  /** @name PalletTestUtilsCall (419) */
+  /** @name PalletTestUtilsCall (418) */
   interface PalletTestUtilsCall extends Enum {
     readonly isEnable: boolean;
     readonly isSetTestValue: boolean;
@@ -3547,13 +3559,13 @@
     readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';
   }
 
-  /** @name PalletSudoError (421) */
+  /** @name PalletSudoError (420) */
   interface PalletSudoError extends Enum {
     readonly isRequireSudo: boolean;
     readonly type: 'RequireSudo';
   }
 
-  /** @name OrmlVestingModuleError (423) */
+  /** @name OrmlVestingModuleError (422) */
   interface OrmlVestingModuleError extends Enum {
     readonly isZeroVestingPeriod: boolean;
     readonly isZeroVestingPeriodCount: boolean;
@@ -3564,7 +3576,7 @@
     readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
   }
 
-  /** @name OrmlXtokensModuleError (424) */
+  /** @name OrmlXtokensModuleError (423) */
   interface OrmlXtokensModuleError extends Enum {
     readonly isAssetHasNoReserve: boolean;
     readonly isNotCrossChainTransfer: boolean;
@@ -3588,26 +3600,26 @@
     readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';
   }
 
-  /** @name OrmlTokensBalanceLock (427) */
+  /** @name OrmlTokensBalanceLock (426) */
   interface OrmlTokensBalanceLock extends Struct {
     readonly id: U8aFixed;
     readonly amount: u128;
   }
 
-  /** @name OrmlTokensAccountData (429) */
+  /** @name OrmlTokensAccountData (428) */
   interface OrmlTokensAccountData extends Struct {
     readonly free: u128;
     readonly reserved: u128;
     readonly frozen: u128;
   }
 
-  /** @name OrmlTokensReserveData (431) */
+  /** @name OrmlTokensReserveData (430) */
   interface OrmlTokensReserveData extends Struct {
     readonly id: Null;
     readonly amount: u128;
   }
 
-  /** @name OrmlTokensModuleError (433) */
+  /** @name OrmlTokensModuleError (432) */
   interface OrmlTokensModuleError extends Enum {
     readonly isBalanceTooLow: boolean;
     readonly isAmountIntoBalanceFailed: boolean;
@@ -3620,21 +3632,21 @@
     readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';
   }
 
-  /** @name CumulusPalletXcmpQueueInboundChannelDetails (435) */
+  /** @name CumulusPalletXcmpQueueInboundChannelDetails (434) */
   interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
     readonly sender: u32;
     readonly state: CumulusPalletXcmpQueueInboundState;
     readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
   }
 
-  /** @name CumulusPalletXcmpQueueInboundState (436) */
+  /** @name CumulusPalletXcmpQueueInboundState (435) */
   interface CumulusPalletXcmpQueueInboundState extends Enum {
     readonly isOk: boolean;
     readonly isSuspended: boolean;
     readonly type: 'Ok' | 'Suspended';
   }
 
-  /** @name PolkadotParachainPrimitivesXcmpMessageFormat (439) */
+  /** @name PolkadotParachainPrimitivesXcmpMessageFormat (438) */
   interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
     readonly isConcatenatedVersionedXcm: boolean;
     readonly isConcatenatedEncodedBlob: boolean;
@@ -3642,7 +3654,7 @@
     readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
   }
 
-  /** @name CumulusPalletXcmpQueueOutboundChannelDetails (442) */
+  /** @name CumulusPalletXcmpQueueOutboundChannelDetails (441) */
   interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
     readonly recipient: u32;
     readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -3651,14 +3663,14 @@
     readonly lastIndex: u16;
   }
 
-  /** @name CumulusPalletXcmpQueueOutboundState (443) */
+  /** @name CumulusPalletXcmpQueueOutboundState (442) */
   interface CumulusPalletXcmpQueueOutboundState extends Enum {
     readonly isOk: boolean;
     readonly isSuspended: boolean;
     readonly type: 'Ok' | 'Suspended';
   }
 
-  /** @name CumulusPalletXcmpQueueQueueConfigData (445) */
+  /** @name CumulusPalletXcmpQueueQueueConfigData (444) */
   interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
     readonly suspendThreshold: u32;
     readonly dropThreshold: u32;
@@ -3668,7 +3680,7 @@
     readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;
   }
 
-  /** @name CumulusPalletXcmpQueueError (447) */
+  /** @name CumulusPalletXcmpQueueError (446) */
   interface CumulusPalletXcmpQueueError extends Enum {
     readonly isFailedToSend: boolean;
     readonly isBadXcmOrigin: boolean;
@@ -3678,7 +3690,7 @@
     readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
   }
 
-  /** @name PalletXcmError (448) */
+  /** @name PalletXcmError (447) */
   interface PalletXcmError extends Enum {
     readonly isUnreachable: boolean;
     readonly isSendFailure: boolean;
@@ -3696,29 +3708,29 @@
     readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
   }
 
-  /** @name CumulusPalletXcmError (449) */
+  /** @name CumulusPalletXcmError (448) */
   type CumulusPalletXcmError = Null;
 
-  /** @name CumulusPalletDmpQueueConfigData (450) */
+  /** @name CumulusPalletDmpQueueConfigData (449) */
   interface CumulusPalletDmpQueueConfigData extends Struct {
     readonly maxIndividual: SpWeightsWeightV2Weight;
   }
 
-  /** @name CumulusPalletDmpQueuePageIndexData (451) */
+  /** @name CumulusPalletDmpQueuePageIndexData (450) */
   interface CumulusPalletDmpQueuePageIndexData extends Struct {
     readonly beginUsed: u32;
     readonly endUsed: u32;
     readonly overweightCount: u64;
   }
 
-  /** @name CumulusPalletDmpQueueError (454) */
+  /** @name CumulusPalletDmpQueueError (453) */
   interface CumulusPalletDmpQueueError extends Enum {
     readonly isUnknown: boolean;
     readonly isOverLimit: boolean;
     readonly type: 'Unknown' | 'OverLimit';
   }
 
-  /** @name PalletUniqueError (458) */
+  /** @name PalletUniqueError (457) */
   interface PalletUniqueError extends Enum {
     readonly isCollectionDecimalPointLimitExceeded: boolean;
     readonly isEmptyArgument: boolean;
@@ -3726,13 +3738,13 @@
     readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
   }
 
-  /** @name PalletConfigurationError (459) */
+  /** @name PalletConfigurationError (458) */
   interface PalletConfigurationError extends Enum {
     readonly isInconsistentConfiguration: boolean;
     readonly type: 'InconsistentConfiguration';
   }
 
-  /** @name UpDataStructsCollection (460) */
+  /** @name UpDataStructsCollection (459) */
   interface UpDataStructsCollection extends Struct {
     readonly owner: AccountId32;
     readonly mode: UpDataStructsCollectionMode;
@@ -3745,7 +3757,7 @@
     readonly flags: U8aFixed;
   }
 
-  /** @name UpDataStructsSponsorshipStateAccountId32 (461) */
+  /** @name UpDataStructsSponsorshipStateAccountId32 (460) */
   interface UpDataStructsSponsorshipStateAccountId32 extends Enum {
     readonly isDisabled: boolean;
     readonly isUnconfirmed: boolean;
@@ -3755,43 +3767,43 @@
     readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
   }
 
-  /** @name UpDataStructsProperties (462) */
+  /** @name UpDataStructsProperties (461) */
   interface UpDataStructsProperties extends Struct {
     readonly map: UpDataStructsPropertiesMapBoundedVec;
     readonly consumedSpace: u32;
     readonly spaceLimit: u32;
   }
 
-  /** @name UpDataStructsPropertiesMapBoundedVec (463) */
+  /** @name UpDataStructsPropertiesMapBoundedVec (462) */
   interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
 
-  /** @name UpDataStructsPropertiesMapPropertyPermission (468) */
+  /** @name UpDataStructsPropertiesMapPropertyPermission (467) */
   interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
 
-  /** @name UpDataStructsCollectionStats (475) */
+  /** @name UpDataStructsCollectionStats (474) */
   interface UpDataStructsCollectionStats extends Struct {
     readonly created: u32;
     readonly destroyed: u32;
     readonly alive: u32;
   }
 
-  /** @name UpDataStructsTokenChild (476) */
+  /** @name UpDataStructsTokenChild (475) */
   interface UpDataStructsTokenChild extends Struct {
     readonly token: u32;
     readonly collection: u32;
   }
 
-  /** @name PhantomTypeUpDataStructs (477) */
+  /** @name PhantomTypeUpDataStructs (476) */
   interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}
 
-  /** @name UpDataStructsTokenData (479) */
+  /** @name UpDataStructsTokenData (478) */
   interface UpDataStructsTokenData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
     readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
     readonly pieces: u128;
   }
 
-  /** @name UpDataStructsRpcCollection (481) */
+  /** @name UpDataStructsRpcCollection (480) */
   interface UpDataStructsRpcCollection extends Struct {
     readonly owner: AccountId32;
     readonly mode: UpDataStructsCollectionMode;
@@ -3807,13 +3819,13 @@
     readonly flags: UpDataStructsRpcCollectionFlags;
   }
 
-  /** @name UpDataStructsRpcCollectionFlags (482) */
+  /** @name UpDataStructsRpcCollectionFlags (481) */
   interface UpDataStructsRpcCollectionFlags extends Struct {
     readonly foreign: bool;
     readonly erc721metadata: bool;
   }
 
-  /** @name RmrkTraitsCollectionCollectionInfo (483) */
+  /** @name RmrkTraitsCollectionCollectionInfo (482) */
   interface RmrkTraitsCollectionCollectionInfo extends Struct {
     readonly issuer: AccountId32;
     readonly metadata: Bytes;
@@ -3822,7 +3834,7 @@
     readonly nftsCount: u32;
   }
 
-  /** @name RmrkTraitsNftNftInfo (484) */
+  /** @name RmrkTraitsNftNftInfo (483) */
   interface RmrkTraitsNftNftInfo extends Struct {
     readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
     readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
@@ -3831,13 +3843,13 @@
     readonly pending: bool;
   }
 
-  /** @name RmrkTraitsNftRoyaltyInfo (486) */
+  /** @name RmrkTraitsNftRoyaltyInfo (485) */
   interface RmrkTraitsNftRoyaltyInfo extends Struct {
     readonly recipient: AccountId32;
     readonly amount: Permill;
   }
 
-  /** @name RmrkTraitsResourceResourceInfo (487) */
+  /** @name RmrkTraitsResourceResourceInfo (486) */
   interface RmrkTraitsResourceResourceInfo extends Struct {
     readonly id: u32;
     readonly resource: RmrkTraitsResourceResourceTypes;
@@ -3845,26 +3857,26 @@
     readonly pendingRemoval: bool;
   }
 
-  /** @name RmrkTraitsPropertyPropertyInfo (488) */
+  /** @name RmrkTraitsPropertyPropertyInfo (487) */
   interface RmrkTraitsPropertyPropertyInfo extends Struct {
     readonly key: Bytes;
     readonly value: Bytes;
   }
 
-  /** @name RmrkTraitsBaseBaseInfo (489) */
+  /** @name RmrkTraitsBaseBaseInfo (488) */
   interface RmrkTraitsBaseBaseInfo extends Struct {
     readonly issuer: AccountId32;
     readonly baseType: Bytes;
     readonly symbol: Bytes;
   }
 
-  /** @name RmrkTraitsNftNftChild (490) */
+  /** @name RmrkTraitsNftNftChild (489) */
   interface RmrkTraitsNftNftChild extends Struct {
     readonly collectionId: u32;
     readonly nftId: u32;
   }
 
-  /** @name UpPovEstimateRpcPovInfo (491) */
+  /** @name UpPovEstimateRpcPovInfo (490) */
   interface UpPovEstimateRpcPovInfo extends Struct {
     readonly proofSize: u64;
     readonly compactProofSize: u64;
@@ -3873,7 +3885,7 @@
     readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;
   }
 
-  /** @name SpRuntimeTransactionValidityTransactionValidityError (494) */
+  /** @name SpRuntimeTransactionValidityTransactionValidityError (493) */
   interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
     readonly isInvalid: boolean;
     readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
@@ -3882,7 +3894,7 @@
     readonly type: 'Invalid' | 'Unknown';
   }
 
-  /** @name SpRuntimeTransactionValidityInvalidTransaction (495) */
+  /** @name SpRuntimeTransactionValidityInvalidTransaction (494) */
   interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
     readonly isCall: boolean;
     readonly isPayment: boolean;
@@ -3899,7 +3911,7 @@
     readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
   }
 
-  /** @name SpRuntimeTransactionValidityUnknownTransaction (496) */
+  /** @name SpRuntimeTransactionValidityUnknownTransaction (495) */
   interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
     readonly isCannotLookup: boolean;
     readonly isNoUnsignedValidator: boolean;
@@ -3908,13 +3920,13 @@
     readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
   }
 
-  /** @name UpPovEstimateRpcTrieKeyValue (498) */
+  /** @name UpPovEstimateRpcTrieKeyValue (497) */
   interface UpPovEstimateRpcTrieKeyValue extends Struct {
     readonly key: Bytes;
     readonly value: Bytes;
   }
 
-  /** @name PalletCommonError (500) */
+  /** @name PalletCommonError (499) */
   interface PalletCommonError extends Enum {
     readonly isCollectionNotFound: boolean;
     readonly isMustBeTokenOwner: boolean;
@@ -3955,7 +3967,7 @@
     readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';
   }
 
-  /** @name PalletFungibleError (502) */
+  /** @name PalletFungibleError (501) */
   interface PalletFungibleError extends Enum {
     readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isFungibleItemsHaveNoId: boolean;
@@ -3967,7 +3979,7 @@
     readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';
   }
 
-  /** @name PalletRefungibleError (506) */
+  /** @name PalletRefungibleError (505) */
   interface PalletRefungibleError extends Enum {
     readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isWrongRefungiblePieces: boolean;
@@ -3977,19 +3989,19 @@
     readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
   }
 
-  /** @name PalletNonfungibleItemData (507) */
+  /** @name PalletNonfungibleItemData (506) */
   interface PalletNonfungibleItemData extends Struct {
     readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
   }
 
-  /** @name UpDataStructsPropertyScope (509) */
+  /** @name UpDataStructsPropertyScope (508) */
   interface UpDataStructsPropertyScope extends Enum {
     readonly isNone: boolean;
     readonly isRmrk: boolean;
     readonly type: 'None' | 'Rmrk';
   }
 
-  /** @name PalletNonfungibleError (512) */
+  /** @name PalletNonfungibleError (511) */
   interface PalletNonfungibleError extends Enum {
     readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -3997,7 +4009,7 @@
     readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
   }
 
-  /** @name PalletStructureError (513) */
+  /** @name PalletStructureError (512) */
   interface PalletStructureError extends Enum {
     readonly isOuroborosDetected: boolean;
     readonly isDepthLimit: boolean;
@@ -4006,7 +4018,7 @@
     readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
   }
 
-  /** @name PalletRmrkCoreError (514) */
+  /** @name PalletRmrkCoreError (513) */
   interface PalletRmrkCoreError extends Enum {
     readonly isCorruptedCollectionType: boolean;
     readonly isRmrkPropertyKeyIsTooLong: boolean;
@@ -4030,7 +4042,7 @@
     readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
   }
 
-  /** @name PalletRmrkEquipError (516) */
+  /** @name PalletRmrkEquipError (515) */
   interface PalletRmrkEquipError extends Enum {
     readonly isPermissionError: boolean;
     readonly isNoAvailableBaseId: boolean;
@@ -4042,7 +4054,7 @@
     readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
   }
 
-  /** @name PalletAppPromotionError (522) */
+  /** @name PalletAppPromotionError (521) */
   interface PalletAppPromotionError extends Enum {
     readonly isAdminNotSet: boolean;
     readonly isNoPermission: boolean;
@@ -4053,7 +4065,7 @@
     readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';
   }
 
-  /** @name PalletForeignAssetsModuleError (523) */
+  /** @name PalletForeignAssetsModuleError (522) */
   interface PalletForeignAssetsModuleError extends Enum {
     readonly isBadLocation: boolean;
     readonly isMultiLocationExisted: boolean;
@@ -4062,7 +4074,7 @@
     readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';
   }
 
-  /** @name PalletEvmError (525) */
+  /** @name PalletEvmError (524) */
   interface PalletEvmError extends Enum {
     readonly isBalanceLow: boolean;
     readonly isFeeOverflow: boolean;
@@ -4078,7 +4090,7 @@
     readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';
   }
 
-  /** @name FpRpcTransactionStatus (528) */
+  /** @name FpRpcTransactionStatus (527) */
   interface FpRpcTransactionStatus extends Struct {
     readonly transactionHash: H256;
     readonly transactionIndex: u32;
@@ -4089,10 +4101,10 @@
     readonly logsBloom: EthbloomBloom;
   }
 
-  /** @name EthbloomBloom (530) */
+  /** @name EthbloomBloom (529) */
   interface EthbloomBloom extends U8aFixed {}
 
-  /** @name EthereumReceiptReceiptV3 (532) */
+  /** @name EthereumReceiptReceiptV3 (531) */
   interface EthereumReceiptReceiptV3 extends Enum {
     readonly isLegacy: boolean;
     readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -4103,7 +4115,7 @@
     readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
   }
 
-  /** @name EthereumReceiptEip658ReceiptData (533) */
+  /** @name EthereumReceiptEip658ReceiptData (532) */
   interface EthereumReceiptEip658ReceiptData extends Struct {
     readonly statusCode: u8;
     readonly usedGas: U256;
@@ -4111,14 +4123,14 @@
     readonly logs: Vec<EthereumLog>;
   }
 
-  /** @name EthereumBlock (534) */
+  /** @name EthereumBlock (533) */
   interface EthereumBlock extends Struct {
     readonly header: EthereumHeader;
     readonly transactions: Vec<EthereumTransactionTransactionV2>;
     readonly ommers: Vec<EthereumHeader>;
   }
 
-  /** @name EthereumHeader (535) */
+  /** @name EthereumHeader (534) */
   interface EthereumHeader extends Struct {
     readonly parentHash: H256;
     readonly ommersHash: H256;
@@ -4137,24 +4149,24 @@
     readonly nonce: EthereumTypesHashH64;
   }
 
-  /** @name EthereumTypesHashH64 (536) */
+  /** @name EthereumTypesHashH64 (535) */
   interface EthereumTypesHashH64 extends U8aFixed {}
 
-  /** @name PalletEthereumError (541) */
+  /** @name PalletEthereumError (540) */
   interface PalletEthereumError extends Enum {
     readonly isInvalidSignature: boolean;
     readonly isPreLogExists: boolean;
     readonly type: 'InvalidSignature' | 'PreLogExists';
   }
 
-  /** @name PalletEvmCoderSubstrateError (542) */
+  /** @name PalletEvmCoderSubstrateError (541) */
   interface PalletEvmCoderSubstrateError extends Enum {
     readonly isOutOfGas: boolean;
     readonly isOutOfFund: boolean;
     readonly type: 'OutOfGas' | 'OutOfFund';
   }
 
-  /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (543) */
+  /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (542) */
   interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
     readonly isDisabled: boolean;
     readonly isUnconfirmed: boolean;
@@ -4164,7 +4176,7 @@
     readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
   }
 
-  /** @name PalletEvmContractHelpersSponsoringModeT (544) */
+  /** @name PalletEvmContractHelpersSponsoringModeT (543) */
   interface PalletEvmContractHelpersSponsoringModeT extends Enum {
     readonly isDisabled: boolean;
     readonly isAllowlisted: boolean;
@@ -4172,7 +4184,7 @@
     readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
   }
 
-  /** @name PalletEvmContractHelpersError (550) */
+  /** @name PalletEvmContractHelpersError (549) */
   interface PalletEvmContractHelpersError extends Enum {
     readonly isNoPermission: boolean;
     readonly isNoPendingSponsor: boolean;
@@ -4180,7 +4192,7 @@
     readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';
   }
 
-  /** @name PalletEvmMigrationError (551) */
+  /** @name PalletEvmMigrationError (550) */
   interface PalletEvmMigrationError extends Enum {
     readonly isAccountNotEmpty: boolean;
     readonly isAccountIsNotMigrating: boolean;
@@ -4188,17 +4200,17 @@
     readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
   }
 
-  /** @name PalletMaintenanceError (552) */
+  /** @name PalletMaintenanceError (551) */
   type PalletMaintenanceError = Null;
 
-  /** @name PalletTestUtilsError (553) */
+  /** @name PalletTestUtilsError (552) */
   interface PalletTestUtilsError extends Enum {
     readonly isTestPalletDisabled: boolean;
     readonly isTriggerRollback: boolean;
     readonly type: 'TestPalletDisabled' | 'TriggerRollback';
   }
 
-  /** @name SpRuntimeMultiSignature (555) */
+  /** @name SpRuntimeMultiSignature (554) */
   interface SpRuntimeMultiSignature extends Enum {
     readonly isEd25519: boolean;
     readonly asEd25519: SpCoreEd25519Signature;
@@ -4209,43 +4221,43 @@
     readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
   }
 
-  /** @name SpCoreEd25519Signature (556) */
+  /** @name SpCoreEd25519Signature (555) */
   interface SpCoreEd25519Signature extends U8aFixed {}
 
-  /** @name SpCoreSr25519Signature (558) */
+  /** @name SpCoreSr25519Signature (557) */
   interface SpCoreSr25519Signature extends U8aFixed {}
 
-  /** @name SpCoreEcdsaSignature (559) */
+  /** @name SpCoreEcdsaSignature (558) */
   interface SpCoreEcdsaSignature extends U8aFixed {}
 
-  /** @name FrameSystemExtensionsCheckSpecVersion (562) */
+  /** @name FrameSystemExtensionsCheckSpecVersion (561) */
   type FrameSystemExtensionsCheckSpecVersion = Null;
 
-  /** @name FrameSystemExtensionsCheckTxVersion (563) */
+  /** @name FrameSystemExtensionsCheckTxVersion (562) */
   type FrameSystemExtensionsCheckTxVersion = Null;
 
-  /** @name FrameSystemExtensionsCheckGenesis (564) */
+  /** @name FrameSystemExtensionsCheckGenesis (563) */
   type FrameSystemExtensionsCheckGenesis = Null;
 
-  /** @name FrameSystemExtensionsCheckNonce (567) */
+  /** @name FrameSystemExtensionsCheckNonce (566) */
   interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
 
-  /** @name FrameSystemExtensionsCheckWeight (568) */
+  /** @name FrameSystemExtensionsCheckWeight (567) */
   type FrameSystemExtensionsCheckWeight = Null;
 
-  /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (569) */
+  /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (568) */
   type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;
 
-  /** @name OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity (570) */
-  type OpalRuntimeRuntimeCommonEvmMigrationFilterIdentity = Null;
+  /** @name OpalRuntimeRuntimeCommonDataManagementFilterIdentity (569) */
+  type OpalRuntimeRuntimeCommonDataManagementFilterIdentity = Null;
 
-  /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (571) */
+  /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (570) */
   interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
 
-  /** @name OpalRuntimeRuntime (572) */
+  /** @name OpalRuntimeRuntime (571) */
   type OpalRuntimeRuntime = Null;
 
-  /** @name PalletEthereumFakeTransactionFinalizer (573) */
+  /** @name PalletEthereumFakeTransactionFinalizer (572) */
   type PalletEthereumFakeTransactionFinalizer = Null;
 
 } // declare module
modifiedtests/src/util/identitySetter.tsdiffbeforeafterboth
--- a/tests/src/util/identitySetter.ts
+++ b/tests/src/util/identitySetter.ts
@@ -1,26 +1,43 @@
 // Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
 // SPDX-License-Identifier: Apache-2.0
 
+import {encodeAddress} from '@polkadot/keyring';
 import {usingPlaygrounds, Pallets} from './index';
+import {ChainHelperBase} from './playgrounds/unique';
 
-const relayUrl0 = process.argv[2] ?? 'localhost:9844';
-const relayUrl = `ws${relayUrl0.includes('localhost') ? '' : 's'}://${relayUrl0}`;
+const relayUrl = process.argv[2] ?? 'ws://localhost:9844';
+const paraUrl = process.argv[3] ?? 'ws://localhost:9944';
+const key = process.argv.length > 4 ? process.argv.slice(4).join(' ') : '//Alice';
 
-const paraUrl0 = process.argv[3] ?? 'localhost:9944';
-const paraUrl = `ws${paraUrl0.includes('localhost') ? '' : 's'}://${paraUrl0}`;
+function extractIdentity(key: any, value: any): [string, any] {
+  return [(key as any).toHuman()[0], (value as any).unwrap()];
+}
 
-const key = process.argv.length > 4 ? process.argv.slice(4).join(' ') : '//Alice';
+async function getIdentities(helper: ChainHelperBase) {
+  const identities: [string, any][] = [];
+  for(const [key, value] of await helper.getApi().query.identity.identityOf.entries())
+    identities.push(extractIdentity(key, value));
+  return identities;
+}
 
 // This is a utility for pulling
-const setIdentities = async (): Promise<void> => {
-  const identities: any[] = [];
+const forceInsertIdentities = async (): Promise<void> => {
+  const identitiesOnRelay: any[] = [];
+  const identitiesToRemove: string[] = [];
   await usingPlaygrounds(async helper => {
     try {
+      // iterate over every identity
       for(const [key, v] of await helper.getApi().query.identity.identityOf.entries()) {
         const value = v as any;
-        if (!value.isSome) continue;
+        if (value.isNone) {
+          // in the nigh-impossible case that storage map would actually give None for a value, might as well delete it
+          identitiesToRemove.push((key as any).toHuman()[0]);
+          continue;
+        }
+
+        // if any of the judgements resulted in a good confirmed outcome, keep this identity
         if (value.unwrap().toHuman().judgements.filter((x: any) => x[1] == 'Reasonable' || x[1] == 'KnownGood').length == 0) continue;
-        identities.push([key, value]);
+        identitiesOnRelay.push(extractIdentity(key, value));
       }
     } catch (error) {
       console.error(error);
@@ -32,9 +49,32 @@
     if (helper.fetchMissingPalletNames([Pallets.Identity]).length != 0) console.error('pallet-identity is not included in parachain.');
     try {
       const superuser = await privateKey(key);
-      // todo:collator
-      await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.setIdentities', [identities]);
-      console.log(`Tried to upload ${identities.length} identities. `
+      const ss58Format = helper.chain.getChainProperties().ss58Format;
+      const paraIdentities = await getIdentities(helper);
+      const identitiesToAdd: any[] = [];
+
+      // cross-reference every account for changes
+      for (const [key, value] of identitiesOnRelay) {
+        const encodedKey = encodeAddress(key, ss58Format);
+
+        const identity = paraIdentities.find(i => i[0] === encodedKey);
+        if (identity) {
+          // only update if the identity info does not exist or is changed
+          if (value.toString() === identity[1].toString()) {
+            continue;
+          }
+        }
+        identitiesToAdd.push([key, value]);
+        // exercise caution - in case we have an identity and the realy doesn't, it might mean one of two things:
+        // 1) it was deleted on the relay;
+        // 2) it is our own identity, we don't want to delete it.
+        // identitiesToRemove.push((key as any).toHuman()[0]);
+      }
+
+      // await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceRemoveIdentities', [identitiesToRemove]);
+      await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [identitiesToAdd]);
+      console.log(`Tried to upload ${identitiesToAdd.length} identities `
+        + `and found ${identitiesToRemove.length} identities for potential removal. `
         + `Now there are ${(await helper.getApi().query.identity.identityOf.keys()).length}.`);
     } catch (error) {
       console.error(error);
@@ -43,4 +83,4 @@
   }, paraUrl);
 };
 
-setIdentities().catch(() => process.exit(1));
\ No newline at end of file
+forceInsertIdentities().catch(() => process.exit(1));
\ No newline at end of file