git.delta.rocks / unique-network / refs/commits / 20ac01d2fe7c

difftreelog

feat eth all-in-one create_collection (#971)

Gregory Simonov2023-08-16parent: #950d276.patch.diff
in: master
* feat: setNesting api change

* fix: change restricted collections to addresses instead of ids

* feat: all in one create collection method

* fix: code review requests

* feat: use struct for create_collection flags

* fix: update evm-coder dependency

* fix: code review requests

* fix: change pending_sponsor to optional cross address

* feat: forbid user from using flags

* refactor: deduplicate CollectionFlags struct

* fix: eth CollectionMode should be NFT

* style: fix clippy warning

* fix: disable eth create_collection

---------

67 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2646,8 +2646,8 @@
 
 [[package]]
 name = "evm-coder"
-version = "0.3.1"
-source = "git+https://github.com/uniquenetwork/evm-coder?tag=v0.3.1#21e61c627f71337d6b8a03899fe8de14bfbf67aa"
+version = "0.3.6"
+source = "git+https://github.com/uniquenetwork/evm-coder?tag=v0.3.6#be59ae41a5d2ec9389bae22d54f81122b6ba55a4"
 dependencies = [
  "ethereum",
  "evm-coder-procedural",
@@ -2658,8 +2658,8 @@
 
 [[package]]
 name = "evm-coder-procedural"
-version = "0.3.1"
-source = "git+https://github.com/uniquenetwork/evm-coder?tag=v0.3.1#21e61c627f71337d6b8a03899fe8de14bfbf67aa"
+version = "0.3.6"
+source = "git+https://github.com/uniquenetwork/evm-coder?tag=v0.3.6#be59ae41a5d2ec9389bae22d54f81122b6ba55a4"
 dependencies = [
  "Inflector",
  "hex",
@@ -6489,6 +6489,7 @@
 name = "pallet-common"
 version = "0.1.14"
 dependencies = [
+ "bondrewd",
  "ethereum",
  "evm-coder",
  "frame-benchmarking",
@@ -7530,6 +7531,7 @@
  "frame-benchmarking",
  "frame-support",
  "frame-system",
+ "log",
  "pallet-balances-adapter",
  "pallet-common",
  "pallet-evm",
@@ -14097,6 +14099,7 @@
 dependencies = [
  "bondrewd",
  "derivative",
+ "evm-coder",
  "frame-support",
  "pallet-evm",
  "parity-scale-codec",
modifiedCargo.tomldiffbeforeafterboth
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@
 [workspace.dependencies]
 # Unique
 app-promotion-rpc = { path = "primitives/app_promotion_rpc", default-features = false }
-evm-coder = { git = "https://github.com/uniquenetwork/evm-coder", tag = "v0.3.1", default-features = false }
+evm-coder = { git = "https://github.com/uniquenetwork/evm-coder", tag = "v0.3.6", default-features = false, features = ['bondrewd'] }
 pallet-app-promotion = { path = "pallets/app-promotion", default-features = false }
 pallet-balances-adapter = { default-features = false, path = "pallets/balances-adapter" }
 pallet-charge-transaction = { package = "pallet-template-transaction-payment", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.43" }
modifiedpallets/common/Cargo.tomldiffbeforeafterboth
--- a/pallets/common/Cargo.toml
+++ b/pallets/common/Cargo.toml
@@ -10,6 +10,7 @@
 
 scale-info = { workspace = true }
 
+bondrewd = { version = "0.1.14", features = ["derive"], default-features = false }
 ethereum = { workspace = true }
 evm-coder = { workspace = true }
 frame-benchmarking = { workspace = true, optional = true }
modifiedpallets/common/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/common/src/benchmarking.rs
+++ b/pallets/common/src/benchmarking.rs
@@ -21,10 +21,9 @@
 use pallet_evm::account::CrossAccountId;
 use frame_benchmarking::{benchmarks, account};
 use up_data_structs::{
-	CollectionMode, CollectionFlags, CreateCollectionData, CollectionId, Property, PropertyKey,
-	PropertyValue, CollectionPermissions, NestingPermissions, AccessMode,
-	MAX_COLLECTION_NAME_LENGTH, MAX_COLLECTION_DESCRIPTION_LENGTH, MAX_TOKEN_PREFIX_LENGTH,
-	MAX_PROPERTIES_PER_ITEM,
+	CollectionMode, CreateCollectionData, CollectionId, Property, PropertyKey, PropertyValue,
+	CollectionPermissions, NestingPermissions, AccessMode, MAX_COLLECTION_NAME_LENGTH,
+	MAX_COLLECTION_DESCRIPTION_LENGTH, MAX_TOKEN_PREFIX_LENGTH, MAX_PROPERTIES_PER_ITEM,
 };
 use frame_support::{
 	traits::{Get, fungible::Balanced, Imbalance, tokens::Precision},
@@ -47,12 +46,7 @@
 		.unwrap()
 }
 pub fn create_var_data<const S: u32>(size: u32) -> BoundedVec<u8, ConstU32<S>> {
-	assert!(
-		size <= S,
-		"size ({}) should be less within bound ({})",
-		size,
-		S
-	);
+	assert!(size <= S, "size ({size}) should be less within bound ({S})",);
 	(0..size)
 		.map(|v| (v & 0xff) as u8)
 		.collect::<Vec<_>>()
@@ -81,7 +75,7 @@
 	mode: CollectionMode,
 	handler: impl FnOnce(
 		T::CrossAccountId,
-		CreateCollectionData<T::AccountId>,
+		CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError>,
 	cast: impl FnOnce(CollectionHandle<T>) -> R,
 ) -> Result<R, DispatchError> {
@@ -124,9 +118,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::NFT,
-		|owner: T::CrossAccountId, data| {
-			<Pallet<T>>::init_collection(owner.clone(), owner, data, CollectionFlags::default())
-		},
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		|h| h,
 	)
 }
modifiedpallets/common/src/dispatch.rsdiffbeforeafterboth
--- a/pallets/common/src/dispatch.rs
+++ b/pallets/common/src/dispatch.rs
@@ -9,7 +9,7 @@
 	traits::Get,
 };
 use sp_runtime::DispatchError;
-use up_data_structs::{CollectionId, CreateCollectionData, CollectionFlags};
+use up_data_structs::{CollectionId, CreateCollectionData};
 
 use crate::{pallet::Config, CommonCollectionOperations};
 
@@ -76,8 +76,7 @@
 	fn create(
 		sender: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError>;
 
 	/// Delete the collection.
modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -402,10 +402,44 @@
 		Ok(())
 	}
 
+	#[solidity(rename_selector = "setCollectionNesting")]
+	fn set_nesting(
+		&mut self,
+		caller: Caller,
+		collection_nesting_and_permissions: eth::CollectionNestingAndPermission,
+	) -> Result<()> {
+		self.consume_store_reads_and_writes(1, 1)?;
+
+		let caller = T::CrossAccountId::from_eth(caller);
+
+		let mut permissions = self.collection.permissions.clone();
+		let mut nesting = permissions.nesting().clone();
+
+		let bv = if !collection_nesting_and_permissions.restricted.is_empty() {
+			let mut bv = OwnerRestrictedSet::new();
+			for address in collection_nesting_and_permissions.restricted.iter() {
+				bv.try_insert(crate::eth::map_eth_to_id(address).ok_or_else(|| {
+					Error::Revert("Can't convert address into collection id".into())
+				})?)
+				.map_err(|_| "too many collections")?;
+			}
+			Some(bv)
+		} else {
+			None
+		};
+
+		nesting.token_owner = collection_nesting_and_permissions.token_owner;
+		nesting.collection_admin = collection_nesting_and_permissions.collection_admin;
+		nesting.restricted = bv;
+		permissions.nesting = Some(nesting);
+
+		<Pallet<T>>::update_permissions(&caller, self, permissions).map_err(dispatch_to_evm::<T>)
+	}
+
 	/// Toggle accessibility of collection nesting.
 	///
 	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	#[solidity(rename_selector = "setCollectionNesting")]
+	#[solidity(hide, rename_selector = "setCollectionNesting")]
 	fn set_nesting_bool(&mut self, caller: Caller, enable: bool) -> Result<()> {
 		self.consume_store_reads_and_writes(1, 1)?;
 
@@ -424,8 +458,8 @@
 	///
 	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
 	/// @param collections Addresses of collections that will be available for nesting.
-	#[solidity(rename_selector = "setCollectionNesting")]
-	fn set_nesting(
+	#[solidity(hide, rename_selector = "setCollectionNesting")]
+	fn set_nesting_collection_ids(
 		&mut self,
 		caller: Caller,
 		enable: bool,
@@ -464,8 +498,28 @@
 		<Pallet<T>>::update_permissions(&caller, self, permissions).map_err(dispatch_to_evm::<T>)
 	}
 
+	#[solidity(rename_selector = "collectionNesting")]
+	fn collection_nesting(&self) -> Result<eth::CollectionNestingAndPermission> {
+		let nesting = self.collection.permissions.nesting();
+
+		Ok(eth::CollectionNestingAndPermission::new(
+			nesting.token_owner,
+			nesting.collection_admin,
+			nesting
+				.restricted
+				.clone()
+				.map(|b| {
+					b.0.into_inner()
+						.iter()
+						.map(|id| crate::eth::collection_id_to_address(id.0.into()))
+						.collect()
+				})
+				.unwrap_or_default(),
+		))
+	}
+
 	/// Returns nesting for a collection
-	#[solidity(rename_selector = "collectionNestingRestrictedCollectionIds")]
+	#[solidity(hide, rename_selector = "collectionNestingRestrictedCollectionIds")]
 	fn collection_nesting_restricted_ids(&self) -> Result<eth::CollectionNesting> {
 		let nesting = self.collection.permissions.nesting();
 
@@ -480,6 +534,7 @@
 	}
 
 	/// Returns permissions for a collection
+	#[solidity(hide)]
 	fn collection_nesting_permissions(&self) -> Result<Vec<eth::CollectionNestingPermission>> {
 		let nesting = self.collection.permissions.nesting();
 		Ok(vec![
modifiedpallets/common/src/eth.rsdiffbeforeafterboth
--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -24,7 +24,8 @@
 };
 pub use pallet_evm::{Config, account::CrossAccountId};
 use sp_core::{H160, U256};
-use up_data_structs::CollectionId;
+use up_data_structs::{CollectionId, CollectionFlags};
+use pallet_evm_coder_substrate::execution::Error;
 
 // 0x17c4e6453Cc49AAAaEACA894e6D9683e00000001 - collection 1
 // TODO: Unhardcode prefix
@@ -104,10 +105,26 @@
 			sub: Default::default(),
 		}
 	}
+
+	/// Converts [`CrossAddress`] to `Option<CrossAccountId>`.
+	pub fn into_option_sub_cross_account<T>(&self) -> Result<Option<T::CrossAccountId>, Error>
+	where
+		T: pallet_evm::Config,
+		T::AccountId: From<[u8; 32]>,
+	{
+		if self.eth == Default::default() && self.sub == Default::default() {
+			Ok(None)
+		} else if self.eth == Default::default() {
+			Ok(Some(convert_uint256_to_cross_account::<T>(self.sub)))
+		} else if self.sub == Default::default() {
+			Ok(Some(T::CrossAccountId::from_eth(self.eth)))
+		} else {
+			Err(format!("All fields of cross account is non zeroed {:?}", self).into())
+		}
+	}
+
 	/// Converts [`CrossAddress`] to `CrossAccountId`.
-	pub fn into_sub_cross_account<T>(
-		&self,
-	) -> pallet_evm_coder_substrate::execution::Result<T::CrossAccountId>
+	pub fn into_sub_cross_account<T>(&self) -> Result<T::CrossAccountId, Error>
 	where
 		T: pallet_evm::Config,
 		T::AccountId: From<[u8; 32]>,
@@ -124,6 +141,19 @@
 	}
 }
 
+/// Type of tokens in collection
+#[derive(AbiCoder, Copy, Clone, Default, Debug, PartialEq)]
+#[repr(u8)]
+pub enum CollectionMode {
+	/// Nonfungible
+	#[default]
+	Nonfungible,
+	/// Fungible
+	Fungible,
+	/// Refungible
+	Refungible,
+}
+
 /// Ethereum representation of collection [`PropertyKey`](up_data_structs::PropertyKey) and [`PropertyValue`](up_data_structs::PropertyValue).
 #[derive(Debug, Default, AbiCoder)]
 pub struct Property {
@@ -144,7 +174,7 @@
 }
 
 impl TryFrom<up_data_structs::Property> for Property {
-	type Error = pallet_evm_coder_substrate::execution::Error;
+	type Error = Error;
 
 	fn try_from(from: up_data_structs::Property) -> Result<Self, Self::Error> {
 		let key = evm_coder::types::String::from_utf8(from.key.into())
@@ -155,7 +185,7 @@
 }
 
 impl TryInto<up_data_structs::Property> for Property {
-	type Error = pallet_evm_coder_substrate::execution::Error;
+	type Error = Error;
 
 	fn try_into(self) -> Result<up_data_structs::Property, Self::Error> {
 		let key = <Vec<u8>>::from(self.key)
@@ -220,17 +250,14 @@
 	pub fn has_value(&self) -> bool {
 		self.value.is_some()
 	}
-}
 
-impl TryInto<up_data_structs::CollectionLimits> for CollectionLimit {
-	type Error = pallet_evm_coder_substrate::execution::Error;
-
-	fn try_into(self) -> Result<up_data_structs::CollectionLimits, Self::Error> {
+	/// Set corresponding property in CollectionLimits struct
+	pub fn apply_limit(&self, limits: &mut up_data_structs::CollectionLimits) -> Result<(), Error> {
 		let value = self
 			.value
-			.ok_or::<Self::Error>("can't convert `None` value to boolean".into())?;
+			.ok_or::<Error>("can't convert `None` value to boolean".into())?;
 		let value = Some(value.try_into().map_err(|error| {
-			Self::Error::Revert(format!(
+			Error::Revert(format!(
 				"can't convert value to u32 \"{value}\" because: \"{error}\""
 			))
 		})?);
@@ -239,14 +266,13 @@
 			Some(value) => match value {
 				0 => Ok(Some(false)),
 				1 => Ok(Some(true)),
-				_ => Err(Self::Error::Revert(format!(
+				_ => Err(Error::Revert(format!(
 					"can't convert value to boolean \"{value}\""
 				))),
 			},
 			None => Ok(None),
 		};
 
-		let mut limits = up_data_structs::CollectionLimits::default();
 		match self.field {
 			CollectionLimitField::AccountTokenOwnership => {
 				limits.account_token_ownership_limit = value;
@@ -277,10 +303,99 @@
 				limits.transfers_enabled = convert_value_to_bool()?;
 			}
 		};
+		Ok(())
+	}
+}
+
+/// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
+#[derive(Debug, Default, AbiCoder)]
+pub struct CollectionLimitValue {
+	field: CollectionLimitField,
+	value: U256,
+}
+
+impl CollectionLimitValue {
+	/// Create [`CollectionLimitValue`] from field and value.
+	pub fn new(field: CollectionLimitField, value: u32) -> Self {
+		Self {
+			field,
+			value: value.into(),
+		}
+	}
+
+	/// Set corresponding property in CollectionLimits struct
+	pub fn apply_limit(&self, limits: &mut up_data_structs::CollectionLimits) -> Result<(), Error> {
+		let value = self.value;
+		let value: u32 = value.try_into().map_err(|error| {
+			Error::Revert(format!(
+				"can't convert value to u32 \"{value}\" because: \"{error}\""
+			))
+		})?;
+
+		let convert_value_to_bool = || match value {
+			0 => Ok(Some(false)),
+			1 => Ok(Some(true)),
+			_ => Err(Error::Revert(format!(
+				"can't convert value to boolean \"{value}\""
+			))),
+		};
+
+		match self.field {
+			CollectionLimitField::AccountTokenOwnership => {
+				limits.account_token_ownership_limit = Some(value);
+			}
+			CollectionLimitField::SponsoredDataSize => {
+				limits.sponsored_data_size = Some(value);
+			}
+			CollectionLimitField::SponsoredDataRateLimit => {
+				limits.sponsored_data_rate_limit =
+					Some(up_data_structs::SponsoringRateLimit::Blocks(value));
+			}
+			CollectionLimitField::TokenLimit => {
+				limits.token_limit = Some(value);
+			}
+			CollectionLimitField::SponsorTransferTimeout => {
+				limits.sponsor_transfer_timeout = Some(value);
+			}
+			CollectionLimitField::SponsorApproveTimeout => {
+				limits.sponsor_approve_timeout = Some(value);
+			}
+			CollectionLimitField::OwnerCanTransfer => {
+				limits.owner_can_transfer = convert_value_to_bool()?;
+			}
+			CollectionLimitField::OwnerCanDestroy => {
+				limits.owner_can_destroy = convert_value_to_bool()?;
+			}
+			CollectionLimitField::TransferEnabled => {
+				limits.transfers_enabled = convert_value_to_bool()?;
+			}
+		};
+		Ok(())
+	}
+}
+
+impl TryInto<up_data_structs::CollectionLimits> for CollectionLimit {
+	type Error = Error;
+
+	fn try_into(self) -> Result<up_data_structs::CollectionLimits, Self::Error> {
+		let mut limits = up_data_structs::CollectionLimits::default();
+		self.apply_limit(&mut limits)?;
 		Ok(limits)
 	}
 }
 
+impl FromIterator<CollectionLimitValue> for Result<up_data_structs::CollectionLimits, Error> {
+	fn from_iter<T: IntoIterator<Item = CollectionLimitValue>>(
+		iter: T,
+	) -> Result<up_data_structs::CollectionLimits, Error> {
+		let mut limits = up_data_structs::CollectionLimits::default();
+		for value in iter.into_iter() {
+			value.apply_limit(&mut limits)?;
+		}
+		Ok(limits)
+	}
+}
+
 /// Ethereum representation of `NestingPermissions` (see [`up_data_structs::NestingPermissions`]) fields as an enumeration.
 #[derive(Default, Debug, Clone, Copy, AbiCoder)]
 #[repr(u8)]
@@ -384,8 +499,7 @@
 	/// Convert vector of [`TokenPropertyPermission`] into vector of [`up_data_structs::PropertyKeyPermission`].
 	pub fn into_property_key_permissions(
 		permissions: Vec<TokenPropertyPermission>,
-	) -> pallet_evm_coder_substrate::execution::Result<Vec<up_data_structs::PropertyKeyPermission>>
-	{
+	) -> Result<Vec<up_data_structs::PropertyKeyPermission>, Error> {
 		let mut perms = Vec::new();
 
 		for TokenPropertyPermission { key, permissions } in permissions {
@@ -410,6 +524,57 @@
 	pub uri: String,
 }
 
+/// Nested collections and permissions
+#[derive(Debug, Default, AbiCoder)]
+pub struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	pub token_owner: bool,
+	/// Admin of token collection can nest tokens under token.
+	pub collection_admin: bool,
+	/// If set - only tokens from specified collections can be nested.
+	pub restricted: Vec<Address>,
+}
+
+impl CollectionNestingAndPermission {
+	/// Create [`CollectionNesting`].
+	pub fn new(token_owner: bool, collection_admin: bool, restricted: Vec<Address>) -> Self {
+		Self {
+			token_owner,
+			collection_admin,
+			restricted,
+		}
+	}
+}
+
+/// Collection properties
+#[derive(Debug, Default, AbiCoder)]
+pub struct CreateCollectionData {
+	/// Collection sponsor
+	pub pending_sponsor: CrossAddress,
+	/// Collection name
+	pub name: String,
+	/// Collection description
+	pub description: String,
+	/// Token prefix
+	pub token_prefix: String,
+	/// Token type (NFT, FT or RFT)
+	pub mode: CollectionMode,
+	/// Fungible token precision
+	pub decimals: u8,
+	/// Custom Properties
+	pub properties: Vec<Property>,
+	/// Permissions for token properties
+	pub token_property_permissions: Vec<TokenPropertyPermission>,
+	/// Collection admins
+	pub admin_list: Vec<CrossAddress>,
+	/// Nesting settings
+	pub nesting_settings: CollectionNestingAndPermission,
+	/// Collection limits
+	pub limits: Vec<CollectionLimitValue>,
+	/// Extra collection flags
+	pub flags: CollectionFlags,
+}
+
 /// Nested collections.
 #[derive(Debug, Default, AbiCoder)]
 pub struct CollectionNesting {
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -73,16 +73,15 @@
 	transactional, fail,
 };
 use up_data_structs::{
-	AccessMode, COLLECTION_NUMBER_LIMIT, Collection, RpcCollection, CollectionFlags,
-	RpcCollectionFlags, CollectionId, CreateItemData, MAX_TOKEN_PREFIX_LENGTH,
-	COLLECTION_ADMINS_LIMIT, TokenId, TokenChild, CollectionStats, MAX_TOKEN_OWNERSHIP,
-	CollectionMode, NFT_SPONSOR_TRANSFER_TIMEOUT, FUNGIBLE_SPONSOR_TRANSFER_TIMEOUT,
-	REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, MAX_SPONSOR_TIMEOUT, CUSTOM_DATA_LIMIT, CollectionLimits,
-	CreateCollectionData, SponsorshipState, CreateItemExData, SponsoringRateLimit, budget::Budget,
-	PhantomType, Property, CollectionProperties as CollectionPropertiesT, TokenProperties,
-	PropertiesPermissionMap, PropertyKey, PropertyValue, PropertyPermission, PropertiesError,
-	TokenOwnerError, PropertyKeyPermission, TokenData, TrySetProperty, PropertyScope,
-	CollectionPermissions,
+	AccessMode, COLLECTION_NUMBER_LIMIT, Collection, RpcCollection, RpcCollectionFlags,
+	CollectionId, CreateItemData, MAX_TOKEN_PREFIX_LENGTH, COLLECTION_ADMINS_LIMIT, TokenId,
+	TokenChild, CollectionStats, MAX_TOKEN_OWNERSHIP, CollectionMode, NFT_SPONSOR_TRANSFER_TIMEOUT,
+	FUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, MAX_SPONSOR_TIMEOUT,
+	CUSTOM_DATA_LIMIT, CollectionLimits, CreateCollectionData, SponsorshipState, CreateItemExData,
+	SponsoringRateLimit, budget::Budget, PhantomType, Property,
+	CollectionProperties as CollectionPropertiesT, TokenProperties, PropertiesPermissionMap,
+	PropertyKey, PropertyValue, PropertyPermission, PropertiesError, TokenOwnerError,
+	PropertyKeyPermission, TokenData, TrySetProperty, PropertyScope, CollectionPermissions,
 };
 use up_pov_estimate_rpc::PovInfo;
 
@@ -1094,9 +1093,28 @@
 	pub fn init_collection(
 		owner: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
+		ensure!(data.flags.is_allowed_for_user(), <Error<T>>::NoPermission);
+		Self::init_collection_internal(owner, payer, data)
+	}
+
+	/// Initializes the collection with ForeignCollection flag. Returns [CollectionId] on success, [DispatchError] otherwise.
+	pub fn init_foreign_collection(
+		owner: T::CrossAccountId,
+		payer: T::CrossAccountId,
+		mut data: CreateCollectionData<T::CrossAccountId>,
+	) -> Result<CollectionId, DispatchError> {
+		data.flags.foreign = true;
+		let id = Self::init_collection_internal(owner, payer, data)?;
+		Ok(id)
+	}
+
+	fn init_collection_internal(
+		owner: T::CrossAccountId,
+		payer: T::CrossAccountId,
+		data: CreateCollectionData<T::CrossAccountId>,
+	) -> Result<CollectionId, DispatchError> {
 		{
 			ensure!(
 				data.token_prefix.len() <= MAX_TOKEN_PREFIX_LENGTH as usize,
@@ -1127,7 +1145,7 @@
 			token_prefix: data.token_prefix,
 			sponsorship: data
 				.pending_sponsor
-				.map(SponsorshipState::Unconfirmed)
+				.map(|sponsor| SponsorshipState::Unconfirmed(sponsor.as_sub().clone()))
 				.unwrap_or_default(),
 			limits: data
 				.limits
@@ -1139,7 +1157,7 @@
 					Self::clamp_permissions(data.mode.clone(), &Default::default(), permissions)
 				})
 				.unwrap_or_else(|| Ok(CollectionPermissions::default()))?,
-			flags,
+			flags: data.flags,
 		};
 
 		let mut collection_properties = CollectionPropertiesT::new();
@@ -1156,6 +1174,21 @@
 
 		CollectionPropertyPermissions::<T>::insert(id, token_props_permissions);
 
+		let mut admin_amount = 0u32;
+		for admin in data.admin_list.iter() {
+			if !<IsAdmin<T>>::get((id, admin)) {
+				<IsAdmin<T>>::insert((id, admin), true);
+				admin_amount = admin_amount
+					.checked_add(1)
+					.ok_or(<Error<T>>::CollectionAdminCountExceeded)?;
+			}
+		}
+		ensure!(
+			admin_amount <= Self::collection_admins_limit(),
+			<Error<T>>::CollectionAdminCountExceeded,
+		);
+		<AdminAmount<T>>::insert(id, admin_amount);
+
 		// Take a (non-refundable) deposit of collection creation
 		{
 			let mut imbalance = <Debt<T::AccountId, <T as Config>::Currency>>::zero();
modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
--- a/pallets/foreign-assets/src/lib.rs
+++ b/pallets/foreign-assets/src/lib.rs
@@ -42,9 +42,9 @@
 	RuntimeDebug,
 };
 use frame_system::pallet_prelude::*;
-use up_data_structs::{CollectionMode};
-use pallet_fungible::{Pallet as PalletFungible};
-use scale_info::{TypeInfo};
+use up_data_structs::CollectionMode;
+use pallet_fungible::Pallet as PalletFungible;
+use scale_info::TypeInfo;
 use sp_runtime::{
 	traits::{One, Zero},
 	ArithmeticError,
@@ -304,7 +304,7 @@
 				.collect::<Vec<u16>>();
 			description.append(&mut name.clone());
 
-			let data: CreateCollectionData<T::AccountId> = CreateCollectionData {
+			let data: CreateCollectionData<T::CrossAccountId> = CreateCollectionData {
 				name: name.try_into().unwrap(),
 				description: description.try_into().unwrap(),
 				mode: CollectionMode::Fungible(md.decimals),
modifiedpallets/fungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/fungible/src/benchmarking.rs
+++ b/pallets/fungible/src/benchmarking.rs
@@ -31,9 +31,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::Fungible(0),
-		|owner: T::CrossAccountId, data| {
-			<Pallet<T>>::init_collection(owner.clone(), owner, data, Default::default())
-		},
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		FungibleHandle::cast,
 	)
 }
modifiedpallets/fungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/fungible/src/lib.rs
+++ b/pallets/fungible/src/lib.rs
@@ -87,8 +87,8 @@
 };
 use pallet_evm::account::CrossAccountId;
 use up_data_structs::{
-	AccessMode, CollectionId, CollectionFlags, TokenId, CreateCollectionData,
-	mapping::TokenAddressMapping, budget::Budget, PropertyKey, Property,
+	AccessMode, CollectionId, TokenId, CreateCollectionData, mapping::TokenAddressMapping,
+	budget::Budget, PropertyKey, Property,
 };
 use pallet_common::{
 	Error as CommonError, Event as CommonEvent, Pallet as PalletCommon,
@@ -219,28 +219,18 @@
 	pub fn init_collection(
 		owner: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
-		<PalletCommon<T>>::init_collection(owner, payer, data, flags)
+		<PalletCommon<T>>::init_collection(owner, payer, data)
 	}
 
 	/// Initializes the collection with ForeignCollection flag. Returns [CollectionId] on success, [DispatchError] otherwise.
 	pub fn init_foreign_collection(
 		owner: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
-		let id = <PalletCommon<T>>::init_collection(
-			owner,
-			payer,
-			data,
-			CollectionFlags {
-				foreign: true,
-				..Default::default()
-			},
-		)?;
-		Ok(id)
+		<PalletCommon<T>>::init_foreign_collection(owner, payer, data)
 	}
 
 	/// Destroys a collection.
modifiedpallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/fungible/src/stubs/UniqueFungible.soldiffbeforeafterboth
--- a/pallets/fungible/src/stubs/UniqueFungible.sol
+++ b/pallets/fungible/src/stubs/UniqueFungible.sol
@@ -18,7 +18,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 contract Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -230,47 +230,63 @@
 	// 	dummy = 0;
 	// }
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) public {
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) public {
 		require(false, stub_error);
-		enable;
+		collectionNestingAndPermissions;
 		dummy = 0;
 	}
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) public {
-		require(false, stub_error);
-		enable;
-		collections;
-		dummy = 0;
-	}
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	dummy = 0;
+	// }
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	collections;
+	// 	dummy = 0;
+	// }
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() public view returns (CollectionNestingAndPermission memory) {
 		require(false, stub_error);
 		dummy;
-		return CollectionNesting(false, new uint256[](0));
+		return CollectionNestingAndPermission(false, false, new address[](0));
 	}
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
-		require(false, stub_error);
-		dummy;
-		return new CollectionNestingPermission[](0);
-	}
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return CollectionNesting(false,new uint256[](0));
+	// }
+
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return new CollectionNestingPermission[](0);
+	// }
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -469,6 +485,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -57,9 +57,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::NFT,
-		|owner: T::CrossAccountId, data| {
-			<Pallet<T>>::init_collection(owner.clone(), owner, data, Default::default())
-		},
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		NonfungibleHandle::cast,
 	)
 }
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -100,10 +100,10 @@
 	dispatch::{PostDispatchInfo, Pays},
 };
 use up_data_structs::{
-	AccessMode, CollectionId, CollectionFlags, CustomDataLimit, TokenId, CreateCollectionData,
-	CreateNftExData, mapping::TokenAddressMapping, budget::Budget, Property, PropertyKey,
-	PropertyValue, PropertyKeyPermission, PropertyScope, TrySetProperty, TokenChild,
-	AuxPropertyValue, PropertiesPermissionMap, TokenProperties as TokenPropertiesT,
+	AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,
+	mapping::TokenAddressMapping, budget::Budget, Property, PropertyKey, PropertyValue,
+	PropertyKeyPermission, PropertyScope, TrySetProperty, TokenChild, AuxPropertyValue,
+	PropertiesPermissionMap, TokenProperties as TokenPropertiesT,
 };
 use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
 use pallet_common::{
@@ -424,10 +424,9 @@
 	pub fn init_collection(
 		owner: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
-		<PalletCommon<T>>::init_collection(owner, payer, data, flags)
+		<PalletCommon<T>>::init_collection(owner, payer, data)
 	}
 
 	/// Destroy NFT collection
modifiedpallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/nonfungible/src/stubs/UniqueNFT.soldiffbeforeafterboth
--- a/pallets/nonfungible/src/stubs/UniqueNFT.sol
+++ b/pallets/nonfungible/src/stubs/UniqueNFT.sol
@@ -165,7 +165,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 contract Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -377,47 +377,63 @@
 	// 	dummy = 0;
 	// }
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) public {
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) public {
 		require(false, stub_error);
-		enable;
+		collectionNestingAndPermissions;
 		dummy = 0;
 	}
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) public {
-		require(false, stub_error);
-		enable;
-		collections;
-		dummy = 0;
-	}
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	dummy = 0;
+	// }
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	collections;
+	// 	dummy = 0;
+	// }
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() public view returns (CollectionNestingAndPermission memory) {
 		require(false, stub_error);
 		dummy;
-		return CollectionNesting(false, new uint256[](0));
+		return CollectionNestingAndPermission(false, false, new address[](0));
 	}
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
-		require(false, stub_error);
-		dummy;
-		return new CollectionNestingPermission[](0);
-	}
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return CollectionNesting(false,new uint256[](0));
+	// }
+
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return new CollectionNestingPermission[](0);
+	// }
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -616,6 +632,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedpallets/refungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -61,9 +61,7 @@
 	create_collection_raw(
 		owner,
 		CollectionMode::ReFungible,
-		|owner: T::CrossAccountId, data| {
-			<Pallet<T>>::init_collection(owner.clone(), owner, data, Default::default())
-		},
+		|owner: T::CrossAccountId, data| <Pallet<T>>::init_collection(owner.clone(), owner, data),
 		RefungibleHandle::cast,
 	)
 }
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -104,11 +104,10 @@
 use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};
 use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};
 use up_data_structs::{
-	AccessMode, budget::Budget, CollectionId, CollectionFlags, CreateCollectionData,
-	mapping::TokenAddressMapping, MAX_REFUNGIBLE_PIECES, Property, PropertyKey,
-	PropertyKeyPermission, PropertyScope, PropertyValue, TokenId, TrySetProperty,
-	PropertiesPermissionMap, CreateRefungibleExMultipleOwners, TokenOwnerError,
-	TokenProperties as TokenPropertiesT,
+	AccessMode, budget::Budget, CollectionId, CreateCollectionData, mapping::TokenAddressMapping,
+	MAX_REFUNGIBLE_PIECES, Property, PropertyKey, PropertyKeyPermission, PropertyScope,
+	PropertyValue, TokenId, TrySetProperty, PropertiesPermissionMap,
+	CreateRefungibleExMultipleOwners, TokenOwnerError, TokenProperties as TokenPropertiesT,
 };
 
 pub use pallet::*;
@@ -334,10 +333,9 @@
 	pub fn init_collection(
 		owner: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
-		<PalletCommon<T>>::init_collection(owner, payer, data, flags)
+		<PalletCommon<T>>::init_collection(owner, payer, data)
 	}
 
 	/// Destroy RFT collection
modifiedpallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/refungible/src/stubs/UniqueRefungible.soldiffbeforeafterboth
--- a/pallets/refungible/src/stubs/UniqueRefungible.sol
+++ b/pallets/refungible/src/stubs/UniqueRefungible.sol
@@ -165,7 +165,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 contract Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -377,47 +377,63 @@
 	// 	dummy = 0;
 	// }
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) public {
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) public {
 		require(false, stub_error);
-		enable;
+		collectionNestingAndPermissions;
 		dummy = 0;
 	}
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) public {
-		require(false, stub_error);
-		enable;
-		collections;
-		dummy = 0;
-	}
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	dummy = 0;
+	// }
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) public {
+	// 	require(false, stub_error);
+	// 	enable;
+	// 	collections;
+	// 	dummy = 0;
+	// }
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() public view returns (CollectionNestingAndPermission memory) {
 		require(false, stub_error);
 		dummy;
-		return CollectionNesting(false, new uint256[](0));
+		return CollectionNestingAndPermission(false, false, new address[](0));
 	}
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
-		require(false, stub_error);
-		dummy;
-		return new CollectionNestingPermission[](0);
-	}
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() public view returns (CollectionNesting memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return CollectionNesting(false,new uint256[](0));
+	// }
+
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() public view returns (CollectionNestingPermission[] memory) {
+	// 	require(false, stub_error);
+	// 	dummy;
+	// 	return new CollectionNestingPermission[](0);
+	// }
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -616,6 +632,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedpallets/structure/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/structure/src/benchmarking.rs
+++ b/pallets/structure/src/benchmarking.rs
@@ -40,7 +40,6 @@
 				mode: CollectionMode::NFT,
 				..Default::default()
 			},
-			CollectionFlags::default(),
 		)?;
 		let dispatch = T::CollectionDispatch::dispatch(CollectionId(1))?;
 		let dispatch = dispatch.as_dyn();
modifiedpallets/unique/Cargo.tomldiffbeforeafterboth
--- a/pallets/unique/Cargo.toml
+++ b/pallets/unique/Cargo.toml
@@ -47,6 +47,7 @@
 frame-benchmarking = { workspace = true, optional = true }
 frame-support = { workspace = true }
 frame-system = { workspace = true }
+log = { workspace = true }
 pallet-balances-adapter = { workspace = true }
 pallet-common = { workspace = true }
 pallet-evm = { workspace = true }
modifiedpallets/unique/src/eth/mod.rsdiffbeforeafterboth
--- a/pallets/unique/src/eth/mod.rs
+++ b/pallets/unique/src/eth/mod.rs
@@ -15,18 +15,16 @@
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
 //! Implementation of CollectionHelpers contract.
-
+//!
 use core::marker::PhantomData;
 use ethereum as _;
 use evm_coder::{abi::AbiType, generate_stubgen, solidity_interface, types::*};
-use frame_support::traits::Get;
-use crate::Pallet;
-
+use frame_support::{BoundedVec, traits::Get};
 use pallet_common::{
 	CollectionById,
 	dispatch::CollectionDispatch,
 	erc::{CollectionHelpersEvents, static_property::key},
-	eth::{map_eth_to_id, collection_id_to_address},
+	eth::{self, map_eth_to_id, collection_id_to_address},
 	Pallet as PalletCommon, CollectionHandle,
 };
 use pallet_evm::{account::CrossAccountId, OnMethodCall, PrecompileHandle, PrecompileResult};
@@ -36,13 +34,13 @@
 	frontier_contract,
 };
 use up_data_structs::{
-	CollectionDescription, CollectionMode, CollectionName, CollectionTokenPrefix,
-	CreateCollectionData,
+	CollectionDescription, CollectionMode, CollectionName, CollectionPermissions,
+	CollectionTokenPrefix, CreateCollectionData, NestingPermissions,
 };
 
-use crate::{weights::WeightInfo, Config, SelfWeightOf};
+use crate::{weights::WeightInfo, Config, Pallet, SelfWeightOf};
 
-use alloc::format;
+use alloc::{format, collections::BTreeSet};
 use sp_std::vec::Vec;
 
 frontier_contract! {
@@ -113,9 +111,8 @@
 	let collection_helpers_address =
 		T::CrossAccountId::from_eth(<T as pallet_common::Config>::ContractAddress::get());
 
-	let collection_id =
-		T::CollectionDispatch::create(caller, collection_helpers_address, data, Default::default())
-			.map_err(pallet_evm_coder_substrate::dispatch_to_evm::<T>)?;
+	let collection_id = T::CollectionDispatch::create(caller, collection_helpers_address, data)
+		.map_err(pallet_evm_coder_substrate::dispatch_to_evm::<T>)?;
 	let address = pallet_common::eth::collection_id_to_address(collection_id);
 	Ok(address)
 }
@@ -140,7 +137,119 @@
 impl<T> EvmCollectionHelpers<T>
 where
 	T: Config + pallet_common::Config + pallet_nonfungible::Config + pallet_refungible::Config,
+	T::AccountId: From<[u8; 32]>,
 {
+/*
+	/// Create a collection
+	/// @return address Address of the newly created collection
+	#[weight(<SelfWeightOf<T>>::create_collection())]
+	#[solidity(rename_selector = "createCollection")]
+	fn create_collection(
+		&mut self,
+		caller: Caller,
+		value: Value,
+		data: eth::CreateCollectionData,
+	) -> Result<Address> {
+		let (caller, name, description, token_prefix) =
+			convert_data::<T>(caller, data.name, data.description, data.token_prefix)?;
+		if data.mode != eth::CollectionMode::Fungible && data.decimals != 0 {
+			return Err("decimals are only supported for NFT and RFT collections".into());
+		}
+		let mode = match data.mode {
+			eth::CollectionMode::Fungible => CollectionMode::Fungible(data.decimals),
+			eth::CollectionMode::Nonfungible => CollectionMode::NFT,
+			eth::CollectionMode::Refungible => CollectionMode::ReFungible,
+		};
+
+		let properties: BoundedVec<_, _> = data
+			.properties
+			.into_iter()
+			.map(eth::Property::try_into)
+			.collect::<Result<Vec<_>>>()?
+			.try_into()
+			.map_err(|_| "too many properties")?;
+
+		let token_property_permissions =
+			eth::TokenPropertyPermission::into_property_key_permissions(
+				data.token_property_permissions,
+			)?
+			.try_into()
+			.map_err(|_| "too many property permissions")?;
+
+		let limits = if !data.limits.is_empty() {
+			Some(
+				data.limits
+					.into_iter()
+					.collect::<Result<up_data_structs::CollectionLimits>>()?,
+			)
+		} else {
+			None
+		};
+
+		let pending_sponsor = data.pending_sponsor.into_option_sub_cross_account::<T>()?;
+
+		let restricted = if !data.nesting_settings.restricted.is_empty() {
+			Some(
+				data.nesting_settings
+					.restricted
+					.iter()
+					.map(map_eth_to_id)
+					.collect::<Option<BTreeSet<_>>>()
+					.ok_or("can't convert address into collection id")?
+					.try_into()
+					.map_err(|_| "too many collections")?,
+			)
+		} else {
+			None
+		};
+
+		let admin_list = data
+			.admin_list
+			.into_iter()
+			.map(|admin| admin.into_sub_cross_account::<T>())
+			.collect::<Result<Vec<_>>>()?;
+
+		let flags = data.flags;
+		if !flags.is_allowed_for_user() {
+			return Err("internal flags were used".into());
+		}
+
+		let data = CreateCollectionData {
+			name,
+			mode,
+			description,
+			token_prefix,
+			properties,
+			token_property_permissions,
+			limits,
+			pending_sponsor,
+			access: None,
+			permissions: Some(CollectionPermissions {
+				access: None,
+				mint_mode: None,
+				nesting: Some(NestingPermissions {
+					token_owner: data.nesting_settings.token_owner,
+					collection_admin: data.nesting_settings.collection_admin,
+					restricted,
+					#[cfg(feature = "runtime-benchmarks")]
+					permissive: true,
+				}),
+			}),
+			admin_list,
+			flags,
+		};
+		check_sent_amount_equals_collection_creation_price::<T>(value)?;
+		let collection_helpers_address =
+			T::CrossAccountId::from_eth(<T as pallet_common::Config>::ContractAddress::get());
+
+		let collection_id = T::CollectionDispatch::create(caller, collection_helpers_address, data)
+			.map_err(dispatch_to_evm::<T>)?;
+
+		let address = pallet_common::eth::collection_id_to_address(collection_id);
+		Ok(address)
+	}
+*/
+
 	/// Create an NFT collection
 	/// @param name Name of the collection
 	/// @param description Informative description of the collection
@@ -168,13 +277,8 @@
 		check_sent_amount_equals_collection_creation_price::<T>(value)?;
 		let collection_helpers_address =
 			T::CrossAccountId::from_eth(<T as pallet_common::Config>::ContractAddress::get());
-		let collection_id = T::CollectionDispatch::create(
-			caller,
-			collection_helpers_address,
-			data,
-			Default::default(),
-		)
-		.map_err(dispatch_to_evm::<T>)?;
+		let collection_id = T::CollectionDispatch::create(caller, collection_helpers_address, data)
+			.map_err(dispatch_to_evm::<T>)?;
 
 		let address = pallet_common::eth::collection_id_to_address(collection_id);
 		Ok(address)
@@ -387,6 +491,8 @@
 pub struct CollectionHelpersOnMethodCall<T: Config>(PhantomData<*const T>);
 impl<T: Config + pallet_nonfungible::Config + pallet_refungible::Config> OnMethodCall<T>
 	for CollectionHelpersOnMethodCall<T>
+where
+	T::AccountId: From<[u8; 32]>,
 {
 	fn is_reserved(contract: &sp_core::H160) -> bool {
 		contract == &T::ContractAddress::get()
modifiedpallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth
--- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol
+++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol
@@ -25,8 +25,19 @@
 }
 
 /// @title Contract, which allows users to operate with collections
-/// @dev the ERC-165 identifier for this interface is 0xe65011aa
+/// @dev the ERC-165 identifier for this interface is 0x4135fff1
 contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
+	/// Create a collection
+	/// @return address Address of the newly created collection
+	/// @dev EVM selector for this function is: 0xa765ee5b,
+	///  or in textual repr: createCollection(((address,uint256),string,string,string,uint8,uint8,(string,bytes)[],(string,(uint8,bool)[])[],(address,uint256)[],(bool,bool,address[]),(uint8,uint256)[],uint8))
+	function createCollection(CreateCollectionData memory data) public payable returns (address) {
+		require(false, stub_error);
+		data;
+		dummy = 0;
+		return 0x0000000000000000000000000000000000000000;
+	}
+
 	/// Create an NFT collection
 	/// @param name Name of the collection
 	/// @param description Informative description of the collection
@@ -156,3 +167,135 @@
 		return 0;
 	}
 }
+
+/// Collection properties
+struct CreateCollectionData {
+	/// Collection sponsor
+	CrossAddress pending_sponsor;
+	/// Collection name
+	string name;
+	/// Collection description
+	string description;
+	/// Token prefix
+	string token_prefix;
+	/// Token type (NFT, FT or RFT)
+	CollectionMode mode;
+	/// Fungible token precision
+	uint8 decimals;
+	/// Custom Properties
+	Property[] properties;
+	/// Permissions for token properties
+	TokenPropertyPermission[] token_property_permissions;
+	/// Collection admins
+	CrossAddress[] admin_list;
+	/// Nesting settings
+	CollectionNestingAndPermission nesting_settings;
+	/// Collection limits
+	CollectionLimitValue[] limits;
+	/// Extra collection flags
+	CollectionFlags flags;
+}
+
+/// Cross account struct
+type CollectionFlags is uint8;
+
+library CollectionFlagsLib {
+	/// Tokens in foreign collections can be transferred, but not burnt
+	CollectionFlags constant foreignField = CollectionFlags.wrap(128);
+	/// Supports ERC721Metadata
+	CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
+	/// External collections can't be managed using `unique` api
+	CollectionFlags constant externalField = CollectionFlags.wrap(1);
+
+	/// Reserved bits
+	function reservedField(uint8 value) public pure returns (CollectionFlags) {
+		require(value < 1 << 5, "out of bound value");
+		return CollectionFlags.wrap(value << 1);
+	}
+}
+
+/// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
+struct CollectionLimitValue {
+	CollectionLimitField field;
+	uint256 value;
+}
+
+/// [`CollectionLimits`](up_data_structs::CollectionLimits) fields representation for EVM.
+enum CollectionLimitField {
+	/// How many tokens can a user have on one account.
+	AccountTokenOwnership,
+	/// How many bytes of data are available for sponsorship.
+	SponsoredDataSize,
+	/// In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
+	SponsoredDataRateLimit,
+	/// How many tokens can be mined into this collection.
+	TokenLimit,
+	/// Timeouts for transfer sponsoring.
+	SponsorTransferTimeout,
+	/// Timeout for sponsoring an approval in passed blocks.
+	SponsorApproveTimeout,
+	/// Whether the collection owner of the collection can send tokens (which belong to other users).
+	OwnerCanTransfer,
+	/// Can the collection owner burn other people's tokens.
+	OwnerCanDestroy,
+	/// Is it possible to send tokens from this collection between users.
+	TransferEnabled
+}
+
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
+/// Cross account struct
+struct CrossAddress {
+	address eth;
+	uint256 sub;
+}
+
+/// Ethereum representation of Token Property Permissions.
+struct TokenPropertyPermission {
+	/// Token property key.
+	string key;
+	/// Token property permissions.
+	PropertyPermission[] permissions;
+}
+
+/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) as an key and value.
+struct PropertyPermission {
+	/// TokenPermission field.
+	TokenPermissionField code;
+	/// TokenPermission value.
+	bool value;
+}
+
+/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
+enum TokenPermissionField {
+	/// Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
+	Mutable,
+	/// Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
+	TokenOwner,
+	/// Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
+	CollectionAdmin
+}
+
+/// Ethereum representation of collection [`PropertyKey`](up_data_structs::PropertyKey) and [`PropertyValue`](up_data_structs::PropertyValue).
+struct Property {
+	string key;
+	bytes value;
+}
+
+/// Type of tokens in collection
+enum CollectionMode {
+	/// Fungible
+	Fungible,
+	/// Nonfungible
+	Nonfungible,
+	/// Refungible
+	Refungible
+}
modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -365,7 +365,7 @@
 			token_prefix: BoundedVec<u8, ConstU32<MAX_TOKEN_PREFIX_LENGTH>>,
 			mode: CollectionMode,
 		) -> DispatchResult {
-			let data: CreateCollectionData<T::AccountId> = CreateCollectionData {
+			let data: CreateCollectionData<T::CrossAccountId> = CreateCollectionData {
 				name: collection_name,
 				description: collection_description,
 				token_prefix,
@@ -390,14 +390,13 @@
 		#[pallet::weight(<SelfWeightOf<T>>::create_collection())]
 		pub fn create_collection_ex(
 			origin: OriginFor<T>,
-			data: CreateCollectionData<T::AccountId>,
+			data: CreateCollectionData<T::CrossAccountId>,
 		) -> DispatchResult {
 			let sender = ensure_signed(origin)?;
 
 			// =========
 			let sender = T::CrossAccountId::from_sub(sender);
-			let _id =
-				T::CollectionDispatch::create(sender.clone(), sender, data, Default::default())?;
+			let _id = T::CollectionDispatch::create(sender.clone(), sender, data)?;
 
 			Ok(())
 		}
modifiedprimitives/data-structs/Cargo.tomldiffbeforeafterboth
--- a/primitives/data-structs/Cargo.toml
+++ b/primitives/data-structs/Cargo.toml
@@ -22,6 +22,7 @@
 sp-std = { workspace = true }
 bondrewd = { version = "0.1.14", features = ["derive"], default-features = false }
 struct-versioning = { workspace = true }
+evm-coder = { workspace = true }
 
 [features]
 default = ["std"]
modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -32,11 +32,13 @@
 
 use sp_core::U256;
 use sp_runtime::{ArithmeticError, sp_std::prelude::Vec};
+use sp_std::collections::btree_set::BTreeSet;
 use codec::{Decode, Encode, EncodeLike, MaxEncodedLen};
-use bondrewd::Bitfields;
 use frame_support::{BoundedVec, traits::ConstU32};
 use derivative::Derivative;
 use scale_info::TypeInfo;
+use evm_coder::AbiCoderFlags;
+use bondrewd::Bitfields;
 
 mod bondrewd_codec;
 mod bounded;
@@ -163,6 +165,14 @@
 	}
 }
 
+impl Deref for CollectionId {
+	type Target = u32;
+
+	fn deref(&self) -> &Self::Target {
+		&self.0
+	}
+}
+
 /// Token id.
 #[derive(
 	Encode,
@@ -350,7 +360,7 @@
 pub type CollectionDescription = BoundedVec<u16, ConstU32<MAX_COLLECTION_DESCRIPTION_LENGTH>>;
 pub type CollectionTokenPrefix = BoundedVec<u8, ConstU32<MAX_TOKEN_PREFIX_LENGTH>>;
 
-#[derive(Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]
+#[derive(AbiCoderFlags, Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]
 #[bondrewd(enforce_bytes = 1)]
 pub struct CollectionFlags {
 	/// Tokens in foreign collections can be transferred, but not burnt
@@ -362,12 +372,18 @@
 	/// External collections can't be managed using `unique` api
 	#[bondrewd(bits = "7..8")]
 	pub external: bool,
-
-	#[bondrewd(reserve, bits = "2..7")]
+	/// Reserved flags
+	#[bondrewd(bits = "2..7")]
 	pub reserved: u8,
 }
 bondrewd_codec!(CollectionFlags);
 
+impl CollectionFlags {
+	pub fn is_allowed_for_user(self) -> bool {
+		!self.foreign && !self.external && self.reserved == 0
+	}
+}
+
 /// Base structure for represent collection.
 ///
 /// Used to provide basic functionality for all types of collections.
@@ -545,7 +561,7 @@
 /// All fields are wrapped in [`Option`], where `None` means chain default.
 #[derive(Encode, Decode, Clone, PartialEq, TypeInfo, Derivative, MaxEncodedLen)]
 #[derivative(Debug, Default(bound = ""))]
-pub struct CreateCollectionData<AccountId> {
+pub struct CreateCollectionData<CrossAccountId> {
 	/// Collection mode.
 	#[derivative(Default(value = "CollectionMode::NFT"))]
 	pub mode: CollectionMode,
@@ -562,9 +578,6 @@
 	/// Token prefix.
 	pub token_prefix: CollectionTokenPrefix,
 
-	/// Pending collection sponsor.
-	pub pending_sponsor: Option<AccountId>,
-
 	/// Collection limits.
 	pub limits: Option<CollectionLimits>,
 
@@ -576,6 +589,13 @@
 
 	/// Collection properties.
 	pub properties: CollectionPropertiesVec,
+
+	pub admin_list: Vec<CrossAccountId>,
+
+	/// Pending collection sponsor.
+	pub pending_sponsor: Option<CrossAccountId>,
+
+	pub flags: CollectionFlags,
 }
 
 /// Bounded vector of properties permissions. Max length is [`MAX_PROPERTIES_PER_ITEM`].
@@ -833,6 +853,14 @@
 	}
 }
 
+impl TryFrom<BTreeSet<CollectionId>> for OwnerRestrictedSet {
+	type Error = ();
+
+	fn try_from(value: BTreeSet<CollectionId>) -> Result<Self, Self::Error> {
+		Ok(Self(value.try_into()?))
+	}
+}
+
 /// Part of collection permissions, if set, defines who is able to nest tokens into other tokens.
 #[derive(Encode, Decode, Clone, PartialEq, TypeInfo, MaxEncodedLen, Derivative)]
 #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
modifiedruntime/common/dispatch.rsdiffbeforeafterboth
--- a/runtime/common/dispatch.rs
+++ b/runtime/common/dispatch.rs
@@ -25,14 +25,14 @@
 };
 pub use pallet_common::dispatch::CollectionDispatch;
 use pallet_fungible::{Pallet as PalletFungible, FungibleHandle};
-use pallet_balances_adapter::{NativeFungibleHandle};
+use pallet_balances_adapter::NativeFungibleHandle;
 use pallet_nonfungible::{Pallet as PalletNonfungible, NonfungibleHandle};
 use pallet_refungible::{
 	Pallet as PalletRefungible, RefungibleHandle, erc_token::RefungibleTokenHandle,
 };
 use up_data_structs::{
 	CollectionMode, CreateCollectionData, MAX_DECIMAL_POINTS, mapping::TokenAddressMapping,
-	CollectionId, CollectionFlags,
+	CollectionId,
 };
 
 #[cfg(not(feature = "refungible"))]
@@ -72,26 +72,21 @@
 	fn create(
 		sender: T::CrossAccountId,
 		payer: T::CrossAccountId,
-		data: CreateCollectionData<T::AccountId>,
-		flags: CollectionFlags,
+		data: CreateCollectionData<T::CrossAccountId>,
 	) -> Result<CollectionId, DispatchError> {
 		let id = match data.mode {
-			CollectionMode::NFT => {
-				<PalletNonfungible<T>>::init_collection(sender, payer, data, flags)?
-			}
+			CollectionMode::NFT => <PalletNonfungible<T>>::init_collection(sender, payer, data)?,
 			CollectionMode::Fungible(decimal_points) => {
 				// check params
 				ensure!(
 					decimal_points <= MAX_DECIMAL_POINTS,
 					pallet_unique::Error::<T>::CollectionDecimalPointLimitExceeded
 				);
-				<PalletFungible<T>>::init_collection(sender, payer, data, flags)?
+				<PalletFungible<T>>::init_collection(sender, payer, data)?
 			}
 
 			#[cfg(feature = "refungible")]
-			CollectionMode::ReFungible => {
-				<PalletRefungible<T>>::init_collection(sender, payer, data, flags)?
-			}
+			CollectionMode::ReFungible => <PalletRefungible<T>>::init_collection(sender, payer, data)?,
 
 			#[cfg(not(feature = "refungible"))]
 			CollectionMode::ReFungible => return unsupported!(T),
modifiedruntime/common/ethereum/sponsoring.rsdiffbeforeafterboth
--- a/runtime/common/ethereum/sponsoring.rs
+++ b/runtime/common/ethereum/sponsoring.rs
@@ -234,6 +234,7 @@
 			| CollectionOwner
 			| CollectionAdmins
 			| CollectionLimits
+			| CollectionNesting
 			| CollectionNestingRestrictedIds
 			| CollectionNestingPermissions
 			| UniqueCollectionType => None,
@@ -249,6 +250,7 @@
 			| RemoveCollectionAdmin { .. }
 			| SetNestingBool { .. }
 			| SetNesting { .. }
+			| SetNestingCollectionIds { .. }
 			| SetCollectionAccess { .. }
 			| SetCollectionMintMode { .. }
 			| SetOwner { .. }
modifiedtests/src/benchmarks/opsFee/index.tsdiffbeforeafterboth
--- a/tests/src/benchmarks/opsFee/index.ts
+++ b/tests/src/benchmarks/opsFee/index.ts
@@ -1,6 +1,6 @@
 import {EthUniqueHelper, usingEthPlaygrounds} from '../../eth/util';
 import {readFile} from 'fs/promises';
-import {CollectionLimitField,  TokenPermissionField} from '../../eth/util/playgrounds/types';
+import {CollectionLimitField,  CreateCollectionData,  TokenPermissionField} from '../../eth/util/playgrounds/types';
 import {IKeyringPair} from '@polkadot/types/types';
 import {UniqueFTCollection, UniqueNFTCollection} from '../../util/playgrounds/unique';
 import {Contract} from 'web3-eth-contract';
@@ -399,7 +399,7 @@
     () => collection.setLimits(donor, {accountTokenOwnershipLimit: 1000}),
   )));
 
-  const {collectionAddress} = await helper.eth.createCollection('nft', ethSigner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(ethSigner, new CreateCollectionData('A', 'B', 'C', 'nft')).send();
   const collectionWithEthOwner = await helper.ethNativeContract.collection(collectionAddress, 'nft', ethSigner, true);
 
 
@@ -775,7 +775,7 @@
     () => collection.setLimits(donor, {accountTokenOwnershipLimit: 1000}),
   )));
 
-  const {collectionAddress} = await helper.eth.createCollection('nft', ethSigner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(ethSigner, new CreateCollectionData('A', 'B', 'C', 'nft')).send();
   const collectionWithEthOwner = await helper.ethNativeContract.collection(collectionAddress, 'nft', ethSigner, true);
 
 
modifiedtests/src/createCollection.test.tsdiffbeforeafterboth
--- a/tests/src/createCollection.test.ts
+++ b/tests/src/createCollection.test.ts
@@ -16,7 +16,7 @@
 
 import {IKeyringPair} from '@polkadot/types/types';
 import {usingPlaygrounds, expect, itSub, Pallets} from './util';
-import {ICollectionCreationOptions, IProperty} from './util/playgrounds/types';
+import {CollectionFlag, ICollectionCreationOptions, IProperty} from './util/playgrounds/types';
 import {UniqueHelper} from './util/playgrounds/unique';
 
 async function mintCollectionHelper(helper: UniqueHelper, signer: IKeyringPair, options: ICollectionCreationOptions, type?: 'nft' | 'fungible' | 'refungible') {
@@ -36,6 +36,16 @@
   if(options.properties) {
     expect(data?.raw.properties).to.be.deep.equal(options.properties);
   }
+  if(options.adminList) {
+    expect(data?.admins).to.be.deep.equal(options.adminList);
+  }
+
+  if(options.flags) {
+    if((options.flags[0] & 64) != 0)
+      expect(data?.raw.flags.erc721metadata).to.be.true;
+    if((options.flags[0] & 128) != 0)
+      expect(data?.raw.flags.foreign).to.be.false;
+  }
 
   if(options.tokenPropertyPermissions) {
     expect(data?.raw.tokenPropertyPermissions).to.be.deep.equal(options.tokenPropertyPermissions);
@@ -46,11 +56,12 @@
 
 describe('integration test: ext. createCollection():', () => {
   let alice: IKeyringPair;
+  let bob: IKeyringPair;
 
   before(async () => {
     await usingPlaygrounds(async (helper, privateKey) => {
       const donor = await privateKey({url: import.meta.url});
-      [alice] = await helper.arrange.createAccounts([100n], donor);
+      [alice, bob] = await helper.arrange.createAccounts([100n, 100n], donor);
     });
   });
   itSub('Create new NFT collection', async ({helper}) => {
@@ -82,6 +93,30 @@
     }, 'nft');
   });
 
+  itSub('create new collection with admin', async ({helper}) => {
+    await mintCollectionHelper(helper, alice, {
+      name: 'name', description: 'descr', tokenPrefix: 'COL',
+      adminList: [{Substrate: bob.address}],
+    }, 'nft');
+  });
+
+  itSub('create new collection with flags', async ({helper}) => {
+    await mintCollectionHelper(helper, alice, {
+      name: 'name', description: 'descr', tokenPrefix: 'COL',
+      flags: [CollectionFlag.Erc721metadata],
+    }, 'nft');
+
+    await mintCollectionHelper(helper, alice, {
+      name: 'name', description: 'descr', tokenPrefix: 'COL',
+      flags: [CollectionFlag.Foreign],
+    }, 'nft');
+
+    await mintCollectionHelper(helper, alice, {
+      name: 'name', description: 'descr', tokenPrefix: 'COL',
+      flags: [CollectionFlag.Erc721metadata, CollectionFlag.Foreign],
+    }, 'nft');
+  });
+
   itSub('Create new collection with extra fields', async ({helper}) => {
     const collection = await mintCollectionHelper(helper, alice, {name: 'name', description: 'descr', tokenPrefix: 'COL'}, 'fungible');
     await collection.setPermissions(alice, {access: 'AllowList'});
modifiedtests/src/eth/abi/collectionHelpers.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/collectionHelpers.json
+++ b/tests/src/eth/abi/collectionHelpers.json
@@ -75,6 +75,118 @@
   },
   {
     "inputs": [
+      {
+        "components": [
+          {
+            "components": [
+              { "internalType": "address", "name": "eth", "type": "address" },
+              { "internalType": "uint256", "name": "sub", "type": "uint256" }
+            ],
+            "internalType": "struct CrossAddress",
+            "name": "pending_sponsor",
+            "type": "tuple"
+          },
+          { "internalType": "string", "name": "name", "type": "string" },
+          { "internalType": "string", "name": "description", "type": "string" },
+          {
+            "internalType": "string",
+            "name": "token_prefix",
+            "type": "string"
+          },
+          {
+            "internalType": "enum CollectionMode",
+            "name": "mode",
+            "type": "uint8"
+          },
+          { "internalType": "uint8", "name": "decimals", "type": "uint8" },
+          {
+            "components": [
+              { "internalType": "string", "name": "key", "type": "string" },
+              { "internalType": "bytes", "name": "value", "type": "bytes" }
+            ],
+            "internalType": "struct Property[]",
+            "name": "properties",
+            "type": "tuple[]"
+          },
+          {
+            "components": [
+              { "internalType": "string", "name": "key", "type": "string" },
+              {
+                "components": [
+                  {
+                    "internalType": "enum TokenPermissionField",
+                    "name": "code",
+                    "type": "uint8"
+                  },
+                  { "internalType": "bool", "name": "value", "type": "bool" }
+                ],
+                "internalType": "struct PropertyPermission[]",
+                "name": "permissions",
+                "type": "tuple[]"
+              }
+            ],
+            "internalType": "struct TokenPropertyPermission[]",
+            "name": "token_property_permissions",
+            "type": "tuple[]"
+          },
+          {
+            "components": [
+              { "internalType": "address", "name": "eth", "type": "address" },
+              { "internalType": "uint256", "name": "sub", "type": "uint256" }
+            ],
+            "internalType": "struct CrossAddress[]",
+            "name": "admin_list",
+            "type": "tuple[]"
+          },
+          {
+            "components": [
+              { "internalType": "bool", "name": "token_owner", "type": "bool" },
+              {
+                "internalType": "bool",
+                "name": "collection_admin",
+                "type": "bool"
+              },
+              {
+                "internalType": "address[]",
+                "name": "restricted",
+                "type": "address[]"
+              }
+            ],
+            "internalType": "struct CollectionNestingAndPermission",
+            "name": "nesting_settings",
+            "type": "tuple"
+          },
+          {
+            "components": [
+              {
+                "internalType": "enum CollectionLimitField",
+                "name": "field",
+                "type": "uint8"
+              },
+              { "internalType": "uint256", "name": "value", "type": "uint256" }
+            ],
+            "internalType": "struct CollectionLimitValue[]",
+            "name": "limits",
+            "type": "tuple[]"
+          },
+          {
+            "internalType": "CollectionFlags",
+            "name": "flags",
+            "type": "uint8"
+          }
+        ],
+        "internalType": "struct CreateCollectionData",
+        "name": "data",
+        "type": "tuple"
+      }
+    ],
+    "name": "createCollection",
+    "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
+    "stateMutability": "payable",
+    "type": "function"
+  },
+  {
+    "inputs": [
       { "internalType": "string", "name": "name", "type": "string" },
       { "internalType": "uint8", "name": "decimals", "type": "uint8" },
       { "internalType": "string", "name": "description", "type": "string" },
modifiedtests/src/eth/abi/fungible.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/fungible.json
+++ b/tests/src/eth/abi/fungible.json
@@ -280,35 +280,23 @@
   },
   {
     "inputs": [],
-    "name": "collectionNestingPermissions",
+    "name": "collectionNesting",
     "outputs": [
       {
         "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
           {
-            "internalType": "enum CollectionPermissionField",
-            "name": "field",
-            "type": "uint8"
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
           },
-          { "internalType": "bool", "name": "value", "type": "bool" }
-        ],
-        "internalType": "struct CollectionNestingPermission[]",
-        "name": "",
-        "type": "tuple[]"
-      }
-    ],
-    "stateMutability": "view",
-    "type": "function"
-  },
-  {
-    "inputs": [],
-    "name": "collectionNestingRestrictedCollectionIds",
-    "outputs": [
-      {
-        "components": [
-          { "internalType": "bool", "name": "token_owner", "type": "bool" },
-          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
         ],
-        "internalType": "struct CollectionNesting",
+        "internalType": "struct CollectionNestingAndPermission",
         "name": "",
         "type": "tuple"
       }
@@ -576,19 +564,24 @@
     "type": "function"
   },
   {
-    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
-    "name": "setCollectionNesting",
-    "outputs": [],
-    "stateMutability": "nonpayable",
-    "type": "function"
-  },
-  {
     "inputs": [
-      { "internalType": "bool", "name": "enable", "type": "bool" },
       {
-        "internalType": "address[]",
-        "name": "collections",
-        "type": "address[]"
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          {
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
+          },
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
+        ],
+        "internalType": "struct CollectionNestingAndPermission",
+        "name": "collectionNestingAndPermissions",
+        "type": "tuple"
       }
     ],
     "name": "setCollectionNesting",
modifiedtests/src/eth/abi/fungibleDeprecated.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/fungibleDeprecated.json
+++ b/tests/src/eth/abi/fungibleDeprecated.json
@@ -88,5 +88,64 @@
     "outputs": [],
     "stateMutability": "nonpayable",
     "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingPermissions",
+    "outputs": [
+      {
+        "components": [
+          {
+            "internalType": "enum CollectionPermissionField",
+            "name": "field",
+            "type": "uint8"
+          },
+          { "internalType": "bool", "name": "value", "type": "bool" }
+        ],
+        "internalType": "struct CollectionNestingPermission[]",
+        "name": "",
+        "type": "tuple[]"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingRestrictedCollectionIds",
+    "outputs": [
+      {
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+        ],
+        "internalType": "struct CollectionNesting",
+        "name": "",
+        "type": "tuple"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
+  },
+  {
+    "inputs": [
+      { "internalType": "bool", "name": "enable", "type": "bool" },
+      {
+        "internalType": "address[]",
+        "name": "collections",
+        "type": "address[]"
+      }
+    ],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
   }
 ]
modifiedtests/src/eth/abi/nonFungible.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/nonFungible.json
+++ b/tests/src/eth/abi/nonFungible.json
@@ -291,35 +291,23 @@
   },
   {
     "inputs": [],
-    "name": "collectionNestingPermissions",
+    "name": "collectionNesting",
     "outputs": [
       {
         "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
           {
-            "internalType": "enum CollectionPermissionField",
-            "name": "field",
-            "type": "uint8"
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
           },
-          { "internalType": "bool", "name": "value", "type": "bool" }
-        ],
-        "internalType": "struct CollectionNestingPermission[]",
-        "name": "",
-        "type": "tuple[]"
-      }
-    ],
-    "stateMutability": "view",
-    "type": "function"
-  },
-  {
-    "inputs": [],
-    "name": "collectionNestingRestrictedCollectionIds",
-    "outputs": [
-      {
-        "components": [
-          { "internalType": "bool", "name": "token_owner", "type": "bool" },
-          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
         ],
-        "internalType": "struct CollectionNesting",
+        "internalType": "struct CollectionNestingAndPermission",
         "name": "",
         "type": "tuple"
       }
@@ -705,19 +693,24 @@
     "type": "function"
   },
   {
-    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
-    "name": "setCollectionNesting",
-    "outputs": [],
-    "stateMutability": "nonpayable",
-    "type": "function"
-  },
-  {
     "inputs": [
-      { "internalType": "bool", "name": "enable", "type": "bool" },
       {
-        "internalType": "address[]",
-        "name": "collections",
-        "type": "address[]"
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          {
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
+          },
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
+        ],
+        "internalType": "struct CollectionNestingAndPermission",
+        "name": "collectionNestingAndPermissions",
+        "type": "tuple"
       }
     ],
     "name": "setCollectionNesting",
modifiedtests/src/eth/abi/nonFungibleDeprecated.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/nonFungibleDeprecated.json
+++ b/tests/src/eth/abi/nonFungibleDeprecated.json
@@ -109,5 +109,64 @@
     "outputs": [],
     "stateMutability": "nonpayable",
     "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingPermissions",
+    "outputs": [
+      {
+        "components": [
+          {
+            "internalType": "enum CollectionPermissionField",
+            "name": "field",
+            "type": "uint8"
+          },
+          { "internalType": "bool", "name": "value", "type": "bool" }
+        ],
+        "internalType": "struct CollectionNestingPermission[]",
+        "name": "",
+        "type": "tuple[]"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingRestrictedCollectionIds",
+    "outputs": [
+      {
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+        ],
+        "internalType": "struct CollectionNesting",
+        "name": "",
+        "type": "tuple"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
+  },
+  {
+    "inputs": [
+      { "internalType": "bool", "name": "enable", "type": "bool" },
+      {
+        "internalType": "address[]",
+        "name": "collections",
+        "type": "address[]"
+      }
+    ],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
   }
 ]
modifiedtests/src/eth/abi/reFungible.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/reFungible.json
+++ b/tests/src/eth/abi/reFungible.json
@@ -273,35 +273,23 @@
   },
   {
     "inputs": [],
-    "name": "collectionNestingPermissions",
+    "name": "collectionNesting",
     "outputs": [
       {
         "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
           {
-            "internalType": "enum CollectionPermissionField",
-            "name": "field",
-            "type": "uint8"
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
           },
-          { "internalType": "bool", "name": "value", "type": "bool" }
-        ],
-        "internalType": "struct CollectionNestingPermission[]",
-        "name": "",
-        "type": "tuple[]"
-      }
-    ],
-    "stateMutability": "view",
-    "type": "function"
-  },
-  {
-    "inputs": [],
-    "name": "collectionNestingRestrictedCollectionIds",
-    "outputs": [
-      {
-        "components": [
-          { "internalType": "bool", "name": "token_owner", "type": "bool" },
-          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
         ],
-        "internalType": "struct CollectionNesting",
+        "internalType": "struct CollectionNestingAndPermission",
         "name": "",
         "type": "tuple"
       }
@@ -687,19 +675,24 @@
     "type": "function"
   },
   {
-    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
-    "name": "setCollectionNesting",
-    "outputs": [],
-    "stateMutability": "nonpayable",
-    "type": "function"
-  },
-  {
     "inputs": [
-      { "internalType": "bool", "name": "enable", "type": "bool" },
       {
-        "internalType": "address[]",
-        "name": "collections",
-        "type": "address[]"
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          {
+            "internalType": "bool",
+            "name": "collection_admin",
+            "type": "bool"
+          },
+          {
+            "internalType": "address[]",
+            "name": "restricted",
+            "type": "address[]"
+          }
+        ],
+        "internalType": "struct CollectionNestingAndPermission",
+        "name": "collectionNestingAndPermissions",
+        "type": "tuple"
       }
     ],
     "name": "setCollectionNesting",
modifiedtests/src/eth/abi/reFungibleDeprecated.jsondiffbeforeafterboth
--- a/tests/src/eth/abi/reFungibleDeprecated.json
+++ b/tests/src/eth/abi/reFungibleDeprecated.json
@@ -137,5 +137,64 @@
     "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
     "stateMutability": "nonpayable",
     "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingPermissions",
+    "outputs": [
+      {
+        "components": [
+          {
+            "internalType": "enum CollectionPermissionField",
+            "name": "field",
+            "type": "uint8"
+          },
+          { "internalType": "bool", "name": "value", "type": "bool" }
+        ],
+        "internalType": "struct CollectionNestingPermission[]",
+        "name": "",
+        "type": "tuple[]"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [],
+    "name": "collectionNestingRestrictedCollectionIds",
+    "outputs": [
+      {
+        "components": [
+          { "internalType": "bool", "name": "token_owner", "type": "bool" },
+          { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }
+        ],
+        "internalType": "struct CollectionNesting",
+        "name": "",
+        "type": "tuple"
+      }
+    ],
+    "stateMutability": "view",
+    "type": "function"
+  },
+  {
+    "inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
+  },
+  {
+    "inputs": [
+      { "internalType": "bool", "name": "enable", "type": "bool" },
+      {
+        "internalType": "address[]",
+        "name": "collections",
+        "type": "address[]"
+      }
+    ],
+    "name": "setCollectionNesting",
+    "outputs": [],
+    "stateMutability": "nonpayable",
+    "type": "function"
   }
 ]
modifiedtests/src/eth/allowlist.test.tsdiffbeforeafterboth
--- a/tests/src/eth/allowlist.test.ts
+++ b/tests/src/eth/allowlist.test.ts
@@ -17,6 +17,7 @@
 import {IKeyringPair} from '@polkadot/types/types';
 import {Pallets} from '../util';
 import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util';
+import {CreateCollectionData} from './util/playgrounds/types';
 
 describe('EVM contract allowlist', () => {
   let donor: IKeyringPair;
@@ -104,7 +105,7 @@
       const userEth = await helper.eth.createAccountWithBalance(donor);
       const mintParams = testCase.mode === 'ft' ? [userEth, 100] : [userEth];
 
-      const {collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
       const userCrossSub = helper.ethCrossAccount.fromKeyringPair(userSub);
       const userCrossEth = helper.ethCrossAccount.fromAddress(userEth);
@@ -178,7 +179,7 @@
       const userEth = helper.eth.createAccount();
       const userCrossEth = helper.ethCrossAccount.fromAddress(userEth);
 
-      const {collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner, !testCase.cross);
 
       expect(await helper.collection.allowed(collectionId, {Substrate: userSub.address})).to.be.false;
modifiedtests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth
--- a/tests/src/eth/api/CollectionHelpers.sol
+++ b/tests/src/eth/api/CollectionHelpers.sol
@@ -20,8 +20,14 @@
 }
 
 /// @title Contract, which allows users to operate with collections
-/// @dev the ERC-165 identifier for this interface is 0xe65011aa
+/// @dev the ERC-165 identifier for this interface is 0x4135fff1
 interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {
+	/// Create a collection
+	/// @return address Address of the newly created collection
+	/// @dev EVM selector for this function is: 0xa765ee5b,
+	///  or in textual repr: createCollection(((address,uint256),string,string,string,uint8,uint8,(string,bytes)[],(string,(uint8,bool)[])[],(address,uint256)[],(bool,bool,address[]),(uint8,uint256)[],uint8))
+	function createCollection(CreateCollectionData memory data) external payable returns (address);
+
 	/// Create an NFT collection
 	/// @param name Name of the collection
 	/// @param description Informative description of the collection
@@ -94,3 +100,135 @@
 	///  or in textual repr: collectionId(address)
 	function collectionId(address collectionAddress) external view returns (uint32);
 }
+
+/// Collection properties
+struct CreateCollectionData {
+	/// Collection sponsor
+	CrossAddress pending_sponsor;
+	/// Collection name
+	string name;
+	/// Collection description
+	string description;
+	/// Token prefix
+	string token_prefix;
+	/// Token type (NFT, FT or RFT)
+	CollectionMode mode;
+	/// Fungible token precision
+	uint8 decimals;
+	/// Custom Properties
+	Property[] properties;
+	/// Permissions for token properties
+	TokenPropertyPermission[] token_property_permissions;
+	/// Collection admins
+	CrossAddress[] admin_list;
+	/// Nesting settings
+	CollectionNestingAndPermission nesting_settings;
+	/// Collection limits
+	CollectionLimitValue[] limits;
+	/// Extra collection flags
+	CollectionFlags flags;
+}
+
+/// Cross account struct
+type CollectionFlags is uint8;
+
+library CollectionFlagsLib {
+	/// Tokens in foreign collections can be transferred, but not burnt
+	CollectionFlags constant foreignField = CollectionFlags.wrap(128);
+	/// Supports ERC721Metadata
+	CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
+	/// External collections can't be managed using `unique` api
+	CollectionFlags constant externalField = CollectionFlags.wrap(1);
+
+	/// Reserved bits
+	function reservedField(uint8 value) public pure returns (CollectionFlags) {
+		require(value < 1 << 5, "out of bound value");
+		return CollectionFlags.wrap(value << 1);
+	}
+}
+
+/// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
+struct CollectionLimitValue {
+	CollectionLimitField field;
+	uint256 value;
+}
+
+/// [`CollectionLimits`](up_data_structs::CollectionLimits) fields representation for EVM.
+enum CollectionLimitField {
+	/// How many tokens can a user have on one account.
+	AccountTokenOwnership,
+	/// How many bytes of data are available for sponsorship.
+	SponsoredDataSize,
+	/// In any case, chain default: [`SponsoringRateLimit::SponsoringDisabled`]
+	SponsoredDataRateLimit,
+	/// How many tokens can be mined into this collection.
+	TokenLimit,
+	/// Timeouts for transfer sponsoring.
+	SponsorTransferTimeout,
+	/// Timeout for sponsoring an approval in passed blocks.
+	SponsorApproveTimeout,
+	/// Whether the collection owner of the collection can send tokens (which belong to other users).
+	OwnerCanTransfer,
+	/// Can the collection owner burn other people's tokens.
+	OwnerCanDestroy,
+	/// Is it possible to send tokens from this collection between users.
+	TransferEnabled
+}
+
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
+/// Cross account struct
+struct CrossAddress {
+	address eth;
+	uint256 sub;
+}
+
+/// Ethereum representation of Token Property Permissions.
+struct TokenPropertyPermission {
+	/// Token property key.
+	string key;
+	/// Token property permissions.
+	PropertyPermission[] permissions;
+}
+
+/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) as an key and value.
+struct PropertyPermission {
+	/// TokenPermission field.
+	TokenPermissionField code;
+	/// TokenPermission value.
+	bool value;
+}
+
+/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
+enum TokenPermissionField {
+	/// Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
+	Mutable,
+	/// Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
+	TokenOwner,
+	/// Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
+	CollectionAdmin
+}
+
+/// Ethereum representation of collection [`PropertyKey`](up_data_structs::PropertyKey) and [`PropertyValue`](up_data_structs::PropertyValue).
+struct Property {
+	string key;
+	bytes value;
+}
+
+/// Type of tokens in collection
+enum CollectionMode {
+	/// Fungible
+	Fungible,
+	/// Nonfungible
+	Nonfungible,
+	/// Refungible
+	Refungible
+}
modifiedtests/src/eth/api/UniqueFungible.soldiffbeforeafterboth
--- a/tests/src/eth/api/UniqueFungible.sol
+++ b/tests/src/eth/api/UniqueFungible.sol
@@ -13,7 +13,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 interface Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -148,30 +148,38 @@
 	// ///  or in textual repr: removeCollectionAdmin(address)
 	// function removeCollectionAdmin(address admin) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) external;
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) external;
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) external;
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) external;
+
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() external view returns (CollectionNestingAndPermission memory);
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -311,6 +319,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedtests/src/eth/api/UniqueNFT.soldiffbeforeafterboth
--- a/tests/src/eth/api/UniqueNFT.sol
+++ b/tests/src/eth/api/UniqueNFT.sol
@@ -118,7 +118,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 interface Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -253,30 +253,38 @@
 	// ///  or in textual repr: removeCollectionAdmin(address)
 	// function removeCollectionAdmin(address admin) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) external;
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) external;
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) external;
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) external;
+
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() external view returns (CollectionNestingAndPermission memory);
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -416,6 +424,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedtests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth
--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -118,7 +118,7 @@
 }
 
 /// @title A contract that allows you to work with collections.
-/// @dev the ERC-165 identifier for this interface is 0x2a14cfd1
+/// @dev the ERC-165 identifier for this interface is 0xb34d97e9
 interface Collection is Dummy, ERC165 {
 	// /// Set collection property.
 	// ///
@@ -253,30 +253,38 @@
 	// ///  or in textual repr: removeCollectionAdmin(address)
 	// function removeCollectionAdmin(address admin) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
-	/// @dev EVM selector for this function is: 0x112d4586,
-	///  or in textual repr: setCollectionNesting(bool)
-	function setCollectionNesting(bool enable) external;
+	/// @dev EVM selector for this function is: 0x0b9f3890,
+	///  or in textual repr: setCollectionNesting((bool,bool,address[]))
+	function setCollectionNesting(CollectionNestingAndPermission memory collectionNestingAndPermissions) external;
 
-	/// Toggle accessibility of collection nesting.
-	///
-	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
-	/// @param collections Addresses of collections that will be available for nesting.
-	/// @dev EVM selector for this function is: 0x64872396,
-	///  or in textual repr: setCollectionNesting(bool,address[])
-	function setCollectionNesting(bool enable, address[] memory collections) external;
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'
+	// /// @dev EVM selector for this function is: 0x112d4586,
+	// ///  or in textual repr: setCollectionNesting(bool)
+	// function setCollectionNesting(bool enable) external;
+
+	// /// Toggle accessibility of collection nesting.
+	// ///
+	// /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'
+	// /// @param collections Addresses of collections that will be available for nesting.
+	// /// @dev EVM selector for this function is: 0x64872396,
+	// ///  or in textual repr: setCollectionNesting(bool,address[])
+	// function setCollectionNesting(bool enable, address[] memory collections) external;
+
+	/// @dev EVM selector for this function is: 0x92c660a8,
+	///  or in textual repr: collectionNesting()
+	function collectionNesting() external view returns (CollectionNestingAndPermission memory);
 
-	/// Returns nesting for a collection
-	/// @dev EVM selector for this function is: 0x22d25bfe,
-	///  or in textual repr: collectionNestingRestrictedCollectionIds()
-	function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
+	// /// Returns nesting for a collection
+	// /// @dev EVM selector for this function is: 0x22d25bfe,
+	// ///  or in textual repr: collectionNestingRestrictedCollectionIds()
+	// function collectionNestingRestrictedCollectionIds() external view returns (CollectionNesting memory);
 
-	/// Returns permissions for a collection
-	/// @dev EVM selector for this function is: 0x5b2eaf4b,
-	///  or in textual repr: collectionNestingPermissions()
-	function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
+	// /// Returns permissions for a collection
+	// /// @dev EVM selector for this function is: 0x5b2eaf4b,
+	// ///  or in textual repr: collectionNestingPermissions()
+	// function collectionNestingPermissions() external view returns (CollectionNestingPermission[] memory);
 
 	/// Set the collection access method.
 	/// @param mode Access mode
@@ -416,6 +424,16 @@
 	uint256[] ids;
 }
 
+/// Nested collections and permissions
+struct CollectionNestingAndPermission {
+	/// Owner of token can nest tokens under it.
+	bool token_owner;
+	/// Admin of token collection can nest tokens under token.
+	bool collection_admin;
+	/// If set - only tokens from specified collections can be nested.
+	address[] restricted;
+}
+
 /// [`CollectionLimits`](up_data_structs::CollectionLimits) field representation for EVM.
 struct CollectionLimit {
 	CollectionLimitField field;
modifiedtests/src/eth/collectionAdmin.test.tsdiffbeforeafterboth
--- a/tests/src/eth/collectionAdmin.test.ts
+++ b/tests/src/eth/collectionAdmin.test.ts
@@ -19,6 +19,7 @@
 import {IEthCrossAccountId} from '../util/playgrounds/types';
 import {usingEthPlaygrounds, itEth} from './util';
 import {EthUniqueHelper} from './util/playgrounds/unique.dev';
+import {CreateCollectionData} from './util/playgrounds/types';
 
 async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise<any>) {
   const before = await helper.balance.getSubstrate(helper.address.ethToSubstrate(userAddress));
@@ -55,7 +56,7 @@
       const adminCrossSub = helper.ethCrossAccount.fromKeyringPair(adminSub);
       const adminCrossEth = helper.ethCrossAccount.fromAddress(adminEth);
 
-      const {collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner, true);
 
       // Check isOwnerOrAdminCross returns false:
modifiedtests/src/eth/collectionLimits.test.tsdiffbeforeafterboth
--- a/tests/src/eth/collectionLimits.test.ts
+++ b/tests/src/eth/collectionLimits.test.ts
@@ -1,7 +1,7 @@
 import {IKeyringPair} from '@polkadot/types/types';
 import {Pallets} from '../util';
 import {expect, itEth, usingEthPlaygrounds} from './util';
-import {CollectionLimitField} from './util/playgrounds/types';
+import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types';
 
 
 describe('Can set collection limits', () => {
@@ -20,7 +20,7 @@
   ].map(testCase =>
     itEth.ifWithPallets(`for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
-      const {collectionId, collectionAddress} = await helper.eth.createCollection(testCase.case, owner, 'Limits', 'absolutely anything', 'FLO', 18);
+      const {collectionId, collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Limits', 'absolutely anything', 'FLO', testCase.case, 18)).send();
       const limits = {
         accountTokenOwnershipLimit: 1000,
         sponsoredDataSize: 1024,
@@ -96,13 +96,13 @@
       };
 
       const owner = await helper.eth.createAccountWithBalance(donor);
-      const {collectionAddress} = await helper.eth.createCollection(testCase.case, owner, 'Limits', 'absolutely anything', 'ISNI', 18);
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Limits', 'absolutely anything', 'ISNI', testCase.case, 18)).send();
       const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);
 
       // Cannot set non-existing limit
       await expect(collectionEvm.methods
         .setCollectionLimit({field: 9, value: {status: true, value: 1}})
-        .call()).to.be.rejectedWith('Returned error: VM Exception while processing transaction: revert Value not convertible into enum "CollectionLimitField"');
+        .call()).to.be.rejectedWith('Returned error: VM Exception while processing transaction: revert value not convertible into enum "CollectionLimitField"');
 
       // Cannot disable limits
       await expect(collectionEvm.methods
@@ -129,7 +129,7 @@
     itEth.ifWithPallets(`Non-owner and non-admin cannot set collection limits for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const nonOwner = await helper.eth.createAccountWithBalance(donor);
-      const {collectionAddress} = await helper.eth.createCollection(testCase.case, owner, 'Limits', 'absolutely anything', 'FLO', 18);
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Limits', 'absolutely anything', 'FLO', testCase.case, 18)).send();
 
       const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);
       await expect(collectionEvm.methods
addedtests/src/eth/createCollection.test.tsdiffbeforeafterboth
--- /dev/null
+++ b/tests/src/eth/createCollection.test.ts
@@ -0,0 +1,1459 @@
+// 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 {evmToAddress} from '@polkadot/util-crypto';
+import {Pallets, requirePalletsOrSkip} from '../util';
+import {expect, itEth, usingEthPlaygrounds} from './util';
+import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types';
+import {CollectionFlag, IEthCrossAccountId, TCollectionMode} from '../util/playgrounds/types';
+
+const DECIMALS = 18;
+const CREATE_COLLECTION_DATA_DEFAULTS_ARRAY = [
+  [],
+  [],
+  [],
+  [false, false, []],
+  [],
+  [0],
+];
+
+type ElementOf<A> = A extends readonly (infer T)[] ? T : never;
+function* cartesian<T extends Array<Array<any>>, R extends Array<any>>(internalRest: [...R], ...args: [...T]): Generator<[...R, ...{[K in keyof T]: ElementOf<T[K]>}]> {
+  if(args.length === 0) {
+    yield internalRest as any;
+    return;
+  }
+  for(const value of args[0]) {
+    yield* cartesian([...internalRest, value], ...args.slice(1)) as any;
+  }
+}
+
+describe('Create collection from EVM', () => {
+  let donor: IKeyringPair;
+  let nominal: bigint;
+
+  before(async function() {
+    await usingEthPlaygrounds(async (helper, privateKey) => {
+      donor = await privateKey({url: import.meta.url});
+      nominal = helper.balance.getOneTokenNominal();
+    });
+  });
+
+  describe('Fungible collection', () => {
+    before(async function() {
+      await usingEthPlaygrounds((helper) => {
+        requirePalletsOrSkip(this, helper, [Pallets.Fungible]);
+        return Promise.resolve();
+      });
+    });
+
+    itEth('Collection address exist', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionAddressForNonexistentCollection = '0x17C4E6453CC49AAAAEACA894E6D9683E00112233';
+      const collectionHelpers = await helper.ethNativeContract.collectionHelpers(owner);
+
+      expect(await collectionHelpers
+        .methods.isCollectionExist(collectionAddressForNonexistentCollection).call())
+        .to.be.false;
+
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Exister', 'absolutely anything', 'WIWT', 'ft', DECIMALS)).send();
+      expect(await collectionHelpers
+        .methods.isCollectionExist(collectionAddress).call())
+        .to.be.true;
+
+      // check collectionOwner:
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);
+      const collectionOwner = await collectionEvm.methods.collectionOwner().call();
+      expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner, true));
+    });
+
+    itEth('destroyCollection', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('Exister', 'absolutely anything', 'WIWT', 'ft', DECIMALS)).send();
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+
+      const result = await collectionHelper.methods
+        .destroyCollection(collectionAddress)
+        .send({from: owner});
+
+      const events = helper.eth.normalizeEvents(result.events);
+
+      expect(events).to.be.deep.equal([
+        {
+          address: collectionHelper.options.address,
+          event: 'CollectionDestroyed',
+          args: {
+            collectionId: collectionAddress,
+          },
+        },
+      ]);
+
+      expect(await collectionHelper.methods
+        .isCollectionExist(collectionAddress)
+        .call()).to.be.false;
+      expect(await helper.collection.getData(collectionId)).to.be.null;
+    });
+
+    itEth('(!negative test!) Create collection (bad lengths)', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+      {
+        const MAX_NAME_LENGTH = 64;
+        const collectionName = 'A'.repeat(MAX_NAME_LENGTH + 1);
+        const description = 'A';
+        const tokenPrefix = 'A';
+
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Fungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('name is too long. Max length is ' + MAX_NAME_LENGTH);
+      }
+      {
+        const MAX_DESCRIPTION_LENGTH = 256;
+        const collectionName = 'A';
+        const description = 'A'.repeat(MAX_DESCRIPTION_LENGTH + 1);
+        const tokenPrefix = 'A';
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Fungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('description is too long. Max length is ' + MAX_DESCRIPTION_LENGTH);
+      }
+      {
+        const MAX_TOKEN_PREFIX_LENGTH = 16;
+        const collectionName = 'A';
+        const description = 'A';
+        const tokenPrefix = 'A'.repeat(MAX_TOKEN_PREFIX_LENGTH + 1);
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Fungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('token_prefix is too long. Max length is ' + MAX_TOKEN_PREFIX_LENGTH);
+      }
+    });
+
+    itEth('(!negative test!) cannot create collection if value !== 2', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+      const expects = [0n, 1n, 30n].map(async value => {
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            'Peasantry',
+            'absolutely anything',
+            'TWIW',
+            CollectionMode.Fungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(value * nominal)})).to.be.rejectedWith('Sent amount not equals to collection creation price (2000000000000000000)');
+      });
+      await Promise.all(expects);
+    });
+  });
+
+  describe('Nonfungible collection', () => {
+    before(async function() {
+      await usingEthPlaygrounds((helper) => {
+        requirePalletsOrSkip(this, helper, [Pallets.NFT]);
+        return Promise.resolve();
+      });
+    });
+
+    itEth('Create collection', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const name = 'CollectionEVM';
+      const description = 'Some description';
+      const prefix = 'token prefix';
+
+      // todo:playgrounds this might fail when in async environment.
+      const collectionCountBefore = +(await helper.callRpc('api.rpc.unique.collectionStats')).created;
+      const {collectionId, collectionAddress, events} = await helper.eth.createCollection(owner, new CreateCollectionData(name, description, prefix, 'nft')).send();
+
+      expect(events).to.be.deep.equal([
+        {
+          address: '0x6C4E9fE1AE37a41E93CEE429e8E1881aBdcbb54F',
+          event: 'CollectionCreated',
+          args: {
+            owner: owner,
+            collectionId: collectionAddress,
+          },
+        },
+      ]);
+
+      const collectionCountAfter = +(await helper.callRpc('api.rpc.unique.collectionStats')).created;
+
+      const collection = helper.nft.getCollectionObject(collectionId);
+      const data = (await collection.getData())!;
+
+      expect(collectionCountAfter - collectionCountBefore).to.be.eq(1);
+      expect(collectionId).to.be.eq(collectionCountAfter);
+      expect(data.name).to.be.eq(name);
+      expect(data.description).to.be.eq(description);
+      expect(data.raw.tokenPrefix).to.be.eq(prefix);
+      expect(data.raw.mode).to.be.eq('NFT');
+
+      const options = await collection.getOptions();
+
+      expect(options.tokenPropertyPermissions).to.be.empty;
+    });
+
+    // this test will occasionally fail when in async environment.
+    itEth('Check collection address exist', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const expectedCollectionId = +(await helper.callRpc('api.rpc.unique.collectionStats')).created + 1;
+      const expectedCollectionAddress = helper.ethAddress.fromCollectionId(expectedCollectionId);
+      const collectionHelpers = await helper.ethNativeContract.collectionHelpers(owner);
+
+      expect(await collectionHelpers.methods
+        .isCollectionExist(expectedCollectionAddress)
+        .call()).to.be.false;
+
+      await collectionHelpers.methods
+        .createCollection([
+          emptyAddress,
+          'A',
+          'A',
+          'A',
+          CollectionMode.Nonfungible,
+          0,
+          ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+        ])
+        .send({value: Number(2n * helper.balance.getOneTokenNominal())});
+
+      expect(await collectionHelpers.methods
+        .isCollectionExist(expectedCollectionAddress)
+        .call()).to.be.true;
+    });
+  });
+
+  describe('Create RFT collection from EVM', () => {
+    before(async function() {
+      await usingEthPlaygrounds((helper) => {
+        requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+        return Promise.resolve();
+      });
+    });
+
+    itEth('Create collection', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const name = 'CollectionEVM';
+      const description = 'Some description';
+      const prefix = 'token prefix';
+
+      const {collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData(name, description, prefix, 'rft')).send();
+      const data = (await helper.rft.getData(collectionId))!;
+      const collection = helper.rft.getCollectionObject(collectionId);
+
+      expect(data.name).to.be.eq(name);
+      expect(data.description).to.be.eq(description);
+      expect(data.raw.tokenPrefix).to.be.eq(prefix);
+      expect(data.raw.mode).to.be.eq('ReFungible');
+
+      const options = await collection.getOptions();
+
+      expect(options.tokenPropertyPermissions).to.be.empty;
+    });
+
+    itEth('Create collection with properties & get description', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const name = 'CollectionEVM';
+      const description = 'Some description';
+      const prefix = 'token prefix';
+      const baseUri = 'BaseURI';
+
+      const {collectionId, collectionAddress} = await helper.eth.createERC721MetadataCompatibleRFTCollection(owner, name, description, prefix, baseUri);
+      const contract = helper.ethNativeContract.collection(collectionAddress, 'nft');
+
+      const collection = helper.rft.getCollectionObject(collectionId);
+      const data = (await collection.getData())!;
+
+      expect(data.name).to.be.eq(name);
+      expect(data.description).to.be.eq(description);
+      expect(data.raw.tokenPrefix).to.be.eq(prefix);
+      expect(data.raw.mode).to.be.eq('ReFungible');
+
+      expect(await contract.methods.description().call()).to.deep.equal(description);
+
+      const options = await collection.getOptions();
+      expect(options.tokenPropertyPermissions).to.be.deep.equal([
+        {
+          key: 'URI',
+          permission: {mutable: true, collectionAdmin: true, tokenOwner: false},
+        },
+        {
+          key: 'URISuffix',
+          permission: {mutable: true, collectionAdmin: true, tokenOwner: false},
+        },
+      ]);
+    });
+
+    itEth('Set sponsorship', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const sponsor = await helper.eth.createAccountWithBalance(donor);
+      const ss58Format = helper.chain.getChainProperties().ss58Format;
+      const {collectionId, collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Sponsor', 'absolutely anything', 'ENVY', 'rft')).send();
+
+      const collection = await helper.ethNativeContract.collection(collectionAddress, 'rft', owner);
+      const sponsorCross = helper.ethCrossAccount.fromAddress(sponsor);
+      await collection.methods.setCollectionSponsorCross(sponsorCross).send();
+
+      let data = (await helper.rft.getData(collectionId))!;
+      expect(data.raw.sponsorship.Unconfirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));
+
+      await expect(collection.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');
+
+      const sponsorCollection = await helper.ethNativeContract.collection(collectionAddress, 'rft', sponsor);
+      await sponsorCollection.methods.confirmCollectionSponsorship().send();
+
+      data = (await helper.rft.getData(collectionId))!;
+      expect(data.raw.sponsorship.Confirmed).to.be.equal(evmToAddress(sponsor, Number(ss58Format)));
+    });
+
+    itEth('Collection address exist', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionAddressForNonexistentCollection = '0x17C4E6453CC49AAAAEACA894E6D9683E00112233';
+      const collectionHelpers = await helper.ethNativeContract.collectionHelpers(owner);
+
+      expect(await collectionHelpers
+        .methods.isCollectionExist(collectionAddressForNonexistentCollection).call())
+        .to.be.false;
+
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('Exister', 'absolutely anything', 'WIWT', 'rft')).send();
+      expect(await collectionHelpers
+        .methods.isCollectionExist(collectionAddress).call())
+        .to.be.true;
+
+      // check collectionOwner:
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);
+      const collectionOwner = await collectionEvm.methods.collectionOwner().call();
+      expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner, true));
+    });
+
+    itEth('destroyCollection', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('Limits', 'absolutely anything', 'OLF', 'rft')).send();
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+
+      await expect(collectionHelper.methods
+        .destroyCollection(collectionAddress)
+        .send({from: owner})).to.be.fulfilled;
+
+      expect(await collectionHelper.methods
+        .isCollectionExist(collectionAddress)
+        .call()).to.be.false;
+      expect(await helper.collection.getData(collectionId)).to.be.null;
+    });
+
+    itEth('(!negative test!) Create collection (bad lengths)', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+      {
+        const MAX_NAME_LENGTH = 64;
+        const collectionName = 'A'.repeat(MAX_NAME_LENGTH + 1);
+        const description = 'A';
+        const tokenPrefix = 'A';
+
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Refungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('name is too long. Max length is ' + MAX_NAME_LENGTH);
+      }
+      {
+        const MAX_DESCRIPTION_LENGTH = 256;
+        const collectionName = 'A';
+        const description = 'A'.repeat(MAX_DESCRIPTION_LENGTH + 1);
+        const tokenPrefix = 'A';
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Refungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('description is too long. Max length is ' + MAX_DESCRIPTION_LENGTH);
+      }
+      {
+        const MAX_TOKEN_PREFIX_LENGTH = 16;
+        const collectionName = 'A';
+        const description = 'A';
+        const tokenPrefix = 'A'.repeat(MAX_TOKEN_PREFIX_LENGTH + 1);
+        await expect(collectionHelper.methods
+          .createCollection([
+            emptyAddress,
+            collectionName,
+            description,
+            tokenPrefix,
+            CollectionMode.Refungible,
+            DECIMALS,
+            ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+          ])
+          .call({value: Number(2n * nominal)})).to.be.rejectedWith('token_prefix is too long. Max length is ' + MAX_TOKEN_PREFIX_LENGTH);
+      }
+    });
+
+    itEth('(!negative test!) Create collection (no funds)', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
+      await expect(collectionHelper.methods
+        .createCollection([
+          emptyAddress,
+          'Peasantry',
+          'absolutely anything',
+          'TWIW',
+          CollectionMode.Refungible,
+          0,
+          ...CREATE_COLLECTION_DATA_DEFAULTS_ARRAY,
+        ])
+        .call({value: Number(1n * nominal)})).to.be.rejectedWith('Sent amount not equals to collection creation price (2000000000000000000)');
+    });
+  });
+
+  describe('Sponsoring', () => {
+    itEth('Сan remove collection sponsor', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const sponsor = await helper.eth.createAccountWithBalance(donor);
+      const sponsorCross = helper.ethCrossAccount.fromAddr(sponsor);
+
+      const {collectionAddress} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'Sponsor collection',
+          description: '1',
+          tokenPrefix: '1',
+          collectionMode: 'nft',
+          pendingSponsor: sponsorCross,
+        },
+      ).send();
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      expect(await collectionEvm.methods.hasCollectionPendingSponsor().call({from: owner})).to.be.true;
+
+      await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsor});
+      let sponsorStruct = await collectionEvm.methods.collectionSponsor().call({from: owner});
+      expect(helper.address.restoreCrossAccountFromBigInt(BigInt(sponsorStruct.sub))).to.be.eq(helper.address.ethToSubstrate(sponsor, true));
+      expect(await collectionEvm.methods.hasCollectionPendingSponsor().call({from: owner})).to.be.false;
+
+      await collectionEvm.methods.removeCollectionSponsor().send({from: owner});
+
+      sponsorStruct = await collectionEvm.methods.collectionSponsor().call({from: owner});
+      expect(sponsorStruct.eth).to.be.eq('0x0000000000000000000000000000000000000000');
+    });
+
+    itEth('Can sponsor from evm address via access list', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const sponsorEth = await helper.eth.createAccountWithBalance(donor);
+      const sponsorCross = helper.ethCrossAccount.fromAddr(sponsorEth);
+
+      const {collectionId, collectionAddress} = await helper.eth.createERC721MetadataCompatibleCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'Sponsor collection',
+          description: '1',
+          tokenPrefix: '1',
+          collectionMode: 'nft',
+          pendingSponsor: sponsorCross,
+          limits: [{field: CollectionLimitField.SponsoredDataRateLimit, value: 30n}],
+          tokenPropertyPermissions: [{key: 'key', permissions: [{code: TokenPermissionField.TokenOwner, value: true}]}],
+        },
+        '',
+      );
+
+      const collectionSub = helper.nft.getCollectionObject(collectionId);
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      let sponsorship = (await collectionSub.getData())!.raw.sponsorship;
+      expect(sponsorship.Unconfirmed).to.be.eq(helper.address.ethToSubstrate(sponsorEth, true));
+      // Account cannot confirm sponsorship if it is not set as a sponsor
+      await expect(collectionEvm.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');
+
+      // Sponsor can confirm sponsorship:
+      await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsorEth});
+      sponsorship = (await collectionSub.getData())!.raw.sponsorship;
+      expect(sponsorship.Confirmed).to.be.eq(helper.address.ethToSubstrate(sponsorEth, true));
+
+      // Create user with no balance:
+      const user = helper.ethCrossAccount.createAccount();
+      const nextTokenId = await collectionEvm.methods.nextTokenId().call();
+      expect(nextTokenId).to.be.equal('1');
+
+      // Set collection permissions:
+      const oldPermissions = (await collectionSub.getData())!.raw.permissions;
+      expect(oldPermissions.mintMode).to.be.false;
+      expect(oldPermissions.access).to.be.equal('Normal');
+
+      await collectionEvm.methods.setCollectionAccess(1 /*'AllowList'*/).send({from: owner});
+      await collectionEvm.methods.addToCollectionAllowListCross(user).send({from: owner});
+      await collectionEvm.methods.setCollectionMintMode(true).send({from: owner});
+
+      const newPermissions = (await collectionSub.getData())!.raw.permissions;
+      expect(newPermissions.mintMode).to.be.true;
+      expect(newPermissions.access).to.be.equal('AllowList');
+
+      const ownerBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+      const sponsorBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsorEth));
+      const userBalanceBefore =  await helper.balance.getSubstrate(helper.address.ethToSubstrate(user.eth));
+
+      // User can mint token without balance:
+      {
+        const result = await collectionEvm.methods.mintCross(user, [{key: 'key', value: Buffer.from('Value')}]).send({from: user.eth});
+        const event = helper.eth.normalizeEvents(result.events)
+          .find(event => event.event === 'Transfer');
+
+        expect(event).to.be.deep.equal({
+          address: collectionAddress,
+          event: 'Transfer',
+          args: {
+            from: '0x0000000000000000000000000000000000000000',
+            to: user.eth,
+            tokenId: '1',
+          },
+        });
+
+        // await collectionEvm.methods.setProperties(1, [{key: 'key', value: Buffer.from('Value1')}]).send({from: user.eth});
+
+        const ownerBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+        const sponsorBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsorEth));
+        const userBalanceAfter =  await helper.balance.getSubstrate(helper.address.ethToSubstrate(user.eth));
+
+        expect(await collectionEvm.methods.properties(nextTokenId, []).call())
+          .to.be.like([
+            [
+              'key',
+              '0x' + Buffer.from('Value').toString('hex'),
+            ],
+          ]);
+        expect(ownerBalanceBefore).to.be.eq(ownerBalanceAfter);
+        expect(userBalanceAfter).to.be.eq(userBalanceBefore);
+        expect(sponsorBalanceBefore > sponsorBalanceAfter).to.be.true;
+      }
+    });
+
+    itEth('Check that transaction via EVM spend money from sponsor address', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const sponsor = await helper.eth.createAccountWithBalance(donor);
+      const sponsorCross = helper.ethCrossAccount.fromAddr(sponsor);
+      const user = helper.eth.createAccount();
+      const userCross = helper.ethCrossAccount.fromAddress(user);
+
+      const {collectionAddress, collectionId} = await helper.eth.createERC721MetadataCompatibleCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'Sponsor collection',
+          description: '1',
+          tokenPrefix: '1',
+          collectionMode: 'nft',
+          pendingSponsor: sponsorCross,
+          adminList: [userCross],
+        },
+        '',
+      );
+
+      const collectionSub = helper.nft.getCollectionObject(collectionId);
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+      // Set collection sponsor:
+      let collectionData = (await collectionSub.getData())!;
+      expect(collectionData.raw.sponsorship.Unconfirmed).to.be.eq(helper.address.ethToSubstrate(sponsor, true));
+      await expect(collectionEvm.methods.confirmCollectionSponsorship().call()).to.be.rejectedWith('ConfirmSponsorshipFail');
+
+      await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsor});
+      collectionData = (await collectionSub.getData())!;
+      expect(collectionData.raw.sponsorship.Confirmed).to.be.eq(helper.address.ethToSubstrate(sponsor, true));
+
+      const ownerBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+      const sponsorBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsor));
+
+      const mintingResult = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});
+      const tokenId = mintingResult.events.Transfer.returnValues.tokenId;
+
+      const event = helper.eth.normalizeEvents(mintingResult.events)
+        .find(event => event.event === 'Transfer');
+      const address = helper.ethAddress.fromCollectionId(collectionId);
+
+      expect(event).to.be.deep.equal({
+        address,
+        event: 'Transfer',
+        args: {
+          from: '0x0000000000000000000000000000000000000000',
+          to: user,
+          tokenId: '1',
+        },
+      });
+      expect(await collectionEvm.methods.tokenURI(tokenId).call({from: user})).to.be.equal('Test URI');
+
+      const ownerBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+      expect(ownerBalanceAfter).to.be.eq(ownerBalanceBefore);
+      const sponsorBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsor));
+      expect(sponsorBalanceAfter < sponsorBalanceBefore).to.be.true;
+    });
+
+    itEth('Can reassign collection sponsor', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const sponsorEth = await helper.eth.createAccountWithBalance(donor);
+      const sponsorCrossEth = helper.ethCrossAccount.fromAddr(sponsorEth);
+      const [sponsorSub] = await helper.arrange.createAccounts([100n], donor);
+      const sponsorCrossSub = helper.ethCrossAccount.fromKeyringPair(sponsorSub);
+
+      const {collectionAddress, collectionId} = await helper.eth.createERC721MetadataCompatibleCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'Sponsor collection',
+          description: '1',
+          tokenPrefix: '1',
+          collectionMode: 'nft',
+          pendingSponsor: sponsorCrossEth,
+        },
+        '',
+      );
+      const collectionSub = helper.nft.getCollectionObject(collectionId);
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      // Set and confirm sponsor:
+      await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsorEth});
+
+      // Can reassign sponsor:
+      await collectionEvm.methods.setCollectionSponsorCross(sponsorCrossSub).send({from: owner});
+      const collectionSponsor = (await collectionSub.getData())?.raw.sponsorship;
+      expect(collectionSponsor).to.deep.eq({Unconfirmed: sponsorSub.address});
+    });
+
+    [
+      'transfer',
+      'transferCross',
+      'transferFrom',
+      'transferFromCross',
+    ].map(testCase =>
+      itEth(`[${testCase}] Check that transfer via EVM spend money from sponsor address`, async ({helper}) => {
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const sponsor = await helper.eth.createAccountWithBalance(donor);
+        const sponsorCross = helper.ethCrossAccount.fromAddr(sponsor);
+        const user = await helper.eth.createAccountWithBalance(donor);
+        const userCross = helper.ethCrossAccount.fromAddress(user);
+
+        const {collectionAddress} = await helper.eth.createERC721MetadataCompatibleCollection(
+          owner,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'Sponsor collection',
+            description: '1',
+            tokenPrefix: '1',
+            collectionMode: 'rft',
+            pendingSponsor: sponsorCross,
+            adminList: [userCross],
+          },
+          '',
+        );
+        const receiver = await helper.eth.createAccountWithBalance(donor);
+        const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'rft', owner);
+
+        await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsor});
+
+        const result = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});
+        const tokenId = result.events.Transfer.returnValues.tokenId;
+
+        const ownerBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+        const sponsorBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsor));
+        const userBalanceBefore = await helper.balance.getSubstrate(helper.address.ethToSubstrate(user));
+
+        switch (testCase) {
+          case 'transfer':
+            await collectionEvm.methods.transfer(receiver, tokenId).send({from: user});
+            break;
+          case 'transferCross':
+            await collectionEvm.methods.transferCross(helper.ethCrossAccount.fromAddress(receiver), tokenId).send({from: user});
+            break;
+          case 'transferFrom':
+            await collectionEvm.methods.transferFrom(user, receiver, tokenId).send({from: user});
+            break;
+          case 'transferFromCross':
+            await collectionEvm.methods.transferFromCross(helper.ethCrossAccount.fromAddress(user), helper.ethCrossAccount.fromAddress(receiver), tokenId).send({from: user});
+            break;
+        }
+
+        const ownerBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(owner));
+        expect(ownerBalanceAfter).to.be.eq(ownerBalanceBefore);
+        const sponsorBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(sponsor));
+        expect(sponsorBalanceAfter < sponsorBalanceBefore).to.be.true;
+        const userBalanceAfter = await helper.balance.getSubstrate(helper.address.ethToSubstrate(user));
+        expect(userBalanceAfter).to.be.eq(userBalanceBefore);
+      }));
+  });
+
+  describe('Collection admins', () => {
+    let donor: IKeyringPair;
+
+    before(async function() {
+      await usingEthPlaygrounds(async (_helper, privateKey) => {
+        donor = await privateKey({url: import.meta.url});
+      });
+    });
+
+    [
+      {mode: 'nft' as const, requiredPallets: []},
+      {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+      {mode: 'ft' as const, requiredPallets: []},
+    ].map(testCase => {
+      itEth.ifWithPallets(`can add account admin by owner for ${testCase.mode}`, testCase.requiredPallets, async ({helper, privateKey}) => {
+        // arrange
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const adminSub = await privateKey('//admin2');
+        const adminEth = helper.eth.createAccount().toLowerCase();
+
+        const adminCrossSub = helper.ethCrossAccount.fromKeyringPair(adminSub);
+        const adminCrossEth = helper.ethCrossAccount.fromAddress(adminEth);
+
+        const {collectionAddress, collectionId} = await helper.eth.createCollection(
+          owner,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'Mint collection',
+            description: 'a',
+            tokenPrefix: 'b',
+            collectionMode: testCase.mode,
+            adminList: [adminCrossSub, adminCrossEth],
+          },
+        ).send();
+        const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner, true);
+
+        // 1. Expect api.rpc.unique.adminlist returns admins:
+        const adminListRpc = await helper.collection.getAdmins(collectionId);
+        expect(adminListRpc).to.has.length(2);
+        expect(adminListRpc).to.be.deep.contain.members([{Substrate: adminSub.address}, {Ethereum: adminEth}]);
+
+        // 2. Expect methods.collectionAdmins == api.rpc.unique.adminlist
+        let adminListEth = await collectionEvm.methods.collectionAdmins().call();
+        adminListEth = adminListEth.map((element: IEthCrossAccountId) => helper.address.convertCrossAccountFromEthCrossAccount(element));
+        expect(adminListRpc).to.be.like(adminListEth);
+
+        // 3. check isOwnerOrAdminCross returns true:
+        expect(await collectionEvm.methods.isOwnerOrAdminCross(adminCrossSub).call()).to.be.true;
+        expect(await collectionEvm.methods.isOwnerOrAdminCross(adminCrossEth).call()).to.be.true;
+      });
+    });
+
+    itEth('cross account admin can mint', async ({helper}) => {
+      // arrange: create collection and accounts
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const adminEth = (await helper.eth.createAccountWithBalance(donor)).toLowerCase();
+      const adminCrossEth = helper.ethCrossAccount.fromAddress(adminEth);
+      const [adminSub] = await helper.arrange.createAccounts([100n], donor);
+      const adminCrossSub = helper.ethCrossAccount.fromKeyringPair(adminSub);
+      const {collectionAddress, collectionId} = await helper.eth.createERC721MetadataCompatibleCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'Mint collection',
+          description: 'a',
+          tokenPrefix: 'b',
+          collectionMode: 'nft',
+          adminList: [adminCrossSub, adminCrossEth],
+        },
+        'uri',
+      );
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner, true);
+
+      // admin (sub and eth) can mint token:
+      await collectionEvm.methods.mint(owner).send({from: adminEth});
+      await helper.nft.mintToken(adminSub, {collectionId, owner: {Ethereum: owner}});
+
+      expect(await helper.collection.getLastTokenId(collectionId)).to.eq(2);
+    });
+
+    itEth('cannot add invalid cross account admin', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const [admin] = await helper.arrange.createAccounts([100n, 100n], donor);
+
+      const adminCross = {
+        eth: helper.address.substrateToEth(admin.address),
+        sub: admin.addressRaw,
+      };
+
+      await expect(helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'A',
+          description: 'B',
+          tokenPrefix: 'C',
+          collectionMode: 'nft',
+          adminList: [adminCross],
+        },
+      ).call()).to.be.rejected;
+    });
+
+    itEth('Remove [cross] admin by owner', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const [adminSub] = await helper.arrange.createAccounts([10n], donor);
+      const adminEth = (await helper.eth.createAccountWithBalance(donor)).toLowerCase();
+      const adminCrossSub = helper.ethCrossAccount.fromKeyringPair(adminSub);
+      const adminCrossEth = helper.ethCrossAccount.fromAddress(adminEth);
+
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'A',
+          description: 'B',
+          tokenPrefix: 'C',
+          collectionMode: 'nft',
+          adminList: [adminCrossSub, adminCrossEth],
+        },
+      ).send();
+
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      {
+        const adminList = await helper.collection.getAdmins(collectionId);
+        expect(adminList).to.deep.include({Substrate: adminSub.address});
+        expect(adminList).to.deep.include({Ethereum: adminEth});
+      }
+
+      await collectionEvm.methods.removeCollectionAdminCross(adminCrossSub).send();
+      await collectionEvm.methods.removeCollectionAdminCross(adminCrossEth).send();
+      const adminList = await helper.collection.getAdmins(collectionId);
+      expect(adminList.length).to.be.eq(0);
+
+      // Non admin cannot mint:
+      await expect(helper.nft.mintToken(adminSub, {collectionId, owner: {Substrate: adminSub.address}})).to.be.rejectedWith(/common.PublicMintingNotAllowed/);
+      await expect(collectionEvm.methods.mint(adminEth).send({from: adminEth})).to.be.rejected;
+    });
+  });
+
+  describe('Collection limits', () => {
+    describe('Can set collection limits', () => {
+      [
+        {case: 'nft' as const},
+        {case: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+        {case: 'ft' as const},
+      ].map(testCase =>
+        itEth.ifWithPallets(`for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {
+          const owner = await helper.eth.createAccountWithBalance(donor);
+
+          const limits = {
+            accountTokenOwnershipLimit: 1000n,
+            sponsoredDataSize: 1024n,
+            sponsoredDataRateLimit: 30n,
+            tokenLimit: 1000000n,
+            sponsorTransferTimeout: 6n,
+            sponsorApproveTimeout: 6n,
+            ownerCanTransfer: 1n,
+            ownerCanDestroy: 0n,
+            transfersEnabled: 0n,
+          };
+
+          const {collectionId, collectionAddress} = await helper.eth.createCollection(
+            owner,
+            {
+              ...CREATE_COLLECTION_DATA_DEFAULTS,
+              name: 'Limits',
+              description: 'absolutely anything',
+              tokenPrefix: 'FLO',
+              collectionMode: testCase.case,
+              limits: [
+                {field: CollectionLimitField.AccountTokenOwnership, value: limits.accountTokenOwnershipLimit},
+                {field: CollectionLimitField.SponsoredDataSize, value: limits.sponsoredDataSize},
+                {field: CollectionLimitField.SponsoredDataRateLimit, value: limits.sponsoredDataRateLimit},
+                {field: CollectionLimitField.TokenLimit, value: limits.tokenLimit},
+                {field: CollectionLimitField.SponsorTransferTimeout, value: limits.sponsorTransferTimeout},
+                {field: CollectionLimitField.SponsorApproveTimeout, value: limits.sponsorApproveTimeout},
+                {field: CollectionLimitField.OwnerCanTransfer, value: limits.ownerCanTransfer},
+                {field: CollectionLimitField.OwnerCanDestroy, value: limits.ownerCanDestroy},
+                {field: CollectionLimitField.TransferEnabled, value: limits.transfersEnabled},
+              ],
+            },
+          ).send();
+
+          const expectedLimits = {
+            accountTokenOwnershipLimit: 1000,
+            sponsoredDataSize: 1024,
+            sponsoredDataRateLimit: {blocks: 30},
+            tokenLimit: 1000000,
+            sponsorTransferTimeout: 6,
+            sponsorApproveTimeout: 6,
+            ownerCanTransfer: true,
+            ownerCanDestroy: false,
+            transfersEnabled: false,
+          };
+
+          const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);
+
+          // Check limits from sub:
+          const data = (await helper.rft.getData(collectionId))!;
+          expect(data.raw.limits).to.deep.eq(expectedLimits);
+          expect(await helper.collection.getEffectiveLimits(collectionId)).to.deep.eq(expectedLimits);
+          // Check limits from eth:
+          const limitsEvm = await collectionEvm.methods.collectionLimits().call({from: owner});
+          expect(limitsEvm).to.have.length(9);
+          expect(limitsEvm[0]).to.deep.eq([CollectionLimitField.AccountTokenOwnership.toString(), [true, limits.accountTokenOwnershipLimit.toString()]]);
+          expect(limitsEvm[1]).to.deep.eq([CollectionLimitField.SponsoredDataSize.toString(), [true, limits.sponsoredDataSize.toString()]]);
+          expect(limitsEvm[2]).to.deep.eq([CollectionLimitField.SponsoredDataRateLimit.toString(), [true, limits.sponsoredDataRateLimit.toString()]]);
+          expect(limitsEvm[3]).to.deep.eq([CollectionLimitField.TokenLimit.toString(), [true, limits.tokenLimit.toString()]]);
+          expect(limitsEvm[4]).to.deep.eq([CollectionLimitField.SponsorTransferTimeout.toString(), [true, limits.sponsorTransferTimeout.toString()]]);
+          expect(limitsEvm[5]).to.deep.eq([CollectionLimitField.SponsorApproveTimeout.toString(), [true, limits.sponsorApproveTimeout.toString()]]);
+          expect(limitsEvm[6]).to.deep.eq([CollectionLimitField.OwnerCanTransfer.toString(), [true, limits.ownerCanTransfer.toString()]]);
+          expect(limitsEvm[7]).to.deep.eq([CollectionLimitField.OwnerCanDestroy.toString(), [true, limits.ownerCanDestroy.toString()]]);
+          expect(limitsEvm[8]).to.deep.eq([CollectionLimitField.TransferEnabled.toString(), [true, limits.transfersEnabled.toString()]]);
+        }));
+    });
+
+    describe('(!negative test!) Cannot set invalid collection limits', () => {
+      [
+        {case: 'nft' as const},
+        {case: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+        {case: 'ft' as const},
+      ].map(testCase =>
+        itEth.ifWithPallets(`for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {
+          const invalidLimits = {
+            accountTokenOwnershipLimit: BigInt(Number.MAX_SAFE_INTEGER),
+            transfersEnabled: 3,
+          };
+
+          const createCollectionData = {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'Limits',
+            description: 'absolutely anything',
+            tokenPrefix: 'ISNI',
+            collectionMode: testCase.case,
+          };
+
+          const owner = await helper.eth.createAccountWithBalance(donor);
+          await expect(helper.eth.createCollection(
+            owner,
+            {
+              ...createCollectionData,
+              limits: [{field: 9 as CollectionLimitField, value: 1n}],
+            },
+          ).call()).to.be.rejectedWith('value not convertible into enum "CollectionLimitField"');
+
+          await expect(helper.eth.createCollection(
+            owner,
+            {
+              ...createCollectionData,
+              limits: [{field: CollectionLimitField.AccountTokenOwnership, value: invalidLimits.accountTokenOwnershipLimit}],
+            },
+          ).call()).to.be.rejectedWith(`can't convert value to u32 "${invalidLimits.accountTokenOwnershipLimit}"`);
+
+          await expect(helper.eth.createCollection(
+            owner,
+            {
+              ...createCollectionData,
+              limits: [{field: CollectionLimitField.TransferEnabled, value: 3n}],
+            },
+          ).call()).to.be.rejectedWith(`can't convert value to boolean "${invalidLimits.transfersEnabled}"`);
+
+          await expect(helper.eth.createCollection(
+            owner,
+            {
+              ...createCollectionData,
+              limits: [{field: CollectionLimitField.SponsoredDataSize, value: -1n}],
+            },
+          ).call()).to.be.rejectedWith('value out-of-bounds');
+        }));
+    });
+  });
+
+  describe('Collection properties', () => {
+
+    [
+      {mode: 'nft' as const, methodParams: [{key: 'testKey1', value: Buffer.from('testValue1')}, {key: 'testKey2', value: Buffer.from('testValue2')}], expectedProps: [{key: 'testKey1', value: 'testValue1'}, {key: 'testKey2', value: 'testValue2'}]},
+      {mode: 'rft' as const, methodParams: [{key: 'testKey1', value: Buffer.from('testValue1')}, {key: 'testKey2', value: Buffer.from('testValue2')}], expectedProps: [{key: 'testKey1', value: 'testValue1'}, {key: 'testKey2', value: 'testValue2'}]},
+      {mode: 'ft' as const, methodParams: [{key: 'testKey1', value: Buffer.from('testValue1')}, {key: 'testKey2', value: Buffer.from('testValue2')}], expectedProps: [{key: 'testKey1', value: 'testValue1'}, {key: 'testKey2', value: 'testValue2'}]},
+    ].map(testCase =>
+      itEth.ifWithPallets(`Collection properties can be set for ${testCase.mode}`, testCase.mode === 'rft' ? [Pallets.ReFungible] : [], async({helper}) => {
+        const caller = await helper.eth.createAccountWithBalance(donor);
+        const callerCross = helper.ethCrossAccount.fromAddress(caller);
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const {collectionId, collectionAddress} = await helper.eth.createCollection(
+          owner,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'name',
+            description: 'test',
+            tokenPrefix: 'test',
+            collectionMode: testCase.mode,
+            adminList: [callerCross],
+            properties: testCase.methodParams,
+          },
+        ).send();
+
+        const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, caller);
+
+        const raw = (await helper[testCase.mode].getData(collectionId))?.raw;
+        expect(raw.properties).to.deep.equal(testCase.expectedProps);
+
+        // collectionProperties returns properties:
+        expect(await collectionEvm.methods.collectionProperties([]).call()).to.be.like(testCase.expectedProps.map(prop => helper.ethProperty.property(prop.key, prop.value)));
+      }));
+
+    [
+      {mode: 'nft' as const},
+      {mode: 'rft' as const},
+      {mode: 'ft' as const},
+    ].map(testCase =>
+      itEth.ifWithPallets(`Collection properties can be deleted for ${testCase.mode}`, testCase.mode === 'rft' ? [Pallets.ReFungible] : [], async({helper}) => {
+        const caller = await helper.eth.createAccountWithBalance(donor);
+        const callerCross = helper.ethCrossAccount.fromAddress(caller);
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const {collectionId, collectionAddress} = await helper.eth.createCollection(
+          owner,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'name',
+            description: 'test',
+            tokenPrefix: 'test',
+            collectionMode: testCase.mode,
+            adminList: [callerCross],
+            properties:[
+              {key: 'testKey1', value: Buffer.from('testValue1')},
+              {key: 'testKey2', value: Buffer.from('testValue2')},
+              {key: 'testKey3', value: Buffer.from('testValue3')}],
+          },
+        ).send();
+
+        const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, caller);
+
+        await collectionEvm.methods.deleteCollectionProperties(['testKey1', 'testKey2']).send({from: caller});
+
+        const raw = (await helper[testCase.mode].getData(collectionId))?.raw;
+
+        expect(raw.properties.length).to.equal(1);
+        expect(raw.properties).to.deep.equal([{key: 'testKey3', value: 'testValue3'}]);
+      }));
+
+    itEth('(!negative test!) Cannot set invalid properties', async({helper}) => {
+      const caller = await helper.eth.createAccountWithBalance(donor);
+      const callerCross = helper.ethCrossAccount.fromAddress(caller);
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const createCollectionData = {
+        ...CREATE_COLLECTION_DATA_DEFAULTS,
+        name: 'name',
+        description: 'test',
+        tokenPrefix: 'test',
+        collectionMode: 'nft' as TCollectionMode,
+        adminList: [callerCross],
+      };
+      await expect(helper.eth.createCollection(
+        owner,
+        {
+          ...createCollectionData,
+          properties: [{key: '', value: Buffer.from('val1')}],
+        },
+      ).call()).to.be.rejected;
+
+      await expect(helper.eth.createCollection(
+        owner,
+        {
+          ...createCollectionData,
+          properties: [{key: 'déjà vu', value: Buffer.from('hmm...')}],
+        },
+      ).call()).to.be.rejected;
+
+      await expect(helper.eth.createCollection(
+        owner,
+        {
+          ...createCollectionData,
+          properties: [{key: 'a'.repeat(257), value: Buffer.from('val3')}],
+        },
+      ).call()).to.be.rejected;
+    });
+
+    itEth('(!negative test!) cannot delete properties of non-owned collections', async ({helper}) => {
+      const caller = await helper.eth.createAccountWithBalance(donor);
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'name',
+          description: 'test',
+          tokenPrefix: 'test',
+          collectionMode: 'nft',
+          properties:[
+            {key: 'testKey1', value: Buffer.from('testValue1')},
+            {key: 'testKey2', value: Buffer.from('testValue2')}],
+        },
+      ).send();
+
+      const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', caller);
+
+      await expect(collectionEvm.methods.deleteCollectionProperties(['testKey2']).send({from: caller})).to.be.rejected;
+    });
+  });
+
+  describe('Token property permissions', () => {
+    [
+      {mode: 'nft' as const, requiredPallets: []},
+      {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+    ].map(testCase =>
+      itEth.ifWithPallets(`[${testCase.mode}] Can set all possible token property permissions`, testCase.requiredPallets, async({helper}) => {
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const caller = await helper.ethCrossAccount.createAccountWithBalance(donor);
+        for(const [mutable,collectionAdmin, tokenOwner] of cartesian([], [false, true], [false, true], [false, true])) {
+          const {collectionId, collectionAddress} = await helper.eth.createCollection(
+            owner,
+            {
+              ...CREATE_COLLECTION_DATA_DEFAULTS,
+              name: 'A',
+              description: 'B',
+              tokenPrefix: 'C',
+              collectionMode: testCase.mode,
+              adminList: [caller],
+              tokenPropertyPermissions: [
+                {
+                  key: 'testKey',
+                  permissions: [
+                    {code: TokenPermissionField.Mutable, value: mutable},
+                    {code: TokenPermissionField.TokenOwner, value: tokenOwner},
+                    {code: TokenPermissionField.CollectionAdmin, value: collectionAdmin},
+                  ],
+                },
+              ],
+            },
+          ).send();
+          const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
+
+          expect(await helper[testCase.mode].getPropertyPermissions(collectionId)).to.be.deep.equal([{
+            key: 'testKey',
+            permission: {mutable, collectionAdmin, tokenOwner},
+          }]);
+
+          expect(await collection.methods.tokenPropertyPermissions().call({from: caller.eth})).to.be.like([
+            ['testKey', [
+              [TokenPermissionField.Mutable.toString(), mutable],
+              [TokenPermissionField.TokenOwner.toString(), tokenOwner],
+              [TokenPermissionField.CollectionAdmin.toString(), collectionAdmin]],
+            ],
+          ]);
+        }
+      }));
+
+    [
+      {mode: 'nft' as const, requiredPallets: []},
+      {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+    ].map(testCase =>
+      itEth.ifWithPallets(`[${testCase.mode}] Can set multiple token property permissions`, testCase.requiredPallets, async({helper}) => {
+        const owner = await helper.eth.createAccountWithBalance(donor);
+        const {collectionId, collectionAddress} = await helper.eth.createCollection(
+          owner,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'A',
+            description: 'B',
+            tokenPrefix: 'C',
+            collectionMode: testCase.mode,
+            tokenPropertyPermissions: [
+              {
+                key: 'testKey_0',
+                permissions: [
+                  {code: TokenPermissionField.Mutable, value: true},
+                  {code: TokenPermissionField.TokenOwner, value: true},
+                  {code: TokenPermissionField.CollectionAdmin, value: true}],
+              },
+              {
+                key: 'testKey_1',
+                permissions: [
+                  {code: TokenPermissionField.Mutable, value: true},
+                  {code: TokenPermissionField.TokenOwner, value: false},
+                  {code: TokenPermissionField.CollectionAdmin, value: true}],
+              },
+              {
+                key: 'testKey_2',
+                permissions: [
+                  {code: TokenPermissionField.Mutable, value: false},
+                  {code: TokenPermissionField.TokenOwner, value: true},
+                  {code: TokenPermissionField.CollectionAdmin, value: false}],
+              },
+            ],
+          },
+        ).send();
+        const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
+
+        expect(await helper[testCase.mode].getPropertyPermissions(collectionId)).to.be.deep.equal([
+          {
+            key: 'testKey_0',
+            permission: {mutable: true, tokenOwner: true, collectionAdmin: true},
+          },
+          {
+            key: 'testKey_1',
+            permission: {mutable: true, tokenOwner: false, collectionAdmin: true},
+          },
+          {
+            key: 'testKey_2',
+            permission: {mutable: false, tokenOwner: true, collectionAdmin: false},
+          },
+        ]);
+
+        expect(await collection.methods.tokenPropertyPermissions().call({from: owner})).to.be.like([
+          ['testKey_0', [
+            [TokenPermissionField.Mutable.toString(), true],
+            [TokenPermissionField.TokenOwner.toString(), true],
+            [TokenPermissionField.CollectionAdmin.toString(), true]],
+          ],
+          ['testKey_1', [
+            [TokenPermissionField.Mutable.toString(), true],
+            [TokenPermissionField.TokenOwner.toString(), false],
+            [TokenPermissionField.CollectionAdmin.toString(), true]],
+          ],
+          ['testKey_2', [
+            [TokenPermissionField.Mutable.toString(), false],
+            [TokenPermissionField.TokenOwner.toString(), true],
+            [TokenPermissionField.CollectionAdmin.toString(), false]],
+          ],
+        ]);
+      }));
+
+    [
+      {mode: 'nft' as const, requiredPallets: []},
+      {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
+    ].map(testCase =>
+      itEth.ifWithPallets(`Can be deleted for ${testCase.mode}`, testCase.requiredPallets, async({helper}) => {
+        const caller = await helper.eth.createAccountWithBalance(donor);
+        const receiver = await helper.ethCrossAccount.createAccountWithBalance(donor);
+        const {collectionAddress} = await helper.eth.createCollection(
+          caller,
+          {
+            ...CREATE_COLLECTION_DATA_DEFAULTS,
+            name: 'A',
+            description: 'B',
+            tokenPrefix: 'C',
+            collectionMode: testCase.mode,
+            adminList: [receiver],
+            tokenPropertyPermissions: [
+              {
+                key: 'testKey',
+                permissions: [
+                  {code: TokenPermissionField.Mutable, value: true},
+                  {code: TokenPermissionField.CollectionAdmin, value: true}],
+              },
+              {
+                key: 'testKey_1',
+                permissions: [
+                  {code: TokenPermissionField.Mutable, value: true},
+                  {code: TokenPermissionField.CollectionAdmin, value: true}],
+              },
+            ],
+          },
+        ).send();
+
+        const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, caller);
+        const tokenId = (await collection.methods.mintCross(receiver, [{key: 'testKey', value: Buffer.from('testValue')}, {key: 'testKey_1', value: Buffer.from('testValue_1')}]).send()).events.Transfer.returnValues.tokenId;
+        expect(await collection.methods.properties(tokenId, ['testKey', 'testKey_1']).call()).to.has.length(2);
+
+        await collection.methods.deleteProperties(tokenId, ['testKey', 'testKey_1']).send({from: caller});
+        expect(await collection.methods.properties(tokenId, ['testKey', 'testKey_1']).call()).to.has.length(0);
+      }));
+  });
+
+  describe('Nesting', () => {
+    itEth('NFT: allows an Owner to nest/unnest their token', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'A',
+          description: 'B',
+          tokenPrefix: 'C',
+          collectionMode: 'nft',
+          nestingSettings: {token_owner: true, collection_admin: false, restricted: []},
+        },
+      ).send();
+
+      const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      // Create a token to be nested to
+      const mintingTargetNFTTokenIdResult = await contract.methods.mint(owner).send({from: owner});
+      const targetNFTTokenId = mintingTargetNFTTokenIdResult.events.Transfer.returnValues.tokenId;
+      const targetNftTokenAddress = helper.ethAddress.fromTokenId(collectionId, targetNFTTokenId);
+
+      // Create a nested token
+      const mintingFirstTokenIdResult = await contract.methods.mint(targetNftTokenAddress).send({from: owner});
+      const firstTokenId = mintingFirstTokenIdResult.events.Transfer.returnValues.tokenId;
+      expect(await contract.methods.ownerOf(firstTokenId).call()).to.be.equal(targetNftTokenAddress);
+
+      // Create a token to be nested and nest
+      const mintingSecondTokenIdResult = await contract.methods.mint(owner).send({from: owner});
+      const secondTokenId = mintingSecondTokenIdResult.events.Transfer.returnValues.tokenId;
+
+      await contract.methods.transfer(targetNftTokenAddress, secondTokenId).send({from: owner});
+      expect(await contract.methods.ownerOf(secondTokenId).call()).to.be.equal(targetNftTokenAddress);
+
+      // Unnest token back
+      await contract.methods.transferFrom(targetNftTokenAddress, owner, secondTokenId).send({from: owner});
+      expect(await contract.methods.ownerOf(secondTokenId).call()).to.be.equal(owner);
+    });
+
+    itEth('NFT: collectionNesting()', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress: unnestedCollectionAddress} = await helper.eth.createCollection(
+        owner,
+        new CreateCollectionData('A', 'B', 'C', 'nft'),
+      ).send();
+
+      const unnestedContract = await helper.ethNativeContract.collection(unnestedCollectionAddress, 'nft', owner);
+      expect(await unnestedContract.methods.collectionNesting().call({from: owner})).to.be.like([false, false, []]);
+
+      const {collectionAddress} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'A',
+          description: 'B',
+          tokenPrefix: 'C',
+          collectionMode: 'nft',
+          nestingSettings: {token_owner: true, collection_admin: false, restricted: [unnestedCollectionAddress.toString()]},
+        },
+      ).send();
+
+      const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([true, false, [unnestedCollectionAddress.toString()]]);
+      await contract.methods.setCollectionNesting([false, false, []]).send({from: owner});
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([false, false, []]);
+    });
+
+    itEth('NFT: disallows to nest token if nesting is disabled', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      const {collectionId, collectionAddress} = await helper.eth.createCollection(
+        owner,
+        {
+          ...CREATE_COLLECTION_DATA_DEFAULTS,
+          name: 'A',
+          description: 'B',
+          tokenPrefix: 'C',
+          collectionMode: 'nft',
+          nestingSettings: {token_owner: false, collection_admin: false, restricted: []},
+        },
+      ).send();
+
+      const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+      // Create a token to nest into
+      const mintingTargetTokenIdResult = await contract.methods.mint(owner).send({from: owner});
+      const targetTokenId = mintingTargetTokenIdResult.events.Transfer.returnValues.tokenId;
+      const targetNftTokenAddress = helper.ethAddress.fromTokenId(collectionId, targetTokenId);
+
+      // Create a token to nest
+      const mintingNftTokenIdResult = await contract.methods.mint(owner).send({from: owner});
+      const nftTokenId = mintingNftTokenIdResult.events.Transfer.returnValues.tokenId;
+
+      // Try to nest
+      await expect(contract.methods
+        .transfer(targetNftTokenAddress, nftTokenId)
+        .call({from: owner})).to.be.rejectedWith('UserIsNotAllowedToNest');
+    });
+  });
+
+  describe('Flags', () => {
+    const createCollectionData = {
+      ...CREATE_COLLECTION_DATA_DEFAULTS,
+      name: 'A',
+      description: 'B',
+      tokenPrefix: 'C',
+      collectionMode: 'nft' as TCollectionMode,
+    };
+
+    itEth('NFT: use numbers for flags', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: 0}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: false});
+      }
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: 64}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: true});
+      }
+    });
+
+    itEth('NFT: foreign flag number is ignored', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: 128}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: false});
+      }
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: 192}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: true});
+      }
+    });
+
+    itEth('NFT: use enum for flags', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: [CollectionFlag.Erc721metadata]}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: true});
+      }
+    });
+
+    itEth('NFT: foreign flag enum is ignored', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: [CollectionFlag.Foreign]}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: false});
+      }
+
+      {
+        const {collectionId} = await helper.eth.createCollection(owner, {...createCollectionData, flags: [CollectionFlag.Erc721metadata | CollectionFlag.Foreign]}).send();
+        expect((await helper.nft.getData(collectionId))?.raw.flags).to.be.deep.equal({foreign: false, erc721metadata: true});
+      }
+    });
+  });
+});
modifiedtests/src/eth/destroyCollection.test.tsdiffbeforeafterboth
--- a/tests/src/eth/destroyCollection.test.ts
+++ b/tests/src/eth/destroyCollection.test.ts
@@ -17,13 +17,15 @@
 import {IKeyringPair} from '@polkadot/types/types';
 import {Pallets} from '../util';
 import {expect, itEth, usingEthPlaygrounds} from './util';
+import {TCollectionMode} from '../util/playgrounds/types';
+import {CreateCollectionData} from './util/playgrounds/types';
 
 describe('Destroy Collection from EVM', function() {
   let donor: IKeyringPair;
   const testCases = [
-    {case: 'rft' as const, params: ['Limits', 'absolutely anything', 'OLF'], requiredPallets: [Pallets.ReFungible]},
-    {case: 'nft' as const, params: ['Limits', 'absolutely anything', 'OLF'], requiredPallets: [Pallets.NFT]},
-    {case: 'ft' as const, params: ['Limits', 'absolutely anything', 'OLF', 18], requiredPallets: [Pallets.Fungible]},
+    {case: 'rft' as const, params: ['Limits', 'absolutely anything', 'OLF', 'rft'], requiredPallets: [Pallets.ReFungible]},
+    {case: 'nft' as const, params: ['Limits', 'absolutely anything', 'OLF', 'nft'], requiredPallets: [Pallets.NFT]},
+    {case: 'ft' as const, params: ['Limits', 'absolutely anything', 'OLF', 'ft', 18], requiredPallets: [Pallets.Fungible]},
   ];
 
   before(async function() {
@@ -40,8 +42,7 @@
       const unexistedCollection = helper.ethAddress.fromCollectionId(1000000);
 
       const collectionHelpers = await helper.ethNativeContract.collectionHelpers(signer);
-      const {collectionAddress} = await helper.eth.createCollection(testCase.case, owner, ...testCase.params as [string, string, string, number?]);
-
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData(...testCase.params as [string, string, string, TCollectionMode, number?])).send();
       // cannot burn collec
       await expect(collectionHelpers.methods
         .destroyCollection(collectionAddress)
modifiedtests/src/eth/events.test.tsdiffbeforeafterboth
--- a/tests/src/eth/events.test.ts
+++ b/tests/src/eth/events.test.ts
@@ -19,7 +19,7 @@
 import {EthUniqueHelper, itEth, usingEthPlaygrounds} from './util';
 import {IEvent, TCollectionMode} from '../util/playgrounds/types';
 import {Pallets, requirePalletsOrSkip} from '../util';
-import {CollectionLimitField, TokenPermissionField, NormalizedEvent} from './util/playgrounds/types';
+import {CollectionLimitField, TokenPermissionField, NormalizedEvent, CreateCollectionData} from './util/playgrounds/types';
 
 let donor: IKeyringPair;
 
@@ -39,7 +39,8 @@
 async function testCollectionCreatedAndDestroy(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
   const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionCreated', 'CollectionDestroyed']}]);
-  const {collectionAddress, events: ethEvents} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress, events: ethEvents} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
+
   await helper.wait.newBlocks(1);
   {
     expect(ethEvents).to.containSubset([
@@ -72,7 +73,7 @@
 
 async function testCollectionPropertySetAndDeleted(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
 
@@ -113,7 +114,7 @@
 
 async function testPropertyPermissionSet(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -144,7 +145,7 @@
 async function testAllowListAddressAddedAndRemoved(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
   const user = helper.ethCrossAccount.createAccount();
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any[] = [];
@@ -186,7 +187,7 @@
 async function testCollectionAdminAddedAndRemoved(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
   const user = helper.ethCrossAccount.createAccount();
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -226,7 +227,7 @@
 
 async function testCollectionLimitSet(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -253,7 +254,7 @@
 async function testCollectionOwnerChanged(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
   const newOwner = helper.ethCrossAccount.createAccount();
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -279,7 +280,7 @@
 
 async function testCollectionPermissionSet(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -320,7 +321,7 @@
 async function testCollectionSponsorSetAndConfirmedAndThenRemoved(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
   const sponsor = await helper.ethCrossAccount.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const collectionHelper = await helper.ethNativeContract.collectionHelpers(owner);
   const ethEvents: any = [];
@@ -374,7 +375,7 @@
 
 async function testTokenPropertySetAndDeleted(helper: EthUniqueHelper, mode: TCollectionMode) {
   const owner = await helper.eth.createAccountWithBalance(donor);
-  const {collectionAddress} = await helper.eth.createCollection(mode, owner, 'A', 'B', 'C');
+  const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', mode, 18)).send();
   const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
   const result = await collection.methods.mint(owner).send({from: owner});
   const tokenId = result.events.Transfer.returnValues.tokenId;
modifiedtests/src/eth/marketplace-v2/Market.soldiffbeforeafterboth
--- a/tests/src/eth/marketplace-v2/Market.sol
+++ b/tests/src/eth/marketplace-v2/Market.sol
@@ -7,7 +7,7 @@
 import "@openzeppelin/contracts/access/Ownable.sol";
 import { UniqueNFT, CrossAddress } from "@unique-nft/solidity-interfaces/contracts/UniqueNFT.sol";
 import { UniqueFungible, CrossAddress as CrossAddressF } from "@unique-nft/solidity-interfaces/contracts/UniqueFungible.sol";
-import "@unique-nft/solidity-interfaces/contracts/CollectionHelpers.sol";
+import { CollectionHelpers } from "@unique-nft/solidity-interfaces/contracts/CollectionHelpers.sol";
 import "./royalty/UniqueRoyaltyHelper.sol";
 
 contract Market is Ownable, ReentrancyGuard {
modifiedtests/src/eth/marketplace/marketplace.test.tsdiffbeforeafterboth
--- a/tests/src/eth/marketplace/marketplace.test.ts
+++ b/tests/src/eth/marketplace/marketplace.test.ts
@@ -60,7 +60,7 @@
     await helpers.methods.setSponsor(matcher.options.address, sponsor).send({from: matcherOwner});
     await helpers.methods.confirmSponsorship(matcher.options.address).send({from: sponsor});
 
-    const collection = await helper.nft.mintCollection(alice, {limits: {sponsorApproveTimeout: 1}, pendingSponsor: alice.address});
+    const collection = await helper.nft.mintCollection(alice, {limits: {sponsorApproveTimeout: 1}, pendingSponsor: {Substrate: alice.address}});
     await collection.confirmSponsorship(alice);
     await collection.addToAllowList(alice, {Substrate: aliceDoubleMirror});
     const evmCollection = await helper.ethNativeContract.collection(helper.ethAddress.fromCollectionId(collection.collectionId), 'nft');
@@ -114,7 +114,7 @@
     await helpers.methods.setSponsor(matcher.options.address, sponsor).send({from: matcherOwner});
     await helpers.methods.confirmSponsorship(matcher.options.address).send({from: sponsor});
 
-    const collection = await helper.nft.mintCollection(alice, {limits: {sponsorApproveTimeout: 1}, pendingSponsor: alice.address});
+    const collection = await helper.nft.mintCollection(alice, {limits: {sponsorApproveTimeout: 1}, pendingSponsor: {Substrate: alice.address}});
     await collection.confirmSponsorship(alice);
     await collection.addToAllowList(alice, {Substrate: aliceDoubleMirror});
     const evmCollection = await helper.ethNativeContract.collection(helper.ethAddress.fromCollectionId(collection.collectionId), 'nft');
modifiedtests/src/eth/nesting/nest.test.tsdiffbeforeafterboth
--- a/tests/src/eth/nesting/nest.test.ts
+++ b/tests/src/eth/nesting/nest.test.ts
@@ -6,11 +6,12 @@
 const createNestingCollection = async (
   helper: EthUniqueHelper,
   owner: string,
+  mergeDeprecated = false,
 ): Promise<{ collectionId: number, collectionAddress: string, contract: Contract }> => {
   const {collectionAddress, collectionId} = await helper.eth.createNFTCollection(owner, 'A', 'B', 'C');
 
-  const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
-  await contract.methods.setCollectionNesting(true).send({from: owner});
+  const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner, mergeDeprecated);
+  await contract.methods.setCollectionNesting([true, false, []]).send({from: owner});
 
   return {collectionId, collectionAddress, contract};
 };
@@ -52,27 +53,44 @@
       expect(await contract.methods.ownerOf(secondTokenId).call()).to.be.equal(owner);
     });
 
+    itEth('NFT: collectionNesting()', async ({helper}) => {
+      const owner = await helper.eth.createAccountWithBalance(donor);
+      const {collectionAddress: unnestedCollectionAddress} = await helper.eth.createNFTCollection(owner, 'A', 'B', 'C');
+      const unnestedContract = await helper.ethNativeContract.collection(unnestedCollectionAddress, 'nft', owner);
+      expect(await unnestedContract.methods.collectionNesting().call({from: owner})).to.be.like([false, false, []]);
+
+      const {contract} = await createNestingCollection(helper, owner);
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([true, false, []]);
+      await contract.methods.setCollectionNesting([true, false, [unnestedCollectionAddress]]).send({from: owner});
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([true, false, [unnestedCollectionAddress]]);
+      await contract.methods.setCollectionNesting([false, true, [unnestedCollectionAddress]]).send({from: owner});
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([false, true, [unnestedCollectionAddress]]);
+      await contract.methods.setCollectionNesting([false, false, []]).send({from: owner});
+      expect(await contract.methods.collectionNesting().call({from: owner})).to.be.like([false, false, []]);
+    });
+
+    // Sof-deprecated
     itEth('NFT: collectionNestingRestrictedCollectionIds() & collectionNestingPermissions', async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
       const {collectionId: unnestedCollsectionId, collectionAddress: unnsetedCollectionAddress} = await helper.eth.createNFTCollection(owner, 'A', 'B', 'C');
-      const unnestedContract = await helper.ethNativeContract.collection(unnsetedCollectionAddress, 'nft', owner);
+      const unnestedContract = await helper.ethNativeContract.collection(unnsetedCollectionAddress, 'nft', owner, true);
       expect(await unnestedContract.methods.collectionNestingRestrictedCollectionIds().call({from: owner})).to.be.like([false, []]);
 
-      const {contract} = await createNestingCollection(helper, owner);
+      const {contract} = await createNestingCollection(helper, owner, true);
       expect(await contract.methods.collectionNestingRestrictedCollectionIds().call({from: owner})).to.be.like([true, []]);
-      await contract.methods.setCollectionNesting(true, [unnsetedCollectionAddress]).send({from: owner});
+      await contract.methods['setCollectionNesting(bool,address[])'](true, [unnsetedCollectionAddress]).send({from: owner});
       expect(await contract.methods.collectionNestingRestrictedCollectionIds().call({from: owner})).to.be.like([true, [unnestedCollsectionId.toString()]]);
       expect(await contract.methods.collectionNestingPermissions().call({from: owner})).to.be.like([['1', false], ['0', true]]);
-      await contract.methods.setCollectionNesting(false).send({from: owner});
+      await contract.methods['setCollectionNesting(bool)'](false).send({from: owner});
       expect(await contract.methods.collectionNestingPermissions().call({from: owner})).to.be.like([['1', false], ['0', false]]);
     });
 
     itEth('NFT: allows an Owner to nest/unnest their token (Restricted nesting)', async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionId: collectionIdA, collectionAddress: collectionAddressA, contract: contractA} = await createNestingCollection(helper, owner);
-      const {collectionAddress: collectionAddressB, contract: contractB} = await createNestingCollection(helper, owner);
-      await contractA.methods.setCollectionNesting(true, [collectionAddressA, collectionAddressB]).send({from: owner});
+      const {collectionId: collectionIdA, contract: contractA} = await createNestingCollection(helper, owner);
+      const {contract: contractB} = await createNestingCollection(helper, owner);
+      await contractA.methods.setCollectionNesting([true, false, [contractA.options.address, contractB.options.address]]).send({from: owner});
 
       // Create a token to nest into
       const mintingtargetNftTokenIdResult = await contractA.methods.mint(owner).send({from: owner});
@@ -101,7 +119,7 @@
       const owner = await helper.eth.createAccountWithBalance(donor);
 
       const {collectionId, contract} = await createNestingCollection(helper, owner);
-      await contract.methods.setCollectionNesting(false).send({from: owner});
+      await contract.methods.setCollectionNesting([false, false, []]).send({from: owner});
 
       // Create a token to nest into
       const mintingTargetTokenIdResult = await contract.methods.mint(owner).send({from: owner});
@@ -143,10 +161,10 @@
       const owner = await helper.eth.createAccountWithBalance(donor);
       const malignant = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionId: collectionIdA, collectionAddress: collectionAddressA, contract: contractA} = await createNestingCollection(helper, owner);
-      const {collectionAddress: collectionAddressB, contract: contractB} = await createNestingCollection(helper, owner);
+      const {collectionId: collectionIdA, contract: contractA} = await createNestingCollection(helper, owner);
+      const {collectionId: collectionIdB, contract: contractB} = await createNestingCollection(helper, owner);
 
-      await contractA.methods.setCollectionNesting(true, [collectionAddressA, collectionAddressB]).send({from: owner});
+      await contractA.methods.setCollectionNesting([true, false, [contractA.options.address, contractB.options.address]]).send({from: owner});
 
       // Create a token in one collection
       const mintingTokenIdAResult = await contractA.methods.mint(owner).send({from: owner});
@@ -166,10 +184,10 @@
     itEth('NFT: disallows to nest token in an unlisted collection', async ({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionId: collectionIdA, collectionAddress: collectionAddressA, contract: contractA} = await createNestingCollection(helper, owner);
+      const {collectionId: collectionIdA, contract: contractA} = await createNestingCollection(helper, owner);
       const {contract: contractB} = await createNestingCollection(helper, owner);
 
-      await contractA.methods.setCollectionNesting(true, [collectionAddressA]).send({from: owner});
+      await contractA.methods.setCollectionNesting([true, false, [contractA.options.address]]).send({from: owner});
 
       // Create a token in one collection
       const mintingTokenIdAResult = await contractA.methods.mint(owner).send({from: owner});
@@ -251,7 +269,7 @@
       itEth(`Disallow nest into collection without nesting permission [${testCase.mode}] (except for native fungible collection)`, async ({helper}) => {
         const owner = await helper.eth.createAccountWithBalance(donor);
         const {collectionId: targetCollectionId, contract: targetContract} = await createNestingCollection(helper, owner);
-        await targetContract.methods.setCollectionNesting(false).send({from: owner});
+        await targetContract.methods.setCollectionNesting([false, false, []]).send({from: owner});
 
         const {contract: ftContract} = await createFungibleCollection(helper, owner, testCase.mode);
 
modifiedtests/src/eth/tokenProperties.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokenProperties.test.ts
+++ b/tests/src/eth/tokenProperties.test.ts
@@ -20,7 +20,7 @@
 import {ITokenPropertyPermission} from '../util/playgrounds/types';
 import {Pallets} from '../util';
 import {UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection} from '../util/playgrounds/unique';
-import {TokenPermissionField} from './util/playgrounds/types';
+import {CreateCollectionData, TokenPermissionField} from './util/playgrounds/types';
 
 describe('EVM token properties', () => {
   let donor: IKeyringPair;
@@ -41,7 +41,7 @@
       const owner = await helper.eth.createAccountWithBalance(donor);
       const caller = await helper.ethCrossAccount.createAccountWithBalance(donor);
       for(const [mutable,collectionAdmin, tokenOwner] of cartesian([], [false, true], [false, true], [false, true])) {
-        const {collectionId, collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+        const {collectionId, collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
         const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
         await collection.methods.addCollectionAdminCross(caller).send({from: owner});
 
@@ -75,7 +75,7 @@
     itEth.ifWithPallets(`[${testCase.mode}] Can set multiple token property permissions as owner`, testCase.requiredPallets, async({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionId, collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionId, collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
 
       await collection.methods.setTokenPropertyPermissions([
@@ -138,7 +138,7 @@
       const owner = await helper.eth.createAccountWithBalance(donor);
       const caller = await helper.ethCrossAccount.createAccountWithBalance(donor);
 
-      const {collectionId, collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionId, collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
       await collection.methods.addCollectionAdminCross(caller).send({from: owner});
 
@@ -455,7 +455,7 @@
       const owner = await helper.eth.createAccountWithBalance(donor);
       const caller = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
 
       await expect(collection.methods.setTokenPropertyPermissions([
@@ -474,7 +474,7 @@
     itEth.ifWithPallets(`[${testCase.mode}] Cannot set token property permissions with invalid character`, testCase.requiredPallets, async({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
 
       await expect(collection.methods.setTokenPropertyPermissions([
@@ -494,7 +494,7 @@
     itEth.ifWithPallets(`[${testCase.mode}] Can reconfigure token property permissions to stricter ones`, testCase.requiredPallets, async({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
 
       // 1. Owner sets strict property-permissions:
@@ -530,7 +530,7 @@
     itEth.ifWithPallets(`[${testCase.mode}] Cannot reconfigure token property permissions to less strict ones`, testCase.requiredPallets, async({helper}) => {
       const owner = await helper.eth.createAccountWithBalance(donor);
 
-      const {collectionAddress} = await helper.eth.createCollection(testCase.mode, owner, 'A', 'B', 'C');
+      const {collectionAddress} = await helper.eth.createCollection(owner, new CreateCollectionData('A', 'B', 'C', testCase.mode)).send();
       const collection = await helper.ethNativeContract.collection(collectionAddress, testCase.mode, owner);
 
       // 1. Owner sets strict property-permissions:
modifiedtests/src/eth/tokens/callMethodsERC20.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokens/callMethodsERC20.test.ts
+++ b/tests/src/eth/tokens/callMethodsERC20.test.ts
@@ -17,6 +17,7 @@
 import {Pallets, requirePalletsOrSkip} from '../../util';
 import {expect, itEth, usingEthPlaygrounds} from '../util';
 import {IKeyringPair} from '@polkadot/types/types';
+import {CreateCollectionData} from '../util/playgrounds/types';
 
 [
   {mode: 'ft' as const, requiredPallets: []},
@@ -36,7 +37,7 @@
       const caller = await helper.eth.createAccountWithBalance(donor);
       const mintingParams = testCase.mode === 'ft' ? [caller, 200n] : [caller];
 
-      const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'TotalSupply', '6', '6');
+      const {collection, collectionId} = await helper.eth.createCollection(caller, new CreateCollectionData('TotalSupply', '6', '6', testCase.mode)).send();
       if(testCase.mode === 'rft') await collection.methods.mint(caller).send({from: caller});
 
       // Use collection contract for FT or token contract for RFT:
@@ -57,7 +58,7 @@
       const caller = await helper.eth.createAccountWithBalance(donor);
       const mintingParams = testCase.mode === 'ft' ? [caller, 200n] : [caller];
 
-      const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'BalanceOf', 'Descroption', 'Prefix');
+      const {collection, collectionId} = await helper.eth.createCollection(caller, new CreateCollectionData('BalanceOf', 'Descroption', 'Prefix', testCase.mode)).send();
       if(testCase.mode === 'rft') await collection.methods.mint(caller).send({from: caller});
 
       // Use collection contract for FT or token contract for RFT:
@@ -76,7 +77,7 @@
 
     itEth('decimals', async ({helper}) => {
       const caller = await helper.eth.createAccountWithBalance(donor);
-      const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'BalanceOf', 'Descroption', 'Prefix');
+      const {collection, collectionId} = await helper.eth.createCollection(caller, new CreateCollectionData('BalanceOf', 'Descroption', 'Prefix', testCase.mode)).send();
       if(testCase.mode === 'rft') await collection.methods.mint(caller).send({from: caller});
 
       // Use collection contract for FT or token contract for RFT:
modifiedtests/src/eth/tokens/callMethodsERC721.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokens/callMethodsERC721.test.ts
+++ b/tests/src/eth/tokens/callMethodsERC721.test.ts
@@ -17,6 +17,7 @@
 import {Pallets} from '../../util';
 import {expect, itEth, usingEthPlaygrounds} from '../util';
 import {IKeyringPair} from '@polkadot/types/types';
+import {CreateCollectionData} from '../util/playgrounds/types';
 
 
 describe('ERC-721 call methods', () => {
@@ -37,7 +38,7 @@
       const [callerSub] = await helper.arrange.createAccounts([100n], donor);
       const [name, description, tokenPrefix] = ['Name', 'Description', 'Symbol'];
 
-      const {collection: collectionEth} = await helper.eth.createCollection(testCase.mode, callerEth, name, description, tokenPrefix);
+      const {collection: collectionEth} = await helper.eth.createCollection(callerEth, new CreateCollectionData(name, description, tokenPrefix, testCase.mode)).send();
       await collectionEth.methods.mint(callerEth).send({from: callerEth});
       const {collectionId} = await helper[testCase.mode].mintCollection(callerSub, {name, description, tokenPrefix});
       const collectionSub = await helper.ethNativeContract.collectionById(collectionId, testCase.mode, callerEth);
@@ -60,7 +61,7 @@
     itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: totalSupply`, testCase.requiredPallets, async ({helper}) => {
       const caller = await helper.eth.createAccountWithBalance(donor);
 
-      const {collection} = await helper.eth.createCollection(testCase.mode, caller, 'TotalSupply', '6', '6');
+      const {collection} = await helper.eth.createCollection(caller, new CreateCollectionData('TotalSupply', '6', '6', testCase.mode)).send();
       await collection.methods.mint(caller).send({from: caller});
 
       const totalSupply = await collection.methods.totalSupply().call();
@@ -75,7 +76,7 @@
     itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: balanceOf`, testCase.requiredPallets, async ({helper}) => {
       const caller = await helper.eth.createAccountWithBalance(donor);
 
-      const {collection} = await helper.eth.createCollection(testCase.mode, caller, 'BalanceOf', 'Descroption', 'Prefix');
+      const {collection} = await helper.eth.createCollection(caller, new CreateCollectionData('BalanceOf', 'Descroption', 'Prefix', testCase.mode)).send();
       await collection.methods.mint(caller).send({from: caller});
       await collection.methods.mint(caller).send({from: caller});
       await collection.methods.mint(caller).send({from: caller});
@@ -91,7 +92,7 @@
   ].map(testCase => {
     itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: ownerOf`, testCase.requiredPallets, async ({helper}) => {
       const caller = await helper.eth.createAccountWithBalance(donor);
-      const {collection} = await helper.eth.createCollection(testCase.mode, caller, 'OwnerOf', '6', '6');
+      const {collection} = await helper.eth.createCollection(caller, new CreateCollectionData('OwnerOf', '6', '6', testCase.mode)).send();
 
       const result = await collection.methods.mint(caller).send();
       const tokenId = result.events.Transfer.returnValues.tokenId;
@@ -108,7 +109,7 @@
     itEth.ifWithPallets(`${testCase.mode.toUpperCase()}: ownerOf after burn`, testCase.requiredPallets, async ({helper}) => {
       const caller = await helper.eth.createAccountWithBalance(donor);
       const receiver = helper.eth.createAccount();
-      const {collection, collectionId} = await helper.eth.createCollection(testCase.mode, caller, 'OwnerOf-AfterBurn', '6', '6');
+      const {collection, collectionId} = await helper.eth.createCollection(caller, new CreateCollectionData('OwnerOf-AfterBurn', '6', '6', testCase.mode)).send();
 
       const result = await collection.methods.mint(caller).send();
       const tokenId = result.events.Transfer.returnValues.tokenId;
modifiedtests/src/eth/tokens/minting.test.tsdiffbeforeafterboth
--- a/tests/src/eth/tokens/minting.test.ts
+++ b/tests/src/eth/tokens/minting.test.ts
@@ -17,6 +17,7 @@
 import {IKeyringPair} from '@polkadot/types/types';
 import {Pallets} from '../../util';
 import {expect, itEth, usingEthPlaygrounds} from '../util';
+import {CreateCollectionData} from '../util/playgrounds/types';
 
 
 describe('Minting tokens', () => {
@@ -78,7 +79,7 @@
       const receiver = helper.eth.createAccount();
       const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver];
 
-      const {collection, collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'Name', 'Desc', 'Prefix');
+      const {collection, collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('Name', 'Desc', 'Prefix', testCase.mode)).send();
 
       const result = await collection.methods.mint(...mintingParams).send({from: owner});
 
@@ -112,7 +113,7 @@
       const receiver = helper.eth.createAccount();
       const mintingParams = testCase.mode === 'ft' ? [receiver, 100] : [receiver];
 
-      const {collection, collectionAddress, collectionId} = await helper.eth.createCollection(testCase.mode, owner, 'Name', 'Desc', 'Prefix');
+      const {collection, collectionAddress, collectionId} = await helper.eth.createCollection(owner, new CreateCollectionData('Name', 'Desc', 'Prefix', testCase.mode)).send();
 
       const result = await collection.methods.mint(...mintingParams).send({from: owner});
 
modifiedtests/src/eth/util/playgrounds/types.tsdiffbeforeafterboth
--- a/tests/src/eth/util/playgrounds/types.ts
+++ b/tests/src/eth/util/playgrounds/types.ts
@@ -1,3 +1,5 @@
+import {CollectionFlag, TCollectionMode} from '../../../util/playgrounds/types';
+
 export interface ContractImports {
   solPath: string;
   fsPath: string;
@@ -19,8 +21,10 @@
   value: bigint,
 }
 
+export type EthAddress = string;
+
 export interface CrossAddress {
-  readonly eth: string,
+  readonly eth: EthAddress,
   readonly sub: string | Uint8Array,
 }
 
@@ -48,3 +52,81 @@
   field: CollectionLimitField,
   value: OptionUint,
 }
+
+export interface CollectionLimitValue {
+  field: CollectionLimitField,
+  value: bigint,
+}
+
+export enum CollectionMode {
+	Fungible,
+	Nonfungible,
+	Refungible,
+}
+
+export interface PropertyPermission {
+  code: TokenPermissionField,
+  value: boolean,
+}
+export interface TokenPropertyPermission {
+  key: string,
+  permissions: PropertyPermission[],
+}
+export interface CollectionNestingAndPermission {
+  token_owner: boolean,
+  collection_admin: boolean,
+  restricted: string[],
+}
+
+export const emptyAddress: [string, string] = [
+  '0x0000000000000000000000000000000000000000',
+  '0',
+];
+
+export const CREATE_COLLECTION_DATA_DEFAULTS = {
+  decimals: 0,
+  properties: [],
+  tokenPropertyPermissions: [],
+  adminList: [],
+  nestingSettings: {token_owner: false, collection_admin: false, restricted: []},
+  limits: [],
+  pendingSponsor: emptyAddress,
+  flags: 0,
+};
+
+export interface Property {
+  key: string;
+  value: Buffer;
+}
+
+export class CreateCollectionData {
+  name: string;
+  description: string;
+  tokenPrefix: string;
+  collectionMode: TCollectionMode;
+  decimals? = 0;
+  properties?: Property[] = [];
+  tokenPropertyPermissions?: TokenPropertyPermission[] = [];
+  adminList?: CrossAddress[] = [];
+  nestingSettings?: CollectionNestingAndPermission = {token_owner: false, collection_admin: false, restricted: []};
+  limits?: CollectionLimitValue[] = [];
+  pendingSponsor?: [string, string] = emptyAddress;
+  flags?: number | CollectionFlag[] = [0];
+
+  constructor(
+    name: string,
+    description: string,
+    tokenPrefix: string,
+    collectionMode: TCollectionMode,
+    decimals = 18,
+  ) {
+    this.name = name;
+    this.description = description;
+    this.tokenPrefix = tokenPrefix;
+    this.collectionMode = collectionMode;
+    if(collectionMode == 'ft')
+      this.decimals = decimals;
+    else
+      this.decimals = 0;
+  }
+}
\ No newline at end of file
modifiedtests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth
--- a/tests/src/eth/util/playgrounds/unique.dev.ts
+++ b/tests/src/eth/util/playgrounds/unique.dev.ts
@@ -18,7 +18,7 @@
 
 import {ArrangeGroup, DevUniqueHelper} from '../../../util/playgrounds/unique.dev';
 
-import {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty} from './types';
+import {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty, CollectionMode, CreateCollectionData} from './types';
 
 // Native contracts ABI
 import collectionHelpersAbi from '../../abi/collectionHelpers.json' assert {type: 'json'};
@@ -50,7 +50,6 @@
   }
 }
 
-
 class ContractGroup extends EthGroupBase {
   async findImports(imports?: ContractImports[]) {
     if(!imports) return function(path: string) {
@@ -181,7 +180,84 @@
   }
 }
 
+class CreateCollectionTransaction {
+  signer: string;
+  data: CreateCollectionData;
+  mergeDeprecated: boolean;
+  helper: EthUniqueHelper;
+
+  constructor(helper: EthUniqueHelper, signer: string, data: CreateCollectionData, mergeDeprecated = false) {
+    this.helper = helper;
+    this.signer = signer;
+
+    let flags = 0;
+    // convert CollectionFlags to number and join them in one number
+    if(!data.flags || typeof data.flags == 'number') {
+      flags = data.flags ?? 0;
+    } else {
+      for(let i = 0; i < data.flags.length; i++){
+        const flag = data.flags[i];
+        flags = flags | flag;
+      }
+    }
+    data.flags = flags;
+
+    this.data = data;
+    this.mergeDeprecated = mergeDeprecated;
+  }
+
+  private async createTransaction() {
+    const collectionHelper = await this.helper.ethNativeContract.collectionHelpers(this.signer);
+    let collectionMode;
+    switch (this.data.collectionMode) {
+      case 'nft': collectionMode = CollectionMode.Nonfungible; break;
+      case 'rft': collectionMode = CollectionMode.Refungible; break;
+      case 'ft': collectionMode = CollectionMode.Fungible; break;
+    }
+
+    const tx = collectionHelper.methods.createCollection([
+      this.data.pendingSponsor,
+      this.data.name,
+      this.data.description,
+      this.data.tokenPrefix,
+      collectionMode,
+      this.data.decimals,
+      this.data.properties,
+      this.data.tokenPropertyPermissions,
+      this.data.adminList,
+      this.data.nestingSettings,
+      this.data.limits,
+      this.data.flags,
+    ]);
+    return tx;
+  }
+
+  async send(options?: any): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[], collection: Contract }> {
+    const collectionCreationPrice = {
+      value: Number(this.helper.balance.getCollectionCreationPrice()),
+    };
+    const tx = await this.createTransaction();
+    const result = await tx.send({...options, ...collectionCreationPrice});
 
+    const collectionAddress = this.helper.ethAddress.normalizeAddress(result.events.CollectionCreated.returnValues.collectionId);
+    const collectionId = this.helper.ethAddress.extractCollectionId(collectionAddress);
+    const events = this.helper.eth.normalizeEvents(result.events);
+    const collection = await this.helper.ethNativeContract.collectionById(collectionId, this.data.collectionMode, this.signer, this.mergeDeprecated);
+
+    return {collectionId, collectionAddress, events, collection};
+  }
+
+  async call(options?: any) {
+    const collectionCreationPrice = {
+      value: Number(this.helper.balance.getCollectionCreationPrice()),
+    };
+    const tx = await this.createTransaction();
+
+    return await tx.call({...options, ...collectionCreationPrice});
+  }
+}
+
+
 class EthGroup extends EthGroupBase {
   DEFAULT_GAS = 2_500_000;
 
@@ -236,30 +312,28 @@
     }
   }
 
-  async createCollection(mode: TCollectionMode, signer: string, name: string, description: string, tokenPrefix: string, decimals = 18, mergeDeprecated = false): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[], collection: Contract }> {
-    const collectionCreationPrice = this.helper.balance.getCollectionCreationPrice();
+  createCollection(signer: string, data: CreateCollectionData, mergeDeprecated = false): CreateCollectionTransaction {
+    return new CreateCollectionTransaction(this.helper, signer, data, mergeDeprecated);
+  }
+
+  createNFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
+    return this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'nft')).send();
+  }
+
+  async createERC721MetadataCompatibleCollection(signer: string, data: CreateCollectionData, baseUri: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
     const collectionHelper = await this.helper.ethNativeContract.collectionHelpers(signer);
-    const functionName: string = this.createCollectionMethodName(mode);
-
-    const functionParams = mode === 'ft' ? [name, decimals, description, tokenPrefix] : [name, description, tokenPrefix];
-    const result = await collectionHelper.methods[functionName](...functionParams).send({value: Number(collectionCreationPrice)});
 
-    const collectionAddress = this.helper.ethAddress.normalizeAddress(result.events.CollectionCreated.returnValues.collectionId);
-    const collectionId = this.helper.ethAddress.extractCollectionId(collectionAddress);
-    const events = this.helper.eth.normalizeEvents(result.events);
-    const collection = await this.helper.ethNativeContract.collectionById(collectionId, mode, signer, mergeDeprecated);
+    const {collectionId, collectionAddress, events} = await this.createCollection(signer, data).send();
 
-    return {collectionId, collectionAddress, events, collection};
-  }
+    await collectionHelper.methods.makeCollectionERC721MetadataCompatible(collectionAddress, baseUri).send();
 
-  createNFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
-    return this.createCollection('nft', signer, name, description, tokenPrefix);
+    return {collectionId, collectionAddress, events};
   }
 
   async createERC721MetadataCompatibleNFTCollection(signer: string, name: string, description: string, tokenPrefix: string, baseUri: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
     const collectionHelper = await this.helper.ethNativeContract.collectionHelpers(signer);
 
-    const {collectionId, collectionAddress, events} = await this.createCollection('nft', signer, name, description, tokenPrefix);
+    const {collectionId, collectionAddress, events} = await this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'nft')).send();
 
     await collectionHelper.methods.makeCollectionERC721MetadataCompatible(collectionAddress, baseUri).send();
 
@@ -267,17 +341,17 @@
   }
 
   createRFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
-    return this.createCollection('rft', signer, name, description, tokenPrefix);
+    return this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'rft')).send();
   }
 
   createFungibleCollection(signer: string, name: string, decimals: number, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
-    return this.createCollection('ft', signer, name, description, tokenPrefix, decimals);
+    return this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'ft')).send();
   }
 
   async createERC721MetadataCompatibleRFTCollection(signer: string, name: string, description: string, tokenPrefix: string, baseUri: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
     const collectionHelper = await this.helper.ethNativeContract.collectionHelpers(signer);
 
-    const {collectionId, collectionAddress, events} = await this.createCollection('rft', signer, name, description, tokenPrefix);
+    const {collectionId, collectionAddress, events} = await this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'rft')).send();
 
     await collectionHelper.methods.makeCollectionERC721MetadataCompatible(collectionAddress, baseUri).send();
 
@@ -432,6 +506,13 @@
     };
   }
 
+  fromAddr(address: TEthereumAccount): [string, string] {
+    return [
+      address,
+      '0',
+    ];
+  }
+
   fromKeyringPair(keyring: IKeyringPair): CrossAddress {
     return {
       eth: '0x0000000000000000000000000000000000000000',
modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
before · tests/src/interfaces/augment-api-tx.ts
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/submittable';78import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';9import type { Data } from '@polkadot/types';10import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';11import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';12import type { AccountId32, Call, H160, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';13import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, OpalRuntimeRuntimeCommonSessionKeys, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistration, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';1415export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;16export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;17export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;1819declare module '@polkadot/api-base/types/submittable' {20  interface AugmentedSubmittables<ApiType extends ApiTypes> {21    appPromotion: {22      /**23       * Called for blocks that, for some reason, have not been unstacked24       * 25       * # Permissions26       * 27       * * Sudo28       * 29       * # Arguments30       * 31       * * `origin`: Must be `Root`.32       * * `pending_blocks`: Block numbers that will be processed.33       **/34      forceUnstake: AugmentedSubmittable<(pendingBlocks: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<u32>]>;35      /**36       * Recalculates interest for the specified number of stakers.37       * If all stakers are not recalculated, the next call of the extrinsic38       * will continue the recalculation, from those stakers for whom this39       * was not perform in last call.40       * 41       * # Permissions42       * 43       * * Pallet admin44       * 45       * # Arguments46       * 47       * * `stakers_number`: the number of stakers for which recalculation will be performed48       **/49      payoutStakers: AugmentedSubmittable<(stakersNumber: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u8>]>;50      /**51       * Sets an address as the the admin.52       * 53       * # Permissions54       * 55       * * Sudo56       * 57       * # Arguments58       * 59       * * `admin`: account of the new admin.60       **/61      setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;62      /**63       * Sets the pallet to be the sponsor for the collection.64       * 65       * # Permissions66       * 67       * * Pallet admin68       * 69       * # Arguments70       * 71       * * `collection_id`: ID of the collection that will be sponsored by `pallet_id`72       **/73      sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;74      /**75       * Sets the pallet to be the sponsor for the contract.76       * 77       * # Permissions78       * 79       * * Pallet admin80       * 81       * # Arguments82       * 83       * * `contract_id`: the contract address that will be sponsored by `pallet_id`84       **/85      sponsorContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;86      /**87       * Stakes the amount of native tokens.88       * Sets `amount` to the locked state.89       * The maximum number of stakes for a staker is 10.90       * 91       * # Arguments92       * 93       * * `amount`: in native tokens.94       **/95      stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;96      /**97       * Removes the pallet as the sponsor for the collection.98       * Returns [`NoPermission`][`Error::NoPermission`]99       * if the pallet wasn't the sponsor.100       * 101       * # Permissions102       * 103       * * Pallet admin104       * 105       * # Arguments106       * 107       * * `collection_id`: ID of the collection that is sponsored by `pallet_id`108       **/109      stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;110      /**111       * Removes the pallet as the sponsor for the contract.112       * Returns [`NoPermission`][`Error::NoPermission`]113       * if the pallet wasn't the sponsor.114       * 115       * # Permissions116       * 117       * * Pallet admin118       * 119       * # Arguments120       * 121       * * `contract_id`: the contract address that is sponsored by `pallet_id`122       **/123      stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;124      /**125       * Unstakes all stakes.126       * After the end of `PendingInterval` this sum becomes completely127       * free for further use.128       **/129      unstakeAll: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;130      /**131       * Unstakes the amount of balance for the staker.132       * After the end of `PendingInterval` this sum becomes completely133       * free for further use.134       * 135       * # Arguments136       * 137       * * `staker`: staker account.138       * * `amount`: amount of unstaked funds.139       **/140      unstakePartial: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;141      /**142       * Generic tx143       **/144      [key: string]: SubmittableExtrinsicFunction<ApiType>;145    };146    balances: {147      /**148       * Set the regular balance of a given account.149       * 150       * The dispatch origin for this call is `root`.151       **/152      forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;153      /**154       * Exactly as `transfer_allow_death`, except the origin must be root and the source account155       * may be specified.156       **/157      forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;158      /**159       * Unreserve some balance from a user by force.160       * 161       * Can only be called by ROOT.162       **/163      forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;164      /**165       * Set the regular balance of a given account; it also takes a reserved balance but this166       * must be the same as the account's current reserved balance.167       * 168       * The dispatch origin for this call is `root`.169       * 170       * WARNING: This call is DEPRECATED! Use `force_set_balance` instead.171       **/172      setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;173      /**174       * Alias for `transfer_allow_death`, provided only for name-wise compatibility.175       * 176       * WARNING: DEPRECATED! Will be released in approximately 3 months.177       **/178      transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;179      /**180       * Transfer the entire transferable balance from the caller account.181       * 182       * NOTE: This function only attempts to transfer _transferable_ balances. This means that183       * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be184       * transferred by this function. To ensure that this function results in a killed account,185       * you might need to prepare the account by removing any reference counters, storage186       * deposits, etc...187       * 188       * The dispatch origin of this call must be Signed.189       * 190       * - `dest`: The recipient of the transfer.191       * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all192       * of the funds the account has, causing the sender account to be killed (false), or193       * transfer everything except at least the existential deposit, which will guarantee to194       * keep the sender account alive (true).195       **/196      transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;197      /**198       * Transfer some liquid free balance to another account.199       * 200       * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.201       * If the sender's account is below the existential deposit as a result202       * of the transfer, the account will be reaped.203       * 204       * The dispatch origin for this call must be `Signed` by the transactor.205       **/206      transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;207      /**208       * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not209       * kill the origin account.210       * 211       * 99% of the time you want [`transfer_allow_death`] instead.212       * 213       * [`transfer_allow_death`]: struct.Pallet.html#method.transfer214       **/215      transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;216      /**217       * Upgrade a specified account.218       * 219       * - `origin`: Must be `Signed`.220       * - `who`: The account to be upgraded.221       * 222       * This will waive the transaction fee if at least all but 10% of the accounts needed to223       * be upgraded. (We let some not have to be upgraded just in order to allow for the224       * possibililty of churn).225       **/226      upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;227      /**228       * Generic tx229       **/230      [key: string]: SubmittableExtrinsicFunction<ApiType>;231    };232    collatorSelection: {233      /**234       * Add a collator to the list of invulnerable (fixed) collators.235       **/236      addInvulnerable: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;237      /**238       * Force deregister `origin` as a collator candidate as a governing authority, and revoke its license.239       * Note that the collator can only leave on session change.240       * The `LicenseBond` will be unreserved and returned immediately.241       * 242       * This call is, of course, not applicable to `Invulnerable` collators.243       **/244      forceReleaseLicense: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;245      /**246       * Purchase a license on block collation for this account.247       * It does not make it a collator candidate, use `onboard` afterward. The account must248       * (a) already have registered session keys and (b) be able to reserve the `LicenseBond`.249       * 250       * This call is not available to `Invulnerable` collators.251       **/252      getLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;253      /**254       * Deregister `origin` as a collator candidate. Note that the collator can only leave on255       * session change. The license to `onboard` later at any other time will remain.256       **/257      offboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;258      /**259       * Register this account as a candidate for collators for next sessions.260       * The account must already hold a license, and cannot offboard immediately during a session.261       * 262       * This call is not available to `Invulnerable` collators.263       **/264      onboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;265      /**266       * Forfeit `origin`'s own license. The `LicenseBond` will be unreserved immediately.267       * 268       * This call is not available to `Invulnerable` collators.269       **/270      releaseLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;271      /**272       * Remove a collator from the list of invulnerable (fixed) collators.273       **/274      removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;275      /**276       * Generic tx277       **/278      [key: string]: SubmittableExtrinsicFunction<ApiType>;279    };280    configuration: {281      setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletConfigurationAppPromotionConfiguration]>;282      setCollatorSelectionDesiredCollators: AugmentedSubmittable<(max: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;283      setCollatorSelectionKickThreshold: AugmentedSubmittable<(threshold: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;284      setCollatorSelectionLicenseBond: AugmentedSubmittable<(amount: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>]>;285      setMinGasPriceOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;286      setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;287      /**288       * Generic tx289       **/290      [key: string]: SubmittableExtrinsicFunction<ApiType>;291    };292    cumulusXcm: {293      /**294       * Generic tx295       **/296      [key: string]: SubmittableExtrinsicFunction<ApiType>;297    };298    dmpQueue: {299      /**300       * Service a single overweight message.301       **/302      serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;303      /**304       * Generic tx305       **/306      [key: string]: SubmittableExtrinsicFunction<ApiType>;307    };308    ethereum: {309      /**310       * Transact an Ethereum transaction.311       **/312      transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;313      /**314       * Generic tx315       **/316      [key: string]: SubmittableExtrinsicFunction<ApiType>;317    };318    evm: {319      /**320       * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.321       **/322      call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;323      /**324       * Issue an EVM create operation. This is similar to a contract creation transaction in325       * Ethereum.326       **/327      create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;328      /**329       * Issue an EVM create2 operation.330       **/331      create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;332      /**333       * Withdraw balance from EVM into currency/balances pallet.334       **/335      withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;336      /**337       * Generic tx338       **/339      [key: string]: SubmittableExtrinsicFunction<ApiType>;340    };341    evmContractHelpers: {342      /**343       * Migrate contract to use `SponsoringMode` storage instead of `SelfSponsoring`344       **/345      migrateFromSelfSponsoring: AugmentedSubmittable<(addresses: Vec<H160> | (H160 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H160>]>;346      /**347       * Generic tx348       **/349      [key: string]: SubmittableExtrinsicFunction<ApiType>;350    };351    evmMigration: {352      /**353       * Start contract migration, inserts contract stub at target address,354       * and marks account as pending, allowing to insert storage355       **/356      begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;357      /**358       * Finish contract migration, allows it to be called.359       * It is not possible to alter contract storage via [`Self::set_data`]360       * after this call.361       **/362      finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;363      /**364       * Create ethereum events attached to the fake transaction365       **/366      insertEthLogs: AugmentedSubmittable<(logs: Vec<EthereumLog> | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<EthereumLog>]>;367      /**368       * Create substrate events369       **/370      insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;371      /**372       * Remove remark compatibility data leftovers373       **/374      removeRmrkData: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;375      /**376       * Insert items into contract storage, this method can be called377       * multiple times378       **/379      setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;380      /**381       * Generic tx382       **/383      [key: string]: SubmittableExtrinsicFunction<ApiType>;384    };385    foreignAssets: {386      registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;387      updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;388      /**389       * Generic tx390       **/391      [key: string]: SubmittableExtrinsicFunction<ApiType>;392    };393    identity: {394      /**395       * Add a registrar to the system.396       * 397       * The dispatch origin for this call must be `T::RegistrarOrigin`.398       * 399       * - `account`: the account of the registrar.400       * 401       * Emits `RegistrarAdded` if successful.402       * 403       * # <weight>404       * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).405       * - One storage mutation (codec `O(R)`).406       * - One event.407       * # </weight>408       **/409      addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;410      /**411       * Add the given account to the sender's subs.412       * 413       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated414       * to the sender.415       * 416       * The dispatch origin for this call must be _Signed_ and the sender must have a registered417       * sub identity of `sub`.418       **/419      addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;420      /**421       * Cancel a previous request.422       * 423       * Payment: A previously reserved deposit is returned on success.424       * 425       * The dispatch origin for this call must be _Signed_ and the sender must have a426       * registered identity.427       * 428       * - `reg_index`: The index of the registrar whose judgement is no longer requested.429       * 430       * Emits `JudgementUnrequested` if successful.431       * 432       * # <weight>433       * - `O(R + X)`.434       * - One balance-reserve operation.435       * - One storage mutation `O(R + X)`.436       * - One event437       * # </weight>438       **/439      cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;440      /**441       * Clear an account's identity info and all sub-accounts and return all deposits.442       * 443       * Payment: All reserved balances on the account are returned.444       * 445       * The dispatch origin for this call must be _Signed_ and the sender must have a registered446       * identity.447       * 448       * Emits `IdentityCleared` if successful.449       * 450       * # <weight>451       * - `O(R + S + X)`452       * - where `R` registrar-count (governance-bounded).453       * - where `S` subs-count (hard- and deposit-bounded).454       * - where `X` additional-field-count (deposit-bounded and code-bounded).455       * - One balance-unreserve operation.456       * - `2` storage reads and `S + 2` storage deletions.457       * - One event.458       * # </weight>459       **/460      clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;461      /**462       * Set identities to be associated with the provided accounts as force origin.463       * 464       * This is not meant to operate in tandem with the identity pallet as is,465       * and be instead used to keep identities made and verified externally,466       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.467       **/468      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]>>]>;469      /**470       * Remove identities associated with the provided accounts as force origin.471       * 472       * This is not meant to operate in tandem with the identity pallet as is,473       * and be instead used to keep identities made and verified externally,474       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.475       **/476      forceRemoveIdentities: AugmentedSubmittable<(identities: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;477      /**478       * Set sub-identities to be associated with the provided accounts as force origin.479       * 480       * This is not meant to operate in tandem with the identity pallet as is,481       * and be instead used to keep identities made and verified externally,482       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.483       **/484      forceSetSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>> | ([AccountId32 | string | Uint8Array, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]> | [u128 | AnyNumber | Uint8Array, Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]]])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>]>;485      /**486       * Remove an account's identity and sub-account information and slash the deposits.487       * 488       * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by489       * `Slash`. Verification request deposits are not returned; they should be cancelled490       * manually using `cancel_request`.491       * 492       * The dispatch origin for this call must match `T::ForceOrigin`.493       * 494       * - `target`: the account whose identity the judgement is upon. This must be an account495       * with a registered identity.496       * 497       * Emits `IdentityKilled` if successful.498       * 499       * # <weight>500       * - `O(R + S + X)`.501       * - One balance-reserve operation.502       * - `S + 2` storage mutations.503       * - One event.504       * # </weight>505       **/506      killIdentity: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;507      /**508       * Provide a judgement for an account's identity.509       * 510       * The dispatch origin for this call must be _Signed_ and the sender must be the account511       * of the registrar whose index is `reg_index`.512       * 513       * - `reg_index`: the index of the registrar whose judgement is being made.514       * - `target`: the account whose identity the judgement is upon. This must be an account515       * with a registered identity.516       * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.517       * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.518       * 519       * Emits `JudgementGiven` if successful.520       * 521       * # <weight>522       * - `O(R + X)`.523       * - One balance-transfer operation.524       * - Up to one account-lookup operation.525       * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.526       * - One event.527       * # </weight>528       **/529      provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;530      /**531       * Remove the sender as a sub-account.532       * 533       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated534       * to the sender (*not* the original depositor).535       * 536       * The dispatch origin for this call must be _Signed_ and the sender must have a registered537       * super-identity.538       * 539       * NOTE: This should not normally be used, but is provided in the case that the non-540       * controller of an account is maliciously registered as a sub-account.541       **/542      quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;543      /**544       * Remove the given account from the sender's subs.545       * 546       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated547       * to the sender.548       * 549       * The dispatch origin for this call must be _Signed_ and the sender must have a registered550       * sub identity of `sub`.551       **/552      removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;553      /**554       * Alter the associated name of the given sub-account.555       * 556       * The dispatch origin for this call must be _Signed_ and the sender must have a registered557       * sub identity of `sub`.558       **/559      renameSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;560      /**561       * Request a judgement from a registrar.562       * 563       * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement564       * given.565       * 566       * The dispatch origin for this call must be _Signed_ and the sender must have a567       * registered identity.568       * 569       * - `reg_index`: The index of the registrar whose judgement is requested.570       * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:571       * 572       * ```nocompile573       * Self::registrars().get(reg_index).unwrap().fee574       * ```575       * 576       * Emits `JudgementRequested` if successful.577       * 578       * # <weight>579       * - `O(R + X)`.580       * - One balance-reserve operation.581       * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.582       * - One event.583       * # </weight>584       **/585      requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;586      /**587       * Change the account associated with a registrar.588       * 589       * The dispatch origin for this call must be _Signed_ and the sender must be the account590       * of the registrar whose index is `index`.591       * 592       * - `index`: the index of the registrar whose fee is to be set.593       * - `new`: the new account ID.594       * 595       * # <weight>596       * - `O(R)`.597       * - One storage mutation `O(R)`.598       * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)599       * # </weight>600       **/601      setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;602      /**603       * Set the fee required for a judgement to be requested from a registrar.604       * 605       * The dispatch origin for this call must be _Signed_ and the sender must be the account606       * of the registrar whose index is `index`.607       * 608       * - `index`: the index of the registrar whose fee is to be set.609       * - `fee`: the new fee.610       * 611       * # <weight>612       * - `O(R)`.613       * - One storage mutation `O(R)`.614       * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)615       * # </weight>616       **/617      setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;618      /**619       * Set the field information for a registrar.620       * 621       * The dispatch origin for this call must be _Signed_ and the sender must be the account622       * of the registrar whose index is `index`.623       * 624       * - `index`: the index of the registrar whose fee is to be set.625       * - `fields`: the fields that the registrar concerns themselves with.626       * 627       * # <weight>628       * - `O(R)`.629       * - One storage mutation `O(R)`.630       * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)631       * # </weight>632       **/633      setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;634      /**635       * Set an account's identity information and reserve the appropriate deposit.636       * 637       * If the account already has identity information, the deposit is taken as part payment638       * for the new deposit.639       * 640       * The dispatch origin for this call must be _Signed_.641       * 642       * - `info`: The identity information.643       * 644       * Emits `IdentitySet` if successful.645       * 646       * # <weight>647       * - `O(X + X' + R)`648       * - where `X` additional-field-count (deposit-bounded and code-bounded)649       * - where `R` judgements-count (registrar-count-bounded)650       * - One balance reserve operation.651       * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).652       * - One event.653       * # </weight>654       **/655      setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;656      /**657       * Set the sub-accounts of the sender.658       * 659       * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned660       * and an amount `SubAccountDeposit` will be reserved for each item in `subs`.661       * 662       * The dispatch origin for this call must be _Signed_ and the sender must have a registered663       * identity.664       * 665       * - `subs`: The identity's (new) sub-accounts.666       * 667       * # <weight>668       * - `O(P + S)`669       * - where `P` old-subs-count (hard- and deposit-bounded).670       * - where `S` subs-count (hard- and deposit-bounded).671       * - At most one balance operations.672       * - DB:673       * - `P + S` storage mutations (codec complexity `O(1)`)674       * - One storage read (codec complexity `O(P)`).675       * - One storage write (codec complexity `O(S)`).676       * - One storage-exists (`IdentityOf::contains_key`).677       * # </weight>678       **/679      setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;680      /**681       * Generic tx682       **/683      [key: string]: SubmittableExtrinsicFunction<ApiType>;684    };685    inflation: {686      /**687       * This method sets the inflation start date. Can be only called once.688       * Inflation start block can be backdated and will catch up. The method will create Treasury689       * account if it does not exist and perform the first inflation deposit.690       * 691       * # Permissions692       * 693       * * Root694       * 695       * # Arguments696       * 697       * * inflation_start_relay_block: The relay chain block at which inflation should start698       **/699      startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;700      /**701       * Generic tx702       **/703      [key: string]: SubmittableExtrinsicFunction<ApiType>;704    };705    maintenance: {706      disable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;707      enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;708      /**709       * Execute a runtime call stored as a preimage.710       * 711       * `weight_bound` is the maximum weight that the caller is willing712       * to allow the extrinsic to be executed with.713       **/714      executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array, weightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;715      /**716       * Generic tx717       **/718      [key: string]: SubmittableExtrinsicFunction<ApiType>;719    };720    parachainInfo: {721      /**722       * Generic tx723       **/724      [key: string]: SubmittableExtrinsicFunction<ApiType>;725    };726    parachainSystem: {727      /**728       * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied729       * later.730       * 731       * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec732       * version and name should be verified on upgrade. Since the authorization only has a hash,733       * it cannot actually perform the verification.734       * 735       * This call requires Root origin.736       **/737      authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, bool]>;738      /**739       * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.740       * 741       * If the authorization required a version check, this call will ensure the spec name742       * remains unchanged and that the spec version has increased.743       * 744       * Note that this function will not apply the new `code`, but only attempt to schedule the745       * upgrade with the Relay Chain.746       * 747       * All origins are allowed.748       **/749      enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;750      /**751       * Set the current validation data.752       * 753       * This should be invoked exactly once per block. It will panic at the finalization754       * phase if the call was not invoked.755       * 756       * The dispatch origin for this call must be `Inherent`757       * 758       * As a side effect, this function upgrades the current validation function759       * if the appropriate time has come.760       **/761      setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CumulusPrimitivesParachainInherentParachainInherentData]>;762      sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;763      /**764       * Generic tx765       **/766      [key: string]: SubmittableExtrinsicFunction<ApiType>;767    };768    polkadotXcm: {769      /**770       * Execute an XCM message from a local, signed, origin.771       * 772       * An event is deposited indicating whether `msg` could be executed completely or only773       * partially.774       * 775       * No more than `max_weight` will be used in its attempted execution. If this is less than the776       * maximum amount of weight that the message could take to be executed, then no execution777       * attempt will be made.778       * 779       * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully780       * to completion; only that *some* of it was executed.781       **/782      execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;783      /**784       * Set a safe XCM version (the version that XCM should be encoded with if the most recent785       * version a destination can accept is unknown).786       * 787       * - `origin`: Must be an origin specified by AdminOrigin.788       * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.789       **/790      forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;791      /**792       * Ask a location to notify us regarding their XCM version and any changes to it.793       * 794       * - `origin`: Must be an origin specified by AdminOrigin.795       * - `location`: The location to which we should subscribe for XCM version notifications.796       **/797      forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;798      /**799       * Set or unset the global suspension state of the XCM executor.800       * 801       * - `origin`: Must be an origin specified by AdminOrigin.802       * - `suspended`: `true` to suspend, `false` to resume.803       **/804      forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;805      /**806       * Require that a particular destination should no longer notify us regarding any XCM807       * version changes.808       * 809       * - `origin`: Must be an origin specified by AdminOrigin.810       * - `location`: The location to which we are currently subscribed for XCM version811       * notifications which we no longer desire.812       **/813      forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;814      /**815       * Extoll that a particular destination can be communicated with through a particular816       * version of XCM.817       * 818       * - `origin`: Must be an origin specified by AdminOrigin.819       * - `location`: The destination that is being described.820       * - `xcm_version`: The latest version of XCM that `location` supports.821       **/822      forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;823      /**824       * Transfer some assets from the local chain to the sovereign account of a destination825       * chain and forward a notification XCM.826       * 827       * Fee payment on the destination side is made from the asset in the `assets` vector of828       * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight829       * is needed than `weight_limit`, then the operation will fail and the assets send may be830       * at risk.831       * 832       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.833       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send834       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.835       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be836       * an `AccountId32` value.837       * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the838       * `dest` side.839       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay840       * fees.841       * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.842       **/843      limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;844      /**845       * Teleport some assets from the local chain to some destination chain.846       * 847       * Fee payment on the destination side is made from the asset in the `assets` vector of848       * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight849       * is needed than `weight_limit`, then the operation will fail and the assets send may be850       * at risk.851       * 852       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.853       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send854       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.855       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be856       * an `AccountId32` value.857       * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the858       * `dest` side. May not be empty.859       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay860       * fees.861       * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.862       **/863      limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;864      /**865       * Transfer some assets from the local chain to the sovereign account of a destination866       * chain and forward a notification XCM.867       * 868       * Fee payment on the destination side is made from the asset in the `assets` vector of869       * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,870       * with all fees taken as needed from the asset.871       * 872       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.873       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send874       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.875       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be876       * an `AccountId32` value.877       * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the878       * `dest` side.879       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay880       * fees.881       **/882      reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;883      send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;884      /**885       * Teleport some assets from the local chain to some destination chain.886       * 887       * Fee payment on the destination side is made from the asset in the `assets` vector of888       * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,889       * with all fees taken as needed from the asset.890       * 891       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.892       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send893       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.894       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be895       * an `AccountId32` value.896       * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the897       * `dest` side. May not be empty.898       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay899       * fees.900       **/901      teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;902      /**903       * Generic tx904       **/905      [key: string]: SubmittableExtrinsicFunction<ApiType>;906    };907    preimage: {908      /**909       * Register a preimage on-chain.910       * 911       * If the preimage was previously requested, no fees or deposits are taken for providing912       * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.913       **/914      notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;915      /**916       * Request a preimage be uploaded to the chain without paying any fees or deposits.917       * 918       * If the preimage requests has already been provided on-chain, we unreserve any deposit919       * a user may have paid, and take the control of the preimage out of their hands.920       **/921      requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;922      /**923       * Clear an unrequested preimage from the runtime storage.924       * 925       * If `len` is provided, then it will be a much cheaper operation.926       * 927       * - `hash`: The hash of the preimage to be removed from the store.928       * - `len`: The length of the preimage of `hash`.929       **/930      unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;931      /**932       * Clear a previously made request for a preimage.933       * 934       * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.935       **/936      unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;937      /**938       * Generic tx939       **/940      [key: string]: SubmittableExtrinsicFunction<ApiType>;941    };942    session: {943      /**944       * Removes any session key(s) of the function caller.945       * 946       * This doesn't take effect until the next session.947       * 948       * The dispatch origin of this function must be Signed and the account must be either be949       * convertible to a validator ID using the chain's typical addressing system (this usually950       * means being a controller account) or directly convertible into a validator ID (which951       * usually means being a stash account).952       * 953       * ## Complexity954       * - `O(1)` in number of key types. Actual cost depends on the number of length of955       * `T::Keys::key_ids()` which is fixed.956       **/957      purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;958      /**959       * Sets the session key(s) of the function caller to `keys`.960       * Allows an account to set its session key prior to becoming a validator.961       * This doesn't take effect until the next session.962       * 963       * The dispatch origin of this function must be signed.964       * 965       * ## Complexity966       * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is967       * fixed.968       **/969      setKeys: AugmentedSubmittable<(keys: OpalRuntimeRuntimeCommonSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpalRuntimeRuntimeCommonSessionKeys, Bytes]>;970      /**971       * Generic tx972       **/973      [key: string]: SubmittableExtrinsicFunction<ApiType>;974    };975    stateTrieMigration: {976      /**977       * Continue the migration for the given `limits`.978       * 979       * The dispatch origin of this call can be any signed account.980       * 981       * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,982       * Upon successful execution, the transaction fee is returned.983       * 984       * The (potentially over-estimated) of the byte length of all the data read must be985       * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing986       * that executing the current `MigrationTask` with the given `limits` will not exceed987       * `real_size_upper` bytes of read data.988       * 989       * The `witness_task` is merely a helper to prevent the caller from being slashed or990       * generally trigger a migration that they do not intend. This parameter is just a message991       * from caller, saying that they believed `witness_task` was the last state of the992       * migration, and they only wish for their transaction to do anything, if this assumption993       * holds. In case `witness_task` does not match, the transaction fails.994       * 995       * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the996       * recommended way of doing this is to pass a `limit` that only bounds `count`, as the997       * `size` limit can always be overwritten.998       **/999      continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;1000      /**1001       * Control the automatic migration.1002       * 1003       * The dispatch origin of this call must be [`Config::ControlOrigin`].1004       **/1005      controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;1006      /**1007       * Forcefully set the progress the running migration.1008       * 1009       * This is only useful in one case: the next key to migrate is too big to be migrated with1010       * a signed account, in a parachain context, and we simply want to skip it. A reasonable1011       * example of this would be `:code:`, which is both very expensive to migrate, and commonly1012       * used, so probably it is already migrated.1013       * 1014       * In case you mess things up, you can also, in principle, use this to reset the migration1015       * process.1016       **/1017      forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;1018      /**1019       * Migrate the list of child keys by iterating each of them one by one.1020       * 1021       * All of the given child keys must be present under one `child_root`.1022       * 1023       * This does not affect the global migration process tracker ([`MigrationProcess`]), and1024       * should only be used in case any keys are leftover due to a bug.1025       **/1026      migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;1027      /**1028       * Migrate the list of top keys by iterating each of them one by one.1029       * 1030       * This does not affect the global migration process tracker ([`MigrationProcess`]), and1031       * should only be used in case any keys are leftover due to a bug.1032       **/1033      migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;1034      /**1035       * Set the maximum limit of the signed migration.1036       **/1037      setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;1038      /**1039       * Generic tx1040       **/1041      [key: string]: SubmittableExtrinsicFunction<ApiType>;1042    };1043    structure: {1044      /**1045       * Generic tx1046       **/1047      [key: string]: SubmittableExtrinsicFunction<ApiType>;1048    };1049    sudo: {1050      /**1051       * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo1052       * key.1053       * 1054       * The dispatch origin for this call must be _Signed_.1055       * 1056       * ## Complexity1057       * - O(1).1058       **/1059      setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;1060      /**1061       * Authenticates the sudo key and dispatches a function call with `Root` origin.1062       * 1063       * The dispatch origin for this call must be _Signed_.1064       * 1065       * ## Complexity1066       * - O(1).1067       **/1068      sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;1069      /**1070       * Authenticates the sudo key and dispatches a function call with `Signed` origin from1071       * a given account.1072       * 1073       * The dispatch origin for this call must be _Signed_.1074       * 1075       * ## Complexity1076       * - O(1).1077       **/1078      sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;1079      /**1080       * Authenticates the sudo key and dispatches a function call with `Root` origin.1081       * This function does not check the weight of the call, and instead allows the1082       * Sudo user to specify the weight of the call.1083       * 1084       * The dispatch origin for this call must be _Signed_.1085       * 1086       * ## Complexity1087       * - O(1).1088       **/1089      sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;1090      /**1091       * Generic tx1092       **/1093      [key: string]: SubmittableExtrinsicFunction<ApiType>;1094    };1095    system: {1096      /**1097       * Kill all storage items with a key that starts with the given prefix.1098       * 1099       * **NOTE:** We rely on the Root origin to provide us the number of subkeys under1100       * the prefix we are removing to accurately calculate the weight of this function.1101       **/1102      killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;1103      /**1104       * Kill some items from storage.1105       **/1106      killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;1107      /**1108       * Make some on-chain remark.1109       * 1110       * - `O(1)`1111       **/1112      remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1113      /**1114       * Make some on-chain remark and emit event.1115       **/1116      remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1117      /**1118       * Set the new runtime code.1119       **/1120      setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1121      /**1122       * Set the new runtime code without doing any checks of the given `code`.1123       **/1124      setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1125      /**1126       * Set the number of pages in the WebAssembly environment's heap.1127       **/1128      setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1129      /**1130       * Set some items of storage.1131       **/1132      setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;1133      /**1134       * Generic tx1135       **/1136      [key: string]: SubmittableExtrinsicFunction<ApiType>;1137    };1138    testUtils: {1139      batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;1140      enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1141      incTestValue: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1142      justTakeFee: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1143      setTestValue: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1144      setTestValueAndRollback: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1145      /**1146       * Generic tx1147       **/1148      [key: string]: SubmittableExtrinsicFunction<ApiType>;1149    };1150    timestamp: {1151      /**1152       * Set the current time.1153       * 1154       * This call should be invoked exactly once per block. It will panic at the finalization1155       * phase, if this call hasn't been invoked by that time.1156       * 1157       * The timestamp should be greater than the previous one by the amount specified by1158       * `MinimumPeriod`.1159       * 1160       * The dispatch origin for this call must be `Inherent`.1161       * 1162       * ## Complexity1163       * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)1164       * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in1165       * `on_finalize`)1166       * - 1 event handler `on_timestamp_set`. Must be `O(1)`.1167       **/1168      set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;1169      /**1170       * Generic tx1171       **/1172      [key: string]: SubmittableExtrinsicFunction<ApiType>;1173    };1174    tokens: {1175      /**1176       * Exactly as `transfer`, except the origin must be root and the source1177       * account may be specified.1178       * 1179       * The dispatch origin for this call must be _Root_.1180       * 1181       * - `source`: The sender of the transfer.1182       * - `dest`: The recipient of the transfer.1183       * - `currency_id`: currency type.1184       * - `amount`: free balance amount to tranfer.1185       **/1186      forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1187      /**1188       * Set the balances of a given account.1189       * 1190       * This will alter `FreeBalance` and `ReservedBalance` in storage. it1191       * will also decrease the total issuance of the system1192       * (`TotalIssuance`). If the new free or reserved balance is below the1193       * existential deposit, it will reap the `AccountInfo`.1194       * 1195       * The dispatch origin for this call is `root`.1196       **/1197      setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>, Compact<u128>]>;1198      /**1199       * Transfer some liquid free balance to another account.1200       * 1201       * `transfer` will set the `FreeBalance` of the sender and receiver.1202       * It will decrease the total issuance of the system by the1203       * `TransferFee`. If the sender's account is below the existential1204       * deposit as a result of the transfer, the account will be reaped.1205       * 1206       * The dispatch origin for this call must be `Signed` by the1207       * transactor.1208       * 1209       * - `dest`: The recipient of the transfer.1210       * - `currency_id`: currency type.1211       * - `amount`: free balance amount to tranfer.1212       **/1213      transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1214      /**1215       * Transfer all remaining balance to the given account.1216       * 1217       * NOTE: This function only attempts to transfer _transferable_1218       * balances. This means that any locked, reserved, or existential1219       * deposits (when `keep_alive` is `true`), will not be transferred by1220       * this function. To ensure that this function results in a killed1221       * account, you might need to prepare the account by removing any1222       * reference counters, storage deposits, etc...1223       * 1224       * The dispatch origin for this call must be `Signed` by the1225       * transactor.1226       * 1227       * - `dest`: The recipient of the transfer.1228       * - `currency_id`: currency type.1229       * - `keep_alive`: A boolean to determine if the `transfer_all`1230       * operation should send all of the funds the account has, causing1231       * the sender account to be killed (false), or transfer everything1232       * except at least the existential deposit, which will guarantee to1233       * keep the sender account alive (true).1234       **/1235      transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, bool]>;1236      /**1237       * Same as the [`transfer`] call, but with a check that the transfer1238       * will not kill the origin account.1239       * 1240       * 99% of the time you want [`transfer`] instead.1241       * 1242       * The dispatch origin for this call must be `Signed` by the1243       * transactor.1244       * 1245       * - `dest`: The recipient of the transfer.1246       * - `currency_id`: currency type.1247       * - `amount`: free balance amount to tranfer.1248       **/1249      transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1250      /**1251       * Generic tx1252       **/1253      [key: string]: SubmittableExtrinsicFunction<ApiType>;1254    };1255    treasury: {1256      /**1257       * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary1258       * and the original deposit will be returned.1259       * 1260       * May only be called from `T::ApproveOrigin`.1261       * 1262       * ## Complexity1263       * - O(1).1264       **/1265      approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1266      /**1267       * Put forward a suggestion for spending. A deposit proportional to the value1268       * is reserved and slashed if the proposal is rejected. It is returned once the1269       * proposal is awarded.1270       * 1271       * ## Complexity1272       * - O(1)1273       **/1274      proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1275      /**1276       * Reject a proposed spend. The original deposit will be slashed.1277       * 1278       * May only be called from `T::RejectOrigin`.1279       * 1280       * ## Complexity1281       * - O(1)1282       **/1283      rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1284      /**1285       * Force a previously approved proposal to be removed from the approval queue.1286       * The original deposit will no longer be returned.1287       * 1288       * May only be called from `T::RejectOrigin`.1289       * - `proposal_id`: The index of a proposal1290       * 1291       * ## Complexity1292       * - O(A) where `A` is the number of approvals1293       * 1294       * Errors:1295       * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,1296       * i.e., the proposal has not been approved. This could also mean the proposal does not1297       * exist altogether, thus there is no way it would have been approved in the first place.1298       **/1299      removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1300      /**1301       * Propose and approve a spend of treasury funds.1302       * 1303       * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`.1304       * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.1305       * - `beneficiary`: The destination account for the transfer.1306       * 1307       * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the1308       * beneficiary.1309       **/1310      spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1311      /**1312       * Generic tx1313       **/1314      [key: string]: SubmittableExtrinsicFunction<ApiType>;1315    };1316    unique: {1317      /**1318       * Add an admin to a collection.1319       * 1320       * NFT Collection can be controlled by multiple admin addresses1321       * (some which can also be servers, for example). Admins can issue1322       * and burn NFTs, as well as add and remove other admins,1323       * but cannot change NFT or Collection ownership.1324       * 1325       * # Permissions1326       * 1327       * * Collection owner1328       * * Collection admin1329       * 1330       * # Arguments1331       * 1332       * * `collection_id`: ID of the Collection to add an admin for.1333       * * `new_admin`: Address of new admin to add.1334       **/1335      addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1336      /**1337       * Add an address to allow list.1338       * 1339       * # Permissions1340       * 1341       * * Collection owner1342       * * Collection admin1343       * 1344       * # Arguments1345       * 1346       * * `collection_id`: ID of the modified collection.1347       * * `address`: ID of the address to be added to the allowlist.1348       **/1349      addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1350      /**1351       * Allow a non-permissioned address to transfer or burn an item.1352       * 1353       * # Permissions1354       * 1355       * * Collection owner1356       * * Collection admin1357       * * Current item owner1358       * 1359       * # Arguments1360       * 1361       * * `spender`: Account to be approved to make specific transactions on non-owned tokens.1362       * * `collection_id`: ID of the collection the item belongs to.1363       * * `item_id`: ID of the item transactions on which are now approved.1364       * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1365       * Set to 0 to revoke the approval.1366       **/1367      approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1368      /**1369       * Allow a non-permissioned address to transfer or burn an item from owner's eth mirror.1370       * 1371       * # Permissions1372       * 1373       * * Collection owner1374       * * Collection admin1375       * * Current item owner1376       * 1377       * # Arguments1378       * 1379       * * `from`: Owner's account eth mirror1380       * * `to`: Account to be approved to make specific transactions on non-owned tokens.1381       * * `collection_id`: ID of the collection the item belongs to.1382       * * `item_id`: ID of the item transactions on which are now approved.1383       * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1384       * Set to 0 to revoke the approval.1385       **/1386      approveFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, to: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1387      /**1388       * Destroy a token on behalf of the owner as a non-owner account.1389       * 1390       * See also: [`approve`][`Pallet::approve`].1391       * 1392       * After this method executes, one approval is removed from the total so that1393       * the approved address will not be able to transfer this item again from this owner.1394       * 1395       * # Permissions1396       * 1397       * * Collection owner1398       * * Collection admin1399       * * Current token owner1400       * * Address approved by current item owner1401       * 1402       * # Arguments1403       * 1404       * * `from`: The owner of the burning item.1405       * * `collection_id`: ID of the collection to which the item belongs.1406       * * `item_id`: ID of item to burn.1407       * * `value`: Number of pieces to burn.1408       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1409       * * Fungible Mode: The desired number of pieces to burn.1410       * * Re-Fungible Mode: The desired number of pieces to burn.1411       **/1412      burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;1413      /**1414       * Destroy an item.1415       * 1416       * # Permissions1417       * 1418       * * Collection owner1419       * * Collection admin1420       * * Current item owner1421       * 1422       * # Arguments1423       * 1424       * * `collection_id`: ID of the collection to which the item belongs.1425       * * `item_id`: ID of item to burn.1426       * * `value`: Number of pieces of the item to destroy.1427       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1428       * * Fungible Mode: The desired number of pieces to burn.1429       * * Re-Fungible Mode: The desired number of pieces to burn.1430       **/1431      burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1432      /**1433       * Change the owner of the collection.1434       * 1435       * # Permissions1436       * 1437       * * Collection owner1438       * 1439       * # Arguments1440       * 1441       * * `collection_id`: ID of the modified collection.1442       * * `new_owner`: ID of the account that will become the owner.1443       **/1444      changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1445      /**1446       * Confirm own sponsorship of a collection, becoming the sponsor.1447       * 1448       * An invitation must be pending, see [`set_collection_sponsor`][`Pallet::set_collection_sponsor`].1449       * Sponsor can pay the fees of a transaction instead of the sender,1450       * but only within specified limits.1451       * 1452       * # Permissions1453       * 1454       * * Sponsor-to-be1455       * 1456       * # Arguments1457       * 1458       * * `collection_id`: ID of the collection with the pending sponsor.1459       **/1460      confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1461      /**1462       * Create a collection of tokens.1463       * 1464       * Each Token may have multiple properties encoded as an array of bytes1465       * of certain length. The initial owner of the collection is set1466       * to the address that signed the transaction and can be changed later.1467       * 1468       * Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead.1469       * 1470       * # Permissions1471       * 1472       * * Anyone - becomes the owner of the new collection.1473       * 1474       * # Arguments1475       * 1476       * * `collection_name`: Wide-character string with collection name1477       * (limit [`MAX_COLLECTION_NAME_LENGTH`]).1478       * * `collection_description`: Wide-character string with collection description1479       * (limit [`MAX_COLLECTION_DESCRIPTION_LENGTH`]).1480       * * `token_prefix`: Byte string containing the token prefix to mark a collection1481       * to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).1482       * * `mode`: Type of items stored in the collection and type dependent data.1483       * 1484       * returns collection ID1485       * 1486       * Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead.1487       **/1488      createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;1489      /**1490       * Create a collection with explicit parameters.1491       * 1492       * Prefer it to the deprecated [`create_collection`][`Pallet::create_collection`] method.1493       * 1494       * # Permissions1495       * 1496       * * Anyone - becomes the owner of the new collection.1497       * 1498       * # Arguments1499       * 1500       * * `data`: Explicit data of a collection used for its creation.1501       **/1502      createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; pendingSponsor?: any; limits?: any; permissions?: any; tokenPropertyPermissions?: any; properties?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;1503      /**1504       * Mint an item within a collection.1505       * 1506       * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1507       * 1508       * # Permissions1509       * 1510       * * Collection owner1511       * * Collection admin1512       * * Anyone if1513       * * Allow List is enabled, and1514       * * Address is added to allow list, and1515       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1516       * 1517       * # Arguments1518       * 1519       * * `collection_id`: ID of the collection to which an item would belong.1520       * * `owner`: Address of the initial owner of the item.1521       * * `data`: Token data describing the item to store on chain.1522       **/1523      createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;1524      /**1525       * Create multiple items within a collection.1526       * 1527       * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1528       * 1529       * # Permissions1530       * 1531       * * Collection owner1532       * * Collection admin1533       * * Anyone if1534       * * Allow List is enabled, and1535       * * Address is added to the allow list, and1536       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1537       * 1538       * # Arguments1539       * 1540       * * `collection_id`: ID of the collection to which the tokens would belong.1541       * * `owner`: Address of the initial owner of the tokens.1542       * * `items_data`: Vector of data describing each item to be created.1543       **/1544      createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;1545      /**1546       * Create multiple items within a collection with explicitly specified initial parameters.1547       * 1548       * # Permissions1549       * 1550       * * Collection owner1551       * * Collection admin1552       * * Anyone if1553       * * Allow List is enabled, and1554       * * Address is added to allow list, and1555       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1556       * 1557       * # Arguments1558       * 1559       * * `collection_id`: ID of the collection to which the tokens would belong.1560       * * `data`: Explicit item creation data.1561       **/1562      createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;1563      /**1564       * Delete specified collection properties.1565       * 1566       * # Permissions1567       * 1568       * * Collection Owner1569       * * Collection Admin1570       * 1571       * # Arguments1572       * 1573       * * `collection_id`: ID of the modified collection.1574       * * `property_keys`: Vector of keys of the properties to be deleted.1575       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1576       **/1577      deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;1578      /**1579       * Delete specified token properties. Currently properties only work with NFTs.1580       * 1581       * # Permissions1582       * 1583       * * Depends on collection's token property permissions and specified property mutability:1584       * * Collection owner1585       * * Collection admin1586       * * Token owner1587       * 1588       * # Arguments1589       * 1590       * * `collection_id`: ID of the collection to which the token belongs.1591       * * `token_id`: ID of the modified token.1592       * * `property_keys`: Vector of keys of the properties to be deleted.1593       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1594       **/1595      deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;1596      /**1597       * Destroy a collection if no tokens exist within.1598       * 1599       * # Permissions1600       * 1601       * * Collection owner1602       * 1603       * # Arguments1604       * 1605       * * `collection_id`: Collection to destroy.1606       **/1607      destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1608      /**1609       * Repairs a collection if the data was somehow corrupted.1610       * 1611       * # Arguments1612       * 1613       * * `collection_id`: ID of the collection to repair.1614       **/1615      forceRepairCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1616      /**1617       * Repairs a token if the data was somehow corrupted.1618       * 1619       * # Arguments1620       * 1621       * * `collection_id`: ID of the collection the item belongs to.1622       * * `item_id`: ID of the item.1623       **/1624      forceRepairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;1625      /**1626       * Remove admin of a collection.1627       * 1628       * An admin address can remove itself. List of admins may become empty,1629       * in which case only Collection Owner will be able to add an Admin.1630       * 1631       * # Permissions1632       * 1633       * * Collection owner1634       * * Collection admin1635       * 1636       * # Arguments1637       * 1638       * * `collection_id`: ID of the collection to remove the admin for.1639       * * `account_id`: Address of the admin to remove.1640       **/1641      removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1642      /**1643       * Remove a collection's a sponsor, making everyone pay for their own transactions.1644       * 1645       * # Permissions1646       * 1647       * * Collection owner1648       * 1649       * # Arguments1650       * 1651       * * `collection_id`: ID of the collection with the sponsor to remove.1652       **/1653      removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1654      /**1655       * Remove an address from allow list.1656       * 1657       * # Permissions1658       * 1659       * * Collection owner1660       * * Collection admin1661       * 1662       * # Arguments1663       * 1664       * * `collection_id`: ID of the modified collection.1665       * * `address`: ID of the address to be removed from the allowlist.1666       **/1667      removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1668      /**1669       * Re-partition a refungible token, while owning all of its parts/pieces.1670       * 1671       * # Permissions1672       * 1673       * * Token owner (must own every part)1674       * 1675       * # Arguments1676       * 1677       * * `collection_id`: ID of the collection the RFT belongs to.1678       * * `token_id`: ID of the RFT.1679       * * `amount`: New number of parts/pieces into which the token shall be partitioned.1680       **/1681      repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1682      /**1683       * Sets or unsets the approval of a given operator.1684       * 1685       * The `operator` is allowed to transfer all tokens of the `owner` on their behalf.1686       * 1687       * # Arguments1688       * 1689       * * `owner`: Token owner1690       * * `operator`: Operator1691       * * `approve`: Should operator status be granted or revoked?1692       **/1693      setAllowanceForAll: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1694      /**1695       * Set specific limits of a collection. Empty, or None fields mean chain default.1696       * 1697       * # Permissions1698       * 1699       * * Collection owner1700       * * Collection admin1701       * 1702       * # Arguments1703       * 1704       * * `collection_id`: ID of the modified collection.1705       * * `new_limit`: New limits of the collection. Fields that are not set (None)1706       * will not overwrite the old ones.1707       **/1708      setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;1709      /**1710       * Set specific permissions of a collection. Empty, or None fields mean chain default.1711       * 1712       * # Permissions1713       * 1714       * * Collection owner1715       * * Collection admin1716       * 1717       * # Arguments1718       * 1719       * * `collection_id`: ID of the modified collection.1720       * * `new_permission`: New permissions of the collection. Fields that are not set (None)1721       * will not overwrite the old ones.1722       **/1723      setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newPermission: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;1724      /**1725       * Add or change collection properties.1726       * 1727       * # Permissions1728       * 1729       * * Collection owner1730       * * Collection admin1731       * 1732       * # Arguments1733       * 1734       * * `collection_id`: ID of the modified collection.1735       * * `properties`: Vector of key-value pairs stored as the collection's metadata.1736       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1737       **/1738      setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;1739      /**1740       * Set (invite) a new collection sponsor.1741       * 1742       * If successful, confirmation from the sponsor-to-be will be pending.1743       * 1744       * # Permissions1745       * 1746       * * Collection owner1747       * * Collection admin1748       * 1749       * # Arguments1750       * 1751       * * `collection_id`: ID of the modified collection.1752       * * `new_sponsor`: ID of the account of the sponsor-to-be.1753       **/1754      setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1755      /**1756       * Add or change token properties according to collection's permissions.1757       * Currently properties only work with NFTs.1758       * 1759       * # Permissions1760       * 1761       * * Depends on collection's token property permissions and specified property mutability:1762       * * Collection owner1763       * * Collection admin1764       * * Token owner1765       * 1766       * See [`set_token_property_permissions`][`Pallet::set_token_property_permissions`].1767       * 1768       * # Arguments1769       * 1770       * * `collection_id: ID of the collection to which the token belongs.1771       * * `token_id`: ID of the modified token.1772       * * `properties`: Vector of key-value pairs stored as the token's metadata.1773       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1774       **/1775      setTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<UpDataStructsProperty>]>;1776      /**1777       * Add or change token property permissions of a collection.1778       * 1779       * Without a permission for a particular key, a property with that key1780       * cannot be created in a token.1781       * 1782       * # Permissions1783       * 1784       * * Collection owner1785       * * Collection admin1786       * 1787       * # Arguments1788       * 1789       * * `collection_id`: ID of the modified collection.1790       * * `property_permissions`: Vector of permissions for property keys.1791       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1792       **/1793      setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec<UpDataStructsPropertyKeyPermission> | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsPropertyKeyPermission>]>;1794      /**1795       * Completely allow or disallow transfers for a particular collection.1796       * 1797       * # Permissions1798       * 1799       * * Collection owner1800       * 1801       * # Arguments1802       * 1803       * * `collection_id`: ID of the collection.1804       * * `value`: New value of the flag, are transfers allowed?1805       **/1806      setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;1807      /**1808       * Change ownership of the token.1809       * 1810       * # Permissions1811       * 1812       * * Collection owner1813       * * Collection admin1814       * * Current token owner1815       * 1816       * # Arguments1817       * 1818       * * `recipient`: Address of token recipient.1819       * * `collection_id`: ID of the collection the item belongs to.1820       * * `item_id`: ID of the item.1821       * * Non-Fungible Mode: Required.1822       * * Fungible Mode: Ignored.1823       * * Re-Fungible Mode: Required.1824       * 1825       * * `value`: Amount to transfer.1826       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1827       * * Fungible Mode: The desired number of pieces to transfer.1828       * * Re-Fungible Mode: The desired number of pieces to transfer.1829       **/1830      transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1831      /**1832       * Change ownership of an item on behalf of the owner as a non-owner account.1833       * 1834       * See the [`approve`][`Pallet::approve`] method for additional information.1835       * 1836       * After this method executes, one approval is removed from the total so that1837       * the approved address will not be able to transfer this item again from this owner.1838       * 1839       * # Permissions1840       * 1841       * * Collection owner1842       * * Collection admin1843       * * Current item owner1844       * * Address approved by current item owner1845       * 1846       * # Arguments1847       * 1848       * * `from`: Address that currently owns the token.1849       * * `recipient`: Address of the new token-owner-to-be.1850       * * `collection_id`: ID of the collection the item.1851       * * `item_id`: ID of the item to be transferred.1852       * * `value`: Amount to transfer.1853       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1854       * * Fungible Mode: The desired number of pieces to transfer.1855       * * Re-Fungible Mode: The desired number of pieces to transfer.1856       **/1857      transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1858      /**1859       * Generic tx1860       **/1861      [key: string]: SubmittableExtrinsicFunction<ApiType>;1862    };1863    vesting: {1864      claim: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1865      claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;1866      updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec<OrmlVestingVestingSchedule> | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [MultiAddress, Vec<OrmlVestingVestingSchedule>]>;1867      vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, OrmlVestingVestingSchedule]>;1868      /**1869       * Generic tx1870       **/1871      [key: string]: SubmittableExtrinsicFunction<ApiType>;1872    };1873    xcmpQueue: {1874      /**1875       * Resumes all XCM executions for the XCMP queue.1876       * 1877       * Note that this function doesn't change the status of the in/out bound channels.1878       * 1879       * - `origin`: Must pass `ControllerOrigin`.1880       **/1881      resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1882      /**1883       * Services a single overweight XCM.1884       * 1885       * - `origin`: Must pass `ExecuteOverweightOrigin`.1886       * - `index`: The index of the overweight XCM to service1887       * - `weight_limit`: The amount of weight that XCM execution may take.1888       * 1889       * Errors:1890       * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.1891       * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.1892       * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.1893       * 1894       * Events:1895       * - `OverweightServiced`: On success.1896       **/1897      serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;1898      /**1899       * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.1900       * 1901       * - `origin`: Must pass `ControllerOrigin`.1902       **/1903      suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1904      /**1905       * Overwrites the number of pages of messages which must be in the queue after which we drop any further1906       * messages from the channel.1907       * 1908       * - `origin`: Must pass `Root`.1909       * - `new`: Desired value for `QueueConfigData.drop_threshold`1910       **/1911      updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1912      /**1913       * Overwrites the number of pages of messages which the queue must be reduced to before it signals that1914       * message sending may recommence after it has been suspended.1915       * 1916       * - `origin`: Must pass `Root`.1917       * - `new`: Desired value for `QueueConfigData.resume_threshold`1918       **/1919      updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1920      /**1921       * Overwrites the number of pages of messages which must be in the queue for the other side to be told to1922       * suspend their sending.1923       * 1924       * - `origin`: Must pass `Root`.1925       * - `new`: Desired value for `QueueConfigData.suspend_value`1926       **/1927      updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1928      /**1929       * Overwrites the amount of remaining weight under which we stop processing messages.1930       * 1931       * - `origin`: Must pass `Root`.1932       * - `new`: Desired value for `QueueConfigData.threshold_weight`1933       **/1934      updateThresholdWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1935      /**1936       * Overwrites the speed to which the available weight approaches the maximum weight.1937       * A lower number results in a faster progression. A value of 1 makes the entire weight available initially.1938       * 1939       * - `origin`: Must pass `Root`.1940       * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.1941       **/1942      updateWeightRestrictDecay: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1943      /**1944       * Overwrite the maximum amount of weight any individual message may consume.1945       * Messages above this weight go into the overweight queue and may only be serviced explicitly.1946       * 1947       * - `origin`: Must pass `Root`.1948       * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.1949       **/1950      updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1951      /**1952       * Generic tx1953       **/1954      [key: string]: SubmittableExtrinsicFunction<ApiType>;1955    };1956    xTokens: {1957      /**1958       * Transfer native currencies.1959       * 1960       * `dest_weight_limit` is the weight for XCM execution on the dest1961       * chain, and it would be charged from the transferred assets. If set1962       * below requirements, the execution may fail and assets wouldn't be1963       * received.1964       * 1965       * It's a no-op if any error on local XCM execution or message sending.1966       * Note sending assets out per se doesn't guarantee they would be1967       * received. Receiving depends on if the XCM message could be delivered1968       * by the network, and if the receiving chain would handle1969       * messages correctly.1970       **/1971      transfer: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>;1972      /**1973       * Transfer `MultiAsset`.1974       * 1975       * `dest_weight_limit` is the weight for XCM execution on the dest1976       * chain, and it would be charged from the transferred assets. If set1977       * below requirements, the execution may fail and assets wouldn't be1978       * received.1979       * 1980       * It's a no-op if any error on local XCM execution or message sending.1981       * Note sending assets out per se doesn't guarantee they would be1982       * received. Receiving depends on if the XCM message could be delivered1983       * by the network, and if the receiving chain would handle1984       * messages correctly.1985       **/1986      transferMultiasset: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>;1987      /**1988       * Transfer several `MultiAsset` specifying the item to be used as fee1989       * 1990       * `dest_weight_limit` is the weight for XCM execution on the dest1991       * chain, and it would be charged from the transferred assets. If set1992       * below requirements, the execution may fail and assets wouldn't be1993       * received.1994       * 1995       * `fee_item` is index of the MultiAssets that we want to use for1996       * payment1997       * 1998       * It's a no-op if any error on local XCM execution or message sending.1999       * Note sending assets out per se doesn't guarantee they would be2000       * received. Receiving depends on if the XCM message could be delivered2001       * by the network, and if the receiving chain would handle2002       * messages correctly.2003       **/2004      transferMultiassets: AugmentedSubmittable<(assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2005      /**2006       * Transfer `MultiAsset` specifying the fee and amount as separate.2007       * 2008       * `dest_weight_limit` is the weight for XCM execution on the dest2009       * chain, and it would be charged from the transferred assets. If set2010       * below requirements, the execution may fail and assets wouldn't be2011       * received.2012       * 2013       * `fee` is the multiasset to be spent to pay for execution in2014       * destination chain. Both fee and amount will be subtracted form the2015       * callers balance For now we only accept fee and asset having the same2016       * `MultiLocation` id.2017       * 2018       * If `fee` is not high enough to cover for the execution costs in the2019       * destination chain, then the assets will be trapped in the2020       * destination chain2021       * 2022       * It's a no-op if any error on local XCM execution or message sending.2023       * Note sending assets out per se doesn't guarantee they would be2024       * received. Receiving depends on if the XCM message could be delivered2025       * by the network, and if the receiving chain would handle2026       * messages correctly.2027       **/2028      transferMultiassetWithFee: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, fee: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2029      /**2030       * Transfer several currencies specifying the item to be used as fee2031       * 2032       * `dest_weight_limit` is the weight for XCM execution on the dest2033       * chain, and it would be charged from the transferred assets. If set2034       * below requirements, the execution may fail and assets wouldn't be2035       * received.2036       * 2037       * `fee_item` is index of the currencies tuple that we want to use for2038       * payment2039       * 2040       * It's a no-op if any error on local XCM execution or message sending.2041       * Note sending assets out per se doesn't guarantee they would be2042       * received. Receiving depends on if the XCM message could be delivered2043       * by the network, and if the receiving chain would handle2044       * messages correctly.2045       **/2046      transferMulticurrencies: AugmentedSubmittable<(currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>> | ([PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, u128 | AnyNumber | Uint8Array])[], feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2047      /**2048       * Transfer native currencies specifying the fee and amount as2049       * separate.2050       * 2051       * `dest_weight_limit` is the weight for XCM execution on the dest2052       * chain, and it would be charged from the transferred assets. If set2053       * below requirements, the execution may fail and assets wouldn't be2054       * received.2055       * 2056       * `fee` is the amount to be spent to pay for execution in destination2057       * chain. Both fee and amount will be subtracted form the callers2058       * balance.2059       * 2060       * If `fee` is not high enough to cover for the execution costs in the2061       * destination chain, then the assets will be trapped in the2062       * destination chain2063       * 2064       * It's a no-op if any error on local XCM execution or message sending.2065       * Note sending assets out per se doesn't guarantee they would be2066       * received. Receiving depends on if the XCM message could be delivered2067       * by the network, and if the receiving chain would handle2068       * messages correctly.2069       **/2070      transferWithFee: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, fee: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2071      /**2072       * Generic tx2073       **/2074      [key: string]: SubmittableExtrinsicFunction<ApiType>;2075    };2076  } // AugmentedSubmittables2077} // declare module
after · tests/src/interfaces/augment-api-tx.ts
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/submittable';78import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';9import type { Data } from '@polkadot/types';10import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';11import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';12import type { AccountId32, Call, H160, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';13import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, OpalRuntimeRuntimeCommonSessionKeys, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistration, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';1415export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;16export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;17export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;1819declare module '@polkadot/api-base/types/submittable' {20  interface AugmentedSubmittables<ApiType extends ApiTypes> {21    appPromotion: {22      /**23       * Called for blocks that, for some reason, have not been unstacked24       * 25       * # Permissions26       * 27       * * Sudo28       * 29       * # Arguments30       * 31       * * `origin`: Must be `Root`.32       * * `pending_blocks`: Block numbers that will be processed.33       **/34      forceUnstake: AugmentedSubmittable<(pendingBlocks: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<u32>]>;35      /**36       * Recalculates interest for the specified number of stakers.37       * If all stakers are not recalculated, the next call of the extrinsic38       * will continue the recalculation, from those stakers for whom this39       * was not perform in last call.40       * 41       * # Permissions42       * 43       * * Pallet admin44       * 45       * # Arguments46       * 47       * * `stakers_number`: the number of stakers for which recalculation will be performed48       **/49      payoutStakers: AugmentedSubmittable<(stakersNumber: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u8>]>;50      /**51       * Sets an address as the the admin.52       * 53       * # Permissions54       * 55       * * Sudo56       * 57       * # Arguments58       * 59       * * `admin`: account of the new admin.60       **/61      setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;62      /**63       * Sets the pallet to be the sponsor for the collection.64       * 65       * # Permissions66       * 67       * * Pallet admin68       * 69       * # Arguments70       * 71       * * `collection_id`: ID of the collection that will be sponsored by `pallet_id`72       **/73      sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;74      /**75       * Sets the pallet to be the sponsor for the contract.76       * 77       * # Permissions78       * 79       * * Pallet admin80       * 81       * # Arguments82       * 83       * * `contract_id`: the contract address that will be sponsored by `pallet_id`84       **/85      sponsorContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;86      /**87       * Stakes the amount of native tokens.88       * Sets `amount` to the locked state.89       * The maximum number of stakes for a staker is 10.90       * 91       * # Arguments92       * 93       * * `amount`: in native tokens.94       **/95      stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;96      /**97       * Removes the pallet as the sponsor for the collection.98       * Returns [`NoPermission`][`Error::NoPermission`]99       * if the pallet wasn't the sponsor.100       * 101       * # Permissions102       * 103       * * Pallet admin104       * 105       * # Arguments106       * 107       * * `collection_id`: ID of the collection that is sponsored by `pallet_id`108       **/109      stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;110      /**111       * Removes the pallet as the sponsor for the contract.112       * Returns [`NoPermission`][`Error::NoPermission`]113       * if the pallet wasn't the sponsor.114       * 115       * # Permissions116       * 117       * * Pallet admin118       * 119       * # Arguments120       * 121       * * `contract_id`: the contract address that is sponsored by `pallet_id`122       **/123      stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;124      /**125       * Unstakes all stakes.126       * After the end of `PendingInterval` this sum becomes completely127       * free for further use.128       **/129      unstakeAll: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;130      /**131       * Unstakes the amount of balance for the staker.132       * After the end of `PendingInterval` this sum becomes completely133       * free for further use.134       * 135       * # Arguments136       * 137       * * `staker`: staker account.138       * * `amount`: amount of unstaked funds.139       **/140      unstakePartial: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;141      /**142       * Generic tx143       **/144      [key: string]: SubmittableExtrinsicFunction<ApiType>;145    };146    balances: {147      /**148       * Set the regular balance of a given account.149       * 150       * The dispatch origin for this call is `root`.151       **/152      forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;153      /**154       * Exactly as `transfer_allow_death`, except the origin must be root and the source account155       * may be specified.156       **/157      forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;158      /**159       * Unreserve some balance from a user by force.160       * 161       * Can only be called by ROOT.162       **/163      forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;164      /**165       * Set the regular balance of a given account; it also takes a reserved balance but this166       * must be the same as the account's current reserved balance.167       * 168       * The dispatch origin for this call is `root`.169       * 170       * WARNING: This call is DEPRECATED! Use `force_set_balance` instead.171       **/172      setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;173      /**174       * Alias for `transfer_allow_death`, provided only for name-wise compatibility.175       * 176       * WARNING: DEPRECATED! Will be released in approximately 3 months.177       **/178      transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;179      /**180       * Transfer the entire transferable balance from the caller account.181       * 182       * NOTE: This function only attempts to transfer _transferable_ balances. This means that183       * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be184       * transferred by this function. To ensure that this function results in a killed account,185       * you might need to prepare the account by removing any reference counters, storage186       * deposits, etc...187       * 188       * The dispatch origin of this call must be Signed.189       * 190       * - `dest`: The recipient of the transfer.191       * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all192       * of the funds the account has, causing the sender account to be killed (false), or193       * transfer everything except at least the existential deposit, which will guarantee to194       * keep the sender account alive (true).195       **/196      transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;197      /**198       * Transfer some liquid free balance to another account.199       * 200       * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.201       * If the sender's account is below the existential deposit as a result202       * of the transfer, the account will be reaped.203       * 204       * The dispatch origin for this call must be `Signed` by the transactor.205       **/206      transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;207      /**208       * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not209       * kill the origin account.210       * 211       * 99% of the time you want [`transfer_allow_death`] instead.212       * 213       * [`transfer_allow_death`]: struct.Pallet.html#method.transfer214       **/215      transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;216      /**217       * Upgrade a specified account.218       * 219       * - `origin`: Must be `Signed`.220       * - `who`: The account to be upgraded.221       * 222       * This will waive the transaction fee if at least all but 10% of the accounts needed to223       * be upgraded. (We let some not have to be upgraded just in order to allow for the224       * possibililty of churn).225       **/226      upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;227      /**228       * Generic tx229       **/230      [key: string]: SubmittableExtrinsicFunction<ApiType>;231    };232    collatorSelection: {233      /**234       * Add a collator to the list of invulnerable (fixed) collators.235       **/236      addInvulnerable: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;237      /**238       * Force deregister `origin` as a collator candidate as a governing authority, and revoke its license.239       * Note that the collator can only leave on session change.240       * The `LicenseBond` will be unreserved and returned immediately.241       * 242       * This call is, of course, not applicable to `Invulnerable` collators.243       **/244      forceReleaseLicense: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;245      /**246       * Purchase a license on block collation for this account.247       * It does not make it a collator candidate, use `onboard` afterward. The account must248       * (a) already have registered session keys and (b) be able to reserve the `LicenseBond`.249       * 250       * This call is not available to `Invulnerable` collators.251       **/252      getLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;253      /**254       * Deregister `origin` as a collator candidate. Note that the collator can only leave on255       * session change. The license to `onboard` later at any other time will remain.256       **/257      offboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;258      /**259       * Register this account as a candidate for collators for next sessions.260       * The account must already hold a license, and cannot offboard immediately during a session.261       * 262       * This call is not available to `Invulnerable` collators.263       **/264      onboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;265      /**266       * Forfeit `origin`'s own license. The `LicenseBond` will be unreserved immediately.267       * 268       * This call is not available to `Invulnerable` collators.269       **/270      releaseLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;271      /**272       * Remove a collator from the list of invulnerable (fixed) collators.273       **/274      removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;275      /**276       * Generic tx277       **/278      [key: string]: SubmittableExtrinsicFunction<ApiType>;279    };280    configuration: {281      setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletConfigurationAppPromotionConfiguration]>;282      setCollatorSelectionDesiredCollators: AugmentedSubmittable<(max: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;283      setCollatorSelectionKickThreshold: AugmentedSubmittable<(threshold: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;284      setCollatorSelectionLicenseBond: AugmentedSubmittable<(amount: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>]>;285      setMinGasPriceOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;286      setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;287      /**288       * Generic tx289       **/290      [key: string]: SubmittableExtrinsicFunction<ApiType>;291    };292    cumulusXcm: {293      /**294       * Generic tx295       **/296      [key: string]: SubmittableExtrinsicFunction<ApiType>;297    };298    dmpQueue: {299      /**300       * Service a single overweight message.301       **/302      serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;303      /**304       * Generic tx305       **/306      [key: string]: SubmittableExtrinsicFunction<ApiType>;307    };308    ethereum: {309      /**310       * Transact an Ethereum transaction.311       **/312      transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;313      /**314       * Generic tx315       **/316      [key: string]: SubmittableExtrinsicFunction<ApiType>;317    };318    evm: {319      /**320       * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.321       **/322      call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;323      /**324       * Issue an EVM create operation. This is similar to a contract creation transaction in325       * Ethereum.326       **/327      create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;328      /**329       * Issue an EVM create2 operation.330       **/331      create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;332      /**333       * Withdraw balance from EVM into currency/balances pallet.334       **/335      withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;336      /**337       * Generic tx338       **/339      [key: string]: SubmittableExtrinsicFunction<ApiType>;340    };341    evmContractHelpers: {342      /**343       * Migrate contract to use `SponsoringMode` storage instead of `SelfSponsoring`344       **/345      migrateFromSelfSponsoring: AugmentedSubmittable<(addresses: Vec<H160> | (H160 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H160>]>;346      /**347       * Generic tx348       **/349      [key: string]: SubmittableExtrinsicFunction<ApiType>;350    };351    evmMigration: {352      /**353       * Start contract migration, inserts contract stub at target address,354       * and marks account as pending, allowing to insert storage355       **/356      begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;357      /**358       * Finish contract migration, allows it to be called.359       * It is not possible to alter contract storage via [`Self::set_data`]360       * after this call.361       **/362      finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;363      /**364       * Create ethereum events attached to the fake transaction365       **/366      insertEthLogs: AugmentedSubmittable<(logs: Vec<EthereumLog> | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<EthereumLog>]>;367      /**368       * Create substrate events369       **/370      insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;371      /**372       * Remove remark compatibility data leftovers373       **/374      removeRmrkData: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;375      /**376       * Insert items into contract storage, this method can be called377       * multiple times378       **/379      setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;380      /**381       * Generic tx382       **/383      [key: string]: SubmittableExtrinsicFunction<ApiType>;384    };385    foreignAssets: {386      registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;387      updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;388      /**389       * Generic tx390       **/391      [key: string]: SubmittableExtrinsicFunction<ApiType>;392    };393    identity: {394      /**395       * Add a registrar to the system.396       * 397       * The dispatch origin for this call must be `T::RegistrarOrigin`.398       * 399       * - `account`: the account of the registrar.400       * 401       * Emits `RegistrarAdded` if successful.402       * 403       * # <weight>404       * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).405       * - One storage mutation (codec `O(R)`).406       * - One event.407       * # </weight>408       **/409      addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;410      /**411       * Add the given account to the sender's subs.412       * 413       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated414       * to the sender.415       * 416       * The dispatch origin for this call must be _Signed_ and the sender must have a registered417       * sub identity of `sub`.418       **/419      addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;420      /**421       * Cancel a previous request.422       * 423       * Payment: A previously reserved deposit is returned on success.424       * 425       * The dispatch origin for this call must be _Signed_ and the sender must have a426       * registered identity.427       * 428       * - `reg_index`: The index of the registrar whose judgement is no longer requested.429       * 430       * Emits `JudgementUnrequested` if successful.431       * 432       * # <weight>433       * - `O(R + X)`.434       * - One balance-reserve operation.435       * - One storage mutation `O(R + X)`.436       * - One event437       * # </weight>438       **/439      cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;440      /**441       * Clear an account's identity info and all sub-accounts and return all deposits.442       * 443       * Payment: All reserved balances on the account are returned.444       * 445       * The dispatch origin for this call must be _Signed_ and the sender must have a registered446       * identity.447       * 448       * Emits `IdentityCleared` if successful.449       * 450       * # <weight>451       * - `O(R + S + X)`452       * - where `R` registrar-count (governance-bounded).453       * - where `S` subs-count (hard- and deposit-bounded).454       * - where `X` additional-field-count (deposit-bounded and code-bounded).455       * - One balance-unreserve operation.456       * - `2` storage reads and `S + 2` storage deletions.457       * - One event.458       * # </weight>459       **/460      clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;461      /**462       * Set identities to be associated with the provided accounts as force origin.463       * 464       * This is not meant to operate in tandem with the identity pallet as is,465       * and be instead used to keep identities made and verified externally,466       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.467       **/468      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]>>]>;469      /**470       * Remove identities associated with the provided accounts as force origin.471       * 472       * This is not meant to operate in tandem with the identity pallet as is,473       * and be instead used to keep identities made and verified externally,474       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.475       **/476      forceRemoveIdentities: AugmentedSubmittable<(identities: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;477      /**478       * Set sub-identities to be associated with the provided accounts as force origin.479       * 480       * This is not meant to operate in tandem with the identity pallet as is,481       * and be instead used to keep identities made and verified externally,482       * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.483       **/484      forceSetSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>> | ([AccountId32 | string | Uint8Array, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]> | [u128 | AnyNumber | Uint8Array, Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]]])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>]>;485      /**486       * Remove an account's identity and sub-account information and slash the deposits.487       * 488       * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by489       * `Slash`. Verification request deposits are not returned; they should be cancelled490       * manually using `cancel_request`.491       * 492       * The dispatch origin for this call must match `T::ForceOrigin`.493       * 494       * - `target`: the account whose identity the judgement is upon. This must be an account495       * with a registered identity.496       * 497       * Emits `IdentityKilled` if successful.498       * 499       * # <weight>500       * - `O(R + S + X)`.501       * - One balance-reserve operation.502       * - `S + 2` storage mutations.503       * - One event.504       * # </weight>505       **/506      killIdentity: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;507      /**508       * Provide a judgement for an account's identity.509       * 510       * The dispatch origin for this call must be _Signed_ and the sender must be the account511       * of the registrar whose index is `reg_index`.512       * 513       * - `reg_index`: the index of the registrar whose judgement is being made.514       * - `target`: the account whose identity the judgement is upon. This must be an account515       * with a registered identity.516       * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.517       * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.518       * 519       * Emits `JudgementGiven` if successful.520       * 521       * # <weight>522       * - `O(R + X)`.523       * - One balance-transfer operation.524       * - Up to one account-lookup operation.525       * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.526       * - One event.527       * # </weight>528       **/529      provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;530      /**531       * Remove the sender as a sub-account.532       * 533       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated534       * to the sender (*not* the original depositor).535       * 536       * The dispatch origin for this call must be _Signed_ and the sender must have a registered537       * super-identity.538       * 539       * NOTE: This should not normally be used, but is provided in the case that the non-540       * controller of an account is maliciously registered as a sub-account.541       **/542      quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;543      /**544       * Remove the given account from the sender's subs.545       * 546       * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated547       * to the sender.548       * 549       * The dispatch origin for this call must be _Signed_ and the sender must have a registered550       * sub identity of `sub`.551       **/552      removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;553      /**554       * Alter the associated name of the given sub-account.555       * 556       * The dispatch origin for this call must be _Signed_ and the sender must have a registered557       * sub identity of `sub`.558       **/559      renameSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;560      /**561       * Request a judgement from a registrar.562       * 563       * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement564       * given.565       * 566       * The dispatch origin for this call must be _Signed_ and the sender must have a567       * registered identity.568       * 569       * - `reg_index`: The index of the registrar whose judgement is requested.570       * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:571       * 572       * ```nocompile573       * Self::registrars().get(reg_index).unwrap().fee574       * ```575       * 576       * Emits `JudgementRequested` if successful.577       * 578       * # <weight>579       * - `O(R + X)`.580       * - One balance-reserve operation.581       * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.582       * - One event.583       * # </weight>584       **/585      requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;586      /**587       * Change the account associated with a registrar.588       * 589       * The dispatch origin for this call must be _Signed_ and the sender must be the account590       * of the registrar whose index is `index`.591       * 592       * - `index`: the index of the registrar whose fee is to be set.593       * - `new`: the new account ID.594       * 595       * # <weight>596       * - `O(R)`.597       * - One storage mutation `O(R)`.598       * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)599       * # </weight>600       **/601      setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;602      /**603       * Set the fee required for a judgement to be requested from a registrar.604       * 605       * The dispatch origin for this call must be _Signed_ and the sender must be the account606       * of the registrar whose index is `index`.607       * 608       * - `index`: the index of the registrar whose fee is to be set.609       * - `fee`: the new fee.610       * 611       * # <weight>612       * - `O(R)`.613       * - One storage mutation `O(R)`.614       * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)615       * # </weight>616       **/617      setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;618      /**619       * Set the field information for a registrar.620       * 621       * The dispatch origin for this call must be _Signed_ and the sender must be the account622       * of the registrar whose index is `index`.623       * 624       * - `index`: the index of the registrar whose fee is to be set.625       * - `fields`: the fields that the registrar concerns themselves with.626       * 627       * # <weight>628       * - `O(R)`.629       * - One storage mutation `O(R)`.630       * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)631       * # </weight>632       **/633      setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;634      /**635       * Set an account's identity information and reserve the appropriate deposit.636       * 637       * If the account already has identity information, the deposit is taken as part payment638       * for the new deposit.639       * 640       * The dispatch origin for this call must be _Signed_.641       * 642       * - `info`: The identity information.643       * 644       * Emits `IdentitySet` if successful.645       * 646       * # <weight>647       * - `O(X + X' + R)`648       * - where `X` additional-field-count (deposit-bounded and code-bounded)649       * - where `R` judgements-count (registrar-count-bounded)650       * - One balance reserve operation.651       * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).652       * - One event.653       * # </weight>654       **/655      setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;656      /**657       * Set the sub-accounts of the sender.658       * 659       * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned660       * and an amount `SubAccountDeposit` will be reserved for each item in `subs`.661       * 662       * The dispatch origin for this call must be _Signed_ and the sender must have a registered663       * identity.664       * 665       * - `subs`: The identity's (new) sub-accounts.666       * 667       * # <weight>668       * - `O(P + S)`669       * - where `P` old-subs-count (hard- and deposit-bounded).670       * - where `S` subs-count (hard- and deposit-bounded).671       * - At most one balance operations.672       * - DB:673       * - `P + S` storage mutations (codec complexity `O(1)`)674       * - One storage read (codec complexity `O(P)`).675       * - One storage write (codec complexity `O(S)`).676       * - One storage-exists (`IdentityOf::contains_key`).677       * # </weight>678       **/679      setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;680      /**681       * Generic tx682       **/683      [key: string]: SubmittableExtrinsicFunction<ApiType>;684    };685    inflation: {686      /**687       * This method sets the inflation start date. Can be only called once.688       * Inflation start block can be backdated and will catch up. The method will create Treasury689       * account if it does not exist and perform the first inflation deposit.690       * 691       * # Permissions692       * 693       * * Root694       * 695       * # Arguments696       * 697       * * inflation_start_relay_block: The relay chain block at which inflation should start698       **/699      startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;700      /**701       * Generic tx702       **/703      [key: string]: SubmittableExtrinsicFunction<ApiType>;704    };705    maintenance: {706      disable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;707      enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;708      /**709       * Execute a runtime call stored as a preimage.710       * 711       * `weight_bound` is the maximum weight that the caller is willing712       * to allow the extrinsic to be executed with.713       **/714      executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array, weightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;715      /**716       * Generic tx717       **/718      [key: string]: SubmittableExtrinsicFunction<ApiType>;719    };720    parachainInfo: {721      /**722       * Generic tx723       **/724      [key: string]: SubmittableExtrinsicFunction<ApiType>;725    };726    parachainSystem: {727      /**728       * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied729       * later.730       * 731       * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec732       * version and name should be verified on upgrade. Since the authorization only has a hash,733       * it cannot actually perform the verification.734       * 735       * This call requires Root origin.736       **/737      authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, bool]>;738      /**739       * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.740       * 741       * If the authorization required a version check, this call will ensure the spec name742       * remains unchanged and that the spec version has increased.743       * 744       * Note that this function will not apply the new `code`, but only attempt to schedule the745       * upgrade with the Relay Chain.746       * 747       * All origins are allowed.748       **/749      enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;750      /**751       * Set the current validation data.752       * 753       * This should be invoked exactly once per block. It will panic at the finalization754       * phase if the call was not invoked.755       * 756       * The dispatch origin for this call must be `Inherent`757       * 758       * As a side effect, this function upgrades the current validation function759       * if the appropriate time has come.760       **/761      setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CumulusPrimitivesParachainInherentParachainInherentData]>;762      sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;763      /**764       * Generic tx765       **/766      [key: string]: SubmittableExtrinsicFunction<ApiType>;767    };768    polkadotXcm: {769      /**770       * Execute an XCM message from a local, signed, origin.771       * 772       * An event is deposited indicating whether `msg` could be executed completely or only773       * partially.774       * 775       * No more than `max_weight` will be used in its attempted execution. If this is less than the776       * maximum amount of weight that the message could take to be executed, then no execution777       * attempt will be made.778       * 779       * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully780       * to completion; only that *some* of it was executed.781       **/782      execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;783      /**784       * Set a safe XCM version (the version that XCM should be encoded with if the most recent785       * version a destination can accept is unknown).786       * 787       * - `origin`: Must be an origin specified by AdminOrigin.788       * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.789       **/790      forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;791      /**792       * Ask a location to notify us regarding their XCM version and any changes to it.793       * 794       * - `origin`: Must be an origin specified by AdminOrigin.795       * - `location`: The location to which we should subscribe for XCM version notifications.796       **/797      forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;798      /**799       * Set or unset the global suspension state of the XCM executor.800       * 801       * - `origin`: Must be an origin specified by AdminOrigin.802       * - `suspended`: `true` to suspend, `false` to resume.803       **/804      forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;805      /**806       * Require that a particular destination should no longer notify us regarding any XCM807       * version changes.808       * 809       * - `origin`: Must be an origin specified by AdminOrigin.810       * - `location`: The location to which we are currently subscribed for XCM version811       * notifications which we no longer desire.812       **/813      forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;814      /**815       * Extoll that a particular destination can be communicated with through a particular816       * version of XCM.817       * 818       * - `origin`: Must be an origin specified by AdminOrigin.819       * - `location`: The destination that is being described.820       * - `xcm_version`: The latest version of XCM that `location` supports.821       **/822      forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV3MultiLocation, u32]>;823      /**824       * Transfer some assets from the local chain to the sovereign account of a destination825       * chain and forward a notification XCM.826       * 827       * Fee payment on the destination side is made from the asset in the `assets` vector of828       * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight829       * is needed than `weight_limit`, then the operation will fail and the assets send may be830       * at risk.831       * 832       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.833       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send834       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.835       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be836       * an `AccountId32` value.837       * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the838       * `dest` side.839       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay840       * fees.841       * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.842       **/843      limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;844      /**845       * Teleport some assets from the local chain to some destination chain.846       * 847       * Fee payment on the destination side is made from the asset in the `assets` vector of848       * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight849       * is needed than `weight_limit`, then the operation will fail and the assets send may be850       * at risk.851       * 852       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.853       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send854       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.855       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be856       * an `AccountId32` value.857       * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the858       * `dest` side. May not be empty.859       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay860       * fees.861       * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.862       **/863      limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>;864      /**865       * Transfer some assets from the local chain to the sovereign account of a destination866       * chain and forward a notification XCM.867       * 868       * Fee payment on the destination side is made from the asset in the `assets` vector of869       * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,870       * with all fees taken as needed from the asset.871       * 872       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.873       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send874       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.875       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be876       * an `AccountId32` value.877       * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the878       * `dest` side.879       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay880       * fees.881       **/882      reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;883      send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;884      /**885       * Teleport some assets from the local chain to some destination chain.886       * 887       * Fee payment on the destination side is made from the asset in the `assets` vector of888       * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,889       * with all fees taken as needed from the asset.890       * 891       * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.892       * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send893       * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.894       * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be895       * an `AccountId32` value.896       * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the897       * `dest` side. May not be empty.898       * - `fee_asset_item`: The index into `assets` of the item which should be used to pay899       * fees.900       **/901      teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;902      /**903       * Generic tx904       **/905      [key: string]: SubmittableExtrinsicFunction<ApiType>;906    };907    preimage: {908      /**909       * Register a preimage on-chain.910       * 911       * If the preimage was previously requested, no fees or deposits are taken for providing912       * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.913       **/914      notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;915      /**916       * Request a preimage be uploaded to the chain without paying any fees or deposits.917       * 918       * If the preimage requests has already been provided on-chain, we unreserve any deposit919       * a user may have paid, and take the control of the preimage out of their hands.920       **/921      requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;922      /**923       * Clear an unrequested preimage from the runtime storage.924       * 925       * If `len` is provided, then it will be a much cheaper operation.926       * 927       * - `hash`: The hash of the preimage to be removed from the store.928       * - `len`: The length of the preimage of `hash`.929       **/930      unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;931      /**932       * Clear a previously made request for a preimage.933       * 934       * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.935       **/936      unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;937      /**938       * Generic tx939       **/940      [key: string]: SubmittableExtrinsicFunction<ApiType>;941    };942    session: {943      /**944       * Removes any session key(s) of the function caller.945       * 946       * This doesn't take effect until the next session.947       * 948       * The dispatch origin of this function must be Signed and the account must be either be949       * convertible to a validator ID using the chain's typical addressing system (this usually950       * means being a controller account) or directly convertible into a validator ID (which951       * usually means being a stash account).952       * 953       * ## Complexity954       * - `O(1)` in number of key types. Actual cost depends on the number of length of955       * `T::Keys::key_ids()` which is fixed.956       **/957      purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;958      /**959       * Sets the session key(s) of the function caller to `keys`.960       * Allows an account to set its session key prior to becoming a validator.961       * This doesn't take effect until the next session.962       * 963       * The dispatch origin of this function must be signed.964       * 965       * ## Complexity966       * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is967       * fixed.968       **/969      setKeys: AugmentedSubmittable<(keys: OpalRuntimeRuntimeCommonSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpalRuntimeRuntimeCommonSessionKeys, Bytes]>;970      /**971       * Generic tx972       **/973      [key: string]: SubmittableExtrinsicFunction<ApiType>;974    };975    stateTrieMigration: {976      /**977       * Continue the migration for the given `limits`.978       * 979       * The dispatch origin of this call can be any signed account.980       * 981       * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,982       * Upon successful execution, the transaction fee is returned.983       * 984       * The (potentially over-estimated) of the byte length of all the data read must be985       * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing986       * that executing the current `MigrationTask` with the given `limits` will not exceed987       * `real_size_upper` bytes of read data.988       * 989       * The `witness_task` is merely a helper to prevent the caller from being slashed or990       * generally trigger a migration that they do not intend. This parameter is just a message991       * from caller, saying that they believed `witness_task` was the last state of the992       * migration, and they only wish for their transaction to do anything, if this assumption993       * holds. In case `witness_task` does not match, the transaction fails.994       * 995       * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the996       * recommended way of doing this is to pass a `limit` that only bounds `count`, as the997       * `size` limit can always be overwritten.998       **/999      continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;1000      /**1001       * Control the automatic migration.1002       * 1003       * The dispatch origin of this call must be [`Config::ControlOrigin`].1004       **/1005      controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;1006      /**1007       * Forcefully set the progress the running migration.1008       * 1009       * This is only useful in one case: the next key to migrate is too big to be migrated with1010       * a signed account, in a parachain context, and we simply want to skip it. A reasonable1011       * example of this would be `:code:`, which is both very expensive to migrate, and commonly1012       * used, so probably it is already migrated.1013       * 1014       * In case you mess things up, you can also, in principle, use this to reset the migration1015       * process.1016       **/1017      forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;1018      /**1019       * Migrate the list of child keys by iterating each of them one by one.1020       * 1021       * All of the given child keys must be present under one `child_root`.1022       * 1023       * This does not affect the global migration process tracker ([`MigrationProcess`]), and1024       * should only be used in case any keys are leftover due to a bug.1025       **/1026      migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;1027      /**1028       * Migrate the list of top keys by iterating each of them one by one.1029       * 1030       * This does not affect the global migration process tracker ([`MigrationProcess`]), and1031       * should only be used in case any keys are leftover due to a bug.1032       **/1033      migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;1034      /**1035       * Set the maximum limit of the signed migration.1036       **/1037      setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;1038      /**1039       * Generic tx1040       **/1041      [key: string]: SubmittableExtrinsicFunction<ApiType>;1042    };1043    structure: {1044      /**1045       * Generic tx1046       **/1047      [key: string]: SubmittableExtrinsicFunction<ApiType>;1048    };1049    sudo: {1050      /**1051       * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo1052       * key.1053       * 1054       * The dispatch origin for this call must be _Signed_.1055       * 1056       * ## Complexity1057       * - O(1).1058       **/1059      setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;1060      /**1061       * Authenticates the sudo key and dispatches a function call with `Root` origin.1062       * 1063       * The dispatch origin for this call must be _Signed_.1064       * 1065       * ## Complexity1066       * - O(1).1067       **/1068      sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;1069      /**1070       * Authenticates the sudo key and dispatches a function call with `Signed` origin from1071       * a given account.1072       * 1073       * The dispatch origin for this call must be _Signed_.1074       * 1075       * ## Complexity1076       * - O(1).1077       **/1078      sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;1079      /**1080       * Authenticates the sudo key and dispatches a function call with `Root` origin.1081       * This function does not check the weight of the call, and instead allows the1082       * Sudo user to specify the weight of the call.1083       * 1084       * The dispatch origin for this call must be _Signed_.1085       * 1086       * ## Complexity1087       * - O(1).1088       **/1089      sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;1090      /**1091       * Generic tx1092       **/1093      [key: string]: SubmittableExtrinsicFunction<ApiType>;1094    };1095    system: {1096      /**1097       * Kill all storage items with a key that starts with the given prefix.1098       * 1099       * **NOTE:** We rely on the Root origin to provide us the number of subkeys under1100       * the prefix we are removing to accurately calculate the weight of this function.1101       **/1102      killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;1103      /**1104       * Kill some items from storage.1105       **/1106      killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;1107      /**1108       * Make some on-chain remark.1109       * 1110       * - `O(1)`1111       **/1112      remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1113      /**1114       * Make some on-chain remark and emit event.1115       **/1116      remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1117      /**1118       * Set the new runtime code.1119       **/1120      setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1121      /**1122       * Set the new runtime code without doing any checks of the given `code`.1123       **/1124      setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;1125      /**1126       * Set the number of pages in the WebAssembly environment's heap.1127       **/1128      setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1129      /**1130       * Set some items of storage.1131       **/1132      setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;1133      /**1134       * Generic tx1135       **/1136      [key: string]: SubmittableExtrinsicFunction<ApiType>;1137    };1138    testUtils: {1139      batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;1140      enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1141      incTestValue: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1142      justTakeFee: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1143      setTestValue: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1144      setTestValueAndRollback: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1145      /**1146       * Generic tx1147       **/1148      [key: string]: SubmittableExtrinsicFunction<ApiType>;1149    };1150    timestamp: {1151      /**1152       * Set the current time.1153       * 1154       * This call should be invoked exactly once per block. It will panic at the finalization1155       * phase, if this call hasn't been invoked by that time.1156       * 1157       * The timestamp should be greater than the previous one by the amount specified by1158       * `MinimumPeriod`.1159       * 1160       * The dispatch origin for this call must be `Inherent`.1161       * 1162       * ## Complexity1163       * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)1164       * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in1165       * `on_finalize`)1166       * - 1 event handler `on_timestamp_set`. Must be `O(1)`.1167       **/1168      set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;1169      /**1170       * Generic tx1171       **/1172      [key: string]: SubmittableExtrinsicFunction<ApiType>;1173    };1174    tokens: {1175      /**1176       * Exactly as `transfer`, except the origin must be root and the source1177       * account may be specified.1178       * 1179       * The dispatch origin for this call must be _Root_.1180       * 1181       * - `source`: The sender of the transfer.1182       * - `dest`: The recipient of the transfer.1183       * - `currency_id`: currency type.1184       * - `amount`: free balance amount to tranfer.1185       **/1186      forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1187      /**1188       * Set the balances of a given account.1189       * 1190       * This will alter `FreeBalance` and `ReservedBalance` in storage. it1191       * will also decrease the total issuance of the system1192       * (`TotalIssuance`). If the new free or reserved balance is below the1193       * existential deposit, it will reap the `AccountInfo`.1194       * 1195       * The dispatch origin for this call is `root`.1196       **/1197      setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>, Compact<u128>]>;1198      /**1199       * Transfer some liquid free balance to another account.1200       * 1201       * `transfer` will set the `FreeBalance` of the sender and receiver.1202       * It will decrease the total issuance of the system by the1203       * `TransferFee`. If the sender's account is below the existential1204       * deposit as a result of the transfer, the account will be reaped.1205       * 1206       * The dispatch origin for this call must be `Signed` by the1207       * transactor.1208       * 1209       * - `dest`: The recipient of the transfer.1210       * - `currency_id`: currency type.1211       * - `amount`: free balance amount to tranfer.1212       **/1213      transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1214      /**1215       * Transfer all remaining balance to the given account.1216       * 1217       * NOTE: This function only attempts to transfer _transferable_1218       * balances. This means that any locked, reserved, or existential1219       * deposits (when `keep_alive` is `true`), will not be transferred by1220       * this function. To ensure that this function results in a killed1221       * account, you might need to prepare the account by removing any1222       * reference counters, storage deposits, etc...1223       * 1224       * The dispatch origin for this call must be `Signed` by the1225       * transactor.1226       * 1227       * - `dest`: The recipient of the transfer.1228       * - `currency_id`: currency type.1229       * - `keep_alive`: A boolean to determine if the `transfer_all`1230       * operation should send all of the funds the account has, causing1231       * the sender account to be killed (false), or transfer everything1232       * except at least the existential deposit, which will guarantee to1233       * keep the sender account alive (true).1234       **/1235      transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, bool]>;1236      /**1237       * Same as the [`transfer`] call, but with a check that the transfer1238       * will not kill the origin account.1239       * 1240       * 99% of the time you want [`transfer`] instead.1241       * 1242       * The dispatch origin for this call must be `Signed` by the1243       * transactor.1244       * 1245       * - `dest`: The recipient of the transfer.1246       * - `currency_id`: currency type.1247       * - `amount`: free balance amount to tranfer.1248       **/1249      transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1250      /**1251       * Generic tx1252       **/1253      [key: string]: SubmittableExtrinsicFunction<ApiType>;1254    };1255    treasury: {1256      /**1257       * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary1258       * and the original deposit will be returned.1259       * 1260       * May only be called from `T::ApproveOrigin`.1261       * 1262       * ## Complexity1263       * - O(1).1264       **/1265      approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1266      /**1267       * Put forward a suggestion for spending. A deposit proportional to the value1268       * is reserved and slashed if the proposal is rejected. It is returned once the1269       * proposal is awarded.1270       * 1271       * ## Complexity1272       * - O(1)1273       **/1274      proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1275      /**1276       * Reject a proposed spend. The original deposit will be slashed.1277       * 1278       * May only be called from `T::RejectOrigin`.1279       * 1280       * ## Complexity1281       * - O(1)1282       **/1283      rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1284      /**1285       * Force a previously approved proposal to be removed from the approval queue.1286       * The original deposit will no longer be returned.1287       * 1288       * May only be called from `T::RejectOrigin`.1289       * - `proposal_id`: The index of a proposal1290       * 1291       * ## Complexity1292       * - O(A) where `A` is the number of approvals1293       * 1294       * Errors:1295       * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,1296       * i.e., the proposal has not been approved. This could also mean the proposal does not1297       * exist altogether, thus there is no way it would have been approved in the first place.1298       **/1299      removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1300      /**1301       * Propose and approve a spend of treasury funds.1302       * 1303       * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`.1304       * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.1305       * - `beneficiary`: The destination account for the transfer.1306       * 1307       * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the1308       * beneficiary.1309       **/1310      spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1311      /**1312       * Generic tx1313       **/1314      [key: string]: SubmittableExtrinsicFunction<ApiType>;1315    };1316    unique: {1317      /**1318       * Add an admin to a collection.1319       * 1320       * NFT Collection can be controlled by multiple admin addresses1321       * (some which can also be servers, for example). Admins can issue1322       * and burn NFTs, as well as add and remove other admins,1323       * but cannot change NFT or Collection ownership.1324       * 1325       * # Permissions1326       * 1327       * * Collection owner1328       * * Collection admin1329       * 1330       * # Arguments1331       * 1332       * * `collection_id`: ID of the Collection to add an admin for.1333       * * `new_admin`: Address of new admin to add.1334       **/1335      addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1336      /**1337       * Add an address to allow list.1338       * 1339       * # Permissions1340       * 1341       * * Collection owner1342       * * Collection admin1343       * 1344       * # Arguments1345       * 1346       * * `collection_id`: ID of the modified collection.1347       * * `address`: ID of the address to be added to the allowlist.1348       **/1349      addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1350      /**1351       * Allow a non-permissioned address to transfer or burn an item.1352       * 1353       * # Permissions1354       * 1355       * * Collection owner1356       * * Collection admin1357       * * Current item owner1358       * 1359       * # Arguments1360       * 1361       * * `spender`: Account to be approved to make specific transactions on non-owned tokens.1362       * * `collection_id`: ID of the collection the item belongs to.1363       * * `item_id`: ID of the item transactions on which are now approved.1364       * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1365       * Set to 0 to revoke the approval.1366       **/1367      approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1368      /**1369       * Allow a non-permissioned address to transfer or burn an item from owner's eth mirror.1370       * 1371       * # Permissions1372       * 1373       * * Collection owner1374       * * Collection admin1375       * * Current item owner1376       * 1377       * # Arguments1378       * 1379       * * `from`: Owner's account eth mirror1380       * * `to`: Account to be approved to make specific transactions on non-owned tokens.1381       * * `collection_id`: ID of the collection the item belongs to.1382       * * `item_id`: ID of the item transactions on which are now approved.1383       * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1384       * Set to 0 to revoke the approval.1385       **/1386      approveFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, to: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1387      /**1388       * Destroy a token on behalf of the owner as a non-owner account.1389       * 1390       * See also: [`approve`][`Pallet::approve`].1391       * 1392       * After this method executes, one approval is removed from the total so that1393       * the approved address will not be able to transfer this item again from this owner.1394       * 1395       * # Permissions1396       * 1397       * * Collection owner1398       * * Collection admin1399       * * Current token owner1400       * * Address approved by current item owner1401       * 1402       * # Arguments1403       * 1404       * * `from`: The owner of the burning item.1405       * * `collection_id`: ID of the collection to which the item belongs.1406       * * `item_id`: ID of item to burn.1407       * * `value`: Number of pieces to burn.1408       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1409       * * Fungible Mode: The desired number of pieces to burn.1410       * * Re-Fungible Mode: The desired number of pieces to burn.1411       **/1412      burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;1413      /**1414       * Destroy an item.1415       * 1416       * # Permissions1417       * 1418       * * Collection owner1419       * * Collection admin1420       * * Current item owner1421       * 1422       * # Arguments1423       * 1424       * * `collection_id`: ID of the collection to which the item belongs.1425       * * `item_id`: ID of item to burn.1426       * * `value`: Number of pieces of the item to destroy.1427       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1428       * * Fungible Mode: The desired number of pieces to burn.1429       * * Re-Fungible Mode: The desired number of pieces to burn.1430       **/1431      burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1432      /**1433       * Change the owner of the collection.1434       * 1435       * # Permissions1436       * 1437       * * Collection owner1438       * 1439       * # Arguments1440       * 1441       * * `collection_id`: ID of the modified collection.1442       * * `new_owner`: ID of the account that will become the owner.1443       **/1444      changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1445      /**1446       * Confirm own sponsorship of a collection, becoming the sponsor.1447       * 1448       * An invitation must be pending, see [`set_collection_sponsor`][`Pallet::set_collection_sponsor`].1449       * Sponsor can pay the fees of a transaction instead of the sender,1450       * but only within specified limits.1451       * 1452       * # Permissions1453       * 1454       * * Sponsor-to-be1455       * 1456       * # Arguments1457       * 1458       * * `collection_id`: ID of the collection with the pending sponsor.1459       **/1460      confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1461      /**1462       * Create a collection of tokens.1463       * 1464       * Each Token may have multiple properties encoded as an array of bytes1465       * of certain length. The initial owner of the collection is set1466       * to the address that signed the transaction and can be changed later.1467       * 1468       * Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead.1469       * 1470       * # Permissions1471       * 1472       * * Anyone - becomes the owner of the new collection.1473       * 1474       * # Arguments1475       * 1476       * * `collection_name`: Wide-character string with collection name1477       * (limit [`MAX_COLLECTION_NAME_LENGTH`]).1478       * * `collection_description`: Wide-character string with collection description1479       * (limit [`MAX_COLLECTION_DESCRIPTION_LENGTH`]).1480       * * `token_prefix`: Byte string containing the token prefix to mark a collection1481       * to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).1482       * * `mode`: Type of items stored in the collection and type dependent data.1483       * 1484       * returns collection ID1485       * 1486       * Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead.1487       **/1488      createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;1489      /**1490       * Create a collection with explicit parameters.1491       * 1492       * Prefer it to the deprecated [`create_collection`][`Pallet::create_collection`] method.1493       * 1494       * # Permissions1495       * 1496       * * Anyone - becomes the owner of the new collection.1497       * 1498       * # Arguments1499       * 1500       * * `data`: Explicit data of a collection used for its creation.1501       **/1502      createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; limits?: any; permissions?: any; tokenPropertyPermissions?: any; properties?: any; adminList?: any; pendingSponsor?: any; flags?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;1503      /**1504       * Mint an item within a collection.1505       * 1506       * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1507       * 1508       * # Permissions1509       * 1510       * * Collection owner1511       * * Collection admin1512       * * Anyone if1513       * * Allow List is enabled, and1514       * * Address is added to allow list, and1515       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1516       * 1517       * # Arguments1518       * 1519       * * `collection_id`: ID of the collection to which an item would belong.1520       * * `owner`: Address of the initial owner of the item.1521       * * `data`: Token data describing the item to store on chain.1522       **/1523      createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;1524      /**1525       * Create multiple items within a collection.1526       * 1527       * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1528       * 1529       * # Permissions1530       * 1531       * * Collection owner1532       * * Collection admin1533       * * Anyone if1534       * * Allow List is enabled, and1535       * * Address is added to the allow list, and1536       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1537       * 1538       * # Arguments1539       * 1540       * * `collection_id`: ID of the collection to which the tokens would belong.1541       * * `owner`: Address of the initial owner of the tokens.1542       * * `items_data`: Vector of data describing each item to be created.1543       **/1544      createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;1545      /**1546       * Create multiple items within a collection with explicitly specified initial parameters.1547       * 1548       * # Permissions1549       * 1550       * * Collection owner1551       * * Collection admin1552       * * Anyone if1553       * * Allow List is enabled, and1554       * * Address is added to allow list, and1555       * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1556       * 1557       * # Arguments1558       * 1559       * * `collection_id`: ID of the collection to which the tokens would belong.1560       * * `data`: Explicit item creation data.1561       **/1562      createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;1563      /**1564       * Delete specified collection properties.1565       * 1566       * # Permissions1567       * 1568       * * Collection Owner1569       * * Collection Admin1570       * 1571       * # Arguments1572       * 1573       * * `collection_id`: ID of the modified collection.1574       * * `property_keys`: Vector of keys of the properties to be deleted.1575       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1576       **/1577      deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;1578      /**1579       * Delete specified token properties. Currently properties only work with NFTs.1580       * 1581       * # Permissions1582       * 1583       * * Depends on collection's token property permissions and specified property mutability:1584       * * Collection owner1585       * * Collection admin1586       * * Token owner1587       * 1588       * # Arguments1589       * 1590       * * `collection_id`: ID of the collection to which the token belongs.1591       * * `token_id`: ID of the modified token.1592       * * `property_keys`: Vector of keys of the properties to be deleted.1593       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1594       **/1595      deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;1596      /**1597       * Destroy a collection if no tokens exist within.1598       * 1599       * # Permissions1600       * 1601       * * Collection owner1602       * 1603       * # Arguments1604       * 1605       * * `collection_id`: Collection to destroy.1606       **/1607      destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1608      /**1609       * Repairs a collection if the data was somehow corrupted.1610       * 1611       * # Arguments1612       * 1613       * * `collection_id`: ID of the collection to repair.1614       **/1615      forceRepairCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1616      /**1617       * Repairs a token if the data was somehow corrupted.1618       * 1619       * # Arguments1620       * 1621       * * `collection_id`: ID of the collection the item belongs to.1622       * * `item_id`: ID of the item.1623       **/1624      forceRepairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;1625      /**1626       * Remove admin of a collection.1627       * 1628       * An admin address can remove itself. List of admins may become empty,1629       * in which case only Collection Owner will be able to add an Admin.1630       * 1631       * # Permissions1632       * 1633       * * Collection owner1634       * * Collection admin1635       * 1636       * # Arguments1637       * 1638       * * `collection_id`: ID of the collection to remove the admin for.1639       * * `account_id`: Address of the admin to remove.1640       **/1641      removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1642      /**1643       * Remove a collection's a sponsor, making everyone pay for their own transactions.1644       * 1645       * # Permissions1646       * 1647       * * Collection owner1648       * 1649       * # Arguments1650       * 1651       * * `collection_id`: ID of the collection with the sponsor to remove.1652       **/1653      removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1654      /**1655       * Remove an address from allow list.1656       * 1657       * # Permissions1658       * 1659       * * Collection owner1660       * * Collection admin1661       * 1662       * # Arguments1663       * 1664       * * `collection_id`: ID of the modified collection.1665       * * `address`: ID of the address to be removed from the allowlist.1666       **/1667      removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1668      /**1669       * Re-partition a refungible token, while owning all of its parts/pieces.1670       * 1671       * # Permissions1672       * 1673       * * Token owner (must own every part)1674       * 1675       * # Arguments1676       * 1677       * * `collection_id`: ID of the collection the RFT belongs to.1678       * * `token_id`: ID of the RFT.1679       * * `amount`: New number of parts/pieces into which the token shall be partitioned.1680       **/1681      repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1682      /**1683       * Sets or unsets the approval of a given operator.1684       * 1685       * The `operator` is allowed to transfer all tokens of the `owner` on their behalf.1686       * 1687       * # Arguments1688       * 1689       * * `owner`: Token owner1690       * * `operator`: Operator1691       * * `approve`: Should operator status be granted or revoked?1692       **/1693      setAllowanceForAll: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1694      /**1695       * Set specific limits of a collection. Empty, or None fields mean chain default.1696       * 1697       * # Permissions1698       * 1699       * * Collection owner1700       * * Collection admin1701       * 1702       * # Arguments1703       * 1704       * * `collection_id`: ID of the modified collection.1705       * * `new_limit`: New limits of the collection. Fields that are not set (None)1706       * will not overwrite the old ones.1707       **/1708      setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;1709      /**1710       * Set specific permissions of a collection. Empty, or None fields mean chain default.1711       * 1712       * # Permissions1713       * 1714       * * Collection owner1715       * * Collection admin1716       * 1717       * # Arguments1718       * 1719       * * `collection_id`: ID of the modified collection.1720       * * `new_permission`: New permissions of the collection. Fields that are not set (None)1721       * will not overwrite the old ones.1722       **/1723      setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newPermission: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;1724      /**1725       * Add or change collection properties.1726       * 1727       * # Permissions1728       * 1729       * * Collection owner1730       * * Collection admin1731       * 1732       * # Arguments1733       * 1734       * * `collection_id`: ID of the modified collection.1735       * * `properties`: Vector of key-value pairs stored as the collection's metadata.1736       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1737       **/1738      setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;1739      /**1740       * Set (invite) a new collection sponsor.1741       * 1742       * If successful, confirmation from the sponsor-to-be will be pending.1743       * 1744       * # Permissions1745       * 1746       * * Collection owner1747       * * Collection admin1748       * 1749       * # Arguments1750       * 1751       * * `collection_id`: ID of the modified collection.1752       * * `new_sponsor`: ID of the account of the sponsor-to-be.1753       **/1754      setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1755      /**1756       * Add or change token properties according to collection's permissions.1757       * Currently properties only work with NFTs.1758       * 1759       * # Permissions1760       * 1761       * * Depends on collection's token property permissions and specified property mutability:1762       * * Collection owner1763       * * Collection admin1764       * * Token owner1765       * 1766       * See [`set_token_property_permissions`][`Pallet::set_token_property_permissions`].1767       * 1768       * # Arguments1769       * 1770       * * `collection_id: ID of the collection to which the token belongs.1771       * * `token_id`: ID of the modified token.1772       * * `properties`: Vector of key-value pairs stored as the token's metadata.1773       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1774       **/1775      setTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<UpDataStructsProperty>]>;1776      /**1777       * Add or change token property permissions of a collection.1778       * 1779       * Without a permission for a particular key, a property with that key1780       * cannot be created in a token.1781       * 1782       * # Permissions1783       * 1784       * * Collection owner1785       * * Collection admin1786       * 1787       * # Arguments1788       * 1789       * * `collection_id`: ID of the modified collection.1790       * * `property_permissions`: Vector of permissions for property keys.1791       * Keys support Latin letters, `-`, `_`, and `.` as symbols.1792       **/1793      setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec<UpDataStructsPropertyKeyPermission> | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsPropertyKeyPermission>]>;1794      /**1795       * Completely allow or disallow transfers for a particular collection.1796       * 1797       * # Permissions1798       * 1799       * * Collection owner1800       * 1801       * # Arguments1802       * 1803       * * `collection_id`: ID of the collection.1804       * * `value`: New value of the flag, are transfers allowed?1805       **/1806      setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;1807      /**1808       * Change ownership of the token.1809       * 1810       * # Permissions1811       * 1812       * * Collection owner1813       * * Collection admin1814       * * Current token owner1815       * 1816       * # Arguments1817       * 1818       * * `recipient`: Address of token recipient.1819       * * `collection_id`: ID of the collection the item belongs to.1820       * * `item_id`: ID of the item.1821       * * Non-Fungible Mode: Required.1822       * * Fungible Mode: Ignored.1823       * * Re-Fungible Mode: Required.1824       * 1825       * * `value`: Amount to transfer.1826       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1827       * * Fungible Mode: The desired number of pieces to transfer.1828       * * Re-Fungible Mode: The desired number of pieces to transfer.1829       **/1830      transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1831      /**1832       * Change ownership of an item on behalf of the owner as a non-owner account.1833       * 1834       * See the [`approve`][`Pallet::approve`] method for additional information.1835       * 1836       * After this method executes, one approval is removed from the total so that1837       * the approved address will not be able to transfer this item again from this owner.1838       * 1839       * # Permissions1840       * 1841       * * Collection owner1842       * * Collection admin1843       * * Current item owner1844       * * Address approved by current item owner1845       * 1846       * # Arguments1847       * 1848       * * `from`: Address that currently owns the token.1849       * * `recipient`: Address of the new token-owner-to-be.1850       * * `collection_id`: ID of the collection the item.1851       * * `item_id`: ID of the item to be transferred.1852       * * `value`: Amount to transfer.1853       * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1854       * * Fungible Mode: The desired number of pieces to transfer.1855       * * Re-Fungible Mode: The desired number of pieces to transfer.1856       **/1857      transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1858      /**1859       * Generic tx1860       **/1861      [key: string]: SubmittableExtrinsicFunction<ApiType>;1862    };1863    vesting: {1864      claim: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1865      claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;1866      updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec<OrmlVestingVestingSchedule> | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [MultiAddress, Vec<OrmlVestingVestingSchedule>]>;1867      vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, OrmlVestingVestingSchedule]>;1868      /**1869       * Generic tx1870       **/1871      [key: string]: SubmittableExtrinsicFunction<ApiType>;1872    };1873    xcmpQueue: {1874      /**1875       * Resumes all XCM executions for the XCMP queue.1876       * 1877       * Note that this function doesn't change the status of the in/out bound channels.1878       * 1879       * - `origin`: Must pass `ControllerOrigin`.1880       **/1881      resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1882      /**1883       * Services a single overweight XCM.1884       * 1885       * - `origin`: Must pass `ExecuteOverweightOrigin`.1886       * - `index`: The index of the overweight XCM to service1887       * - `weight_limit`: The amount of weight that XCM execution may take.1888       * 1889       * Errors:1890       * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.1891       * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.1892       * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.1893       * 1894       * Events:1895       * - `OverweightServiced`: On success.1896       **/1897      serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;1898      /**1899       * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.1900       * 1901       * - `origin`: Must pass `ControllerOrigin`.1902       **/1903      suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1904      /**1905       * Overwrites the number of pages of messages which must be in the queue after which we drop any further1906       * messages from the channel.1907       * 1908       * - `origin`: Must pass `Root`.1909       * - `new`: Desired value for `QueueConfigData.drop_threshold`1910       **/1911      updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1912      /**1913       * Overwrites the number of pages of messages which the queue must be reduced to before it signals that1914       * message sending may recommence after it has been suspended.1915       * 1916       * - `origin`: Must pass `Root`.1917       * - `new`: Desired value for `QueueConfigData.resume_threshold`1918       **/1919      updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1920      /**1921       * Overwrites the number of pages of messages which must be in the queue for the other side to be told to1922       * suspend their sending.1923       * 1924       * - `origin`: Must pass `Root`.1925       * - `new`: Desired value for `QueueConfigData.suspend_value`1926       **/1927      updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1928      /**1929       * Overwrites the amount of remaining weight under which we stop processing messages.1930       * 1931       * - `origin`: Must pass `Root`.1932       * - `new`: Desired value for `QueueConfigData.threshold_weight`1933       **/1934      updateThresholdWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1935      /**1936       * Overwrites the speed to which the available weight approaches the maximum weight.1937       * A lower number results in a faster progression. A value of 1 makes the entire weight available initially.1938       * 1939       * - `origin`: Must pass `Root`.1940       * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.1941       **/1942      updateWeightRestrictDecay: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1943      /**1944       * Overwrite the maximum amount of weight any individual message may consume.1945       * Messages above this weight go into the overweight queue and may only be serviced explicitly.1946       * 1947       * - `origin`: Must pass `Root`.1948       * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.1949       **/1950      updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;1951      /**1952       * Generic tx1953       **/1954      [key: string]: SubmittableExtrinsicFunction<ApiType>;1955    };1956    xTokens: {1957      /**1958       * Transfer native currencies.1959       * 1960       * `dest_weight_limit` is the weight for XCM execution on the dest1961       * chain, and it would be charged from the transferred assets. If set1962       * below requirements, the execution may fail and assets wouldn't be1963       * received.1964       * 1965       * It's a no-op if any error on local XCM execution or message sending.1966       * Note sending assets out per se doesn't guarantee they would be1967       * received. Receiving depends on if the XCM message could be delivered1968       * by the network, and if the receiving chain would handle1969       * messages correctly.1970       **/1971      transfer: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>;1972      /**1973       * Transfer `MultiAsset`.1974       * 1975       * `dest_weight_limit` is the weight for XCM execution on the dest1976       * chain, and it would be charged from the transferred assets. If set1977       * below requirements, the execution may fail and assets wouldn't be1978       * received.1979       * 1980       * It's a no-op if any error on local XCM execution or message sending.1981       * Note sending assets out per se doesn't guarantee they would be1982       * received. Receiving depends on if the XCM message could be delivered1983       * by the network, and if the receiving chain would handle1984       * messages correctly.1985       **/1986      transferMultiasset: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>;1987      /**1988       * Transfer several `MultiAsset` specifying the item to be used as fee1989       * 1990       * `dest_weight_limit` is the weight for XCM execution on the dest1991       * chain, and it would be charged from the transferred assets. If set1992       * below requirements, the execution may fail and assets wouldn't be1993       * received.1994       * 1995       * `fee_item` is index of the MultiAssets that we want to use for1996       * payment1997       * 1998       * It's a no-op if any error on local XCM execution or message sending.1999       * Note sending assets out per se doesn't guarantee they would be2000       * received. Receiving depends on if the XCM message could be delivered2001       * by the network, and if the receiving chain would handle2002       * messages correctly.2003       **/2004      transferMultiassets: AugmentedSubmittable<(assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2005      /**2006       * Transfer `MultiAsset` specifying the fee and amount as separate.2007       * 2008       * `dest_weight_limit` is the weight for XCM execution on the dest2009       * chain, and it would be charged from the transferred assets. If set2010       * below requirements, the execution may fail and assets wouldn't be2011       * received.2012       * 2013       * `fee` is the multiasset to be spent to pay for execution in2014       * destination chain. Both fee and amount will be subtracted form the2015       * callers balance For now we only accept fee and asset having the same2016       * `MultiLocation` id.2017       * 2018       * If `fee` is not high enough to cover for the execution costs in the2019       * destination chain, then the assets will be trapped in the2020       * destination chain2021       * 2022       * It's a no-op if any error on local XCM execution or message sending.2023       * Note sending assets out per se doesn't guarantee they would be2024       * received. Receiving depends on if the XCM message could be delivered2025       * by the network, and if the receiving chain would handle2026       * messages correctly.2027       **/2028      transferMultiassetWithFee: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, fee: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2029      /**2030       * Transfer several currencies specifying the item to be used as fee2031       * 2032       * `dest_weight_limit` is the weight for XCM execution on the dest2033       * chain, and it would be charged from the transferred assets. If set2034       * below requirements, the execution may fail and assets wouldn't be2035       * received.2036       * 2037       * `fee_item` is index of the currencies tuple that we want to use for2038       * payment2039       * 2040       * It's a no-op if any error on local XCM execution or message sending.2041       * Note sending assets out per se doesn't guarantee they would be2042       * received. Receiving depends on if the XCM message could be delivered2043       * by the network, and if the receiving chain would handle2044       * messages correctly.2045       **/2046      transferMulticurrencies: AugmentedSubmittable<(currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>> | ([PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, u128 | AnyNumber | Uint8Array])[], feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2047      /**2048       * Transfer native currencies specifying the fee and amount as2049       * separate.2050       * 2051       * `dest_weight_limit` is the weight for XCM execution on the dest2052       * chain, and it would be charged from the transferred assets. If set2053       * below requirements, the execution may fail and assets wouldn't be2054       * received.2055       * 2056       * `fee` is the amount to be spent to pay for execution in destination2057       * chain. Both fee and amount will be subtracted form the callers2058       * balance.2059       * 2060       * If `fee` is not high enough to cover for the execution costs in the2061       * destination chain, then the assets will be trapped in the2062       * destination chain2063       * 2064       * It's a no-op if any error on local XCM execution or message sending.2065       * Note sending assets out per se doesn't guarantee they would be2066       * received. Receiving depends on if the XCM message could be delivered2067       * by the network, and if the receiving chain would handle2068       * messages correctly.2069       **/2070      transferWithFee: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, fee: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>;2071      /**2072       * Generic tx2073       **/2074      [key: string]: SubmittableExtrinsicFunction<ApiType>;2075    };2076  } // AugmentedSubmittables2077} // declare module
modifiedtests/src/interfaces/augment-types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -25,7 +25,7 @@
 import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
 import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
 import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractExecResultU64, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractInstantiateResultU64, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
-import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractConstructorSpecV4, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEnvironmentV4, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMessageSpecV3, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
+import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
 import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
 import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
 import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
@@ -254,7 +254,6 @@
     ContractConstructorSpecV1: ContractConstructorSpecV1;
     ContractConstructorSpecV2: ContractConstructorSpecV2;
     ContractConstructorSpecV3: ContractConstructorSpecV3;
-    ContractConstructorSpecV4: ContractConstructorSpecV4;
     ContractContractSpecV0: ContractContractSpecV0;
     ContractContractSpecV1: ContractContractSpecV1;
     ContractContractSpecV2: ContractContractSpecV2;
@@ -263,7 +262,6 @@
     ContractCryptoHasher: ContractCryptoHasher;
     ContractDiscriminant: ContractDiscriminant;
     ContractDisplayName: ContractDisplayName;
-    ContractEnvironmentV4: ContractEnvironmentV4;
     ContractEventParamSpecLatest: ContractEventParamSpecLatest;
     ContractEventParamSpecV0: ContractEventParamSpecV0;
     ContractEventParamSpecV2: ContractEventParamSpecV2;
@@ -300,7 +298,6 @@
     ContractMessageSpecV0: ContractMessageSpecV0;
     ContractMessageSpecV1: ContractMessageSpecV1;
     ContractMessageSpecV2: ContractMessageSpecV2;
-    ContractMessageSpecV3: ContractMessageSpecV3;
     ContractMetadata: ContractMetadata;
     ContractMetadataLatest: ContractMetadataLatest;
     ContractMetadataV0: ContractMetadataV0;
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -3221,11 +3221,13 @@
   readonly name: Vec<u16>;
   readonly description: Vec<u16>;
   readonly tokenPrefix: Bytes;
-  readonly pendingSponsor: Option<AccountId32>;
   readonly limits: Option<UpDataStructsCollectionLimits>;
   readonly permissions: Option<UpDataStructsCollectionPermissions>;
   readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;
   readonly properties: Vec<UpDataStructsProperty>;
+  readonly adminList: Vec<PalletEvmAccountBasicCrossAccountIdRepr>;
+  readonly pendingSponsor: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
+  readonly flags: U8aFixed;
 }
 
 /** @name UpDataStructsCreateFungibleData */
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -2904,7 +2904,7 @@
     }
   },
   /**
-   * Lookup335: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+   * Lookup335: up_data_structs::CreateCollectionData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateCollectionData: {
     mode: 'UpDataStructsCollectionMode',
@@ -2912,11 +2912,13 @@
     name: 'Vec<u16>',
     description: 'Vec<u16>',
     tokenPrefix: 'Bytes',
-    pendingSponsor: 'Option<AccountId32>',
     limits: 'Option<UpDataStructsCollectionLimits>',
     permissions: 'Option<UpDataStructsCollectionPermissions>',
     tokenPropertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',
-    properties: 'Vec<UpDataStructsProperty>'
+    properties: 'Vec<UpDataStructsProperty>',
+    adminList: 'Vec<PalletEvmAccountBasicCrossAccountIdRepr>',
+    pendingSponsor: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>',
+    flags: '[u8;1]'
   },
   /**
    * Lookup337: up_data_structs::AccessMode
@@ -2990,7 +2992,7 @@
     value: 'Bytes'
   },
   /**
-   * Lookup360: up_data_structs::CreateItemData
+   * Lookup362: up_data_structs::CreateItemData
    **/
   UpDataStructsCreateItemData: {
     _enum: {
@@ -3000,26 +3002,26 @@
     }
   },
   /**
-   * Lookup361: up_data_structs::CreateNftData
+   * Lookup363: up_data_structs::CreateNftData
    **/
   UpDataStructsCreateNftData: {
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup362: up_data_structs::CreateFungibleData
+   * Lookup364: up_data_structs::CreateFungibleData
    **/
   UpDataStructsCreateFungibleData: {
     value: 'u128'
   },
   /**
-   * Lookup363: up_data_structs::CreateReFungibleData
+   * Lookup365: up_data_structs::CreateReFungibleData
    **/
   UpDataStructsCreateReFungibleData: {
     pieces: 'u128',
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup366: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup368: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateItemExData: {
     _enum: {
@@ -3030,14 +3032,14 @@
     }
   },
   /**
-   * Lookup368: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup370: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateNftExData: {
     properties: 'Vec<UpDataStructsProperty>',
     owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
   },
   /**
-   * Lookup375: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup377: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateRefungibleExSingleOwner: {
     user: 'PalletEvmAccountBasicCrossAccountIdRepr',
@@ -3045,14 +3047,14 @@
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup377: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup379: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsCreateRefungibleExMultipleOwners: {
     users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
     properties: 'Vec<UpDataStructsProperty>'
   },
   /**
-   * Lookup378: pallet_configuration::pallet::Call<T>
+   * Lookup380: pallet_configuration::pallet::Call<T>
    **/
   PalletConfigurationCall: {
     _enum: {
@@ -3078,7 +3080,7 @@
     }
   },
   /**
-   * Lookup380: pallet_configuration::AppPromotionConfiguration<BlockNumber>
+   * Lookup382: pallet_configuration::AppPromotionConfiguration<BlockNumber>
    **/
   PalletConfigurationAppPromotionConfiguration: {
     recalculationInterval: 'Option<u32>',
@@ -3087,11 +3089,11 @@
     maxStakersPerCalculation: 'Option<u8>'
   },
   /**
-   * Lookup384: pallet_structure::pallet::Call<T>
+   * Lookup386: pallet_structure::pallet::Call<T>
    **/
   PalletStructureCall: 'Null',
   /**
-   * Lookup385: pallet_app_promotion::pallet::Call<T>
+   * Lookup387: pallet_app_promotion::pallet::Call<T>
    **/
   PalletAppPromotionCall: {
     _enum: {
@@ -3126,7 +3128,7 @@
     }
   },
   /**
-   * Lookup386: pallet_foreign_assets::module::Call<T>
+   * Lookup388: pallet_foreign_assets::module::Call<T>
    **/
   PalletForeignAssetsModuleCall: {
     _enum: {
@@ -3143,7 +3145,7 @@
     }
   },
   /**
-   * Lookup387: pallet_evm::pallet::Call<T>
+   * Lookup389: pallet_evm::pallet::Call<T>
    **/
   PalletEvmCall: {
     _enum: {
@@ -3186,7 +3188,7 @@
     }
   },
   /**
-   * Lookup393: pallet_ethereum::pallet::Call<T>
+   * Lookup395: pallet_ethereum::pallet::Call<T>
    **/
   PalletEthereumCall: {
     _enum: {
@@ -3196,7 +3198,7 @@
     }
   },
   /**
-   * Lookup394: ethereum::transaction::TransactionV2
+   * Lookup396: ethereum::transaction::TransactionV2
    **/
   EthereumTransactionTransactionV2: {
     _enum: {
@@ -3206,7 +3208,7 @@
     }
   },
   /**
-   * Lookup395: ethereum::transaction::LegacyTransaction
+   * Lookup397: ethereum::transaction::LegacyTransaction
    **/
   EthereumTransactionLegacyTransaction: {
     nonce: 'U256',
@@ -3218,7 +3220,7 @@
     signature: 'EthereumTransactionTransactionSignature'
   },
   /**
-   * Lookup396: ethereum::transaction::TransactionAction
+   * Lookup398: ethereum::transaction::TransactionAction
    **/
   EthereumTransactionTransactionAction: {
     _enum: {
@@ -3227,7 +3229,7 @@
     }
   },
   /**
-   * Lookup397: ethereum::transaction::TransactionSignature
+   * Lookup399: ethereum::transaction::TransactionSignature
    **/
   EthereumTransactionTransactionSignature: {
     v: 'u64',
@@ -3235,7 +3237,7 @@
     s: 'H256'
   },
   /**
-   * Lookup399: ethereum::transaction::EIP2930Transaction
+   * Lookup401: ethereum::transaction::EIP2930Transaction
    **/
   EthereumTransactionEip2930Transaction: {
     chainId: 'u64',
@@ -3251,14 +3253,14 @@
     s: 'H256'
   },
   /**
-   * Lookup401: ethereum::transaction::AccessListItem
+   * Lookup403: ethereum::transaction::AccessListItem
    **/
   EthereumTransactionAccessListItem: {
     address: 'H160',
     storageKeys: 'Vec<H256>'
   },
   /**
-   * Lookup402: ethereum::transaction::EIP1559Transaction
+   * Lookup404: ethereum::transaction::EIP1559Transaction
    **/
   EthereumTransactionEip1559Transaction: {
     chainId: 'u64',
@@ -3275,7 +3277,7 @@
     s: 'H256'
   },
   /**
-   * Lookup403: pallet_evm_contract_helpers::pallet::Call<T>
+   * Lookup405: pallet_evm_contract_helpers::pallet::Call<T>
    **/
   PalletEvmContractHelpersCall: {
     _enum: {
@@ -3285,7 +3287,7 @@
     }
   },
   /**
-   * Lookup405: pallet_evm_migration::pallet::Call<T>
+   * Lookup407: pallet_evm_migration::pallet::Call<T>
    **/
   PalletEvmMigrationCall: {
     _enum: {
@@ -3310,7 +3312,7 @@
     }
   },
   /**
-   * Lookup409: pallet_maintenance::pallet::Call<T>
+   * Lookup411: pallet_maintenance::pallet::Call<T>
    **/
   PalletMaintenanceCall: {
     _enum: {
@@ -3326,7 +3328,7 @@
     }
   },
   /**
-   * Lookup410: pallet_test_utils::pallet::Call<T>
+   * Lookup412: pallet_test_utils::pallet::Call<T>
    **/
   PalletTestUtilsCall: {
     _enum: {
@@ -3345,32 +3347,32 @@
     }
   },
   /**
-   * Lookup412: pallet_sudo::pallet::Error<T>
+   * Lookup414: pallet_sudo::pallet::Error<T>
    **/
   PalletSudoError: {
     _enum: ['RequireSudo']
   },
   /**
-   * Lookup414: orml_vesting::module::Error<T>
+   * Lookup416: orml_vesting::module::Error<T>
    **/
   OrmlVestingModuleError: {
     _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
   },
   /**
-   * Lookup415: orml_xtokens::module::Error<T>
+   * Lookup417: 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']
   },
   /**
-   * Lookup418: orml_tokens::BalanceLock<Balance>
+   * Lookup420: orml_tokens::BalanceLock<Balance>
    **/
   OrmlTokensBalanceLock: {
     id: '[u8;8]',
     amount: 'u128'
   },
   /**
-   * Lookup420: orml_tokens::AccountData<Balance>
+   * Lookup422: orml_tokens::AccountData<Balance>
    **/
   OrmlTokensAccountData: {
     free: 'u128',
@@ -3378,20 +3380,20 @@
     frozen: 'u128'
   },
   /**
-   * Lookup422: orml_tokens::ReserveData<ReserveIdentifier, Balance>
+   * Lookup424: orml_tokens::ReserveData<ReserveIdentifier, Balance>
    **/
   OrmlTokensReserveData: {
     id: 'Null',
     amount: 'u128'
   },
   /**
-   * Lookup424: orml_tokens::module::Error<T>
+   * Lookup426: orml_tokens::module::Error<T>
    **/
   OrmlTokensModuleError: {
     _enum: ['BalanceTooLow', 'AmountIntoBalanceFailed', 'LiquidityRestrictions', 'MaxLocksExceeded', 'KeepAlive', 'ExistentialDeposit', 'DeadAccount', 'TooManyReserves']
   },
   /**
-   * Lookup429: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
+   * Lookup431: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
    **/
   PalletIdentityRegistrarInfo: {
     account: 'AccountId32',
@@ -3399,13 +3401,13 @@
     fields: 'PalletIdentityBitFlags'
   },
   /**
-   * Lookup431: pallet_identity::pallet::Error<T>
+   * Lookup433: 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']
   },
   /**
-   * Lookup432: pallet_preimage::RequestStatus<sp_core::crypto::AccountId32, Balance>
+   * Lookup434: pallet_preimage::RequestStatus<sp_core::crypto::AccountId32, Balance>
    **/
   PalletPreimageRequestStatus: {
     _enum: {
@@ -3421,13 +3423,13 @@
     }
   },
   /**
-   * Lookup437: pallet_preimage::pallet::Error<T>
+   * Lookup439: pallet_preimage::pallet::Error<T>
    **/
   PalletPreimageError: {
     _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested']
   },
   /**
-   * Lookup439: cumulus_pallet_xcmp_queue::InboundChannelDetails
+   * Lookup441: cumulus_pallet_xcmp_queue::InboundChannelDetails
    **/
   CumulusPalletXcmpQueueInboundChannelDetails: {
     sender: 'u32',
@@ -3435,19 +3437,19 @@
     messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
   },
   /**
-   * Lookup440: cumulus_pallet_xcmp_queue::InboundState
+   * Lookup442: cumulus_pallet_xcmp_queue::InboundState
    **/
   CumulusPalletXcmpQueueInboundState: {
     _enum: ['Ok', 'Suspended']
   },
   /**
-   * Lookup443: polkadot_parachain::primitives::XcmpMessageFormat
+   * Lookup445: polkadot_parachain::primitives::XcmpMessageFormat
    **/
   PolkadotParachainPrimitivesXcmpMessageFormat: {
     _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
   },
   /**
-   * Lookup446: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+   * Lookup448: cumulus_pallet_xcmp_queue::OutboundChannelDetails
    **/
   CumulusPalletXcmpQueueOutboundChannelDetails: {
     recipient: 'u32',
@@ -3457,13 +3459,13 @@
     lastIndex: 'u16'
   },
   /**
-   * Lookup447: cumulus_pallet_xcmp_queue::OutboundState
+   * Lookup449: cumulus_pallet_xcmp_queue::OutboundState
    **/
   CumulusPalletXcmpQueueOutboundState: {
     _enum: ['Ok', 'Suspended']
   },
   /**
-   * Lookup449: cumulus_pallet_xcmp_queue::QueueConfigData
+   * Lookup451: cumulus_pallet_xcmp_queue::QueueConfigData
    **/
   CumulusPalletXcmpQueueQueueConfigData: {
     suspendThreshold: 'u32',
@@ -3474,13 +3476,13 @@
     xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight'
   },
   /**
-   * Lookup451: cumulus_pallet_xcmp_queue::pallet::Error<T>
+   * Lookup453: cumulus_pallet_xcmp_queue::pallet::Error<T>
    **/
   CumulusPalletXcmpQueueError: {
     _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
   },
   /**
-   * Lookup452: pallet_xcm::pallet::QueryStatus<BlockNumber>
+   * Lookup454: pallet_xcm::pallet::QueryStatus<BlockNumber>
    **/
   PalletXcmQueryStatus: {
     _enum: {
@@ -3501,7 +3503,7 @@
     }
   },
   /**
-   * Lookup456: xcm::VersionedResponse
+   * Lookup458: xcm::VersionedResponse
    **/
   XcmVersionedResponse: {
     _enum: {
@@ -3512,7 +3514,7 @@
     }
   },
   /**
-   * Lookup462: pallet_xcm::pallet::VersionMigrationStage
+   * Lookup464: pallet_xcm::pallet::VersionMigrationStage
    **/
   PalletXcmVersionMigrationStage: {
     _enum: {
@@ -3523,7 +3525,7 @@
     }
   },
   /**
-   * Lookup465: xcm::VersionedAssetId
+   * Lookup467: xcm::VersionedAssetId
    **/
   XcmVersionedAssetId: {
     _enum: {
@@ -3534,7 +3536,7 @@
     }
   },
   /**
-   * Lookup466: pallet_xcm::pallet::RemoteLockedFungibleRecord<ConsumerIdentifier, MaxConsumers>
+   * Lookup468: pallet_xcm::pallet::RemoteLockedFungibleRecord<ConsumerIdentifier, MaxConsumers>
    **/
   PalletXcmRemoteLockedFungibleRecord: {
     amount: 'u128',
@@ -3543,23 +3545,23 @@
     consumers: 'Vec<(Null,u128)>'
   },
   /**
-   * Lookup473: pallet_xcm::pallet::Error<T>
+   * Lookup475: pallet_xcm::pallet::Error<T>
    **/
   PalletXcmError: {
     _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse']
   },
   /**
-   * Lookup474: cumulus_pallet_xcm::pallet::Error<T>
+   * Lookup476: cumulus_pallet_xcm::pallet::Error<T>
    **/
   CumulusPalletXcmError: 'Null',
   /**
-   * Lookup475: cumulus_pallet_dmp_queue::ConfigData
+   * Lookup477: cumulus_pallet_dmp_queue::ConfigData
    **/
   CumulusPalletDmpQueueConfigData: {
     maxIndividual: 'SpWeightsWeightV2Weight'
   },
   /**
-   * Lookup476: cumulus_pallet_dmp_queue::PageIndexData
+   * Lookup478: cumulus_pallet_dmp_queue::PageIndexData
    **/
   CumulusPalletDmpQueuePageIndexData: {
     beginUsed: 'u32',
@@ -3567,25 +3569,25 @@
     overweightCount: 'u64'
   },
   /**
-   * Lookup479: cumulus_pallet_dmp_queue::pallet::Error<T>
+   * Lookup481: cumulus_pallet_dmp_queue::pallet::Error<T>
    **/
   CumulusPalletDmpQueueError: {
     _enum: ['Unknown', 'OverLimit']
   },
   /**
-   * Lookup483: pallet_unique::pallet::Error<T>
+   * Lookup485: pallet_unique::pallet::Error<T>
    **/
   PalletUniqueError: {
     _enum: ['CollectionDecimalPointLimitExceeded', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
   },
   /**
-   * Lookup484: pallet_configuration::pallet::Error<T>
+   * Lookup486: pallet_configuration::pallet::Error<T>
    **/
   PalletConfigurationError: {
     _enum: ['InconsistentConfiguration']
   },
   /**
-   * Lookup485: up_data_structs::Collection<sp_core::crypto::AccountId32>
+   * Lookup487: up_data_structs::Collection<sp_core::crypto::AccountId32>
    **/
   UpDataStructsCollection: {
     owner: 'AccountId32',
@@ -3599,7 +3601,7 @@
     flags: '[u8;1]'
   },
   /**
-   * Lookup486: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+   * Lookup488: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
    **/
   UpDataStructsSponsorshipStateAccountId32: {
     _enum: {
@@ -3609,7 +3611,7 @@
     }
   },
   /**
-   * Lookup487: up_data_structs::Properties
+   * Lookup489: up_data_structs::Properties
    **/
   UpDataStructsProperties: {
     map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -3617,15 +3619,15 @@
     reserved: 'u32'
   },
   /**
-   * Lookup488: up_data_structs::PropertiesMap<bounded_collections::bounded_vec::BoundedVec<T, S>>
+   * Lookup490: up_data_structs::PropertiesMap<bounded_collections::bounded_vec::BoundedVec<T, S>>
    **/
   UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
   /**
-   * Lookup493: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+   * Lookup495: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
    **/
   UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
   /**
-   * Lookup500: up_data_structs::CollectionStats
+   * Lookup502: up_data_structs::CollectionStats
    **/
   UpDataStructsCollectionStats: {
     created: 'u32',
@@ -3633,18 +3635,18 @@
     alive: 'u32'
   },
   /**
-   * Lookup501: up_data_structs::TokenChild
+   * Lookup503: up_data_structs::TokenChild
    **/
   UpDataStructsTokenChild: {
     token: 'u32',
     collection: 'u32'
   },
   /**
-   * Lookup502: PhantomType::up_data_structs<T>
+   * Lookup504: PhantomType::up_data_structs<T>
    **/
   PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,UpPovEstimateRpcPovInfo);0]',
   /**
-   * Lookup504: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup506: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsTokenData: {
     properties: 'Vec<UpDataStructsProperty>',
@@ -3652,7 +3654,7 @@
     pieces: 'u128'
   },
   /**
-   * Lookup506: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+   * Lookup507: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
    **/
   UpDataStructsRpcCollection: {
     owner: 'AccountId32',
@@ -3669,14 +3671,14 @@
     flags: 'UpDataStructsRpcCollectionFlags'
   },
   /**
-   * Lookup507: up_data_structs::RpcCollectionFlags
+   * Lookup508: up_data_structs::RpcCollectionFlags
    **/
   UpDataStructsRpcCollectionFlags: {
     foreign: 'bool',
     erc721metadata: 'bool'
   },
   /**
-   * Lookup508: up_pov_estimate_rpc::PovInfo
+   * Lookup509: up_pov_estimate_rpc::PovInfo
    **/
   UpPovEstimateRpcPovInfo: {
     proofSize: 'u64',
@@ -3686,7 +3688,7 @@
     keyValues: 'Vec<UpPovEstimateRpcTrieKeyValue>'
   },
   /**
-   * Lookup511: sp_runtime::transaction_validity::TransactionValidityError
+   * Lookup512: sp_runtime::transaction_validity::TransactionValidityError
    **/
   SpRuntimeTransactionValidityTransactionValidityError: {
     _enum: {
@@ -3695,7 +3697,7 @@
     }
   },
   /**
-   * Lookup512: sp_runtime::transaction_validity::InvalidTransaction
+   * Lookup513: sp_runtime::transaction_validity::InvalidTransaction
    **/
   SpRuntimeTransactionValidityInvalidTransaction: {
     _enum: {
@@ -3713,7 +3715,7 @@
     }
   },
   /**
-   * Lookup513: sp_runtime::transaction_validity::UnknownTransaction
+   * Lookup514: sp_runtime::transaction_validity::UnknownTransaction
    **/
   SpRuntimeTransactionValidityUnknownTransaction: {
     _enum: {
@@ -3723,68 +3725,68 @@
     }
   },
   /**
-   * Lookup515: up_pov_estimate_rpc::TrieKeyValue
+   * Lookup516: up_pov_estimate_rpc::TrieKeyValue
    **/
   UpPovEstimateRpcTrieKeyValue: {
     key: 'Bytes',
     value: 'Bytes'
   },
   /**
-   * Lookup517: pallet_common::pallet::Error<T>
+   * Lookup518: 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', 'AddressIsNotEthMirror', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal', 'ConfirmSponsorshipFail', 'UserIsNotCollectionAdmin']
   },
   /**
-   * Lookup519: pallet_fungible::pallet::Error<T>
+   * Lookup520: pallet_fungible::pallet::Error<T>
    **/
   PalletFungibleError: {
     _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']
   },
   /**
-   * Lookup524: pallet_refungible::pallet::Error<T>
+   * Lookup525: pallet_refungible::pallet::Error<T>
    **/
   PalletRefungibleError: {
     _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
   },
   /**
-   * Lookup525: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup526: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   PalletNonfungibleItemData: {
     owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
   },
   /**
-   * Lookup527: up_data_structs::PropertyScope
+   * Lookup528: up_data_structs::PropertyScope
    **/
   UpDataStructsPropertyScope: {
     _enum: ['None', 'Rmrk']
   },
   /**
-   * Lookup530: pallet_nonfungible::pallet::Error<T>
+   * Lookup531: pallet_nonfungible::pallet::Error<T>
    **/
   PalletNonfungibleError: {
     _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
   },
   /**
-   * Lookup531: pallet_structure::pallet::Error<T>
+   * Lookup532: pallet_structure::pallet::Error<T>
    **/
   PalletStructureError: {
     _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound', 'CantNestTokenUnderCollection']
   },
   /**
-   * Lookup536: pallet_app_promotion::pallet::Error<T>
+   * Lookup537: pallet_app_promotion::pallet::Error<T>
    **/
   PalletAppPromotionError: {
     _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'InsufficientStakedBalance', 'InconsistencyState']
   },
   /**
-   * Lookup537: pallet_foreign_assets::module::Error<T>
+   * Lookup538: pallet_foreign_assets::module::Error<T>
    **/
   PalletForeignAssetsModuleError: {
     _enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']
   },
   /**
-   * Lookup538: pallet_evm::CodeMetadata
+   * Lookup539: pallet_evm::CodeMetadata
    **/
   PalletEvmCodeMetadata: {
     _alias: {
@@ -3795,13 +3797,13 @@
     hash_: 'H256'
   },
   /**
-   * Lookup540: pallet_evm::pallet::Error<T>
+   * Lookup541: pallet_evm::pallet::Error<T>
    **/
   PalletEvmError: {
     _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']
   },
   /**
-   * Lookup543: fp_rpc::TransactionStatus
+   * Lookup544: fp_rpc::TransactionStatus
    **/
   FpRpcTransactionStatus: {
     transactionHash: 'H256',
@@ -3813,11 +3815,11 @@
     logsBloom: 'EthbloomBloom'
   },
   /**
-   * Lookup545: ethbloom::Bloom
+   * Lookup546: ethbloom::Bloom
    **/
   EthbloomBloom: '[u8;256]',
   /**
-   * Lookup547: ethereum::receipt::ReceiptV3
+   * Lookup548: ethereum::receipt::ReceiptV3
    **/
   EthereumReceiptReceiptV3: {
     _enum: {
@@ -3827,7 +3829,7 @@
     }
   },
   /**
-   * Lookup548: ethereum::receipt::EIP658ReceiptData
+   * Lookup549: ethereum::receipt::EIP658ReceiptData
    **/
   EthereumReceiptEip658ReceiptData: {
     statusCode: 'u8',
@@ -3836,7 +3838,7 @@
     logs: 'Vec<EthereumLog>'
   },
   /**
-   * Lookup549: ethereum::block::Block<ethereum::transaction::TransactionV2>
+   * Lookup550: ethereum::block::Block<ethereum::transaction::TransactionV2>
    **/
   EthereumBlock: {
     header: 'EthereumHeader',
@@ -3844,7 +3846,7 @@
     ommers: 'Vec<EthereumHeader>'
   },
   /**
-   * Lookup550: ethereum::header::Header
+   * Lookup551: ethereum::header::Header
    **/
   EthereumHeader: {
     parentHash: 'H256',
@@ -3864,23 +3866,23 @@
     nonce: 'EthereumTypesHashH64'
   },
   /**
-   * Lookup551: ethereum_types::hash::H64
+   * Lookup552: ethereum_types::hash::H64
    **/
   EthereumTypesHashH64: '[u8;8]',
   /**
-   * Lookup556: pallet_ethereum::pallet::Error<T>
+   * Lookup557: pallet_ethereum::pallet::Error<T>
    **/
   PalletEthereumError: {
     _enum: ['InvalidSignature', 'PreLogExists']
   },
   /**
-   * Lookup557: pallet_evm_coder_substrate::pallet::Error<T>
+   * Lookup558: pallet_evm_coder_substrate::pallet::Error<T>
    **/
   PalletEvmCoderSubstrateError: {
     _enum: ['OutOfGas', 'OutOfFund']
   },
   /**
-   * Lookup558: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+   * Lookup559: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
    **/
   UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
     _enum: {
@@ -3890,35 +3892,35 @@
     }
   },
   /**
-   * Lookup559: pallet_evm_contract_helpers::SponsoringModeT
+   * Lookup560: pallet_evm_contract_helpers::SponsoringModeT
    **/
   PalletEvmContractHelpersSponsoringModeT: {
     _enum: ['Disabled', 'Allowlisted', 'Generous']
   },
   /**
-   * Lookup565: pallet_evm_contract_helpers::pallet::Error<T>
+   * Lookup566: pallet_evm_contract_helpers::pallet::Error<T>
    **/
   PalletEvmContractHelpersError: {
     _enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']
   },
   /**
-   * Lookup566: pallet_evm_migration::pallet::Error<T>
+   * Lookup567: pallet_evm_migration::pallet::Error<T>
    **/
   PalletEvmMigrationError: {
     _enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']
   },
   /**
-   * Lookup567: pallet_maintenance::pallet::Error<T>
+   * Lookup568: pallet_maintenance::pallet::Error<T>
    **/
   PalletMaintenanceError: 'Null',
   /**
-   * Lookup568: pallet_test_utils::pallet::Error<T>
+   * Lookup569: pallet_test_utils::pallet::Error<T>
    **/
   PalletTestUtilsError: {
     _enum: ['TestPalletDisabled', 'TriggerRollback']
   },
   /**
-   * Lookup570: sp_runtime::MultiSignature
+   * Lookup571: sp_runtime::MultiSignature
    **/
   SpRuntimeMultiSignature: {
     _enum: {
@@ -3928,55 +3930,55 @@
     }
   },
   /**
-   * Lookup571: sp_core::ed25519::Signature
+   * Lookup572: sp_core::ed25519::Signature
    **/
   SpCoreEd25519Signature: '[u8;64]',
   /**
-   * Lookup573: sp_core::sr25519::Signature
+   * Lookup574: sp_core::sr25519::Signature
    **/
   SpCoreSr25519Signature: '[u8;64]',
   /**
-   * Lookup574: sp_core::ecdsa::Signature
+   * Lookup575: sp_core::ecdsa::Signature
    **/
   SpCoreEcdsaSignature: '[u8;65]',
   /**
-   * Lookup577: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+   * Lookup578: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
    **/
   FrameSystemExtensionsCheckSpecVersion: 'Null',
   /**
-   * Lookup578: frame_system::extensions::check_tx_version::CheckTxVersion<T>
+   * Lookup579: frame_system::extensions::check_tx_version::CheckTxVersion<T>
    **/
   FrameSystemExtensionsCheckTxVersion: 'Null',
   /**
-   * Lookup579: frame_system::extensions::check_genesis::CheckGenesis<T>
+   * Lookup580: frame_system::extensions::check_genesis::CheckGenesis<T>
    **/
   FrameSystemExtensionsCheckGenesis: 'Null',
   /**
-   * Lookup582: frame_system::extensions::check_nonce::CheckNonce<T>
+   * Lookup583: frame_system::extensions::check_nonce::CheckNonce<T>
    **/
   FrameSystemExtensionsCheckNonce: 'Compact<u32>',
   /**
-   * Lookup583: frame_system::extensions::check_weight::CheckWeight<T>
+   * Lookup584: frame_system::extensions::check_weight::CheckWeight<T>
    **/
   FrameSystemExtensionsCheckWeight: 'Null',
   /**
-   * Lookup584: opal_runtime::runtime_common::maintenance::CheckMaintenance
+   * Lookup585: opal_runtime::runtime_common::maintenance::CheckMaintenance
    **/
   OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',
   /**
-   * Lookup585: opal_runtime::runtime_common::identity::DisableIdentityCalls
+   * Lookup586: opal_runtime::runtime_common::identity::DisableIdentityCalls
    **/
   OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: 'Null',
   /**
-   * Lookup586: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+   * Lookup587: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
    **/
   PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
   /**
-   * Lookup587: opal_runtime::Runtime
+   * Lookup588: opal_runtime::Runtime
    **/
   OpalRuntimeRuntime: 'Null',
   /**
-   * Lookup588: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+   * Lookup589: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
    **/
   PalletEthereumFakeTransactionFinalizer: 'Null'
 };
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -3181,11 +3181,13 @@
     readonly name: Vec<u16>;
     readonly description: Vec<u16>;
     readonly tokenPrefix: Bytes;
-    readonly pendingSponsor: Option<AccountId32>;
     readonly limits: Option<UpDataStructsCollectionLimits>;
     readonly permissions: Option<UpDataStructsCollectionPermissions>;
     readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;
     readonly properties: Vec<UpDataStructsProperty>;
+    readonly adminList: Vec<PalletEvmAccountBasicCrossAccountIdRepr>;
+    readonly pendingSponsor: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
+    readonly flags: U8aFixed;
   }
 
   /** @name UpDataStructsAccessMode (337) */
@@ -3252,7 +3254,7 @@
     readonly value: Bytes;
   }
 
-  /** @name UpDataStructsCreateItemData (360) */
+  /** @name UpDataStructsCreateItemData (362) */
   interface UpDataStructsCreateItemData extends Enum {
     readonly isNft: boolean;
     readonly asNft: UpDataStructsCreateNftData;
@@ -3263,23 +3265,23 @@
     readonly type: 'Nft' | 'Fungible' | 'ReFungible';
   }
 
-  /** @name UpDataStructsCreateNftData (361) */
+  /** @name UpDataStructsCreateNftData (363) */
   interface UpDataStructsCreateNftData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateFungibleData (362) */
+  /** @name UpDataStructsCreateFungibleData (364) */
   interface UpDataStructsCreateFungibleData extends Struct {
     readonly value: u128;
   }
 
-  /** @name UpDataStructsCreateReFungibleData (363) */
+  /** @name UpDataStructsCreateReFungibleData (365) */
   interface UpDataStructsCreateReFungibleData extends Struct {
     readonly pieces: u128;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateItemExData (366) */
+  /** @name UpDataStructsCreateItemExData (368) */
   interface UpDataStructsCreateItemExData extends Enum {
     readonly isNft: boolean;
     readonly asNft: Vec<UpDataStructsCreateNftExData>;
@@ -3292,26 +3294,26 @@
     readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
   }
 
-  /** @name UpDataStructsCreateNftExData (368) */
+  /** @name UpDataStructsCreateNftExData (370) */
   interface UpDataStructsCreateNftExData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
     readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
   }
 
-  /** @name UpDataStructsCreateRefungibleExSingleOwner (375) */
+  /** @name UpDataStructsCreateRefungibleExSingleOwner (377) */
   interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
     readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
     readonly pieces: u128;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name UpDataStructsCreateRefungibleExMultipleOwners (377) */
+  /** @name UpDataStructsCreateRefungibleExMultipleOwners (379) */
   interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
     readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
     readonly properties: Vec<UpDataStructsProperty>;
   }
 
-  /** @name PalletConfigurationCall (378) */
+  /** @name PalletConfigurationCall (380) */
   interface PalletConfigurationCall extends Enum {
     readonly isSetWeightToFeeCoefficientOverride: boolean;
     readonly asSetWeightToFeeCoefficientOverride: {
@@ -3340,7 +3342,7 @@
     readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';
   }
 
-  /** @name PalletConfigurationAppPromotionConfiguration (380) */
+  /** @name PalletConfigurationAppPromotionConfiguration (382) */
   interface PalletConfigurationAppPromotionConfiguration extends Struct {
     readonly recalculationInterval: Option<u32>;
     readonly pendingInterval: Option<u32>;
@@ -3348,10 +3350,10 @@
     readonly maxStakersPerCalculation: Option<u8>;
   }
 
-  /** @name PalletStructureCall (384) */
+  /** @name PalletStructureCall (386) */
   type PalletStructureCall = Null;
 
-  /** @name PalletAppPromotionCall (385) */
+  /** @name PalletAppPromotionCall (387) */
   interface PalletAppPromotionCall extends Enum {
     readonly isSetAdminAddress: boolean;
     readonly asSetAdminAddress: {
@@ -3393,7 +3395,7 @@
     readonly type: 'SetAdminAddress' | 'Stake' | 'UnstakeAll' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers' | 'UnstakePartial' | 'ForceUnstake';
   }
 
-  /** @name PalletForeignAssetsModuleCall (386) */
+  /** @name PalletForeignAssetsModuleCall (388) */
   interface PalletForeignAssetsModuleCall extends Enum {
     readonly isRegisterForeignAsset: boolean;
     readonly asRegisterForeignAsset: {
@@ -3410,7 +3412,7 @@
     readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';
   }
 
-  /** @name PalletEvmCall (387) */
+  /** @name PalletEvmCall (389) */
   interface PalletEvmCall extends Enum {
     readonly isWithdraw: boolean;
     readonly asWithdraw: {
@@ -3455,7 +3457,7 @@
     readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
   }
 
-  /** @name PalletEthereumCall (393) */
+  /** @name PalletEthereumCall (395) */
   interface PalletEthereumCall extends Enum {
     readonly isTransact: boolean;
     readonly asTransact: {
@@ -3464,7 +3466,7 @@
     readonly type: 'Transact';
   }
 
-  /** @name EthereumTransactionTransactionV2 (394) */
+  /** @name EthereumTransactionTransactionV2 (396) */
   interface EthereumTransactionTransactionV2 extends Enum {
     readonly isLegacy: boolean;
     readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -3475,7 +3477,7 @@
     readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
   }
 
-  /** @name EthereumTransactionLegacyTransaction (395) */
+  /** @name EthereumTransactionLegacyTransaction (397) */
   interface EthereumTransactionLegacyTransaction extends Struct {
     readonly nonce: U256;
     readonly gasPrice: U256;
@@ -3486,7 +3488,7 @@
     readonly signature: EthereumTransactionTransactionSignature;
   }
 
-  /** @name EthereumTransactionTransactionAction (396) */
+  /** @name EthereumTransactionTransactionAction (398) */
   interface EthereumTransactionTransactionAction extends Enum {
     readonly isCall: boolean;
     readonly asCall: H160;
@@ -3494,14 +3496,14 @@
     readonly type: 'Call' | 'Create';
   }
 
-  /** @name EthereumTransactionTransactionSignature (397) */
+  /** @name EthereumTransactionTransactionSignature (399) */
   interface EthereumTransactionTransactionSignature extends Struct {
     readonly v: u64;
     readonly r: H256;
     readonly s: H256;
   }
 
-  /** @name EthereumTransactionEip2930Transaction (399) */
+  /** @name EthereumTransactionEip2930Transaction (401) */
   interface EthereumTransactionEip2930Transaction extends Struct {
     readonly chainId: u64;
     readonly nonce: U256;
@@ -3516,13 +3518,13 @@
     readonly s: H256;
   }
 
-  /** @name EthereumTransactionAccessListItem (401) */
+  /** @name EthereumTransactionAccessListItem (403) */
   interface EthereumTransactionAccessListItem extends Struct {
     readonly address: H160;
     readonly storageKeys: Vec<H256>;
   }
 
-  /** @name EthereumTransactionEip1559Transaction (402) */
+  /** @name EthereumTransactionEip1559Transaction (404) */
   interface EthereumTransactionEip1559Transaction extends Struct {
     readonly chainId: u64;
     readonly nonce: U256;
@@ -3538,7 +3540,7 @@
     readonly s: H256;
   }
 
-  /** @name PalletEvmContractHelpersCall (403) */
+  /** @name PalletEvmContractHelpersCall (405) */
   interface PalletEvmContractHelpersCall extends Enum {
     readonly isMigrateFromSelfSponsoring: boolean;
     readonly asMigrateFromSelfSponsoring: {
@@ -3547,7 +3549,7 @@
     readonly type: 'MigrateFromSelfSponsoring';
   }
 
-  /** @name PalletEvmMigrationCall (405) */
+  /** @name PalletEvmMigrationCall (407) */
   interface PalletEvmMigrationCall extends Enum {
     readonly isBegin: boolean;
     readonly asBegin: {
@@ -3575,7 +3577,7 @@
     readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'RemoveRmrkData';
   }
 
-  /** @name PalletMaintenanceCall (409) */
+  /** @name PalletMaintenanceCall (411) */
   interface PalletMaintenanceCall extends Enum {
     readonly isEnable: boolean;
     readonly isDisable: boolean;
@@ -3587,7 +3589,7 @@
     readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';
   }
 
-  /** @name PalletTestUtilsCall (410) */
+  /** @name PalletTestUtilsCall (412) */
   interface PalletTestUtilsCall extends Enum {
     readonly isEnable: boolean;
     readonly isSetTestValue: boolean;
@@ -3607,13 +3609,13 @@
     readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';
   }
 
-  /** @name PalletSudoError (412) */
+  /** @name PalletSudoError (414) */
   interface PalletSudoError extends Enum {
     readonly isRequireSudo: boolean;
     readonly type: 'RequireSudo';
   }
 
-  /** @name OrmlVestingModuleError (414) */
+  /** @name OrmlVestingModuleError (416) */
   interface OrmlVestingModuleError extends Enum {
     readonly isZeroVestingPeriod: boolean;
     readonly isZeroVestingPeriodCount: boolean;
@@ -3624,7 +3626,7 @@
     readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
   }
 
-  /** @name OrmlXtokensModuleError (415) */
+  /** @name OrmlXtokensModuleError (417) */
   interface OrmlXtokensModuleError extends Enum {
     readonly isAssetHasNoReserve: boolean;
     readonly isNotCrossChainTransfer: boolean;
@@ -3648,26 +3650,26 @@
     readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';
   }
 
-  /** @name OrmlTokensBalanceLock (418) */
+  /** @name OrmlTokensBalanceLock (420) */
   interface OrmlTokensBalanceLock extends Struct {
     readonly id: U8aFixed;
     readonly amount: u128;
   }
 
-  /** @name OrmlTokensAccountData (420) */
+  /** @name OrmlTokensAccountData (422) */
   interface OrmlTokensAccountData extends Struct {
     readonly free: u128;
     readonly reserved: u128;
     readonly frozen: u128;
   }
 
-  /** @name OrmlTokensReserveData (422) */
+  /** @name OrmlTokensReserveData (424) */
   interface OrmlTokensReserveData extends Struct {
     readonly id: Null;
     readonly amount: u128;
   }
 
-  /** @name OrmlTokensModuleError (424) */
+  /** @name OrmlTokensModuleError (426) */
   interface OrmlTokensModuleError extends Enum {
     readonly isBalanceTooLow: boolean;
     readonly isAmountIntoBalanceFailed: boolean;
@@ -3680,14 +3682,14 @@
     readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';
   }
 
-  /** @name PalletIdentityRegistrarInfo (429) */
+  /** @name PalletIdentityRegistrarInfo (431) */
   interface PalletIdentityRegistrarInfo extends Struct {
     readonly account: AccountId32;
     readonly fee: u128;
     readonly fields: PalletIdentityBitFlags;
   }
 
-  /** @name PalletIdentityError (431) */
+  /** @name PalletIdentityError (433) */
   interface PalletIdentityError extends Enum {
     readonly isTooManySubAccounts: boolean;
     readonly isNotFound: boolean;
@@ -3710,7 +3712,7 @@
     readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';
   }
 
-  /** @name PalletPreimageRequestStatus (432) */
+  /** @name PalletPreimageRequestStatus (434) */
   interface PalletPreimageRequestStatus extends Enum {
     readonly isUnrequested: boolean;
     readonly asUnrequested: {
@@ -3726,7 +3728,7 @@
     readonly type: 'Unrequested' | 'Requested';
   }
 
-  /** @name PalletPreimageError (437) */
+  /** @name PalletPreimageError (439) */
   interface PalletPreimageError extends Enum {
     readonly isTooBig: boolean;
     readonly isAlreadyNoted: boolean;
@@ -3737,21 +3739,21 @@
     readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';
   }
 
-  /** @name CumulusPalletXcmpQueueInboundChannelDetails (439) */
+  /** @name CumulusPalletXcmpQueueInboundChannelDetails (441) */
   interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
     readonly sender: u32;
     readonly state: CumulusPalletXcmpQueueInboundState;
     readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
   }
 
-  /** @name CumulusPalletXcmpQueueInboundState (440) */
+  /** @name CumulusPalletXcmpQueueInboundState (442) */
   interface CumulusPalletXcmpQueueInboundState extends Enum {
     readonly isOk: boolean;
     readonly isSuspended: boolean;
     readonly type: 'Ok' | 'Suspended';
   }
 
-  /** @name PolkadotParachainPrimitivesXcmpMessageFormat (443) */
+  /** @name PolkadotParachainPrimitivesXcmpMessageFormat (445) */
   interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
     readonly isConcatenatedVersionedXcm: boolean;
     readonly isConcatenatedEncodedBlob: boolean;
@@ -3759,7 +3761,7 @@
     readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
   }
 
-  /** @name CumulusPalletXcmpQueueOutboundChannelDetails (446) */
+  /** @name CumulusPalletXcmpQueueOutboundChannelDetails (448) */
   interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
     readonly recipient: u32;
     readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -3768,14 +3770,14 @@
     readonly lastIndex: u16;
   }
 
-  /** @name CumulusPalletXcmpQueueOutboundState (447) */
+  /** @name CumulusPalletXcmpQueueOutboundState (449) */
   interface CumulusPalletXcmpQueueOutboundState extends Enum {
     readonly isOk: boolean;
     readonly isSuspended: boolean;
     readonly type: 'Ok' | 'Suspended';
   }
 
-  /** @name CumulusPalletXcmpQueueQueueConfigData (449) */
+  /** @name CumulusPalletXcmpQueueQueueConfigData (451) */
   interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
     readonly suspendThreshold: u32;
     readonly dropThreshold: u32;
@@ -3785,7 +3787,7 @@
     readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;
   }
 
-  /** @name CumulusPalletXcmpQueueError (451) */
+  /** @name CumulusPalletXcmpQueueError (453) */
   interface CumulusPalletXcmpQueueError extends Enum {
     readonly isFailedToSend: boolean;
     readonly isBadXcmOrigin: boolean;
@@ -3795,7 +3797,7 @@
     readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
   }
 
-  /** @name PalletXcmQueryStatus (452) */
+  /** @name PalletXcmQueryStatus (454) */
   interface PalletXcmQueryStatus extends Enum {
     readonly isPending: boolean;
     readonly asPending: {
@@ -3817,7 +3819,7 @@
     readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
   }
 
-  /** @name XcmVersionedResponse (456) */
+  /** @name XcmVersionedResponse (458) */
   interface XcmVersionedResponse extends Enum {
     readonly isV2: boolean;
     readonly asV2: XcmV2Response;
@@ -3826,7 +3828,7 @@
     readonly type: 'V2' | 'V3';
   }
 
-  /** @name PalletXcmVersionMigrationStage (462) */
+  /** @name PalletXcmVersionMigrationStage (464) */
   interface PalletXcmVersionMigrationStage extends Enum {
     readonly isMigrateSupportedVersion: boolean;
     readonly isMigrateVersionNotifiers: boolean;
@@ -3836,14 +3838,14 @@
     readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
   }
 
-  /** @name XcmVersionedAssetId (465) */
+  /** @name XcmVersionedAssetId (467) */
   interface XcmVersionedAssetId extends Enum {
     readonly isV3: boolean;
     readonly asV3: XcmV3MultiassetAssetId;
     readonly type: 'V3';
   }
 
-  /** @name PalletXcmRemoteLockedFungibleRecord (466) */
+  /** @name PalletXcmRemoteLockedFungibleRecord (468) */
   interface PalletXcmRemoteLockedFungibleRecord extends Struct {
     readonly amount: u128;
     readonly owner: XcmVersionedMultiLocation;
@@ -3851,7 +3853,7 @@
     readonly consumers: Vec<ITuple<[Null, u128]>>;
   }
 
-  /** @name PalletXcmError (473) */
+  /** @name PalletXcmError (475) */
   interface PalletXcmError extends Enum {
     readonly isUnreachable: boolean;
     readonly isSendFailure: boolean;
@@ -3876,29 +3878,29 @@
     readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
   }
 
-  /** @name CumulusPalletXcmError (474) */
+  /** @name CumulusPalletXcmError (476) */
   type CumulusPalletXcmError = Null;
 
-  /** @name CumulusPalletDmpQueueConfigData (475) */
+  /** @name CumulusPalletDmpQueueConfigData (477) */
   interface CumulusPalletDmpQueueConfigData extends Struct {
     readonly maxIndividual: SpWeightsWeightV2Weight;
   }
 
-  /** @name CumulusPalletDmpQueuePageIndexData (476) */
+  /** @name CumulusPalletDmpQueuePageIndexData (478) */
   interface CumulusPalletDmpQueuePageIndexData extends Struct {
     readonly beginUsed: u32;
     readonly endUsed: u32;
     readonly overweightCount: u64;
   }
 
-  /** @name CumulusPalletDmpQueueError (479) */
+  /** @name CumulusPalletDmpQueueError (481) */
   interface CumulusPalletDmpQueueError extends Enum {
     readonly isUnknown: boolean;
     readonly isOverLimit: boolean;
     readonly type: 'Unknown' | 'OverLimit';
   }
 
-  /** @name PalletUniqueError (483) */
+  /** @name PalletUniqueError (485) */
   interface PalletUniqueError extends Enum {
     readonly isCollectionDecimalPointLimitExceeded: boolean;
     readonly isEmptyArgument: boolean;
@@ -3906,13 +3908,13 @@
     readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
   }
 
-  /** @name PalletConfigurationError (484) */
+  /** @name PalletConfigurationError (486) */
   interface PalletConfigurationError extends Enum {
     readonly isInconsistentConfiguration: boolean;
     readonly type: 'InconsistentConfiguration';
   }
 
-  /** @name UpDataStructsCollection (485) */
+  /** @name UpDataStructsCollection (487) */
   interface UpDataStructsCollection extends Struct {
     readonly owner: AccountId32;
     readonly mode: UpDataStructsCollectionMode;
@@ -3925,7 +3927,7 @@
     readonly flags: U8aFixed;
   }
 
-  /** @name UpDataStructsSponsorshipStateAccountId32 (486) */
+  /** @name UpDataStructsSponsorshipStateAccountId32 (488) */
   interface UpDataStructsSponsorshipStateAccountId32 extends Enum {
     readonly isDisabled: boolean;
     readonly isUnconfirmed: boolean;
@@ -3935,43 +3937,43 @@
     readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
   }
 
-  /** @name UpDataStructsProperties (487) */
+  /** @name UpDataStructsProperties (489) */
   interface UpDataStructsProperties extends Struct {
     readonly map: UpDataStructsPropertiesMapBoundedVec;
     readonly consumedSpace: u32;
     readonly reserved: u32;
   }
 
-  /** @name UpDataStructsPropertiesMapBoundedVec (488) */
+  /** @name UpDataStructsPropertiesMapBoundedVec (490) */
   interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
 
-  /** @name UpDataStructsPropertiesMapPropertyPermission (493) */
+  /** @name UpDataStructsPropertiesMapPropertyPermission (495) */
   interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
 
-  /** @name UpDataStructsCollectionStats (500) */
+  /** @name UpDataStructsCollectionStats (502) */
   interface UpDataStructsCollectionStats extends Struct {
     readonly created: u32;
     readonly destroyed: u32;
     readonly alive: u32;
   }
 
-  /** @name UpDataStructsTokenChild (501) */
+  /** @name UpDataStructsTokenChild (503) */
   interface UpDataStructsTokenChild extends Struct {
     readonly token: u32;
     readonly collection: u32;
   }
 
-  /** @name PhantomTypeUpDataStructs (502) */
+  /** @name PhantomTypeUpDataStructs (504) */
   interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}
 
-  /** @name UpDataStructsTokenData (504) */
+  /** @name UpDataStructsTokenData (506) */
   interface UpDataStructsTokenData extends Struct {
     readonly properties: Vec<UpDataStructsProperty>;
     readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
     readonly pieces: u128;
   }
 
-  /** @name UpDataStructsRpcCollection (506) */
+  /** @name UpDataStructsRpcCollection (507) */
   interface UpDataStructsRpcCollection extends Struct {
     readonly owner: AccountId32;
     readonly mode: UpDataStructsCollectionMode;
@@ -3987,13 +3989,13 @@
     readonly flags: UpDataStructsRpcCollectionFlags;
   }
 
-  /** @name UpDataStructsRpcCollectionFlags (507) */
+  /** @name UpDataStructsRpcCollectionFlags (508) */
   interface UpDataStructsRpcCollectionFlags extends Struct {
     readonly foreign: bool;
     readonly erc721metadata: bool;
   }
 
-  /** @name UpPovEstimateRpcPovInfo (508) */
+  /** @name UpPovEstimateRpcPovInfo (509) */
   interface UpPovEstimateRpcPovInfo extends Struct {
     readonly proofSize: u64;
     readonly compactProofSize: u64;
@@ -4002,7 +4004,7 @@
     readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;
   }
 
-  /** @name SpRuntimeTransactionValidityTransactionValidityError (511) */
+  /** @name SpRuntimeTransactionValidityTransactionValidityError (512) */
   interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
     readonly isInvalid: boolean;
     readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
@@ -4011,7 +4013,7 @@
     readonly type: 'Invalid' | 'Unknown';
   }
 
-  /** @name SpRuntimeTransactionValidityInvalidTransaction (512) */
+  /** @name SpRuntimeTransactionValidityInvalidTransaction (513) */
   interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
     readonly isCall: boolean;
     readonly isPayment: boolean;
@@ -4028,7 +4030,7 @@
     readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
   }
 
-  /** @name SpRuntimeTransactionValidityUnknownTransaction (513) */
+  /** @name SpRuntimeTransactionValidityUnknownTransaction (514) */
   interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
     readonly isCannotLookup: boolean;
     readonly isNoUnsignedValidator: boolean;
@@ -4037,13 +4039,13 @@
     readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
   }
 
-  /** @name UpPovEstimateRpcTrieKeyValue (515) */
+  /** @name UpPovEstimateRpcTrieKeyValue (516) */
   interface UpPovEstimateRpcTrieKeyValue extends Struct {
     readonly key: Bytes;
     readonly value: Bytes;
   }
 
-  /** @name PalletCommonError (517) */
+  /** @name PalletCommonError (518) */
   interface PalletCommonError extends Enum {
     readonly isCollectionNotFound: boolean;
     readonly isMustBeTokenOwner: boolean;
@@ -4085,7 +4087,7 @@
     readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsNotEthMirror' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';
   }
 
-  /** @name PalletFungibleError (519) */
+  /** @name PalletFungibleError (520) */
   interface PalletFungibleError extends Enum {
     readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isFungibleItemsHaveNoId: boolean;
@@ -4097,7 +4099,7 @@
     readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';
   }
 
-  /** @name PalletRefungibleError (524) */
+  /** @name PalletRefungibleError (525) */
   interface PalletRefungibleError extends Enum {
     readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isWrongRefungiblePieces: boolean;
@@ -4107,19 +4109,19 @@
     readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
   }
 
-  /** @name PalletNonfungibleItemData (525) */
+  /** @name PalletNonfungibleItemData (526) */
   interface PalletNonfungibleItemData extends Struct {
     readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
   }
 
-  /** @name UpDataStructsPropertyScope (527) */
+  /** @name UpDataStructsPropertyScope (528) */
   interface UpDataStructsPropertyScope extends Enum {
     readonly isNone: boolean;
     readonly isRmrk: boolean;
     readonly type: 'None' | 'Rmrk';
   }
 
-  /** @name PalletNonfungibleError (530) */
+  /** @name PalletNonfungibleError (531) */
   interface PalletNonfungibleError extends Enum {
     readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
     readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -4127,7 +4129,7 @@
     readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
   }
 
-  /** @name PalletStructureError (531) */
+  /** @name PalletStructureError (532) */
   interface PalletStructureError extends Enum {
     readonly isOuroborosDetected: boolean;
     readonly isDepthLimit: boolean;
@@ -4137,7 +4139,7 @@
     readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection';
   }
 
-  /** @name PalletAppPromotionError (536) */
+  /** @name PalletAppPromotionError (537) */
   interface PalletAppPromotionError extends Enum {
     readonly isAdminNotSet: boolean;
     readonly isNoPermission: boolean;
@@ -4149,7 +4151,7 @@
     readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'InsufficientStakedBalance' | 'InconsistencyState';
   }
 
-  /** @name PalletForeignAssetsModuleError (537) */
+  /** @name PalletForeignAssetsModuleError (538) */
   interface PalletForeignAssetsModuleError extends Enum {
     readonly isBadLocation: boolean;
     readonly isMultiLocationExisted: boolean;
@@ -4158,13 +4160,13 @@
     readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';
   }
 
-  /** @name PalletEvmCodeMetadata (538) */
+  /** @name PalletEvmCodeMetadata (539) */
   interface PalletEvmCodeMetadata extends Struct {
     readonly size_: u64;
     readonly hash_: H256;
   }
 
-  /** @name PalletEvmError (540) */
+  /** @name PalletEvmError (541) */
   interface PalletEvmError extends Enum {
     readonly isBalanceLow: boolean;
     readonly isFeeOverflow: boolean;
@@ -4180,7 +4182,7 @@
     readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';
   }
 
-  /** @name FpRpcTransactionStatus (543) */
+  /** @name FpRpcTransactionStatus (544) */
   interface FpRpcTransactionStatus extends Struct {
     readonly transactionHash: H256;
     readonly transactionIndex: u32;
@@ -4191,10 +4193,10 @@
     readonly logsBloom: EthbloomBloom;
   }
 
-  /** @name EthbloomBloom (545) */
+  /** @name EthbloomBloom (546) */
   interface EthbloomBloom extends U8aFixed {}
 
-  /** @name EthereumReceiptReceiptV3 (547) */
+  /** @name EthereumReceiptReceiptV3 (548) */
   interface EthereumReceiptReceiptV3 extends Enum {
     readonly isLegacy: boolean;
     readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -4205,7 +4207,7 @@
     readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
   }
 
-  /** @name EthereumReceiptEip658ReceiptData (548) */
+  /** @name EthereumReceiptEip658ReceiptData (549) */
   interface EthereumReceiptEip658ReceiptData extends Struct {
     readonly statusCode: u8;
     readonly usedGas: U256;
@@ -4213,14 +4215,14 @@
     readonly logs: Vec<EthereumLog>;
   }
 
-  /** @name EthereumBlock (549) */
+  /** @name EthereumBlock (550) */
   interface EthereumBlock extends Struct {
     readonly header: EthereumHeader;
     readonly transactions: Vec<EthereumTransactionTransactionV2>;
     readonly ommers: Vec<EthereumHeader>;
   }
 
-  /** @name EthereumHeader (550) */
+  /** @name EthereumHeader (551) */
   interface EthereumHeader extends Struct {
     readonly parentHash: H256;
     readonly ommersHash: H256;
@@ -4239,24 +4241,24 @@
     readonly nonce: EthereumTypesHashH64;
   }
 
-  /** @name EthereumTypesHashH64 (551) */
+  /** @name EthereumTypesHashH64 (552) */
   interface EthereumTypesHashH64 extends U8aFixed {}
 
-  /** @name PalletEthereumError (556) */
+  /** @name PalletEthereumError (557) */
   interface PalletEthereumError extends Enum {
     readonly isInvalidSignature: boolean;
     readonly isPreLogExists: boolean;
     readonly type: 'InvalidSignature' | 'PreLogExists';
   }
 
-  /** @name PalletEvmCoderSubstrateError (557) */
+  /** @name PalletEvmCoderSubstrateError (558) */
   interface PalletEvmCoderSubstrateError extends Enum {
     readonly isOutOfGas: boolean;
     readonly isOutOfFund: boolean;
     readonly type: 'OutOfGas' | 'OutOfFund';
   }
 
-  /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (558) */
+  /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (559) */
   interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
     readonly isDisabled: boolean;
     readonly isUnconfirmed: boolean;
@@ -4266,7 +4268,7 @@
     readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
   }
 
-  /** @name PalletEvmContractHelpersSponsoringModeT (559) */
+  /** @name PalletEvmContractHelpersSponsoringModeT (560) */
   interface PalletEvmContractHelpersSponsoringModeT extends Enum {
     readonly isDisabled: boolean;
     readonly isAllowlisted: boolean;
@@ -4274,7 +4276,7 @@
     readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
   }
 
-  /** @name PalletEvmContractHelpersError (565) */
+  /** @name PalletEvmContractHelpersError (566) */
   interface PalletEvmContractHelpersError extends Enum {
     readonly isNoPermission: boolean;
     readonly isNoPendingSponsor: boolean;
@@ -4282,7 +4284,7 @@
     readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';
   }
 
-  /** @name PalletEvmMigrationError (566) */
+  /** @name PalletEvmMigrationError (567) */
   interface PalletEvmMigrationError extends Enum {
     readonly isAccountNotEmpty: boolean;
     readonly isAccountIsNotMigrating: boolean;
@@ -4290,17 +4292,17 @@
     readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
   }
 
-  /** @name PalletMaintenanceError (567) */
+  /** @name PalletMaintenanceError (568) */
   type PalletMaintenanceError = Null;
 
-  /** @name PalletTestUtilsError (568) */
+  /** @name PalletTestUtilsError (569) */
   interface PalletTestUtilsError extends Enum {
     readonly isTestPalletDisabled: boolean;
     readonly isTriggerRollback: boolean;
     readonly type: 'TestPalletDisabled' | 'TriggerRollback';
   }
 
-  /** @name SpRuntimeMultiSignature (570) */
+  /** @name SpRuntimeMultiSignature (571) */
   interface SpRuntimeMultiSignature extends Enum {
     readonly isEd25519: boolean;
     readonly asEd25519: SpCoreEd25519Signature;
@@ -4311,43 +4313,43 @@
     readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
   }
 
-  /** @name SpCoreEd25519Signature (571) */
+  /** @name SpCoreEd25519Signature (572) */
   interface SpCoreEd25519Signature extends U8aFixed {}
 
-  /** @name SpCoreSr25519Signature (573) */
+  /** @name SpCoreSr25519Signature (574) */
   interface SpCoreSr25519Signature extends U8aFixed {}
 
-  /** @name SpCoreEcdsaSignature (574) */
+  /** @name SpCoreEcdsaSignature (575) */
   interface SpCoreEcdsaSignature extends U8aFixed {}
 
-  /** @name FrameSystemExtensionsCheckSpecVersion (577) */
+  /** @name FrameSystemExtensionsCheckSpecVersion (578) */
   type FrameSystemExtensionsCheckSpecVersion = Null;
 
-  /** @name FrameSystemExtensionsCheckTxVersion (578) */
+  /** @name FrameSystemExtensionsCheckTxVersion (579) */
   type FrameSystemExtensionsCheckTxVersion = Null;
 
-  /** @name FrameSystemExtensionsCheckGenesis (579) */
+  /** @name FrameSystemExtensionsCheckGenesis (580) */
   type FrameSystemExtensionsCheckGenesis = Null;
 
-  /** @name FrameSystemExtensionsCheckNonce (582) */
+  /** @name FrameSystemExtensionsCheckNonce (583) */
   interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
 
-  /** @name FrameSystemExtensionsCheckWeight (583) */
+  /** @name FrameSystemExtensionsCheckWeight (584) */
   type FrameSystemExtensionsCheckWeight = Null;
 
-  /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (584) */
+  /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (585) */
   type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;
 
-  /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (585) */
+  /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (586) */
   type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;
 
-  /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (586) */
+  /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (587) */
   interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
 
-  /** @name OpalRuntimeRuntime (587) */
+  /** @name OpalRuntimeRuntime (588) */
   type OpalRuntimeRuntime = Null;
 
-  /** @name PalletEthereumFakeTransactionFinalizer (588) */
+  /** @name PalletEthereumFakeTransactionFinalizer (589) */
   type PalletEthereumFakeTransactionFinalizer = Null;
 
 } // declare module
modifiedtests/src/sub/appPromotion/appPromotion.test.tsdiffbeforeafterboth
--- a/tests/src/sub/appPromotion/appPromotion.test.ts
+++ b/tests/src/sub/appPromotion/appPromotion.test.ts
@@ -51,6 +51,7 @@
       donor = await privateKey({url: import.meta.url});
       palletAddress = helper.arrange.calculatePalletAddress('appstake');
       palletAdmin = await privateKey('//PromotionAdmin');
+
       nominal = helper.balance.getOneTokenNominal();
 
       const accountBalances = new Array(200).fill(1000n);
@@ -96,7 +97,6 @@
       expect(await helper.balance.getSubstrate(staker.address) / nominal).to.be.equal(999n);
       // it is potentially flaky test. Promotion can credited some tokens. Maybe we need to use closeTo?
       expect(await helper.staking.getTotalStaked()).to.be.equal(totalStakedBefore + 100n * nominal); // total tokens amount staked in app-promotion increased
-
 
       await helper.staking.stake(staker, 200n * nominal);
       expect(await helper.staking.getTotalStaked({Substrate: staker.address})).to.be.equal(300n * nominal);
@@ -497,13 +497,13 @@
       expect((await collectionWithoutSponsor.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: palletAddress});
 
       // Can set sponsoring for collection with unconfirmed sponsor
-      const collectionWithUnconfirmedSponsor = await helper.nft.mintCollection(collectionOwner, {name: 'Unconfirmed', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: oldSponsor.address});
+      const collectionWithUnconfirmedSponsor = await helper.nft.mintCollection(collectionOwner, {name: 'Unconfirmed', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: {Substrate: oldSponsor.address}});
       expect((await collectionWithUnconfirmedSponsor.getData())?.raw.sponsorship).to.be.deep.equal({Unconfirmed: oldSponsor.address});
       await expect(helper.signTransaction(palletAdmin, api.tx.appPromotion.sponsorCollection(collectionWithUnconfirmedSponsor.collectionId))).to.be.fulfilled;
       expect((await collectionWithUnconfirmedSponsor.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: palletAddress});
 
       // Can set sponsoring for collection with confirmed sponsor
-      const collectionWithConfirmedSponsor = await helper.nft.mintCollection(collectionOwner, {name: 'Confirmed', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: oldSponsor.address});
+      const collectionWithConfirmedSponsor = await helper.nft.mintCollection(collectionOwner, {name: 'Confirmed', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: {Substrate: oldSponsor.address}});
       await collectionWithConfirmedSponsor.confirmSponsorship(oldSponsor);
       await expect(helper.signTransaction(palletAdmin, api.tx.appPromotion.sponsorCollection(collectionWithConfirmedSponsor.collectionId))).to.be.fulfilled;
       expect((await collectionWithConfirmedSponsor.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: palletAddress});
@@ -584,7 +584,7 @@
     itSub('should not affect collection which is not sponsored by pallete', async ({helper}) => {
       const api = helper.getApi();
       const [collectionOwner] = await getAccounts(1);
-      const collection = await helper.nft.mintCollection(collectionOwner, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: collectionOwner.address});
+      const collection = await helper.nft.mintCollection(collectionOwner, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion', pendingSponsor: {Substrate: collectionOwner.address}});
       await collection.confirmSponsorship(collectionOwner);
 
       await expect(helper.signTransaction(palletAdmin, api.tx.appPromotion.stopSponsoringCollection(collection.collectionId))).to.be.rejected;
modifiedtests/src/util/playgrounds/types.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/types.ts
+++ b/tests/src/util/playgrounds/types.ts
@@ -142,6 +142,21 @@
   }
 }
 
+export interface ICollectionFlags {
+  foreign: boolean,
+  erc721metadata: boolean,
+}
+
+export enum CollectionFlag {
+  None = 0,
+  /// External collections can't be managed using `unique` api
+  External = 1,
+  /// Supports ERC721Metadata
+  Erc721metadata = 64,
+  /// Tokens in foreign collections can be transferred, but not burnt
+  Foreign = 128,
+}
+
 export interface ICollectionCreationOptions {
   name?: string | number[];
   description?: string | number[];
@@ -155,7 +170,9 @@
   properties?: IProperty[];
   tokenPropertyPermissions?: ITokenPropertyPermission[];
   limits?: ICollectionLimits;
-  pendingSponsor?: TSubstrateAccount;
+  pendingSponsor?: ICrossAccountId;
+  adminList?: ICrossAccountId[];
+  flags?: number[] | CollectionFlag[] ,
 }
 
 export interface IChainProperties {
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -44,10 +44,12 @@
   MoonbeamAssetInfo,
   DemocracyStandardAccountVote,
   IEthCrossAccountId,
+  CollectionFlag,
 } from './types';
 import {RuntimeDispatchInfo} from '@polkadot/types/interfaces';
 import type {Vec} from '@polkadot/types-codec';
 import {FrameSystemEventRecord, PalletBalancesIdAmount} from '@polkadot/types/lookup';
+import {arrayUnzip} from '@polkadot/util';
 
 export class CrossAccountId {
   Substrate!: TSubstrateAccount;
@@ -1624,6 +1626,17 @@
     for(const key of ['name', 'description', 'tokenPrefix']) {
       if(typeof collectionOptions[key as 'name' | 'description' | 'tokenPrefix'] === 'string') collectionOptions[key as 'name' | 'description' | 'tokenPrefix'] = this.helper.util.str2vec(collectionOptions[key as 'name' | 'description' | 'tokenPrefix'] as string);
     }
+
+    let flags = 0;
+    // convert CollectionFlags to number and join them in one number
+    if(collectionOptions.flags) {
+      for(let i = 0; i < collectionOptions.flags.length; i++){
+        const flag = collectionOptions.flags[i];
+        flags = flags | flag;
+      }
+    }
+    collectionOptions.flags = [flags];
+
     const creationResult = await this.helper.executeExtrinsic(
       signer,
       'api.tx.unique.createCollectionEx', [collectionOptions],