difftreelog
feat eth all-in-one create_collection (#971)
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
Cargo.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",
Cargo.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" }
pallets/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 }
pallets/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,
)
}
pallets/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.
pallets/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![
pallets/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 {
pallets/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();
pallets/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),
pallets/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,
)
}
pallets/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.
pallets/fungible/src/stubs/UniqueFungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/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;
pallets/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,
)
}
pallets/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
pallets/nonfungible/src/stubs/UniqueNFT.rawdiffbeforeafterbothbinary blob — no preview
pallets/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;
pallets/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,
)
}
pallets/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
pallets/refungible/src/stubs/UniqueRefungible.rawdiffbeforeafterbothbinary blob — no preview
pallets/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;
pallets/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();
pallets/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 }
pallets/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()
pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/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
+}
pallets/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(())
}
primitives/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"]
primitives/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))]
runtime/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),
runtime/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 { .. }
tests/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);
tests/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'});
tests/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" },
tests/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",
tests/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"
}
]
tests/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",
tests/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"
}
]
tests/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",
tests/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"
}
]
tests/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;
tests/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
+}
tests/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;
tests/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;
tests/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;
tests/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:
tests/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
tests/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});
+ }
+ });
+ });
+});
tests/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)
tests/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;
tests/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 {
tests/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');
tests/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);
tests/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:
tests/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:
tests/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;
tests/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});
tests/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
tests/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',
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -1499,7 +1499,7 @@
*
* * `data`: Explicit data of a collection used for its creation.
**/
- 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]>;
+ 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]>;
/**
* Mint an item within a collection.
*
tests/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;
tests/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 */
tests/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'
};
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, 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/types/lookup';78import type { Data } from '@polkadot/types';9import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';12import type { Event } from '@polkadot/types/interfaces/system';1314declare module '@polkadot/types/lookup' {15 /** @name FrameSystemAccountInfo (3) */16 interface FrameSystemAccountInfo extends Struct {17 readonly nonce: u32;18 readonly consumers: u32;19 readonly providers: u32;20 readonly sufficients: u32;21 readonly data: PalletBalancesAccountData;22 }2324 /** @name PalletBalancesAccountData (5) */25 interface PalletBalancesAccountData extends Struct {26 readonly free: u128;27 readonly reserved: u128;28 readonly frozen: u128;29 readonly flags: u128;30 }3132 /** @name FrameSupportDispatchPerDispatchClassWeight (8) */33 interface FrameSupportDispatchPerDispatchClassWeight extends Struct {34 readonly normal: SpWeightsWeightV2Weight;35 readonly operational: SpWeightsWeightV2Weight;36 readonly mandatory: SpWeightsWeightV2Weight;37 }3839 /** @name SpWeightsWeightV2Weight (9) */40 interface SpWeightsWeightV2Weight extends Struct {41 readonly refTime: Compact<u64>;42 readonly proofSize: Compact<u64>;43 }4445 /** @name SpRuntimeDigest (14) */46 interface SpRuntimeDigest extends Struct {47 readonly logs: Vec<SpRuntimeDigestDigestItem>;48 }4950 /** @name SpRuntimeDigestDigestItem (16) */51 interface SpRuntimeDigestDigestItem extends Enum {52 readonly isOther: boolean;53 readonly asOther: Bytes;54 readonly isConsensus: boolean;55 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;56 readonly isSeal: boolean;57 readonly asSeal: ITuple<[U8aFixed, Bytes]>;58 readonly isPreRuntime: boolean;59 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;60 readonly isRuntimeEnvironmentUpdated: boolean;61 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';62 }6364 /** @name FrameSystemEventRecord (19) */65 interface FrameSystemEventRecord extends Struct {66 readonly phase: FrameSystemPhase;67 readonly event: Event;68 readonly topics: Vec<H256>;69 }7071 /** @name FrameSystemEvent (21) */72 interface FrameSystemEvent extends Enum {73 readonly isExtrinsicSuccess: boolean;74 readonly asExtrinsicSuccess: {75 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;76 } & Struct;77 readonly isExtrinsicFailed: boolean;78 readonly asExtrinsicFailed: {79 readonly dispatchError: SpRuntimeDispatchError;80 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;81 } & Struct;82 readonly isCodeUpdated: boolean;83 readonly isNewAccount: boolean;84 readonly asNewAccount: {85 readonly account: AccountId32;86 } & Struct;87 readonly isKilledAccount: boolean;88 readonly asKilledAccount: {89 readonly account: AccountId32;90 } & Struct;91 readonly isRemarked: boolean;92 readonly asRemarked: {93 readonly sender: AccountId32;94 readonly hash_: H256;95 } & Struct;96 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';97 }9899 /** @name FrameSupportDispatchDispatchInfo (22) */100 interface FrameSupportDispatchDispatchInfo extends Struct {101 readonly weight: SpWeightsWeightV2Weight;102 readonly class: FrameSupportDispatchDispatchClass;103 readonly paysFee: FrameSupportDispatchPays;104 }105106 /** @name FrameSupportDispatchDispatchClass (23) */107 interface FrameSupportDispatchDispatchClass extends Enum {108 readonly isNormal: boolean;109 readonly isOperational: boolean;110 readonly isMandatory: boolean;111 readonly type: 'Normal' | 'Operational' | 'Mandatory';112 }113114 /** @name FrameSupportDispatchPays (24) */115 interface FrameSupportDispatchPays extends Enum {116 readonly isYes: boolean;117 readonly isNo: boolean;118 readonly type: 'Yes' | 'No';119 }120121 /** @name SpRuntimeDispatchError (25) */122 interface SpRuntimeDispatchError extends Enum {123 readonly isOther: boolean;124 readonly isCannotLookup: boolean;125 readonly isBadOrigin: boolean;126 readonly isModule: boolean;127 readonly asModule: SpRuntimeModuleError;128 readonly isConsumerRemaining: boolean;129 readonly isNoProviders: boolean;130 readonly isTooManyConsumers: boolean;131 readonly isToken: boolean;132 readonly asToken: SpRuntimeTokenError;133 readonly isArithmetic: boolean;134 readonly asArithmetic: SpArithmeticArithmeticError;135 readonly isTransactional: boolean;136 readonly asTransactional: SpRuntimeTransactionalError;137 readonly isExhausted: boolean;138 readonly isCorruption: boolean;139 readonly isUnavailable: boolean;140 readonly isRootNotAllowed: boolean;141 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable' | 'RootNotAllowed';142 }143144 /** @name SpRuntimeModuleError (26) */145 interface SpRuntimeModuleError extends Struct {146 readonly index: u8;147 readonly error: U8aFixed;148 }149150 /** @name SpRuntimeTokenError (27) */151 interface SpRuntimeTokenError extends Enum {152 readonly isFundsUnavailable: boolean;153 readonly isOnlyProvider: boolean;154 readonly isBelowMinimum: boolean;155 readonly isCannotCreate: boolean;156 readonly isUnknownAsset: boolean;157 readonly isFrozen: boolean;158 readonly isUnsupported: boolean;159 readonly isCannotCreateHold: boolean;160 readonly isNotExpendable: boolean;161 readonly isBlocked: boolean;162 readonly type: 'FundsUnavailable' | 'OnlyProvider' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported' | 'CannotCreateHold' | 'NotExpendable' | 'Blocked';163 }164165 /** @name SpArithmeticArithmeticError (28) */166 interface SpArithmeticArithmeticError extends Enum {167 readonly isUnderflow: boolean;168 readonly isOverflow: boolean;169 readonly isDivisionByZero: boolean;170 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';171 }172173 /** @name SpRuntimeTransactionalError (29) */174 interface SpRuntimeTransactionalError extends Enum {175 readonly isLimitReached: boolean;176 readonly isNoLayer: boolean;177 readonly type: 'LimitReached' | 'NoLayer';178 }179180 /** @name PalletStateTrieMigrationEvent (30) */181 interface PalletStateTrieMigrationEvent extends Enum {182 readonly isMigrated: boolean;183 readonly asMigrated: {184 readonly top: u32;185 readonly child: u32;186 readonly compute: PalletStateTrieMigrationMigrationCompute;187 } & Struct;188 readonly isSlashed: boolean;189 readonly asSlashed: {190 readonly who: AccountId32;191 readonly amount: u128;192 } & Struct;193 readonly isAutoMigrationFinished: boolean;194 readonly isHalted: boolean;195 readonly asHalted: {196 readonly error: PalletStateTrieMigrationError;197 } & Struct;198 readonly type: 'Migrated' | 'Slashed' | 'AutoMigrationFinished' | 'Halted';199 }200201 /** @name PalletStateTrieMigrationMigrationCompute (31) */202 interface PalletStateTrieMigrationMigrationCompute extends Enum {203 readonly isSigned: boolean;204 readonly isAuto: boolean;205 readonly type: 'Signed' | 'Auto';206 }207208 /** @name PalletStateTrieMigrationError (32) */209 interface PalletStateTrieMigrationError extends Enum {210 readonly isMaxSignedLimits: boolean;211 readonly isKeyTooLong: boolean;212 readonly isNotEnoughFunds: boolean;213 readonly isBadWitness: boolean;214 readonly isSignedMigrationNotAllowed: boolean;215 readonly isBadChildRoot: boolean;216 readonly type: 'MaxSignedLimits' | 'KeyTooLong' | 'NotEnoughFunds' | 'BadWitness' | 'SignedMigrationNotAllowed' | 'BadChildRoot';217 }218219 /** @name CumulusPalletParachainSystemEvent (33) */220 interface CumulusPalletParachainSystemEvent extends Enum {221 readonly isValidationFunctionStored: boolean;222 readonly isValidationFunctionApplied: boolean;223 readonly asValidationFunctionApplied: {224 readonly relayChainBlockNum: u32;225 } & Struct;226 readonly isValidationFunctionDiscarded: boolean;227 readonly isUpgradeAuthorized: boolean;228 readonly asUpgradeAuthorized: {229 readonly codeHash: H256;230 } & Struct;231 readonly isDownwardMessagesReceived: boolean;232 readonly asDownwardMessagesReceived: {233 readonly count: u32;234 } & Struct;235 readonly isDownwardMessagesProcessed: boolean;236 readonly asDownwardMessagesProcessed: {237 readonly weightUsed: SpWeightsWeightV2Weight;238 readonly dmqHead: H256;239 } & Struct;240 readonly isUpwardMessageSent: boolean;241 readonly asUpwardMessageSent: {242 readonly messageHash: Option<U8aFixed>;243 } & Struct;244 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed' | 'UpwardMessageSent';245 }246247 /** @name PalletCollatorSelectionEvent (35) */248 interface PalletCollatorSelectionEvent extends Enum {249 readonly isInvulnerableAdded: boolean;250 readonly asInvulnerableAdded: {251 readonly invulnerable: AccountId32;252 } & Struct;253 readonly isInvulnerableRemoved: boolean;254 readonly asInvulnerableRemoved: {255 readonly invulnerable: AccountId32;256 } & Struct;257 readonly isLicenseObtained: boolean;258 readonly asLicenseObtained: {259 readonly accountId: AccountId32;260 readonly deposit: u128;261 } & Struct;262 readonly isLicenseReleased: boolean;263 readonly asLicenseReleased: {264 readonly accountId: AccountId32;265 readonly depositReturned: u128;266 } & Struct;267 readonly isCandidateAdded: boolean;268 readonly asCandidateAdded: {269 readonly accountId: AccountId32;270 } & Struct;271 readonly isCandidateRemoved: boolean;272 readonly asCandidateRemoved: {273 readonly accountId: AccountId32;274 } & Struct;275 readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved';276 }277278 /** @name PalletSessionEvent (36) */279 interface PalletSessionEvent extends Enum {280 readonly isNewSession: boolean;281 readonly asNewSession: {282 readonly sessionIndex: u32;283 } & Struct;284 readonly type: 'NewSession';285 }286287 /** @name PalletBalancesEvent (37) */288 interface PalletBalancesEvent extends Enum {289 readonly isEndowed: boolean;290 readonly asEndowed: {291 readonly account: AccountId32;292 readonly freeBalance: u128;293 } & Struct;294 readonly isDustLost: boolean;295 readonly asDustLost: {296 readonly account: AccountId32;297 readonly amount: u128;298 } & Struct;299 readonly isTransfer: boolean;300 readonly asTransfer: {301 readonly from: AccountId32;302 readonly to: AccountId32;303 readonly amount: u128;304 } & Struct;305 readonly isBalanceSet: boolean;306 readonly asBalanceSet: {307 readonly who: AccountId32;308 readonly free: u128;309 } & Struct;310 readonly isReserved: boolean;311 readonly asReserved: {312 readonly who: AccountId32;313 readonly amount: u128;314 } & Struct;315 readonly isUnreserved: boolean;316 readonly asUnreserved: {317 readonly who: AccountId32;318 readonly amount: u128;319 } & Struct;320 readonly isReserveRepatriated: boolean;321 readonly asReserveRepatriated: {322 readonly from: AccountId32;323 readonly to: AccountId32;324 readonly amount: u128;325 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;326 } & Struct;327 readonly isDeposit: boolean;328 readonly asDeposit: {329 readonly who: AccountId32;330 readonly amount: u128;331 } & Struct;332 readonly isWithdraw: boolean;333 readonly asWithdraw: {334 readonly who: AccountId32;335 readonly amount: u128;336 } & Struct;337 readonly isSlashed: boolean;338 readonly asSlashed: {339 readonly who: AccountId32;340 readonly amount: u128;341 } & Struct;342 readonly isMinted: boolean;343 readonly asMinted: {344 readonly who: AccountId32;345 readonly amount: u128;346 } & Struct;347 readonly isBurned: boolean;348 readonly asBurned: {349 readonly who: AccountId32;350 readonly amount: u128;351 } & Struct;352 readonly isSuspended: boolean;353 readonly asSuspended: {354 readonly who: AccountId32;355 readonly amount: u128;356 } & Struct;357 readonly isRestored: boolean;358 readonly asRestored: {359 readonly who: AccountId32;360 readonly amount: u128;361 } & Struct;362 readonly isUpgraded: boolean;363 readonly asUpgraded: {364 readonly who: AccountId32;365 } & Struct;366 readonly isIssued: boolean;367 readonly asIssued: {368 readonly amount: u128;369 } & Struct;370 readonly isRescinded: boolean;371 readonly asRescinded: {372 readonly amount: u128;373 } & Struct;374 readonly isLocked: boolean;375 readonly asLocked: {376 readonly who: AccountId32;377 readonly amount: u128;378 } & Struct;379 readonly isUnlocked: boolean;380 readonly asUnlocked: {381 readonly who: AccountId32;382 readonly amount: u128;383 } & Struct;384 readonly isFrozen: boolean;385 readonly asFrozen: {386 readonly who: AccountId32;387 readonly amount: u128;388 } & Struct;389 readonly isThawed: boolean;390 readonly asThawed: {391 readonly who: AccountId32;392 readonly amount: u128;393 } & Struct;394 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed' | 'Minted' | 'Burned' | 'Suspended' | 'Restored' | 'Upgraded' | 'Issued' | 'Rescinded' | 'Locked' | 'Unlocked' | 'Frozen' | 'Thawed';395 }396397 /** @name FrameSupportTokensMiscBalanceStatus (38) */398 interface FrameSupportTokensMiscBalanceStatus extends Enum {399 readonly isFree: boolean;400 readonly isReserved: boolean;401 readonly type: 'Free' | 'Reserved';402 }403404 /** @name PalletTransactionPaymentEvent (39) */405 interface PalletTransactionPaymentEvent extends Enum {406 readonly isTransactionFeePaid: boolean;407 readonly asTransactionFeePaid: {408 readonly who: AccountId32;409 readonly actualFee: u128;410 readonly tip: u128;411 } & Struct;412 readonly type: 'TransactionFeePaid';413 }414415 /** @name PalletTreasuryEvent (40) */416 interface PalletTreasuryEvent extends Enum {417 readonly isProposed: boolean;418 readonly asProposed: {419 readonly proposalIndex: u32;420 } & Struct;421 readonly isSpending: boolean;422 readonly asSpending: {423 readonly budgetRemaining: u128;424 } & Struct;425 readonly isAwarded: boolean;426 readonly asAwarded: {427 readonly proposalIndex: u32;428 readonly award: u128;429 readonly account: AccountId32;430 } & Struct;431 readonly isRejected: boolean;432 readonly asRejected: {433 readonly proposalIndex: u32;434 readonly slashed: u128;435 } & Struct;436 readonly isBurnt: boolean;437 readonly asBurnt: {438 readonly burntFunds: u128;439 } & Struct;440 readonly isRollover: boolean;441 readonly asRollover: {442 readonly rolloverBalance: u128;443 } & Struct;444 readonly isDeposit: boolean;445 readonly asDeposit: {446 readonly value: u128;447 } & Struct;448 readonly isSpendApproved: boolean;449 readonly asSpendApproved: {450 readonly proposalIndex: u32;451 readonly amount: u128;452 readonly beneficiary: AccountId32;453 } & Struct;454 readonly isUpdatedInactive: boolean;455 readonly asUpdatedInactive: {456 readonly reactivated: u128;457 readonly deactivated: u128;458 } & Struct;459 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved' | 'UpdatedInactive';460 }461462 /** @name PalletSudoEvent (41) */463 interface PalletSudoEvent extends Enum {464 readonly isSudid: boolean;465 readonly asSudid: {466 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;467 } & Struct;468 readonly isKeyChanged: boolean;469 readonly asKeyChanged: {470 readonly oldSudoer: Option<AccountId32>;471 } & Struct;472 readonly isSudoAsDone: boolean;473 readonly asSudoAsDone: {474 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;475 } & Struct;476 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';477 }478479 /** @name OrmlVestingModuleEvent (45) */480 interface OrmlVestingModuleEvent extends Enum {481 readonly isVestingScheduleAdded: boolean;482 readonly asVestingScheduleAdded: {483 readonly from: AccountId32;484 readonly to: AccountId32;485 readonly vestingSchedule: OrmlVestingVestingSchedule;486 } & Struct;487 readonly isClaimed: boolean;488 readonly asClaimed: {489 readonly who: AccountId32;490 readonly amount: u128;491 } & Struct;492 readonly isVestingSchedulesUpdated: boolean;493 readonly asVestingSchedulesUpdated: {494 readonly who: AccountId32;495 } & Struct;496 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';497 }498499 /** @name OrmlVestingVestingSchedule (46) */500 interface OrmlVestingVestingSchedule extends Struct {501 readonly start: u32;502 readonly period: u32;503 readonly periodCount: u32;504 readonly perPeriod: Compact<u128>;505 }506507 /** @name OrmlXtokensModuleEvent (48) */508 interface OrmlXtokensModuleEvent extends Enum {509 readonly isTransferredMultiAssets: boolean;510 readonly asTransferredMultiAssets: {511 readonly sender: AccountId32;512 readonly assets: XcmV3MultiassetMultiAssets;513 readonly fee: XcmV3MultiAsset;514 readonly dest: XcmV3MultiLocation;515 } & Struct;516 readonly type: 'TransferredMultiAssets';517 }518519 /** @name XcmV3MultiassetMultiAssets (49) */520 interface XcmV3MultiassetMultiAssets extends Vec<XcmV3MultiAsset> {}521522 /** @name XcmV3MultiAsset (51) */523 interface XcmV3MultiAsset extends Struct {524 readonly id: XcmV3MultiassetAssetId;525 readonly fun: XcmV3MultiassetFungibility;526 }527528 /** @name XcmV3MultiassetAssetId (52) */529 interface XcmV3MultiassetAssetId extends Enum {530 readonly isConcrete: boolean;531 readonly asConcrete: XcmV3MultiLocation;532 readonly isAbstract: boolean;533 readonly asAbstract: U8aFixed;534 readonly type: 'Concrete' | 'Abstract';535 }536537 /** @name XcmV3MultiLocation (53) */538 interface XcmV3MultiLocation extends Struct {539 readonly parents: u8;540 readonly interior: XcmV3Junctions;541 }542543 /** @name XcmV3Junctions (54) */544 interface XcmV3Junctions extends Enum {545 readonly isHere: boolean;546 readonly isX1: boolean;547 readonly asX1: XcmV3Junction;548 readonly isX2: boolean;549 readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>;550 readonly isX3: boolean;551 readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>;552 readonly isX4: boolean;553 readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;554 readonly isX5: boolean;555 readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;556 readonly isX6: boolean;557 readonly asX6: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;558 readonly isX7: boolean;559 readonly asX7: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;560 readonly isX8: boolean;561 readonly asX8: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;562 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';563 }564565 /** @name XcmV3Junction (55) */566 interface XcmV3Junction extends Enum {567 readonly isParachain: boolean;568 readonly asParachain: Compact<u32>;569 readonly isAccountId32: boolean;570 readonly asAccountId32: {571 readonly network: Option<XcmV3JunctionNetworkId>;572 readonly id: U8aFixed;573 } & Struct;574 readonly isAccountIndex64: boolean;575 readonly asAccountIndex64: {576 readonly network: Option<XcmV3JunctionNetworkId>;577 readonly index: Compact<u64>;578 } & Struct;579 readonly isAccountKey20: boolean;580 readonly asAccountKey20: {581 readonly network: Option<XcmV3JunctionNetworkId>;582 readonly key: U8aFixed;583 } & Struct;584 readonly isPalletInstance: boolean;585 readonly asPalletInstance: u8;586 readonly isGeneralIndex: boolean;587 readonly asGeneralIndex: Compact<u128>;588 readonly isGeneralKey: boolean;589 readonly asGeneralKey: {590 readonly length: u8;591 readonly data: U8aFixed;592 } & Struct;593 readonly isOnlyChild: boolean;594 readonly isPlurality: boolean;595 readonly asPlurality: {596 readonly id: XcmV3JunctionBodyId;597 readonly part: XcmV3JunctionBodyPart;598 } & Struct;599 readonly isGlobalConsensus: boolean;600 readonly asGlobalConsensus: XcmV3JunctionNetworkId;601 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';602 }603604 /** @name XcmV3JunctionNetworkId (58) */605 interface XcmV3JunctionNetworkId extends Enum {606 readonly isByGenesis: boolean;607 readonly asByGenesis: U8aFixed;608 readonly isByFork: boolean;609 readonly asByFork: {610 readonly blockNumber: u64;611 readonly blockHash: U8aFixed;612 } & Struct;613 readonly isPolkadot: boolean;614 readonly isKusama: boolean;615 readonly isWestend: boolean;616 readonly isRococo: boolean;617 readonly isWococo: boolean;618 readonly isEthereum: boolean;619 readonly asEthereum: {620 readonly chainId: Compact<u64>;621 } & Struct;622 readonly isBitcoinCore: boolean;623 readonly isBitcoinCash: boolean;624 readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash';625 }626627 /** @name XcmV3JunctionBodyId (60) */628 interface XcmV3JunctionBodyId extends Enum {629 readonly isUnit: boolean;630 readonly isMoniker: boolean;631 readonly asMoniker: U8aFixed;632 readonly isIndex: boolean;633 readonly asIndex: Compact<u32>;634 readonly isExecutive: boolean;635 readonly isTechnical: boolean;636 readonly isLegislative: boolean;637 readonly isJudicial: boolean;638 readonly isDefense: boolean;639 readonly isAdministration: boolean;640 readonly isTreasury: boolean;641 readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';642 }643644 /** @name XcmV3JunctionBodyPart (61) */645 interface XcmV3JunctionBodyPart extends Enum {646 readonly isVoice: boolean;647 readonly isMembers: boolean;648 readonly asMembers: {649 readonly count: Compact<u32>;650 } & Struct;651 readonly isFraction: boolean;652 readonly asFraction: {653 readonly nom: Compact<u32>;654 readonly denom: Compact<u32>;655 } & Struct;656 readonly isAtLeastProportion: boolean;657 readonly asAtLeastProportion: {658 readonly nom: Compact<u32>;659 readonly denom: Compact<u32>;660 } & Struct;661 readonly isMoreThanProportion: boolean;662 readonly asMoreThanProportion: {663 readonly nom: Compact<u32>;664 readonly denom: Compact<u32>;665 } & Struct;666 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';667 }668669 /** @name XcmV3MultiassetFungibility (62) */670 interface XcmV3MultiassetFungibility extends Enum {671 readonly isFungible: boolean;672 readonly asFungible: Compact<u128>;673 readonly isNonFungible: boolean;674 readonly asNonFungible: XcmV3MultiassetAssetInstance;675 readonly type: 'Fungible' | 'NonFungible';676 }677678 /** @name XcmV3MultiassetAssetInstance (63) */679 interface XcmV3MultiassetAssetInstance extends Enum {680 readonly isUndefined: boolean;681 readonly isIndex: boolean;682 readonly asIndex: Compact<u128>;683 readonly isArray4: boolean;684 readonly asArray4: U8aFixed;685 readonly isArray8: boolean;686 readonly asArray8: U8aFixed;687 readonly isArray16: boolean;688 readonly asArray16: U8aFixed;689 readonly isArray32: boolean;690 readonly asArray32: U8aFixed;691 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32';692 }693694 /** @name OrmlTokensModuleEvent (66) */695 interface OrmlTokensModuleEvent extends Enum {696 readonly isEndowed: boolean;697 readonly asEndowed: {698 readonly currencyId: PalletForeignAssetsAssetIds;699 readonly who: AccountId32;700 readonly amount: u128;701 } & Struct;702 readonly isDustLost: boolean;703 readonly asDustLost: {704 readonly currencyId: PalletForeignAssetsAssetIds;705 readonly who: AccountId32;706 readonly amount: u128;707 } & Struct;708 readonly isTransfer: boolean;709 readonly asTransfer: {710 readonly currencyId: PalletForeignAssetsAssetIds;711 readonly from: AccountId32;712 readonly to: AccountId32;713 readonly amount: u128;714 } & Struct;715 readonly isReserved: boolean;716 readonly asReserved: {717 readonly currencyId: PalletForeignAssetsAssetIds;718 readonly who: AccountId32;719 readonly amount: u128;720 } & Struct;721 readonly isUnreserved: boolean;722 readonly asUnreserved: {723 readonly currencyId: PalletForeignAssetsAssetIds;724 readonly who: AccountId32;725 readonly amount: u128;726 } & Struct;727 readonly isReserveRepatriated: boolean;728 readonly asReserveRepatriated: {729 readonly currencyId: PalletForeignAssetsAssetIds;730 readonly from: AccountId32;731 readonly to: AccountId32;732 readonly amount: u128;733 readonly status: FrameSupportTokensMiscBalanceStatus;734 } & Struct;735 readonly isBalanceSet: boolean;736 readonly asBalanceSet: {737 readonly currencyId: PalletForeignAssetsAssetIds;738 readonly who: AccountId32;739 readonly free: u128;740 readonly reserved: u128;741 } & Struct;742 readonly isTotalIssuanceSet: boolean;743 readonly asTotalIssuanceSet: {744 readonly currencyId: PalletForeignAssetsAssetIds;745 readonly amount: u128;746 } & Struct;747 readonly isWithdrawn: boolean;748 readonly asWithdrawn: {749 readonly currencyId: PalletForeignAssetsAssetIds;750 readonly who: AccountId32;751 readonly amount: u128;752 } & Struct;753 readonly isSlashed: boolean;754 readonly asSlashed: {755 readonly currencyId: PalletForeignAssetsAssetIds;756 readonly who: AccountId32;757 readonly freeAmount: u128;758 readonly reservedAmount: u128;759 } & Struct;760 readonly isDeposited: boolean;761 readonly asDeposited: {762 readonly currencyId: PalletForeignAssetsAssetIds;763 readonly who: AccountId32;764 readonly amount: u128;765 } & Struct;766 readonly isLockSet: boolean;767 readonly asLockSet: {768 readonly lockId: U8aFixed;769 readonly currencyId: PalletForeignAssetsAssetIds;770 readonly who: AccountId32;771 readonly amount: u128;772 } & Struct;773 readonly isLockRemoved: boolean;774 readonly asLockRemoved: {775 readonly lockId: U8aFixed;776 readonly currencyId: PalletForeignAssetsAssetIds;777 readonly who: AccountId32;778 } & Struct;779 readonly isLocked: boolean;780 readonly asLocked: {781 readonly currencyId: PalletForeignAssetsAssetIds;782 readonly who: AccountId32;783 readonly amount: u128;784 } & Struct;785 readonly isUnlocked: boolean;786 readonly asUnlocked: {787 readonly currencyId: PalletForeignAssetsAssetIds;788 readonly who: AccountId32;789 readonly amount: u128;790 } & Struct;791 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked';792 }793794 /** @name PalletForeignAssetsAssetIds (67) */795 interface PalletForeignAssetsAssetIds extends Enum {796 readonly isForeignAssetId: boolean;797 readonly asForeignAssetId: u32;798 readonly isNativeAssetId: boolean;799 readonly asNativeAssetId: PalletForeignAssetsNativeCurrency;800 readonly type: 'ForeignAssetId' | 'NativeAssetId';801 }802803 /** @name PalletForeignAssetsNativeCurrency (68) */804 interface PalletForeignAssetsNativeCurrency extends Enum {805 readonly isHere: boolean;806 readonly isParent: boolean;807 readonly type: 'Here' | 'Parent';808 }809810 /** @name PalletIdentityEvent (69) */811 interface PalletIdentityEvent extends Enum {812 readonly isIdentitySet: boolean;813 readonly asIdentitySet: {814 readonly who: AccountId32;815 } & Struct;816 readonly isIdentityCleared: boolean;817 readonly asIdentityCleared: {818 readonly who: AccountId32;819 readonly deposit: u128;820 } & Struct;821 readonly isIdentityKilled: boolean;822 readonly asIdentityKilled: {823 readonly who: AccountId32;824 readonly deposit: u128;825 } & Struct;826 readonly isIdentitiesInserted: boolean;827 readonly asIdentitiesInserted: {828 readonly amount: u32;829 } & Struct;830 readonly isIdentitiesRemoved: boolean;831 readonly asIdentitiesRemoved: {832 readonly amount: u32;833 } & Struct;834 readonly isJudgementRequested: boolean;835 readonly asJudgementRequested: {836 readonly who: AccountId32;837 readonly registrarIndex: u32;838 } & Struct;839 readonly isJudgementUnrequested: boolean;840 readonly asJudgementUnrequested: {841 readonly who: AccountId32;842 readonly registrarIndex: u32;843 } & Struct;844 readonly isJudgementGiven: boolean;845 readonly asJudgementGiven: {846 readonly target: AccountId32;847 readonly registrarIndex: u32;848 } & Struct;849 readonly isRegistrarAdded: boolean;850 readonly asRegistrarAdded: {851 readonly registrarIndex: u32;852 } & Struct;853 readonly isSubIdentityAdded: boolean;854 readonly asSubIdentityAdded: {855 readonly sub: AccountId32;856 readonly main: AccountId32;857 readonly deposit: u128;858 } & Struct;859 readonly isSubIdentityRemoved: boolean;860 readonly asSubIdentityRemoved: {861 readonly sub: AccountId32;862 readonly main: AccountId32;863 readonly deposit: u128;864 } & Struct;865 readonly isSubIdentityRevoked: boolean;866 readonly asSubIdentityRevoked: {867 readonly sub: AccountId32;868 readonly main: AccountId32;869 readonly deposit: u128;870 } & Struct;871 readonly isSubIdentitiesInserted: boolean;872 readonly asSubIdentitiesInserted: {873 readonly amount: u32;874 } & Struct;875 readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked' | 'SubIdentitiesInserted';876 }877878 /** @name PalletPreimageEvent (70) */879 interface PalletPreimageEvent extends Enum {880 readonly isNoted: boolean;881 readonly asNoted: {882 readonly hash_: H256;883 } & Struct;884 readonly isRequested: boolean;885 readonly asRequested: {886 readonly hash_: H256;887 } & Struct;888 readonly isCleared: boolean;889 readonly asCleared: {890 readonly hash_: H256;891 } & Struct;892 readonly type: 'Noted' | 'Requested' | 'Cleared';893 }894895 /** @name CumulusPalletXcmpQueueEvent (71) */896 interface CumulusPalletXcmpQueueEvent extends Enum {897 readonly isSuccess: boolean;898 readonly asSuccess: {899 readonly messageHash: Option<U8aFixed>;900 readonly weight: SpWeightsWeightV2Weight;901 } & Struct;902 readonly isFail: boolean;903 readonly asFail: {904 readonly messageHash: Option<U8aFixed>;905 readonly error: XcmV3TraitsError;906 readonly weight: SpWeightsWeightV2Weight;907 } & Struct;908 readonly isBadVersion: boolean;909 readonly asBadVersion: {910 readonly messageHash: Option<U8aFixed>;911 } & Struct;912 readonly isBadFormat: boolean;913 readonly asBadFormat: {914 readonly messageHash: Option<U8aFixed>;915 } & Struct;916 readonly isXcmpMessageSent: boolean;917 readonly asXcmpMessageSent: {918 readonly messageHash: Option<U8aFixed>;919 } & Struct;920 readonly isOverweightEnqueued: boolean;921 readonly asOverweightEnqueued: {922 readonly sender: u32;923 readonly sentAt: u32;924 readonly index: u64;925 readonly required: SpWeightsWeightV2Weight;926 } & Struct;927 readonly isOverweightServiced: boolean;928 readonly asOverweightServiced: {929 readonly index: u64;930 readonly used: SpWeightsWeightV2Weight;931 } & Struct;932 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';933 }934935 /** @name XcmV3TraitsError (72) */936 interface XcmV3TraitsError extends Enum {937 readonly isOverflow: boolean;938 readonly isUnimplemented: boolean;939 readonly isUntrustedReserveLocation: boolean;940 readonly isUntrustedTeleportLocation: boolean;941 readonly isLocationFull: boolean;942 readonly isLocationNotInvertible: boolean;943 readonly isBadOrigin: boolean;944 readonly isInvalidLocation: boolean;945 readonly isAssetNotFound: boolean;946 readonly isFailedToTransactAsset: boolean;947 readonly isNotWithdrawable: boolean;948 readonly isLocationCannotHold: boolean;949 readonly isExceedsMaxMessageSize: boolean;950 readonly isDestinationUnsupported: boolean;951 readonly isTransport: boolean;952 readonly isUnroutable: boolean;953 readonly isUnknownClaim: boolean;954 readonly isFailedToDecode: boolean;955 readonly isMaxWeightInvalid: boolean;956 readonly isNotHoldingFees: boolean;957 readonly isTooExpensive: boolean;958 readonly isTrap: boolean;959 readonly asTrap: u64;960 readonly isExpectationFalse: boolean;961 readonly isPalletNotFound: boolean;962 readonly isNameMismatch: boolean;963 readonly isVersionIncompatible: boolean;964 readonly isHoldingWouldOverflow: boolean;965 readonly isExportError: boolean;966 readonly isReanchorFailed: boolean;967 readonly isNoDeal: boolean;968 readonly isFeesNotMet: boolean;969 readonly isLockError: boolean;970 readonly isNoPermission: boolean;971 readonly isUnanchored: boolean;972 readonly isNotDepositable: boolean;973 readonly isUnhandledXcmVersion: boolean;974 readonly isWeightLimitReached: boolean;975 readonly asWeightLimitReached: SpWeightsWeightV2Weight;976 readonly isBarrier: boolean;977 readonly isWeightNotComputable: boolean;978 readonly isExceedsStackLimit: boolean;979 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit';980 }981982 /** @name PalletXcmEvent (74) */983 interface PalletXcmEvent extends Enum {984 readonly isAttempted: boolean;985 readonly asAttempted: XcmV3TraitsOutcome;986 readonly isSent: boolean;987 readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;988 readonly isUnexpectedResponse: boolean;989 readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>;990 readonly isResponseReady: boolean;991 readonly asResponseReady: ITuple<[u64, XcmV3Response]>;992 readonly isNotified: boolean;993 readonly asNotified: ITuple<[u64, u8, u8]>;994 readonly isNotifyOverweight: boolean;995 readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;996 readonly isNotifyDispatchError: boolean;997 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;998 readonly isNotifyDecodeFailed: boolean;999 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;1000 readonly isInvalidResponder: boolean;1001 readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;1002 readonly isInvalidResponderVersion: boolean;1003 readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>;1004 readonly isResponseTaken: boolean;1005 readonly asResponseTaken: u64;1006 readonly isAssetsTrapped: boolean;1007 readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;1008 readonly isVersionChangeNotified: boolean;1009 readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;1010 readonly isSupportedVersionChanged: boolean;1011 readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>;1012 readonly isNotifyTargetSendFail: boolean;1013 readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>;1014 readonly isNotifyTargetMigrationFail: boolean;1015 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;1016 readonly isInvalidQuerierVersion: boolean;1017 readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>;1018 readonly isInvalidQuerier: boolean;1019 readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;1020 readonly isVersionNotifyStarted: boolean;1021 readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1022 readonly isVersionNotifyRequested: boolean;1023 readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1024 readonly isVersionNotifyUnrequested: boolean;1025 readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1026 readonly isFeesPaid: boolean;1027 readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1028 readonly isAssetsClaimed: boolean;1029 readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;1030 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed';1031 }10321033 /** @name XcmV3TraitsOutcome (75) */1034 interface XcmV3TraitsOutcome extends Enum {1035 readonly isComplete: boolean;1036 readonly asComplete: SpWeightsWeightV2Weight;1037 readonly isIncomplete: boolean;1038 readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>;1039 readonly isError: boolean;1040 readonly asError: XcmV3TraitsError;1041 readonly type: 'Complete' | 'Incomplete' | 'Error';1042 }10431044 /** @name XcmV3Xcm (76) */1045 interface XcmV3Xcm extends Vec<XcmV3Instruction> {}10461047 /** @name XcmV3Instruction (78) */1048 interface XcmV3Instruction extends Enum {1049 readonly isWithdrawAsset: boolean;1050 readonly asWithdrawAsset: XcmV3MultiassetMultiAssets;1051 readonly isReserveAssetDeposited: boolean;1052 readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets;1053 readonly isReceiveTeleportedAsset: boolean;1054 readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets;1055 readonly isQueryResponse: boolean;1056 readonly asQueryResponse: {1057 readonly queryId: Compact<u64>;1058 readonly response: XcmV3Response;1059 readonly maxWeight: SpWeightsWeightV2Weight;1060 readonly querier: Option<XcmV3MultiLocation>;1061 } & Struct;1062 readonly isTransferAsset: boolean;1063 readonly asTransferAsset: {1064 readonly assets: XcmV3MultiassetMultiAssets;1065 readonly beneficiary: XcmV3MultiLocation;1066 } & Struct;1067 readonly isTransferReserveAsset: boolean;1068 readonly asTransferReserveAsset: {1069 readonly assets: XcmV3MultiassetMultiAssets;1070 readonly dest: XcmV3MultiLocation;1071 readonly xcm: XcmV3Xcm;1072 } & Struct;1073 readonly isTransact: boolean;1074 readonly asTransact: {1075 readonly originKind: XcmV2OriginKind;1076 readonly requireWeightAtMost: SpWeightsWeightV2Weight;1077 readonly call: XcmDoubleEncoded;1078 } & Struct;1079 readonly isHrmpNewChannelOpenRequest: boolean;1080 readonly asHrmpNewChannelOpenRequest: {1081 readonly sender: Compact<u32>;1082 readonly maxMessageSize: Compact<u32>;1083 readonly maxCapacity: Compact<u32>;1084 } & Struct;1085 readonly isHrmpChannelAccepted: boolean;1086 readonly asHrmpChannelAccepted: {1087 readonly recipient: Compact<u32>;1088 } & Struct;1089 readonly isHrmpChannelClosing: boolean;1090 readonly asHrmpChannelClosing: {1091 readonly initiator: Compact<u32>;1092 readonly sender: Compact<u32>;1093 readonly recipient: Compact<u32>;1094 } & Struct;1095 readonly isClearOrigin: boolean;1096 readonly isDescendOrigin: boolean;1097 readonly asDescendOrigin: XcmV3Junctions;1098 readonly isReportError: boolean;1099 readonly asReportError: XcmV3QueryResponseInfo;1100 readonly isDepositAsset: boolean;1101 readonly asDepositAsset: {1102 readonly assets: XcmV3MultiassetMultiAssetFilter;1103 readonly beneficiary: XcmV3MultiLocation;1104 } & Struct;1105 readonly isDepositReserveAsset: boolean;1106 readonly asDepositReserveAsset: {1107 readonly assets: XcmV3MultiassetMultiAssetFilter;1108 readonly dest: XcmV3MultiLocation;1109 readonly xcm: XcmV3Xcm;1110 } & Struct;1111 readonly isExchangeAsset: boolean;1112 readonly asExchangeAsset: {1113 readonly give: XcmV3MultiassetMultiAssetFilter;1114 readonly want: XcmV3MultiassetMultiAssets;1115 readonly maximal: bool;1116 } & Struct;1117 readonly isInitiateReserveWithdraw: boolean;1118 readonly asInitiateReserveWithdraw: {1119 readonly assets: XcmV3MultiassetMultiAssetFilter;1120 readonly reserve: XcmV3MultiLocation;1121 readonly xcm: XcmV3Xcm;1122 } & Struct;1123 readonly isInitiateTeleport: boolean;1124 readonly asInitiateTeleport: {1125 readonly assets: XcmV3MultiassetMultiAssetFilter;1126 readonly dest: XcmV3MultiLocation;1127 readonly xcm: XcmV3Xcm;1128 } & Struct;1129 readonly isReportHolding: boolean;1130 readonly asReportHolding: {1131 readonly responseInfo: XcmV3QueryResponseInfo;1132 readonly assets: XcmV3MultiassetMultiAssetFilter;1133 } & Struct;1134 readonly isBuyExecution: boolean;1135 readonly asBuyExecution: {1136 readonly fees: XcmV3MultiAsset;1137 readonly weightLimit: XcmV3WeightLimit;1138 } & Struct;1139 readonly isRefundSurplus: boolean;1140 readonly isSetErrorHandler: boolean;1141 readonly asSetErrorHandler: XcmV3Xcm;1142 readonly isSetAppendix: boolean;1143 readonly asSetAppendix: XcmV3Xcm;1144 readonly isClearError: boolean;1145 readonly isClaimAsset: boolean;1146 readonly asClaimAsset: {1147 readonly assets: XcmV3MultiassetMultiAssets;1148 readonly ticket: XcmV3MultiLocation;1149 } & Struct;1150 readonly isTrap: boolean;1151 readonly asTrap: Compact<u64>;1152 readonly isSubscribeVersion: boolean;1153 readonly asSubscribeVersion: {1154 readonly queryId: Compact<u64>;1155 readonly maxResponseWeight: SpWeightsWeightV2Weight;1156 } & Struct;1157 readonly isUnsubscribeVersion: boolean;1158 readonly isBurnAsset: boolean;1159 readonly asBurnAsset: XcmV3MultiassetMultiAssets;1160 readonly isExpectAsset: boolean;1161 readonly asExpectAsset: XcmV3MultiassetMultiAssets;1162 readonly isExpectOrigin: boolean;1163 readonly asExpectOrigin: Option<XcmV3MultiLocation>;1164 readonly isExpectError: boolean;1165 readonly asExpectError: Option<ITuple<[u32, XcmV3TraitsError]>>;1166 readonly isExpectTransactStatus: boolean;1167 readonly asExpectTransactStatus: XcmV3MaybeErrorCode;1168 readonly isQueryPallet: boolean;1169 readonly asQueryPallet: {1170 readonly moduleName: Bytes;1171 readonly responseInfo: XcmV3QueryResponseInfo;1172 } & Struct;1173 readonly isExpectPallet: boolean;1174 readonly asExpectPallet: {1175 readonly index: Compact<u32>;1176 readonly name: Bytes;1177 readonly moduleName: Bytes;1178 readonly crateMajor: Compact<u32>;1179 readonly minCrateMinor: Compact<u32>;1180 } & Struct;1181 readonly isReportTransactStatus: boolean;1182 readonly asReportTransactStatus: XcmV3QueryResponseInfo;1183 readonly isClearTransactStatus: boolean;1184 readonly isUniversalOrigin: boolean;1185 readonly asUniversalOrigin: XcmV3Junction;1186 readonly isExportMessage: boolean;1187 readonly asExportMessage: {1188 readonly network: XcmV3JunctionNetworkId;1189 readonly destination: XcmV3Junctions;1190 readonly xcm: XcmV3Xcm;1191 } & Struct;1192 readonly isLockAsset: boolean;1193 readonly asLockAsset: {1194 readonly asset: XcmV3MultiAsset;1195 readonly unlocker: XcmV3MultiLocation;1196 } & Struct;1197 readonly isUnlockAsset: boolean;1198 readonly asUnlockAsset: {1199 readonly asset: XcmV3MultiAsset;1200 readonly target: XcmV3MultiLocation;1201 } & Struct;1202 readonly isNoteUnlockable: boolean;1203 readonly asNoteUnlockable: {1204 readonly asset: XcmV3MultiAsset;1205 readonly owner: XcmV3MultiLocation;1206 } & Struct;1207 readonly isRequestUnlock: boolean;1208 readonly asRequestUnlock: {1209 readonly asset: XcmV3MultiAsset;1210 readonly locker: XcmV3MultiLocation;1211 } & Struct;1212 readonly isSetFeesMode: boolean;1213 readonly asSetFeesMode: {1214 readonly jitWithdraw: bool;1215 } & Struct;1216 readonly isSetTopic: boolean;1217 readonly asSetTopic: U8aFixed;1218 readonly isClearTopic: boolean;1219 readonly isAliasOrigin: boolean;1220 readonly asAliasOrigin: XcmV3MultiLocation;1221 readonly isUnpaidExecution: boolean;1222 readonly asUnpaidExecution: {1223 readonly weightLimit: XcmV3WeightLimit;1224 readonly checkOrigin: Option<XcmV3MultiLocation>;1225 } & Struct;1226 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution';1227 }12281229 /** @name XcmV3Response (79) */1230 interface XcmV3Response extends Enum {1231 readonly isNull: boolean;1232 readonly isAssets: boolean;1233 readonly asAssets: XcmV3MultiassetMultiAssets;1234 readonly isExecutionResult: boolean;1235 readonly asExecutionResult: Option<ITuple<[u32, XcmV3TraitsError]>>;1236 readonly isVersion: boolean;1237 readonly asVersion: u32;1238 readonly isPalletsInfo: boolean;1239 readonly asPalletsInfo: Vec<XcmV3PalletInfo>;1240 readonly isDispatchResult: boolean;1241 readonly asDispatchResult: XcmV3MaybeErrorCode;1242 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult';1243 }12441245 /** @name XcmV3PalletInfo (83) */1246 interface XcmV3PalletInfo extends Struct {1247 readonly index: Compact<u32>;1248 readonly name: Bytes;1249 readonly moduleName: Bytes;1250 readonly major: Compact<u32>;1251 readonly minor: Compact<u32>;1252 readonly patch: Compact<u32>;1253 }12541255 /** @name XcmV3MaybeErrorCode (86) */1256 interface XcmV3MaybeErrorCode extends Enum {1257 readonly isSuccess: boolean;1258 readonly isError: boolean;1259 readonly asError: Bytes;1260 readonly isTruncatedError: boolean;1261 readonly asTruncatedError: Bytes;1262 readonly type: 'Success' | 'Error' | 'TruncatedError';1263 }12641265 /** @name XcmV2OriginKind (89) */1266 interface XcmV2OriginKind extends Enum {1267 readonly isNative: boolean;1268 readonly isSovereignAccount: boolean;1269 readonly isSuperuser: boolean;1270 readonly isXcm: boolean;1271 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';1272 }12731274 /** @name XcmDoubleEncoded (90) */1275 interface XcmDoubleEncoded extends Struct {1276 readonly encoded: Bytes;1277 }12781279 /** @name XcmV3QueryResponseInfo (91) */1280 interface XcmV3QueryResponseInfo extends Struct {1281 readonly destination: XcmV3MultiLocation;1282 readonly queryId: Compact<u64>;1283 readonly maxWeight: SpWeightsWeightV2Weight;1284 }12851286 /** @name XcmV3MultiassetMultiAssetFilter (92) */1287 interface XcmV3MultiassetMultiAssetFilter extends Enum {1288 readonly isDefinite: boolean;1289 readonly asDefinite: XcmV3MultiassetMultiAssets;1290 readonly isWild: boolean;1291 readonly asWild: XcmV3MultiassetWildMultiAsset;1292 readonly type: 'Definite' | 'Wild';1293 }12941295 /** @name XcmV3MultiassetWildMultiAsset (93) */1296 interface XcmV3MultiassetWildMultiAsset extends Enum {1297 readonly isAll: boolean;1298 readonly isAllOf: boolean;1299 readonly asAllOf: {1300 readonly id: XcmV3MultiassetAssetId;1301 readonly fun: XcmV3MultiassetWildFungibility;1302 } & Struct;1303 readonly isAllCounted: boolean;1304 readonly asAllCounted: Compact<u32>;1305 readonly isAllOfCounted: boolean;1306 readonly asAllOfCounted: {1307 readonly id: XcmV3MultiassetAssetId;1308 readonly fun: XcmV3MultiassetWildFungibility;1309 readonly count: Compact<u32>;1310 } & Struct;1311 readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted';1312 }13131314 /** @name XcmV3MultiassetWildFungibility (94) */1315 interface XcmV3MultiassetWildFungibility extends Enum {1316 readonly isFungible: boolean;1317 readonly isNonFungible: boolean;1318 readonly type: 'Fungible' | 'NonFungible';1319 }13201321 /** @name XcmV3WeightLimit (96) */1322 interface XcmV3WeightLimit extends Enum {1323 readonly isUnlimited: boolean;1324 readonly isLimited: boolean;1325 readonly asLimited: SpWeightsWeightV2Weight;1326 readonly type: 'Unlimited' | 'Limited';1327 }13281329 /** @name XcmVersionedMultiAssets (97) */1330 interface XcmVersionedMultiAssets extends Enum {1331 readonly isV2: boolean;1332 readonly asV2: XcmV2MultiassetMultiAssets;1333 readonly isV3: boolean;1334 readonly asV3: XcmV3MultiassetMultiAssets;1335 readonly type: 'V2' | 'V3';1336 }13371338 /** @name XcmV2MultiassetMultiAssets (98) */1339 interface XcmV2MultiassetMultiAssets extends Vec<XcmV2MultiAsset> {}13401341 /** @name XcmV2MultiAsset (100) */1342 interface XcmV2MultiAsset extends Struct {1343 readonly id: XcmV2MultiassetAssetId;1344 readonly fun: XcmV2MultiassetFungibility;1345 }13461347 /** @name XcmV2MultiassetAssetId (101) */1348 interface XcmV2MultiassetAssetId extends Enum {1349 readonly isConcrete: boolean;1350 readonly asConcrete: XcmV2MultiLocation;1351 readonly isAbstract: boolean;1352 readonly asAbstract: Bytes;1353 readonly type: 'Concrete' | 'Abstract';1354 }13551356 /** @name XcmV2MultiLocation (102) */1357 interface XcmV2MultiLocation extends Struct {1358 readonly parents: u8;1359 readonly interior: XcmV2MultilocationJunctions;1360 }13611362 /** @name XcmV2MultilocationJunctions (103) */1363 interface XcmV2MultilocationJunctions extends Enum {1364 readonly isHere: boolean;1365 readonly isX1: boolean;1366 readonly asX1: XcmV2Junction;1367 readonly isX2: boolean;1368 readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>;1369 readonly isX3: boolean;1370 readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1371 readonly isX4: boolean;1372 readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1373 readonly isX5: boolean;1374 readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1375 readonly isX6: boolean;1376 readonly asX6: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1377 readonly isX7: boolean;1378 readonly asX7: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1379 readonly isX8: boolean;1380 readonly asX8: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1381 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1382 }13831384 /** @name XcmV2Junction (104) */1385 interface XcmV2Junction extends Enum {1386 readonly isParachain: boolean;1387 readonly asParachain: Compact<u32>;1388 readonly isAccountId32: boolean;1389 readonly asAccountId32: {1390 readonly network: XcmV2NetworkId;1391 readonly id: U8aFixed;1392 } & Struct;1393 readonly isAccountIndex64: boolean;1394 readonly asAccountIndex64: {1395 readonly network: XcmV2NetworkId;1396 readonly index: Compact<u64>;1397 } & Struct;1398 readonly isAccountKey20: boolean;1399 readonly asAccountKey20: {1400 readonly network: XcmV2NetworkId;1401 readonly key: U8aFixed;1402 } & Struct;1403 readonly isPalletInstance: boolean;1404 readonly asPalletInstance: u8;1405 readonly isGeneralIndex: boolean;1406 readonly asGeneralIndex: Compact<u128>;1407 readonly isGeneralKey: boolean;1408 readonly asGeneralKey: Bytes;1409 readonly isOnlyChild: boolean;1410 readonly isPlurality: boolean;1411 readonly asPlurality: {1412 readonly id: XcmV2BodyId;1413 readonly part: XcmV2BodyPart;1414 } & Struct;1415 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1416 }14171418 /** @name XcmV2NetworkId (105) */1419 interface XcmV2NetworkId extends Enum {1420 readonly isAny: boolean;1421 readonly isNamed: boolean;1422 readonly asNamed: Bytes;1423 readonly isPolkadot: boolean;1424 readonly isKusama: boolean;1425 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';1426 }14271428 /** @name XcmV2BodyId (107) */1429 interface XcmV2BodyId extends Enum {1430 readonly isUnit: boolean;1431 readonly isNamed: boolean;1432 readonly asNamed: Bytes;1433 readonly isIndex: boolean;1434 readonly asIndex: Compact<u32>;1435 readonly isExecutive: boolean;1436 readonly isTechnical: boolean;1437 readonly isLegislative: boolean;1438 readonly isJudicial: boolean;1439 readonly isDefense: boolean;1440 readonly isAdministration: boolean;1441 readonly isTreasury: boolean;1442 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';1443 }14441445 /** @name XcmV2BodyPart (108) */1446 interface XcmV2BodyPart extends Enum {1447 readonly isVoice: boolean;1448 readonly isMembers: boolean;1449 readonly asMembers: {1450 readonly count: Compact<u32>;1451 } & Struct;1452 readonly isFraction: boolean;1453 readonly asFraction: {1454 readonly nom: Compact<u32>;1455 readonly denom: Compact<u32>;1456 } & Struct;1457 readonly isAtLeastProportion: boolean;1458 readonly asAtLeastProportion: {1459 readonly nom: Compact<u32>;1460 readonly denom: Compact<u32>;1461 } & Struct;1462 readonly isMoreThanProportion: boolean;1463 readonly asMoreThanProportion: {1464 readonly nom: Compact<u32>;1465 readonly denom: Compact<u32>;1466 } & Struct;1467 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';1468 }14691470 /** @name XcmV2MultiassetFungibility (109) */1471 interface XcmV2MultiassetFungibility extends Enum {1472 readonly isFungible: boolean;1473 readonly asFungible: Compact<u128>;1474 readonly isNonFungible: boolean;1475 readonly asNonFungible: XcmV2MultiassetAssetInstance;1476 readonly type: 'Fungible' | 'NonFungible';1477 }14781479 /** @name XcmV2MultiassetAssetInstance (110) */1480 interface XcmV2MultiassetAssetInstance extends Enum {1481 readonly isUndefined: boolean;1482 readonly isIndex: boolean;1483 readonly asIndex: Compact<u128>;1484 readonly isArray4: boolean;1485 readonly asArray4: U8aFixed;1486 readonly isArray8: boolean;1487 readonly asArray8: U8aFixed;1488 readonly isArray16: boolean;1489 readonly asArray16: U8aFixed;1490 readonly isArray32: boolean;1491 readonly asArray32: U8aFixed;1492 readonly isBlob: boolean;1493 readonly asBlob: Bytes;1494 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';1495 }14961497 /** @name XcmVersionedMultiLocation (111) */1498 interface XcmVersionedMultiLocation extends Enum {1499 readonly isV2: boolean;1500 readonly asV2: XcmV2MultiLocation;1501 readonly isV3: boolean;1502 readonly asV3: XcmV3MultiLocation;1503 readonly type: 'V2' | 'V3';1504 }15051506 /** @name CumulusPalletXcmEvent (112) */1507 interface CumulusPalletXcmEvent extends Enum {1508 readonly isInvalidFormat: boolean;1509 readonly asInvalidFormat: U8aFixed;1510 readonly isUnsupportedVersion: boolean;1511 readonly asUnsupportedVersion: U8aFixed;1512 readonly isExecutedDownward: boolean;1513 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>;1514 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1515 }15161517 /** @name CumulusPalletDmpQueueEvent (113) */1518 interface CumulusPalletDmpQueueEvent extends Enum {1519 readonly isInvalidFormat: boolean;1520 readonly asInvalidFormat: {1521 readonly messageId: U8aFixed;1522 } & Struct;1523 readonly isUnsupportedVersion: boolean;1524 readonly asUnsupportedVersion: {1525 readonly messageId: U8aFixed;1526 } & Struct;1527 readonly isExecutedDownward: boolean;1528 readonly asExecutedDownward: {1529 readonly messageId: U8aFixed;1530 readonly outcome: XcmV3TraitsOutcome;1531 } & Struct;1532 readonly isWeightExhausted: boolean;1533 readonly asWeightExhausted: {1534 readonly messageId: U8aFixed;1535 readonly remainingWeight: SpWeightsWeightV2Weight;1536 readonly requiredWeight: SpWeightsWeightV2Weight;1537 } & Struct;1538 readonly isOverweightEnqueued: boolean;1539 readonly asOverweightEnqueued: {1540 readonly messageId: U8aFixed;1541 readonly overweightIndex: u64;1542 readonly requiredWeight: SpWeightsWeightV2Weight;1543 } & Struct;1544 readonly isOverweightServiced: boolean;1545 readonly asOverweightServiced: {1546 readonly overweightIndex: u64;1547 readonly weightUsed: SpWeightsWeightV2Weight;1548 } & Struct;1549 readonly isMaxMessagesExhausted: boolean;1550 readonly asMaxMessagesExhausted: {1551 readonly messageId: U8aFixed;1552 } & Struct;1553 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced' | 'MaxMessagesExhausted';1554 }15551556 /** @name PalletConfigurationEvent (114) */1557 interface PalletConfigurationEvent extends Enum {1558 readonly isNewDesiredCollators: boolean;1559 readonly asNewDesiredCollators: {1560 readonly desiredCollators: Option<u32>;1561 } & Struct;1562 readonly isNewCollatorLicenseBond: boolean;1563 readonly asNewCollatorLicenseBond: {1564 readonly bondCost: Option<u128>;1565 } & Struct;1566 readonly isNewCollatorKickThreshold: boolean;1567 readonly asNewCollatorKickThreshold: {1568 readonly lengthInBlocks: Option<u32>;1569 } & Struct;1570 readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';1571 }15721573 /** @name PalletCommonEvent (117) */1574 interface PalletCommonEvent extends Enum {1575 readonly isCollectionCreated: boolean;1576 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1577 readonly isCollectionDestroyed: boolean;1578 readonly asCollectionDestroyed: u32;1579 readonly isItemCreated: boolean;1580 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1581 readonly isItemDestroyed: boolean;1582 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1583 readonly isTransfer: boolean;1584 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1585 readonly isApproved: boolean;1586 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1587 readonly isApprovedForAll: boolean;1588 readonly asApprovedForAll: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1589 readonly isCollectionPropertySet: boolean;1590 readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;1591 readonly isCollectionPropertyDeleted: boolean;1592 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;1593 readonly isTokenPropertySet: boolean;1594 readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;1595 readonly isTokenPropertyDeleted: boolean;1596 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;1597 readonly isPropertyPermissionSet: boolean;1598 readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;1599 readonly isAllowListAddressAdded: boolean;1600 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1601 readonly isAllowListAddressRemoved: boolean;1602 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1603 readonly isCollectionAdminAdded: boolean;1604 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1605 readonly isCollectionAdminRemoved: boolean;1606 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1607 readonly isCollectionLimitSet: boolean;1608 readonly asCollectionLimitSet: u32;1609 readonly isCollectionOwnerChanged: boolean;1610 readonly asCollectionOwnerChanged: ITuple<[u32, AccountId32]>;1611 readonly isCollectionPermissionSet: boolean;1612 readonly asCollectionPermissionSet: u32;1613 readonly isCollectionSponsorSet: boolean;1614 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1615 readonly isSponsorshipConfirmed: boolean;1616 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1617 readonly isCollectionSponsorRemoved: boolean;1618 readonly asCollectionSponsorRemoved: u32;1619 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';1620 }16211622 /** @name PalletEvmAccountBasicCrossAccountIdRepr (120) */1623 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1624 readonly isSubstrate: boolean;1625 readonly asSubstrate: AccountId32;1626 readonly isEthereum: boolean;1627 readonly asEthereum: H160;1628 readonly type: 'Substrate' | 'Ethereum';1629 }16301631 /** @name PalletStructureEvent (123) */1632 interface PalletStructureEvent extends Enum {1633 readonly isExecuted: boolean;1634 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1635 readonly type: 'Executed';1636 }16371638 /** @name PalletAppPromotionEvent (124) */1639 interface PalletAppPromotionEvent extends Enum {1640 readonly isStakingRecalculation: boolean;1641 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1642 readonly isStake: boolean;1643 readonly asStake: ITuple<[AccountId32, u128]>;1644 readonly isUnstake: boolean;1645 readonly asUnstake: ITuple<[AccountId32, u128]>;1646 readonly isSetAdmin: boolean;1647 readonly asSetAdmin: AccountId32;1648 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1649 }16501651 /** @name PalletForeignAssetsModuleEvent (125) */1652 interface PalletForeignAssetsModuleEvent extends Enum {1653 readonly isForeignAssetRegistered: boolean;1654 readonly asForeignAssetRegistered: {1655 readonly assetId: u32;1656 readonly assetAddress: XcmV3MultiLocation;1657 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1658 } & Struct;1659 readonly isForeignAssetUpdated: boolean;1660 readonly asForeignAssetUpdated: {1661 readonly assetId: u32;1662 readonly assetAddress: XcmV3MultiLocation;1663 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1664 } & Struct;1665 readonly isAssetRegistered: boolean;1666 readonly asAssetRegistered: {1667 readonly assetId: PalletForeignAssetsAssetIds;1668 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1669 } & Struct;1670 readonly isAssetUpdated: boolean;1671 readonly asAssetUpdated: {1672 readonly assetId: PalletForeignAssetsAssetIds;1673 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1674 } & Struct;1675 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1676 }16771678 /** @name PalletForeignAssetsModuleAssetMetadata (126) */1679 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1680 readonly name: Bytes;1681 readonly symbol: Bytes;1682 readonly decimals: u8;1683 readonly minimalBalance: u128;1684 }16851686 /** @name PalletEvmEvent (129) */1687 interface PalletEvmEvent extends Enum {1688 readonly isLog: boolean;1689 readonly asLog: {1690 readonly log: EthereumLog;1691 } & Struct;1692 readonly isCreated: boolean;1693 readonly asCreated: {1694 readonly address: H160;1695 } & Struct;1696 readonly isCreatedFailed: boolean;1697 readonly asCreatedFailed: {1698 readonly address: H160;1699 } & Struct;1700 readonly isExecuted: boolean;1701 readonly asExecuted: {1702 readonly address: H160;1703 } & Struct;1704 readonly isExecutedFailed: boolean;1705 readonly asExecutedFailed: {1706 readonly address: H160;1707 } & Struct;1708 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1709 }17101711 /** @name EthereumLog (130) */1712 interface EthereumLog extends Struct {1713 readonly address: H160;1714 readonly topics: Vec<H256>;1715 readonly data: Bytes;1716 }17171718 /** @name PalletEthereumEvent (132) */1719 interface PalletEthereumEvent extends Enum {1720 readonly isExecuted: boolean;1721 readonly asExecuted: {1722 readonly from: H160;1723 readonly to: H160;1724 readonly transactionHash: H256;1725 readonly exitReason: EvmCoreErrorExitReason;1726 readonly extraData: Bytes;1727 } & Struct;1728 readonly type: 'Executed';1729 }17301731 /** @name EvmCoreErrorExitReason (133) */1732 interface EvmCoreErrorExitReason extends Enum {1733 readonly isSucceed: boolean;1734 readonly asSucceed: EvmCoreErrorExitSucceed;1735 readonly isError: boolean;1736 readonly asError: EvmCoreErrorExitError;1737 readonly isRevert: boolean;1738 readonly asRevert: EvmCoreErrorExitRevert;1739 readonly isFatal: boolean;1740 readonly asFatal: EvmCoreErrorExitFatal;1741 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1742 }17431744 /** @name EvmCoreErrorExitSucceed (134) */1745 interface EvmCoreErrorExitSucceed extends Enum {1746 readonly isStopped: boolean;1747 readonly isReturned: boolean;1748 readonly isSuicided: boolean;1749 readonly type: 'Stopped' | 'Returned' | 'Suicided';1750 }17511752 /** @name EvmCoreErrorExitError (135) */1753 interface EvmCoreErrorExitError extends Enum {1754 readonly isStackUnderflow: boolean;1755 readonly isStackOverflow: boolean;1756 readonly isInvalidJump: boolean;1757 readonly isInvalidRange: boolean;1758 readonly isDesignatedInvalid: boolean;1759 readonly isCallTooDeep: boolean;1760 readonly isCreateCollision: boolean;1761 readonly isCreateContractLimit: boolean;1762 readonly isOutOfOffset: boolean;1763 readonly isOutOfGas: boolean;1764 readonly isOutOfFund: boolean;1765 readonly isPcUnderflow: boolean;1766 readonly isCreateEmpty: boolean;1767 readonly isOther: boolean;1768 readonly asOther: Text;1769 readonly isMaxNonce: boolean;1770 readonly isInvalidCode: boolean;1771 readonly asInvalidCode: u8;1772 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'MaxNonce' | 'InvalidCode';1773 }17741775 /** @name EvmCoreErrorExitRevert (139) */1776 interface EvmCoreErrorExitRevert extends Enum {1777 readonly isReverted: boolean;1778 readonly type: 'Reverted';1779 }17801781 /** @name EvmCoreErrorExitFatal (140) */1782 interface EvmCoreErrorExitFatal extends Enum {1783 readonly isNotSupported: boolean;1784 readonly isUnhandledInterrupt: boolean;1785 readonly isCallErrorAsFatal: boolean;1786 readonly asCallErrorAsFatal: EvmCoreErrorExitError;1787 readonly isOther: boolean;1788 readonly asOther: Text;1789 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1790 }17911792 /** @name PalletEvmContractHelpersEvent (141) */1793 interface PalletEvmContractHelpersEvent extends Enum {1794 readonly isContractSponsorSet: boolean;1795 readonly asContractSponsorSet: ITuple<[H160, AccountId32]>;1796 readonly isContractSponsorshipConfirmed: boolean;1797 readonly asContractSponsorshipConfirmed: ITuple<[H160, AccountId32]>;1798 readonly isContractSponsorRemoved: boolean;1799 readonly asContractSponsorRemoved: H160;1800 readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved';1801 }18021803 /** @name PalletEvmMigrationEvent (142) */1804 interface PalletEvmMigrationEvent extends Enum {1805 readonly isTestEvent: boolean;1806 readonly type: 'TestEvent';1807 }18081809 /** @name PalletMaintenanceEvent (143) */1810 interface PalletMaintenanceEvent extends Enum {1811 readonly isMaintenanceEnabled: boolean;1812 readonly isMaintenanceDisabled: boolean;1813 readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled';1814 }18151816 /** @name PalletTestUtilsEvent (144) */1817 interface PalletTestUtilsEvent extends Enum {1818 readonly isValueIsSet: boolean;1819 readonly isShouldRollback: boolean;1820 readonly isBatchCompleted: boolean;1821 readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted';1822 }18231824 /** @name FrameSystemPhase (145) */1825 interface FrameSystemPhase extends Enum {1826 readonly isApplyExtrinsic: boolean;1827 readonly asApplyExtrinsic: u32;1828 readonly isFinalization: boolean;1829 readonly isInitialization: boolean;1830 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1831 }18321833 /** @name FrameSystemLastRuntimeUpgradeInfo (148) */1834 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1835 readonly specVersion: Compact<u32>;1836 readonly specName: Text;1837 }18381839 /** @name FrameSystemCall (149) */1840 interface FrameSystemCall extends Enum {1841 readonly isRemark: boolean;1842 readonly asRemark: {1843 readonly remark: Bytes;1844 } & Struct;1845 readonly isSetHeapPages: boolean;1846 readonly asSetHeapPages: {1847 readonly pages: u64;1848 } & Struct;1849 readonly isSetCode: boolean;1850 readonly asSetCode: {1851 readonly code: Bytes;1852 } & Struct;1853 readonly isSetCodeWithoutChecks: boolean;1854 readonly asSetCodeWithoutChecks: {1855 readonly code: Bytes;1856 } & Struct;1857 readonly isSetStorage: boolean;1858 readonly asSetStorage: {1859 readonly items: Vec<ITuple<[Bytes, Bytes]>>;1860 } & Struct;1861 readonly isKillStorage: boolean;1862 readonly asKillStorage: {1863 readonly keys_: Vec<Bytes>;1864 } & Struct;1865 readonly isKillPrefix: boolean;1866 readonly asKillPrefix: {1867 readonly prefix: Bytes;1868 readonly subkeys: u32;1869 } & Struct;1870 readonly isRemarkWithEvent: boolean;1871 readonly asRemarkWithEvent: {1872 readonly remark: Bytes;1873 } & Struct;1874 readonly type: 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1875 }18761877 /** @name FrameSystemLimitsBlockWeights (153) */1878 interface FrameSystemLimitsBlockWeights extends Struct {1879 readonly baseBlock: SpWeightsWeightV2Weight;1880 readonly maxBlock: SpWeightsWeightV2Weight;1881 readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;1882 }18831884 /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (154) */1885 interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {1886 readonly normal: FrameSystemLimitsWeightsPerClass;1887 readonly operational: FrameSystemLimitsWeightsPerClass;1888 readonly mandatory: FrameSystemLimitsWeightsPerClass;1889 }18901891 /** @name FrameSystemLimitsWeightsPerClass (155) */1892 interface FrameSystemLimitsWeightsPerClass extends Struct {1893 readonly baseExtrinsic: SpWeightsWeightV2Weight;1894 readonly maxExtrinsic: Option<SpWeightsWeightV2Weight>;1895 readonly maxTotal: Option<SpWeightsWeightV2Weight>;1896 readonly reserved: Option<SpWeightsWeightV2Weight>;1897 }18981899 /** @name FrameSystemLimitsBlockLength (157) */1900 interface FrameSystemLimitsBlockLength extends Struct {1901 readonly max: FrameSupportDispatchPerDispatchClassU32;1902 }19031904 /** @name FrameSupportDispatchPerDispatchClassU32 (158) */1905 interface FrameSupportDispatchPerDispatchClassU32 extends Struct {1906 readonly normal: u32;1907 readonly operational: u32;1908 readonly mandatory: u32;1909 }19101911 /** @name SpWeightsRuntimeDbWeight (159) */1912 interface SpWeightsRuntimeDbWeight extends Struct {1913 readonly read: u64;1914 readonly write: u64;1915 }19161917 /** @name SpVersionRuntimeVersion (160) */1918 interface SpVersionRuntimeVersion extends Struct {1919 readonly specName: Text;1920 readonly implName: Text;1921 readonly authoringVersion: u32;1922 readonly specVersion: u32;1923 readonly implVersion: u32;1924 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1925 readonly transactionVersion: u32;1926 readonly stateVersion: u8;1927 }19281929 /** @name FrameSystemError (165) */1930 interface FrameSystemError extends Enum {1931 readonly isInvalidSpecName: boolean;1932 readonly isSpecVersionNeedsToIncrease: boolean;1933 readonly isFailedToExtractRuntimeVersion: boolean;1934 readonly isNonDefaultComposite: boolean;1935 readonly isNonZeroRefCount: boolean;1936 readonly isCallFiltered: boolean;1937 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1938 }19391940 /** @name PalletStateTrieMigrationMigrationTask (166) */1941 interface PalletStateTrieMigrationMigrationTask extends Struct {1942 readonly progressTop: PalletStateTrieMigrationProgress;1943 readonly progressChild: PalletStateTrieMigrationProgress;1944 readonly size_: u32;1945 readonly topItems: u32;1946 readonly childItems: u32;1947 }19481949 /** @name PalletStateTrieMigrationProgress (167) */1950 interface PalletStateTrieMigrationProgress extends Enum {1951 readonly isToStart: boolean;1952 readonly isLastKey: boolean;1953 readonly asLastKey: Bytes;1954 readonly isComplete: boolean;1955 readonly type: 'ToStart' | 'LastKey' | 'Complete';1956 }19571958 /** @name PalletStateTrieMigrationMigrationLimits (170) */1959 interface PalletStateTrieMigrationMigrationLimits extends Struct {1960 readonly size_: u32;1961 readonly item: u32;1962 }19631964 /** @name PalletStateTrieMigrationCall (171) */1965 interface PalletStateTrieMigrationCall extends Enum {1966 readonly isControlAutoMigration: boolean;1967 readonly asControlAutoMigration: {1968 readonly maybeConfig: Option<PalletStateTrieMigrationMigrationLimits>;1969 } & Struct;1970 readonly isContinueMigrate: boolean;1971 readonly asContinueMigrate: {1972 readonly limits: PalletStateTrieMigrationMigrationLimits;1973 readonly realSizeUpper: u32;1974 readonly witnessTask: PalletStateTrieMigrationMigrationTask;1975 } & Struct;1976 readonly isMigrateCustomTop: boolean;1977 readonly asMigrateCustomTop: {1978 readonly keys_: Vec<Bytes>;1979 readonly witnessSize: u32;1980 } & Struct;1981 readonly isMigrateCustomChild: boolean;1982 readonly asMigrateCustomChild: {1983 readonly root: Bytes;1984 readonly childKeys: Vec<Bytes>;1985 readonly totalSize: u32;1986 } & Struct;1987 readonly isSetSignedMaxLimits: boolean;1988 readonly asSetSignedMaxLimits: {1989 readonly limits: PalletStateTrieMigrationMigrationLimits;1990 } & Struct;1991 readonly isForceSetProgress: boolean;1992 readonly asForceSetProgress: {1993 readonly progressTop: PalletStateTrieMigrationProgress;1994 readonly progressChild: PalletStateTrieMigrationProgress;1995 } & Struct;1996 readonly type: 'ControlAutoMigration' | 'ContinueMigrate' | 'MigrateCustomTop' | 'MigrateCustomChild' | 'SetSignedMaxLimits' | 'ForceSetProgress';1997 }19981999 /** @name PolkadotPrimitivesV4PersistedValidationData (172) */2000 interface PolkadotPrimitivesV4PersistedValidationData extends Struct {2001 readonly parentHead: Bytes;2002 readonly relayParentNumber: u32;2003 readonly relayParentStorageRoot: H256;2004 readonly maxPovSize: u32;2005 }20062007 /** @name PolkadotPrimitivesV4UpgradeRestriction (175) */2008 interface PolkadotPrimitivesV4UpgradeRestriction extends Enum {2009 readonly isPresent: boolean;2010 readonly type: 'Present';2011 }20122013 /** @name SpTrieStorageProof (176) */2014 interface SpTrieStorageProof extends Struct {2015 readonly trieNodes: BTreeSet<Bytes>;2016 }20172018 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (178) */2019 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {2020 readonly dmqMqcHead: H256;2021 readonly relayDispatchQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize;2022 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV4AbridgedHrmpChannel]>>;2023 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV4AbridgedHrmpChannel]>>;2024 }20252026 /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize (179) */2027 interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize extends Struct {2028 readonly remainingCount: u32;2029 readonly remainingSize: u32;2030 }20312032 /** @name PolkadotPrimitivesV4AbridgedHrmpChannel (182) */2033 interface PolkadotPrimitivesV4AbridgedHrmpChannel extends Struct {2034 readonly maxCapacity: u32;2035 readonly maxTotalSize: u32;2036 readonly maxMessageSize: u32;2037 readonly msgCount: u32;2038 readonly totalSize: u32;2039 readonly mqcHead: Option<H256>;2040 }20412042 /** @name PolkadotPrimitivesV4AbridgedHostConfiguration (184) */2043 interface PolkadotPrimitivesV4AbridgedHostConfiguration extends Struct {2044 readonly maxCodeSize: u32;2045 readonly maxHeadDataSize: u32;2046 readonly maxUpwardQueueCount: u32;2047 readonly maxUpwardQueueSize: u32;2048 readonly maxUpwardMessageSize: u32;2049 readonly maxUpwardMessageNumPerCandidate: u32;2050 readonly hrmpMaxMessageNumPerCandidate: u32;2051 readonly validationUpgradeCooldown: u32;2052 readonly validationUpgradeDelay: u32;2053 }20542055 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (190) */2056 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {2057 readonly recipient: u32;2058 readonly data: Bytes;2059 }20602061 /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (191) */2062 interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct {2063 readonly codeHash: H256;2064 readonly checkVersion: bool;2065 }20662067 /** @name CumulusPalletParachainSystemCall (192) */2068 interface CumulusPalletParachainSystemCall extends Enum {2069 readonly isSetValidationData: boolean;2070 readonly asSetValidationData: {2071 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;2072 } & Struct;2073 readonly isSudoSendUpwardMessage: boolean;2074 readonly asSudoSendUpwardMessage: {2075 readonly message: Bytes;2076 } & Struct;2077 readonly isAuthorizeUpgrade: boolean;2078 readonly asAuthorizeUpgrade: {2079 readonly codeHash: H256;2080 readonly checkVersion: bool;2081 } & Struct;2082 readonly isEnactAuthorizedUpgrade: boolean;2083 readonly asEnactAuthorizedUpgrade: {2084 readonly code: Bytes;2085 } & Struct;2086 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';2087 }20882089 /** @name CumulusPrimitivesParachainInherentParachainInherentData (193) */2090 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {2091 readonly validationData: PolkadotPrimitivesV4PersistedValidationData;2092 readonly relayChainState: SpTrieStorageProof;2093 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;2094 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;2095 }20962097 /** @name PolkadotCorePrimitivesInboundDownwardMessage (195) */2098 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {2099 readonly sentAt: u32;2100 readonly msg: Bytes;2101 }21022103 /** @name PolkadotCorePrimitivesInboundHrmpMessage (198) */2104 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {2105 readonly sentAt: u32;2106 readonly data: Bytes;2107 }21082109 /** @name CumulusPalletParachainSystemError (201) */2110 interface CumulusPalletParachainSystemError extends Enum {2111 readonly isOverlappingUpgrades: boolean;2112 readonly isProhibitedByPolkadot: boolean;2113 readonly isTooBig: boolean;2114 readonly isValidationDataNotAvailable: boolean;2115 readonly isHostConfigurationNotAvailable: boolean;2116 readonly isNotScheduled: boolean;2117 readonly isNothingAuthorized: boolean;2118 readonly isUnauthorized: boolean;2119 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';2120 }21212122 /** @name ParachainInfoCall (202) */2123 type ParachainInfoCall = Null;21242125 /** @name PalletCollatorSelectionCall (205) */2126 interface PalletCollatorSelectionCall extends Enum {2127 readonly isAddInvulnerable: boolean;2128 readonly asAddInvulnerable: {2129 readonly new_: AccountId32;2130 } & Struct;2131 readonly isRemoveInvulnerable: boolean;2132 readonly asRemoveInvulnerable: {2133 readonly who: AccountId32;2134 } & Struct;2135 readonly isGetLicense: boolean;2136 readonly isOnboard: boolean;2137 readonly isOffboard: boolean;2138 readonly isReleaseLicense: boolean;2139 readonly isForceReleaseLicense: boolean;2140 readonly asForceReleaseLicense: {2141 readonly who: AccountId32;2142 } & Struct;2143 readonly type: 'AddInvulnerable' | 'RemoveInvulnerable' | 'GetLicense' | 'Onboard' | 'Offboard' | 'ReleaseLicense' | 'ForceReleaseLicense';2144 }21452146 /** @name PalletCollatorSelectionError (206) */2147 interface PalletCollatorSelectionError extends Enum {2148 readonly isTooManyCandidates: boolean;2149 readonly isUnknown: boolean;2150 readonly isPermission: boolean;2151 readonly isAlreadyHoldingLicense: boolean;2152 readonly isNoLicense: boolean;2153 readonly isAlreadyCandidate: boolean;2154 readonly isNotCandidate: boolean;2155 readonly isTooManyInvulnerables: boolean;2156 readonly isTooFewInvulnerables: boolean;2157 readonly isAlreadyInvulnerable: boolean;2158 readonly isNotInvulnerable: boolean;2159 readonly isNoAssociatedValidatorId: boolean;2160 readonly isValidatorNotRegistered: boolean;2161 readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered';2162 }21632164 /** @name OpalRuntimeRuntimeCommonSessionKeys (209) */2165 interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {2166 readonly aura: SpConsensusAuraSr25519AppSr25519Public;2167 }21682169 /** @name SpConsensusAuraSr25519AppSr25519Public (210) */2170 interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}21712172 /** @name SpCoreSr25519Public (211) */2173 interface SpCoreSr25519Public extends U8aFixed {}21742175 /** @name SpCoreCryptoKeyTypeId (214) */2176 interface SpCoreCryptoKeyTypeId extends U8aFixed {}21772178 /** @name PalletSessionCall (215) */2179 interface PalletSessionCall extends Enum {2180 readonly isSetKeys: boolean;2181 readonly asSetKeys: {2182 readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;2183 readonly proof: Bytes;2184 } & Struct;2185 readonly isPurgeKeys: boolean;2186 readonly type: 'SetKeys' | 'PurgeKeys';2187 }21882189 /** @name PalletSessionError (216) */2190 interface PalletSessionError extends Enum {2191 readonly isInvalidProof: boolean;2192 readonly isNoAssociatedValidatorId: boolean;2193 readonly isDuplicatedKey: boolean;2194 readonly isNoKeys: boolean;2195 readonly isNoAccount: boolean;2196 readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';2197 }21982199 /** @name PalletBalancesBalanceLock (221) */2200 interface PalletBalancesBalanceLock extends Struct {2201 readonly id: U8aFixed;2202 readonly amount: u128;2203 readonly reasons: PalletBalancesReasons;2204 }22052206 /** @name PalletBalancesReasons (222) */2207 interface PalletBalancesReasons extends Enum {2208 readonly isFee: boolean;2209 readonly isMisc: boolean;2210 readonly isAll: boolean;2211 readonly type: 'Fee' | 'Misc' | 'All';2212 }22132214 /** @name PalletBalancesReserveData (225) */2215 interface PalletBalancesReserveData extends Struct {2216 readonly id: U8aFixed;2217 readonly amount: u128;2218 }22192220 /** @name PalletBalancesIdAmount (228) */2221 interface PalletBalancesIdAmount extends Struct {2222 readonly id: U8aFixed;2223 readonly amount: u128;2224 }22252226 /** @name PalletBalancesCall (231) */2227 interface PalletBalancesCall extends Enum {2228 readonly isTransferAllowDeath: boolean;2229 readonly asTransferAllowDeath: {2230 readonly dest: MultiAddress;2231 readonly value: Compact<u128>;2232 } & Struct;2233 readonly isSetBalanceDeprecated: boolean;2234 readonly asSetBalanceDeprecated: {2235 readonly who: MultiAddress;2236 readonly newFree: Compact<u128>;2237 readonly oldReserved: Compact<u128>;2238 } & Struct;2239 readonly isForceTransfer: boolean;2240 readonly asForceTransfer: {2241 readonly source: MultiAddress;2242 readonly dest: MultiAddress;2243 readonly value: Compact<u128>;2244 } & Struct;2245 readonly isTransferKeepAlive: boolean;2246 readonly asTransferKeepAlive: {2247 readonly dest: MultiAddress;2248 readonly value: Compact<u128>;2249 } & Struct;2250 readonly isTransferAll: boolean;2251 readonly asTransferAll: {2252 readonly dest: MultiAddress;2253 readonly keepAlive: bool;2254 } & Struct;2255 readonly isForceUnreserve: boolean;2256 readonly asForceUnreserve: {2257 readonly who: MultiAddress;2258 readonly amount: u128;2259 } & Struct;2260 readonly isUpgradeAccounts: boolean;2261 readonly asUpgradeAccounts: {2262 readonly who: Vec<AccountId32>;2263 } & Struct;2264 readonly isTransfer: boolean;2265 readonly asTransfer: {2266 readonly dest: MultiAddress;2267 readonly value: Compact<u128>;2268 } & Struct;2269 readonly isForceSetBalance: boolean;2270 readonly asForceSetBalance: {2271 readonly who: MultiAddress;2272 readonly newFree: Compact<u128>;2273 } & Struct;2274 readonly type: 'TransferAllowDeath' | 'SetBalanceDeprecated' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve' | 'UpgradeAccounts' | 'Transfer' | 'ForceSetBalance';2275 }22762277 /** @name PalletBalancesError (234) */2278 interface PalletBalancesError extends Enum {2279 readonly isVestingBalance: boolean;2280 readonly isLiquidityRestrictions: boolean;2281 readonly isInsufficientBalance: boolean;2282 readonly isExistentialDeposit: boolean;2283 readonly isExpendability: boolean;2284 readonly isExistingVestingSchedule: boolean;2285 readonly isDeadAccount: boolean;2286 readonly isTooManyReserves: boolean;2287 readonly isTooManyHolds: boolean;2288 readonly isTooManyFreezes: boolean;2289 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'Expendability' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves' | 'TooManyHolds' | 'TooManyFreezes';2290 }22912292 /** @name PalletTimestampCall (235) */2293 interface PalletTimestampCall extends Enum {2294 readonly isSet: boolean;2295 readonly asSet: {2296 readonly now: Compact<u64>;2297 } & Struct;2298 readonly type: 'Set';2299 }23002301 /** @name PalletTransactionPaymentReleases (237) */2302 interface PalletTransactionPaymentReleases extends Enum {2303 readonly isV1Ancient: boolean;2304 readonly isV2: boolean;2305 readonly type: 'V1Ancient' | 'V2';2306 }23072308 /** @name PalletTreasuryProposal (238) */2309 interface PalletTreasuryProposal extends Struct {2310 readonly proposer: AccountId32;2311 readonly value: u128;2312 readonly beneficiary: AccountId32;2313 readonly bond: u128;2314 }23152316 /** @name PalletTreasuryCall (240) */2317 interface PalletTreasuryCall extends Enum {2318 readonly isProposeSpend: boolean;2319 readonly asProposeSpend: {2320 readonly value: Compact<u128>;2321 readonly beneficiary: MultiAddress;2322 } & Struct;2323 readonly isRejectProposal: boolean;2324 readonly asRejectProposal: {2325 readonly proposalId: Compact<u32>;2326 } & Struct;2327 readonly isApproveProposal: boolean;2328 readonly asApproveProposal: {2329 readonly proposalId: Compact<u32>;2330 } & Struct;2331 readonly isSpend: boolean;2332 readonly asSpend: {2333 readonly amount: Compact<u128>;2334 readonly beneficiary: MultiAddress;2335 } & Struct;2336 readonly isRemoveApproval: boolean;2337 readonly asRemoveApproval: {2338 readonly proposalId: Compact<u32>;2339 } & Struct;2340 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';2341 }23422343 /** @name FrameSupportPalletId (242) */2344 interface FrameSupportPalletId extends U8aFixed {}23452346 /** @name PalletTreasuryError (243) */2347 interface PalletTreasuryError extends Enum {2348 readonly isInsufficientProposersBalance: boolean;2349 readonly isInvalidIndex: boolean;2350 readonly isTooManyApprovals: boolean;2351 readonly isInsufficientPermission: boolean;2352 readonly isProposalNotApproved: boolean;2353 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';2354 }23552356 /** @name PalletSudoCall (244) */2357 interface PalletSudoCall extends Enum {2358 readonly isSudo: boolean;2359 readonly asSudo: {2360 readonly call: Call;2361 } & Struct;2362 readonly isSudoUncheckedWeight: boolean;2363 readonly asSudoUncheckedWeight: {2364 readonly call: Call;2365 readonly weight: SpWeightsWeightV2Weight;2366 } & Struct;2367 readonly isSetKey: boolean;2368 readonly asSetKey: {2369 readonly new_: MultiAddress;2370 } & Struct;2371 readonly isSudoAs: boolean;2372 readonly asSudoAs: {2373 readonly who: MultiAddress;2374 readonly call: Call;2375 } & Struct;2376 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';2377 }23782379 /** @name OrmlVestingModuleCall (246) */2380 interface OrmlVestingModuleCall extends Enum {2381 readonly isClaim: boolean;2382 readonly isVestedTransfer: boolean;2383 readonly asVestedTransfer: {2384 readonly dest: MultiAddress;2385 readonly schedule: OrmlVestingVestingSchedule;2386 } & Struct;2387 readonly isUpdateVestingSchedules: boolean;2388 readonly asUpdateVestingSchedules: {2389 readonly who: MultiAddress;2390 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;2391 } & Struct;2392 readonly isClaimFor: boolean;2393 readonly asClaimFor: {2394 readonly dest: MultiAddress;2395 } & Struct;2396 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';2397 }23982399 /** @name OrmlXtokensModuleCall (248) */2400 interface OrmlXtokensModuleCall extends Enum {2401 readonly isTransfer: boolean;2402 readonly asTransfer: {2403 readonly currencyId: PalletForeignAssetsAssetIds;2404 readonly amount: u128;2405 readonly dest: XcmVersionedMultiLocation;2406 readonly destWeightLimit: XcmV3WeightLimit;2407 } & Struct;2408 readonly isTransferMultiasset: boolean;2409 readonly asTransferMultiasset: {2410 readonly asset: XcmVersionedMultiAsset;2411 readonly dest: XcmVersionedMultiLocation;2412 readonly destWeightLimit: XcmV3WeightLimit;2413 } & Struct;2414 readonly isTransferWithFee: boolean;2415 readonly asTransferWithFee: {2416 readonly currencyId: PalletForeignAssetsAssetIds;2417 readonly amount: u128;2418 readonly fee: u128;2419 readonly dest: XcmVersionedMultiLocation;2420 readonly destWeightLimit: XcmV3WeightLimit;2421 } & Struct;2422 readonly isTransferMultiassetWithFee: boolean;2423 readonly asTransferMultiassetWithFee: {2424 readonly asset: XcmVersionedMultiAsset;2425 readonly fee: XcmVersionedMultiAsset;2426 readonly dest: XcmVersionedMultiLocation;2427 readonly destWeightLimit: XcmV3WeightLimit;2428 } & Struct;2429 readonly isTransferMulticurrencies: boolean;2430 readonly asTransferMulticurrencies: {2431 readonly currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>;2432 readonly feeItem: u32;2433 readonly dest: XcmVersionedMultiLocation;2434 readonly destWeightLimit: XcmV3WeightLimit;2435 } & Struct;2436 readonly isTransferMultiassets: boolean;2437 readonly asTransferMultiassets: {2438 readonly assets: XcmVersionedMultiAssets;2439 readonly feeItem: u32;2440 readonly dest: XcmVersionedMultiLocation;2441 readonly destWeightLimit: XcmV3WeightLimit;2442 } & Struct;2443 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';2444 }24452446 /** @name XcmVersionedMultiAsset (249) */2447 interface XcmVersionedMultiAsset extends Enum {2448 readonly isV2: boolean;2449 readonly asV2: XcmV2MultiAsset;2450 readonly isV3: boolean;2451 readonly asV3: XcmV3MultiAsset;2452 readonly type: 'V2' | 'V3';2453 }24542455 /** @name OrmlTokensModuleCall (252) */2456 interface OrmlTokensModuleCall extends Enum {2457 readonly isTransfer: boolean;2458 readonly asTransfer: {2459 readonly dest: MultiAddress;2460 readonly currencyId: PalletForeignAssetsAssetIds;2461 readonly amount: Compact<u128>;2462 } & Struct;2463 readonly isTransferAll: boolean;2464 readonly asTransferAll: {2465 readonly dest: MultiAddress;2466 readonly currencyId: PalletForeignAssetsAssetIds;2467 readonly keepAlive: bool;2468 } & Struct;2469 readonly isTransferKeepAlive: boolean;2470 readonly asTransferKeepAlive: {2471 readonly dest: MultiAddress;2472 readonly currencyId: PalletForeignAssetsAssetIds;2473 readonly amount: Compact<u128>;2474 } & Struct;2475 readonly isForceTransfer: boolean;2476 readonly asForceTransfer: {2477 readonly source: MultiAddress;2478 readonly dest: MultiAddress;2479 readonly currencyId: PalletForeignAssetsAssetIds;2480 readonly amount: Compact<u128>;2481 } & Struct;2482 readonly isSetBalance: boolean;2483 readonly asSetBalance: {2484 readonly who: MultiAddress;2485 readonly currencyId: PalletForeignAssetsAssetIds;2486 readonly newFree: Compact<u128>;2487 readonly newReserved: Compact<u128>;2488 } & Struct;2489 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2490 }24912492 /** @name PalletIdentityCall (253) */2493 interface PalletIdentityCall extends Enum {2494 readonly isAddRegistrar: boolean;2495 readonly asAddRegistrar: {2496 readonly account: MultiAddress;2497 } & Struct;2498 readonly isSetIdentity: boolean;2499 readonly asSetIdentity: {2500 readonly info: PalletIdentityIdentityInfo;2501 } & Struct;2502 readonly isSetSubs: boolean;2503 readonly asSetSubs: {2504 readonly subs: Vec<ITuple<[AccountId32, Data]>>;2505 } & Struct;2506 readonly isClearIdentity: boolean;2507 readonly isRequestJudgement: boolean;2508 readonly asRequestJudgement: {2509 readonly regIndex: Compact<u32>;2510 readonly maxFee: Compact<u128>;2511 } & Struct;2512 readonly isCancelRequest: boolean;2513 readonly asCancelRequest: {2514 readonly regIndex: u32;2515 } & Struct;2516 readonly isSetFee: boolean;2517 readonly asSetFee: {2518 readonly index: Compact<u32>;2519 readonly fee: Compact<u128>;2520 } & Struct;2521 readonly isSetAccountId: boolean;2522 readonly asSetAccountId: {2523 readonly index: Compact<u32>;2524 readonly new_: MultiAddress;2525 } & Struct;2526 readonly isSetFields: boolean;2527 readonly asSetFields: {2528 readonly index: Compact<u32>;2529 readonly fields: PalletIdentityBitFlags;2530 } & Struct;2531 readonly isProvideJudgement: boolean;2532 readonly asProvideJudgement: {2533 readonly regIndex: Compact<u32>;2534 readonly target: MultiAddress;2535 readonly judgement: PalletIdentityJudgement;2536 readonly identity: H256;2537 } & Struct;2538 readonly isKillIdentity: boolean;2539 readonly asKillIdentity: {2540 readonly target: MultiAddress;2541 } & Struct;2542 readonly isAddSub: boolean;2543 readonly asAddSub: {2544 readonly sub: MultiAddress;2545 readonly data: Data;2546 } & Struct;2547 readonly isRenameSub: boolean;2548 readonly asRenameSub: {2549 readonly sub: MultiAddress;2550 readonly data: Data;2551 } & Struct;2552 readonly isRemoveSub: boolean;2553 readonly asRemoveSub: {2554 readonly sub: MultiAddress;2555 } & Struct;2556 readonly isQuitSub: boolean;2557 readonly isForceInsertIdentities: boolean;2558 readonly asForceInsertIdentities: {2559 readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;2560 } & Struct;2561 readonly isForceRemoveIdentities: boolean;2562 readonly asForceRemoveIdentities: {2563 readonly identities: Vec<AccountId32>;2564 } & Struct;2565 readonly isForceSetSubs: boolean;2566 readonly asForceSetSubs: {2567 readonly subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>;2568 } & Struct;2569 readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities' | 'ForceSetSubs';2570 }25712572 /** @name PalletIdentityIdentityInfo (254) */2573 interface PalletIdentityIdentityInfo extends Struct {2574 readonly additional: Vec<ITuple<[Data, Data]>>;2575 readonly display: Data;2576 readonly legal: Data;2577 readonly web: Data;2578 readonly riot: Data;2579 readonly email: Data;2580 readonly pgpFingerprint: Option<U8aFixed>;2581 readonly image: Data;2582 readonly twitter: Data;2583 }25842585 /** @name PalletIdentityBitFlags (290) */2586 interface PalletIdentityBitFlags extends Set {2587 readonly isDisplay: boolean;2588 readonly isLegal: boolean;2589 readonly isWeb: boolean;2590 readonly isRiot: boolean;2591 readonly isEmail: boolean;2592 readonly isPgpFingerprint: boolean;2593 readonly isImage: boolean;2594 readonly isTwitter: boolean;2595 }25962597 /** @name PalletIdentityIdentityField (291) */2598 interface PalletIdentityIdentityField extends Enum {2599 readonly isDisplay: boolean;2600 readonly isLegal: boolean;2601 readonly isWeb: boolean;2602 readonly isRiot: boolean;2603 readonly isEmail: boolean;2604 readonly isPgpFingerprint: boolean;2605 readonly isImage: boolean;2606 readonly isTwitter: boolean;2607 readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';2608 }26092610 /** @name PalletIdentityJudgement (292) */2611 interface PalletIdentityJudgement extends Enum {2612 readonly isUnknown: boolean;2613 readonly isFeePaid: boolean;2614 readonly asFeePaid: u128;2615 readonly isReasonable: boolean;2616 readonly isKnownGood: boolean;2617 readonly isOutOfDate: boolean;2618 readonly isLowQuality: boolean;2619 readonly isErroneous: boolean;2620 readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';2621 }26222623 /** @name PalletIdentityRegistration (295) */2624 interface PalletIdentityRegistration extends Struct {2625 readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;2626 readonly deposit: u128;2627 readonly info: PalletIdentityIdentityInfo;2628 }26292630 /** @name PalletPreimageCall (303) */2631 interface PalletPreimageCall extends Enum {2632 readonly isNotePreimage: boolean;2633 readonly asNotePreimage: {2634 readonly bytes: Bytes;2635 } & Struct;2636 readonly isUnnotePreimage: boolean;2637 readonly asUnnotePreimage: {2638 readonly hash_: H256;2639 } & Struct;2640 readonly isRequestPreimage: boolean;2641 readonly asRequestPreimage: {2642 readonly hash_: H256;2643 } & Struct;2644 readonly isUnrequestPreimage: boolean;2645 readonly asUnrequestPreimage: {2646 readonly hash_: H256;2647 } & Struct;2648 readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';2649 }26502651 /** @name CumulusPalletXcmpQueueCall (304) */2652 interface CumulusPalletXcmpQueueCall extends Enum {2653 readonly isServiceOverweight: boolean;2654 readonly asServiceOverweight: {2655 readonly index: u64;2656 readonly weightLimit: SpWeightsWeightV2Weight;2657 } & Struct;2658 readonly isSuspendXcmExecution: boolean;2659 readonly isResumeXcmExecution: boolean;2660 readonly isUpdateSuspendThreshold: boolean;2661 readonly asUpdateSuspendThreshold: {2662 readonly new_: u32;2663 } & Struct;2664 readonly isUpdateDropThreshold: boolean;2665 readonly asUpdateDropThreshold: {2666 readonly new_: u32;2667 } & Struct;2668 readonly isUpdateResumeThreshold: boolean;2669 readonly asUpdateResumeThreshold: {2670 readonly new_: u32;2671 } & Struct;2672 readonly isUpdateThresholdWeight: boolean;2673 readonly asUpdateThresholdWeight: {2674 readonly new_: SpWeightsWeightV2Weight;2675 } & Struct;2676 readonly isUpdateWeightRestrictDecay: boolean;2677 readonly asUpdateWeightRestrictDecay: {2678 readonly new_: SpWeightsWeightV2Weight;2679 } & Struct;2680 readonly isUpdateXcmpMaxIndividualWeight: boolean;2681 readonly asUpdateXcmpMaxIndividualWeight: {2682 readonly new_: SpWeightsWeightV2Weight;2683 } & Struct;2684 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2685 }26862687 /** @name PalletXcmCall (305) */2688 interface PalletXcmCall extends Enum {2689 readonly isSend: boolean;2690 readonly asSend: {2691 readonly dest: XcmVersionedMultiLocation;2692 readonly message: XcmVersionedXcm;2693 } & Struct;2694 readonly isTeleportAssets: boolean;2695 readonly asTeleportAssets: {2696 readonly dest: XcmVersionedMultiLocation;2697 readonly beneficiary: XcmVersionedMultiLocation;2698 readonly assets: XcmVersionedMultiAssets;2699 readonly feeAssetItem: u32;2700 } & Struct;2701 readonly isReserveTransferAssets: boolean;2702 readonly asReserveTransferAssets: {2703 readonly dest: XcmVersionedMultiLocation;2704 readonly beneficiary: XcmVersionedMultiLocation;2705 readonly assets: XcmVersionedMultiAssets;2706 readonly feeAssetItem: u32;2707 } & Struct;2708 readonly isExecute: boolean;2709 readonly asExecute: {2710 readonly message: XcmVersionedXcm;2711 readonly maxWeight: SpWeightsWeightV2Weight;2712 } & Struct;2713 readonly isForceXcmVersion: boolean;2714 readonly asForceXcmVersion: {2715 readonly location: XcmV3MultiLocation;2716 readonly xcmVersion: u32;2717 } & Struct;2718 readonly isForceDefaultXcmVersion: boolean;2719 readonly asForceDefaultXcmVersion: {2720 readonly maybeXcmVersion: Option<u32>;2721 } & Struct;2722 readonly isForceSubscribeVersionNotify: boolean;2723 readonly asForceSubscribeVersionNotify: {2724 readonly location: XcmVersionedMultiLocation;2725 } & Struct;2726 readonly isForceUnsubscribeVersionNotify: boolean;2727 readonly asForceUnsubscribeVersionNotify: {2728 readonly location: XcmVersionedMultiLocation;2729 } & Struct;2730 readonly isLimitedReserveTransferAssets: boolean;2731 readonly asLimitedReserveTransferAssets: {2732 readonly dest: XcmVersionedMultiLocation;2733 readonly beneficiary: XcmVersionedMultiLocation;2734 readonly assets: XcmVersionedMultiAssets;2735 readonly feeAssetItem: u32;2736 readonly weightLimit: XcmV3WeightLimit;2737 } & Struct;2738 readonly isLimitedTeleportAssets: boolean;2739 readonly asLimitedTeleportAssets: {2740 readonly dest: XcmVersionedMultiLocation;2741 readonly beneficiary: XcmVersionedMultiLocation;2742 readonly assets: XcmVersionedMultiAssets;2743 readonly feeAssetItem: u32;2744 readonly weightLimit: XcmV3WeightLimit;2745 } & Struct;2746 readonly isForceSuspension: boolean;2747 readonly asForceSuspension: {2748 readonly suspended: bool;2749 } & Struct;2750 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension';2751 }27522753 /** @name XcmVersionedXcm (306) */2754 interface XcmVersionedXcm extends Enum {2755 readonly isV2: boolean;2756 readonly asV2: XcmV2Xcm;2757 readonly isV3: boolean;2758 readonly asV3: XcmV3Xcm;2759 readonly type: 'V2' | 'V3';2760 }27612762 /** @name XcmV2Xcm (307) */2763 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}27642765 /** @name XcmV2Instruction (309) */2766 interface XcmV2Instruction extends Enum {2767 readonly isWithdrawAsset: boolean;2768 readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;2769 readonly isReserveAssetDeposited: boolean;2770 readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets;2771 readonly isReceiveTeleportedAsset: boolean;2772 readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets;2773 readonly isQueryResponse: boolean;2774 readonly asQueryResponse: {2775 readonly queryId: Compact<u64>;2776 readonly response: XcmV2Response;2777 readonly maxWeight: Compact<u64>;2778 } & Struct;2779 readonly isTransferAsset: boolean;2780 readonly asTransferAsset: {2781 readonly assets: XcmV2MultiassetMultiAssets;2782 readonly beneficiary: XcmV2MultiLocation;2783 } & Struct;2784 readonly isTransferReserveAsset: boolean;2785 readonly asTransferReserveAsset: {2786 readonly assets: XcmV2MultiassetMultiAssets;2787 readonly dest: XcmV2MultiLocation;2788 readonly xcm: XcmV2Xcm;2789 } & Struct;2790 readonly isTransact: boolean;2791 readonly asTransact: {2792 readonly originType: XcmV2OriginKind;2793 readonly requireWeightAtMost: Compact<u64>;2794 readonly call: XcmDoubleEncoded;2795 } & Struct;2796 readonly isHrmpNewChannelOpenRequest: boolean;2797 readonly asHrmpNewChannelOpenRequest: {2798 readonly sender: Compact<u32>;2799 readonly maxMessageSize: Compact<u32>;2800 readonly maxCapacity: Compact<u32>;2801 } & Struct;2802 readonly isHrmpChannelAccepted: boolean;2803 readonly asHrmpChannelAccepted: {2804 readonly recipient: Compact<u32>;2805 } & Struct;2806 readonly isHrmpChannelClosing: boolean;2807 readonly asHrmpChannelClosing: {2808 readonly initiator: Compact<u32>;2809 readonly sender: Compact<u32>;2810 readonly recipient: Compact<u32>;2811 } & Struct;2812 readonly isClearOrigin: boolean;2813 readonly isDescendOrigin: boolean;2814 readonly asDescendOrigin: XcmV2MultilocationJunctions;2815 readonly isReportError: boolean;2816 readonly asReportError: {2817 readonly queryId: Compact<u64>;2818 readonly dest: XcmV2MultiLocation;2819 readonly maxResponseWeight: Compact<u64>;2820 } & Struct;2821 readonly isDepositAsset: boolean;2822 readonly asDepositAsset: {2823 readonly assets: XcmV2MultiassetMultiAssetFilter;2824 readonly maxAssets: Compact<u32>;2825 readonly beneficiary: XcmV2MultiLocation;2826 } & Struct;2827 readonly isDepositReserveAsset: boolean;2828 readonly asDepositReserveAsset: {2829 readonly assets: XcmV2MultiassetMultiAssetFilter;2830 readonly maxAssets: Compact<u32>;2831 readonly dest: XcmV2MultiLocation;2832 readonly xcm: XcmV2Xcm;2833 } & Struct;2834 readonly isExchangeAsset: boolean;2835 readonly asExchangeAsset: {2836 readonly give: XcmV2MultiassetMultiAssetFilter;2837 readonly receive: XcmV2MultiassetMultiAssets;2838 } & Struct;2839 readonly isInitiateReserveWithdraw: boolean;2840 readonly asInitiateReserveWithdraw: {2841 readonly assets: XcmV2MultiassetMultiAssetFilter;2842 readonly reserve: XcmV2MultiLocation;2843 readonly xcm: XcmV2Xcm;2844 } & Struct;2845 readonly isInitiateTeleport: boolean;2846 readonly asInitiateTeleport: {2847 readonly assets: XcmV2MultiassetMultiAssetFilter;2848 readonly dest: XcmV2MultiLocation;2849 readonly xcm: XcmV2Xcm;2850 } & Struct;2851 readonly isQueryHolding: boolean;2852 readonly asQueryHolding: {2853 readonly queryId: Compact<u64>;2854 readonly dest: XcmV2MultiLocation;2855 readonly assets: XcmV2MultiassetMultiAssetFilter;2856 readonly maxResponseWeight: Compact<u64>;2857 } & Struct;2858 readonly isBuyExecution: boolean;2859 readonly asBuyExecution: {2860 readonly fees: XcmV2MultiAsset;2861 readonly weightLimit: XcmV2WeightLimit;2862 } & Struct;2863 readonly isRefundSurplus: boolean;2864 readonly isSetErrorHandler: boolean;2865 readonly asSetErrorHandler: XcmV2Xcm;2866 readonly isSetAppendix: boolean;2867 readonly asSetAppendix: XcmV2Xcm;2868 readonly isClearError: boolean;2869 readonly isClaimAsset: boolean;2870 readonly asClaimAsset: {2871 readonly assets: XcmV2MultiassetMultiAssets;2872 readonly ticket: XcmV2MultiLocation;2873 } & Struct;2874 readonly isTrap: boolean;2875 readonly asTrap: Compact<u64>;2876 readonly isSubscribeVersion: boolean;2877 readonly asSubscribeVersion: {2878 readonly queryId: Compact<u64>;2879 readonly maxResponseWeight: Compact<u64>;2880 } & Struct;2881 readonly isUnsubscribeVersion: boolean;2882 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';2883 }28842885 /** @name XcmV2Response (310) */2886 interface XcmV2Response extends Enum {2887 readonly isNull: boolean;2888 readonly isAssets: boolean;2889 readonly asAssets: XcmV2MultiassetMultiAssets;2890 readonly isExecutionResult: boolean;2891 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;2892 readonly isVersion: boolean;2893 readonly asVersion: u32;2894 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';2895 }28962897 /** @name XcmV2TraitsError (313) */2898 interface XcmV2TraitsError extends Enum {2899 readonly isOverflow: boolean;2900 readonly isUnimplemented: boolean;2901 readonly isUntrustedReserveLocation: boolean;2902 readonly isUntrustedTeleportLocation: boolean;2903 readonly isMultiLocationFull: boolean;2904 readonly isMultiLocationNotInvertible: boolean;2905 readonly isBadOrigin: boolean;2906 readonly isInvalidLocation: boolean;2907 readonly isAssetNotFound: boolean;2908 readonly isFailedToTransactAsset: boolean;2909 readonly isNotWithdrawable: boolean;2910 readonly isLocationCannotHold: boolean;2911 readonly isExceedsMaxMessageSize: boolean;2912 readonly isDestinationUnsupported: boolean;2913 readonly isTransport: boolean;2914 readonly isUnroutable: boolean;2915 readonly isUnknownClaim: boolean;2916 readonly isFailedToDecode: boolean;2917 readonly isMaxWeightInvalid: boolean;2918 readonly isNotHoldingFees: boolean;2919 readonly isTooExpensive: boolean;2920 readonly isTrap: boolean;2921 readonly asTrap: u64;2922 readonly isUnhandledXcmVersion: boolean;2923 readonly isWeightLimitReached: boolean;2924 readonly asWeightLimitReached: u64;2925 readonly isBarrier: boolean;2926 readonly isWeightNotComputable: boolean;2927 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';2928 }29292930 /** @name XcmV2MultiassetMultiAssetFilter (314) */2931 interface XcmV2MultiassetMultiAssetFilter extends Enum {2932 readonly isDefinite: boolean;2933 readonly asDefinite: XcmV2MultiassetMultiAssets;2934 readonly isWild: boolean;2935 readonly asWild: XcmV2MultiassetWildMultiAsset;2936 readonly type: 'Definite' | 'Wild';2937 }29382939 /** @name XcmV2MultiassetWildMultiAsset (315) */2940 interface XcmV2MultiassetWildMultiAsset extends Enum {2941 readonly isAll: boolean;2942 readonly isAllOf: boolean;2943 readonly asAllOf: {2944 readonly id: XcmV2MultiassetAssetId;2945 readonly fun: XcmV2MultiassetWildFungibility;2946 } & Struct;2947 readonly type: 'All' | 'AllOf';2948 }29492950 /** @name XcmV2MultiassetWildFungibility (316) */2951 interface XcmV2MultiassetWildFungibility extends Enum {2952 readonly isFungible: boolean;2953 readonly isNonFungible: boolean;2954 readonly type: 'Fungible' | 'NonFungible';2955 }29562957 /** @name XcmV2WeightLimit (317) */2958 interface XcmV2WeightLimit extends Enum {2959 readonly isUnlimited: boolean;2960 readonly isLimited: boolean;2961 readonly asLimited: Compact<u64>;2962 readonly type: 'Unlimited' | 'Limited';2963 }29642965 /** @name CumulusPalletXcmCall (326) */2966 type CumulusPalletXcmCall = Null;29672968 /** @name CumulusPalletDmpQueueCall (327) */2969 interface CumulusPalletDmpQueueCall extends Enum {2970 readonly isServiceOverweight: boolean;2971 readonly asServiceOverweight: {2972 readonly index: u64;2973 readonly weightLimit: SpWeightsWeightV2Weight;2974 } & Struct;2975 readonly type: 'ServiceOverweight';2976 }29772978 /** @name PalletInflationCall (328) */2979 interface PalletInflationCall extends Enum {2980 readonly isStartInflation: boolean;2981 readonly asStartInflation: {2982 readonly inflationStartRelayBlock: u32;2983 } & Struct;2984 readonly type: 'StartInflation';2985 }29862987 /** @name PalletUniqueCall (329) */2988 interface PalletUniqueCall extends Enum {2989 readonly isCreateCollection: boolean;2990 readonly asCreateCollection: {2991 readonly collectionName: Vec<u16>;2992 readonly collectionDescription: Vec<u16>;2993 readonly tokenPrefix: Bytes;2994 readonly mode: UpDataStructsCollectionMode;2995 } & Struct;2996 readonly isCreateCollectionEx: boolean;2997 readonly asCreateCollectionEx: {2998 readonly data: UpDataStructsCreateCollectionData;2999 } & Struct;3000 readonly isDestroyCollection: boolean;3001 readonly asDestroyCollection: {3002 readonly collectionId: u32;3003 } & Struct;3004 readonly isAddToAllowList: boolean;3005 readonly asAddToAllowList: {3006 readonly collectionId: u32;3007 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;3008 } & Struct;3009 readonly isRemoveFromAllowList: boolean;3010 readonly asRemoveFromAllowList: {3011 readonly collectionId: u32;3012 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;3013 } & Struct;3014 readonly isChangeCollectionOwner: boolean;3015 readonly asChangeCollectionOwner: {3016 readonly collectionId: u32;3017 readonly newOwner: AccountId32;3018 } & Struct;3019 readonly isAddCollectionAdmin: boolean;3020 readonly asAddCollectionAdmin: {3021 readonly collectionId: u32;3022 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;3023 } & Struct;3024 readonly isRemoveCollectionAdmin: boolean;3025 readonly asRemoveCollectionAdmin: {3026 readonly collectionId: u32;3027 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;3028 } & Struct;3029 readonly isSetCollectionSponsor: boolean;3030 readonly asSetCollectionSponsor: {3031 readonly collectionId: u32;3032 readonly newSponsor: AccountId32;3033 } & Struct;3034 readonly isConfirmSponsorship: boolean;3035 readonly asConfirmSponsorship: {3036 readonly collectionId: u32;3037 } & Struct;3038 readonly isRemoveCollectionSponsor: boolean;3039 readonly asRemoveCollectionSponsor: {3040 readonly collectionId: u32;3041 } & Struct;3042 readonly isCreateItem: boolean;3043 readonly asCreateItem: {3044 readonly collectionId: u32;3045 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3046 readonly data: UpDataStructsCreateItemData;3047 } & Struct;3048 readonly isCreateMultipleItems: boolean;3049 readonly asCreateMultipleItems: {3050 readonly collectionId: u32;3051 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3052 readonly itemsData: Vec<UpDataStructsCreateItemData>;3053 } & Struct;3054 readonly isSetCollectionProperties: boolean;3055 readonly asSetCollectionProperties: {3056 readonly collectionId: u32;3057 readonly properties: Vec<UpDataStructsProperty>;3058 } & Struct;3059 readonly isDeleteCollectionProperties: boolean;3060 readonly asDeleteCollectionProperties: {3061 readonly collectionId: u32;3062 readonly propertyKeys: Vec<Bytes>;3063 } & Struct;3064 readonly isSetTokenProperties: boolean;3065 readonly asSetTokenProperties: {3066 readonly collectionId: u32;3067 readonly tokenId: u32;3068 readonly properties: Vec<UpDataStructsProperty>;3069 } & Struct;3070 readonly isDeleteTokenProperties: boolean;3071 readonly asDeleteTokenProperties: {3072 readonly collectionId: u32;3073 readonly tokenId: u32;3074 readonly propertyKeys: Vec<Bytes>;3075 } & Struct;3076 readonly isSetTokenPropertyPermissions: boolean;3077 readonly asSetTokenPropertyPermissions: {3078 readonly collectionId: u32;3079 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3080 } & Struct;3081 readonly isCreateMultipleItemsEx: boolean;3082 readonly asCreateMultipleItemsEx: {3083 readonly collectionId: u32;3084 readonly data: UpDataStructsCreateItemExData;3085 } & Struct;3086 readonly isSetTransfersEnabledFlag: boolean;3087 readonly asSetTransfersEnabledFlag: {3088 readonly collectionId: u32;3089 readonly value: bool;3090 } & Struct;3091 readonly isBurnItem: boolean;3092 readonly asBurnItem: {3093 readonly collectionId: u32;3094 readonly itemId: u32;3095 readonly value: u128;3096 } & Struct;3097 readonly isBurnFrom: boolean;3098 readonly asBurnFrom: {3099 readonly collectionId: u32;3100 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3101 readonly itemId: u32;3102 readonly value: u128;3103 } & Struct;3104 readonly isTransfer: boolean;3105 readonly asTransfer: {3106 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;3107 readonly collectionId: u32;3108 readonly itemId: u32;3109 readonly value: u128;3110 } & Struct;3111 readonly isApprove: boolean;3112 readonly asApprove: {3113 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;3114 readonly collectionId: u32;3115 readonly itemId: u32;3116 readonly amount: u128;3117 } & Struct;3118 readonly isApproveFrom: boolean;3119 readonly asApproveFrom: {3120 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3121 readonly to: PalletEvmAccountBasicCrossAccountIdRepr;3122 readonly collectionId: u32;3123 readonly itemId: u32;3124 readonly amount: u128;3125 } & Struct;3126 readonly isTransferFrom: boolean;3127 readonly asTransferFrom: {3128 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3129 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;3130 readonly collectionId: u32;3131 readonly itemId: u32;3132 readonly value: u128;3133 } & Struct;3134 readonly isSetCollectionLimits: boolean;3135 readonly asSetCollectionLimits: {3136 readonly collectionId: u32;3137 readonly newLimit: UpDataStructsCollectionLimits;3138 } & Struct;3139 readonly isSetCollectionPermissions: boolean;3140 readonly asSetCollectionPermissions: {3141 readonly collectionId: u32;3142 readonly newPermission: UpDataStructsCollectionPermissions;3143 } & Struct;3144 readonly isRepartition: boolean;3145 readonly asRepartition: {3146 readonly collectionId: u32;3147 readonly tokenId: u32;3148 readonly amount: u128;3149 } & Struct;3150 readonly isSetAllowanceForAll: boolean;3151 readonly asSetAllowanceForAll: {3152 readonly collectionId: u32;3153 readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;3154 readonly approve: bool;3155 } & Struct;3156 readonly isForceRepairCollection: boolean;3157 readonly asForceRepairCollection: {3158 readonly collectionId: u32;3159 } & Struct;3160 readonly isForceRepairItem: boolean;3161 readonly asForceRepairItem: {3162 readonly collectionId: u32;3163 readonly itemId: u32;3164 } & Struct;3165 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'ApproveFrom' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';3166 }31673168 /** @name UpDataStructsCollectionMode (334) */3169 interface UpDataStructsCollectionMode extends Enum {3170 readonly isNft: boolean;3171 readonly isFungible: boolean;3172 readonly asFungible: u8;3173 readonly isReFungible: boolean;3174 readonly type: 'Nft' | 'Fungible' | 'ReFungible';3175 }31763177 /** @name UpDataStructsCreateCollectionData (335) */3178 interface UpDataStructsCreateCollectionData extends Struct {3179 readonly mode: UpDataStructsCollectionMode;3180 readonly access: Option<UpDataStructsAccessMode>;3181 readonly name: Vec<u16>;3182 readonly description: Vec<u16>;3183 readonly tokenPrefix: Bytes;3184 readonly pendingSponsor: Option<AccountId32>;3185 readonly limits: Option<UpDataStructsCollectionLimits>;3186 readonly permissions: Option<UpDataStructsCollectionPermissions>;3187 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3188 readonly properties: Vec<UpDataStructsProperty>;3189 }31903191 /** @name UpDataStructsAccessMode (337) */3192 interface UpDataStructsAccessMode extends Enum {3193 readonly isNormal: boolean;3194 readonly isAllowList: boolean;3195 readonly type: 'Normal' | 'AllowList';3196 }31973198 /** @name UpDataStructsCollectionLimits (339) */3199 interface UpDataStructsCollectionLimits extends Struct {3200 readonly accountTokenOwnershipLimit: Option<u32>;3201 readonly sponsoredDataSize: Option<u32>;3202 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;3203 readonly tokenLimit: Option<u32>;3204 readonly sponsorTransferTimeout: Option<u32>;3205 readonly sponsorApproveTimeout: Option<u32>;3206 readonly ownerCanTransfer: Option<bool>;3207 readonly ownerCanDestroy: Option<bool>;3208 readonly transfersEnabled: Option<bool>;3209 }32103211 /** @name UpDataStructsSponsoringRateLimit (341) */3212 interface UpDataStructsSponsoringRateLimit extends Enum {3213 readonly isSponsoringDisabled: boolean;3214 readonly isBlocks: boolean;3215 readonly asBlocks: u32;3216 readonly type: 'SponsoringDisabled' | 'Blocks';3217 }32183219 /** @name UpDataStructsCollectionPermissions (344) */3220 interface UpDataStructsCollectionPermissions extends Struct {3221 readonly access: Option<UpDataStructsAccessMode>;3222 readonly mintMode: Option<bool>;3223 readonly nesting: Option<UpDataStructsNestingPermissions>;3224 }32253226 /** @name UpDataStructsNestingPermissions (346) */3227 interface UpDataStructsNestingPermissions extends Struct {3228 readonly tokenOwner: bool;3229 readonly collectionAdmin: bool;3230 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;3231 }32323233 /** @name UpDataStructsOwnerRestrictedSet (348) */3234 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}32353236 /** @name UpDataStructsPropertyKeyPermission (353) */3237 interface UpDataStructsPropertyKeyPermission extends Struct {3238 readonly key: Bytes;3239 readonly permission: UpDataStructsPropertyPermission;3240 }32413242 /** @name UpDataStructsPropertyPermission (354) */3243 interface UpDataStructsPropertyPermission extends Struct {3244 readonly mutable: bool;3245 readonly collectionAdmin: bool;3246 readonly tokenOwner: bool;3247 }32483249 /** @name UpDataStructsProperty (357) */3250 interface UpDataStructsProperty extends Struct {3251 readonly key: Bytes;3252 readonly value: Bytes;3253 }32543255 /** @name UpDataStructsCreateItemData (360) */3256 interface UpDataStructsCreateItemData extends Enum {3257 readonly isNft: boolean;3258 readonly asNft: UpDataStructsCreateNftData;3259 readonly isFungible: boolean;3260 readonly asFungible: UpDataStructsCreateFungibleData;3261 readonly isReFungible: boolean;3262 readonly asReFungible: UpDataStructsCreateReFungibleData;3263 readonly type: 'Nft' | 'Fungible' | 'ReFungible';3264 }32653266 /** @name UpDataStructsCreateNftData (361) */3267 interface UpDataStructsCreateNftData extends Struct {3268 readonly properties: Vec<UpDataStructsProperty>;3269 }32703271 /** @name UpDataStructsCreateFungibleData (362) */3272 interface UpDataStructsCreateFungibleData extends Struct {3273 readonly value: u128;3274 }32753276 /** @name UpDataStructsCreateReFungibleData (363) */3277 interface UpDataStructsCreateReFungibleData extends Struct {3278 readonly pieces: u128;3279 readonly properties: Vec<UpDataStructsProperty>;3280 }32813282 /** @name UpDataStructsCreateItemExData (366) */3283 interface UpDataStructsCreateItemExData extends Enum {3284 readonly isNft: boolean;3285 readonly asNft: Vec<UpDataStructsCreateNftExData>;3286 readonly isFungible: boolean;3287 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3288 readonly isRefungibleMultipleItems: boolean;3289 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExSingleOwner>;3290 readonly isRefungibleMultipleOwners: boolean;3291 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;3292 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';3293 }32943295 /** @name UpDataStructsCreateNftExData (368) */3296 interface UpDataStructsCreateNftExData extends Struct {3297 readonly properties: Vec<UpDataStructsProperty>;3298 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3299 }33003301 /** @name UpDataStructsCreateRefungibleExSingleOwner (375) */3302 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {3303 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;3304 readonly pieces: u128;3305 readonly properties: Vec<UpDataStructsProperty>;3306 }33073308 /** @name UpDataStructsCreateRefungibleExMultipleOwners (377) */3309 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {3310 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3311 readonly properties: Vec<UpDataStructsProperty>;3312 }33133314 /** @name PalletConfigurationCall (378) */3315 interface PalletConfigurationCall extends Enum {3316 readonly isSetWeightToFeeCoefficientOverride: boolean;3317 readonly asSetWeightToFeeCoefficientOverride: {3318 readonly coeff: Option<u64>;3319 } & Struct;3320 readonly isSetMinGasPriceOverride: boolean;3321 readonly asSetMinGasPriceOverride: {3322 readonly coeff: Option<u64>;3323 } & Struct;3324 readonly isSetAppPromotionConfigurationOverride: boolean;3325 readonly asSetAppPromotionConfigurationOverride: {3326 readonly configuration: PalletConfigurationAppPromotionConfiguration;3327 } & Struct;3328 readonly isSetCollatorSelectionDesiredCollators: boolean;3329 readonly asSetCollatorSelectionDesiredCollators: {3330 readonly max: Option<u32>;3331 } & Struct;3332 readonly isSetCollatorSelectionLicenseBond: boolean;3333 readonly asSetCollatorSelectionLicenseBond: {3334 readonly amount: Option<u128>;3335 } & Struct;3336 readonly isSetCollatorSelectionKickThreshold: boolean;3337 readonly asSetCollatorSelectionKickThreshold: {3338 readonly threshold: Option<u32>;3339 } & Struct;3340 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';3341 }33423343 /** @name PalletConfigurationAppPromotionConfiguration (380) */3344 interface PalletConfigurationAppPromotionConfiguration extends Struct {3345 readonly recalculationInterval: Option<u32>;3346 readonly pendingInterval: Option<u32>;3347 readonly intervalIncome: Option<Perbill>;3348 readonly maxStakersPerCalculation: Option<u8>;3349 }33503351 /** @name PalletStructureCall (384) */3352 type PalletStructureCall = Null;33533354 /** @name PalletAppPromotionCall (385) */3355 interface PalletAppPromotionCall extends Enum {3356 readonly isSetAdminAddress: boolean;3357 readonly asSetAdminAddress: {3358 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;3359 } & Struct;3360 readonly isStake: boolean;3361 readonly asStake: {3362 readonly amount: u128;3363 } & Struct;3364 readonly isUnstakeAll: boolean;3365 readonly isSponsorCollection: boolean;3366 readonly asSponsorCollection: {3367 readonly collectionId: u32;3368 } & Struct;3369 readonly isStopSponsoringCollection: boolean;3370 readonly asStopSponsoringCollection: {3371 readonly collectionId: u32;3372 } & Struct;3373 readonly isSponsorContract: boolean;3374 readonly asSponsorContract: {3375 readonly contractId: H160;3376 } & Struct;3377 readonly isStopSponsoringContract: boolean;3378 readonly asStopSponsoringContract: {3379 readonly contractId: H160;3380 } & Struct;3381 readonly isPayoutStakers: boolean;3382 readonly asPayoutStakers: {3383 readonly stakersNumber: Option<u8>;3384 } & Struct;3385 readonly isUnstakePartial: boolean;3386 readonly asUnstakePartial: {3387 readonly amount: u128;3388 } & Struct;3389 readonly isForceUnstake: boolean;3390 readonly asForceUnstake: {3391 readonly pendingBlocks: Vec<u32>;3392 } & Struct;3393 readonly type: 'SetAdminAddress' | 'Stake' | 'UnstakeAll' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers' | 'UnstakePartial' | 'ForceUnstake';3394 }33953396 /** @name PalletForeignAssetsModuleCall (386) */3397 interface PalletForeignAssetsModuleCall extends Enum {3398 readonly isRegisterForeignAsset: boolean;3399 readonly asRegisterForeignAsset: {3400 readonly owner: AccountId32;3401 readonly location: XcmVersionedMultiLocation;3402 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3403 } & Struct;3404 readonly isUpdateForeignAsset: boolean;3405 readonly asUpdateForeignAsset: {3406 readonly foreignAssetId: u32;3407 readonly location: XcmVersionedMultiLocation;3408 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3409 } & Struct;3410 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3411 }34123413 /** @name PalletEvmCall (387) */3414 interface PalletEvmCall extends Enum {3415 readonly isWithdraw: boolean;3416 readonly asWithdraw: {3417 readonly address: H160;3418 readonly value: u128;3419 } & Struct;3420 readonly isCall: boolean;3421 readonly asCall: {3422 readonly source: H160;3423 readonly target: H160;3424 readonly input: Bytes;3425 readonly value: U256;3426 readonly gasLimit: u64;3427 readonly maxFeePerGas: U256;3428 readonly maxPriorityFeePerGas: Option<U256>;3429 readonly nonce: Option<U256>;3430 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3431 } & Struct;3432 readonly isCreate: boolean;3433 readonly asCreate: {3434 readonly source: H160;3435 readonly init: Bytes;3436 readonly value: U256;3437 readonly gasLimit: u64;3438 readonly maxFeePerGas: U256;3439 readonly maxPriorityFeePerGas: Option<U256>;3440 readonly nonce: Option<U256>;3441 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3442 } & Struct;3443 readonly isCreate2: boolean;3444 readonly asCreate2: {3445 readonly source: H160;3446 readonly init: Bytes;3447 readonly salt: H256;3448 readonly value: U256;3449 readonly gasLimit: u64;3450 readonly maxFeePerGas: U256;3451 readonly maxPriorityFeePerGas: Option<U256>;3452 readonly nonce: Option<U256>;3453 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3454 } & Struct;3455 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3456 }34573458 /** @name PalletEthereumCall (393) */3459 interface PalletEthereumCall extends Enum {3460 readonly isTransact: boolean;3461 readonly asTransact: {3462 readonly transaction: EthereumTransactionTransactionV2;3463 } & Struct;3464 readonly type: 'Transact';3465 }34663467 /** @name EthereumTransactionTransactionV2 (394) */3468 interface EthereumTransactionTransactionV2 extends Enum {3469 readonly isLegacy: boolean;3470 readonly asLegacy: EthereumTransactionLegacyTransaction;3471 readonly isEip2930: boolean;3472 readonly asEip2930: EthereumTransactionEip2930Transaction;3473 readonly isEip1559: boolean;3474 readonly asEip1559: EthereumTransactionEip1559Transaction;3475 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3476 }34773478 /** @name EthereumTransactionLegacyTransaction (395) */3479 interface EthereumTransactionLegacyTransaction extends Struct {3480 readonly nonce: U256;3481 readonly gasPrice: U256;3482 readonly gasLimit: U256;3483 readonly action: EthereumTransactionTransactionAction;3484 readonly value: U256;3485 readonly input: Bytes;3486 readonly signature: EthereumTransactionTransactionSignature;3487 }34883489 /** @name EthereumTransactionTransactionAction (396) */3490 interface EthereumTransactionTransactionAction extends Enum {3491 readonly isCall: boolean;3492 readonly asCall: H160;3493 readonly isCreate: boolean;3494 readonly type: 'Call' | 'Create';3495 }34963497 /** @name EthereumTransactionTransactionSignature (397) */3498 interface EthereumTransactionTransactionSignature extends Struct {3499 readonly v: u64;3500 readonly r: H256;3501 readonly s: H256;3502 }35033504 /** @name EthereumTransactionEip2930Transaction (399) */3505 interface EthereumTransactionEip2930Transaction extends Struct {3506 readonly chainId: u64;3507 readonly nonce: U256;3508 readonly gasPrice: U256;3509 readonly gasLimit: U256;3510 readonly action: EthereumTransactionTransactionAction;3511 readonly value: U256;3512 readonly input: Bytes;3513 readonly accessList: Vec<EthereumTransactionAccessListItem>;3514 readonly oddYParity: bool;3515 readonly r: H256;3516 readonly s: H256;3517 }35183519 /** @name EthereumTransactionAccessListItem (401) */3520 interface EthereumTransactionAccessListItem extends Struct {3521 readonly address: H160;3522 readonly storageKeys: Vec<H256>;3523 }35243525 /** @name EthereumTransactionEip1559Transaction (402) */3526 interface EthereumTransactionEip1559Transaction extends Struct {3527 readonly chainId: u64;3528 readonly nonce: U256;3529 readonly maxPriorityFeePerGas: U256;3530 readonly maxFeePerGas: U256;3531 readonly gasLimit: U256;3532 readonly action: EthereumTransactionTransactionAction;3533 readonly value: U256;3534 readonly input: Bytes;3535 readonly accessList: Vec<EthereumTransactionAccessListItem>;3536 readonly oddYParity: bool;3537 readonly r: H256;3538 readonly s: H256;3539 }35403541 /** @name PalletEvmContractHelpersCall (403) */3542 interface PalletEvmContractHelpersCall extends Enum {3543 readonly isMigrateFromSelfSponsoring: boolean;3544 readonly asMigrateFromSelfSponsoring: {3545 readonly addresses: Vec<H160>;3546 } & Struct;3547 readonly type: 'MigrateFromSelfSponsoring';3548 }35493550 /** @name PalletEvmMigrationCall (405) */3551 interface PalletEvmMigrationCall extends Enum {3552 readonly isBegin: boolean;3553 readonly asBegin: {3554 readonly address: H160;3555 } & Struct;3556 readonly isSetData: boolean;3557 readonly asSetData: {3558 readonly address: H160;3559 readonly data: Vec<ITuple<[H256, H256]>>;3560 } & Struct;3561 readonly isFinish: boolean;3562 readonly asFinish: {3563 readonly address: H160;3564 readonly code: Bytes;3565 } & Struct;3566 readonly isInsertEthLogs: boolean;3567 readonly asInsertEthLogs: {3568 readonly logs: Vec<EthereumLog>;3569 } & Struct;3570 readonly isInsertEvents: boolean;3571 readonly asInsertEvents: {3572 readonly events: Vec<Bytes>;3573 } & Struct;3574 readonly isRemoveRmrkData: boolean;3575 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'RemoveRmrkData';3576 }35773578 /** @name PalletMaintenanceCall (409) */3579 interface PalletMaintenanceCall extends Enum {3580 readonly isEnable: boolean;3581 readonly isDisable: boolean;3582 readonly isExecutePreimage: boolean;3583 readonly asExecutePreimage: {3584 readonly hash_: H256;3585 readonly weightBound: SpWeightsWeightV2Weight;3586 } & Struct;3587 readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';3588 }35893590 /** @name PalletTestUtilsCall (410) */3591 interface PalletTestUtilsCall extends Enum {3592 readonly isEnable: boolean;3593 readonly isSetTestValue: boolean;3594 readonly asSetTestValue: {3595 readonly value: u32;3596 } & Struct;3597 readonly isSetTestValueAndRollback: boolean;3598 readonly asSetTestValueAndRollback: {3599 readonly value: u32;3600 } & Struct;3601 readonly isIncTestValue: boolean;3602 readonly isJustTakeFee: boolean;3603 readonly isBatchAll: boolean;3604 readonly asBatchAll: {3605 readonly calls: Vec<Call>;3606 } & Struct;3607 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';3608 }36093610 /** @name PalletSudoError (412) */3611 interface PalletSudoError extends Enum {3612 readonly isRequireSudo: boolean;3613 readonly type: 'RequireSudo';3614 }36153616 /** @name OrmlVestingModuleError (414) */3617 interface OrmlVestingModuleError extends Enum {3618 readonly isZeroVestingPeriod: boolean;3619 readonly isZeroVestingPeriodCount: boolean;3620 readonly isInsufficientBalanceToLock: boolean;3621 readonly isTooManyVestingSchedules: boolean;3622 readonly isAmountLow: boolean;3623 readonly isMaxVestingSchedulesExceeded: boolean;3624 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3625 }36263627 /** @name OrmlXtokensModuleError (415) */3628 interface OrmlXtokensModuleError extends Enum {3629 readonly isAssetHasNoReserve: boolean;3630 readonly isNotCrossChainTransfer: boolean;3631 readonly isInvalidDest: boolean;3632 readonly isNotCrossChainTransferableCurrency: boolean;3633 readonly isUnweighableMessage: boolean;3634 readonly isXcmExecutionFailed: boolean;3635 readonly isCannotReanchor: boolean;3636 readonly isInvalidAncestry: boolean;3637 readonly isInvalidAsset: boolean;3638 readonly isDestinationNotInvertible: boolean;3639 readonly isBadVersion: boolean;3640 readonly isDistinctReserveForAssetAndFee: boolean;3641 readonly isZeroFee: boolean;3642 readonly isZeroAmount: boolean;3643 readonly isTooManyAssetsBeingSent: boolean;3644 readonly isAssetIndexNonExistent: boolean;3645 readonly isFeeNotEnough: boolean;3646 readonly isNotSupportedMultiLocation: boolean;3647 readonly isMinXcmFeeNotDefined: boolean;3648 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3649 }36503651 /** @name OrmlTokensBalanceLock (418) */3652 interface OrmlTokensBalanceLock extends Struct {3653 readonly id: U8aFixed;3654 readonly amount: u128;3655 }36563657 /** @name OrmlTokensAccountData (420) */3658 interface OrmlTokensAccountData extends Struct {3659 readonly free: u128;3660 readonly reserved: u128;3661 readonly frozen: u128;3662 }36633664 /** @name OrmlTokensReserveData (422) */3665 interface OrmlTokensReserveData extends Struct {3666 readonly id: Null;3667 readonly amount: u128;3668 }36693670 /** @name OrmlTokensModuleError (424) */3671 interface OrmlTokensModuleError extends Enum {3672 readonly isBalanceTooLow: boolean;3673 readonly isAmountIntoBalanceFailed: boolean;3674 readonly isLiquidityRestrictions: boolean;3675 readonly isMaxLocksExceeded: boolean;3676 readonly isKeepAlive: boolean;3677 readonly isExistentialDeposit: boolean;3678 readonly isDeadAccount: boolean;3679 readonly isTooManyReserves: boolean;3680 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3681 }36823683 /** @name PalletIdentityRegistrarInfo (429) */3684 interface PalletIdentityRegistrarInfo extends Struct {3685 readonly account: AccountId32;3686 readonly fee: u128;3687 readonly fields: PalletIdentityBitFlags;3688 }36893690 /** @name PalletIdentityError (431) */3691 interface PalletIdentityError extends Enum {3692 readonly isTooManySubAccounts: boolean;3693 readonly isNotFound: boolean;3694 readonly isNotNamed: boolean;3695 readonly isEmptyIndex: boolean;3696 readonly isFeeChanged: boolean;3697 readonly isNoIdentity: boolean;3698 readonly isStickyJudgement: boolean;3699 readonly isJudgementGiven: boolean;3700 readonly isInvalidJudgement: boolean;3701 readonly isInvalidIndex: boolean;3702 readonly isInvalidTarget: boolean;3703 readonly isTooManyFields: boolean;3704 readonly isTooManyRegistrars: boolean;3705 readonly isAlreadyClaimed: boolean;3706 readonly isNotSub: boolean;3707 readonly isNotOwned: boolean;3708 readonly isJudgementForDifferentIdentity: boolean;3709 readonly isJudgementPaymentFailed: boolean;3710 readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';3711 }37123713 /** @name PalletPreimageRequestStatus (432) */3714 interface PalletPreimageRequestStatus extends Enum {3715 readonly isUnrequested: boolean;3716 readonly asUnrequested: {3717 readonly deposit: ITuple<[AccountId32, u128]>;3718 readonly len: u32;3719 } & Struct;3720 readonly isRequested: boolean;3721 readonly asRequested: {3722 readonly deposit: Option<ITuple<[AccountId32, u128]>>;3723 readonly count: u32;3724 readonly len: Option<u32>;3725 } & Struct;3726 readonly type: 'Unrequested' | 'Requested';3727 }37283729 /** @name PalletPreimageError (437) */3730 interface PalletPreimageError extends Enum {3731 readonly isTooBig: boolean;3732 readonly isAlreadyNoted: boolean;3733 readonly isNotAuthorized: boolean;3734 readonly isNotNoted: boolean;3735 readonly isRequested: boolean;3736 readonly isNotRequested: boolean;3737 readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';3738 }37393740 /** @name CumulusPalletXcmpQueueInboundChannelDetails (439) */3741 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3742 readonly sender: u32;3743 readonly state: CumulusPalletXcmpQueueInboundState;3744 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3745 }37463747 /** @name CumulusPalletXcmpQueueInboundState (440) */3748 interface CumulusPalletXcmpQueueInboundState extends Enum {3749 readonly isOk: boolean;3750 readonly isSuspended: boolean;3751 readonly type: 'Ok' | 'Suspended';3752 }37533754 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (443) */3755 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3756 readonly isConcatenatedVersionedXcm: boolean;3757 readonly isConcatenatedEncodedBlob: boolean;3758 readonly isSignals: boolean;3759 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3760 }37613762 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (446) */3763 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3764 readonly recipient: u32;3765 readonly state: CumulusPalletXcmpQueueOutboundState;3766 readonly signalsExist: bool;3767 readonly firstIndex: u16;3768 readonly lastIndex: u16;3769 }37703771 /** @name CumulusPalletXcmpQueueOutboundState (447) */3772 interface CumulusPalletXcmpQueueOutboundState extends Enum {3773 readonly isOk: boolean;3774 readonly isSuspended: boolean;3775 readonly type: 'Ok' | 'Suspended';3776 }37773778 /** @name CumulusPalletXcmpQueueQueueConfigData (449) */3779 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3780 readonly suspendThreshold: u32;3781 readonly dropThreshold: u32;3782 readonly resumeThreshold: u32;3783 readonly thresholdWeight: SpWeightsWeightV2Weight;3784 readonly weightRestrictDecay: SpWeightsWeightV2Weight;3785 readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;3786 }37873788 /** @name CumulusPalletXcmpQueueError (451) */3789 interface CumulusPalletXcmpQueueError extends Enum {3790 readonly isFailedToSend: boolean;3791 readonly isBadXcmOrigin: boolean;3792 readonly isBadXcm: boolean;3793 readonly isBadOverweightIndex: boolean;3794 readonly isWeightOverLimit: boolean;3795 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3796 }37973798 /** @name PalletXcmQueryStatus (452) */3799 interface PalletXcmQueryStatus extends Enum {3800 readonly isPending: boolean;3801 readonly asPending: {3802 readonly responder: XcmVersionedMultiLocation;3803 readonly maybeMatchQuerier: Option<XcmVersionedMultiLocation>;3804 readonly maybeNotify: Option<ITuple<[u8, u8]>>;3805 readonly timeout: u32;3806 } & Struct;3807 readonly isVersionNotifier: boolean;3808 readonly asVersionNotifier: {3809 readonly origin: XcmVersionedMultiLocation;3810 readonly isActive: bool;3811 } & Struct;3812 readonly isReady: boolean;3813 readonly asReady: {3814 readonly response: XcmVersionedResponse;3815 readonly at: u32;3816 } & Struct;3817 readonly type: 'Pending' | 'VersionNotifier' | 'Ready';3818 }38193820 /** @name XcmVersionedResponse (456) */3821 interface XcmVersionedResponse extends Enum {3822 readonly isV2: boolean;3823 readonly asV2: XcmV2Response;3824 readonly isV3: boolean;3825 readonly asV3: XcmV3Response;3826 readonly type: 'V2' | 'V3';3827 }38283829 /** @name PalletXcmVersionMigrationStage (462) */3830 interface PalletXcmVersionMigrationStage extends Enum {3831 readonly isMigrateSupportedVersion: boolean;3832 readonly isMigrateVersionNotifiers: boolean;3833 readonly isNotifyCurrentTargets: boolean;3834 readonly asNotifyCurrentTargets: Option<Bytes>;3835 readonly isMigrateAndNotifyOldTargets: boolean;3836 readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';3837 }38383839 /** @name XcmVersionedAssetId (465) */3840 interface XcmVersionedAssetId extends Enum {3841 readonly isV3: boolean;3842 readonly asV3: XcmV3MultiassetAssetId;3843 readonly type: 'V3';3844 }38453846 /** @name PalletXcmRemoteLockedFungibleRecord (466) */3847 interface PalletXcmRemoteLockedFungibleRecord extends Struct {3848 readonly amount: u128;3849 readonly owner: XcmVersionedMultiLocation;3850 readonly locker: XcmVersionedMultiLocation;3851 readonly consumers: Vec<ITuple<[Null, u128]>>;3852 }38533854 /** @name PalletXcmError (473) */3855 interface PalletXcmError extends Enum {3856 readonly isUnreachable: boolean;3857 readonly isSendFailure: boolean;3858 readonly isFiltered: boolean;3859 readonly isUnweighableMessage: boolean;3860 readonly isDestinationNotInvertible: boolean;3861 readonly isEmpty: boolean;3862 readonly isCannotReanchor: boolean;3863 readonly isTooManyAssets: boolean;3864 readonly isInvalidOrigin: boolean;3865 readonly isBadVersion: boolean;3866 readonly isBadLocation: boolean;3867 readonly isNoSubscription: boolean;3868 readonly isAlreadySubscribed: boolean;3869 readonly isInvalidAsset: boolean;3870 readonly isLowBalance: boolean;3871 readonly isTooManyLocks: boolean;3872 readonly isAccountNotSovereign: boolean;3873 readonly isFeesNotMet: boolean;3874 readonly isLockNotFound: boolean;3875 readonly isInUse: boolean;3876 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';3877 }38783879 /** @name CumulusPalletXcmError (474) */3880 type CumulusPalletXcmError = Null;38813882 /** @name CumulusPalletDmpQueueConfigData (475) */3883 interface CumulusPalletDmpQueueConfigData extends Struct {3884 readonly maxIndividual: SpWeightsWeightV2Weight;3885 }38863887 /** @name CumulusPalletDmpQueuePageIndexData (476) */3888 interface CumulusPalletDmpQueuePageIndexData extends Struct {3889 readonly beginUsed: u32;3890 readonly endUsed: u32;3891 readonly overweightCount: u64;3892 }38933894 /** @name CumulusPalletDmpQueueError (479) */3895 interface CumulusPalletDmpQueueError extends Enum {3896 readonly isUnknown: boolean;3897 readonly isOverLimit: boolean;3898 readonly type: 'Unknown' | 'OverLimit';3899 }39003901 /** @name PalletUniqueError (483) */3902 interface PalletUniqueError extends Enum {3903 readonly isCollectionDecimalPointLimitExceeded: boolean;3904 readonly isEmptyArgument: boolean;3905 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3906 readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3907 }39083909 /** @name PalletConfigurationError (484) */3910 interface PalletConfigurationError extends Enum {3911 readonly isInconsistentConfiguration: boolean;3912 readonly type: 'InconsistentConfiguration';3913 }39143915 /** @name UpDataStructsCollection (485) */3916 interface UpDataStructsCollection extends Struct {3917 readonly owner: AccountId32;3918 readonly mode: UpDataStructsCollectionMode;3919 readonly name: Vec<u16>;3920 readonly description: Vec<u16>;3921 readonly tokenPrefix: Bytes;3922 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3923 readonly limits: UpDataStructsCollectionLimits;3924 readonly permissions: UpDataStructsCollectionPermissions;3925 readonly flags: U8aFixed;3926 }39273928 /** @name UpDataStructsSponsorshipStateAccountId32 (486) */3929 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3930 readonly isDisabled: boolean;3931 readonly isUnconfirmed: boolean;3932 readonly asUnconfirmed: AccountId32;3933 readonly isConfirmed: boolean;3934 readonly asConfirmed: AccountId32;3935 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3936 }39373938 /** @name UpDataStructsProperties (487) */3939 interface UpDataStructsProperties extends Struct {3940 readonly map: UpDataStructsPropertiesMapBoundedVec;3941 readonly consumedSpace: u32;3942 readonly reserved: u32;3943 }39443945 /** @name UpDataStructsPropertiesMapBoundedVec (488) */3946 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}39473948 /** @name UpDataStructsPropertiesMapPropertyPermission (493) */3949 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}39503951 /** @name UpDataStructsCollectionStats (500) */3952 interface UpDataStructsCollectionStats extends Struct {3953 readonly created: u32;3954 readonly destroyed: u32;3955 readonly alive: u32;3956 }39573958 /** @name UpDataStructsTokenChild (501) */3959 interface UpDataStructsTokenChild extends Struct {3960 readonly token: u32;3961 readonly collection: u32;3962 }39633964 /** @name PhantomTypeUpDataStructs (502) */3965 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}39663967 /** @name UpDataStructsTokenData (504) */3968 interface UpDataStructsTokenData extends Struct {3969 readonly properties: Vec<UpDataStructsProperty>;3970 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3971 readonly pieces: u128;3972 }39733974 /** @name UpDataStructsRpcCollection (506) */3975 interface UpDataStructsRpcCollection extends Struct {3976 readonly owner: AccountId32;3977 readonly mode: UpDataStructsCollectionMode;3978 readonly name: Vec<u16>;3979 readonly description: Vec<u16>;3980 readonly tokenPrefix: Bytes;3981 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3982 readonly limits: UpDataStructsCollectionLimits;3983 readonly permissions: UpDataStructsCollectionPermissions;3984 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3985 readonly properties: Vec<UpDataStructsProperty>;3986 readonly readOnly: bool;3987 readonly flags: UpDataStructsRpcCollectionFlags;3988 }39893990 /** @name UpDataStructsRpcCollectionFlags (507) */3991 interface UpDataStructsRpcCollectionFlags extends Struct {3992 readonly foreign: bool;3993 readonly erc721metadata: bool;3994 }39953996 /** @name UpPovEstimateRpcPovInfo (508) */3997 interface UpPovEstimateRpcPovInfo extends Struct {3998 readonly proofSize: u64;3999 readonly compactProofSize: u64;4000 readonly compressedProofSize: u64;4001 readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;4002 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;4003 }40044005 /** @name SpRuntimeTransactionValidityTransactionValidityError (511) */4006 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {4007 readonly isInvalid: boolean;4008 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;4009 readonly isUnknown: boolean;4010 readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;4011 readonly type: 'Invalid' | 'Unknown';4012 }40134014 /** @name SpRuntimeTransactionValidityInvalidTransaction (512) */4015 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {4016 readonly isCall: boolean;4017 readonly isPayment: boolean;4018 readonly isFuture: boolean;4019 readonly isStale: boolean;4020 readonly isBadProof: boolean;4021 readonly isAncientBirthBlock: boolean;4022 readonly isExhaustsResources: boolean;4023 readonly isCustom: boolean;4024 readonly asCustom: u8;4025 readonly isBadMandatory: boolean;4026 readonly isMandatoryValidation: boolean;4027 readonly isBadSigner: boolean;4028 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';4029 }40304031 /** @name SpRuntimeTransactionValidityUnknownTransaction (513) */4032 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {4033 readonly isCannotLookup: boolean;4034 readonly isNoUnsignedValidator: boolean;4035 readonly isCustom: boolean;4036 readonly asCustom: u8;4037 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';4038 }40394040 /** @name UpPovEstimateRpcTrieKeyValue (515) */4041 interface UpPovEstimateRpcTrieKeyValue extends Struct {4042 readonly key: Bytes;4043 readonly value: Bytes;4044 }40454046 /** @name PalletCommonError (517) */4047 interface PalletCommonError extends Enum {4048 readonly isCollectionNotFound: boolean;4049 readonly isMustBeTokenOwner: boolean;4050 readonly isNoPermission: boolean;4051 readonly isCantDestroyNotEmptyCollection: boolean;4052 readonly isPublicMintingNotAllowed: boolean;4053 readonly isAddressNotInAllowlist: boolean;4054 readonly isCollectionNameLimitExceeded: boolean;4055 readonly isCollectionDescriptionLimitExceeded: boolean;4056 readonly isCollectionTokenPrefixLimitExceeded: boolean;4057 readonly isTotalCollectionsLimitExceeded: boolean;4058 readonly isCollectionAdminCountExceeded: boolean;4059 readonly isCollectionLimitBoundsExceeded: boolean;4060 readonly isOwnerPermissionsCantBeReverted: boolean;4061 readonly isTransferNotAllowed: boolean;4062 readonly isAccountTokenLimitExceeded: boolean;4063 readonly isCollectionTokenLimitExceeded: boolean;4064 readonly isMetadataFlagFrozen: boolean;4065 readonly isTokenNotFound: boolean;4066 readonly isTokenValueTooLow: boolean;4067 readonly isApprovedValueTooLow: boolean;4068 readonly isCantApproveMoreThanOwned: boolean;4069 readonly isAddressIsNotEthMirror: boolean;4070 readonly isAddressIsZero: boolean;4071 readonly isUnsupportedOperation: boolean;4072 readonly isNotSufficientFounds: boolean;4073 readonly isUserIsNotAllowedToNest: boolean;4074 readonly isSourceCollectionIsNotAllowedToNest: boolean;4075 readonly isCollectionFieldSizeExceeded: boolean;4076 readonly isNoSpaceForProperty: boolean;4077 readonly isPropertyLimitReached: boolean;4078 readonly isPropertyKeyIsTooLong: boolean;4079 readonly isInvalidCharacterInPropertyKey: boolean;4080 readonly isEmptyPropertyKey: boolean;4081 readonly isCollectionIsExternal: boolean;4082 readonly isCollectionIsInternal: boolean;4083 readonly isConfirmSponsorshipFail: boolean;4084 readonly isUserIsNotCollectionAdmin: boolean;4085 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';4086 }40874088 /** @name PalletFungibleError (519) */4089 interface PalletFungibleError extends Enum {4090 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;4091 readonly isFungibleItemsHaveNoId: boolean;4092 readonly isFungibleItemsDontHaveData: boolean;4093 readonly isFungibleDisallowsNesting: boolean;4094 readonly isSettingPropertiesNotAllowed: boolean;4095 readonly isSettingAllowanceForAllNotAllowed: boolean;4096 readonly isFungibleTokensAreAlwaysValid: boolean;4097 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';4098 }40994100 /** @name PalletRefungibleError (524) */4101 interface PalletRefungibleError extends Enum {4102 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;4103 readonly isWrongRefungiblePieces: boolean;4104 readonly isRepartitionWhileNotOwningAllPieces: boolean;4105 readonly isRefungibleDisallowsNesting: boolean;4106 readonly isSettingPropertiesNotAllowed: boolean;4107 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';4108 }41094110 /** @name PalletNonfungibleItemData (525) */4111 interface PalletNonfungibleItemData extends Struct {4112 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;4113 }41144115 /** @name UpDataStructsPropertyScope (527) */4116 interface UpDataStructsPropertyScope extends Enum {4117 readonly isNone: boolean;4118 readonly isRmrk: boolean;4119 readonly type: 'None' | 'Rmrk';4120 }41214122 /** @name PalletNonfungibleError (530) */4123 interface PalletNonfungibleError extends Enum {4124 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;4125 readonly isNonfungibleItemsHaveNoAmount: boolean;4126 readonly isCantBurnNftWithChildren: boolean;4127 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';4128 }41294130 /** @name PalletStructureError (531) */4131 interface PalletStructureError extends Enum {4132 readonly isOuroborosDetected: boolean;4133 readonly isDepthLimit: boolean;4134 readonly isBreadthLimit: boolean;4135 readonly isTokenNotFound: boolean;4136 readonly isCantNestTokenUnderCollection: boolean;4137 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection';4138 }41394140 /** @name PalletAppPromotionError (536) */4141 interface PalletAppPromotionError extends Enum {4142 readonly isAdminNotSet: boolean;4143 readonly isNoPermission: boolean;4144 readonly isNotSufficientFunds: boolean;4145 readonly isPendingForBlockOverflow: boolean;4146 readonly isSponsorNotSet: boolean;4147 readonly isInsufficientStakedBalance: boolean;4148 readonly isInconsistencyState: boolean;4149 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'InsufficientStakedBalance' | 'InconsistencyState';4150 }41514152 /** @name PalletForeignAssetsModuleError (537) */4153 interface PalletForeignAssetsModuleError extends Enum {4154 readonly isBadLocation: boolean;4155 readonly isMultiLocationExisted: boolean;4156 readonly isAssetIdNotExists: boolean;4157 readonly isAssetIdExisted: boolean;4158 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';4159 }41604161 /** @name PalletEvmCodeMetadata (538) */4162 interface PalletEvmCodeMetadata extends Struct {4163 readonly size_: u64;4164 readonly hash_: H256;4165 }41664167 /** @name PalletEvmError (540) */4168 interface PalletEvmError extends Enum {4169 readonly isBalanceLow: boolean;4170 readonly isFeeOverflow: boolean;4171 readonly isPaymentOverflow: boolean;4172 readonly isWithdrawFailed: boolean;4173 readonly isGasPriceTooLow: boolean;4174 readonly isInvalidNonce: boolean;4175 readonly isGasLimitTooLow: boolean;4176 readonly isGasLimitTooHigh: boolean;4177 readonly isUndefined: boolean;4178 readonly isReentrancy: boolean;4179 readonly isTransactionMustComeFromEOA: boolean;4180 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';4181 }41824183 /** @name FpRpcTransactionStatus (543) */4184 interface FpRpcTransactionStatus extends Struct {4185 readonly transactionHash: H256;4186 readonly transactionIndex: u32;4187 readonly from: H160;4188 readonly to: Option<H160>;4189 readonly contractAddress: Option<H160>;4190 readonly logs: Vec<EthereumLog>;4191 readonly logsBloom: EthbloomBloom;4192 }41934194 /** @name EthbloomBloom (545) */4195 interface EthbloomBloom extends U8aFixed {}41964197 /** @name EthereumReceiptReceiptV3 (547) */4198 interface EthereumReceiptReceiptV3 extends Enum {4199 readonly isLegacy: boolean;4200 readonly asLegacy: EthereumReceiptEip658ReceiptData;4201 readonly isEip2930: boolean;4202 readonly asEip2930: EthereumReceiptEip658ReceiptData;4203 readonly isEip1559: boolean;4204 readonly asEip1559: EthereumReceiptEip658ReceiptData;4205 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';4206 }42074208 /** @name EthereumReceiptEip658ReceiptData (548) */4209 interface EthereumReceiptEip658ReceiptData extends Struct {4210 readonly statusCode: u8;4211 readonly usedGas: U256;4212 readonly logsBloom: EthbloomBloom;4213 readonly logs: Vec<EthereumLog>;4214 }42154216 /** @name EthereumBlock (549) */4217 interface EthereumBlock extends Struct {4218 readonly header: EthereumHeader;4219 readonly transactions: Vec<EthereumTransactionTransactionV2>;4220 readonly ommers: Vec<EthereumHeader>;4221 }42224223 /** @name EthereumHeader (550) */4224 interface EthereumHeader extends Struct {4225 readonly parentHash: H256;4226 readonly ommersHash: H256;4227 readonly beneficiary: H160;4228 readonly stateRoot: H256;4229 readonly transactionsRoot: H256;4230 readonly receiptsRoot: H256;4231 readonly logsBloom: EthbloomBloom;4232 readonly difficulty: U256;4233 readonly number: U256;4234 readonly gasLimit: U256;4235 readonly gasUsed: U256;4236 readonly timestamp: u64;4237 readonly extraData: Bytes;4238 readonly mixHash: H256;4239 readonly nonce: EthereumTypesHashH64;4240 }42414242 /** @name EthereumTypesHashH64 (551) */4243 interface EthereumTypesHashH64 extends U8aFixed {}42444245 /** @name PalletEthereumError (556) */4246 interface PalletEthereumError extends Enum {4247 readonly isInvalidSignature: boolean;4248 readonly isPreLogExists: boolean;4249 readonly type: 'InvalidSignature' | 'PreLogExists';4250 }42514252 /** @name PalletEvmCoderSubstrateError (557) */4253 interface PalletEvmCoderSubstrateError extends Enum {4254 readonly isOutOfGas: boolean;4255 readonly isOutOfFund: boolean;4256 readonly type: 'OutOfGas' | 'OutOfFund';4257 }42584259 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (558) */4260 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {4261 readonly isDisabled: boolean;4262 readonly isUnconfirmed: boolean;4263 readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4264 readonly isConfirmed: boolean;4265 readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4266 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';4267 }42684269 /** @name PalletEvmContractHelpersSponsoringModeT (559) */4270 interface PalletEvmContractHelpersSponsoringModeT extends Enum {4271 readonly isDisabled: boolean;4272 readonly isAllowlisted: boolean;4273 readonly isGenerous: boolean;4274 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';4275 }42764277 /** @name PalletEvmContractHelpersError (565) */4278 interface PalletEvmContractHelpersError extends Enum {4279 readonly isNoPermission: boolean;4280 readonly isNoPendingSponsor: boolean;4281 readonly isTooManyMethodsHaveSponsoredLimit: boolean;4282 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';4283 }42844285 /** @name PalletEvmMigrationError (566) */4286 interface PalletEvmMigrationError extends Enum {4287 readonly isAccountNotEmpty: boolean;4288 readonly isAccountIsNotMigrating: boolean;4289 readonly isBadEvent: boolean;4290 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';4291 }42924293 /** @name PalletMaintenanceError (567) */4294 type PalletMaintenanceError = Null;42954296 /** @name PalletTestUtilsError (568) */4297 interface PalletTestUtilsError extends Enum {4298 readonly isTestPalletDisabled: boolean;4299 readonly isTriggerRollback: boolean;4300 readonly type: 'TestPalletDisabled' | 'TriggerRollback';4301 }43024303 /** @name SpRuntimeMultiSignature (570) */4304 interface SpRuntimeMultiSignature extends Enum {4305 readonly isEd25519: boolean;4306 readonly asEd25519: SpCoreEd25519Signature;4307 readonly isSr25519: boolean;4308 readonly asSr25519: SpCoreSr25519Signature;4309 readonly isEcdsa: boolean;4310 readonly asEcdsa: SpCoreEcdsaSignature;4311 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';4312 }43134314 /** @name SpCoreEd25519Signature (571) */4315 interface SpCoreEd25519Signature extends U8aFixed {}43164317 /** @name SpCoreSr25519Signature (573) */4318 interface SpCoreSr25519Signature extends U8aFixed {}43194320 /** @name SpCoreEcdsaSignature (574) */4321 interface SpCoreEcdsaSignature extends U8aFixed {}43224323 /** @name FrameSystemExtensionsCheckSpecVersion (577) */4324 type FrameSystemExtensionsCheckSpecVersion = Null;43254326 /** @name FrameSystemExtensionsCheckTxVersion (578) */4327 type FrameSystemExtensionsCheckTxVersion = Null;43284329 /** @name FrameSystemExtensionsCheckGenesis (579) */4330 type FrameSystemExtensionsCheckGenesis = Null;43314332 /** @name FrameSystemExtensionsCheckNonce (582) */4333 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}43344335 /** @name FrameSystemExtensionsCheckWeight (583) */4336 type FrameSystemExtensionsCheckWeight = Null;43374338 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (584) */4339 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;43404341 /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (585) */4342 type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;43434344 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (586) */4345 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}43464347 /** @name OpalRuntimeRuntime (587) */4348 type OpalRuntimeRuntime = Null;43494350 /** @name PalletEthereumFakeTransactionFinalizer (588) */4351 type PalletEthereumFakeTransactionFinalizer = Null;43524353} // declare module1// Auto-generated via `yarn polkadot-types-from-defs`, 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/types/lookup';78import type { Data } from '@polkadot/types';9import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';12import type { Event } from '@polkadot/types/interfaces/system';1314declare module '@polkadot/types/lookup' {15 /** @name FrameSystemAccountInfo (3) */16 interface FrameSystemAccountInfo extends Struct {17 readonly nonce: u32;18 readonly consumers: u32;19 readonly providers: u32;20 readonly sufficients: u32;21 readonly data: PalletBalancesAccountData;22 }2324 /** @name PalletBalancesAccountData (5) */25 interface PalletBalancesAccountData extends Struct {26 readonly free: u128;27 readonly reserved: u128;28 readonly frozen: u128;29 readonly flags: u128;30 }3132 /** @name FrameSupportDispatchPerDispatchClassWeight (8) */33 interface FrameSupportDispatchPerDispatchClassWeight extends Struct {34 readonly normal: SpWeightsWeightV2Weight;35 readonly operational: SpWeightsWeightV2Weight;36 readonly mandatory: SpWeightsWeightV2Weight;37 }3839 /** @name SpWeightsWeightV2Weight (9) */40 interface SpWeightsWeightV2Weight extends Struct {41 readonly refTime: Compact<u64>;42 readonly proofSize: Compact<u64>;43 }4445 /** @name SpRuntimeDigest (14) */46 interface SpRuntimeDigest extends Struct {47 readonly logs: Vec<SpRuntimeDigestDigestItem>;48 }4950 /** @name SpRuntimeDigestDigestItem (16) */51 interface SpRuntimeDigestDigestItem extends Enum {52 readonly isOther: boolean;53 readonly asOther: Bytes;54 readonly isConsensus: boolean;55 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;56 readonly isSeal: boolean;57 readonly asSeal: ITuple<[U8aFixed, Bytes]>;58 readonly isPreRuntime: boolean;59 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;60 readonly isRuntimeEnvironmentUpdated: boolean;61 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';62 }6364 /** @name FrameSystemEventRecord (19) */65 interface FrameSystemEventRecord extends Struct {66 readonly phase: FrameSystemPhase;67 readonly event: Event;68 readonly topics: Vec<H256>;69 }7071 /** @name FrameSystemEvent (21) */72 interface FrameSystemEvent extends Enum {73 readonly isExtrinsicSuccess: boolean;74 readonly asExtrinsicSuccess: {75 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;76 } & Struct;77 readonly isExtrinsicFailed: boolean;78 readonly asExtrinsicFailed: {79 readonly dispatchError: SpRuntimeDispatchError;80 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;81 } & Struct;82 readonly isCodeUpdated: boolean;83 readonly isNewAccount: boolean;84 readonly asNewAccount: {85 readonly account: AccountId32;86 } & Struct;87 readonly isKilledAccount: boolean;88 readonly asKilledAccount: {89 readonly account: AccountId32;90 } & Struct;91 readonly isRemarked: boolean;92 readonly asRemarked: {93 readonly sender: AccountId32;94 readonly hash_: H256;95 } & Struct;96 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';97 }9899 /** @name FrameSupportDispatchDispatchInfo (22) */100 interface FrameSupportDispatchDispatchInfo extends Struct {101 readonly weight: SpWeightsWeightV2Weight;102 readonly class: FrameSupportDispatchDispatchClass;103 readonly paysFee: FrameSupportDispatchPays;104 }105106 /** @name FrameSupportDispatchDispatchClass (23) */107 interface FrameSupportDispatchDispatchClass extends Enum {108 readonly isNormal: boolean;109 readonly isOperational: boolean;110 readonly isMandatory: boolean;111 readonly type: 'Normal' | 'Operational' | 'Mandatory';112 }113114 /** @name FrameSupportDispatchPays (24) */115 interface FrameSupportDispatchPays extends Enum {116 readonly isYes: boolean;117 readonly isNo: boolean;118 readonly type: 'Yes' | 'No';119 }120121 /** @name SpRuntimeDispatchError (25) */122 interface SpRuntimeDispatchError extends Enum {123 readonly isOther: boolean;124 readonly isCannotLookup: boolean;125 readonly isBadOrigin: boolean;126 readonly isModule: boolean;127 readonly asModule: SpRuntimeModuleError;128 readonly isConsumerRemaining: boolean;129 readonly isNoProviders: boolean;130 readonly isTooManyConsumers: boolean;131 readonly isToken: boolean;132 readonly asToken: SpRuntimeTokenError;133 readonly isArithmetic: boolean;134 readonly asArithmetic: SpArithmeticArithmeticError;135 readonly isTransactional: boolean;136 readonly asTransactional: SpRuntimeTransactionalError;137 readonly isExhausted: boolean;138 readonly isCorruption: boolean;139 readonly isUnavailable: boolean;140 readonly isRootNotAllowed: boolean;141 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable' | 'RootNotAllowed';142 }143144 /** @name SpRuntimeModuleError (26) */145 interface SpRuntimeModuleError extends Struct {146 readonly index: u8;147 readonly error: U8aFixed;148 }149150 /** @name SpRuntimeTokenError (27) */151 interface SpRuntimeTokenError extends Enum {152 readonly isFundsUnavailable: boolean;153 readonly isOnlyProvider: boolean;154 readonly isBelowMinimum: boolean;155 readonly isCannotCreate: boolean;156 readonly isUnknownAsset: boolean;157 readonly isFrozen: boolean;158 readonly isUnsupported: boolean;159 readonly isCannotCreateHold: boolean;160 readonly isNotExpendable: boolean;161 readonly isBlocked: boolean;162 readonly type: 'FundsUnavailable' | 'OnlyProvider' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported' | 'CannotCreateHold' | 'NotExpendable' | 'Blocked';163 }164165 /** @name SpArithmeticArithmeticError (28) */166 interface SpArithmeticArithmeticError extends Enum {167 readonly isUnderflow: boolean;168 readonly isOverflow: boolean;169 readonly isDivisionByZero: boolean;170 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';171 }172173 /** @name SpRuntimeTransactionalError (29) */174 interface SpRuntimeTransactionalError extends Enum {175 readonly isLimitReached: boolean;176 readonly isNoLayer: boolean;177 readonly type: 'LimitReached' | 'NoLayer';178 }179180 /** @name PalletStateTrieMigrationEvent (30) */181 interface PalletStateTrieMigrationEvent extends Enum {182 readonly isMigrated: boolean;183 readonly asMigrated: {184 readonly top: u32;185 readonly child: u32;186 readonly compute: PalletStateTrieMigrationMigrationCompute;187 } & Struct;188 readonly isSlashed: boolean;189 readonly asSlashed: {190 readonly who: AccountId32;191 readonly amount: u128;192 } & Struct;193 readonly isAutoMigrationFinished: boolean;194 readonly isHalted: boolean;195 readonly asHalted: {196 readonly error: PalletStateTrieMigrationError;197 } & Struct;198 readonly type: 'Migrated' | 'Slashed' | 'AutoMigrationFinished' | 'Halted';199 }200201 /** @name PalletStateTrieMigrationMigrationCompute (31) */202 interface PalletStateTrieMigrationMigrationCompute extends Enum {203 readonly isSigned: boolean;204 readonly isAuto: boolean;205 readonly type: 'Signed' | 'Auto';206 }207208 /** @name PalletStateTrieMigrationError (32) */209 interface PalletStateTrieMigrationError extends Enum {210 readonly isMaxSignedLimits: boolean;211 readonly isKeyTooLong: boolean;212 readonly isNotEnoughFunds: boolean;213 readonly isBadWitness: boolean;214 readonly isSignedMigrationNotAllowed: boolean;215 readonly isBadChildRoot: boolean;216 readonly type: 'MaxSignedLimits' | 'KeyTooLong' | 'NotEnoughFunds' | 'BadWitness' | 'SignedMigrationNotAllowed' | 'BadChildRoot';217 }218219 /** @name CumulusPalletParachainSystemEvent (33) */220 interface CumulusPalletParachainSystemEvent extends Enum {221 readonly isValidationFunctionStored: boolean;222 readonly isValidationFunctionApplied: boolean;223 readonly asValidationFunctionApplied: {224 readonly relayChainBlockNum: u32;225 } & Struct;226 readonly isValidationFunctionDiscarded: boolean;227 readonly isUpgradeAuthorized: boolean;228 readonly asUpgradeAuthorized: {229 readonly codeHash: H256;230 } & Struct;231 readonly isDownwardMessagesReceived: boolean;232 readonly asDownwardMessagesReceived: {233 readonly count: u32;234 } & Struct;235 readonly isDownwardMessagesProcessed: boolean;236 readonly asDownwardMessagesProcessed: {237 readonly weightUsed: SpWeightsWeightV2Weight;238 readonly dmqHead: H256;239 } & Struct;240 readonly isUpwardMessageSent: boolean;241 readonly asUpwardMessageSent: {242 readonly messageHash: Option<U8aFixed>;243 } & Struct;244 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed' | 'UpwardMessageSent';245 }246247 /** @name PalletCollatorSelectionEvent (35) */248 interface PalletCollatorSelectionEvent extends Enum {249 readonly isInvulnerableAdded: boolean;250 readonly asInvulnerableAdded: {251 readonly invulnerable: AccountId32;252 } & Struct;253 readonly isInvulnerableRemoved: boolean;254 readonly asInvulnerableRemoved: {255 readonly invulnerable: AccountId32;256 } & Struct;257 readonly isLicenseObtained: boolean;258 readonly asLicenseObtained: {259 readonly accountId: AccountId32;260 readonly deposit: u128;261 } & Struct;262 readonly isLicenseReleased: boolean;263 readonly asLicenseReleased: {264 readonly accountId: AccountId32;265 readonly depositReturned: u128;266 } & Struct;267 readonly isCandidateAdded: boolean;268 readonly asCandidateAdded: {269 readonly accountId: AccountId32;270 } & Struct;271 readonly isCandidateRemoved: boolean;272 readonly asCandidateRemoved: {273 readonly accountId: AccountId32;274 } & Struct;275 readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved';276 }277278 /** @name PalletSessionEvent (36) */279 interface PalletSessionEvent extends Enum {280 readonly isNewSession: boolean;281 readonly asNewSession: {282 readonly sessionIndex: u32;283 } & Struct;284 readonly type: 'NewSession';285 }286287 /** @name PalletBalancesEvent (37) */288 interface PalletBalancesEvent extends Enum {289 readonly isEndowed: boolean;290 readonly asEndowed: {291 readonly account: AccountId32;292 readonly freeBalance: u128;293 } & Struct;294 readonly isDustLost: boolean;295 readonly asDustLost: {296 readonly account: AccountId32;297 readonly amount: u128;298 } & Struct;299 readonly isTransfer: boolean;300 readonly asTransfer: {301 readonly from: AccountId32;302 readonly to: AccountId32;303 readonly amount: u128;304 } & Struct;305 readonly isBalanceSet: boolean;306 readonly asBalanceSet: {307 readonly who: AccountId32;308 readonly free: u128;309 } & Struct;310 readonly isReserved: boolean;311 readonly asReserved: {312 readonly who: AccountId32;313 readonly amount: u128;314 } & Struct;315 readonly isUnreserved: boolean;316 readonly asUnreserved: {317 readonly who: AccountId32;318 readonly amount: u128;319 } & Struct;320 readonly isReserveRepatriated: boolean;321 readonly asReserveRepatriated: {322 readonly from: AccountId32;323 readonly to: AccountId32;324 readonly amount: u128;325 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;326 } & Struct;327 readonly isDeposit: boolean;328 readonly asDeposit: {329 readonly who: AccountId32;330 readonly amount: u128;331 } & Struct;332 readonly isWithdraw: boolean;333 readonly asWithdraw: {334 readonly who: AccountId32;335 readonly amount: u128;336 } & Struct;337 readonly isSlashed: boolean;338 readonly asSlashed: {339 readonly who: AccountId32;340 readonly amount: u128;341 } & Struct;342 readonly isMinted: boolean;343 readonly asMinted: {344 readonly who: AccountId32;345 readonly amount: u128;346 } & Struct;347 readonly isBurned: boolean;348 readonly asBurned: {349 readonly who: AccountId32;350 readonly amount: u128;351 } & Struct;352 readonly isSuspended: boolean;353 readonly asSuspended: {354 readonly who: AccountId32;355 readonly amount: u128;356 } & Struct;357 readonly isRestored: boolean;358 readonly asRestored: {359 readonly who: AccountId32;360 readonly amount: u128;361 } & Struct;362 readonly isUpgraded: boolean;363 readonly asUpgraded: {364 readonly who: AccountId32;365 } & Struct;366 readonly isIssued: boolean;367 readonly asIssued: {368 readonly amount: u128;369 } & Struct;370 readonly isRescinded: boolean;371 readonly asRescinded: {372 readonly amount: u128;373 } & Struct;374 readonly isLocked: boolean;375 readonly asLocked: {376 readonly who: AccountId32;377 readonly amount: u128;378 } & Struct;379 readonly isUnlocked: boolean;380 readonly asUnlocked: {381 readonly who: AccountId32;382 readonly amount: u128;383 } & Struct;384 readonly isFrozen: boolean;385 readonly asFrozen: {386 readonly who: AccountId32;387 readonly amount: u128;388 } & Struct;389 readonly isThawed: boolean;390 readonly asThawed: {391 readonly who: AccountId32;392 readonly amount: u128;393 } & Struct;394 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed' | 'Minted' | 'Burned' | 'Suspended' | 'Restored' | 'Upgraded' | 'Issued' | 'Rescinded' | 'Locked' | 'Unlocked' | 'Frozen' | 'Thawed';395 }396397 /** @name FrameSupportTokensMiscBalanceStatus (38) */398 interface FrameSupportTokensMiscBalanceStatus extends Enum {399 readonly isFree: boolean;400 readonly isReserved: boolean;401 readonly type: 'Free' | 'Reserved';402 }403404 /** @name PalletTransactionPaymentEvent (39) */405 interface PalletTransactionPaymentEvent extends Enum {406 readonly isTransactionFeePaid: boolean;407 readonly asTransactionFeePaid: {408 readonly who: AccountId32;409 readonly actualFee: u128;410 readonly tip: u128;411 } & Struct;412 readonly type: 'TransactionFeePaid';413 }414415 /** @name PalletTreasuryEvent (40) */416 interface PalletTreasuryEvent extends Enum {417 readonly isProposed: boolean;418 readonly asProposed: {419 readonly proposalIndex: u32;420 } & Struct;421 readonly isSpending: boolean;422 readonly asSpending: {423 readonly budgetRemaining: u128;424 } & Struct;425 readonly isAwarded: boolean;426 readonly asAwarded: {427 readonly proposalIndex: u32;428 readonly award: u128;429 readonly account: AccountId32;430 } & Struct;431 readonly isRejected: boolean;432 readonly asRejected: {433 readonly proposalIndex: u32;434 readonly slashed: u128;435 } & Struct;436 readonly isBurnt: boolean;437 readonly asBurnt: {438 readonly burntFunds: u128;439 } & Struct;440 readonly isRollover: boolean;441 readonly asRollover: {442 readonly rolloverBalance: u128;443 } & Struct;444 readonly isDeposit: boolean;445 readonly asDeposit: {446 readonly value: u128;447 } & Struct;448 readonly isSpendApproved: boolean;449 readonly asSpendApproved: {450 readonly proposalIndex: u32;451 readonly amount: u128;452 readonly beneficiary: AccountId32;453 } & Struct;454 readonly isUpdatedInactive: boolean;455 readonly asUpdatedInactive: {456 readonly reactivated: u128;457 readonly deactivated: u128;458 } & Struct;459 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved' | 'UpdatedInactive';460 }461462 /** @name PalletSudoEvent (41) */463 interface PalletSudoEvent extends Enum {464 readonly isSudid: boolean;465 readonly asSudid: {466 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;467 } & Struct;468 readonly isKeyChanged: boolean;469 readonly asKeyChanged: {470 readonly oldSudoer: Option<AccountId32>;471 } & Struct;472 readonly isSudoAsDone: boolean;473 readonly asSudoAsDone: {474 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;475 } & Struct;476 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';477 }478479 /** @name OrmlVestingModuleEvent (45) */480 interface OrmlVestingModuleEvent extends Enum {481 readonly isVestingScheduleAdded: boolean;482 readonly asVestingScheduleAdded: {483 readonly from: AccountId32;484 readonly to: AccountId32;485 readonly vestingSchedule: OrmlVestingVestingSchedule;486 } & Struct;487 readonly isClaimed: boolean;488 readonly asClaimed: {489 readonly who: AccountId32;490 readonly amount: u128;491 } & Struct;492 readonly isVestingSchedulesUpdated: boolean;493 readonly asVestingSchedulesUpdated: {494 readonly who: AccountId32;495 } & Struct;496 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';497 }498499 /** @name OrmlVestingVestingSchedule (46) */500 interface OrmlVestingVestingSchedule extends Struct {501 readonly start: u32;502 readonly period: u32;503 readonly periodCount: u32;504 readonly perPeriod: Compact<u128>;505 }506507 /** @name OrmlXtokensModuleEvent (48) */508 interface OrmlXtokensModuleEvent extends Enum {509 readonly isTransferredMultiAssets: boolean;510 readonly asTransferredMultiAssets: {511 readonly sender: AccountId32;512 readonly assets: XcmV3MultiassetMultiAssets;513 readonly fee: XcmV3MultiAsset;514 readonly dest: XcmV3MultiLocation;515 } & Struct;516 readonly type: 'TransferredMultiAssets';517 }518519 /** @name XcmV3MultiassetMultiAssets (49) */520 interface XcmV3MultiassetMultiAssets extends Vec<XcmV3MultiAsset> {}521522 /** @name XcmV3MultiAsset (51) */523 interface XcmV3MultiAsset extends Struct {524 readonly id: XcmV3MultiassetAssetId;525 readonly fun: XcmV3MultiassetFungibility;526 }527528 /** @name XcmV3MultiassetAssetId (52) */529 interface XcmV3MultiassetAssetId extends Enum {530 readonly isConcrete: boolean;531 readonly asConcrete: XcmV3MultiLocation;532 readonly isAbstract: boolean;533 readonly asAbstract: U8aFixed;534 readonly type: 'Concrete' | 'Abstract';535 }536537 /** @name XcmV3MultiLocation (53) */538 interface XcmV3MultiLocation extends Struct {539 readonly parents: u8;540 readonly interior: XcmV3Junctions;541 }542543 /** @name XcmV3Junctions (54) */544 interface XcmV3Junctions extends Enum {545 readonly isHere: boolean;546 readonly isX1: boolean;547 readonly asX1: XcmV3Junction;548 readonly isX2: boolean;549 readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>;550 readonly isX3: boolean;551 readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>;552 readonly isX4: boolean;553 readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;554 readonly isX5: boolean;555 readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;556 readonly isX6: boolean;557 readonly asX6: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;558 readonly isX7: boolean;559 readonly asX7: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;560 readonly isX8: boolean;561 readonly asX8: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>;562 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';563 }564565 /** @name XcmV3Junction (55) */566 interface XcmV3Junction extends Enum {567 readonly isParachain: boolean;568 readonly asParachain: Compact<u32>;569 readonly isAccountId32: boolean;570 readonly asAccountId32: {571 readonly network: Option<XcmV3JunctionNetworkId>;572 readonly id: U8aFixed;573 } & Struct;574 readonly isAccountIndex64: boolean;575 readonly asAccountIndex64: {576 readonly network: Option<XcmV3JunctionNetworkId>;577 readonly index: Compact<u64>;578 } & Struct;579 readonly isAccountKey20: boolean;580 readonly asAccountKey20: {581 readonly network: Option<XcmV3JunctionNetworkId>;582 readonly key: U8aFixed;583 } & Struct;584 readonly isPalletInstance: boolean;585 readonly asPalletInstance: u8;586 readonly isGeneralIndex: boolean;587 readonly asGeneralIndex: Compact<u128>;588 readonly isGeneralKey: boolean;589 readonly asGeneralKey: {590 readonly length: u8;591 readonly data: U8aFixed;592 } & Struct;593 readonly isOnlyChild: boolean;594 readonly isPlurality: boolean;595 readonly asPlurality: {596 readonly id: XcmV3JunctionBodyId;597 readonly part: XcmV3JunctionBodyPart;598 } & Struct;599 readonly isGlobalConsensus: boolean;600 readonly asGlobalConsensus: XcmV3JunctionNetworkId;601 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';602 }603604 /** @name XcmV3JunctionNetworkId (58) */605 interface XcmV3JunctionNetworkId extends Enum {606 readonly isByGenesis: boolean;607 readonly asByGenesis: U8aFixed;608 readonly isByFork: boolean;609 readonly asByFork: {610 readonly blockNumber: u64;611 readonly blockHash: U8aFixed;612 } & Struct;613 readonly isPolkadot: boolean;614 readonly isKusama: boolean;615 readonly isWestend: boolean;616 readonly isRococo: boolean;617 readonly isWococo: boolean;618 readonly isEthereum: boolean;619 readonly asEthereum: {620 readonly chainId: Compact<u64>;621 } & Struct;622 readonly isBitcoinCore: boolean;623 readonly isBitcoinCash: boolean;624 readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash';625 }626627 /** @name XcmV3JunctionBodyId (60) */628 interface XcmV3JunctionBodyId extends Enum {629 readonly isUnit: boolean;630 readonly isMoniker: boolean;631 readonly asMoniker: U8aFixed;632 readonly isIndex: boolean;633 readonly asIndex: Compact<u32>;634 readonly isExecutive: boolean;635 readonly isTechnical: boolean;636 readonly isLegislative: boolean;637 readonly isJudicial: boolean;638 readonly isDefense: boolean;639 readonly isAdministration: boolean;640 readonly isTreasury: boolean;641 readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';642 }643644 /** @name XcmV3JunctionBodyPart (61) */645 interface XcmV3JunctionBodyPart extends Enum {646 readonly isVoice: boolean;647 readonly isMembers: boolean;648 readonly asMembers: {649 readonly count: Compact<u32>;650 } & Struct;651 readonly isFraction: boolean;652 readonly asFraction: {653 readonly nom: Compact<u32>;654 readonly denom: Compact<u32>;655 } & Struct;656 readonly isAtLeastProportion: boolean;657 readonly asAtLeastProportion: {658 readonly nom: Compact<u32>;659 readonly denom: Compact<u32>;660 } & Struct;661 readonly isMoreThanProportion: boolean;662 readonly asMoreThanProportion: {663 readonly nom: Compact<u32>;664 readonly denom: Compact<u32>;665 } & Struct;666 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';667 }668669 /** @name XcmV3MultiassetFungibility (62) */670 interface XcmV3MultiassetFungibility extends Enum {671 readonly isFungible: boolean;672 readonly asFungible: Compact<u128>;673 readonly isNonFungible: boolean;674 readonly asNonFungible: XcmV3MultiassetAssetInstance;675 readonly type: 'Fungible' | 'NonFungible';676 }677678 /** @name XcmV3MultiassetAssetInstance (63) */679 interface XcmV3MultiassetAssetInstance extends Enum {680 readonly isUndefined: boolean;681 readonly isIndex: boolean;682 readonly asIndex: Compact<u128>;683 readonly isArray4: boolean;684 readonly asArray4: U8aFixed;685 readonly isArray8: boolean;686 readonly asArray8: U8aFixed;687 readonly isArray16: boolean;688 readonly asArray16: U8aFixed;689 readonly isArray32: boolean;690 readonly asArray32: U8aFixed;691 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32';692 }693694 /** @name OrmlTokensModuleEvent (66) */695 interface OrmlTokensModuleEvent extends Enum {696 readonly isEndowed: boolean;697 readonly asEndowed: {698 readonly currencyId: PalletForeignAssetsAssetIds;699 readonly who: AccountId32;700 readonly amount: u128;701 } & Struct;702 readonly isDustLost: boolean;703 readonly asDustLost: {704 readonly currencyId: PalletForeignAssetsAssetIds;705 readonly who: AccountId32;706 readonly amount: u128;707 } & Struct;708 readonly isTransfer: boolean;709 readonly asTransfer: {710 readonly currencyId: PalletForeignAssetsAssetIds;711 readonly from: AccountId32;712 readonly to: AccountId32;713 readonly amount: u128;714 } & Struct;715 readonly isReserved: boolean;716 readonly asReserved: {717 readonly currencyId: PalletForeignAssetsAssetIds;718 readonly who: AccountId32;719 readonly amount: u128;720 } & Struct;721 readonly isUnreserved: boolean;722 readonly asUnreserved: {723 readonly currencyId: PalletForeignAssetsAssetIds;724 readonly who: AccountId32;725 readonly amount: u128;726 } & Struct;727 readonly isReserveRepatriated: boolean;728 readonly asReserveRepatriated: {729 readonly currencyId: PalletForeignAssetsAssetIds;730 readonly from: AccountId32;731 readonly to: AccountId32;732 readonly amount: u128;733 readonly status: FrameSupportTokensMiscBalanceStatus;734 } & Struct;735 readonly isBalanceSet: boolean;736 readonly asBalanceSet: {737 readonly currencyId: PalletForeignAssetsAssetIds;738 readonly who: AccountId32;739 readonly free: u128;740 readonly reserved: u128;741 } & Struct;742 readonly isTotalIssuanceSet: boolean;743 readonly asTotalIssuanceSet: {744 readonly currencyId: PalletForeignAssetsAssetIds;745 readonly amount: u128;746 } & Struct;747 readonly isWithdrawn: boolean;748 readonly asWithdrawn: {749 readonly currencyId: PalletForeignAssetsAssetIds;750 readonly who: AccountId32;751 readonly amount: u128;752 } & Struct;753 readonly isSlashed: boolean;754 readonly asSlashed: {755 readonly currencyId: PalletForeignAssetsAssetIds;756 readonly who: AccountId32;757 readonly freeAmount: u128;758 readonly reservedAmount: u128;759 } & Struct;760 readonly isDeposited: boolean;761 readonly asDeposited: {762 readonly currencyId: PalletForeignAssetsAssetIds;763 readonly who: AccountId32;764 readonly amount: u128;765 } & Struct;766 readonly isLockSet: boolean;767 readonly asLockSet: {768 readonly lockId: U8aFixed;769 readonly currencyId: PalletForeignAssetsAssetIds;770 readonly who: AccountId32;771 readonly amount: u128;772 } & Struct;773 readonly isLockRemoved: boolean;774 readonly asLockRemoved: {775 readonly lockId: U8aFixed;776 readonly currencyId: PalletForeignAssetsAssetIds;777 readonly who: AccountId32;778 } & Struct;779 readonly isLocked: boolean;780 readonly asLocked: {781 readonly currencyId: PalletForeignAssetsAssetIds;782 readonly who: AccountId32;783 readonly amount: u128;784 } & Struct;785 readonly isUnlocked: boolean;786 readonly asUnlocked: {787 readonly currencyId: PalletForeignAssetsAssetIds;788 readonly who: AccountId32;789 readonly amount: u128;790 } & Struct;791 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked';792 }793794 /** @name PalletForeignAssetsAssetIds (67) */795 interface PalletForeignAssetsAssetIds extends Enum {796 readonly isForeignAssetId: boolean;797 readonly asForeignAssetId: u32;798 readonly isNativeAssetId: boolean;799 readonly asNativeAssetId: PalletForeignAssetsNativeCurrency;800 readonly type: 'ForeignAssetId' | 'NativeAssetId';801 }802803 /** @name PalletForeignAssetsNativeCurrency (68) */804 interface PalletForeignAssetsNativeCurrency extends Enum {805 readonly isHere: boolean;806 readonly isParent: boolean;807 readonly type: 'Here' | 'Parent';808 }809810 /** @name PalletIdentityEvent (69) */811 interface PalletIdentityEvent extends Enum {812 readonly isIdentitySet: boolean;813 readonly asIdentitySet: {814 readonly who: AccountId32;815 } & Struct;816 readonly isIdentityCleared: boolean;817 readonly asIdentityCleared: {818 readonly who: AccountId32;819 readonly deposit: u128;820 } & Struct;821 readonly isIdentityKilled: boolean;822 readonly asIdentityKilled: {823 readonly who: AccountId32;824 readonly deposit: u128;825 } & Struct;826 readonly isIdentitiesInserted: boolean;827 readonly asIdentitiesInserted: {828 readonly amount: u32;829 } & Struct;830 readonly isIdentitiesRemoved: boolean;831 readonly asIdentitiesRemoved: {832 readonly amount: u32;833 } & Struct;834 readonly isJudgementRequested: boolean;835 readonly asJudgementRequested: {836 readonly who: AccountId32;837 readonly registrarIndex: u32;838 } & Struct;839 readonly isJudgementUnrequested: boolean;840 readonly asJudgementUnrequested: {841 readonly who: AccountId32;842 readonly registrarIndex: u32;843 } & Struct;844 readonly isJudgementGiven: boolean;845 readonly asJudgementGiven: {846 readonly target: AccountId32;847 readonly registrarIndex: u32;848 } & Struct;849 readonly isRegistrarAdded: boolean;850 readonly asRegistrarAdded: {851 readonly registrarIndex: u32;852 } & Struct;853 readonly isSubIdentityAdded: boolean;854 readonly asSubIdentityAdded: {855 readonly sub: AccountId32;856 readonly main: AccountId32;857 readonly deposit: u128;858 } & Struct;859 readonly isSubIdentityRemoved: boolean;860 readonly asSubIdentityRemoved: {861 readonly sub: AccountId32;862 readonly main: AccountId32;863 readonly deposit: u128;864 } & Struct;865 readonly isSubIdentityRevoked: boolean;866 readonly asSubIdentityRevoked: {867 readonly sub: AccountId32;868 readonly main: AccountId32;869 readonly deposit: u128;870 } & Struct;871 readonly isSubIdentitiesInserted: boolean;872 readonly asSubIdentitiesInserted: {873 readonly amount: u32;874 } & Struct;875 readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked' | 'SubIdentitiesInserted';876 }877878 /** @name PalletPreimageEvent (70) */879 interface PalletPreimageEvent extends Enum {880 readonly isNoted: boolean;881 readonly asNoted: {882 readonly hash_: H256;883 } & Struct;884 readonly isRequested: boolean;885 readonly asRequested: {886 readonly hash_: H256;887 } & Struct;888 readonly isCleared: boolean;889 readonly asCleared: {890 readonly hash_: H256;891 } & Struct;892 readonly type: 'Noted' | 'Requested' | 'Cleared';893 }894895 /** @name CumulusPalletXcmpQueueEvent (71) */896 interface CumulusPalletXcmpQueueEvent extends Enum {897 readonly isSuccess: boolean;898 readonly asSuccess: {899 readonly messageHash: Option<U8aFixed>;900 readonly weight: SpWeightsWeightV2Weight;901 } & Struct;902 readonly isFail: boolean;903 readonly asFail: {904 readonly messageHash: Option<U8aFixed>;905 readonly error: XcmV3TraitsError;906 readonly weight: SpWeightsWeightV2Weight;907 } & Struct;908 readonly isBadVersion: boolean;909 readonly asBadVersion: {910 readonly messageHash: Option<U8aFixed>;911 } & Struct;912 readonly isBadFormat: boolean;913 readonly asBadFormat: {914 readonly messageHash: Option<U8aFixed>;915 } & Struct;916 readonly isXcmpMessageSent: boolean;917 readonly asXcmpMessageSent: {918 readonly messageHash: Option<U8aFixed>;919 } & Struct;920 readonly isOverweightEnqueued: boolean;921 readonly asOverweightEnqueued: {922 readonly sender: u32;923 readonly sentAt: u32;924 readonly index: u64;925 readonly required: SpWeightsWeightV2Weight;926 } & Struct;927 readonly isOverweightServiced: boolean;928 readonly asOverweightServiced: {929 readonly index: u64;930 readonly used: SpWeightsWeightV2Weight;931 } & Struct;932 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';933 }934935 /** @name XcmV3TraitsError (72) */936 interface XcmV3TraitsError extends Enum {937 readonly isOverflow: boolean;938 readonly isUnimplemented: boolean;939 readonly isUntrustedReserveLocation: boolean;940 readonly isUntrustedTeleportLocation: boolean;941 readonly isLocationFull: boolean;942 readonly isLocationNotInvertible: boolean;943 readonly isBadOrigin: boolean;944 readonly isInvalidLocation: boolean;945 readonly isAssetNotFound: boolean;946 readonly isFailedToTransactAsset: boolean;947 readonly isNotWithdrawable: boolean;948 readonly isLocationCannotHold: boolean;949 readonly isExceedsMaxMessageSize: boolean;950 readonly isDestinationUnsupported: boolean;951 readonly isTransport: boolean;952 readonly isUnroutable: boolean;953 readonly isUnknownClaim: boolean;954 readonly isFailedToDecode: boolean;955 readonly isMaxWeightInvalid: boolean;956 readonly isNotHoldingFees: boolean;957 readonly isTooExpensive: boolean;958 readonly isTrap: boolean;959 readonly asTrap: u64;960 readonly isExpectationFalse: boolean;961 readonly isPalletNotFound: boolean;962 readonly isNameMismatch: boolean;963 readonly isVersionIncompatible: boolean;964 readonly isHoldingWouldOverflow: boolean;965 readonly isExportError: boolean;966 readonly isReanchorFailed: boolean;967 readonly isNoDeal: boolean;968 readonly isFeesNotMet: boolean;969 readonly isLockError: boolean;970 readonly isNoPermission: boolean;971 readonly isUnanchored: boolean;972 readonly isNotDepositable: boolean;973 readonly isUnhandledXcmVersion: boolean;974 readonly isWeightLimitReached: boolean;975 readonly asWeightLimitReached: SpWeightsWeightV2Weight;976 readonly isBarrier: boolean;977 readonly isWeightNotComputable: boolean;978 readonly isExceedsStackLimit: boolean;979 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit';980 }981982 /** @name PalletXcmEvent (74) */983 interface PalletXcmEvent extends Enum {984 readonly isAttempted: boolean;985 readonly asAttempted: XcmV3TraitsOutcome;986 readonly isSent: boolean;987 readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;988 readonly isUnexpectedResponse: boolean;989 readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>;990 readonly isResponseReady: boolean;991 readonly asResponseReady: ITuple<[u64, XcmV3Response]>;992 readonly isNotified: boolean;993 readonly asNotified: ITuple<[u64, u8, u8]>;994 readonly isNotifyOverweight: boolean;995 readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;996 readonly isNotifyDispatchError: boolean;997 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;998 readonly isNotifyDecodeFailed: boolean;999 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;1000 readonly isInvalidResponder: boolean;1001 readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;1002 readonly isInvalidResponderVersion: boolean;1003 readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>;1004 readonly isResponseTaken: boolean;1005 readonly asResponseTaken: u64;1006 readonly isAssetsTrapped: boolean;1007 readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;1008 readonly isVersionChangeNotified: boolean;1009 readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;1010 readonly isSupportedVersionChanged: boolean;1011 readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>;1012 readonly isNotifyTargetSendFail: boolean;1013 readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>;1014 readonly isNotifyTargetMigrationFail: boolean;1015 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;1016 readonly isInvalidQuerierVersion: boolean;1017 readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>;1018 readonly isInvalidQuerier: boolean;1019 readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;1020 readonly isVersionNotifyStarted: boolean;1021 readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1022 readonly isVersionNotifyRequested: boolean;1023 readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1024 readonly isVersionNotifyUnrequested: boolean;1025 readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1026 readonly isFeesPaid: boolean;1027 readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;1028 readonly isAssetsClaimed: boolean;1029 readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;1030 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed';1031 }10321033 /** @name XcmV3TraitsOutcome (75) */1034 interface XcmV3TraitsOutcome extends Enum {1035 readonly isComplete: boolean;1036 readonly asComplete: SpWeightsWeightV2Weight;1037 readonly isIncomplete: boolean;1038 readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>;1039 readonly isError: boolean;1040 readonly asError: XcmV3TraitsError;1041 readonly type: 'Complete' | 'Incomplete' | 'Error';1042 }10431044 /** @name XcmV3Xcm (76) */1045 interface XcmV3Xcm extends Vec<XcmV3Instruction> {}10461047 /** @name XcmV3Instruction (78) */1048 interface XcmV3Instruction extends Enum {1049 readonly isWithdrawAsset: boolean;1050 readonly asWithdrawAsset: XcmV3MultiassetMultiAssets;1051 readonly isReserveAssetDeposited: boolean;1052 readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets;1053 readonly isReceiveTeleportedAsset: boolean;1054 readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets;1055 readonly isQueryResponse: boolean;1056 readonly asQueryResponse: {1057 readonly queryId: Compact<u64>;1058 readonly response: XcmV3Response;1059 readonly maxWeight: SpWeightsWeightV2Weight;1060 readonly querier: Option<XcmV3MultiLocation>;1061 } & Struct;1062 readonly isTransferAsset: boolean;1063 readonly asTransferAsset: {1064 readonly assets: XcmV3MultiassetMultiAssets;1065 readonly beneficiary: XcmV3MultiLocation;1066 } & Struct;1067 readonly isTransferReserveAsset: boolean;1068 readonly asTransferReserveAsset: {1069 readonly assets: XcmV3MultiassetMultiAssets;1070 readonly dest: XcmV3MultiLocation;1071 readonly xcm: XcmV3Xcm;1072 } & Struct;1073 readonly isTransact: boolean;1074 readonly asTransact: {1075 readonly originKind: XcmV2OriginKind;1076 readonly requireWeightAtMost: SpWeightsWeightV2Weight;1077 readonly call: XcmDoubleEncoded;1078 } & Struct;1079 readonly isHrmpNewChannelOpenRequest: boolean;1080 readonly asHrmpNewChannelOpenRequest: {1081 readonly sender: Compact<u32>;1082 readonly maxMessageSize: Compact<u32>;1083 readonly maxCapacity: Compact<u32>;1084 } & Struct;1085 readonly isHrmpChannelAccepted: boolean;1086 readonly asHrmpChannelAccepted: {1087 readonly recipient: Compact<u32>;1088 } & Struct;1089 readonly isHrmpChannelClosing: boolean;1090 readonly asHrmpChannelClosing: {1091 readonly initiator: Compact<u32>;1092 readonly sender: Compact<u32>;1093 readonly recipient: Compact<u32>;1094 } & Struct;1095 readonly isClearOrigin: boolean;1096 readonly isDescendOrigin: boolean;1097 readonly asDescendOrigin: XcmV3Junctions;1098 readonly isReportError: boolean;1099 readonly asReportError: XcmV3QueryResponseInfo;1100 readonly isDepositAsset: boolean;1101 readonly asDepositAsset: {1102 readonly assets: XcmV3MultiassetMultiAssetFilter;1103 readonly beneficiary: XcmV3MultiLocation;1104 } & Struct;1105 readonly isDepositReserveAsset: boolean;1106 readonly asDepositReserveAsset: {1107 readonly assets: XcmV3MultiassetMultiAssetFilter;1108 readonly dest: XcmV3MultiLocation;1109 readonly xcm: XcmV3Xcm;1110 } & Struct;1111 readonly isExchangeAsset: boolean;1112 readonly asExchangeAsset: {1113 readonly give: XcmV3MultiassetMultiAssetFilter;1114 readonly want: XcmV3MultiassetMultiAssets;1115 readonly maximal: bool;1116 } & Struct;1117 readonly isInitiateReserveWithdraw: boolean;1118 readonly asInitiateReserveWithdraw: {1119 readonly assets: XcmV3MultiassetMultiAssetFilter;1120 readonly reserve: XcmV3MultiLocation;1121 readonly xcm: XcmV3Xcm;1122 } & Struct;1123 readonly isInitiateTeleport: boolean;1124 readonly asInitiateTeleport: {1125 readonly assets: XcmV3MultiassetMultiAssetFilter;1126 readonly dest: XcmV3MultiLocation;1127 readonly xcm: XcmV3Xcm;1128 } & Struct;1129 readonly isReportHolding: boolean;1130 readonly asReportHolding: {1131 readonly responseInfo: XcmV3QueryResponseInfo;1132 readonly assets: XcmV3MultiassetMultiAssetFilter;1133 } & Struct;1134 readonly isBuyExecution: boolean;1135 readonly asBuyExecution: {1136 readonly fees: XcmV3MultiAsset;1137 readonly weightLimit: XcmV3WeightLimit;1138 } & Struct;1139 readonly isRefundSurplus: boolean;1140 readonly isSetErrorHandler: boolean;1141 readonly asSetErrorHandler: XcmV3Xcm;1142 readonly isSetAppendix: boolean;1143 readonly asSetAppendix: XcmV3Xcm;1144 readonly isClearError: boolean;1145 readonly isClaimAsset: boolean;1146 readonly asClaimAsset: {1147 readonly assets: XcmV3MultiassetMultiAssets;1148 readonly ticket: XcmV3MultiLocation;1149 } & Struct;1150 readonly isTrap: boolean;1151 readonly asTrap: Compact<u64>;1152 readonly isSubscribeVersion: boolean;1153 readonly asSubscribeVersion: {1154 readonly queryId: Compact<u64>;1155 readonly maxResponseWeight: SpWeightsWeightV2Weight;1156 } & Struct;1157 readonly isUnsubscribeVersion: boolean;1158 readonly isBurnAsset: boolean;1159 readonly asBurnAsset: XcmV3MultiassetMultiAssets;1160 readonly isExpectAsset: boolean;1161 readonly asExpectAsset: XcmV3MultiassetMultiAssets;1162 readonly isExpectOrigin: boolean;1163 readonly asExpectOrigin: Option<XcmV3MultiLocation>;1164 readonly isExpectError: boolean;1165 readonly asExpectError: Option<ITuple<[u32, XcmV3TraitsError]>>;1166 readonly isExpectTransactStatus: boolean;1167 readonly asExpectTransactStatus: XcmV3MaybeErrorCode;1168 readonly isQueryPallet: boolean;1169 readonly asQueryPallet: {1170 readonly moduleName: Bytes;1171 readonly responseInfo: XcmV3QueryResponseInfo;1172 } & Struct;1173 readonly isExpectPallet: boolean;1174 readonly asExpectPallet: {1175 readonly index: Compact<u32>;1176 readonly name: Bytes;1177 readonly moduleName: Bytes;1178 readonly crateMajor: Compact<u32>;1179 readonly minCrateMinor: Compact<u32>;1180 } & Struct;1181 readonly isReportTransactStatus: boolean;1182 readonly asReportTransactStatus: XcmV3QueryResponseInfo;1183 readonly isClearTransactStatus: boolean;1184 readonly isUniversalOrigin: boolean;1185 readonly asUniversalOrigin: XcmV3Junction;1186 readonly isExportMessage: boolean;1187 readonly asExportMessage: {1188 readonly network: XcmV3JunctionNetworkId;1189 readonly destination: XcmV3Junctions;1190 readonly xcm: XcmV3Xcm;1191 } & Struct;1192 readonly isLockAsset: boolean;1193 readonly asLockAsset: {1194 readonly asset: XcmV3MultiAsset;1195 readonly unlocker: XcmV3MultiLocation;1196 } & Struct;1197 readonly isUnlockAsset: boolean;1198 readonly asUnlockAsset: {1199 readonly asset: XcmV3MultiAsset;1200 readonly target: XcmV3MultiLocation;1201 } & Struct;1202 readonly isNoteUnlockable: boolean;1203 readonly asNoteUnlockable: {1204 readonly asset: XcmV3MultiAsset;1205 readonly owner: XcmV3MultiLocation;1206 } & Struct;1207 readonly isRequestUnlock: boolean;1208 readonly asRequestUnlock: {1209 readonly asset: XcmV3MultiAsset;1210 readonly locker: XcmV3MultiLocation;1211 } & Struct;1212 readonly isSetFeesMode: boolean;1213 readonly asSetFeesMode: {1214 readonly jitWithdraw: bool;1215 } & Struct;1216 readonly isSetTopic: boolean;1217 readonly asSetTopic: U8aFixed;1218 readonly isClearTopic: boolean;1219 readonly isAliasOrigin: boolean;1220 readonly asAliasOrigin: XcmV3MultiLocation;1221 readonly isUnpaidExecution: boolean;1222 readonly asUnpaidExecution: {1223 readonly weightLimit: XcmV3WeightLimit;1224 readonly checkOrigin: Option<XcmV3MultiLocation>;1225 } & Struct;1226 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution';1227 }12281229 /** @name XcmV3Response (79) */1230 interface XcmV3Response extends Enum {1231 readonly isNull: boolean;1232 readonly isAssets: boolean;1233 readonly asAssets: XcmV3MultiassetMultiAssets;1234 readonly isExecutionResult: boolean;1235 readonly asExecutionResult: Option<ITuple<[u32, XcmV3TraitsError]>>;1236 readonly isVersion: boolean;1237 readonly asVersion: u32;1238 readonly isPalletsInfo: boolean;1239 readonly asPalletsInfo: Vec<XcmV3PalletInfo>;1240 readonly isDispatchResult: boolean;1241 readonly asDispatchResult: XcmV3MaybeErrorCode;1242 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult';1243 }12441245 /** @name XcmV3PalletInfo (83) */1246 interface XcmV3PalletInfo extends Struct {1247 readonly index: Compact<u32>;1248 readonly name: Bytes;1249 readonly moduleName: Bytes;1250 readonly major: Compact<u32>;1251 readonly minor: Compact<u32>;1252 readonly patch: Compact<u32>;1253 }12541255 /** @name XcmV3MaybeErrorCode (86) */1256 interface XcmV3MaybeErrorCode extends Enum {1257 readonly isSuccess: boolean;1258 readonly isError: boolean;1259 readonly asError: Bytes;1260 readonly isTruncatedError: boolean;1261 readonly asTruncatedError: Bytes;1262 readonly type: 'Success' | 'Error' | 'TruncatedError';1263 }12641265 /** @name XcmV2OriginKind (89) */1266 interface XcmV2OriginKind extends Enum {1267 readonly isNative: boolean;1268 readonly isSovereignAccount: boolean;1269 readonly isSuperuser: boolean;1270 readonly isXcm: boolean;1271 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';1272 }12731274 /** @name XcmDoubleEncoded (90) */1275 interface XcmDoubleEncoded extends Struct {1276 readonly encoded: Bytes;1277 }12781279 /** @name XcmV3QueryResponseInfo (91) */1280 interface XcmV3QueryResponseInfo extends Struct {1281 readonly destination: XcmV3MultiLocation;1282 readonly queryId: Compact<u64>;1283 readonly maxWeight: SpWeightsWeightV2Weight;1284 }12851286 /** @name XcmV3MultiassetMultiAssetFilter (92) */1287 interface XcmV3MultiassetMultiAssetFilter extends Enum {1288 readonly isDefinite: boolean;1289 readonly asDefinite: XcmV3MultiassetMultiAssets;1290 readonly isWild: boolean;1291 readonly asWild: XcmV3MultiassetWildMultiAsset;1292 readonly type: 'Definite' | 'Wild';1293 }12941295 /** @name XcmV3MultiassetWildMultiAsset (93) */1296 interface XcmV3MultiassetWildMultiAsset extends Enum {1297 readonly isAll: boolean;1298 readonly isAllOf: boolean;1299 readonly asAllOf: {1300 readonly id: XcmV3MultiassetAssetId;1301 readonly fun: XcmV3MultiassetWildFungibility;1302 } & Struct;1303 readonly isAllCounted: boolean;1304 readonly asAllCounted: Compact<u32>;1305 readonly isAllOfCounted: boolean;1306 readonly asAllOfCounted: {1307 readonly id: XcmV3MultiassetAssetId;1308 readonly fun: XcmV3MultiassetWildFungibility;1309 readonly count: Compact<u32>;1310 } & Struct;1311 readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted';1312 }13131314 /** @name XcmV3MultiassetWildFungibility (94) */1315 interface XcmV3MultiassetWildFungibility extends Enum {1316 readonly isFungible: boolean;1317 readonly isNonFungible: boolean;1318 readonly type: 'Fungible' | 'NonFungible';1319 }13201321 /** @name XcmV3WeightLimit (96) */1322 interface XcmV3WeightLimit extends Enum {1323 readonly isUnlimited: boolean;1324 readonly isLimited: boolean;1325 readonly asLimited: SpWeightsWeightV2Weight;1326 readonly type: 'Unlimited' | 'Limited';1327 }13281329 /** @name XcmVersionedMultiAssets (97) */1330 interface XcmVersionedMultiAssets extends Enum {1331 readonly isV2: boolean;1332 readonly asV2: XcmV2MultiassetMultiAssets;1333 readonly isV3: boolean;1334 readonly asV3: XcmV3MultiassetMultiAssets;1335 readonly type: 'V2' | 'V3';1336 }13371338 /** @name XcmV2MultiassetMultiAssets (98) */1339 interface XcmV2MultiassetMultiAssets extends Vec<XcmV2MultiAsset> {}13401341 /** @name XcmV2MultiAsset (100) */1342 interface XcmV2MultiAsset extends Struct {1343 readonly id: XcmV2MultiassetAssetId;1344 readonly fun: XcmV2MultiassetFungibility;1345 }13461347 /** @name XcmV2MultiassetAssetId (101) */1348 interface XcmV2MultiassetAssetId extends Enum {1349 readonly isConcrete: boolean;1350 readonly asConcrete: XcmV2MultiLocation;1351 readonly isAbstract: boolean;1352 readonly asAbstract: Bytes;1353 readonly type: 'Concrete' | 'Abstract';1354 }13551356 /** @name XcmV2MultiLocation (102) */1357 interface XcmV2MultiLocation extends Struct {1358 readonly parents: u8;1359 readonly interior: XcmV2MultilocationJunctions;1360 }13611362 /** @name XcmV2MultilocationJunctions (103) */1363 interface XcmV2MultilocationJunctions extends Enum {1364 readonly isHere: boolean;1365 readonly isX1: boolean;1366 readonly asX1: XcmV2Junction;1367 readonly isX2: boolean;1368 readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>;1369 readonly isX3: boolean;1370 readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1371 readonly isX4: boolean;1372 readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1373 readonly isX5: boolean;1374 readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1375 readonly isX6: boolean;1376 readonly asX6: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1377 readonly isX7: boolean;1378 readonly asX7: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1379 readonly isX8: boolean;1380 readonly asX8: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>;1381 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1382 }13831384 /** @name XcmV2Junction (104) */1385 interface XcmV2Junction extends Enum {1386 readonly isParachain: boolean;1387 readonly asParachain: Compact<u32>;1388 readonly isAccountId32: boolean;1389 readonly asAccountId32: {1390 readonly network: XcmV2NetworkId;1391 readonly id: U8aFixed;1392 } & Struct;1393 readonly isAccountIndex64: boolean;1394 readonly asAccountIndex64: {1395 readonly network: XcmV2NetworkId;1396 readonly index: Compact<u64>;1397 } & Struct;1398 readonly isAccountKey20: boolean;1399 readonly asAccountKey20: {1400 readonly network: XcmV2NetworkId;1401 readonly key: U8aFixed;1402 } & Struct;1403 readonly isPalletInstance: boolean;1404 readonly asPalletInstance: u8;1405 readonly isGeneralIndex: boolean;1406 readonly asGeneralIndex: Compact<u128>;1407 readonly isGeneralKey: boolean;1408 readonly asGeneralKey: Bytes;1409 readonly isOnlyChild: boolean;1410 readonly isPlurality: boolean;1411 readonly asPlurality: {1412 readonly id: XcmV2BodyId;1413 readonly part: XcmV2BodyPart;1414 } & Struct;1415 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1416 }14171418 /** @name XcmV2NetworkId (105) */1419 interface XcmV2NetworkId extends Enum {1420 readonly isAny: boolean;1421 readonly isNamed: boolean;1422 readonly asNamed: Bytes;1423 readonly isPolkadot: boolean;1424 readonly isKusama: boolean;1425 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';1426 }14271428 /** @name XcmV2BodyId (107) */1429 interface XcmV2BodyId extends Enum {1430 readonly isUnit: boolean;1431 readonly isNamed: boolean;1432 readonly asNamed: Bytes;1433 readonly isIndex: boolean;1434 readonly asIndex: Compact<u32>;1435 readonly isExecutive: boolean;1436 readonly isTechnical: boolean;1437 readonly isLegislative: boolean;1438 readonly isJudicial: boolean;1439 readonly isDefense: boolean;1440 readonly isAdministration: boolean;1441 readonly isTreasury: boolean;1442 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';1443 }14441445 /** @name XcmV2BodyPart (108) */1446 interface XcmV2BodyPart extends Enum {1447 readonly isVoice: boolean;1448 readonly isMembers: boolean;1449 readonly asMembers: {1450 readonly count: Compact<u32>;1451 } & Struct;1452 readonly isFraction: boolean;1453 readonly asFraction: {1454 readonly nom: Compact<u32>;1455 readonly denom: Compact<u32>;1456 } & Struct;1457 readonly isAtLeastProportion: boolean;1458 readonly asAtLeastProportion: {1459 readonly nom: Compact<u32>;1460 readonly denom: Compact<u32>;1461 } & Struct;1462 readonly isMoreThanProportion: boolean;1463 readonly asMoreThanProportion: {1464 readonly nom: Compact<u32>;1465 readonly denom: Compact<u32>;1466 } & Struct;1467 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';1468 }14691470 /** @name XcmV2MultiassetFungibility (109) */1471 interface XcmV2MultiassetFungibility extends Enum {1472 readonly isFungible: boolean;1473 readonly asFungible: Compact<u128>;1474 readonly isNonFungible: boolean;1475 readonly asNonFungible: XcmV2MultiassetAssetInstance;1476 readonly type: 'Fungible' | 'NonFungible';1477 }14781479 /** @name XcmV2MultiassetAssetInstance (110) */1480 interface XcmV2MultiassetAssetInstance extends Enum {1481 readonly isUndefined: boolean;1482 readonly isIndex: boolean;1483 readonly asIndex: Compact<u128>;1484 readonly isArray4: boolean;1485 readonly asArray4: U8aFixed;1486 readonly isArray8: boolean;1487 readonly asArray8: U8aFixed;1488 readonly isArray16: boolean;1489 readonly asArray16: U8aFixed;1490 readonly isArray32: boolean;1491 readonly asArray32: U8aFixed;1492 readonly isBlob: boolean;1493 readonly asBlob: Bytes;1494 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';1495 }14961497 /** @name XcmVersionedMultiLocation (111) */1498 interface XcmVersionedMultiLocation extends Enum {1499 readonly isV2: boolean;1500 readonly asV2: XcmV2MultiLocation;1501 readonly isV3: boolean;1502 readonly asV3: XcmV3MultiLocation;1503 readonly type: 'V2' | 'V3';1504 }15051506 /** @name CumulusPalletXcmEvent (112) */1507 interface CumulusPalletXcmEvent extends Enum {1508 readonly isInvalidFormat: boolean;1509 readonly asInvalidFormat: U8aFixed;1510 readonly isUnsupportedVersion: boolean;1511 readonly asUnsupportedVersion: U8aFixed;1512 readonly isExecutedDownward: boolean;1513 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>;1514 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1515 }15161517 /** @name CumulusPalletDmpQueueEvent (113) */1518 interface CumulusPalletDmpQueueEvent extends Enum {1519 readonly isInvalidFormat: boolean;1520 readonly asInvalidFormat: {1521 readonly messageId: U8aFixed;1522 } & Struct;1523 readonly isUnsupportedVersion: boolean;1524 readonly asUnsupportedVersion: {1525 readonly messageId: U8aFixed;1526 } & Struct;1527 readonly isExecutedDownward: boolean;1528 readonly asExecutedDownward: {1529 readonly messageId: U8aFixed;1530 readonly outcome: XcmV3TraitsOutcome;1531 } & Struct;1532 readonly isWeightExhausted: boolean;1533 readonly asWeightExhausted: {1534 readonly messageId: U8aFixed;1535 readonly remainingWeight: SpWeightsWeightV2Weight;1536 readonly requiredWeight: SpWeightsWeightV2Weight;1537 } & Struct;1538 readonly isOverweightEnqueued: boolean;1539 readonly asOverweightEnqueued: {1540 readonly messageId: U8aFixed;1541 readonly overweightIndex: u64;1542 readonly requiredWeight: SpWeightsWeightV2Weight;1543 } & Struct;1544 readonly isOverweightServiced: boolean;1545 readonly asOverweightServiced: {1546 readonly overweightIndex: u64;1547 readonly weightUsed: SpWeightsWeightV2Weight;1548 } & Struct;1549 readonly isMaxMessagesExhausted: boolean;1550 readonly asMaxMessagesExhausted: {1551 readonly messageId: U8aFixed;1552 } & Struct;1553 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced' | 'MaxMessagesExhausted';1554 }15551556 /** @name PalletConfigurationEvent (114) */1557 interface PalletConfigurationEvent extends Enum {1558 readonly isNewDesiredCollators: boolean;1559 readonly asNewDesiredCollators: {1560 readonly desiredCollators: Option<u32>;1561 } & Struct;1562 readonly isNewCollatorLicenseBond: boolean;1563 readonly asNewCollatorLicenseBond: {1564 readonly bondCost: Option<u128>;1565 } & Struct;1566 readonly isNewCollatorKickThreshold: boolean;1567 readonly asNewCollatorKickThreshold: {1568 readonly lengthInBlocks: Option<u32>;1569 } & Struct;1570 readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';1571 }15721573 /** @name PalletCommonEvent (117) */1574 interface PalletCommonEvent extends Enum {1575 readonly isCollectionCreated: boolean;1576 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1577 readonly isCollectionDestroyed: boolean;1578 readonly asCollectionDestroyed: u32;1579 readonly isItemCreated: boolean;1580 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1581 readonly isItemDestroyed: boolean;1582 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1583 readonly isTransfer: boolean;1584 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1585 readonly isApproved: boolean;1586 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1587 readonly isApprovedForAll: boolean;1588 readonly asApprovedForAll: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1589 readonly isCollectionPropertySet: boolean;1590 readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;1591 readonly isCollectionPropertyDeleted: boolean;1592 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;1593 readonly isTokenPropertySet: boolean;1594 readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;1595 readonly isTokenPropertyDeleted: boolean;1596 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;1597 readonly isPropertyPermissionSet: boolean;1598 readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;1599 readonly isAllowListAddressAdded: boolean;1600 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1601 readonly isAllowListAddressRemoved: boolean;1602 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1603 readonly isCollectionAdminAdded: boolean;1604 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1605 readonly isCollectionAdminRemoved: boolean;1606 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1607 readonly isCollectionLimitSet: boolean;1608 readonly asCollectionLimitSet: u32;1609 readonly isCollectionOwnerChanged: boolean;1610 readonly asCollectionOwnerChanged: ITuple<[u32, AccountId32]>;1611 readonly isCollectionPermissionSet: boolean;1612 readonly asCollectionPermissionSet: u32;1613 readonly isCollectionSponsorSet: boolean;1614 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1615 readonly isSponsorshipConfirmed: boolean;1616 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1617 readonly isCollectionSponsorRemoved: boolean;1618 readonly asCollectionSponsorRemoved: u32;1619 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';1620 }16211622 /** @name PalletEvmAccountBasicCrossAccountIdRepr (120) */1623 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1624 readonly isSubstrate: boolean;1625 readonly asSubstrate: AccountId32;1626 readonly isEthereum: boolean;1627 readonly asEthereum: H160;1628 readonly type: 'Substrate' | 'Ethereum';1629 }16301631 /** @name PalletStructureEvent (123) */1632 interface PalletStructureEvent extends Enum {1633 readonly isExecuted: boolean;1634 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1635 readonly type: 'Executed';1636 }16371638 /** @name PalletAppPromotionEvent (124) */1639 interface PalletAppPromotionEvent extends Enum {1640 readonly isStakingRecalculation: boolean;1641 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1642 readonly isStake: boolean;1643 readonly asStake: ITuple<[AccountId32, u128]>;1644 readonly isUnstake: boolean;1645 readonly asUnstake: ITuple<[AccountId32, u128]>;1646 readonly isSetAdmin: boolean;1647 readonly asSetAdmin: AccountId32;1648 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1649 }16501651 /** @name PalletForeignAssetsModuleEvent (125) */1652 interface PalletForeignAssetsModuleEvent extends Enum {1653 readonly isForeignAssetRegistered: boolean;1654 readonly asForeignAssetRegistered: {1655 readonly assetId: u32;1656 readonly assetAddress: XcmV3MultiLocation;1657 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1658 } & Struct;1659 readonly isForeignAssetUpdated: boolean;1660 readonly asForeignAssetUpdated: {1661 readonly assetId: u32;1662 readonly assetAddress: XcmV3MultiLocation;1663 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1664 } & Struct;1665 readonly isAssetRegistered: boolean;1666 readonly asAssetRegistered: {1667 readonly assetId: PalletForeignAssetsAssetIds;1668 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1669 } & Struct;1670 readonly isAssetUpdated: boolean;1671 readonly asAssetUpdated: {1672 readonly assetId: PalletForeignAssetsAssetIds;1673 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1674 } & Struct;1675 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1676 }16771678 /** @name PalletForeignAssetsModuleAssetMetadata (126) */1679 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1680 readonly name: Bytes;1681 readonly symbol: Bytes;1682 readonly decimals: u8;1683 readonly minimalBalance: u128;1684 }16851686 /** @name PalletEvmEvent (129) */1687 interface PalletEvmEvent extends Enum {1688 readonly isLog: boolean;1689 readonly asLog: {1690 readonly log: EthereumLog;1691 } & Struct;1692 readonly isCreated: boolean;1693 readonly asCreated: {1694 readonly address: H160;1695 } & Struct;1696 readonly isCreatedFailed: boolean;1697 readonly asCreatedFailed: {1698 readonly address: H160;1699 } & Struct;1700 readonly isExecuted: boolean;1701 readonly asExecuted: {1702 readonly address: H160;1703 } & Struct;1704 readonly isExecutedFailed: boolean;1705 readonly asExecutedFailed: {1706 readonly address: H160;1707 } & Struct;1708 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1709 }17101711 /** @name EthereumLog (130) */1712 interface EthereumLog extends Struct {1713 readonly address: H160;1714 readonly topics: Vec<H256>;1715 readonly data: Bytes;1716 }17171718 /** @name PalletEthereumEvent (132) */1719 interface PalletEthereumEvent extends Enum {1720 readonly isExecuted: boolean;1721 readonly asExecuted: {1722 readonly from: H160;1723 readonly to: H160;1724 readonly transactionHash: H256;1725 readonly exitReason: EvmCoreErrorExitReason;1726 readonly extraData: Bytes;1727 } & Struct;1728 readonly type: 'Executed';1729 }17301731 /** @name EvmCoreErrorExitReason (133) */1732 interface EvmCoreErrorExitReason extends Enum {1733 readonly isSucceed: boolean;1734 readonly asSucceed: EvmCoreErrorExitSucceed;1735 readonly isError: boolean;1736 readonly asError: EvmCoreErrorExitError;1737 readonly isRevert: boolean;1738 readonly asRevert: EvmCoreErrorExitRevert;1739 readonly isFatal: boolean;1740 readonly asFatal: EvmCoreErrorExitFatal;1741 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1742 }17431744 /** @name EvmCoreErrorExitSucceed (134) */1745 interface EvmCoreErrorExitSucceed extends Enum {1746 readonly isStopped: boolean;1747 readonly isReturned: boolean;1748 readonly isSuicided: boolean;1749 readonly type: 'Stopped' | 'Returned' | 'Suicided';1750 }17511752 /** @name EvmCoreErrorExitError (135) */1753 interface EvmCoreErrorExitError extends Enum {1754 readonly isStackUnderflow: boolean;1755 readonly isStackOverflow: boolean;1756 readonly isInvalidJump: boolean;1757 readonly isInvalidRange: boolean;1758 readonly isDesignatedInvalid: boolean;1759 readonly isCallTooDeep: boolean;1760 readonly isCreateCollision: boolean;1761 readonly isCreateContractLimit: boolean;1762 readonly isOutOfOffset: boolean;1763 readonly isOutOfGas: boolean;1764 readonly isOutOfFund: boolean;1765 readonly isPcUnderflow: boolean;1766 readonly isCreateEmpty: boolean;1767 readonly isOther: boolean;1768 readonly asOther: Text;1769 readonly isMaxNonce: boolean;1770 readonly isInvalidCode: boolean;1771 readonly asInvalidCode: u8;1772 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'MaxNonce' | 'InvalidCode';1773 }17741775 /** @name EvmCoreErrorExitRevert (139) */1776 interface EvmCoreErrorExitRevert extends Enum {1777 readonly isReverted: boolean;1778 readonly type: 'Reverted';1779 }17801781 /** @name EvmCoreErrorExitFatal (140) */1782 interface EvmCoreErrorExitFatal extends Enum {1783 readonly isNotSupported: boolean;1784 readonly isUnhandledInterrupt: boolean;1785 readonly isCallErrorAsFatal: boolean;1786 readonly asCallErrorAsFatal: EvmCoreErrorExitError;1787 readonly isOther: boolean;1788 readonly asOther: Text;1789 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1790 }17911792 /** @name PalletEvmContractHelpersEvent (141) */1793 interface PalletEvmContractHelpersEvent extends Enum {1794 readonly isContractSponsorSet: boolean;1795 readonly asContractSponsorSet: ITuple<[H160, AccountId32]>;1796 readonly isContractSponsorshipConfirmed: boolean;1797 readonly asContractSponsorshipConfirmed: ITuple<[H160, AccountId32]>;1798 readonly isContractSponsorRemoved: boolean;1799 readonly asContractSponsorRemoved: H160;1800 readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved';1801 }18021803 /** @name PalletEvmMigrationEvent (142) */1804 interface PalletEvmMigrationEvent extends Enum {1805 readonly isTestEvent: boolean;1806 readonly type: 'TestEvent';1807 }18081809 /** @name PalletMaintenanceEvent (143) */1810 interface PalletMaintenanceEvent extends Enum {1811 readonly isMaintenanceEnabled: boolean;1812 readonly isMaintenanceDisabled: boolean;1813 readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled';1814 }18151816 /** @name PalletTestUtilsEvent (144) */1817 interface PalletTestUtilsEvent extends Enum {1818 readonly isValueIsSet: boolean;1819 readonly isShouldRollback: boolean;1820 readonly isBatchCompleted: boolean;1821 readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted';1822 }18231824 /** @name FrameSystemPhase (145) */1825 interface FrameSystemPhase extends Enum {1826 readonly isApplyExtrinsic: boolean;1827 readonly asApplyExtrinsic: u32;1828 readonly isFinalization: boolean;1829 readonly isInitialization: boolean;1830 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1831 }18321833 /** @name FrameSystemLastRuntimeUpgradeInfo (148) */1834 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1835 readonly specVersion: Compact<u32>;1836 readonly specName: Text;1837 }18381839 /** @name FrameSystemCall (149) */1840 interface FrameSystemCall extends Enum {1841 readonly isRemark: boolean;1842 readonly asRemark: {1843 readonly remark: Bytes;1844 } & Struct;1845 readonly isSetHeapPages: boolean;1846 readonly asSetHeapPages: {1847 readonly pages: u64;1848 } & Struct;1849 readonly isSetCode: boolean;1850 readonly asSetCode: {1851 readonly code: Bytes;1852 } & Struct;1853 readonly isSetCodeWithoutChecks: boolean;1854 readonly asSetCodeWithoutChecks: {1855 readonly code: Bytes;1856 } & Struct;1857 readonly isSetStorage: boolean;1858 readonly asSetStorage: {1859 readonly items: Vec<ITuple<[Bytes, Bytes]>>;1860 } & Struct;1861 readonly isKillStorage: boolean;1862 readonly asKillStorage: {1863 readonly keys_: Vec<Bytes>;1864 } & Struct;1865 readonly isKillPrefix: boolean;1866 readonly asKillPrefix: {1867 readonly prefix: Bytes;1868 readonly subkeys: u32;1869 } & Struct;1870 readonly isRemarkWithEvent: boolean;1871 readonly asRemarkWithEvent: {1872 readonly remark: Bytes;1873 } & Struct;1874 readonly type: 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1875 }18761877 /** @name FrameSystemLimitsBlockWeights (153) */1878 interface FrameSystemLimitsBlockWeights extends Struct {1879 readonly baseBlock: SpWeightsWeightV2Weight;1880 readonly maxBlock: SpWeightsWeightV2Weight;1881 readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;1882 }18831884 /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (154) */1885 interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {1886 readonly normal: FrameSystemLimitsWeightsPerClass;1887 readonly operational: FrameSystemLimitsWeightsPerClass;1888 readonly mandatory: FrameSystemLimitsWeightsPerClass;1889 }18901891 /** @name FrameSystemLimitsWeightsPerClass (155) */1892 interface FrameSystemLimitsWeightsPerClass extends Struct {1893 readonly baseExtrinsic: SpWeightsWeightV2Weight;1894 readonly maxExtrinsic: Option<SpWeightsWeightV2Weight>;1895 readonly maxTotal: Option<SpWeightsWeightV2Weight>;1896 readonly reserved: Option<SpWeightsWeightV2Weight>;1897 }18981899 /** @name FrameSystemLimitsBlockLength (157) */1900 interface FrameSystemLimitsBlockLength extends Struct {1901 readonly max: FrameSupportDispatchPerDispatchClassU32;1902 }19031904 /** @name FrameSupportDispatchPerDispatchClassU32 (158) */1905 interface FrameSupportDispatchPerDispatchClassU32 extends Struct {1906 readonly normal: u32;1907 readonly operational: u32;1908 readonly mandatory: u32;1909 }19101911 /** @name SpWeightsRuntimeDbWeight (159) */1912 interface SpWeightsRuntimeDbWeight extends Struct {1913 readonly read: u64;1914 readonly write: u64;1915 }19161917 /** @name SpVersionRuntimeVersion (160) */1918 interface SpVersionRuntimeVersion extends Struct {1919 readonly specName: Text;1920 readonly implName: Text;1921 readonly authoringVersion: u32;1922 readonly specVersion: u32;1923 readonly implVersion: u32;1924 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1925 readonly transactionVersion: u32;1926 readonly stateVersion: u8;1927 }19281929 /** @name FrameSystemError (165) */1930 interface FrameSystemError extends Enum {1931 readonly isInvalidSpecName: boolean;1932 readonly isSpecVersionNeedsToIncrease: boolean;1933 readonly isFailedToExtractRuntimeVersion: boolean;1934 readonly isNonDefaultComposite: boolean;1935 readonly isNonZeroRefCount: boolean;1936 readonly isCallFiltered: boolean;1937 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1938 }19391940 /** @name PalletStateTrieMigrationMigrationTask (166) */1941 interface PalletStateTrieMigrationMigrationTask extends Struct {1942 readonly progressTop: PalletStateTrieMigrationProgress;1943 readonly progressChild: PalletStateTrieMigrationProgress;1944 readonly size_: u32;1945 readonly topItems: u32;1946 readonly childItems: u32;1947 }19481949 /** @name PalletStateTrieMigrationProgress (167) */1950 interface PalletStateTrieMigrationProgress extends Enum {1951 readonly isToStart: boolean;1952 readonly isLastKey: boolean;1953 readonly asLastKey: Bytes;1954 readonly isComplete: boolean;1955 readonly type: 'ToStart' | 'LastKey' | 'Complete';1956 }19571958 /** @name PalletStateTrieMigrationMigrationLimits (170) */1959 interface PalletStateTrieMigrationMigrationLimits extends Struct {1960 readonly size_: u32;1961 readonly item: u32;1962 }19631964 /** @name PalletStateTrieMigrationCall (171) */1965 interface PalletStateTrieMigrationCall extends Enum {1966 readonly isControlAutoMigration: boolean;1967 readonly asControlAutoMigration: {1968 readonly maybeConfig: Option<PalletStateTrieMigrationMigrationLimits>;1969 } & Struct;1970 readonly isContinueMigrate: boolean;1971 readonly asContinueMigrate: {1972 readonly limits: PalletStateTrieMigrationMigrationLimits;1973 readonly realSizeUpper: u32;1974 readonly witnessTask: PalletStateTrieMigrationMigrationTask;1975 } & Struct;1976 readonly isMigrateCustomTop: boolean;1977 readonly asMigrateCustomTop: {1978 readonly keys_: Vec<Bytes>;1979 readonly witnessSize: u32;1980 } & Struct;1981 readonly isMigrateCustomChild: boolean;1982 readonly asMigrateCustomChild: {1983 readonly root: Bytes;1984 readonly childKeys: Vec<Bytes>;1985 readonly totalSize: u32;1986 } & Struct;1987 readonly isSetSignedMaxLimits: boolean;1988 readonly asSetSignedMaxLimits: {1989 readonly limits: PalletStateTrieMigrationMigrationLimits;1990 } & Struct;1991 readonly isForceSetProgress: boolean;1992 readonly asForceSetProgress: {1993 readonly progressTop: PalletStateTrieMigrationProgress;1994 readonly progressChild: PalletStateTrieMigrationProgress;1995 } & Struct;1996 readonly type: 'ControlAutoMigration' | 'ContinueMigrate' | 'MigrateCustomTop' | 'MigrateCustomChild' | 'SetSignedMaxLimits' | 'ForceSetProgress';1997 }19981999 /** @name PolkadotPrimitivesV4PersistedValidationData (172) */2000 interface PolkadotPrimitivesV4PersistedValidationData extends Struct {2001 readonly parentHead: Bytes;2002 readonly relayParentNumber: u32;2003 readonly relayParentStorageRoot: H256;2004 readonly maxPovSize: u32;2005 }20062007 /** @name PolkadotPrimitivesV4UpgradeRestriction (175) */2008 interface PolkadotPrimitivesV4UpgradeRestriction extends Enum {2009 readonly isPresent: boolean;2010 readonly type: 'Present';2011 }20122013 /** @name SpTrieStorageProof (176) */2014 interface SpTrieStorageProof extends Struct {2015 readonly trieNodes: BTreeSet<Bytes>;2016 }20172018 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (178) */2019 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {2020 readonly dmqMqcHead: H256;2021 readonly relayDispatchQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize;2022 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV4AbridgedHrmpChannel]>>;2023 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV4AbridgedHrmpChannel]>>;2024 }20252026 /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize (179) */2027 interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize extends Struct {2028 readonly remainingCount: u32;2029 readonly remainingSize: u32;2030 }20312032 /** @name PolkadotPrimitivesV4AbridgedHrmpChannel (182) */2033 interface PolkadotPrimitivesV4AbridgedHrmpChannel extends Struct {2034 readonly maxCapacity: u32;2035 readonly maxTotalSize: u32;2036 readonly maxMessageSize: u32;2037 readonly msgCount: u32;2038 readonly totalSize: u32;2039 readonly mqcHead: Option<H256>;2040 }20412042 /** @name PolkadotPrimitivesV4AbridgedHostConfiguration (184) */2043 interface PolkadotPrimitivesV4AbridgedHostConfiguration extends Struct {2044 readonly maxCodeSize: u32;2045 readonly maxHeadDataSize: u32;2046 readonly maxUpwardQueueCount: u32;2047 readonly maxUpwardQueueSize: u32;2048 readonly maxUpwardMessageSize: u32;2049 readonly maxUpwardMessageNumPerCandidate: u32;2050 readonly hrmpMaxMessageNumPerCandidate: u32;2051 readonly validationUpgradeCooldown: u32;2052 readonly validationUpgradeDelay: u32;2053 }20542055 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (190) */2056 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {2057 readonly recipient: u32;2058 readonly data: Bytes;2059 }20602061 /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (191) */2062 interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct {2063 readonly codeHash: H256;2064 readonly checkVersion: bool;2065 }20662067 /** @name CumulusPalletParachainSystemCall (192) */2068 interface CumulusPalletParachainSystemCall extends Enum {2069 readonly isSetValidationData: boolean;2070 readonly asSetValidationData: {2071 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;2072 } & Struct;2073 readonly isSudoSendUpwardMessage: boolean;2074 readonly asSudoSendUpwardMessage: {2075 readonly message: Bytes;2076 } & Struct;2077 readonly isAuthorizeUpgrade: boolean;2078 readonly asAuthorizeUpgrade: {2079 readonly codeHash: H256;2080 readonly checkVersion: bool;2081 } & Struct;2082 readonly isEnactAuthorizedUpgrade: boolean;2083 readonly asEnactAuthorizedUpgrade: {2084 readonly code: Bytes;2085 } & Struct;2086 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';2087 }20882089 /** @name CumulusPrimitivesParachainInherentParachainInherentData (193) */2090 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {2091 readonly validationData: PolkadotPrimitivesV4PersistedValidationData;2092 readonly relayChainState: SpTrieStorageProof;2093 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;2094 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;2095 }20962097 /** @name PolkadotCorePrimitivesInboundDownwardMessage (195) */2098 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {2099 readonly sentAt: u32;2100 readonly msg: Bytes;2101 }21022103 /** @name PolkadotCorePrimitivesInboundHrmpMessage (198) */2104 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {2105 readonly sentAt: u32;2106 readonly data: Bytes;2107 }21082109 /** @name CumulusPalletParachainSystemError (201) */2110 interface CumulusPalletParachainSystemError extends Enum {2111 readonly isOverlappingUpgrades: boolean;2112 readonly isProhibitedByPolkadot: boolean;2113 readonly isTooBig: boolean;2114 readonly isValidationDataNotAvailable: boolean;2115 readonly isHostConfigurationNotAvailable: boolean;2116 readonly isNotScheduled: boolean;2117 readonly isNothingAuthorized: boolean;2118 readonly isUnauthorized: boolean;2119 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';2120 }21212122 /** @name ParachainInfoCall (202) */2123 type ParachainInfoCall = Null;21242125 /** @name PalletCollatorSelectionCall (205) */2126 interface PalletCollatorSelectionCall extends Enum {2127 readonly isAddInvulnerable: boolean;2128 readonly asAddInvulnerable: {2129 readonly new_: AccountId32;2130 } & Struct;2131 readonly isRemoveInvulnerable: boolean;2132 readonly asRemoveInvulnerable: {2133 readonly who: AccountId32;2134 } & Struct;2135 readonly isGetLicense: boolean;2136 readonly isOnboard: boolean;2137 readonly isOffboard: boolean;2138 readonly isReleaseLicense: boolean;2139 readonly isForceReleaseLicense: boolean;2140 readonly asForceReleaseLicense: {2141 readonly who: AccountId32;2142 } & Struct;2143 readonly type: 'AddInvulnerable' | 'RemoveInvulnerable' | 'GetLicense' | 'Onboard' | 'Offboard' | 'ReleaseLicense' | 'ForceReleaseLicense';2144 }21452146 /** @name PalletCollatorSelectionError (206) */2147 interface PalletCollatorSelectionError extends Enum {2148 readonly isTooManyCandidates: boolean;2149 readonly isUnknown: boolean;2150 readonly isPermission: boolean;2151 readonly isAlreadyHoldingLicense: boolean;2152 readonly isNoLicense: boolean;2153 readonly isAlreadyCandidate: boolean;2154 readonly isNotCandidate: boolean;2155 readonly isTooManyInvulnerables: boolean;2156 readonly isTooFewInvulnerables: boolean;2157 readonly isAlreadyInvulnerable: boolean;2158 readonly isNotInvulnerable: boolean;2159 readonly isNoAssociatedValidatorId: boolean;2160 readonly isValidatorNotRegistered: boolean;2161 readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered';2162 }21632164 /** @name OpalRuntimeRuntimeCommonSessionKeys (209) */2165 interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {2166 readonly aura: SpConsensusAuraSr25519AppSr25519Public;2167 }21682169 /** @name SpConsensusAuraSr25519AppSr25519Public (210) */2170 interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}21712172 /** @name SpCoreSr25519Public (211) */2173 interface SpCoreSr25519Public extends U8aFixed {}21742175 /** @name SpCoreCryptoKeyTypeId (214) */2176 interface SpCoreCryptoKeyTypeId extends U8aFixed {}21772178 /** @name PalletSessionCall (215) */2179 interface PalletSessionCall extends Enum {2180 readonly isSetKeys: boolean;2181 readonly asSetKeys: {2182 readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;2183 readonly proof: Bytes;2184 } & Struct;2185 readonly isPurgeKeys: boolean;2186 readonly type: 'SetKeys' | 'PurgeKeys';2187 }21882189 /** @name PalletSessionError (216) */2190 interface PalletSessionError extends Enum {2191 readonly isInvalidProof: boolean;2192 readonly isNoAssociatedValidatorId: boolean;2193 readonly isDuplicatedKey: boolean;2194 readonly isNoKeys: boolean;2195 readonly isNoAccount: boolean;2196 readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';2197 }21982199 /** @name PalletBalancesBalanceLock (221) */2200 interface PalletBalancesBalanceLock extends Struct {2201 readonly id: U8aFixed;2202 readonly amount: u128;2203 readonly reasons: PalletBalancesReasons;2204 }22052206 /** @name PalletBalancesReasons (222) */2207 interface PalletBalancesReasons extends Enum {2208 readonly isFee: boolean;2209 readonly isMisc: boolean;2210 readonly isAll: boolean;2211 readonly type: 'Fee' | 'Misc' | 'All';2212 }22132214 /** @name PalletBalancesReserveData (225) */2215 interface PalletBalancesReserveData extends Struct {2216 readonly id: U8aFixed;2217 readonly amount: u128;2218 }22192220 /** @name PalletBalancesIdAmount (228) */2221 interface PalletBalancesIdAmount extends Struct {2222 readonly id: U8aFixed;2223 readonly amount: u128;2224 }22252226 /** @name PalletBalancesCall (231) */2227 interface PalletBalancesCall extends Enum {2228 readonly isTransferAllowDeath: boolean;2229 readonly asTransferAllowDeath: {2230 readonly dest: MultiAddress;2231 readonly value: Compact<u128>;2232 } & Struct;2233 readonly isSetBalanceDeprecated: boolean;2234 readonly asSetBalanceDeprecated: {2235 readonly who: MultiAddress;2236 readonly newFree: Compact<u128>;2237 readonly oldReserved: Compact<u128>;2238 } & Struct;2239 readonly isForceTransfer: boolean;2240 readonly asForceTransfer: {2241 readonly source: MultiAddress;2242 readonly dest: MultiAddress;2243 readonly value: Compact<u128>;2244 } & Struct;2245 readonly isTransferKeepAlive: boolean;2246 readonly asTransferKeepAlive: {2247 readonly dest: MultiAddress;2248 readonly value: Compact<u128>;2249 } & Struct;2250 readonly isTransferAll: boolean;2251 readonly asTransferAll: {2252 readonly dest: MultiAddress;2253 readonly keepAlive: bool;2254 } & Struct;2255 readonly isForceUnreserve: boolean;2256 readonly asForceUnreserve: {2257 readonly who: MultiAddress;2258 readonly amount: u128;2259 } & Struct;2260 readonly isUpgradeAccounts: boolean;2261 readonly asUpgradeAccounts: {2262 readonly who: Vec<AccountId32>;2263 } & Struct;2264 readonly isTransfer: boolean;2265 readonly asTransfer: {2266 readonly dest: MultiAddress;2267 readonly value: Compact<u128>;2268 } & Struct;2269 readonly isForceSetBalance: boolean;2270 readonly asForceSetBalance: {2271 readonly who: MultiAddress;2272 readonly newFree: Compact<u128>;2273 } & Struct;2274 readonly type: 'TransferAllowDeath' | 'SetBalanceDeprecated' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve' | 'UpgradeAccounts' | 'Transfer' | 'ForceSetBalance';2275 }22762277 /** @name PalletBalancesError (234) */2278 interface PalletBalancesError extends Enum {2279 readonly isVestingBalance: boolean;2280 readonly isLiquidityRestrictions: boolean;2281 readonly isInsufficientBalance: boolean;2282 readonly isExistentialDeposit: boolean;2283 readonly isExpendability: boolean;2284 readonly isExistingVestingSchedule: boolean;2285 readonly isDeadAccount: boolean;2286 readonly isTooManyReserves: boolean;2287 readonly isTooManyHolds: boolean;2288 readonly isTooManyFreezes: boolean;2289 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'Expendability' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves' | 'TooManyHolds' | 'TooManyFreezes';2290 }22912292 /** @name PalletTimestampCall (235) */2293 interface PalletTimestampCall extends Enum {2294 readonly isSet: boolean;2295 readonly asSet: {2296 readonly now: Compact<u64>;2297 } & Struct;2298 readonly type: 'Set';2299 }23002301 /** @name PalletTransactionPaymentReleases (237) */2302 interface PalletTransactionPaymentReleases extends Enum {2303 readonly isV1Ancient: boolean;2304 readonly isV2: boolean;2305 readonly type: 'V1Ancient' | 'V2';2306 }23072308 /** @name PalletTreasuryProposal (238) */2309 interface PalletTreasuryProposal extends Struct {2310 readonly proposer: AccountId32;2311 readonly value: u128;2312 readonly beneficiary: AccountId32;2313 readonly bond: u128;2314 }23152316 /** @name PalletTreasuryCall (240) */2317 interface PalletTreasuryCall extends Enum {2318 readonly isProposeSpend: boolean;2319 readonly asProposeSpend: {2320 readonly value: Compact<u128>;2321 readonly beneficiary: MultiAddress;2322 } & Struct;2323 readonly isRejectProposal: boolean;2324 readonly asRejectProposal: {2325 readonly proposalId: Compact<u32>;2326 } & Struct;2327 readonly isApproveProposal: boolean;2328 readonly asApproveProposal: {2329 readonly proposalId: Compact<u32>;2330 } & Struct;2331 readonly isSpend: boolean;2332 readonly asSpend: {2333 readonly amount: Compact<u128>;2334 readonly beneficiary: MultiAddress;2335 } & Struct;2336 readonly isRemoveApproval: boolean;2337 readonly asRemoveApproval: {2338 readonly proposalId: Compact<u32>;2339 } & Struct;2340 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';2341 }23422343 /** @name FrameSupportPalletId (242) */2344 interface FrameSupportPalletId extends U8aFixed {}23452346 /** @name PalletTreasuryError (243) */2347 interface PalletTreasuryError extends Enum {2348 readonly isInsufficientProposersBalance: boolean;2349 readonly isInvalidIndex: boolean;2350 readonly isTooManyApprovals: boolean;2351 readonly isInsufficientPermission: boolean;2352 readonly isProposalNotApproved: boolean;2353 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';2354 }23552356 /** @name PalletSudoCall (244) */2357 interface PalletSudoCall extends Enum {2358 readonly isSudo: boolean;2359 readonly asSudo: {2360 readonly call: Call;2361 } & Struct;2362 readonly isSudoUncheckedWeight: boolean;2363 readonly asSudoUncheckedWeight: {2364 readonly call: Call;2365 readonly weight: SpWeightsWeightV2Weight;2366 } & Struct;2367 readonly isSetKey: boolean;2368 readonly asSetKey: {2369 readonly new_: MultiAddress;2370 } & Struct;2371 readonly isSudoAs: boolean;2372 readonly asSudoAs: {2373 readonly who: MultiAddress;2374 readonly call: Call;2375 } & Struct;2376 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';2377 }23782379 /** @name OrmlVestingModuleCall (246) */2380 interface OrmlVestingModuleCall extends Enum {2381 readonly isClaim: boolean;2382 readonly isVestedTransfer: boolean;2383 readonly asVestedTransfer: {2384 readonly dest: MultiAddress;2385 readonly schedule: OrmlVestingVestingSchedule;2386 } & Struct;2387 readonly isUpdateVestingSchedules: boolean;2388 readonly asUpdateVestingSchedules: {2389 readonly who: MultiAddress;2390 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;2391 } & Struct;2392 readonly isClaimFor: boolean;2393 readonly asClaimFor: {2394 readonly dest: MultiAddress;2395 } & Struct;2396 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';2397 }23982399 /** @name OrmlXtokensModuleCall (248) */2400 interface OrmlXtokensModuleCall extends Enum {2401 readonly isTransfer: boolean;2402 readonly asTransfer: {2403 readonly currencyId: PalletForeignAssetsAssetIds;2404 readonly amount: u128;2405 readonly dest: XcmVersionedMultiLocation;2406 readonly destWeightLimit: XcmV3WeightLimit;2407 } & Struct;2408 readonly isTransferMultiasset: boolean;2409 readonly asTransferMultiasset: {2410 readonly asset: XcmVersionedMultiAsset;2411 readonly dest: XcmVersionedMultiLocation;2412 readonly destWeightLimit: XcmV3WeightLimit;2413 } & Struct;2414 readonly isTransferWithFee: boolean;2415 readonly asTransferWithFee: {2416 readonly currencyId: PalletForeignAssetsAssetIds;2417 readonly amount: u128;2418 readonly fee: u128;2419 readonly dest: XcmVersionedMultiLocation;2420 readonly destWeightLimit: XcmV3WeightLimit;2421 } & Struct;2422 readonly isTransferMultiassetWithFee: boolean;2423 readonly asTransferMultiassetWithFee: {2424 readonly asset: XcmVersionedMultiAsset;2425 readonly fee: XcmVersionedMultiAsset;2426 readonly dest: XcmVersionedMultiLocation;2427 readonly destWeightLimit: XcmV3WeightLimit;2428 } & Struct;2429 readonly isTransferMulticurrencies: boolean;2430 readonly asTransferMulticurrencies: {2431 readonly currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>;2432 readonly feeItem: u32;2433 readonly dest: XcmVersionedMultiLocation;2434 readonly destWeightLimit: XcmV3WeightLimit;2435 } & Struct;2436 readonly isTransferMultiassets: boolean;2437 readonly asTransferMultiassets: {2438 readonly assets: XcmVersionedMultiAssets;2439 readonly feeItem: u32;2440 readonly dest: XcmVersionedMultiLocation;2441 readonly destWeightLimit: XcmV3WeightLimit;2442 } & Struct;2443 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';2444 }24452446 /** @name XcmVersionedMultiAsset (249) */2447 interface XcmVersionedMultiAsset extends Enum {2448 readonly isV2: boolean;2449 readonly asV2: XcmV2MultiAsset;2450 readonly isV3: boolean;2451 readonly asV3: XcmV3MultiAsset;2452 readonly type: 'V2' | 'V3';2453 }24542455 /** @name OrmlTokensModuleCall (252) */2456 interface OrmlTokensModuleCall extends Enum {2457 readonly isTransfer: boolean;2458 readonly asTransfer: {2459 readonly dest: MultiAddress;2460 readonly currencyId: PalletForeignAssetsAssetIds;2461 readonly amount: Compact<u128>;2462 } & Struct;2463 readonly isTransferAll: boolean;2464 readonly asTransferAll: {2465 readonly dest: MultiAddress;2466 readonly currencyId: PalletForeignAssetsAssetIds;2467 readonly keepAlive: bool;2468 } & Struct;2469 readonly isTransferKeepAlive: boolean;2470 readonly asTransferKeepAlive: {2471 readonly dest: MultiAddress;2472 readonly currencyId: PalletForeignAssetsAssetIds;2473 readonly amount: Compact<u128>;2474 } & Struct;2475 readonly isForceTransfer: boolean;2476 readonly asForceTransfer: {2477 readonly source: MultiAddress;2478 readonly dest: MultiAddress;2479 readonly currencyId: PalletForeignAssetsAssetIds;2480 readonly amount: Compact<u128>;2481 } & Struct;2482 readonly isSetBalance: boolean;2483 readonly asSetBalance: {2484 readonly who: MultiAddress;2485 readonly currencyId: PalletForeignAssetsAssetIds;2486 readonly newFree: Compact<u128>;2487 readonly newReserved: Compact<u128>;2488 } & Struct;2489 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2490 }24912492 /** @name PalletIdentityCall (253) */2493 interface PalletIdentityCall extends Enum {2494 readonly isAddRegistrar: boolean;2495 readonly asAddRegistrar: {2496 readonly account: MultiAddress;2497 } & Struct;2498 readonly isSetIdentity: boolean;2499 readonly asSetIdentity: {2500 readonly info: PalletIdentityIdentityInfo;2501 } & Struct;2502 readonly isSetSubs: boolean;2503 readonly asSetSubs: {2504 readonly subs: Vec<ITuple<[AccountId32, Data]>>;2505 } & Struct;2506 readonly isClearIdentity: boolean;2507 readonly isRequestJudgement: boolean;2508 readonly asRequestJudgement: {2509 readonly regIndex: Compact<u32>;2510 readonly maxFee: Compact<u128>;2511 } & Struct;2512 readonly isCancelRequest: boolean;2513 readonly asCancelRequest: {2514 readonly regIndex: u32;2515 } & Struct;2516 readonly isSetFee: boolean;2517 readonly asSetFee: {2518 readonly index: Compact<u32>;2519 readonly fee: Compact<u128>;2520 } & Struct;2521 readonly isSetAccountId: boolean;2522 readonly asSetAccountId: {2523 readonly index: Compact<u32>;2524 readonly new_: MultiAddress;2525 } & Struct;2526 readonly isSetFields: boolean;2527 readonly asSetFields: {2528 readonly index: Compact<u32>;2529 readonly fields: PalletIdentityBitFlags;2530 } & Struct;2531 readonly isProvideJudgement: boolean;2532 readonly asProvideJudgement: {2533 readonly regIndex: Compact<u32>;2534 readonly target: MultiAddress;2535 readonly judgement: PalletIdentityJudgement;2536 readonly identity: H256;2537 } & Struct;2538 readonly isKillIdentity: boolean;2539 readonly asKillIdentity: {2540 readonly target: MultiAddress;2541 } & Struct;2542 readonly isAddSub: boolean;2543 readonly asAddSub: {2544 readonly sub: MultiAddress;2545 readonly data: Data;2546 } & Struct;2547 readonly isRenameSub: boolean;2548 readonly asRenameSub: {2549 readonly sub: MultiAddress;2550 readonly data: Data;2551 } & Struct;2552 readonly isRemoveSub: boolean;2553 readonly asRemoveSub: {2554 readonly sub: MultiAddress;2555 } & Struct;2556 readonly isQuitSub: boolean;2557 readonly isForceInsertIdentities: boolean;2558 readonly asForceInsertIdentities: {2559 readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;2560 } & Struct;2561 readonly isForceRemoveIdentities: boolean;2562 readonly asForceRemoveIdentities: {2563 readonly identities: Vec<AccountId32>;2564 } & Struct;2565 readonly isForceSetSubs: boolean;2566 readonly asForceSetSubs: {2567 readonly subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>;2568 } & Struct;2569 readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities' | 'ForceSetSubs';2570 }25712572 /** @name PalletIdentityIdentityInfo (254) */2573 interface PalletIdentityIdentityInfo extends Struct {2574 readonly additional: Vec<ITuple<[Data, Data]>>;2575 readonly display: Data;2576 readonly legal: Data;2577 readonly web: Data;2578 readonly riot: Data;2579 readonly email: Data;2580 readonly pgpFingerprint: Option<U8aFixed>;2581 readonly image: Data;2582 readonly twitter: Data;2583 }25842585 /** @name PalletIdentityBitFlags (290) */2586 interface PalletIdentityBitFlags extends Set {2587 readonly isDisplay: boolean;2588 readonly isLegal: boolean;2589 readonly isWeb: boolean;2590 readonly isRiot: boolean;2591 readonly isEmail: boolean;2592 readonly isPgpFingerprint: boolean;2593 readonly isImage: boolean;2594 readonly isTwitter: boolean;2595 }25962597 /** @name PalletIdentityIdentityField (291) */2598 interface PalletIdentityIdentityField extends Enum {2599 readonly isDisplay: boolean;2600 readonly isLegal: boolean;2601 readonly isWeb: boolean;2602 readonly isRiot: boolean;2603 readonly isEmail: boolean;2604 readonly isPgpFingerprint: boolean;2605 readonly isImage: boolean;2606 readonly isTwitter: boolean;2607 readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';2608 }26092610 /** @name PalletIdentityJudgement (292) */2611 interface PalletIdentityJudgement extends Enum {2612 readonly isUnknown: boolean;2613 readonly isFeePaid: boolean;2614 readonly asFeePaid: u128;2615 readonly isReasonable: boolean;2616 readonly isKnownGood: boolean;2617 readonly isOutOfDate: boolean;2618 readonly isLowQuality: boolean;2619 readonly isErroneous: boolean;2620 readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';2621 }26222623 /** @name PalletIdentityRegistration (295) */2624 interface PalletIdentityRegistration extends Struct {2625 readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;2626 readonly deposit: u128;2627 readonly info: PalletIdentityIdentityInfo;2628 }26292630 /** @name PalletPreimageCall (303) */2631 interface PalletPreimageCall extends Enum {2632 readonly isNotePreimage: boolean;2633 readonly asNotePreimage: {2634 readonly bytes: Bytes;2635 } & Struct;2636 readonly isUnnotePreimage: boolean;2637 readonly asUnnotePreimage: {2638 readonly hash_: H256;2639 } & Struct;2640 readonly isRequestPreimage: boolean;2641 readonly asRequestPreimage: {2642 readonly hash_: H256;2643 } & Struct;2644 readonly isUnrequestPreimage: boolean;2645 readonly asUnrequestPreimage: {2646 readonly hash_: H256;2647 } & Struct;2648 readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';2649 }26502651 /** @name CumulusPalletXcmpQueueCall (304) */2652 interface CumulusPalletXcmpQueueCall extends Enum {2653 readonly isServiceOverweight: boolean;2654 readonly asServiceOverweight: {2655 readonly index: u64;2656 readonly weightLimit: SpWeightsWeightV2Weight;2657 } & Struct;2658 readonly isSuspendXcmExecution: boolean;2659 readonly isResumeXcmExecution: boolean;2660 readonly isUpdateSuspendThreshold: boolean;2661 readonly asUpdateSuspendThreshold: {2662 readonly new_: u32;2663 } & Struct;2664 readonly isUpdateDropThreshold: boolean;2665 readonly asUpdateDropThreshold: {2666 readonly new_: u32;2667 } & Struct;2668 readonly isUpdateResumeThreshold: boolean;2669 readonly asUpdateResumeThreshold: {2670 readonly new_: u32;2671 } & Struct;2672 readonly isUpdateThresholdWeight: boolean;2673 readonly asUpdateThresholdWeight: {2674 readonly new_: SpWeightsWeightV2Weight;2675 } & Struct;2676 readonly isUpdateWeightRestrictDecay: boolean;2677 readonly asUpdateWeightRestrictDecay: {2678 readonly new_: SpWeightsWeightV2Weight;2679 } & Struct;2680 readonly isUpdateXcmpMaxIndividualWeight: boolean;2681 readonly asUpdateXcmpMaxIndividualWeight: {2682 readonly new_: SpWeightsWeightV2Weight;2683 } & Struct;2684 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2685 }26862687 /** @name PalletXcmCall (305) */2688 interface PalletXcmCall extends Enum {2689 readonly isSend: boolean;2690 readonly asSend: {2691 readonly dest: XcmVersionedMultiLocation;2692 readonly message: XcmVersionedXcm;2693 } & Struct;2694 readonly isTeleportAssets: boolean;2695 readonly asTeleportAssets: {2696 readonly dest: XcmVersionedMultiLocation;2697 readonly beneficiary: XcmVersionedMultiLocation;2698 readonly assets: XcmVersionedMultiAssets;2699 readonly feeAssetItem: u32;2700 } & Struct;2701 readonly isReserveTransferAssets: boolean;2702 readonly asReserveTransferAssets: {2703 readonly dest: XcmVersionedMultiLocation;2704 readonly beneficiary: XcmVersionedMultiLocation;2705 readonly assets: XcmVersionedMultiAssets;2706 readonly feeAssetItem: u32;2707 } & Struct;2708 readonly isExecute: boolean;2709 readonly asExecute: {2710 readonly message: XcmVersionedXcm;2711 readonly maxWeight: SpWeightsWeightV2Weight;2712 } & Struct;2713 readonly isForceXcmVersion: boolean;2714 readonly asForceXcmVersion: {2715 readonly location: XcmV3MultiLocation;2716 readonly xcmVersion: u32;2717 } & Struct;2718 readonly isForceDefaultXcmVersion: boolean;2719 readonly asForceDefaultXcmVersion: {2720 readonly maybeXcmVersion: Option<u32>;2721 } & Struct;2722 readonly isForceSubscribeVersionNotify: boolean;2723 readonly asForceSubscribeVersionNotify: {2724 readonly location: XcmVersionedMultiLocation;2725 } & Struct;2726 readonly isForceUnsubscribeVersionNotify: boolean;2727 readonly asForceUnsubscribeVersionNotify: {2728 readonly location: XcmVersionedMultiLocation;2729 } & Struct;2730 readonly isLimitedReserveTransferAssets: boolean;2731 readonly asLimitedReserveTransferAssets: {2732 readonly dest: XcmVersionedMultiLocation;2733 readonly beneficiary: XcmVersionedMultiLocation;2734 readonly assets: XcmVersionedMultiAssets;2735 readonly feeAssetItem: u32;2736 readonly weightLimit: XcmV3WeightLimit;2737 } & Struct;2738 readonly isLimitedTeleportAssets: boolean;2739 readonly asLimitedTeleportAssets: {2740 readonly dest: XcmVersionedMultiLocation;2741 readonly beneficiary: XcmVersionedMultiLocation;2742 readonly assets: XcmVersionedMultiAssets;2743 readonly feeAssetItem: u32;2744 readonly weightLimit: XcmV3WeightLimit;2745 } & Struct;2746 readonly isForceSuspension: boolean;2747 readonly asForceSuspension: {2748 readonly suspended: bool;2749 } & Struct;2750 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension';2751 }27522753 /** @name XcmVersionedXcm (306) */2754 interface XcmVersionedXcm extends Enum {2755 readonly isV2: boolean;2756 readonly asV2: XcmV2Xcm;2757 readonly isV3: boolean;2758 readonly asV3: XcmV3Xcm;2759 readonly type: 'V2' | 'V3';2760 }27612762 /** @name XcmV2Xcm (307) */2763 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}27642765 /** @name XcmV2Instruction (309) */2766 interface XcmV2Instruction extends Enum {2767 readonly isWithdrawAsset: boolean;2768 readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;2769 readonly isReserveAssetDeposited: boolean;2770 readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets;2771 readonly isReceiveTeleportedAsset: boolean;2772 readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets;2773 readonly isQueryResponse: boolean;2774 readonly asQueryResponse: {2775 readonly queryId: Compact<u64>;2776 readonly response: XcmV2Response;2777 readonly maxWeight: Compact<u64>;2778 } & Struct;2779 readonly isTransferAsset: boolean;2780 readonly asTransferAsset: {2781 readonly assets: XcmV2MultiassetMultiAssets;2782 readonly beneficiary: XcmV2MultiLocation;2783 } & Struct;2784 readonly isTransferReserveAsset: boolean;2785 readonly asTransferReserveAsset: {2786 readonly assets: XcmV2MultiassetMultiAssets;2787 readonly dest: XcmV2MultiLocation;2788 readonly xcm: XcmV2Xcm;2789 } & Struct;2790 readonly isTransact: boolean;2791 readonly asTransact: {2792 readonly originType: XcmV2OriginKind;2793 readonly requireWeightAtMost: Compact<u64>;2794 readonly call: XcmDoubleEncoded;2795 } & Struct;2796 readonly isHrmpNewChannelOpenRequest: boolean;2797 readonly asHrmpNewChannelOpenRequest: {2798 readonly sender: Compact<u32>;2799 readonly maxMessageSize: Compact<u32>;2800 readonly maxCapacity: Compact<u32>;2801 } & Struct;2802 readonly isHrmpChannelAccepted: boolean;2803 readonly asHrmpChannelAccepted: {2804 readonly recipient: Compact<u32>;2805 } & Struct;2806 readonly isHrmpChannelClosing: boolean;2807 readonly asHrmpChannelClosing: {2808 readonly initiator: Compact<u32>;2809 readonly sender: Compact<u32>;2810 readonly recipient: Compact<u32>;2811 } & Struct;2812 readonly isClearOrigin: boolean;2813 readonly isDescendOrigin: boolean;2814 readonly asDescendOrigin: XcmV2MultilocationJunctions;2815 readonly isReportError: boolean;2816 readonly asReportError: {2817 readonly queryId: Compact<u64>;2818 readonly dest: XcmV2MultiLocation;2819 readonly maxResponseWeight: Compact<u64>;2820 } & Struct;2821 readonly isDepositAsset: boolean;2822 readonly asDepositAsset: {2823 readonly assets: XcmV2MultiassetMultiAssetFilter;2824 readonly maxAssets: Compact<u32>;2825 readonly beneficiary: XcmV2MultiLocation;2826 } & Struct;2827 readonly isDepositReserveAsset: boolean;2828 readonly asDepositReserveAsset: {2829 readonly assets: XcmV2MultiassetMultiAssetFilter;2830 readonly maxAssets: Compact<u32>;2831 readonly dest: XcmV2MultiLocation;2832 readonly xcm: XcmV2Xcm;2833 } & Struct;2834 readonly isExchangeAsset: boolean;2835 readonly asExchangeAsset: {2836 readonly give: XcmV2MultiassetMultiAssetFilter;2837 readonly receive: XcmV2MultiassetMultiAssets;2838 } & Struct;2839 readonly isInitiateReserveWithdraw: boolean;2840 readonly asInitiateReserveWithdraw: {2841 readonly assets: XcmV2MultiassetMultiAssetFilter;2842 readonly reserve: XcmV2MultiLocation;2843 readonly xcm: XcmV2Xcm;2844 } & Struct;2845 readonly isInitiateTeleport: boolean;2846 readonly asInitiateTeleport: {2847 readonly assets: XcmV2MultiassetMultiAssetFilter;2848 readonly dest: XcmV2MultiLocation;2849 readonly xcm: XcmV2Xcm;2850 } & Struct;2851 readonly isQueryHolding: boolean;2852 readonly asQueryHolding: {2853 readonly queryId: Compact<u64>;2854 readonly dest: XcmV2MultiLocation;2855 readonly assets: XcmV2MultiassetMultiAssetFilter;2856 readonly maxResponseWeight: Compact<u64>;2857 } & Struct;2858 readonly isBuyExecution: boolean;2859 readonly asBuyExecution: {2860 readonly fees: XcmV2MultiAsset;2861 readonly weightLimit: XcmV2WeightLimit;2862 } & Struct;2863 readonly isRefundSurplus: boolean;2864 readonly isSetErrorHandler: boolean;2865 readonly asSetErrorHandler: XcmV2Xcm;2866 readonly isSetAppendix: boolean;2867 readonly asSetAppendix: XcmV2Xcm;2868 readonly isClearError: boolean;2869 readonly isClaimAsset: boolean;2870 readonly asClaimAsset: {2871 readonly assets: XcmV2MultiassetMultiAssets;2872 readonly ticket: XcmV2MultiLocation;2873 } & Struct;2874 readonly isTrap: boolean;2875 readonly asTrap: Compact<u64>;2876 readonly isSubscribeVersion: boolean;2877 readonly asSubscribeVersion: {2878 readonly queryId: Compact<u64>;2879 readonly maxResponseWeight: Compact<u64>;2880 } & Struct;2881 readonly isUnsubscribeVersion: boolean;2882 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';2883 }28842885 /** @name XcmV2Response (310) */2886 interface XcmV2Response extends Enum {2887 readonly isNull: boolean;2888 readonly isAssets: boolean;2889 readonly asAssets: XcmV2MultiassetMultiAssets;2890 readonly isExecutionResult: boolean;2891 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;2892 readonly isVersion: boolean;2893 readonly asVersion: u32;2894 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';2895 }28962897 /** @name XcmV2TraitsError (313) */2898 interface XcmV2TraitsError extends Enum {2899 readonly isOverflow: boolean;2900 readonly isUnimplemented: boolean;2901 readonly isUntrustedReserveLocation: boolean;2902 readonly isUntrustedTeleportLocation: boolean;2903 readonly isMultiLocationFull: boolean;2904 readonly isMultiLocationNotInvertible: boolean;2905 readonly isBadOrigin: boolean;2906 readonly isInvalidLocation: boolean;2907 readonly isAssetNotFound: boolean;2908 readonly isFailedToTransactAsset: boolean;2909 readonly isNotWithdrawable: boolean;2910 readonly isLocationCannotHold: boolean;2911 readonly isExceedsMaxMessageSize: boolean;2912 readonly isDestinationUnsupported: boolean;2913 readonly isTransport: boolean;2914 readonly isUnroutable: boolean;2915 readonly isUnknownClaim: boolean;2916 readonly isFailedToDecode: boolean;2917 readonly isMaxWeightInvalid: boolean;2918 readonly isNotHoldingFees: boolean;2919 readonly isTooExpensive: boolean;2920 readonly isTrap: boolean;2921 readonly asTrap: u64;2922 readonly isUnhandledXcmVersion: boolean;2923 readonly isWeightLimitReached: boolean;2924 readonly asWeightLimitReached: u64;2925 readonly isBarrier: boolean;2926 readonly isWeightNotComputable: boolean;2927 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';2928 }29292930 /** @name XcmV2MultiassetMultiAssetFilter (314) */2931 interface XcmV2MultiassetMultiAssetFilter extends Enum {2932 readonly isDefinite: boolean;2933 readonly asDefinite: XcmV2MultiassetMultiAssets;2934 readonly isWild: boolean;2935 readonly asWild: XcmV2MultiassetWildMultiAsset;2936 readonly type: 'Definite' | 'Wild';2937 }29382939 /** @name XcmV2MultiassetWildMultiAsset (315) */2940 interface XcmV2MultiassetWildMultiAsset extends Enum {2941 readonly isAll: boolean;2942 readonly isAllOf: boolean;2943 readonly asAllOf: {2944 readonly id: XcmV2MultiassetAssetId;2945 readonly fun: XcmV2MultiassetWildFungibility;2946 } & Struct;2947 readonly type: 'All' | 'AllOf';2948 }29492950 /** @name XcmV2MultiassetWildFungibility (316) */2951 interface XcmV2MultiassetWildFungibility extends Enum {2952 readonly isFungible: boolean;2953 readonly isNonFungible: boolean;2954 readonly type: 'Fungible' | 'NonFungible';2955 }29562957 /** @name XcmV2WeightLimit (317) */2958 interface XcmV2WeightLimit extends Enum {2959 readonly isUnlimited: boolean;2960 readonly isLimited: boolean;2961 readonly asLimited: Compact<u64>;2962 readonly type: 'Unlimited' | 'Limited';2963 }29642965 /** @name CumulusPalletXcmCall (326) */2966 type CumulusPalletXcmCall = Null;29672968 /** @name CumulusPalletDmpQueueCall (327) */2969 interface CumulusPalletDmpQueueCall extends Enum {2970 readonly isServiceOverweight: boolean;2971 readonly asServiceOverweight: {2972 readonly index: u64;2973 readonly weightLimit: SpWeightsWeightV2Weight;2974 } & Struct;2975 readonly type: 'ServiceOverweight';2976 }29772978 /** @name PalletInflationCall (328) */2979 interface PalletInflationCall extends Enum {2980 readonly isStartInflation: boolean;2981 readonly asStartInflation: {2982 readonly inflationStartRelayBlock: u32;2983 } & Struct;2984 readonly type: 'StartInflation';2985 }29862987 /** @name PalletUniqueCall (329) */2988 interface PalletUniqueCall extends Enum {2989 readonly isCreateCollection: boolean;2990 readonly asCreateCollection: {2991 readonly collectionName: Vec<u16>;2992 readonly collectionDescription: Vec<u16>;2993 readonly tokenPrefix: Bytes;2994 readonly mode: UpDataStructsCollectionMode;2995 } & Struct;2996 readonly isCreateCollectionEx: boolean;2997 readonly asCreateCollectionEx: {2998 readonly data: UpDataStructsCreateCollectionData;2999 } & Struct;3000 readonly isDestroyCollection: boolean;3001 readonly asDestroyCollection: {3002 readonly collectionId: u32;3003 } & Struct;3004 readonly isAddToAllowList: boolean;3005 readonly asAddToAllowList: {3006 readonly collectionId: u32;3007 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;3008 } & Struct;3009 readonly isRemoveFromAllowList: boolean;3010 readonly asRemoveFromAllowList: {3011 readonly collectionId: u32;3012 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;3013 } & Struct;3014 readonly isChangeCollectionOwner: boolean;3015 readonly asChangeCollectionOwner: {3016 readonly collectionId: u32;3017 readonly newOwner: AccountId32;3018 } & Struct;3019 readonly isAddCollectionAdmin: boolean;3020 readonly asAddCollectionAdmin: {3021 readonly collectionId: u32;3022 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;3023 } & Struct;3024 readonly isRemoveCollectionAdmin: boolean;3025 readonly asRemoveCollectionAdmin: {3026 readonly collectionId: u32;3027 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;3028 } & Struct;3029 readonly isSetCollectionSponsor: boolean;3030 readonly asSetCollectionSponsor: {3031 readonly collectionId: u32;3032 readonly newSponsor: AccountId32;3033 } & Struct;3034 readonly isConfirmSponsorship: boolean;3035 readonly asConfirmSponsorship: {3036 readonly collectionId: u32;3037 } & Struct;3038 readonly isRemoveCollectionSponsor: boolean;3039 readonly asRemoveCollectionSponsor: {3040 readonly collectionId: u32;3041 } & Struct;3042 readonly isCreateItem: boolean;3043 readonly asCreateItem: {3044 readonly collectionId: u32;3045 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3046 readonly data: UpDataStructsCreateItemData;3047 } & Struct;3048 readonly isCreateMultipleItems: boolean;3049 readonly asCreateMultipleItems: {3050 readonly collectionId: u32;3051 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3052 readonly itemsData: Vec<UpDataStructsCreateItemData>;3053 } & Struct;3054 readonly isSetCollectionProperties: boolean;3055 readonly asSetCollectionProperties: {3056 readonly collectionId: u32;3057 readonly properties: Vec<UpDataStructsProperty>;3058 } & Struct;3059 readonly isDeleteCollectionProperties: boolean;3060 readonly asDeleteCollectionProperties: {3061 readonly collectionId: u32;3062 readonly propertyKeys: Vec<Bytes>;3063 } & Struct;3064 readonly isSetTokenProperties: boolean;3065 readonly asSetTokenProperties: {3066 readonly collectionId: u32;3067 readonly tokenId: u32;3068 readonly properties: Vec<UpDataStructsProperty>;3069 } & Struct;3070 readonly isDeleteTokenProperties: boolean;3071 readonly asDeleteTokenProperties: {3072 readonly collectionId: u32;3073 readonly tokenId: u32;3074 readonly propertyKeys: Vec<Bytes>;3075 } & Struct;3076 readonly isSetTokenPropertyPermissions: boolean;3077 readonly asSetTokenPropertyPermissions: {3078 readonly collectionId: u32;3079 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3080 } & Struct;3081 readonly isCreateMultipleItemsEx: boolean;3082 readonly asCreateMultipleItemsEx: {3083 readonly collectionId: u32;3084 readonly data: UpDataStructsCreateItemExData;3085 } & Struct;3086 readonly isSetTransfersEnabledFlag: boolean;3087 readonly asSetTransfersEnabledFlag: {3088 readonly collectionId: u32;3089 readonly value: bool;3090 } & Struct;3091 readonly isBurnItem: boolean;3092 readonly asBurnItem: {3093 readonly collectionId: u32;3094 readonly itemId: u32;3095 readonly value: u128;3096 } & Struct;3097 readonly isBurnFrom: boolean;3098 readonly asBurnFrom: {3099 readonly collectionId: u32;3100 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3101 readonly itemId: u32;3102 readonly value: u128;3103 } & Struct;3104 readonly isTransfer: boolean;3105 readonly asTransfer: {3106 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;3107 readonly collectionId: u32;3108 readonly itemId: u32;3109 readonly value: u128;3110 } & Struct;3111 readonly isApprove: boolean;3112 readonly asApprove: {3113 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;3114 readonly collectionId: u32;3115 readonly itemId: u32;3116 readonly amount: u128;3117 } & Struct;3118 readonly isApproveFrom: boolean;3119 readonly asApproveFrom: {3120 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3121 readonly to: PalletEvmAccountBasicCrossAccountIdRepr;3122 readonly collectionId: u32;3123 readonly itemId: u32;3124 readonly amount: u128;3125 } & Struct;3126 readonly isTransferFrom: boolean;3127 readonly asTransferFrom: {3128 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;3129 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;3130 readonly collectionId: u32;3131 readonly itemId: u32;3132 readonly value: u128;3133 } & Struct;3134 readonly isSetCollectionLimits: boolean;3135 readonly asSetCollectionLimits: {3136 readonly collectionId: u32;3137 readonly newLimit: UpDataStructsCollectionLimits;3138 } & Struct;3139 readonly isSetCollectionPermissions: boolean;3140 readonly asSetCollectionPermissions: {3141 readonly collectionId: u32;3142 readonly newPermission: UpDataStructsCollectionPermissions;3143 } & Struct;3144 readonly isRepartition: boolean;3145 readonly asRepartition: {3146 readonly collectionId: u32;3147 readonly tokenId: u32;3148 readonly amount: u128;3149 } & Struct;3150 readonly isSetAllowanceForAll: boolean;3151 readonly asSetAllowanceForAll: {3152 readonly collectionId: u32;3153 readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;3154 readonly approve: bool;3155 } & Struct;3156 readonly isForceRepairCollection: boolean;3157 readonly asForceRepairCollection: {3158 readonly collectionId: u32;3159 } & Struct;3160 readonly isForceRepairItem: boolean;3161 readonly asForceRepairItem: {3162 readonly collectionId: u32;3163 readonly itemId: u32;3164 } & Struct;3165 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'ApproveFrom' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';3166 }31673168 /** @name UpDataStructsCollectionMode (334) */3169 interface UpDataStructsCollectionMode extends Enum {3170 readonly isNft: boolean;3171 readonly isFungible: boolean;3172 readonly asFungible: u8;3173 readonly isReFungible: boolean;3174 readonly type: 'Nft' | 'Fungible' | 'ReFungible';3175 }31763177 /** @name UpDataStructsCreateCollectionData (335) */3178 interface UpDataStructsCreateCollectionData extends Struct {3179 readonly mode: UpDataStructsCollectionMode;3180 readonly access: Option<UpDataStructsAccessMode>;3181 readonly name: Vec<u16>;3182 readonly description: Vec<u16>;3183 readonly tokenPrefix: Bytes;3184 readonly limits: Option<UpDataStructsCollectionLimits>;3185 readonly permissions: Option<UpDataStructsCollectionPermissions>;3186 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3187 readonly properties: Vec<UpDataStructsProperty>;3188 readonly adminList: Vec<PalletEvmAccountBasicCrossAccountIdRepr>;3189 readonly pendingSponsor: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3190 readonly flags: U8aFixed;3191 }31923193 /** @name UpDataStructsAccessMode (337) */3194 interface UpDataStructsAccessMode extends Enum {3195 readonly isNormal: boolean;3196 readonly isAllowList: boolean;3197 readonly type: 'Normal' | 'AllowList';3198 }31993200 /** @name UpDataStructsCollectionLimits (339) */3201 interface UpDataStructsCollectionLimits extends Struct {3202 readonly accountTokenOwnershipLimit: Option<u32>;3203 readonly sponsoredDataSize: Option<u32>;3204 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;3205 readonly tokenLimit: Option<u32>;3206 readonly sponsorTransferTimeout: Option<u32>;3207 readonly sponsorApproveTimeout: Option<u32>;3208 readonly ownerCanTransfer: Option<bool>;3209 readonly ownerCanDestroy: Option<bool>;3210 readonly transfersEnabled: Option<bool>;3211 }32123213 /** @name UpDataStructsSponsoringRateLimit (341) */3214 interface UpDataStructsSponsoringRateLimit extends Enum {3215 readonly isSponsoringDisabled: boolean;3216 readonly isBlocks: boolean;3217 readonly asBlocks: u32;3218 readonly type: 'SponsoringDisabled' | 'Blocks';3219 }32203221 /** @name UpDataStructsCollectionPermissions (344) */3222 interface UpDataStructsCollectionPermissions extends Struct {3223 readonly access: Option<UpDataStructsAccessMode>;3224 readonly mintMode: Option<bool>;3225 readonly nesting: Option<UpDataStructsNestingPermissions>;3226 }32273228 /** @name UpDataStructsNestingPermissions (346) */3229 interface UpDataStructsNestingPermissions extends Struct {3230 readonly tokenOwner: bool;3231 readonly collectionAdmin: bool;3232 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;3233 }32343235 /** @name UpDataStructsOwnerRestrictedSet (348) */3236 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}32373238 /** @name UpDataStructsPropertyKeyPermission (353) */3239 interface UpDataStructsPropertyKeyPermission extends Struct {3240 readonly key: Bytes;3241 readonly permission: UpDataStructsPropertyPermission;3242 }32433244 /** @name UpDataStructsPropertyPermission (354) */3245 interface UpDataStructsPropertyPermission extends Struct {3246 readonly mutable: bool;3247 readonly collectionAdmin: bool;3248 readonly tokenOwner: bool;3249 }32503251 /** @name UpDataStructsProperty (357) */3252 interface UpDataStructsProperty extends Struct {3253 readonly key: Bytes;3254 readonly value: Bytes;3255 }32563257 /** @name UpDataStructsCreateItemData (362) */3258 interface UpDataStructsCreateItemData extends Enum {3259 readonly isNft: boolean;3260 readonly asNft: UpDataStructsCreateNftData;3261 readonly isFungible: boolean;3262 readonly asFungible: UpDataStructsCreateFungibleData;3263 readonly isReFungible: boolean;3264 readonly asReFungible: UpDataStructsCreateReFungibleData;3265 readonly type: 'Nft' | 'Fungible' | 'ReFungible';3266 }32673268 /** @name UpDataStructsCreateNftData (363) */3269 interface UpDataStructsCreateNftData extends Struct {3270 readonly properties: Vec<UpDataStructsProperty>;3271 }32723273 /** @name UpDataStructsCreateFungibleData (364) */3274 interface UpDataStructsCreateFungibleData extends Struct {3275 readonly value: u128;3276 }32773278 /** @name UpDataStructsCreateReFungibleData (365) */3279 interface UpDataStructsCreateReFungibleData extends Struct {3280 readonly pieces: u128;3281 readonly properties: Vec<UpDataStructsProperty>;3282 }32833284 /** @name UpDataStructsCreateItemExData (368) */3285 interface UpDataStructsCreateItemExData extends Enum {3286 readonly isNft: boolean;3287 readonly asNft: Vec<UpDataStructsCreateNftExData>;3288 readonly isFungible: boolean;3289 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3290 readonly isRefungibleMultipleItems: boolean;3291 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExSingleOwner>;3292 readonly isRefungibleMultipleOwners: boolean;3293 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;3294 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';3295 }32963297 /** @name UpDataStructsCreateNftExData (370) */3298 interface UpDataStructsCreateNftExData extends Struct {3299 readonly properties: Vec<UpDataStructsProperty>;3300 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3301 }33023303 /** @name UpDataStructsCreateRefungibleExSingleOwner (377) */3304 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {3305 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;3306 readonly pieces: u128;3307 readonly properties: Vec<UpDataStructsProperty>;3308 }33093310 /** @name UpDataStructsCreateRefungibleExMultipleOwners (379) */3311 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {3312 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3313 readonly properties: Vec<UpDataStructsProperty>;3314 }33153316 /** @name PalletConfigurationCall (380) */3317 interface PalletConfigurationCall extends Enum {3318 readonly isSetWeightToFeeCoefficientOverride: boolean;3319 readonly asSetWeightToFeeCoefficientOverride: {3320 readonly coeff: Option<u64>;3321 } & Struct;3322 readonly isSetMinGasPriceOverride: boolean;3323 readonly asSetMinGasPriceOverride: {3324 readonly coeff: Option<u64>;3325 } & Struct;3326 readonly isSetAppPromotionConfigurationOverride: boolean;3327 readonly asSetAppPromotionConfigurationOverride: {3328 readonly configuration: PalletConfigurationAppPromotionConfiguration;3329 } & Struct;3330 readonly isSetCollatorSelectionDesiredCollators: boolean;3331 readonly asSetCollatorSelectionDesiredCollators: {3332 readonly max: Option<u32>;3333 } & Struct;3334 readonly isSetCollatorSelectionLicenseBond: boolean;3335 readonly asSetCollatorSelectionLicenseBond: {3336 readonly amount: Option<u128>;3337 } & Struct;3338 readonly isSetCollatorSelectionKickThreshold: boolean;3339 readonly asSetCollatorSelectionKickThreshold: {3340 readonly threshold: Option<u32>;3341 } & Struct;3342 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';3343 }33443345 /** @name PalletConfigurationAppPromotionConfiguration (382) */3346 interface PalletConfigurationAppPromotionConfiguration extends Struct {3347 readonly recalculationInterval: Option<u32>;3348 readonly pendingInterval: Option<u32>;3349 readonly intervalIncome: Option<Perbill>;3350 readonly maxStakersPerCalculation: Option<u8>;3351 }33523353 /** @name PalletStructureCall (386) */3354 type PalletStructureCall = Null;33553356 /** @name PalletAppPromotionCall (387) */3357 interface PalletAppPromotionCall extends Enum {3358 readonly isSetAdminAddress: boolean;3359 readonly asSetAdminAddress: {3360 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;3361 } & Struct;3362 readonly isStake: boolean;3363 readonly asStake: {3364 readonly amount: u128;3365 } & Struct;3366 readonly isUnstakeAll: boolean;3367 readonly isSponsorCollection: boolean;3368 readonly asSponsorCollection: {3369 readonly collectionId: u32;3370 } & Struct;3371 readonly isStopSponsoringCollection: boolean;3372 readonly asStopSponsoringCollection: {3373 readonly collectionId: u32;3374 } & Struct;3375 readonly isSponsorContract: boolean;3376 readonly asSponsorContract: {3377 readonly contractId: H160;3378 } & Struct;3379 readonly isStopSponsoringContract: boolean;3380 readonly asStopSponsoringContract: {3381 readonly contractId: H160;3382 } & Struct;3383 readonly isPayoutStakers: boolean;3384 readonly asPayoutStakers: {3385 readonly stakersNumber: Option<u8>;3386 } & Struct;3387 readonly isUnstakePartial: boolean;3388 readonly asUnstakePartial: {3389 readonly amount: u128;3390 } & Struct;3391 readonly isForceUnstake: boolean;3392 readonly asForceUnstake: {3393 readonly pendingBlocks: Vec<u32>;3394 } & Struct;3395 readonly type: 'SetAdminAddress' | 'Stake' | 'UnstakeAll' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers' | 'UnstakePartial' | 'ForceUnstake';3396 }33973398 /** @name PalletForeignAssetsModuleCall (388) */3399 interface PalletForeignAssetsModuleCall extends Enum {3400 readonly isRegisterForeignAsset: boolean;3401 readonly asRegisterForeignAsset: {3402 readonly owner: AccountId32;3403 readonly location: XcmVersionedMultiLocation;3404 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3405 } & Struct;3406 readonly isUpdateForeignAsset: boolean;3407 readonly asUpdateForeignAsset: {3408 readonly foreignAssetId: u32;3409 readonly location: XcmVersionedMultiLocation;3410 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3411 } & Struct;3412 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3413 }34143415 /** @name PalletEvmCall (389) */3416 interface PalletEvmCall extends Enum {3417 readonly isWithdraw: boolean;3418 readonly asWithdraw: {3419 readonly address: H160;3420 readonly value: u128;3421 } & Struct;3422 readonly isCall: boolean;3423 readonly asCall: {3424 readonly source: H160;3425 readonly target: H160;3426 readonly input: Bytes;3427 readonly value: U256;3428 readonly gasLimit: u64;3429 readonly maxFeePerGas: U256;3430 readonly maxPriorityFeePerGas: Option<U256>;3431 readonly nonce: Option<U256>;3432 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3433 } & Struct;3434 readonly isCreate: boolean;3435 readonly asCreate: {3436 readonly source: H160;3437 readonly init: Bytes;3438 readonly value: U256;3439 readonly gasLimit: u64;3440 readonly maxFeePerGas: U256;3441 readonly maxPriorityFeePerGas: Option<U256>;3442 readonly nonce: Option<U256>;3443 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3444 } & Struct;3445 readonly isCreate2: boolean;3446 readonly asCreate2: {3447 readonly source: H160;3448 readonly init: Bytes;3449 readonly salt: H256;3450 readonly value: U256;3451 readonly gasLimit: u64;3452 readonly maxFeePerGas: U256;3453 readonly maxPriorityFeePerGas: Option<U256>;3454 readonly nonce: Option<U256>;3455 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3456 } & Struct;3457 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3458 }34593460 /** @name PalletEthereumCall (395) */3461 interface PalletEthereumCall extends Enum {3462 readonly isTransact: boolean;3463 readonly asTransact: {3464 readonly transaction: EthereumTransactionTransactionV2;3465 } & Struct;3466 readonly type: 'Transact';3467 }34683469 /** @name EthereumTransactionTransactionV2 (396) */3470 interface EthereumTransactionTransactionV2 extends Enum {3471 readonly isLegacy: boolean;3472 readonly asLegacy: EthereumTransactionLegacyTransaction;3473 readonly isEip2930: boolean;3474 readonly asEip2930: EthereumTransactionEip2930Transaction;3475 readonly isEip1559: boolean;3476 readonly asEip1559: EthereumTransactionEip1559Transaction;3477 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3478 }34793480 /** @name EthereumTransactionLegacyTransaction (397) */3481 interface EthereumTransactionLegacyTransaction extends Struct {3482 readonly nonce: U256;3483 readonly gasPrice: U256;3484 readonly gasLimit: U256;3485 readonly action: EthereumTransactionTransactionAction;3486 readonly value: U256;3487 readonly input: Bytes;3488 readonly signature: EthereumTransactionTransactionSignature;3489 }34903491 /** @name EthereumTransactionTransactionAction (398) */3492 interface EthereumTransactionTransactionAction extends Enum {3493 readonly isCall: boolean;3494 readonly asCall: H160;3495 readonly isCreate: boolean;3496 readonly type: 'Call' | 'Create';3497 }34983499 /** @name EthereumTransactionTransactionSignature (399) */3500 interface EthereumTransactionTransactionSignature extends Struct {3501 readonly v: u64;3502 readonly r: H256;3503 readonly s: H256;3504 }35053506 /** @name EthereumTransactionEip2930Transaction (401) */3507 interface EthereumTransactionEip2930Transaction extends Struct {3508 readonly chainId: u64;3509 readonly nonce: U256;3510 readonly gasPrice: U256;3511 readonly gasLimit: U256;3512 readonly action: EthereumTransactionTransactionAction;3513 readonly value: U256;3514 readonly input: Bytes;3515 readonly accessList: Vec<EthereumTransactionAccessListItem>;3516 readonly oddYParity: bool;3517 readonly r: H256;3518 readonly s: H256;3519 }35203521 /** @name EthereumTransactionAccessListItem (403) */3522 interface EthereumTransactionAccessListItem extends Struct {3523 readonly address: H160;3524 readonly storageKeys: Vec<H256>;3525 }35263527 /** @name EthereumTransactionEip1559Transaction (404) */3528 interface EthereumTransactionEip1559Transaction extends Struct {3529 readonly chainId: u64;3530 readonly nonce: U256;3531 readonly maxPriorityFeePerGas: U256;3532 readonly maxFeePerGas: U256;3533 readonly gasLimit: U256;3534 readonly action: EthereumTransactionTransactionAction;3535 readonly value: U256;3536 readonly input: Bytes;3537 readonly accessList: Vec<EthereumTransactionAccessListItem>;3538 readonly oddYParity: bool;3539 readonly r: H256;3540 readonly s: H256;3541 }35423543 /** @name PalletEvmContractHelpersCall (405) */3544 interface PalletEvmContractHelpersCall extends Enum {3545 readonly isMigrateFromSelfSponsoring: boolean;3546 readonly asMigrateFromSelfSponsoring: {3547 readonly addresses: Vec<H160>;3548 } & Struct;3549 readonly type: 'MigrateFromSelfSponsoring';3550 }35513552 /** @name PalletEvmMigrationCall (407) */3553 interface PalletEvmMigrationCall extends Enum {3554 readonly isBegin: boolean;3555 readonly asBegin: {3556 readonly address: H160;3557 } & Struct;3558 readonly isSetData: boolean;3559 readonly asSetData: {3560 readonly address: H160;3561 readonly data: Vec<ITuple<[H256, H256]>>;3562 } & Struct;3563 readonly isFinish: boolean;3564 readonly asFinish: {3565 readonly address: H160;3566 readonly code: Bytes;3567 } & Struct;3568 readonly isInsertEthLogs: boolean;3569 readonly asInsertEthLogs: {3570 readonly logs: Vec<EthereumLog>;3571 } & Struct;3572 readonly isInsertEvents: boolean;3573 readonly asInsertEvents: {3574 readonly events: Vec<Bytes>;3575 } & Struct;3576 readonly isRemoveRmrkData: boolean;3577 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'RemoveRmrkData';3578 }35793580 /** @name PalletMaintenanceCall (411) */3581 interface PalletMaintenanceCall extends Enum {3582 readonly isEnable: boolean;3583 readonly isDisable: boolean;3584 readonly isExecutePreimage: boolean;3585 readonly asExecutePreimage: {3586 readonly hash_: H256;3587 readonly weightBound: SpWeightsWeightV2Weight;3588 } & Struct;3589 readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';3590 }35913592 /** @name PalletTestUtilsCall (412) */3593 interface PalletTestUtilsCall extends Enum {3594 readonly isEnable: boolean;3595 readonly isSetTestValue: boolean;3596 readonly asSetTestValue: {3597 readonly value: u32;3598 } & Struct;3599 readonly isSetTestValueAndRollback: boolean;3600 readonly asSetTestValueAndRollback: {3601 readonly value: u32;3602 } & Struct;3603 readonly isIncTestValue: boolean;3604 readonly isJustTakeFee: boolean;3605 readonly isBatchAll: boolean;3606 readonly asBatchAll: {3607 readonly calls: Vec<Call>;3608 } & Struct;3609 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';3610 }36113612 /** @name PalletSudoError (414) */3613 interface PalletSudoError extends Enum {3614 readonly isRequireSudo: boolean;3615 readonly type: 'RequireSudo';3616 }36173618 /** @name OrmlVestingModuleError (416) */3619 interface OrmlVestingModuleError extends Enum {3620 readonly isZeroVestingPeriod: boolean;3621 readonly isZeroVestingPeriodCount: boolean;3622 readonly isInsufficientBalanceToLock: boolean;3623 readonly isTooManyVestingSchedules: boolean;3624 readonly isAmountLow: boolean;3625 readonly isMaxVestingSchedulesExceeded: boolean;3626 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3627 }36283629 /** @name OrmlXtokensModuleError (417) */3630 interface OrmlXtokensModuleError extends Enum {3631 readonly isAssetHasNoReserve: boolean;3632 readonly isNotCrossChainTransfer: boolean;3633 readonly isInvalidDest: boolean;3634 readonly isNotCrossChainTransferableCurrency: boolean;3635 readonly isUnweighableMessage: boolean;3636 readonly isXcmExecutionFailed: boolean;3637 readonly isCannotReanchor: boolean;3638 readonly isInvalidAncestry: boolean;3639 readonly isInvalidAsset: boolean;3640 readonly isDestinationNotInvertible: boolean;3641 readonly isBadVersion: boolean;3642 readonly isDistinctReserveForAssetAndFee: boolean;3643 readonly isZeroFee: boolean;3644 readonly isZeroAmount: boolean;3645 readonly isTooManyAssetsBeingSent: boolean;3646 readonly isAssetIndexNonExistent: boolean;3647 readonly isFeeNotEnough: boolean;3648 readonly isNotSupportedMultiLocation: boolean;3649 readonly isMinXcmFeeNotDefined: boolean;3650 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3651 }36523653 /** @name OrmlTokensBalanceLock (420) */3654 interface OrmlTokensBalanceLock extends Struct {3655 readonly id: U8aFixed;3656 readonly amount: u128;3657 }36583659 /** @name OrmlTokensAccountData (422) */3660 interface OrmlTokensAccountData extends Struct {3661 readonly free: u128;3662 readonly reserved: u128;3663 readonly frozen: u128;3664 }36653666 /** @name OrmlTokensReserveData (424) */3667 interface OrmlTokensReserveData extends Struct {3668 readonly id: Null;3669 readonly amount: u128;3670 }36713672 /** @name OrmlTokensModuleError (426) */3673 interface OrmlTokensModuleError extends Enum {3674 readonly isBalanceTooLow: boolean;3675 readonly isAmountIntoBalanceFailed: boolean;3676 readonly isLiquidityRestrictions: boolean;3677 readonly isMaxLocksExceeded: boolean;3678 readonly isKeepAlive: boolean;3679 readonly isExistentialDeposit: boolean;3680 readonly isDeadAccount: boolean;3681 readonly isTooManyReserves: boolean;3682 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3683 }36843685 /** @name PalletIdentityRegistrarInfo (431) */3686 interface PalletIdentityRegistrarInfo extends Struct {3687 readonly account: AccountId32;3688 readonly fee: u128;3689 readonly fields: PalletIdentityBitFlags;3690 }36913692 /** @name PalletIdentityError (433) */3693 interface PalletIdentityError extends Enum {3694 readonly isTooManySubAccounts: boolean;3695 readonly isNotFound: boolean;3696 readonly isNotNamed: boolean;3697 readonly isEmptyIndex: boolean;3698 readonly isFeeChanged: boolean;3699 readonly isNoIdentity: boolean;3700 readonly isStickyJudgement: boolean;3701 readonly isJudgementGiven: boolean;3702 readonly isInvalidJudgement: boolean;3703 readonly isInvalidIndex: boolean;3704 readonly isInvalidTarget: boolean;3705 readonly isTooManyFields: boolean;3706 readonly isTooManyRegistrars: boolean;3707 readonly isAlreadyClaimed: boolean;3708 readonly isNotSub: boolean;3709 readonly isNotOwned: boolean;3710 readonly isJudgementForDifferentIdentity: boolean;3711 readonly isJudgementPaymentFailed: boolean;3712 readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';3713 }37143715 /** @name PalletPreimageRequestStatus (434) */3716 interface PalletPreimageRequestStatus extends Enum {3717 readonly isUnrequested: boolean;3718 readonly asUnrequested: {3719 readonly deposit: ITuple<[AccountId32, u128]>;3720 readonly len: u32;3721 } & Struct;3722 readonly isRequested: boolean;3723 readonly asRequested: {3724 readonly deposit: Option<ITuple<[AccountId32, u128]>>;3725 readonly count: u32;3726 readonly len: Option<u32>;3727 } & Struct;3728 readonly type: 'Unrequested' | 'Requested';3729 }37303731 /** @name PalletPreimageError (439) */3732 interface PalletPreimageError extends Enum {3733 readonly isTooBig: boolean;3734 readonly isAlreadyNoted: boolean;3735 readonly isNotAuthorized: boolean;3736 readonly isNotNoted: boolean;3737 readonly isRequested: boolean;3738 readonly isNotRequested: boolean;3739 readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';3740 }37413742 /** @name CumulusPalletXcmpQueueInboundChannelDetails (441) */3743 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3744 readonly sender: u32;3745 readonly state: CumulusPalletXcmpQueueInboundState;3746 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3747 }37483749 /** @name CumulusPalletXcmpQueueInboundState (442) */3750 interface CumulusPalletXcmpQueueInboundState extends Enum {3751 readonly isOk: boolean;3752 readonly isSuspended: boolean;3753 readonly type: 'Ok' | 'Suspended';3754 }37553756 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (445) */3757 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3758 readonly isConcatenatedVersionedXcm: boolean;3759 readonly isConcatenatedEncodedBlob: boolean;3760 readonly isSignals: boolean;3761 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3762 }37633764 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (448) */3765 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3766 readonly recipient: u32;3767 readonly state: CumulusPalletXcmpQueueOutboundState;3768 readonly signalsExist: bool;3769 readonly firstIndex: u16;3770 readonly lastIndex: u16;3771 }37723773 /** @name CumulusPalletXcmpQueueOutboundState (449) */3774 interface CumulusPalletXcmpQueueOutboundState extends Enum {3775 readonly isOk: boolean;3776 readonly isSuspended: boolean;3777 readonly type: 'Ok' | 'Suspended';3778 }37793780 /** @name CumulusPalletXcmpQueueQueueConfigData (451) */3781 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3782 readonly suspendThreshold: u32;3783 readonly dropThreshold: u32;3784 readonly resumeThreshold: u32;3785 readonly thresholdWeight: SpWeightsWeightV2Weight;3786 readonly weightRestrictDecay: SpWeightsWeightV2Weight;3787 readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;3788 }37893790 /** @name CumulusPalletXcmpQueueError (453) */3791 interface CumulusPalletXcmpQueueError extends Enum {3792 readonly isFailedToSend: boolean;3793 readonly isBadXcmOrigin: boolean;3794 readonly isBadXcm: boolean;3795 readonly isBadOverweightIndex: boolean;3796 readonly isWeightOverLimit: boolean;3797 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3798 }37993800 /** @name PalletXcmQueryStatus (454) */3801 interface PalletXcmQueryStatus extends Enum {3802 readonly isPending: boolean;3803 readonly asPending: {3804 readonly responder: XcmVersionedMultiLocation;3805 readonly maybeMatchQuerier: Option<XcmVersionedMultiLocation>;3806 readonly maybeNotify: Option<ITuple<[u8, u8]>>;3807 readonly timeout: u32;3808 } & Struct;3809 readonly isVersionNotifier: boolean;3810 readonly asVersionNotifier: {3811 readonly origin: XcmVersionedMultiLocation;3812 readonly isActive: bool;3813 } & Struct;3814 readonly isReady: boolean;3815 readonly asReady: {3816 readonly response: XcmVersionedResponse;3817 readonly at: u32;3818 } & Struct;3819 readonly type: 'Pending' | 'VersionNotifier' | 'Ready';3820 }38213822 /** @name XcmVersionedResponse (458) */3823 interface XcmVersionedResponse extends Enum {3824 readonly isV2: boolean;3825 readonly asV2: XcmV2Response;3826 readonly isV3: boolean;3827 readonly asV3: XcmV3Response;3828 readonly type: 'V2' | 'V3';3829 }38303831 /** @name PalletXcmVersionMigrationStage (464) */3832 interface PalletXcmVersionMigrationStage extends Enum {3833 readonly isMigrateSupportedVersion: boolean;3834 readonly isMigrateVersionNotifiers: boolean;3835 readonly isNotifyCurrentTargets: boolean;3836 readonly asNotifyCurrentTargets: Option<Bytes>;3837 readonly isMigrateAndNotifyOldTargets: boolean;3838 readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';3839 }38403841 /** @name XcmVersionedAssetId (467) */3842 interface XcmVersionedAssetId extends Enum {3843 readonly isV3: boolean;3844 readonly asV3: XcmV3MultiassetAssetId;3845 readonly type: 'V3';3846 }38473848 /** @name PalletXcmRemoteLockedFungibleRecord (468) */3849 interface PalletXcmRemoteLockedFungibleRecord extends Struct {3850 readonly amount: u128;3851 readonly owner: XcmVersionedMultiLocation;3852 readonly locker: XcmVersionedMultiLocation;3853 readonly consumers: Vec<ITuple<[Null, u128]>>;3854 }38553856 /** @name PalletXcmError (475) */3857 interface PalletXcmError extends Enum {3858 readonly isUnreachable: boolean;3859 readonly isSendFailure: boolean;3860 readonly isFiltered: boolean;3861 readonly isUnweighableMessage: boolean;3862 readonly isDestinationNotInvertible: boolean;3863 readonly isEmpty: boolean;3864 readonly isCannotReanchor: boolean;3865 readonly isTooManyAssets: boolean;3866 readonly isInvalidOrigin: boolean;3867 readonly isBadVersion: boolean;3868 readonly isBadLocation: boolean;3869 readonly isNoSubscription: boolean;3870 readonly isAlreadySubscribed: boolean;3871 readonly isInvalidAsset: boolean;3872 readonly isLowBalance: boolean;3873 readonly isTooManyLocks: boolean;3874 readonly isAccountNotSovereign: boolean;3875 readonly isFeesNotMet: boolean;3876 readonly isLockNotFound: boolean;3877 readonly isInUse: boolean;3878 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';3879 }38803881 /** @name CumulusPalletXcmError (476) */3882 type CumulusPalletXcmError = Null;38833884 /** @name CumulusPalletDmpQueueConfigData (477) */3885 interface CumulusPalletDmpQueueConfigData extends Struct {3886 readonly maxIndividual: SpWeightsWeightV2Weight;3887 }38883889 /** @name CumulusPalletDmpQueuePageIndexData (478) */3890 interface CumulusPalletDmpQueuePageIndexData extends Struct {3891 readonly beginUsed: u32;3892 readonly endUsed: u32;3893 readonly overweightCount: u64;3894 }38953896 /** @name CumulusPalletDmpQueueError (481) */3897 interface CumulusPalletDmpQueueError extends Enum {3898 readonly isUnknown: boolean;3899 readonly isOverLimit: boolean;3900 readonly type: 'Unknown' | 'OverLimit';3901 }39023903 /** @name PalletUniqueError (485) */3904 interface PalletUniqueError extends Enum {3905 readonly isCollectionDecimalPointLimitExceeded: boolean;3906 readonly isEmptyArgument: boolean;3907 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3908 readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3909 }39103911 /** @name PalletConfigurationError (486) */3912 interface PalletConfigurationError extends Enum {3913 readonly isInconsistentConfiguration: boolean;3914 readonly type: 'InconsistentConfiguration';3915 }39163917 /** @name UpDataStructsCollection (487) */3918 interface UpDataStructsCollection extends Struct {3919 readonly owner: AccountId32;3920 readonly mode: UpDataStructsCollectionMode;3921 readonly name: Vec<u16>;3922 readonly description: Vec<u16>;3923 readonly tokenPrefix: Bytes;3924 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3925 readonly limits: UpDataStructsCollectionLimits;3926 readonly permissions: UpDataStructsCollectionPermissions;3927 readonly flags: U8aFixed;3928 }39293930 /** @name UpDataStructsSponsorshipStateAccountId32 (488) */3931 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3932 readonly isDisabled: boolean;3933 readonly isUnconfirmed: boolean;3934 readonly asUnconfirmed: AccountId32;3935 readonly isConfirmed: boolean;3936 readonly asConfirmed: AccountId32;3937 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3938 }39393940 /** @name UpDataStructsProperties (489) */3941 interface UpDataStructsProperties extends Struct {3942 readonly map: UpDataStructsPropertiesMapBoundedVec;3943 readonly consumedSpace: u32;3944 readonly reserved: u32;3945 }39463947 /** @name UpDataStructsPropertiesMapBoundedVec (490) */3948 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}39493950 /** @name UpDataStructsPropertiesMapPropertyPermission (495) */3951 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}39523953 /** @name UpDataStructsCollectionStats (502) */3954 interface UpDataStructsCollectionStats extends Struct {3955 readonly created: u32;3956 readonly destroyed: u32;3957 readonly alive: u32;3958 }39593960 /** @name UpDataStructsTokenChild (503) */3961 interface UpDataStructsTokenChild extends Struct {3962 readonly token: u32;3963 readonly collection: u32;3964 }39653966 /** @name PhantomTypeUpDataStructs (504) */3967 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}39683969 /** @name UpDataStructsTokenData (506) */3970 interface UpDataStructsTokenData extends Struct {3971 readonly properties: Vec<UpDataStructsProperty>;3972 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3973 readonly pieces: u128;3974 }39753976 /** @name UpDataStructsRpcCollection (507) */3977 interface UpDataStructsRpcCollection extends Struct {3978 readonly owner: AccountId32;3979 readonly mode: UpDataStructsCollectionMode;3980 readonly name: Vec<u16>;3981 readonly description: Vec<u16>;3982 readonly tokenPrefix: Bytes;3983 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3984 readonly limits: UpDataStructsCollectionLimits;3985 readonly permissions: UpDataStructsCollectionPermissions;3986 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3987 readonly properties: Vec<UpDataStructsProperty>;3988 readonly readOnly: bool;3989 readonly flags: UpDataStructsRpcCollectionFlags;3990 }39913992 /** @name UpDataStructsRpcCollectionFlags (508) */3993 interface UpDataStructsRpcCollectionFlags extends Struct {3994 readonly foreign: bool;3995 readonly erc721metadata: bool;3996 }39973998 /** @name UpPovEstimateRpcPovInfo (509) */3999 interface UpPovEstimateRpcPovInfo extends Struct {4000 readonly proofSize: u64;4001 readonly compactProofSize: u64;4002 readonly compressedProofSize: u64;4003 readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;4004 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;4005 }40064007 /** @name SpRuntimeTransactionValidityTransactionValidityError (512) */4008 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {4009 readonly isInvalid: boolean;4010 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;4011 readonly isUnknown: boolean;4012 readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;4013 readonly type: 'Invalid' | 'Unknown';4014 }40154016 /** @name SpRuntimeTransactionValidityInvalidTransaction (513) */4017 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {4018 readonly isCall: boolean;4019 readonly isPayment: boolean;4020 readonly isFuture: boolean;4021 readonly isStale: boolean;4022 readonly isBadProof: boolean;4023 readonly isAncientBirthBlock: boolean;4024 readonly isExhaustsResources: boolean;4025 readonly isCustom: boolean;4026 readonly asCustom: u8;4027 readonly isBadMandatory: boolean;4028 readonly isMandatoryValidation: boolean;4029 readonly isBadSigner: boolean;4030 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';4031 }40324033 /** @name SpRuntimeTransactionValidityUnknownTransaction (514) */4034 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {4035 readonly isCannotLookup: boolean;4036 readonly isNoUnsignedValidator: boolean;4037 readonly isCustom: boolean;4038 readonly asCustom: u8;4039 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';4040 }40414042 /** @name UpPovEstimateRpcTrieKeyValue (516) */4043 interface UpPovEstimateRpcTrieKeyValue extends Struct {4044 readonly key: Bytes;4045 readonly value: Bytes;4046 }40474048 /** @name PalletCommonError (518) */4049 interface PalletCommonError extends Enum {4050 readonly isCollectionNotFound: boolean;4051 readonly isMustBeTokenOwner: boolean;4052 readonly isNoPermission: boolean;4053 readonly isCantDestroyNotEmptyCollection: boolean;4054 readonly isPublicMintingNotAllowed: boolean;4055 readonly isAddressNotInAllowlist: boolean;4056 readonly isCollectionNameLimitExceeded: boolean;4057 readonly isCollectionDescriptionLimitExceeded: boolean;4058 readonly isCollectionTokenPrefixLimitExceeded: boolean;4059 readonly isTotalCollectionsLimitExceeded: boolean;4060 readonly isCollectionAdminCountExceeded: boolean;4061 readonly isCollectionLimitBoundsExceeded: boolean;4062 readonly isOwnerPermissionsCantBeReverted: boolean;4063 readonly isTransferNotAllowed: boolean;4064 readonly isAccountTokenLimitExceeded: boolean;4065 readonly isCollectionTokenLimitExceeded: boolean;4066 readonly isMetadataFlagFrozen: boolean;4067 readonly isTokenNotFound: boolean;4068 readonly isTokenValueTooLow: boolean;4069 readonly isApprovedValueTooLow: boolean;4070 readonly isCantApproveMoreThanOwned: boolean;4071 readonly isAddressIsNotEthMirror: boolean;4072 readonly isAddressIsZero: boolean;4073 readonly isUnsupportedOperation: boolean;4074 readonly isNotSufficientFounds: boolean;4075 readonly isUserIsNotAllowedToNest: boolean;4076 readonly isSourceCollectionIsNotAllowedToNest: boolean;4077 readonly isCollectionFieldSizeExceeded: boolean;4078 readonly isNoSpaceForProperty: boolean;4079 readonly isPropertyLimitReached: boolean;4080 readonly isPropertyKeyIsTooLong: boolean;4081 readonly isInvalidCharacterInPropertyKey: boolean;4082 readonly isEmptyPropertyKey: boolean;4083 readonly isCollectionIsExternal: boolean;4084 readonly isCollectionIsInternal: boolean;4085 readonly isConfirmSponsorshipFail: boolean;4086 readonly isUserIsNotCollectionAdmin: boolean;4087 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';4088 }40894090 /** @name PalletFungibleError (520) */4091 interface PalletFungibleError extends Enum {4092 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;4093 readonly isFungibleItemsHaveNoId: boolean;4094 readonly isFungibleItemsDontHaveData: boolean;4095 readonly isFungibleDisallowsNesting: boolean;4096 readonly isSettingPropertiesNotAllowed: boolean;4097 readonly isSettingAllowanceForAllNotAllowed: boolean;4098 readonly isFungibleTokensAreAlwaysValid: boolean;4099 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';4100 }41014102 /** @name PalletRefungibleError (525) */4103 interface PalletRefungibleError extends Enum {4104 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;4105 readonly isWrongRefungiblePieces: boolean;4106 readonly isRepartitionWhileNotOwningAllPieces: boolean;4107 readonly isRefungibleDisallowsNesting: boolean;4108 readonly isSettingPropertiesNotAllowed: boolean;4109 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';4110 }41114112 /** @name PalletNonfungibleItemData (526) */4113 interface PalletNonfungibleItemData extends Struct {4114 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;4115 }41164117 /** @name UpDataStructsPropertyScope (528) */4118 interface UpDataStructsPropertyScope extends Enum {4119 readonly isNone: boolean;4120 readonly isRmrk: boolean;4121 readonly type: 'None' | 'Rmrk';4122 }41234124 /** @name PalletNonfungibleError (531) */4125 interface PalletNonfungibleError extends Enum {4126 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;4127 readonly isNonfungibleItemsHaveNoAmount: boolean;4128 readonly isCantBurnNftWithChildren: boolean;4129 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';4130 }41314132 /** @name PalletStructureError (532) */4133 interface PalletStructureError extends Enum {4134 readonly isOuroborosDetected: boolean;4135 readonly isDepthLimit: boolean;4136 readonly isBreadthLimit: boolean;4137 readonly isTokenNotFound: boolean;4138 readonly isCantNestTokenUnderCollection: boolean;4139 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection';4140 }41414142 /** @name PalletAppPromotionError (537) */4143 interface PalletAppPromotionError extends Enum {4144 readonly isAdminNotSet: boolean;4145 readonly isNoPermission: boolean;4146 readonly isNotSufficientFunds: boolean;4147 readonly isPendingForBlockOverflow: boolean;4148 readonly isSponsorNotSet: boolean;4149 readonly isInsufficientStakedBalance: boolean;4150 readonly isInconsistencyState: boolean;4151 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'InsufficientStakedBalance' | 'InconsistencyState';4152 }41534154 /** @name PalletForeignAssetsModuleError (538) */4155 interface PalletForeignAssetsModuleError extends Enum {4156 readonly isBadLocation: boolean;4157 readonly isMultiLocationExisted: boolean;4158 readonly isAssetIdNotExists: boolean;4159 readonly isAssetIdExisted: boolean;4160 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';4161 }41624163 /** @name PalletEvmCodeMetadata (539) */4164 interface PalletEvmCodeMetadata extends Struct {4165 readonly size_: u64;4166 readonly hash_: H256;4167 }41684169 /** @name PalletEvmError (541) */4170 interface PalletEvmError extends Enum {4171 readonly isBalanceLow: boolean;4172 readonly isFeeOverflow: boolean;4173 readonly isPaymentOverflow: boolean;4174 readonly isWithdrawFailed: boolean;4175 readonly isGasPriceTooLow: boolean;4176 readonly isInvalidNonce: boolean;4177 readonly isGasLimitTooLow: boolean;4178 readonly isGasLimitTooHigh: boolean;4179 readonly isUndefined: boolean;4180 readonly isReentrancy: boolean;4181 readonly isTransactionMustComeFromEOA: boolean;4182 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';4183 }41844185 /** @name FpRpcTransactionStatus (544) */4186 interface FpRpcTransactionStatus extends Struct {4187 readonly transactionHash: H256;4188 readonly transactionIndex: u32;4189 readonly from: H160;4190 readonly to: Option<H160>;4191 readonly contractAddress: Option<H160>;4192 readonly logs: Vec<EthereumLog>;4193 readonly logsBloom: EthbloomBloom;4194 }41954196 /** @name EthbloomBloom (546) */4197 interface EthbloomBloom extends U8aFixed {}41984199 /** @name EthereumReceiptReceiptV3 (548) */4200 interface EthereumReceiptReceiptV3 extends Enum {4201 readonly isLegacy: boolean;4202 readonly asLegacy: EthereumReceiptEip658ReceiptData;4203 readonly isEip2930: boolean;4204 readonly asEip2930: EthereumReceiptEip658ReceiptData;4205 readonly isEip1559: boolean;4206 readonly asEip1559: EthereumReceiptEip658ReceiptData;4207 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';4208 }42094210 /** @name EthereumReceiptEip658ReceiptData (549) */4211 interface EthereumReceiptEip658ReceiptData extends Struct {4212 readonly statusCode: u8;4213 readonly usedGas: U256;4214 readonly logsBloom: EthbloomBloom;4215 readonly logs: Vec<EthereumLog>;4216 }42174218 /** @name EthereumBlock (550) */4219 interface EthereumBlock extends Struct {4220 readonly header: EthereumHeader;4221 readonly transactions: Vec<EthereumTransactionTransactionV2>;4222 readonly ommers: Vec<EthereumHeader>;4223 }42244225 /** @name EthereumHeader (551) */4226 interface EthereumHeader extends Struct {4227 readonly parentHash: H256;4228 readonly ommersHash: H256;4229 readonly beneficiary: H160;4230 readonly stateRoot: H256;4231 readonly transactionsRoot: H256;4232 readonly receiptsRoot: H256;4233 readonly logsBloom: EthbloomBloom;4234 readonly difficulty: U256;4235 readonly number: U256;4236 readonly gasLimit: U256;4237 readonly gasUsed: U256;4238 readonly timestamp: u64;4239 readonly extraData: Bytes;4240 readonly mixHash: H256;4241 readonly nonce: EthereumTypesHashH64;4242 }42434244 /** @name EthereumTypesHashH64 (552) */4245 interface EthereumTypesHashH64 extends U8aFixed {}42464247 /** @name PalletEthereumError (557) */4248 interface PalletEthereumError extends Enum {4249 readonly isInvalidSignature: boolean;4250 readonly isPreLogExists: boolean;4251 readonly type: 'InvalidSignature' | 'PreLogExists';4252 }42534254 /** @name PalletEvmCoderSubstrateError (558) */4255 interface PalletEvmCoderSubstrateError extends Enum {4256 readonly isOutOfGas: boolean;4257 readonly isOutOfFund: boolean;4258 readonly type: 'OutOfGas' | 'OutOfFund';4259 }42604261 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (559) */4262 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {4263 readonly isDisabled: boolean;4264 readonly isUnconfirmed: boolean;4265 readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4266 readonly isConfirmed: boolean;4267 readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4268 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';4269 }42704271 /** @name PalletEvmContractHelpersSponsoringModeT (560) */4272 interface PalletEvmContractHelpersSponsoringModeT extends Enum {4273 readonly isDisabled: boolean;4274 readonly isAllowlisted: boolean;4275 readonly isGenerous: boolean;4276 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';4277 }42784279 /** @name PalletEvmContractHelpersError (566) */4280 interface PalletEvmContractHelpersError extends Enum {4281 readonly isNoPermission: boolean;4282 readonly isNoPendingSponsor: boolean;4283 readonly isTooManyMethodsHaveSponsoredLimit: boolean;4284 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';4285 }42864287 /** @name PalletEvmMigrationError (567) */4288 interface PalletEvmMigrationError extends Enum {4289 readonly isAccountNotEmpty: boolean;4290 readonly isAccountIsNotMigrating: boolean;4291 readonly isBadEvent: boolean;4292 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';4293 }42944295 /** @name PalletMaintenanceError (568) */4296 type PalletMaintenanceError = Null;42974298 /** @name PalletTestUtilsError (569) */4299 interface PalletTestUtilsError extends Enum {4300 readonly isTestPalletDisabled: boolean;4301 readonly isTriggerRollback: boolean;4302 readonly type: 'TestPalletDisabled' | 'TriggerRollback';4303 }43044305 /** @name SpRuntimeMultiSignature (571) */4306 interface SpRuntimeMultiSignature extends Enum {4307 readonly isEd25519: boolean;4308 readonly asEd25519: SpCoreEd25519Signature;4309 readonly isSr25519: boolean;4310 readonly asSr25519: SpCoreSr25519Signature;4311 readonly isEcdsa: boolean;4312 readonly asEcdsa: SpCoreEcdsaSignature;4313 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';4314 }43154316 /** @name SpCoreEd25519Signature (572) */4317 interface SpCoreEd25519Signature extends U8aFixed {}43184319 /** @name SpCoreSr25519Signature (574) */4320 interface SpCoreSr25519Signature extends U8aFixed {}43214322 /** @name SpCoreEcdsaSignature (575) */4323 interface SpCoreEcdsaSignature extends U8aFixed {}43244325 /** @name FrameSystemExtensionsCheckSpecVersion (578) */4326 type FrameSystemExtensionsCheckSpecVersion = Null;43274328 /** @name FrameSystemExtensionsCheckTxVersion (579) */4329 type FrameSystemExtensionsCheckTxVersion = Null;43304331 /** @name FrameSystemExtensionsCheckGenesis (580) */4332 type FrameSystemExtensionsCheckGenesis = Null;43334334 /** @name FrameSystemExtensionsCheckNonce (583) */4335 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}43364337 /** @name FrameSystemExtensionsCheckWeight (584) */4338 type FrameSystemExtensionsCheckWeight = Null;43394340 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (585) */4341 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;43424343 /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (586) */4344 type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;43454346 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (587) */4347 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}43484349 /** @name OpalRuntimeRuntime (588) */4350 type OpalRuntimeRuntime = Null;43514352 /** @name PalletEthereumFakeTransactionFinalizer (589) */4353 type PalletEthereumFakeTransactionFinalizer = Null;43544355} // declare moduletests/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;
tests/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 {
tests/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],