difftreelog
feat add ApproveForAll to Eth and Sub
in: master
39 files changed
client/rpc/src/lib.rsdiffbeforeafterboth--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -246,6 +246,16 @@
token_id: TokenId,
at: Option<BlockHash>,
) -> Result<Option<String>>;
+
+ /// Get whether an operator is approved by a given owner.
+ #[method(name = "unique_isApprovedForAll")]
+ fn is_approved_for_all(
+ &self,
+ collection: CollectionId,
+ owner: CrossAccountId,
+ operator: CrossAccountId,
+ at: Option<BlockHash>,
+ ) -> Result<bool>;
}
mod app_promotion_unique_rpc {
@@ -569,6 +579,7 @@
pass_method!(effective_collection_limits(collection_id: CollectionId) -> Option<CollectionLimits>, unique_api);
pass_method!(total_pieces(collection_id: CollectionId, token_id: TokenId) -> Option<String> => |o| o.map(|number| number.to_string()) , unique_api);
pass_method!(token_owners(collection: CollectionId, token: TokenId) -> Vec<CrossAccountId>, unique_api);
+ pass_method!(is_approved_for_all(collection: CollectionId, owner: CrossAccountId, operator: CrossAccountId) -> bool, unique_api);
}
impl<C, Block, BlockNumber, CrossAccountId, AccountId>
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -472,6 +472,18 @@
u128,
),
+ /// Amount pieces of token owned by `sender` was approved for `spender`.
+ ApprovedForAll(
+ /// Id of collection to which item is belong.
+ CollectionId,
+ /// Owner of a wallet.
+ T::CrossAccountId,
+ /// Id for which operator status was granted or rewoked.
+ T::CrossAccountId,
+ /// Is operator status was granted or rewoked.
+ bool,
+ ),
+
/// The colletion property has been added or edited.
CollectionPropertySet(
/// Id of collection to which property has been set.
@@ -1521,6 +1533,9 @@
/// The price of retrieving token owner
fn token_owner() -> Weight;
+
+ /// The price of setting approval for all
+ fn set_approval_for_all() -> Weight;
}
/// Weight info extension trait for refungible pallet.
@@ -1828,6 +1843,20 @@
/// Get extension for RFT collection.
fn refungible_extensions(&self) -> Option<&dyn RefungibleExtensions<T>>;
+
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// * `owner` - Token owner
+ /// * `operator` - Operator
+ /// * `approve` - Is operator enabled or disabled
+ fn set_approval_for_all(
+ &self,
+ owner: T::CrossAccountId,
+ operator: T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResultWithPostInfo;
+
+ /// Tells whether an operator is approved by a given owner.
+ fn is_approved_for_all(&self, owner: T::CrossAccountId, operator: T::CrossAccountId) -> bool;
}
/// Extension for RFT collection.
pallets/fungible/src/common.rsdiffbeforeafterboth--- a/pallets/fungible/src/common.rs
+++ b/pallets/fungible/src/common.rs
@@ -107,6 +107,10 @@
fn token_owner() -> Weight {
Weight::zero()
}
+
+ fn set_approval_for_all() -> Weight {
+ Weight::zero()
+ }
}
/// Implementation of `CommonCollectionOperations` for `FungibleHandle`. It wraps FungibleHandle Pallete
@@ -424,4 +428,17 @@
}
<TotalSupply<T>>::try_get(self.id).ok()
}
+
+ fn set_approval_for_all(
+ &self,
+ _owner: T::CrossAccountId,
+ _operator: T::CrossAccountId,
+ _approve: bool,
+ ) -> DispatchResultWithPostInfo {
+ fail!(<Error<T>>::SettingApprovalForAllNotAllowed)
+ }
+
+ fn is_approved_for_all(&self, _owner: T::CrossAccountId, _operator: T::CrossAccountId) -> bool {
+ false
+ }
}
pallets/fungible/src/lib.rsdiffbeforeafterboth--- a/pallets/fungible/src/lib.rs
+++ b/pallets/fungible/src/lib.rs
@@ -127,6 +127,8 @@
FungibleDisallowsNesting,
/// Setting item properties is not allowed.
SettingPropertiesNotAllowed,
+ /// Setting approval for all is not allowed.
+ SettingApprovalForAllNotAllowed,
}
#[pallet::config]
pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -222,4 +222,18 @@
let item = create_max_item(&collection, &owner, owner.clone())?;
}: {collection.token_owner(item)}
+
+ set_approval_for_all {
+ bench_init!{
+ owner: sub; collection: collection(owner);
+ operator: cross_from_sub(owner); owner: cross_sub;
+ };
+ }: {<Pallet<T>>::set_approval_for_all(&collection, &owner, &operator, true)}
+
+ is_approved_for_all {
+ bench_init!{
+ owner: sub; collection: collection(owner);
+ operator: cross_from_sub(owner); owner: cross_sub;
+ };
+ }: {<Pallet<T>>::is_approved_for_all(&collection, &owner, &operator)}
}
pallets/nonfungible/src/common.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/common.rs
+++ b/pallets/nonfungible/src/common.rs
@@ -122,6 +122,10 @@
fn token_owner() -> Weight {
<SelfWeightOf<T>>::token_owner()
}
+
+ fn set_approval_for_all() -> Weight {
+ <SelfWeightOf<T>>::set_approval_for_all()
+ }
}
fn map_create_data<T: Config>(
@@ -512,4 +516,20 @@
None
}
}
+
+ fn set_approval_for_all(
+ &self,
+ owner: T::CrossAccountId,
+ operator: T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResultWithPostInfo {
+ with_weight(
+ <Pallet<T>>::set_approval_for_all(self, &owner, &operator, approve),
+ <CommonWeights<T>>::set_approval_for_all(),
+ )
+ }
+
+ fn is_approved_for_all(&self, owner: T::CrossAccountId, operator: T::CrossAccountId) -> bool {
+ <Pallet<T>>::is_approved_for_all(self, &owner, &operator)
+ }
}
pallets/nonfungible/src/erc.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -469,15 +469,23 @@
Ok(())
}
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
+ #[weight(<SelfWeightOf<T>>::set_approval_for_all())]
fn set_approval_for_all(
&mut self,
- _caller: caller,
- _operator: address,
- _approved: bool,
+ caller: caller,
+ operator: address,
+ approved: bool,
) -> Result<void> {
- // TODO: Not implemetable
- Err("not implemented".into())
+ let caller = T::CrossAccountId::from_eth(caller);
+ let operator = T::CrossAccountId::from_eth(operator);
+
+ <Pallet<T>>::set_approval_for_all(self, &caller, &operator, approved)
+ .map_err(dispatch_to_evm::<T>)?;
+ Ok(())
}
/// @dev Not implemented
@@ -486,10 +494,13 @@
Err("not implemented".into())
}
- /// @dev Not implemented
- fn is_approved_for_all(&self, _owner: address, _operator: address) -> Result<address> {
- // TODO: Not implemetable
- Err("not implemented".into())
+ /// @notice Tells whether an operator is approved by a given owner.
+ #[weight(<SelfWeightOf<T>>::is_approved_for_all())]
+ fn is_approved_for_all(&self, owner: address, operator: address) -> Result<bool> {
+ let owner = T::CrossAccountId::from_eth(owner);
+ let operator = T::CrossAccountId::from_eth(operator);
+
+ Ok(<Pallet<T>>::is_approved_for_all(self, &owner, &operator))
}
/// @notice Returns collection helper contract address
pallets/nonfungible/src/lib.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -272,6 +272,18 @@
QueryKind = OptionQuery,
>;
+ /// Operator set by a wallet owner that could perform certain transactions on all tokens in the wallet.
+ #[pallet::storage]
+ pub type WalletOperator<T: Config> = StorageNMap<
+ Key = (
+ Key<Twox64Concat, CollectionId>,
+ Key<Blake2_128Concat, T::CrossAccountId>,
+ Key<Blake2_128Concat, T::CrossAccountId>,
+ ),
+ Value = bool,
+ QueryKind = OptionQuery,
+ >;
+
/// Upgrade from the old schema to properties.
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
@@ -438,6 +450,7 @@
<TokensBurnt<T>>::remove(id);
let _ = <Allowance<T>>::clear_prefix((id,), u32::MAX, None);
let _ = <AccountBalance<T>>::clear_prefix((id,), u32::MAX, None);
+ let _ = <WalletOperator<T>>::clear_prefix((id,), u32::MAX, None);
Ok(())
}
@@ -1193,6 +1206,9 @@
if <Allowance<T>>::get((collection.id, token)).as_ref() == Some(spender) {
return Ok(());
}
+ if <WalletOperator<T>>::get((collection.id, from, spender)) == Some(true) {
+ return Ok(());
+ }
ensure!(
collection.ignores_allowance(spender),
<CommonError<T>>::ApprovedValueTooLow
@@ -1326,4 +1342,52 @@
) -> DispatchResult {
Self::create_multiple_items(collection, sender, vec![data], nesting_budget)
}
+
+ /// Sets or unsets the approval of a given operator.
+ ///
+ /// An operator is allowed to transfer all token pieces of the sender on their behalf.
+ /// - `owner`: Token owner
+ /// - `operator`: Operator
+ /// - `approve`: Is operator enabled or disabled
+ pub fn set_approval_for_all(
+ collection: &NonfungibleHandle<T>,
+ owner: &T::CrossAccountId,
+ operator: &T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResult {
+ if collection.permissions.access() == AccessMode::AllowList {
+ collection.check_allowlist(owner)?;
+ collection.check_allowlist(operator)?;
+ }
+
+ <PalletCommon<T>>::ensure_correct_receiver(operator)?;
+
+ // =========
+
+ <WalletOperator<T>>::insert((collection.id, owner, operator), approve);
+ <PalletEvm<T>>::deposit_log(
+ ERC721Events::ApprovalForAll {
+ owner: *owner.as_eth(),
+ operator: *operator.as_eth(),
+ approved: approve,
+ }
+ .to_log(collection_id_to_address(collection.id)),
+ );
+ <PalletCommon<T>>::deposit_event(CommonEvent::ApprovedForAll(
+ collection.id,
+ owner.clone(),
+ operator.clone(),
+ approve,
+ ));
+ Ok(())
+ }
+
+ /// Tells whether an operator is approved by a given owner.
+ pub fn is_approved_for_all(
+ collection: &NonfungibleHandle<T>,
+ owner: &T::CrossAccountId,
+ operator: &T::CrossAccountId,
+ ) -> bool {
+ <WalletOperator<T>>::get((collection.id, owner, operator)).unwrap_or(false)
+ }
}
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
@@ -1020,7 +1020,10 @@
dummy = 0;
}
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
/// @dev EVM selector for this function is: 0xa22cb465,
/// or in textual repr: setApprovalForAll(address,bool)
function setApprovalForAll(address operator, bool approved) public {
@@ -1040,15 +1043,15 @@
return 0x0000000000000000000000000000000000000000;
}
- /// @dev Not implemented
+ /// @notice Tells whether an operator is approved by a given owner.
/// @dev EVM selector for this function is: 0xe985e9c5,
/// or in textual repr: isApprovedForAll(address,address)
- function isApprovedForAll(address owner, address operator) public view returns (address) {
+ function isApprovedForAll(address owner, address operator) public view returns (bool) {
require(false, stub_error);
owner;
operator;
dummy;
- return 0x0000000000000000000000000000000000000000;
+ return false;
}
/// @notice Returns collection helper contract address
pallets/nonfungible/src/weights.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/weights.rs
+++ b/pallets/nonfungible/src/weights.rs
@@ -26,6 +26,7 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
+#![allow(missing_docs)]
#![allow(clippy::unnecessary_cast)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
@@ -47,6 +48,8 @@
fn set_token_properties(b: u32, ) -> Weight;
fn delete_token_properties(b: u32, ) -> Weight;
fn token_owner() -> Weight;
+ fn set_approval_for_all() -> Weight;
+ fn is_approved_for_all() -> Weight;
}
/// Weights for pallet_nonfungible using the Substrate node and recommended hardware.
@@ -195,6 +198,16 @@
Weight::from_ref_time(4_366_000)
.saturating_add(T::DbWeight::get().reads(1 as u64))
}
+ // Storage: Nonfungible WalletOperator (r:0 w:1)
+ fn set_approval_for_all() -> Weight {
+ Weight::from_ref_time(16_231_000 as u64)
+ .saturating_add(T::DbWeight::get().writes(1 as u64))
+ }
+ // Storage: Nonfungible WalletOperator (r:1 w:0)
+ fn is_approved_for_all() -> Weight {
+ Weight::from_ref_time(6_161_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(1 as u64))
+ }
}
// For backwards compatibility and tests
@@ -342,4 +355,14 @@
Weight::from_ref_time(4_366_000)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
}
+ // Storage: Nonfungible WalletOperator (r:0 w:1)
+ fn set_approval_for_all() -> Weight {
+ Weight::from_ref_time(16_231_000 as u64)
+ .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ }
+ // Storage: Nonfungible WalletOperator (r:1 w:0)
+ fn is_approved_for_all() -> Weight {
+ Weight::from_ref_time(6_161_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ }
}
pallets/refungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/refungible/src/benchmarking.rs
+++ b/pallets/refungible/src/benchmarking.rs
@@ -290,4 +290,18 @@
};
let item = create_max_item(&collection, &sender, [(owner.clone(), 100)])?;
}: {<Pallet<T>>::token_owner(collection.id, item)}
+
+ set_approval_for_all {
+ bench_init!{
+ owner: sub; collection: collection(owner);
+ operator: cross_from_sub(owner); owner: cross_sub;
+ };
+ }: {<Pallet<T>>::set_approval_for_all(&collection, &owner, &operator, true)}
+
+ is_approved_for_all {
+ bench_init!{
+ owner: sub; collection: collection(owner);
+ operator: cross_from_sub(owner); owner: cross_sub;
+ };
+ }: {<Pallet<T>>::is_approved_for_all(&collection, &owner, &operator)}
}
pallets/refungible/src/common.rsdiffbeforeafterboth--- a/pallets/refungible/src/common.rs
+++ b/pallets/refungible/src/common.rs
@@ -152,6 +152,10 @@
fn token_owner() -> Weight {
<SelfWeightOf<T>>::token_owner()
}
+
+ fn set_approval_for_all() -> Weight {
+ <SelfWeightOf<T>>::set_approval_for_all()
+ }
}
fn map_create_data<T: Config>(
@@ -516,6 +520,22 @@
fn total_pieces(&self, token: TokenId) -> Option<u128> {
<Pallet<T>>::total_pieces(self.id, token)
}
+
+ fn set_approval_for_all(
+ &self,
+ owner: T::CrossAccountId,
+ operator: T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResultWithPostInfo {
+ with_weight(
+ <Pallet<T>>::set_approval_for_all(self, &owner, &operator, approve),
+ <CommonWeights<T>>::set_approval_for_all(),
+ )
+ }
+
+ fn is_approved_for_all(&self, owner: T::CrossAccountId, operator: T::CrossAccountId) -> bool {
+ <Pallet<T>>::is_approved_for_all(self, &owner, &operator)
+ }
}
impl<T: Config> RefungibleExtensions<T> for RefungibleHandle<T> {
pallets/refungible/src/erc.rsdiffbeforeafterboth--- a/pallets/refungible/src/erc.rs
+++ b/pallets/refungible/src/erc.rs
@@ -461,15 +461,23 @@
Err("not implemented".into())
}
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
+ #[weight(<SelfWeightOf<T>>::set_approval_for_all())]
fn set_approval_for_all(
&mut self,
- _caller: caller,
- _operator: address,
- _approved: bool,
+ caller: caller,
+ operator: address,
+ approved: bool,
) -> Result<void> {
- // TODO: Not implemetable
- Err("not implemented".into())
+ let caller = T::CrossAccountId::from_eth(caller);
+ let operator = T::CrossAccountId::from_eth(operator);
+
+ <Pallet<T>>::set_approval_for_all(self, &caller, &operator, approved)
+ .map_err(dispatch_to_evm::<T>)?;
+ Ok(())
}
/// @dev Not implemented
@@ -478,10 +486,13 @@
Err("not implemented".into())
}
- /// @dev Not implemented
- fn is_approved_for_all(&self, _owner: address, _operator: address) -> Result<address> {
- // TODO: Not implemetable
- Err("not implemented".into())
+ /// @notice Tells whether an operator is approved by a given owner.
+ #[weight(<SelfWeightOf<T>>::is_approved_for_all())]
+ fn is_approved_for_all(&self, owner: address, operator: address) -> Result<bool> {
+ let owner = T::CrossAccountId::from_eth(owner);
+ let operator = T::CrossAccountId::from_eth(operator);
+
+ Ok(<Pallet<T>>::is_approved_for_all(self, &owner, &operator))
}
/// @notice Returns collection helper contract address
pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -273,6 +273,18 @@
QueryKind = ValueQuery,
>;
+ /// Operator set by a wallet owner that could perform certain transactions on all tokens in the wallet.
+ #[pallet::storage]
+ pub type WalletOperator<T: Config> = StorageNMap<
+ Key = (
+ Key<Twox64Concat, CollectionId>,
+ Key<Blake2_128Concat, T::CrossAccountId>,
+ Key<Blake2_128Concat, T::CrossAccountId>,
+ ),
+ Value = bool,
+ QueryKind = OptionQuery,
+ >;
+
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn on_runtime_upgrade() -> Weight {
@@ -1161,6 +1173,12 @@
}
let allowance =
<Allowance<T>>::get((collection.id, token, from, &spender)).checked_sub(amount);
+
+ // Allowance if any would be reduced if spender is also wallet operator
+ if <WalletOperator<T>>::get((collection.id, from, spender)) == Some(true) {
+ return Ok(allowance);
+ }
+
if allowance.is_none() {
ensure!(
collection.ignores_allowance(spender),
@@ -1387,4 +1405,52 @@
Some(res)
}
}
+
+ /// Sets or unsets the approval of a given operator.
+ ///
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// - `owner`: Token owner
+ /// - `operator`: Operator
+ /// - `approve`: Is operator enabled or disabled
+ pub fn set_approval_for_all(
+ collection: &RefungibleHandle<T>,
+ owner: &T::CrossAccountId,
+ operator: &T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResult {
+ if collection.permissions.access() == AccessMode::AllowList {
+ collection.check_allowlist(owner)?;
+ collection.check_allowlist(operator)?;
+ }
+
+ <PalletCommon<T>>::ensure_correct_receiver(operator)?;
+
+ // =========
+
+ <WalletOperator<T>>::insert((collection.id, owner, operator), approve);
+ <PalletEvm<T>>::deposit_log(
+ ERC721Events::ApprovalForAll {
+ owner: *owner.as_eth(),
+ operator: *operator.as_eth(),
+ approved: approve,
+ }
+ .to_log(collection_id_to_address(collection.id)),
+ );
+ <PalletCommon<T>>::deposit_event(CommonEvent::ApprovedForAll(
+ collection.id,
+ owner.clone(),
+ operator.clone(),
+ approve,
+ ));
+ Ok(())
+ }
+
+ /// Tells whether an operator is approved by a given owner.
+ pub fn is_approved_for_all(
+ collection: &RefungibleHandle<T>,
+ owner: &T::CrossAccountId,
+ operator: &T::CrossAccountId,
+ ) -> bool {
+ <WalletOperator<T>>::get((collection.id, owner, operator)).unwrap_or(false)
+ }
}
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
@@ -1017,7 +1017,10 @@
dummy = 0;
}
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
/// @dev EVM selector for this function is: 0xa22cb465,
/// or in textual repr: setApprovalForAll(address,bool)
function setApprovalForAll(address operator, bool approved) public {
@@ -1037,15 +1040,15 @@
return 0x0000000000000000000000000000000000000000;
}
- /// @dev Not implemented
+ /// @notice Tells whether an operator is approved by a given owner.
/// @dev EVM selector for this function is: 0xe985e9c5,
/// or in textual repr: isApprovedForAll(address,address)
- function isApprovedForAll(address owner, address operator) public view returns (address) {
+ function isApprovedForAll(address owner, address operator) public view returns (bool) {
require(false, stub_error);
owner;
operator;
dummy;
- return 0x0000000000000000000000000000000000000000;
+ return false;
}
/// @notice Returns collection helper contract address
pallets/refungible/src/weights.rsdiffbeforeafterboth--- a/pallets/refungible/src/weights.rs
+++ b/pallets/refungible/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_refungible
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-08-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2022-11-25, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -26,6 +26,7 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
+#![allow(missing_docs)]
#![allow(clippy::unnecessary_cast)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
@@ -54,6 +55,8 @@
fn delete_token_properties(b: u32, ) -> Weight;
fn repartition_item() -> Weight;
fn token_owner() -> Weight;
+ fn set_approval_for_all() -> Weight;
+ fn is_approved_for_all() -> Weight;
}
/// Weights for pallet_refungible using the Substrate node and recommended hardware.
@@ -259,6 +262,16 @@
Weight::from_ref_time(9_431_000)
.saturating_add(T::DbWeight::get().reads(2 as u64))
}
+ // Storage: Refungible WalletOperator (r:0 w:1)
+ fn set_approval_for_all() -> Weight {
+ Weight::from_ref_time(16_150_000 as u64)
+ .saturating_add(T::DbWeight::get().writes(1 as u64))
+ }
+ // Storage: Refungible WalletOperator (r:1 w:0)
+ fn is_approved_for_all() -> Weight {
+ Weight::from_ref_time(5_901_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(1 as u64))
+ }
}
// For backwards compatibility and tests
@@ -463,4 +476,14 @@
Weight::from_ref_time(9_431_000)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
}
+ // Storage: Refungible WalletOperator (r:0 w:1)
+ fn set_approval_for_all() -> Weight {
+ Weight::from_ref_time(16_150_000 as u64)
+ .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ }
+ // Storage: Refungible WalletOperator (r:1 w:0)
+ fn is_approved_for_all() -> Weight {
+ Weight::from_ref_time(5_901_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ }
}
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -1126,6 +1126,28 @@
}
})
}
+
+ /// Sets or unsets the approval of a given operator.
+ ///
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ ///
+ /// # Arguments
+ ///
+ /// * `owner`: Token owner
+ /// * `operator`: Operator
+ /// * `approve`: Is operator enabled or disabled
+ #[weight = T::CommonWeightInfo::set_approval_for_all()]
+ pub fn set_approval_for_all(
+ origin,
+ collection_id: CollectionId,
+ operator: T::CrossAccountId,
+ approve: bool,
+ ) -> DispatchResultWithPostInfo {
+ let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);
+ dispatch_tx::<T, _>(collection_id, |d| {
+ d.set_approval_for_all(sender, operator, approve)
+ })
+ }
}
}
primitives/rpc/src/lib.rsdiffbeforeafterboth--- a/primitives/rpc/src/lib.rs
+++ b/primitives/rpc/src/lib.rs
@@ -132,5 +132,8 @@
fn total_pieces(collection_id: CollectionId, token_id: TokenId) -> Result<Option<u128>>;
fn token_owners(collection: CollectionId, token: TokenId) -> Result<Vec<CrossAccountId>>;
+
+ /// Get whether an operator is approved by a given owner.
+ fn is_approved_for_all(collection: CollectionId, owner: CrossAccountId, operator: CrossAccountId) -> Result<bool>;
}
}
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -187,6 +187,10 @@
fn total_pieces(collection: CollectionId, token_id: TokenId) -> Result<Option<u128>, DispatchError> {
dispatch_unique_runtime!(collection.total_pieces(token_id))
}
+
+ fn is_approved_for_all(collection: CollectionId, owner: CrossAccountId, operator: CrossAccountId) -> Result<bool, DispatchError> {
+ dispatch_unique_runtime!(collection.is_approved_for_all(owner, operator))
+ }
}
impl app_promotion_rpc::AppPromotionApi<Block, BlockNumber, CrossAccountId, AccountId> for Runtime {
runtime/common/weights.rsdiffbeforeafterboth--- a/runtime/common/weights.rs
+++ b/runtime/common/weights.rs
@@ -120,6 +120,10 @@
fn token_owner() -> Weight {
max_weight_of!(token_owner())
}
+
+ fn set_approval_for_all() -> Weight {
+ max_weight_of!(set_approval_for_all())
+ }
}
#[cfg(feature = "refungible")]
tests/src/approve.test.tsdiffbeforeafterboth--- a/tests/src/approve.test.ts
+++ b/tests/src/approve.test.ts
@@ -603,3 +603,40 @@
await expect(approveTx()).to.be.rejected;
});
});
+
+describe('Normal user can approve other users to be wallet operator:', () => {
+ let alice: IKeyringPair;
+ let bob: IKeyringPair;
+
+ before(async () => {
+ await usingPlaygrounds(async (helper, privateKey) => {
+ const donor = await privateKey({filename: __filename});
+ [alice, bob] = await helper.arrange.createAccounts([100n, 100n], donor);
+ });
+ });
+
+ itSub('[nft] Enable and disable approval', async ({helper}) => {
+ const {collectionId} = await helper.nft.mintCollection(alice, {name: 'col', description: 'descr', tokenPrefix: 'COL'});
+ await helper.nft.mintToken(alice, {collectionId: collectionId, owner: alice.address});
+ const checkBeforeApprovalTx = () => helper.nft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkBeforeApprovalTx()).to.be.false;
+ await helper.nft.setApprovalForAll(alice, collectionId, {Substrate: bob.address}, true);
+ const checkAfterApprovalTx = () => helper.nft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkAfterApprovalTx()).to.be.true;
+ await helper.nft.setApprovalForAll(alice, collectionId, {Substrate: bob.address}, false);
+ const checkAfterDisapprovalTx = () => helper.nft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkAfterDisapprovalTx()).to.be.false;
+ });
+
+ itSub.ifWithPallets('[rft] Enable and disable approval', [Pallets.ReFungible], async ({helper}) => {
+ const {collectionId} = await helper.rft.mintCollection(alice, {name: 'col', description: 'descr', tokenPrefix: 'COL'});
+ const checkBeforeApprovalTx = () => helper.rft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkBeforeApprovalTx()).to.be.false;
+ await helper.rft.setApprovalForAll(alice, collectionId, {Substrate: bob.address}, true);
+ const checkAfterApprovalTx = () => helper.rft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkAfterApprovalTx()).to.be.true;
+ await helper.rft.setApprovalForAll(alice, collectionId, {Substrate: bob.address}, false);
+ const checkAfterDisapprovalTx = () => helper.rft.isApprovedForAll(collectionId, {Substrate: alice.address}, {Substrate: bob.address});
+ expect(await checkAfterDisapprovalTx()).to.be.false;
+ });
+});
tests/src/eth/abi/nonFungible.jsondiffbeforeafterboth--- a/tests/src/eth/abi/nonFungible.json
+++ b/tests/src/eth/abi/nonFungible.json
@@ -384,7 +384,7 @@
{ "internalType": "address", "name": "operator", "type": "address" }
],
"name": "isApprovedForAll",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
tests/src/eth/abi/reFungible.jsondiffbeforeafterboth--- a/tests/src/eth/abi/reFungible.json
+++ b/tests/src/eth/abi/reFungible.json
@@ -366,7 +366,7 @@
{ "internalType": "address", "name": "operator", "type": "address" }
],
"name": "isApprovedForAll",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
tests/src/eth/api/UniqueNFT.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueNFT.sol
+++ b/tests/src/eth/api/UniqueNFT.sol
@@ -671,7 +671,10 @@
/// or in textual repr: approve(address,uint256)
function approve(address approved, uint256 tokenId) external;
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
/// @dev EVM selector for this function is: 0xa22cb465,
/// or in textual repr: setApprovalForAll(address,bool)
function setApprovalForAll(address operator, bool approved) external;
@@ -681,10 +684,10 @@
/// or in textual repr: getApproved(uint256)
function getApproved(uint256 tokenId) external view returns (address);
- /// @dev Not implemented
+ /// @notice Tells whether an operator is approved by a given owner.
/// @dev EVM selector for this function is: 0xe985e9c5,
/// or in textual repr: isApprovedForAll(address,address)
- function isApprovedForAll(address owner, address operator) external view returns (address);
+ function isApprovedForAll(address owner, address operator) external view returns (bool);
/// @notice Returns collection helper contract address
/// @dev EVM selector for this function is: 0x1896cce6,
tests/src/eth/api/UniqueRefungible.soldiffbeforeafterboth--- a/tests/src/eth/api/UniqueRefungible.sol
+++ b/tests/src/eth/api/UniqueRefungible.sol
@@ -668,7 +668,10 @@
/// or in textual repr: approve(address,uint256)
function approve(address approved, uint256 tokenId) external;
- /// @dev Not implemented
+ /// @notice Sets or unsets the approval of a given operator.
+ /// An operator is allowed to transfer all tokens of the sender on their behalf.
+ /// @param operator Operator
+ /// @param approved Is operator enabled or disabled
/// @dev EVM selector for this function is: 0xa22cb465,
/// or in textual repr: setApprovalForAll(address,bool)
function setApprovalForAll(address operator, bool approved) external;
@@ -678,10 +681,10 @@
/// or in textual repr: getApproved(uint256)
function getApproved(uint256 tokenId) external view returns (address);
- /// @dev Not implemented
+ /// @notice Tells whether an operator is approved by a given owner.
/// @dev EVM selector for this function is: 0xe985e9c5,
/// or in textual repr: isApprovedForAll(address,address)
- function isApprovedForAll(address owner, address operator) external view returns (address);
+ function isApprovedForAll(address owner, address operator) external view returns (bool);
/// @notice Returns collection helper contract address
/// @dev EVM selector for this function is: 0x1896cce6,
tests/src/eth/nonFungible.test.tsdiffbeforeafterboth--- a/tests/src/eth/nonFungible.test.ts
+++ b/tests/src/eth/nonFungible.test.ts
@@ -249,6 +249,114 @@
}
});
+ itEth('Can perform setApprovalForAll()', async ({helper}) => {
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = helper.eth.createAccount();
+
+ const collection = await helper.nft.mintCollection(minter, {});
+
+ const collectionAddress = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+
+ const approvedBefore = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedBefore).to.be.equal(false);
+
+ {
+ const result = await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+
+ expect(result.events.ApprovalForAll).to.be.like({
+ address: collectionAddress,
+ event: 'ApprovalForAll',
+ returnValues: {
+ owner,
+ operator,
+ approved: true,
+ },
+ });
+
+ const approvedAfter = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedAfter).to.be.equal(true);
+ }
+
+ {
+ const result = await contract.methods.setApprovalForAll(operator, false).send({from: owner});
+
+ expect(result.events.ApprovalForAll).to.be.like({
+ address: collectionAddress,
+ event: 'ApprovalForAll',
+ returnValues: {
+ owner,
+ operator,
+ approved: false,
+ },
+ });
+
+ const approvedAfter = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedAfter).to.be.equal(false);
+ }
+ });
+
+ itEth('Can perform burn with ApprovalForAll', async ({helper}) => {
+ const collection = await helper.nft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'nft');
+
+ {
+ await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ const result = await contract.methods.burnFromCross(ownerCross, token.tokenId).send({from: operator});
+ const events = result.events.Transfer;
+
+ expect(events).to.be.like({
+ address,
+ event: 'Transfer',
+ returnValues: {
+ from: owner,
+ to: '0x0000000000000000000000000000000000000000',
+ tokenId: token.tokenId.toString(),
+ },
+ });
+ }
+ });
+
+ itEth('Can perform transfer with ApprovalForAll', async ({helper}) => {
+ const collection = await helper.nft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = await helper.eth.createAccountWithBalance(donor);
+ const receiver = charlie;
+
+ const token = await collection.mintToken(minter, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'nft');
+
+ {
+ await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ const recieverCross = helper.ethCrossAccount.fromKeyringPair(receiver);
+ const result = await contract.methods.transferFromCross(ownerCross, recieverCross, token.tokenId).send({from: operator});
+ const event = result.events.Transfer;
+ expect(event).to.be.like({
+ address: helper.ethAddress.fromCollectionId(collection.collectionId),
+ event: 'Transfer',
+ returnValues: {
+ from: owner,
+ to: helper.address.substrateToEth(receiver.address),
+ tokenId: token.tokenId.toString(),
+ },
+ });
+ }
+
+ expect(await token.getOwner()).to.be.like({Substrate: receiver.address});
+ });
+
itEth('Can perform burnFromCross()', async ({helper}) => {
const collection = await helper.nft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
const ownerSub = bob;
@@ -822,3 +930,53 @@
expect(symbol).to.equal('CHANGE');
});
});
+
+describe('Negative tests', () => {
+ let donor: IKeyringPair;
+ let minter: IKeyringPair;
+ let alice: IKeyringPair;
+ let bob: IKeyringPair;
+
+ before(async function() {
+ await usingEthPlaygrounds(async (helper, privateKey) => {
+ donor = await privateKey({filename: __filename});
+ [minter, alice, bob] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);
+ });
+ });
+
+ itEth('[negative] Cant perform burn without approval', async ({helper}) => {
+ const collection = await helper.nft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = bob;
+ const spender = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, {Substrate: owner.address});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'nft');
+
+ {
+ const ownerCross = helper.ethCrossAccount.fromKeyringPair(owner);
+ await expect(contract.methods.burnFromCross(ownerCross, token.tokenId).send({from: spender})).to.be.rejected;
+ }
+ });
+
+ itEth('[negative] Cant perform transfer without approval', async ({helper}) => {
+ const collection = await helper.nft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+ const owner = bob;
+ const receiver = alice;
+
+ const spender = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, {Substrate: owner.address});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'nft');
+
+ {
+ const ownerCross = helper.ethCrossAccount.fromKeyringPair(owner);
+ const recieverCross = helper.ethCrossAccount.fromKeyringPair(receiver);
+ await expect(contract.methods.transferFromCross(ownerCross, recieverCross, token.tokenId).send({from: spender})).to.be.rejected;
+ }
+ });
+});
tests/src/eth/reFungible.test.tsdiffbeforeafterboth--- a/tests/src/eth/reFungible.test.ts
+++ b/tests/src/eth/reFungible.test.ts
@@ -169,6 +169,136 @@
}
});
+ itEth('Can perform setApprovalForAll()', async ({helper}) => {
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = helper.eth.createAccount();
+
+ const collection = await helper.rft.mintCollection(minter, {});
+
+ const collectionAddress = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(collectionAddress, 'rft', owner);
+
+ const approvedBefore = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedBefore).to.be.equal(false);
+
+ {
+ const result = await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+
+ expect(result.events.ApprovalForAll).to.be.like({
+ address: collectionAddress,
+ event: 'ApprovalForAll',
+ returnValues: {
+ owner,
+ operator,
+ approved: true,
+ },
+ });
+
+ const approvedAfter = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedAfter).to.be.equal(true);
+ }
+
+ {
+ const result = await contract.methods.setApprovalForAll(operator, false).send({from: owner});
+
+ expect(result.events.ApprovalForAll).to.be.like({
+ address: collectionAddress,
+ event: 'ApprovalForAll',
+ returnValues: {
+ owner,
+ operator,
+ approved: false,
+ },
+ });
+
+ const approvedAfter = await contract.methods.isApprovedForAll(owner, operator).call();
+ expect(approvedAfter).to.be.equal(false);
+ }
+ });
+
+ itEth('Can perform burn with ApprovalForAll', async ({helper}) => {
+ const collection = await helper.rft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, 100n, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'rft');
+
+ {
+ await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ const result = await contract.methods.burnFromCross(ownerCross, token.tokenId).send({from: operator});
+ const events = result.events.Transfer;
+
+ expect(events).to.be.like({
+ address,
+ event: 'Transfer',
+ returnValues: {
+ from: owner,
+ to: '0x0000000000000000000000000000000000000000',
+ tokenId: token.tokenId.toString(),
+ },
+ });
+ }
+ });
+
+ itEth('Can perform burn with approve and approvalForAll', async ({helper}) => {
+ const collection = await helper.rft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, 100n, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'rft');
+
+ const rftToken = helper.ethNativeContract.rftTokenById(token.collectionId, token.tokenId, owner);
+
+ {
+ await rftToken.methods.approve(operator, 15n).send({from: owner});
+ await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+ await rftToken.methods.burnFrom(owner, 10n).send({from: operator});
+ const allowance = await rftToken.methods.allowance(owner, operator).call();
+ expect(allowance).to.be.equal('5');
+ }
+ });
+
+ itEth('Can perform transfer with ApprovalForAll', async ({helper}) => {
+ const collection = await helper.rft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const operator = await helper.eth.createAccountWithBalance(donor);
+ const receiver = charlie;
+
+ const token = await collection.mintToken(minter, 100n, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'rft');
+
+ {
+ await contract.methods.setApprovalForAll(operator, true).send({from: owner});
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ const recieverCross = helper.ethCrossAccount.fromKeyringPair(receiver);
+ const result = await contract.methods.transferFromCross(ownerCross, recieverCross, token.tokenId).send({from: operator});
+ const event = result.events.Transfer;
+ expect(event).to.be.like({
+ address: helper.ethAddress.fromCollectionId(collection.collectionId),
+ event: 'Transfer',
+ returnValues: {
+ from: owner,
+ to: helper.address.substrateToEth(receiver.address),
+ tokenId: token.tokenId.toString(),
+ },
+ });
+ }
+
+ expect(await token.getTop10Owners()).to.be.like([{Substrate: receiver.address}]);
+ });
+
itEth('Can perform burn()', async ({helper}) => {
const caller = await helper.eth.createAccountWithBalance(donor);
const {collectionAddress} = await helper.eth.createRFTCollection(caller, 'Burny', '6', '6');
@@ -594,3 +724,52 @@
expect(symbol).to.equal('12');
});
});
+
+describe('Negative tests', () => {
+ let donor: IKeyringPair;
+ let minter: IKeyringPair;
+ let alice: IKeyringPair;
+
+ before(async function() {
+ await usingEthPlaygrounds(async (helper, privateKey) => {
+ donor = await privateKey({filename: __filename});
+ [minter, alice] = await helper.arrange.createAccounts([100n, 100n], donor);
+ });
+ });
+
+ itEth('[negative] Cant perform burn without approval', async ({helper}) => {
+ const collection = await helper.rft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+
+ const owner = await helper.eth.createAccountWithBalance(donor, 100n);
+ const spender = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, 100n, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'rft');
+
+ {
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ await expect(contract.methods.burnFromCross(ownerCross, token.tokenId).send({from: spender})).to.be.rejected;
+ }
+ });
+
+ itEth('[negative] Cant perform transfer without approval', async ({helper}) => {
+ const collection = await helper.rft.mintCollection(minter, {name: 'A', description: 'B', tokenPrefix: 'C'});
+ const owner = await helper.eth.createAccountWithBalance(donor, 100n);
+ const receiver = alice;
+
+ const spender = await helper.eth.createAccountWithBalance(donor, 100n);
+
+ const token = await collection.mintToken(minter, 100n, {Ethereum: owner});
+
+ const address = helper.ethAddress.fromCollectionId(collection.collectionId);
+ const contract = helper.ethNativeContract.collection(address, 'rft');
+
+ {
+ const ownerCross = helper.ethCrossAccount.fromAddress(owner);
+ const recieverCross = helper.ethCrossAccount.fromKeyringPair(receiver);
+ await expect(contract.methods.transferFromCross(ownerCross, recieverCross, token.tokenId).send({from: spender})).to.be.rejected;
+ }
+ });
+});
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -386,6 +386,10 @@
**/
NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
/**
+ * Setting approval for all is not allowed.
+ **/
+ SettingApprovalForAllNotAllowed: AugmentedError<ApiType>;
+ /**
* Setting item properties is not allowed.
**/
SettingPropertiesNotAllowed: AugmentedError<ApiType>;
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -107,6 +107,10 @@
**/
Approved: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
+ * Amount pieces of token owned by `sender` was approved for `spender`.
+ **/
+ ApprovedForAll: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;
+ /**
* New collection was created
**/
CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -442,6 +442,10 @@
**/
tokensMinted: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
+ * Operator set by a wallet owner that could perform certain transactions on all tokens in the wallet.
+ **/
+ walletOperator: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<Option<bool>>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
@@ -645,6 +649,10 @@
**/
totalSupply: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
+ * Operator set by a wallet owner that could perform certain transactions on all tokens in the wallet.
+ **/
+ walletOperator: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<Option<bool>>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ /**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -720,6 +720,10 @@
**/
effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;
/**
+ * Tells whether an operator is approved by a given owner.
+ **/
+ isApprovedForAll: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<bool>>>;
+ /**
* Get the last token ID created in a collection
**/
lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -1545,6 +1545,18 @@
**/
repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
/**
+ * Sets or unsets the approval of a given operator.
+ *
+ * An operator is allowed to transfer all tokens of the sender on their behalf.
+ *
+ * # Arguments
+ *
+ * * `owner`: Token owner
+ * * `operator`: Operator
+ * * `approve`: Is operator enabled or disabled
+ **/
+ setApprovalForAll: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;
+ /**
* Set specific limits of a collection. Empty, or None fields mean chain default.
*
* # Permissions
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1286,6 +1286,8 @@
readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isApproved: boolean;
readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
+ readonly isApprovedForAll: boolean;
+ readonly asApprovedForAll: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;
readonly isCollectionPropertySet: boolean;
readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;
readonly isCollectionPropertyDeleted: boolean;
@@ -1296,7 +1298,7 @@
readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;
readonly isPropertyPermissionSet: boolean;
readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;
- readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';
+ readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';
}
/** @name PalletConfigurationCall */
@@ -1603,7 +1605,8 @@
readonly isFungibleItemsDontHaveData: boolean;
readonly isFungibleDisallowsNesting: boolean;
readonly isSettingPropertiesNotAllowed: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
+ readonly isSettingApprovalForAllNotAllowed: boolean;
+ readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';
}
/** @name PalletInflationCall */
@@ -2309,7 +2312,13 @@
readonly tokenId: u32;
readonly amount: u128;
} & Struct;
- readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';
+ readonly isSetApprovalForAll: boolean;
+ readonly asSetApprovalForAll: {
+ readonly collectionId: u32;
+ readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;
+ readonly approve: bool;
+ } & Struct;
+ readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetApprovalForAll';
}
/** @name PalletUniqueError */
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1046,6 +1046,7 @@
ItemDestroyed: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
Transfer: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
Approved: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
+ ApprovedForAll: '(u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,bool)',
CollectionPropertySet: '(u32,Bytes)',
CollectionPropertyDeleted: '(u32,Bytes)',
TokenPropertySet: '(u32,u32,Bytes)',
@@ -1054,7 +1055,7 @@
}
},
/**
- * Lookup99: pallet_structure::pallet::Event<T>
+ * Lookup100: pallet_structure::pallet::Event<T>
**/
PalletStructureEvent: {
_enum: {
@@ -1062,7 +1063,7 @@
}
},
/**
- * Lookup100: pallet_rmrk_core::pallet::Event<T>
+ * Lookup101: pallet_rmrk_core::pallet::Event<T>
**/
PalletRmrkCoreEvent: {
_enum: {
@@ -1139,7 +1140,7 @@
}
},
/**
- * Lookup101: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
+ * Lookup102: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
**/
RmrkTraitsNftAccountIdOrCollectionNftTuple: {
_enum: {
@@ -2302,7 +2303,12 @@
repartition: {
collectionId: 'u32',
tokenId: 'u32',
- amount: 'u128'
+ amount: 'u128',
+ },
+ set_approval_for_all: {
+ collectionId: 'u32',
+ operator: 'PalletEvmAccountBasicCrossAccountIdRepr',
+ approve: 'bool'
}
}
},
@@ -3445,7 +3451,7 @@
* Lookup430: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
- _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
+ _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingApprovalForAllNotAllowed']
},
/**
* Lookup431: pallet_refungible::ItemData
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 { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';9import type { ITuple } from '@polkadot/types-codec/types';10import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill, Weight } from '@polkadot/types/interfaces/runtime';11import type { Event } from '@polkadot/types/interfaces/system';1213declare module '@polkadot/types/lookup' {14 /** @name FrameSystemAccountInfo (3) */15 interface FrameSystemAccountInfo extends Struct {16 readonly nonce: u32;17 readonly consumers: u32;18 readonly providers: u32;19 readonly sufficients: u32;20 readonly data: PalletBalancesAccountData;21 }2223 /** @name PalletBalancesAccountData (5) */24 interface PalletBalancesAccountData extends Struct {25 readonly free: u128;26 readonly reserved: u128;27 readonly miscFrozen: u128;28 readonly feeFrozen: u128;29 }3031 /** @name FrameSupportDispatchPerDispatchClassWeight (7) */32 interface FrameSupportDispatchPerDispatchClassWeight extends Struct {33 readonly normal: Weight;34 readonly operational: Weight;35 readonly mandatory: Weight;36 }3738 /** @name SpRuntimeDigest (12) */39 interface SpRuntimeDigest extends Struct {40 readonly logs: Vec<SpRuntimeDigestDigestItem>;41 }4243 /** @name SpRuntimeDigestDigestItem (14) */44 interface SpRuntimeDigestDigestItem extends Enum {45 readonly isOther: boolean;46 readonly asOther: Bytes;47 readonly isConsensus: boolean;48 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;49 readonly isSeal: boolean;50 readonly asSeal: ITuple<[U8aFixed, Bytes]>;51 readonly isPreRuntime: boolean;52 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;53 readonly isRuntimeEnvironmentUpdated: boolean;54 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';55 }5657 /** @name FrameSystemEventRecord (17) */58 interface FrameSystemEventRecord extends Struct {59 readonly phase: FrameSystemPhase;60 readonly event: Event;61 readonly topics: Vec<H256>;62 }6364 /** @name FrameSystemEvent (19) */65 interface FrameSystemEvent extends Enum {66 readonly isExtrinsicSuccess: boolean;67 readonly asExtrinsicSuccess: {68 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;69 } & Struct;70 readonly isExtrinsicFailed: boolean;71 readonly asExtrinsicFailed: {72 readonly dispatchError: SpRuntimeDispatchError;73 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;74 } & Struct;75 readonly isCodeUpdated: boolean;76 readonly isNewAccount: boolean;77 readonly asNewAccount: {78 readonly account: AccountId32;79 } & Struct;80 readonly isKilledAccount: boolean;81 readonly asKilledAccount: {82 readonly account: AccountId32;83 } & Struct;84 readonly isRemarked: boolean;85 readonly asRemarked: {86 readonly sender: AccountId32;87 readonly hash_: H256;88 } & Struct;89 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';90 }9192 /** @name FrameSupportDispatchDispatchInfo (20) */93 interface FrameSupportDispatchDispatchInfo extends Struct {94 readonly weight: Weight;95 readonly class: FrameSupportDispatchDispatchClass;96 readonly paysFee: FrameSupportDispatchPays;97 }9899 /** @name FrameSupportDispatchDispatchClass (21) */100 interface FrameSupportDispatchDispatchClass extends Enum {101 readonly isNormal: boolean;102 readonly isOperational: boolean;103 readonly isMandatory: boolean;104 readonly type: 'Normal' | 'Operational' | 'Mandatory';105 }106107 /** @name FrameSupportDispatchPays (22) */108 interface FrameSupportDispatchPays extends Enum {109 readonly isYes: boolean;110 readonly isNo: boolean;111 readonly type: 'Yes' | 'No';112 }113114 /** @name SpRuntimeDispatchError (23) */115 interface SpRuntimeDispatchError extends Enum {116 readonly isOther: boolean;117 readonly isCannotLookup: boolean;118 readonly isBadOrigin: boolean;119 readonly isModule: boolean;120 readonly asModule: SpRuntimeModuleError;121 readonly isConsumerRemaining: boolean;122 readonly isNoProviders: boolean;123 readonly isTooManyConsumers: boolean;124 readonly isToken: boolean;125 readonly asToken: SpRuntimeTokenError;126 readonly isArithmetic: boolean;127 readonly asArithmetic: SpRuntimeArithmeticError;128 readonly isTransactional: boolean;129 readonly asTransactional: SpRuntimeTransactionalError;130 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';131 }132133 /** @name SpRuntimeModuleError (24) */134 interface SpRuntimeModuleError extends Struct {135 readonly index: u8;136 readonly error: U8aFixed;137 }138139 /** @name SpRuntimeTokenError (25) */140 interface SpRuntimeTokenError extends Enum {141 readonly isNoFunds: boolean;142 readonly isWouldDie: boolean;143 readonly isBelowMinimum: boolean;144 readonly isCannotCreate: boolean;145 readonly isUnknownAsset: boolean;146 readonly isFrozen: boolean;147 readonly isUnsupported: boolean;148 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';149 }150151 /** @name SpRuntimeArithmeticError (26) */152 interface SpRuntimeArithmeticError extends Enum {153 readonly isUnderflow: boolean;154 readonly isOverflow: boolean;155 readonly isDivisionByZero: boolean;156 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';157 }158159 /** @name SpRuntimeTransactionalError (27) */160 interface SpRuntimeTransactionalError extends Enum {161 readonly isLimitReached: boolean;162 readonly isNoLayer: boolean;163 readonly type: 'LimitReached' | 'NoLayer';164 }165166 /** @name CumulusPalletParachainSystemEvent (28) */167 interface CumulusPalletParachainSystemEvent extends Enum {168 readonly isValidationFunctionStored: boolean;169 readonly isValidationFunctionApplied: boolean;170 readonly asValidationFunctionApplied: {171 readonly relayChainBlockNum: u32;172 } & Struct;173 readonly isValidationFunctionDiscarded: boolean;174 readonly isUpgradeAuthorized: boolean;175 readonly asUpgradeAuthorized: {176 readonly codeHash: H256;177 } & Struct;178 readonly isDownwardMessagesReceived: boolean;179 readonly asDownwardMessagesReceived: {180 readonly count: u32;181 } & Struct;182 readonly isDownwardMessagesProcessed: boolean;183 readonly asDownwardMessagesProcessed: {184 readonly weightUsed: Weight;185 readonly dmqHead: H256;186 } & Struct;187 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';188 }189190 /** @name PalletBalancesEvent (29) */191 interface PalletBalancesEvent extends Enum {192 readonly isEndowed: boolean;193 readonly asEndowed: {194 readonly account: AccountId32;195 readonly freeBalance: u128;196 } & Struct;197 readonly isDustLost: boolean;198 readonly asDustLost: {199 readonly account: AccountId32;200 readonly amount: u128;201 } & Struct;202 readonly isTransfer: boolean;203 readonly asTransfer: {204 readonly from: AccountId32;205 readonly to: AccountId32;206 readonly amount: u128;207 } & Struct;208 readonly isBalanceSet: boolean;209 readonly asBalanceSet: {210 readonly who: AccountId32;211 readonly free: u128;212 readonly reserved: u128;213 } & Struct;214 readonly isReserved: boolean;215 readonly asReserved: {216 readonly who: AccountId32;217 readonly amount: u128;218 } & Struct;219 readonly isUnreserved: boolean;220 readonly asUnreserved: {221 readonly who: AccountId32;222 readonly amount: u128;223 } & Struct;224 readonly isReserveRepatriated: boolean;225 readonly asReserveRepatriated: {226 readonly from: AccountId32;227 readonly to: AccountId32;228 readonly amount: u128;229 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;230 } & Struct;231 readonly isDeposit: boolean;232 readonly asDeposit: {233 readonly who: AccountId32;234 readonly amount: u128;235 } & Struct;236 readonly isWithdraw: boolean;237 readonly asWithdraw: {238 readonly who: AccountId32;239 readonly amount: u128;240 } & Struct;241 readonly isSlashed: boolean;242 readonly asSlashed: {243 readonly who: AccountId32;244 readonly amount: u128;245 } & Struct;246 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';247 }248249 /** @name FrameSupportTokensMiscBalanceStatus (30) */250 interface FrameSupportTokensMiscBalanceStatus extends Enum {251 readonly isFree: boolean;252 readonly isReserved: boolean;253 readonly type: 'Free' | 'Reserved';254 }255256 /** @name PalletTransactionPaymentEvent (31) */257 interface PalletTransactionPaymentEvent extends Enum {258 readonly isTransactionFeePaid: boolean;259 readonly asTransactionFeePaid: {260 readonly who: AccountId32;261 readonly actualFee: u128;262 readonly tip: u128;263 } & Struct;264 readonly type: 'TransactionFeePaid';265 }266267 /** @name PalletTreasuryEvent (32) */268 interface PalletTreasuryEvent extends Enum {269 readonly isProposed: boolean;270 readonly asProposed: {271 readonly proposalIndex: u32;272 } & Struct;273 readonly isSpending: boolean;274 readonly asSpending: {275 readonly budgetRemaining: u128;276 } & Struct;277 readonly isAwarded: boolean;278 readonly asAwarded: {279 readonly proposalIndex: u32;280 readonly award: u128;281 readonly account: AccountId32;282 } & Struct;283 readonly isRejected: boolean;284 readonly asRejected: {285 readonly proposalIndex: u32;286 readonly slashed: u128;287 } & Struct;288 readonly isBurnt: boolean;289 readonly asBurnt: {290 readonly burntFunds: u128;291 } & Struct;292 readonly isRollover: boolean;293 readonly asRollover: {294 readonly rolloverBalance: u128;295 } & Struct;296 readonly isDeposit: boolean;297 readonly asDeposit: {298 readonly value: u128;299 } & Struct;300 readonly isSpendApproved: boolean;301 readonly asSpendApproved: {302 readonly proposalIndex: u32;303 readonly amount: u128;304 readonly beneficiary: AccountId32;305 } & Struct;306 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';307 }308309 /** @name PalletSudoEvent (33) */310 interface PalletSudoEvent extends Enum {311 readonly isSudid: boolean;312 readonly asSudid: {313 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;314 } & Struct;315 readonly isKeyChanged: boolean;316 readonly asKeyChanged: {317 readonly oldSudoer: Option<AccountId32>;318 } & Struct;319 readonly isSudoAsDone: boolean;320 readonly asSudoAsDone: {321 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;322 } & Struct;323 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';324 }325326 /** @name OrmlVestingModuleEvent (37) */327 interface OrmlVestingModuleEvent extends Enum {328 readonly isVestingScheduleAdded: boolean;329 readonly asVestingScheduleAdded: {330 readonly from: AccountId32;331 readonly to: AccountId32;332 readonly vestingSchedule: OrmlVestingVestingSchedule;333 } & Struct;334 readonly isClaimed: boolean;335 readonly asClaimed: {336 readonly who: AccountId32;337 readonly amount: u128;338 } & Struct;339 readonly isVestingSchedulesUpdated: boolean;340 readonly asVestingSchedulesUpdated: {341 readonly who: AccountId32;342 } & Struct;343 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';344 }345346 /** @name OrmlVestingVestingSchedule (38) */347 interface OrmlVestingVestingSchedule extends Struct {348 readonly start: u32;349 readonly period: u32;350 readonly periodCount: u32;351 readonly perPeriod: Compact<u128>;352 }353354 /** @name OrmlXtokensModuleEvent (40) */355 interface OrmlXtokensModuleEvent extends Enum {356 readonly isTransferredMultiAssets: boolean;357 readonly asTransferredMultiAssets: {358 readonly sender: AccountId32;359 readonly assets: XcmV1MultiassetMultiAssets;360 readonly fee: XcmV1MultiAsset;361 readonly dest: XcmV1MultiLocation;362 } & Struct;363 readonly type: 'TransferredMultiAssets';364 }365366 /** @name XcmV1MultiassetMultiAssets (41) */367 interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}368369 /** @name XcmV1MultiAsset (43) */370 interface XcmV1MultiAsset extends Struct {371 readonly id: XcmV1MultiassetAssetId;372 readonly fun: XcmV1MultiassetFungibility;373 }374375 /** @name XcmV1MultiassetAssetId (44) */376 interface XcmV1MultiassetAssetId extends Enum {377 readonly isConcrete: boolean;378 readonly asConcrete: XcmV1MultiLocation;379 readonly isAbstract: boolean;380 readonly asAbstract: Bytes;381 readonly type: 'Concrete' | 'Abstract';382 }383384 /** @name XcmV1MultiLocation (45) */385 interface XcmV1MultiLocation extends Struct {386 readonly parents: u8;387 readonly interior: XcmV1MultilocationJunctions;388 }389390 /** @name XcmV1MultilocationJunctions (46) */391 interface XcmV1MultilocationJunctions extends Enum {392 readonly isHere: boolean;393 readonly isX1: boolean;394 readonly asX1: XcmV1Junction;395 readonly isX2: boolean;396 readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;397 readonly isX3: boolean;398 readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;399 readonly isX4: boolean;400 readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;401 readonly isX5: boolean;402 readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;403 readonly isX6: boolean;404 readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;405 readonly isX7: boolean;406 readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;407 readonly isX8: boolean;408 readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;409 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';410 }411412 /** @name XcmV1Junction (47) */413 interface XcmV1Junction extends Enum {414 readonly isParachain: boolean;415 readonly asParachain: Compact<u32>;416 readonly isAccountId32: boolean;417 readonly asAccountId32: {418 readonly network: XcmV0JunctionNetworkId;419 readonly id: U8aFixed;420 } & Struct;421 readonly isAccountIndex64: boolean;422 readonly asAccountIndex64: {423 readonly network: XcmV0JunctionNetworkId;424 readonly index: Compact<u64>;425 } & Struct;426 readonly isAccountKey20: boolean;427 readonly asAccountKey20: {428 readonly network: XcmV0JunctionNetworkId;429 readonly key: U8aFixed;430 } & Struct;431 readonly isPalletInstance: boolean;432 readonly asPalletInstance: u8;433 readonly isGeneralIndex: boolean;434 readonly asGeneralIndex: Compact<u128>;435 readonly isGeneralKey: boolean;436 readonly asGeneralKey: Bytes;437 readonly isOnlyChild: boolean;438 readonly isPlurality: boolean;439 readonly asPlurality: {440 readonly id: XcmV0JunctionBodyId;441 readonly part: XcmV0JunctionBodyPart;442 } & Struct;443 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';444 }445446 /** @name XcmV0JunctionNetworkId (49) */447 interface XcmV0JunctionNetworkId extends Enum {448 readonly isAny: boolean;449 readonly isNamed: boolean;450 readonly asNamed: Bytes;451 readonly isPolkadot: boolean;452 readonly isKusama: boolean;453 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';454 }455456 /** @name XcmV0JunctionBodyId (53) */457 interface XcmV0JunctionBodyId extends Enum {458 readonly isUnit: boolean;459 readonly isNamed: boolean;460 readonly asNamed: Bytes;461 readonly isIndex: boolean;462 readonly asIndex: Compact<u32>;463 readonly isExecutive: boolean;464 readonly isTechnical: boolean;465 readonly isLegislative: boolean;466 readonly isJudicial: boolean;467 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';468 }469470 /** @name XcmV0JunctionBodyPart (54) */471 interface XcmV0JunctionBodyPart extends Enum {472 readonly isVoice: boolean;473 readonly isMembers: boolean;474 readonly asMembers: {475 readonly count: Compact<u32>;476 } & Struct;477 readonly isFraction: boolean;478 readonly asFraction: {479 readonly nom: Compact<u32>;480 readonly denom: Compact<u32>;481 } & Struct;482 readonly isAtLeastProportion: boolean;483 readonly asAtLeastProportion: {484 readonly nom: Compact<u32>;485 readonly denom: Compact<u32>;486 } & Struct;487 readonly isMoreThanProportion: boolean;488 readonly asMoreThanProportion: {489 readonly nom: Compact<u32>;490 readonly denom: Compact<u32>;491 } & Struct;492 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';493 }494495 /** @name XcmV1MultiassetFungibility (55) */496 interface XcmV1MultiassetFungibility extends Enum {497 readonly isFungible: boolean;498 readonly asFungible: Compact<u128>;499 readonly isNonFungible: boolean;500 readonly asNonFungible: XcmV1MultiassetAssetInstance;501 readonly type: 'Fungible' | 'NonFungible';502 }503504 /** @name XcmV1MultiassetAssetInstance (56) */505 interface XcmV1MultiassetAssetInstance extends Enum {506 readonly isUndefined: boolean;507 readonly isIndex: boolean;508 readonly asIndex: Compact<u128>;509 readonly isArray4: boolean;510 readonly asArray4: U8aFixed;511 readonly isArray8: boolean;512 readonly asArray8: U8aFixed;513 readonly isArray16: boolean;514 readonly asArray16: U8aFixed;515 readonly isArray32: boolean;516 readonly asArray32: U8aFixed;517 readonly isBlob: boolean;518 readonly asBlob: Bytes;519 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';520 }521522 /** @name OrmlTokensModuleEvent (59) */523 interface OrmlTokensModuleEvent extends Enum {524 readonly isEndowed: boolean;525 readonly asEndowed: {526 readonly currencyId: PalletForeignAssetsAssetIds;527 readonly who: AccountId32;528 readonly amount: u128;529 } & Struct;530 readonly isDustLost: boolean;531 readonly asDustLost: {532 readonly currencyId: PalletForeignAssetsAssetIds;533 readonly who: AccountId32;534 readonly amount: u128;535 } & Struct;536 readonly isTransfer: boolean;537 readonly asTransfer: {538 readonly currencyId: PalletForeignAssetsAssetIds;539 readonly from: AccountId32;540 readonly to: AccountId32;541 readonly amount: u128;542 } & Struct;543 readonly isReserved: boolean;544 readonly asReserved: {545 readonly currencyId: PalletForeignAssetsAssetIds;546 readonly who: AccountId32;547 readonly amount: u128;548 } & Struct;549 readonly isUnreserved: boolean;550 readonly asUnreserved: {551 readonly currencyId: PalletForeignAssetsAssetIds;552 readonly who: AccountId32;553 readonly amount: u128;554 } & Struct;555 readonly isReserveRepatriated: boolean;556 readonly asReserveRepatriated: {557 readonly currencyId: PalletForeignAssetsAssetIds;558 readonly from: AccountId32;559 readonly to: AccountId32;560 readonly amount: u128;561 readonly status: FrameSupportTokensMiscBalanceStatus;562 } & Struct;563 readonly isBalanceSet: boolean;564 readonly asBalanceSet: {565 readonly currencyId: PalletForeignAssetsAssetIds;566 readonly who: AccountId32;567 readonly free: u128;568 readonly reserved: u128;569 } & Struct;570 readonly isTotalIssuanceSet: boolean;571 readonly asTotalIssuanceSet: {572 readonly currencyId: PalletForeignAssetsAssetIds;573 readonly amount: u128;574 } & Struct;575 readonly isWithdrawn: boolean;576 readonly asWithdrawn: {577 readonly currencyId: PalletForeignAssetsAssetIds;578 readonly who: AccountId32;579 readonly amount: u128;580 } & Struct;581 readonly isSlashed: boolean;582 readonly asSlashed: {583 readonly currencyId: PalletForeignAssetsAssetIds;584 readonly who: AccountId32;585 readonly freeAmount: u128;586 readonly reservedAmount: u128;587 } & Struct;588 readonly isDeposited: boolean;589 readonly asDeposited: {590 readonly currencyId: PalletForeignAssetsAssetIds;591 readonly who: AccountId32;592 readonly amount: u128;593 } & Struct;594 readonly isLockSet: boolean;595 readonly asLockSet: {596 readonly lockId: U8aFixed;597 readonly currencyId: PalletForeignAssetsAssetIds;598 readonly who: AccountId32;599 readonly amount: u128;600 } & Struct;601 readonly isLockRemoved: boolean;602 readonly asLockRemoved: {603 readonly lockId: U8aFixed;604 readonly currencyId: PalletForeignAssetsAssetIds;605 readonly who: AccountId32;606 } & Struct;607 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';608 }609610 /** @name PalletForeignAssetsAssetIds (60) */611 interface PalletForeignAssetsAssetIds extends Enum {612 readonly isForeignAssetId: boolean;613 readonly asForeignAssetId: u32;614 readonly isNativeAssetId: boolean;615 readonly asNativeAssetId: PalletForeignAssetsNativeCurrency;616 readonly type: 'ForeignAssetId' | 'NativeAssetId';617 }618619 /** @name PalletForeignAssetsNativeCurrency (61) */620 interface PalletForeignAssetsNativeCurrency extends Enum {621 readonly isHere: boolean;622 readonly isParent: boolean;623 readonly type: 'Here' | 'Parent';624 }625626 /** @name CumulusPalletXcmpQueueEvent (62) */627 interface CumulusPalletXcmpQueueEvent extends Enum {628 readonly isSuccess: boolean;629 readonly asSuccess: {630 readonly messageHash: Option<H256>;631 readonly weight: Weight;632 } & Struct;633 readonly isFail: boolean;634 readonly asFail: {635 readonly messageHash: Option<H256>;636 readonly error: XcmV2TraitsError;637 readonly weight: Weight;638 } & Struct;639 readonly isBadVersion: boolean;640 readonly asBadVersion: {641 readonly messageHash: Option<H256>;642 } & Struct;643 readonly isBadFormat: boolean;644 readonly asBadFormat: {645 readonly messageHash: Option<H256>;646 } & Struct;647 readonly isUpwardMessageSent: boolean;648 readonly asUpwardMessageSent: {649 readonly messageHash: Option<H256>;650 } & Struct;651 readonly isXcmpMessageSent: boolean;652 readonly asXcmpMessageSent: {653 readonly messageHash: Option<H256>;654 } & Struct;655 readonly isOverweightEnqueued: boolean;656 readonly asOverweightEnqueued: {657 readonly sender: u32;658 readonly sentAt: u32;659 readonly index: u64;660 readonly required: Weight;661 } & Struct;662 readonly isOverweightServiced: boolean;663 readonly asOverweightServiced: {664 readonly index: u64;665 readonly used: Weight;666 } & Struct;667 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';668 }669670 /** @name XcmV2TraitsError (64) */671 interface XcmV2TraitsError extends Enum {672 readonly isOverflow: boolean;673 readonly isUnimplemented: boolean;674 readonly isUntrustedReserveLocation: boolean;675 readonly isUntrustedTeleportLocation: boolean;676 readonly isMultiLocationFull: boolean;677 readonly isMultiLocationNotInvertible: boolean;678 readonly isBadOrigin: boolean;679 readonly isInvalidLocation: boolean;680 readonly isAssetNotFound: boolean;681 readonly isFailedToTransactAsset: boolean;682 readonly isNotWithdrawable: boolean;683 readonly isLocationCannotHold: boolean;684 readonly isExceedsMaxMessageSize: boolean;685 readonly isDestinationUnsupported: boolean;686 readonly isTransport: boolean;687 readonly isUnroutable: boolean;688 readonly isUnknownClaim: boolean;689 readonly isFailedToDecode: boolean;690 readonly isMaxWeightInvalid: boolean;691 readonly isNotHoldingFees: boolean;692 readonly isTooExpensive: boolean;693 readonly isTrap: boolean;694 readonly asTrap: u64;695 readonly isUnhandledXcmVersion: boolean;696 readonly isWeightLimitReached: boolean;697 readonly asWeightLimitReached: u64;698 readonly isBarrier: boolean;699 readonly isWeightNotComputable: boolean;700 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';701 }702703 /** @name PalletXcmEvent (66) */704 interface PalletXcmEvent extends Enum {705 readonly isAttempted: boolean;706 readonly asAttempted: XcmV2TraitsOutcome;707 readonly isSent: boolean;708 readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;709 readonly isUnexpectedResponse: boolean;710 readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;711 readonly isResponseReady: boolean;712 readonly asResponseReady: ITuple<[u64, XcmV2Response]>;713 readonly isNotified: boolean;714 readonly asNotified: ITuple<[u64, u8, u8]>;715 readonly isNotifyOverweight: boolean;716 readonly asNotifyOverweight: ITuple<[u64, u8, u8, Weight, Weight]>;717 readonly isNotifyDispatchError: boolean;718 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;719 readonly isNotifyDecodeFailed: boolean;720 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;721 readonly isInvalidResponder: boolean;722 readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;723 readonly isInvalidResponderVersion: boolean;724 readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;725 readonly isResponseTaken: boolean;726 readonly asResponseTaken: u64;727 readonly isAssetsTrapped: boolean;728 readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;729 readonly isVersionChangeNotified: boolean;730 readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;731 readonly isSupportedVersionChanged: boolean;732 readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;733 readonly isNotifyTargetSendFail: boolean;734 readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;735 readonly isNotifyTargetMigrationFail: boolean;736 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;737 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';738 }739740 /** @name XcmV2TraitsOutcome (67) */741 interface XcmV2TraitsOutcome extends Enum {742 readonly isComplete: boolean;743 readonly asComplete: u64;744 readonly isIncomplete: boolean;745 readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;746 readonly isError: boolean;747 readonly asError: XcmV2TraitsError;748 readonly type: 'Complete' | 'Incomplete' | 'Error';749 }750751 /** @name XcmV2Xcm (68) */752 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}753754 /** @name XcmV2Instruction (70) */755 interface XcmV2Instruction extends Enum {756 readonly isWithdrawAsset: boolean;757 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;758 readonly isReserveAssetDeposited: boolean;759 readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;760 readonly isReceiveTeleportedAsset: boolean;761 readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;762 readonly isQueryResponse: boolean;763 readonly asQueryResponse: {764 readonly queryId: Compact<u64>;765 readonly response: XcmV2Response;766 readonly maxWeight: Compact<u64>;767 } & Struct;768 readonly isTransferAsset: boolean;769 readonly asTransferAsset: {770 readonly assets: XcmV1MultiassetMultiAssets;771 readonly beneficiary: XcmV1MultiLocation;772 } & Struct;773 readonly isTransferReserveAsset: boolean;774 readonly asTransferReserveAsset: {775 readonly assets: XcmV1MultiassetMultiAssets;776 readonly dest: XcmV1MultiLocation;777 readonly xcm: XcmV2Xcm;778 } & Struct;779 readonly isTransact: boolean;780 readonly asTransact: {781 readonly originType: XcmV0OriginKind;782 readonly requireWeightAtMost: Compact<u64>;783 readonly call: XcmDoubleEncoded;784 } & Struct;785 readonly isHrmpNewChannelOpenRequest: boolean;786 readonly asHrmpNewChannelOpenRequest: {787 readonly sender: Compact<u32>;788 readonly maxMessageSize: Compact<u32>;789 readonly maxCapacity: Compact<u32>;790 } & Struct;791 readonly isHrmpChannelAccepted: boolean;792 readonly asHrmpChannelAccepted: {793 readonly recipient: Compact<u32>;794 } & Struct;795 readonly isHrmpChannelClosing: boolean;796 readonly asHrmpChannelClosing: {797 readonly initiator: Compact<u32>;798 readonly sender: Compact<u32>;799 readonly recipient: Compact<u32>;800 } & Struct;801 readonly isClearOrigin: boolean;802 readonly isDescendOrigin: boolean;803 readonly asDescendOrigin: XcmV1MultilocationJunctions;804 readonly isReportError: boolean;805 readonly asReportError: {806 readonly queryId: Compact<u64>;807 readonly dest: XcmV1MultiLocation;808 readonly maxResponseWeight: Compact<u64>;809 } & Struct;810 readonly isDepositAsset: boolean;811 readonly asDepositAsset: {812 readonly assets: XcmV1MultiassetMultiAssetFilter;813 readonly maxAssets: Compact<u32>;814 readonly beneficiary: XcmV1MultiLocation;815 } & Struct;816 readonly isDepositReserveAsset: boolean;817 readonly asDepositReserveAsset: {818 readonly assets: XcmV1MultiassetMultiAssetFilter;819 readonly maxAssets: Compact<u32>;820 readonly dest: XcmV1MultiLocation;821 readonly xcm: XcmV2Xcm;822 } & Struct;823 readonly isExchangeAsset: boolean;824 readonly asExchangeAsset: {825 readonly give: XcmV1MultiassetMultiAssetFilter;826 readonly receive: XcmV1MultiassetMultiAssets;827 } & Struct;828 readonly isInitiateReserveWithdraw: boolean;829 readonly asInitiateReserveWithdraw: {830 readonly assets: XcmV1MultiassetMultiAssetFilter;831 readonly reserve: XcmV1MultiLocation;832 readonly xcm: XcmV2Xcm;833 } & Struct;834 readonly isInitiateTeleport: boolean;835 readonly asInitiateTeleport: {836 readonly assets: XcmV1MultiassetMultiAssetFilter;837 readonly dest: XcmV1MultiLocation;838 readonly xcm: XcmV2Xcm;839 } & Struct;840 readonly isQueryHolding: boolean;841 readonly asQueryHolding: {842 readonly queryId: Compact<u64>;843 readonly dest: XcmV1MultiLocation;844 readonly assets: XcmV1MultiassetMultiAssetFilter;845 readonly maxResponseWeight: Compact<u64>;846 } & Struct;847 readonly isBuyExecution: boolean;848 readonly asBuyExecution: {849 readonly fees: XcmV1MultiAsset;850 readonly weightLimit: XcmV2WeightLimit;851 } & Struct;852 readonly isRefundSurplus: boolean;853 readonly isSetErrorHandler: boolean;854 readonly asSetErrorHandler: XcmV2Xcm;855 readonly isSetAppendix: boolean;856 readonly asSetAppendix: XcmV2Xcm;857 readonly isClearError: boolean;858 readonly isClaimAsset: boolean;859 readonly asClaimAsset: {860 readonly assets: XcmV1MultiassetMultiAssets;861 readonly ticket: XcmV1MultiLocation;862 } & Struct;863 readonly isTrap: boolean;864 readonly asTrap: Compact<u64>;865 readonly isSubscribeVersion: boolean;866 readonly asSubscribeVersion: {867 readonly queryId: Compact<u64>;868 readonly maxResponseWeight: Compact<u64>;869 } & Struct;870 readonly isUnsubscribeVersion: boolean;871 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';872 }873874 /** @name XcmV2Response (71) */875 interface XcmV2Response extends Enum {876 readonly isNull: boolean;877 readonly isAssets: boolean;878 readonly asAssets: XcmV1MultiassetMultiAssets;879 readonly isExecutionResult: boolean;880 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;881 readonly isVersion: boolean;882 readonly asVersion: u32;883 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';884 }885886 /** @name XcmV0OriginKind (74) */887 interface XcmV0OriginKind extends Enum {888 readonly isNative: boolean;889 readonly isSovereignAccount: boolean;890 readonly isSuperuser: boolean;891 readonly isXcm: boolean;892 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';893 }894895 /** @name XcmDoubleEncoded (75) */896 interface XcmDoubleEncoded extends Struct {897 readonly encoded: Bytes;898 }899900 /** @name XcmV1MultiassetMultiAssetFilter (76) */901 interface XcmV1MultiassetMultiAssetFilter extends Enum {902 readonly isDefinite: boolean;903 readonly asDefinite: XcmV1MultiassetMultiAssets;904 readonly isWild: boolean;905 readonly asWild: XcmV1MultiassetWildMultiAsset;906 readonly type: 'Definite' | 'Wild';907 }908909 /** @name XcmV1MultiassetWildMultiAsset (77) */910 interface XcmV1MultiassetWildMultiAsset extends Enum {911 readonly isAll: boolean;912 readonly isAllOf: boolean;913 readonly asAllOf: {914 readonly id: XcmV1MultiassetAssetId;915 readonly fun: XcmV1MultiassetWildFungibility;916 } & Struct;917 readonly type: 'All' | 'AllOf';918 }919920 /** @name XcmV1MultiassetWildFungibility (78) */921 interface XcmV1MultiassetWildFungibility extends Enum {922 readonly isFungible: boolean;923 readonly isNonFungible: boolean;924 readonly type: 'Fungible' | 'NonFungible';925 }926927 /** @name XcmV2WeightLimit (79) */928 interface XcmV2WeightLimit extends Enum {929 readonly isUnlimited: boolean;930 readonly isLimited: boolean;931 readonly asLimited: Compact<u64>;932 readonly type: 'Unlimited' | 'Limited';933 }934935 /** @name XcmVersionedMultiAssets (81) */936 interface XcmVersionedMultiAssets extends Enum {937 readonly isV0: boolean;938 readonly asV0: Vec<XcmV0MultiAsset>;939 readonly isV1: boolean;940 readonly asV1: XcmV1MultiassetMultiAssets;941 readonly type: 'V0' | 'V1';942 }943944 /** @name XcmV0MultiAsset (83) */945 interface XcmV0MultiAsset extends Enum {946 readonly isNone: boolean;947 readonly isAll: boolean;948 readonly isAllFungible: boolean;949 readonly isAllNonFungible: boolean;950 readonly isAllAbstractFungible: boolean;951 readonly asAllAbstractFungible: {952 readonly id: Bytes;953 } & Struct;954 readonly isAllAbstractNonFungible: boolean;955 readonly asAllAbstractNonFungible: {956 readonly class: Bytes;957 } & Struct;958 readonly isAllConcreteFungible: boolean;959 readonly asAllConcreteFungible: {960 readonly id: XcmV0MultiLocation;961 } & Struct;962 readonly isAllConcreteNonFungible: boolean;963 readonly asAllConcreteNonFungible: {964 readonly class: XcmV0MultiLocation;965 } & Struct;966 readonly isAbstractFungible: boolean;967 readonly asAbstractFungible: {968 readonly id: Bytes;969 readonly amount: Compact<u128>;970 } & Struct;971 readonly isAbstractNonFungible: boolean;972 readonly asAbstractNonFungible: {973 readonly class: Bytes;974 readonly instance: XcmV1MultiassetAssetInstance;975 } & Struct;976 readonly isConcreteFungible: boolean;977 readonly asConcreteFungible: {978 readonly id: XcmV0MultiLocation;979 readonly amount: Compact<u128>;980 } & Struct;981 readonly isConcreteNonFungible: boolean;982 readonly asConcreteNonFungible: {983 readonly class: XcmV0MultiLocation;984 readonly instance: XcmV1MultiassetAssetInstance;985 } & Struct;986 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';987 }988989 /** @name XcmV0MultiLocation (84) */990 interface XcmV0MultiLocation extends Enum {991 readonly isNull: boolean;992 readonly isX1: boolean;993 readonly asX1: XcmV0Junction;994 readonly isX2: boolean;995 readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;996 readonly isX3: boolean;997 readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;998 readonly isX4: boolean;999 readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1000 readonly isX5: boolean;1001 readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1002 readonly isX6: boolean;1003 readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1004 readonly isX7: boolean;1005 readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1006 readonly isX8: boolean;1007 readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1008 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1009 }10101011 /** @name XcmV0Junction (85) */1012 interface XcmV0Junction extends Enum {1013 readonly isParent: boolean;1014 readonly isParachain: boolean;1015 readonly asParachain: Compact<u32>;1016 readonly isAccountId32: boolean;1017 readonly asAccountId32: {1018 readonly network: XcmV0JunctionNetworkId;1019 readonly id: U8aFixed;1020 } & Struct;1021 readonly isAccountIndex64: boolean;1022 readonly asAccountIndex64: {1023 readonly network: XcmV0JunctionNetworkId;1024 readonly index: Compact<u64>;1025 } & Struct;1026 readonly isAccountKey20: boolean;1027 readonly asAccountKey20: {1028 readonly network: XcmV0JunctionNetworkId;1029 readonly key: U8aFixed;1030 } & Struct;1031 readonly isPalletInstance: boolean;1032 readonly asPalletInstance: u8;1033 readonly isGeneralIndex: boolean;1034 readonly asGeneralIndex: Compact<u128>;1035 readonly isGeneralKey: boolean;1036 readonly asGeneralKey: Bytes;1037 readonly isOnlyChild: boolean;1038 readonly isPlurality: boolean;1039 readonly asPlurality: {1040 readonly id: XcmV0JunctionBodyId;1041 readonly part: XcmV0JunctionBodyPart;1042 } & Struct;1043 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1044 }10451046 /** @name XcmVersionedMultiLocation (86) */1047 interface XcmVersionedMultiLocation extends Enum {1048 readonly isV0: boolean;1049 readonly asV0: XcmV0MultiLocation;1050 readonly isV1: boolean;1051 readonly asV1: XcmV1MultiLocation;1052 readonly type: 'V0' | 'V1';1053 }10541055 /** @name CumulusPalletXcmEvent (87) */1056 interface CumulusPalletXcmEvent extends Enum {1057 readonly isInvalidFormat: boolean;1058 readonly asInvalidFormat: U8aFixed;1059 readonly isUnsupportedVersion: boolean;1060 readonly asUnsupportedVersion: U8aFixed;1061 readonly isExecutedDownward: boolean;1062 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;1063 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1064 }10651066 /** @name CumulusPalletDmpQueueEvent (88) */1067 interface CumulusPalletDmpQueueEvent extends Enum {1068 readonly isInvalidFormat: boolean;1069 readonly asInvalidFormat: {1070 readonly messageId: U8aFixed;1071 } & Struct;1072 readonly isUnsupportedVersion: boolean;1073 readonly asUnsupportedVersion: {1074 readonly messageId: U8aFixed;1075 } & Struct;1076 readonly isExecutedDownward: boolean;1077 readonly asExecutedDownward: {1078 readonly messageId: U8aFixed;1079 readonly outcome: XcmV2TraitsOutcome;1080 } & Struct;1081 readonly isWeightExhausted: boolean;1082 readonly asWeightExhausted: {1083 readonly messageId: U8aFixed;1084 readonly remainingWeight: Weight;1085 readonly requiredWeight: Weight;1086 } & Struct;1087 readonly isOverweightEnqueued: boolean;1088 readonly asOverweightEnqueued: {1089 readonly messageId: U8aFixed;1090 readonly overweightIndex: u64;1091 readonly requiredWeight: Weight;1092 } & Struct;1093 readonly isOverweightServiced: boolean;1094 readonly asOverweightServiced: {1095 readonly overweightIndex: u64;1096 readonly weightUsed: Weight;1097 } & Struct;1098 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';1099 }11001101 /** @name PalletUniqueRawEvent (89) */1102 interface PalletUniqueRawEvent extends Enum {1103 readonly isCollectionSponsorRemoved: boolean;1104 readonly asCollectionSponsorRemoved: u32;1105 readonly isCollectionAdminAdded: boolean;1106 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1107 readonly isCollectionOwnedChanged: boolean;1108 readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;1109 readonly isCollectionSponsorSet: boolean;1110 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1111 readonly isSponsorshipConfirmed: boolean;1112 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1113 readonly isCollectionAdminRemoved: boolean;1114 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1115 readonly isAllowListAddressRemoved: boolean;1116 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1117 readonly isAllowListAddressAdded: boolean;1118 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1119 readonly isCollectionLimitSet: boolean;1120 readonly asCollectionLimitSet: u32;1121 readonly isCollectionPermissionSet: boolean;1122 readonly asCollectionPermissionSet: u32;1123 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';1124 }11251126 /** @name PalletEvmAccountBasicCrossAccountIdRepr (90) */1127 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1128 readonly isSubstrate: boolean;1129 readonly asSubstrate: AccountId32;1130 readonly isEthereum: boolean;1131 readonly asEthereum: H160;1132 readonly type: 'Substrate' | 'Ethereum';1133 }11341135 /** @name PalletUniqueSchedulerV2Event (93) */1136 interface PalletUniqueSchedulerV2Event extends Enum {1137 readonly isScheduled: boolean;1138 readonly asScheduled: {1139 readonly when: u32;1140 readonly index: u32;1141 } & Struct;1142 readonly isCanceled: boolean;1143 readonly asCanceled: {1144 readonly when: u32;1145 readonly index: u32;1146 } & Struct;1147 readonly isDispatched: boolean;1148 readonly asDispatched: {1149 readonly task: ITuple<[u32, u32]>;1150 readonly id: Option<U8aFixed>;1151 readonly result: Result<Null, SpRuntimeDispatchError>;1152 } & Struct;1153 readonly isPriorityChanged: boolean;1154 readonly asPriorityChanged: {1155 readonly task: ITuple<[u32, u32]>;1156 readonly priority: u8;1157 } & Struct;1158 readonly isCallUnavailable: boolean;1159 readonly asCallUnavailable: {1160 readonly task: ITuple<[u32, u32]>;1161 readonly id: Option<U8aFixed>;1162 } & Struct;1163 readonly isPermanentlyOverweight: boolean;1164 readonly asPermanentlyOverweight: {1165 readonly task: ITuple<[u32, u32]>;1166 readonly id: Option<U8aFixed>;1167 } & Struct;1168 readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'PriorityChanged' | 'CallUnavailable' | 'PermanentlyOverweight';1169 }11701171 /** @name PalletCommonEvent (96) */1172 interface PalletCommonEvent extends Enum {1173 readonly isCollectionCreated: boolean;1174 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1175 readonly isCollectionDestroyed: boolean;1176 readonly asCollectionDestroyed: u32;1177 readonly isItemCreated: boolean;1178 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1179 readonly isItemDestroyed: boolean;1180 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1181 readonly isTransfer: boolean;1182 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1183 readonly isApproved: boolean;1184 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1185 readonly isCollectionPropertySet: boolean;1186 readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;1187 readonly isCollectionPropertyDeleted: boolean;1188 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;1189 readonly isTokenPropertySet: boolean;1190 readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;1191 readonly isTokenPropertyDeleted: boolean;1192 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;1193 readonly isPropertyPermissionSet: boolean;1194 readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;1195 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';1196 }11971198 /** @name PalletStructureEvent (99) */1199 interface PalletStructureEvent extends Enum {1200 readonly isExecuted: boolean;1201 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1202 readonly type: 'Executed';1203 }12041205 /** @name PalletRmrkCoreEvent (100) */1206 interface PalletRmrkCoreEvent extends Enum {1207 readonly isCollectionCreated: boolean;1208 readonly asCollectionCreated: {1209 readonly issuer: AccountId32;1210 readonly collectionId: u32;1211 } & Struct;1212 readonly isCollectionDestroyed: boolean;1213 readonly asCollectionDestroyed: {1214 readonly issuer: AccountId32;1215 readonly collectionId: u32;1216 } & Struct;1217 readonly isIssuerChanged: boolean;1218 readonly asIssuerChanged: {1219 readonly oldIssuer: AccountId32;1220 readonly newIssuer: AccountId32;1221 readonly collectionId: u32;1222 } & Struct;1223 readonly isCollectionLocked: boolean;1224 readonly asCollectionLocked: {1225 readonly issuer: AccountId32;1226 readonly collectionId: u32;1227 } & Struct;1228 readonly isNftMinted: boolean;1229 readonly asNftMinted: {1230 readonly owner: AccountId32;1231 readonly collectionId: u32;1232 readonly nftId: u32;1233 } & Struct;1234 readonly isNftBurned: boolean;1235 readonly asNftBurned: {1236 readonly owner: AccountId32;1237 readonly nftId: u32;1238 } & Struct;1239 readonly isNftSent: boolean;1240 readonly asNftSent: {1241 readonly sender: AccountId32;1242 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1243 readonly collectionId: u32;1244 readonly nftId: u32;1245 readonly approvalRequired: bool;1246 } & Struct;1247 readonly isNftAccepted: boolean;1248 readonly asNftAccepted: {1249 readonly sender: AccountId32;1250 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1251 readonly collectionId: u32;1252 readonly nftId: u32;1253 } & Struct;1254 readonly isNftRejected: boolean;1255 readonly asNftRejected: {1256 readonly sender: AccountId32;1257 readonly collectionId: u32;1258 readonly nftId: u32;1259 } & Struct;1260 readonly isPropertySet: boolean;1261 readonly asPropertySet: {1262 readonly collectionId: u32;1263 readonly maybeNftId: Option<u32>;1264 readonly key: Bytes;1265 readonly value: Bytes;1266 } & Struct;1267 readonly isResourceAdded: boolean;1268 readonly asResourceAdded: {1269 readonly nftId: u32;1270 readonly resourceId: u32;1271 } & Struct;1272 readonly isResourceRemoval: boolean;1273 readonly asResourceRemoval: {1274 readonly nftId: u32;1275 readonly resourceId: u32;1276 } & Struct;1277 readonly isResourceAccepted: boolean;1278 readonly asResourceAccepted: {1279 readonly nftId: u32;1280 readonly resourceId: u32;1281 } & Struct;1282 readonly isResourceRemovalAccepted: boolean;1283 readonly asResourceRemovalAccepted: {1284 readonly nftId: u32;1285 readonly resourceId: u32;1286 } & Struct;1287 readonly isPrioritySet: boolean;1288 readonly asPrioritySet: {1289 readonly collectionId: u32;1290 readonly nftId: u32;1291 } & Struct;1292 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';1293 }12941295 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (101) */1296 interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1297 readonly isAccountId: boolean;1298 readonly asAccountId: AccountId32;1299 readonly isCollectionAndNftTuple: boolean;1300 readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;1301 readonly type: 'AccountId' | 'CollectionAndNftTuple';1302 }13031304 /** @name PalletRmrkEquipEvent (106) */1305 interface PalletRmrkEquipEvent extends Enum {1306 readonly isBaseCreated: boolean;1307 readonly asBaseCreated: {1308 readonly issuer: AccountId32;1309 readonly baseId: u32;1310 } & Struct;1311 readonly isEquippablesUpdated: boolean;1312 readonly asEquippablesUpdated: {1313 readonly baseId: u32;1314 readonly slotId: u32;1315 } & Struct;1316 readonly type: 'BaseCreated' | 'EquippablesUpdated';1317 }13181319 /** @name PalletAppPromotionEvent (107) */1320 interface PalletAppPromotionEvent extends Enum {1321 readonly isStakingRecalculation: boolean;1322 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1323 readonly isStake: boolean;1324 readonly asStake: ITuple<[AccountId32, u128]>;1325 readonly isUnstake: boolean;1326 readonly asUnstake: ITuple<[AccountId32, u128]>;1327 readonly isSetAdmin: boolean;1328 readonly asSetAdmin: AccountId32;1329 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1330 }13311332 /** @name PalletForeignAssetsModuleEvent (108) */1333 interface PalletForeignAssetsModuleEvent extends Enum {1334 readonly isForeignAssetRegistered: boolean;1335 readonly asForeignAssetRegistered: {1336 readonly assetId: u32;1337 readonly assetAddress: XcmV1MultiLocation;1338 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1339 } & Struct;1340 readonly isForeignAssetUpdated: boolean;1341 readonly asForeignAssetUpdated: {1342 readonly assetId: u32;1343 readonly assetAddress: XcmV1MultiLocation;1344 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1345 } & Struct;1346 readonly isAssetRegistered: boolean;1347 readonly asAssetRegistered: {1348 readonly assetId: PalletForeignAssetsAssetIds;1349 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1350 } & Struct;1351 readonly isAssetUpdated: boolean;1352 readonly asAssetUpdated: {1353 readonly assetId: PalletForeignAssetsAssetIds;1354 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1355 } & Struct;1356 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1357 }13581359 /** @name PalletForeignAssetsModuleAssetMetadata (109) */1360 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1361 readonly name: Bytes;1362 readonly symbol: Bytes;1363 readonly decimals: u8;1364 readonly minimalBalance: u128;1365 }13661367 /** @name PalletEvmEvent (110) */1368 interface PalletEvmEvent extends Enum {1369 readonly isLog: boolean;1370 readonly asLog: {1371 readonly log: EthereumLog;1372 } & Struct;1373 readonly isCreated: boolean;1374 readonly asCreated: {1375 readonly address: H160;1376 } & Struct;1377 readonly isCreatedFailed: boolean;1378 readonly asCreatedFailed: {1379 readonly address: H160;1380 } & Struct;1381 readonly isExecuted: boolean;1382 readonly asExecuted: {1383 readonly address: H160;1384 } & Struct;1385 readonly isExecutedFailed: boolean;1386 readonly asExecutedFailed: {1387 readonly address: H160;1388 } & Struct;1389 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1390 }13911392 /** @name EthereumLog (111) */1393 interface EthereumLog extends Struct {1394 readonly address: H160;1395 readonly topics: Vec<H256>;1396 readonly data: Bytes;1397 }13981399 /** @name PalletEthereumEvent (113) */1400 interface PalletEthereumEvent extends Enum {1401 readonly isExecuted: boolean;1402 readonly asExecuted: {1403 readonly from: H160;1404 readonly to: H160;1405 readonly transactionHash: H256;1406 readonly exitReason: EvmCoreErrorExitReason;1407 } & Struct;1408 readonly type: 'Executed';1409 }14101411 /** @name EvmCoreErrorExitReason (114) */1412 interface EvmCoreErrorExitReason extends Enum {1413 readonly isSucceed: boolean;1414 readonly asSucceed: EvmCoreErrorExitSucceed;1415 readonly isError: boolean;1416 readonly asError: EvmCoreErrorExitError;1417 readonly isRevert: boolean;1418 readonly asRevert: EvmCoreErrorExitRevert;1419 readonly isFatal: boolean;1420 readonly asFatal: EvmCoreErrorExitFatal;1421 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1422 }14231424 /** @name EvmCoreErrorExitSucceed (115) */1425 interface EvmCoreErrorExitSucceed extends Enum {1426 readonly isStopped: boolean;1427 readonly isReturned: boolean;1428 readonly isSuicided: boolean;1429 readonly type: 'Stopped' | 'Returned' | 'Suicided';1430 }14311432 /** @name EvmCoreErrorExitError (116) */1433 interface EvmCoreErrorExitError extends Enum {1434 readonly isStackUnderflow: boolean;1435 readonly isStackOverflow: boolean;1436 readonly isInvalidJump: boolean;1437 readonly isInvalidRange: boolean;1438 readonly isDesignatedInvalid: boolean;1439 readonly isCallTooDeep: boolean;1440 readonly isCreateCollision: boolean;1441 readonly isCreateContractLimit: boolean;1442 readonly isOutOfOffset: boolean;1443 readonly isOutOfGas: boolean;1444 readonly isOutOfFund: boolean;1445 readonly isPcUnderflow: boolean;1446 readonly isCreateEmpty: boolean;1447 readonly isOther: boolean;1448 readonly asOther: Text;1449 readonly isInvalidCode: boolean;1450 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1451 }14521453 /** @name EvmCoreErrorExitRevert (119) */1454 interface EvmCoreErrorExitRevert extends Enum {1455 readonly isReverted: boolean;1456 readonly type: 'Reverted';1457 }14581459 /** @name EvmCoreErrorExitFatal (120) */1460 interface EvmCoreErrorExitFatal extends Enum {1461 readonly isNotSupported: boolean;1462 readonly isUnhandledInterrupt: boolean;1463 readonly isCallErrorAsFatal: boolean;1464 readonly asCallErrorAsFatal: EvmCoreErrorExitError;1465 readonly isOther: boolean;1466 readonly asOther: Text;1467 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1468 }14691470 /** @name PalletEvmContractHelpersEvent (121) */1471 interface PalletEvmContractHelpersEvent extends Enum {1472 readonly isContractSponsorSet: boolean;1473 readonly asContractSponsorSet: ITuple<[H160, AccountId32]>;1474 readonly isContractSponsorshipConfirmed: boolean;1475 readonly asContractSponsorshipConfirmed: ITuple<[H160, AccountId32]>;1476 readonly isContractSponsorRemoved: boolean;1477 readonly asContractSponsorRemoved: H160;1478 readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved';1479 }14801481 /** @name PalletEvmMigrationEvent (122) */1482 interface PalletEvmMigrationEvent extends Enum {1483 readonly isTestEvent: boolean;1484 readonly type: 'TestEvent';1485 }14861487 /** @name PalletMaintenanceEvent (123) */1488 interface PalletMaintenanceEvent extends Enum {1489 readonly isMaintenanceEnabled: boolean;1490 readonly isMaintenanceDisabled: boolean;1491 readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled';1492 }14931494 /** @name PalletTestUtilsEvent (124) */1495 interface PalletTestUtilsEvent extends Enum {1496 readonly isValueIsSet: boolean;1497 readonly isShouldRollback: boolean;1498 readonly isBatchCompleted: boolean;1499 readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted';1500 }15011502 /** @name FrameSystemPhase (125) */1503 interface FrameSystemPhase extends Enum {1504 readonly isApplyExtrinsic: boolean;1505 readonly asApplyExtrinsic: u32;1506 readonly isFinalization: boolean;1507 readonly isInitialization: boolean;1508 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1509 }15101511 /** @name FrameSystemLastRuntimeUpgradeInfo (127) */1512 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1513 readonly specVersion: Compact<u32>;1514 readonly specName: Text;1515 }15161517 /** @name FrameSystemCall (128) */1518 interface FrameSystemCall extends Enum {1519 readonly isFillBlock: boolean;1520 readonly asFillBlock: {1521 readonly ratio: Perbill;1522 } & Struct;1523 readonly isRemark: boolean;1524 readonly asRemark: {1525 readonly remark: Bytes;1526 } & Struct;1527 readonly isSetHeapPages: boolean;1528 readonly asSetHeapPages: {1529 readonly pages: u64;1530 } & Struct;1531 readonly isSetCode: boolean;1532 readonly asSetCode: {1533 readonly code: Bytes;1534 } & Struct;1535 readonly isSetCodeWithoutChecks: boolean;1536 readonly asSetCodeWithoutChecks: {1537 readonly code: Bytes;1538 } & Struct;1539 readonly isSetStorage: boolean;1540 readonly asSetStorage: {1541 readonly items: Vec<ITuple<[Bytes, Bytes]>>;1542 } & Struct;1543 readonly isKillStorage: boolean;1544 readonly asKillStorage: {1545 readonly keys_: Vec<Bytes>;1546 } & Struct;1547 readonly isKillPrefix: boolean;1548 readonly asKillPrefix: {1549 readonly prefix: Bytes;1550 readonly subkeys: u32;1551 } & Struct;1552 readonly isRemarkWithEvent: boolean;1553 readonly asRemarkWithEvent: {1554 readonly remark: Bytes;1555 } & Struct;1556 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1557 }15581559 /** @name FrameSystemLimitsBlockWeights (133) */1560 interface FrameSystemLimitsBlockWeights extends Struct {1561 readonly baseBlock: Weight;1562 readonly maxBlock: Weight;1563 readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;1564 }15651566 /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (134) */1567 interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {1568 readonly normal: FrameSystemLimitsWeightsPerClass;1569 readonly operational: FrameSystemLimitsWeightsPerClass;1570 readonly mandatory: FrameSystemLimitsWeightsPerClass;1571 }15721573 /** @name FrameSystemLimitsWeightsPerClass (135) */1574 interface FrameSystemLimitsWeightsPerClass extends Struct {1575 readonly baseExtrinsic: Weight;1576 readonly maxExtrinsic: Option<Weight>;1577 readonly maxTotal: Option<Weight>;1578 readonly reserved: Option<Weight>;1579 }15801581 /** @name FrameSystemLimitsBlockLength (137) */1582 interface FrameSystemLimitsBlockLength extends Struct {1583 readonly max: FrameSupportDispatchPerDispatchClassU32;1584 }15851586 /** @name FrameSupportDispatchPerDispatchClassU32 (138) */1587 interface FrameSupportDispatchPerDispatchClassU32 extends Struct {1588 readonly normal: u32;1589 readonly operational: u32;1590 readonly mandatory: u32;1591 }15921593 /** @name SpWeightsRuntimeDbWeight (139) */1594 interface SpWeightsRuntimeDbWeight extends Struct {1595 readonly read: u64;1596 readonly write: u64;1597 }15981599 /** @name SpVersionRuntimeVersion (140) */1600 interface SpVersionRuntimeVersion extends Struct {1601 readonly specName: Text;1602 readonly implName: Text;1603 readonly authoringVersion: u32;1604 readonly specVersion: u32;1605 readonly implVersion: u32;1606 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1607 readonly transactionVersion: u32;1608 readonly stateVersion: u8;1609 }16101611 /** @name FrameSystemError (145) */1612 interface FrameSystemError extends Enum {1613 readonly isInvalidSpecName: boolean;1614 readonly isSpecVersionNeedsToIncrease: boolean;1615 readonly isFailedToExtractRuntimeVersion: boolean;1616 readonly isNonDefaultComposite: boolean;1617 readonly isNonZeroRefCount: boolean;1618 readonly isCallFiltered: boolean;1619 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1620 }16211622 /** @name PolkadotPrimitivesV2PersistedValidationData (146) */1623 interface PolkadotPrimitivesV2PersistedValidationData extends Struct {1624 readonly parentHead: Bytes;1625 readonly relayParentNumber: u32;1626 readonly relayParentStorageRoot: H256;1627 readonly maxPovSize: u32;1628 }16291630 /** @name PolkadotPrimitivesV2UpgradeRestriction (149) */1631 interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {1632 readonly isPresent: boolean;1633 readonly type: 'Present';1634 }16351636 /** @name SpTrieStorageProof (150) */1637 interface SpTrieStorageProof extends Struct {1638 readonly trieNodes: BTreeSet<Bytes>;1639 }16401641 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (152) */1642 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {1643 readonly dmqMqcHead: H256;1644 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;1645 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1646 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1647 }16481649 /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (155) */1650 interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {1651 readonly maxCapacity: u32;1652 readonly maxTotalSize: u32;1653 readonly maxMessageSize: u32;1654 readonly msgCount: u32;1655 readonly totalSize: u32;1656 readonly mqcHead: Option<H256>;1657 }16581659 /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (156) */1660 interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {1661 readonly maxCodeSize: u32;1662 readonly maxHeadDataSize: u32;1663 readonly maxUpwardQueueCount: u32;1664 readonly maxUpwardQueueSize: u32;1665 readonly maxUpwardMessageSize: u32;1666 readonly maxUpwardMessageNumPerCandidate: u32;1667 readonly hrmpMaxMessageNumPerCandidate: u32;1668 readonly validationUpgradeCooldown: u32;1669 readonly validationUpgradeDelay: u32;1670 }16711672 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (162) */1673 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1674 readonly recipient: u32;1675 readonly data: Bytes;1676 }16771678 /** @name CumulusPalletParachainSystemCall (163) */1679 interface CumulusPalletParachainSystemCall extends Enum {1680 readonly isSetValidationData: boolean;1681 readonly asSetValidationData: {1682 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;1683 } & Struct;1684 readonly isSudoSendUpwardMessage: boolean;1685 readonly asSudoSendUpwardMessage: {1686 readonly message: Bytes;1687 } & Struct;1688 readonly isAuthorizeUpgrade: boolean;1689 readonly asAuthorizeUpgrade: {1690 readonly codeHash: H256;1691 } & Struct;1692 readonly isEnactAuthorizedUpgrade: boolean;1693 readonly asEnactAuthorizedUpgrade: {1694 readonly code: Bytes;1695 } & Struct;1696 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';1697 }16981699 /** @name CumulusPrimitivesParachainInherentParachainInherentData (164) */1700 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {1701 readonly validationData: PolkadotPrimitivesV2PersistedValidationData;1702 readonly relayChainState: SpTrieStorageProof;1703 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;1704 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;1705 }17061707 /** @name PolkadotCorePrimitivesInboundDownwardMessage (166) */1708 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1709 readonly sentAt: u32;1710 readonly msg: Bytes;1711 }17121713 /** @name PolkadotCorePrimitivesInboundHrmpMessage (169) */1714 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1715 readonly sentAt: u32;1716 readonly data: Bytes;1717 }17181719 /** @name CumulusPalletParachainSystemError (172) */1720 interface CumulusPalletParachainSystemError extends Enum {1721 readonly isOverlappingUpgrades: boolean;1722 readonly isProhibitedByPolkadot: boolean;1723 readonly isTooBig: boolean;1724 readonly isValidationDataNotAvailable: boolean;1725 readonly isHostConfigurationNotAvailable: boolean;1726 readonly isNotScheduled: boolean;1727 readonly isNothingAuthorized: boolean;1728 readonly isUnauthorized: boolean;1729 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1730 }17311732 /** @name PalletBalancesBalanceLock (174) */1733 interface PalletBalancesBalanceLock extends Struct {1734 readonly id: U8aFixed;1735 readonly amount: u128;1736 readonly reasons: PalletBalancesReasons;1737 }17381739 /** @name PalletBalancesReasons (175) */1740 interface PalletBalancesReasons extends Enum {1741 readonly isFee: boolean;1742 readonly isMisc: boolean;1743 readonly isAll: boolean;1744 readonly type: 'Fee' | 'Misc' | 'All';1745 }17461747 /** @name PalletBalancesReserveData (178) */1748 interface PalletBalancesReserveData extends Struct {1749 readonly id: U8aFixed;1750 readonly amount: u128;1751 }17521753 /** @name PalletBalancesReleases (180) */1754 interface PalletBalancesReleases extends Enum {1755 readonly isV100: boolean;1756 readonly isV200: boolean;1757 readonly type: 'V100' | 'V200';1758 }17591760 /** @name PalletBalancesCall (181) */1761 interface PalletBalancesCall extends Enum {1762 readonly isTransfer: boolean;1763 readonly asTransfer: {1764 readonly dest: MultiAddress;1765 readonly value: Compact<u128>;1766 } & Struct;1767 readonly isSetBalance: boolean;1768 readonly asSetBalance: {1769 readonly who: MultiAddress;1770 readonly newFree: Compact<u128>;1771 readonly newReserved: Compact<u128>;1772 } & Struct;1773 readonly isForceTransfer: boolean;1774 readonly asForceTransfer: {1775 readonly source: MultiAddress;1776 readonly dest: MultiAddress;1777 readonly value: Compact<u128>;1778 } & Struct;1779 readonly isTransferKeepAlive: boolean;1780 readonly asTransferKeepAlive: {1781 readonly dest: MultiAddress;1782 readonly value: Compact<u128>;1783 } & Struct;1784 readonly isTransferAll: boolean;1785 readonly asTransferAll: {1786 readonly dest: MultiAddress;1787 readonly keepAlive: bool;1788 } & Struct;1789 readonly isForceUnreserve: boolean;1790 readonly asForceUnreserve: {1791 readonly who: MultiAddress;1792 readonly amount: u128;1793 } & Struct;1794 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1795 }17961797 /** @name PalletBalancesError (184) */1798 interface PalletBalancesError extends Enum {1799 readonly isVestingBalance: boolean;1800 readonly isLiquidityRestrictions: boolean;1801 readonly isInsufficientBalance: boolean;1802 readonly isExistentialDeposit: boolean;1803 readonly isKeepAlive: boolean;1804 readonly isExistingVestingSchedule: boolean;1805 readonly isDeadAccount: boolean;1806 readonly isTooManyReserves: boolean;1807 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1808 }18091810 /** @name PalletTimestampCall (186) */1811 interface PalletTimestampCall extends Enum {1812 readonly isSet: boolean;1813 readonly asSet: {1814 readonly now: Compact<u64>;1815 } & Struct;1816 readonly type: 'Set';1817 }18181819 /** @name PalletTransactionPaymentReleases (188) */1820 interface PalletTransactionPaymentReleases extends Enum {1821 readonly isV1Ancient: boolean;1822 readonly isV2: boolean;1823 readonly type: 'V1Ancient' | 'V2';1824 }18251826 /** @name PalletTreasuryProposal (189) */1827 interface PalletTreasuryProposal extends Struct {1828 readonly proposer: AccountId32;1829 readonly value: u128;1830 readonly beneficiary: AccountId32;1831 readonly bond: u128;1832 }18331834 /** @name PalletTreasuryCall (192) */1835 interface PalletTreasuryCall extends Enum {1836 readonly isProposeSpend: boolean;1837 readonly asProposeSpend: {1838 readonly value: Compact<u128>;1839 readonly beneficiary: MultiAddress;1840 } & Struct;1841 readonly isRejectProposal: boolean;1842 readonly asRejectProposal: {1843 readonly proposalId: Compact<u32>;1844 } & Struct;1845 readonly isApproveProposal: boolean;1846 readonly asApproveProposal: {1847 readonly proposalId: Compact<u32>;1848 } & Struct;1849 readonly isSpend: boolean;1850 readonly asSpend: {1851 readonly amount: Compact<u128>;1852 readonly beneficiary: MultiAddress;1853 } & Struct;1854 readonly isRemoveApproval: boolean;1855 readonly asRemoveApproval: {1856 readonly proposalId: Compact<u32>;1857 } & Struct;1858 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1859 }18601861 /** @name FrameSupportPalletId (195) */1862 interface FrameSupportPalletId extends U8aFixed {}18631864 /** @name PalletTreasuryError (196) */1865 interface PalletTreasuryError extends Enum {1866 readonly isInsufficientProposersBalance: boolean;1867 readonly isInvalidIndex: boolean;1868 readonly isTooManyApprovals: boolean;1869 readonly isInsufficientPermission: boolean;1870 readonly isProposalNotApproved: boolean;1871 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1872 }18731874 /** @name PalletSudoCall (197) */1875 interface PalletSudoCall extends Enum {1876 readonly isSudo: boolean;1877 readonly asSudo: {1878 readonly call: Call;1879 } & Struct;1880 readonly isSudoUncheckedWeight: boolean;1881 readonly asSudoUncheckedWeight: {1882 readonly call: Call;1883 readonly weight: Weight;1884 } & Struct;1885 readonly isSetKey: boolean;1886 readonly asSetKey: {1887 readonly new_: MultiAddress;1888 } & Struct;1889 readonly isSudoAs: boolean;1890 readonly asSudoAs: {1891 readonly who: MultiAddress;1892 readonly call: Call;1893 } & Struct;1894 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1895 }18961897 /** @name OrmlVestingModuleCall (199) */1898 interface OrmlVestingModuleCall extends Enum {1899 readonly isClaim: boolean;1900 readonly isVestedTransfer: boolean;1901 readonly asVestedTransfer: {1902 readonly dest: MultiAddress;1903 readonly schedule: OrmlVestingVestingSchedule;1904 } & Struct;1905 readonly isUpdateVestingSchedules: boolean;1906 readonly asUpdateVestingSchedules: {1907 readonly who: MultiAddress;1908 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;1909 } & Struct;1910 readonly isClaimFor: boolean;1911 readonly asClaimFor: {1912 readonly dest: MultiAddress;1913 } & Struct;1914 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';1915 }19161917 /** @name OrmlXtokensModuleCall (201) */1918 interface OrmlXtokensModuleCall extends Enum {1919 readonly isTransfer: boolean;1920 readonly asTransfer: {1921 readonly currencyId: PalletForeignAssetsAssetIds;1922 readonly amount: u128;1923 readonly dest: XcmVersionedMultiLocation;1924 readonly destWeight: u64;1925 } & Struct;1926 readonly isTransferMultiasset: boolean;1927 readonly asTransferMultiasset: {1928 readonly asset: XcmVersionedMultiAsset;1929 readonly dest: XcmVersionedMultiLocation;1930 readonly destWeight: u64;1931 } & Struct;1932 readonly isTransferWithFee: boolean;1933 readonly asTransferWithFee: {1934 readonly currencyId: PalletForeignAssetsAssetIds;1935 readonly amount: u128;1936 readonly fee: u128;1937 readonly dest: XcmVersionedMultiLocation;1938 readonly destWeight: u64;1939 } & Struct;1940 readonly isTransferMultiassetWithFee: boolean;1941 readonly asTransferMultiassetWithFee: {1942 readonly asset: XcmVersionedMultiAsset;1943 readonly fee: XcmVersionedMultiAsset;1944 readonly dest: XcmVersionedMultiLocation;1945 readonly destWeight: u64;1946 } & Struct;1947 readonly isTransferMulticurrencies: boolean;1948 readonly asTransferMulticurrencies: {1949 readonly currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>;1950 readonly feeItem: u32;1951 readonly dest: XcmVersionedMultiLocation;1952 readonly destWeight: u64;1953 } & Struct;1954 readonly isTransferMultiassets: boolean;1955 readonly asTransferMultiassets: {1956 readonly assets: XcmVersionedMultiAssets;1957 readonly feeItem: u32;1958 readonly dest: XcmVersionedMultiLocation;1959 readonly destWeight: u64;1960 } & Struct;1961 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';1962 }19631964 /** @name XcmVersionedMultiAsset (202) */1965 interface XcmVersionedMultiAsset extends Enum {1966 readonly isV0: boolean;1967 readonly asV0: XcmV0MultiAsset;1968 readonly isV1: boolean;1969 readonly asV1: XcmV1MultiAsset;1970 readonly type: 'V0' | 'V1';1971 }19721973 /** @name OrmlTokensModuleCall (205) */1974 interface OrmlTokensModuleCall extends Enum {1975 readonly isTransfer: boolean;1976 readonly asTransfer: {1977 readonly dest: MultiAddress;1978 readonly currencyId: PalletForeignAssetsAssetIds;1979 readonly amount: Compact<u128>;1980 } & Struct;1981 readonly isTransferAll: boolean;1982 readonly asTransferAll: {1983 readonly dest: MultiAddress;1984 readonly currencyId: PalletForeignAssetsAssetIds;1985 readonly keepAlive: bool;1986 } & Struct;1987 readonly isTransferKeepAlive: boolean;1988 readonly asTransferKeepAlive: {1989 readonly dest: MultiAddress;1990 readonly currencyId: PalletForeignAssetsAssetIds;1991 readonly amount: Compact<u128>;1992 } & Struct;1993 readonly isForceTransfer: boolean;1994 readonly asForceTransfer: {1995 readonly source: MultiAddress;1996 readonly dest: MultiAddress;1997 readonly currencyId: PalletForeignAssetsAssetIds;1998 readonly amount: Compact<u128>;1999 } & Struct;2000 readonly isSetBalance: boolean;2001 readonly asSetBalance: {2002 readonly who: MultiAddress;2003 readonly currencyId: PalletForeignAssetsAssetIds;2004 readonly newFree: Compact<u128>;2005 readonly newReserved: Compact<u128>;2006 } & Struct;2007 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2008 }20092010 /** @name CumulusPalletXcmpQueueCall (206) */2011 interface CumulusPalletXcmpQueueCall extends Enum {2012 readonly isServiceOverweight: boolean;2013 readonly asServiceOverweight: {2014 readonly index: u64;2015 readonly weightLimit: Weight;2016 } & Struct;2017 readonly isSuspendXcmExecution: boolean;2018 readonly isResumeXcmExecution: boolean;2019 readonly isUpdateSuspendThreshold: boolean;2020 readonly asUpdateSuspendThreshold: {2021 readonly new_: u32;2022 } & Struct;2023 readonly isUpdateDropThreshold: boolean;2024 readonly asUpdateDropThreshold: {2025 readonly new_: u32;2026 } & Struct;2027 readonly isUpdateResumeThreshold: boolean;2028 readonly asUpdateResumeThreshold: {2029 readonly new_: u32;2030 } & Struct;2031 readonly isUpdateThresholdWeight: boolean;2032 readonly asUpdateThresholdWeight: {2033 readonly new_: Weight;2034 } & Struct;2035 readonly isUpdateWeightRestrictDecay: boolean;2036 readonly asUpdateWeightRestrictDecay: {2037 readonly new_: Weight;2038 } & Struct;2039 readonly isUpdateXcmpMaxIndividualWeight: boolean;2040 readonly asUpdateXcmpMaxIndividualWeight: {2041 readonly new_: Weight;2042 } & Struct;2043 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2044 }20452046 /** @name PalletXcmCall (207) */2047 interface PalletXcmCall extends Enum {2048 readonly isSend: boolean;2049 readonly asSend: {2050 readonly dest: XcmVersionedMultiLocation;2051 readonly message: XcmVersionedXcm;2052 } & Struct;2053 readonly isTeleportAssets: boolean;2054 readonly asTeleportAssets: {2055 readonly dest: XcmVersionedMultiLocation;2056 readonly beneficiary: XcmVersionedMultiLocation;2057 readonly assets: XcmVersionedMultiAssets;2058 readonly feeAssetItem: u32;2059 } & Struct;2060 readonly isReserveTransferAssets: boolean;2061 readonly asReserveTransferAssets: {2062 readonly dest: XcmVersionedMultiLocation;2063 readonly beneficiary: XcmVersionedMultiLocation;2064 readonly assets: XcmVersionedMultiAssets;2065 readonly feeAssetItem: u32;2066 } & Struct;2067 readonly isExecute: boolean;2068 readonly asExecute: {2069 readonly message: XcmVersionedXcm;2070 readonly maxWeight: Weight;2071 } & Struct;2072 readonly isForceXcmVersion: boolean;2073 readonly asForceXcmVersion: {2074 readonly location: XcmV1MultiLocation;2075 readonly xcmVersion: u32;2076 } & Struct;2077 readonly isForceDefaultXcmVersion: boolean;2078 readonly asForceDefaultXcmVersion: {2079 readonly maybeXcmVersion: Option<u32>;2080 } & Struct;2081 readonly isForceSubscribeVersionNotify: boolean;2082 readonly asForceSubscribeVersionNotify: {2083 readonly location: XcmVersionedMultiLocation;2084 } & Struct;2085 readonly isForceUnsubscribeVersionNotify: boolean;2086 readonly asForceUnsubscribeVersionNotify: {2087 readonly location: XcmVersionedMultiLocation;2088 } & Struct;2089 readonly isLimitedReserveTransferAssets: boolean;2090 readonly asLimitedReserveTransferAssets: {2091 readonly dest: XcmVersionedMultiLocation;2092 readonly beneficiary: XcmVersionedMultiLocation;2093 readonly assets: XcmVersionedMultiAssets;2094 readonly feeAssetItem: u32;2095 readonly weightLimit: XcmV2WeightLimit;2096 } & Struct;2097 readonly isLimitedTeleportAssets: boolean;2098 readonly asLimitedTeleportAssets: {2099 readonly dest: XcmVersionedMultiLocation;2100 readonly beneficiary: XcmVersionedMultiLocation;2101 readonly assets: XcmVersionedMultiAssets;2102 readonly feeAssetItem: u32;2103 readonly weightLimit: XcmV2WeightLimit;2104 } & Struct;2105 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';2106 }21072108 /** @name XcmVersionedXcm (208) */2109 interface XcmVersionedXcm extends Enum {2110 readonly isV0: boolean;2111 readonly asV0: XcmV0Xcm;2112 readonly isV1: boolean;2113 readonly asV1: XcmV1Xcm;2114 readonly isV2: boolean;2115 readonly asV2: XcmV2Xcm;2116 readonly type: 'V0' | 'V1' | 'V2';2117 }21182119 /** @name XcmV0Xcm (209) */2120 interface XcmV0Xcm extends Enum {2121 readonly isWithdrawAsset: boolean;2122 readonly asWithdrawAsset: {2123 readonly assets: Vec<XcmV0MultiAsset>;2124 readonly effects: Vec<XcmV0Order>;2125 } & Struct;2126 readonly isReserveAssetDeposit: boolean;2127 readonly asReserveAssetDeposit: {2128 readonly assets: Vec<XcmV0MultiAsset>;2129 readonly effects: Vec<XcmV0Order>;2130 } & Struct;2131 readonly isTeleportAsset: boolean;2132 readonly asTeleportAsset: {2133 readonly assets: Vec<XcmV0MultiAsset>;2134 readonly effects: Vec<XcmV0Order>;2135 } & Struct;2136 readonly isQueryResponse: boolean;2137 readonly asQueryResponse: {2138 readonly queryId: Compact<u64>;2139 readonly response: XcmV0Response;2140 } & Struct;2141 readonly isTransferAsset: boolean;2142 readonly asTransferAsset: {2143 readonly assets: Vec<XcmV0MultiAsset>;2144 readonly dest: XcmV0MultiLocation;2145 } & Struct;2146 readonly isTransferReserveAsset: boolean;2147 readonly asTransferReserveAsset: {2148 readonly assets: Vec<XcmV0MultiAsset>;2149 readonly dest: XcmV0MultiLocation;2150 readonly effects: Vec<XcmV0Order>;2151 } & Struct;2152 readonly isTransact: boolean;2153 readonly asTransact: {2154 readonly originType: XcmV0OriginKind;2155 readonly requireWeightAtMost: u64;2156 readonly call: XcmDoubleEncoded;2157 } & Struct;2158 readonly isHrmpNewChannelOpenRequest: boolean;2159 readonly asHrmpNewChannelOpenRequest: {2160 readonly sender: Compact<u32>;2161 readonly maxMessageSize: Compact<u32>;2162 readonly maxCapacity: Compact<u32>;2163 } & Struct;2164 readonly isHrmpChannelAccepted: boolean;2165 readonly asHrmpChannelAccepted: {2166 readonly recipient: Compact<u32>;2167 } & Struct;2168 readonly isHrmpChannelClosing: boolean;2169 readonly asHrmpChannelClosing: {2170 readonly initiator: Compact<u32>;2171 readonly sender: Compact<u32>;2172 readonly recipient: Compact<u32>;2173 } & Struct;2174 readonly isRelayedFrom: boolean;2175 readonly asRelayedFrom: {2176 readonly who: XcmV0MultiLocation;2177 readonly message: XcmV0Xcm;2178 } & Struct;2179 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2180 }21812182 /** @name XcmV0Order (211) */2183 interface XcmV0Order extends Enum {2184 readonly isNull: boolean;2185 readonly isDepositAsset: boolean;2186 readonly asDepositAsset: {2187 readonly assets: Vec<XcmV0MultiAsset>;2188 readonly dest: XcmV0MultiLocation;2189 } & Struct;2190 readonly isDepositReserveAsset: boolean;2191 readonly asDepositReserveAsset: {2192 readonly assets: Vec<XcmV0MultiAsset>;2193 readonly dest: XcmV0MultiLocation;2194 readonly effects: Vec<XcmV0Order>;2195 } & Struct;2196 readonly isExchangeAsset: boolean;2197 readonly asExchangeAsset: {2198 readonly give: Vec<XcmV0MultiAsset>;2199 readonly receive: Vec<XcmV0MultiAsset>;2200 } & Struct;2201 readonly isInitiateReserveWithdraw: boolean;2202 readonly asInitiateReserveWithdraw: {2203 readonly assets: Vec<XcmV0MultiAsset>;2204 readonly reserve: XcmV0MultiLocation;2205 readonly effects: Vec<XcmV0Order>;2206 } & Struct;2207 readonly isInitiateTeleport: boolean;2208 readonly asInitiateTeleport: {2209 readonly assets: Vec<XcmV0MultiAsset>;2210 readonly dest: XcmV0MultiLocation;2211 readonly effects: Vec<XcmV0Order>;2212 } & Struct;2213 readonly isQueryHolding: boolean;2214 readonly asQueryHolding: {2215 readonly queryId: Compact<u64>;2216 readonly dest: XcmV0MultiLocation;2217 readonly assets: Vec<XcmV0MultiAsset>;2218 } & Struct;2219 readonly isBuyExecution: boolean;2220 readonly asBuyExecution: {2221 readonly fees: XcmV0MultiAsset;2222 readonly weight: u64;2223 readonly debt: u64;2224 readonly haltOnError: bool;2225 readonly xcm: Vec<XcmV0Xcm>;2226 } & Struct;2227 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2228 }22292230 /** @name XcmV0Response (213) */2231 interface XcmV0Response extends Enum {2232 readonly isAssets: boolean;2233 readonly asAssets: Vec<XcmV0MultiAsset>;2234 readonly type: 'Assets';2235 }22362237 /** @name XcmV1Xcm (214) */2238 interface XcmV1Xcm extends Enum {2239 readonly isWithdrawAsset: boolean;2240 readonly asWithdrawAsset: {2241 readonly assets: XcmV1MultiassetMultiAssets;2242 readonly effects: Vec<XcmV1Order>;2243 } & Struct;2244 readonly isReserveAssetDeposited: boolean;2245 readonly asReserveAssetDeposited: {2246 readonly assets: XcmV1MultiassetMultiAssets;2247 readonly effects: Vec<XcmV1Order>;2248 } & Struct;2249 readonly isReceiveTeleportedAsset: boolean;2250 readonly asReceiveTeleportedAsset: {2251 readonly assets: XcmV1MultiassetMultiAssets;2252 readonly effects: Vec<XcmV1Order>;2253 } & Struct;2254 readonly isQueryResponse: boolean;2255 readonly asQueryResponse: {2256 readonly queryId: Compact<u64>;2257 readonly response: XcmV1Response;2258 } & Struct;2259 readonly isTransferAsset: boolean;2260 readonly asTransferAsset: {2261 readonly assets: XcmV1MultiassetMultiAssets;2262 readonly beneficiary: XcmV1MultiLocation;2263 } & Struct;2264 readonly isTransferReserveAsset: boolean;2265 readonly asTransferReserveAsset: {2266 readonly assets: XcmV1MultiassetMultiAssets;2267 readonly dest: XcmV1MultiLocation;2268 readonly effects: Vec<XcmV1Order>;2269 } & Struct;2270 readonly isTransact: boolean;2271 readonly asTransact: {2272 readonly originType: XcmV0OriginKind;2273 readonly requireWeightAtMost: u64;2274 readonly call: XcmDoubleEncoded;2275 } & Struct;2276 readonly isHrmpNewChannelOpenRequest: boolean;2277 readonly asHrmpNewChannelOpenRequest: {2278 readonly sender: Compact<u32>;2279 readonly maxMessageSize: Compact<u32>;2280 readonly maxCapacity: Compact<u32>;2281 } & Struct;2282 readonly isHrmpChannelAccepted: boolean;2283 readonly asHrmpChannelAccepted: {2284 readonly recipient: Compact<u32>;2285 } & Struct;2286 readonly isHrmpChannelClosing: boolean;2287 readonly asHrmpChannelClosing: {2288 readonly initiator: Compact<u32>;2289 readonly sender: Compact<u32>;2290 readonly recipient: Compact<u32>;2291 } & Struct;2292 readonly isRelayedFrom: boolean;2293 readonly asRelayedFrom: {2294 readonly who: XcmV1MultilocationJunctions;2295 readonly message: XcmV1Xcm;2296 } & Struct;2297 readonly isSubscribeVersion: boolean;2298 readonly asSubscribeVersion: {2299 readonly queryId: Compact<u64>;2300 readonly maxResponseWeight: Compact<u64>;2301 } & Struct;2302 readonly isUnsubscribeVersion: boolean;2303 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2304 }23052306 /** @name XcmV1Order (216) */2307 interface XcmV1Order extends Enum {2308 readonly isNoop: boolean;2309 readonly isDepositAsset: boolean;2310 readonly asDepositAsset: {2311 readonly assets: XcmV1MultiassetMultiAssetFilter;2312 readonly maxAssets: u32;2313 readonly beneficiary: XcmV1MultiLocation;2314 } & Struct;2315 readonly isDepositReserveAsset: boolean;2316 readonly asDepositReserveAsset: {2317 readonly assets: XcmV1MultiassetMultiAssetFilter;2318 readonly maxAssets: u32;2319 readonly dest: XcmV1MultiLocation;2320 readonly effects: Vec<XcmV1Order>;2321 } & Struct;2322 readonly isExchangeAsset: boolean;2323 readonly asExchangeAsset: {2324 readonly give: XcmV1MultiassetMultiAssetFilter;2325 readonly receive: XcmV1MultiassetMultiAssets;2326 } & Struct;2327 readonly isInitiateReserveWithdraw: boolean;2328 readonly asInitiateReserveWithdraw: {2329 readonly assets: XcmV1MultiassetMultiAssetFilter;2330 readonly reserve: XcmV1MultiLocation;2331 readonly effects: Vec<XcmV1Order>;2332 } & Struct;2333 readonly isInitiateTeleport: boolean;2334 readonly asInitiateTeleport: {2335 readonly assets: XcmV1MultiassetMultiAssetFilter;2336 readonly dest: XcmV1MultiLocation;2337 readonly effects: Vec<XcmV1Order>;2338 } & Struct;2339 readonly isQueryHolding: boolean;2340 readonly asQueryHolding: {2341 readonly queryId: Compact<u64>;2342 readonly dest: XcmV1MultiLocation;2343 readonly assets: XcmV1MultiassetMultiAssetFilter;2344 } & Struct;2345 readonly isBuyExecution: boolean;2346 readonly asBuyExecution: {2347 readonly fees: XcmV1MultiAsset;2348 readonly weight: u64;2349 readonly debt: u64;2350 readonly haltOnError: bool;2351 readonly instructions: Vec<XcmV1Xcm>;2352 } & Struct;2353 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2354 }23552356 /** @name XcmV1Response (218) */2357 interface XcmV1Response extends Enum {2358 readonly isAssets: boolean;2359 readonly asAssets: XcmV1MultiassetMultiAssets;2360 readonly isVersion: boolean;2361 readonly asVersion: u32;2362 readonly type: 'Assets' | 'Version';2363 }23642365 /** @name CumulusPalletXcmCall (232) */2366 type CumulusPalletXcmCall = Null;23672368 /** @name CumulusPalletDmpQueueCall (233) */2369 interface CumulusPalletDmpQueueCall extends Enum {2370 readonly isServiceOverweight: boolean;2371 readonly asServiceOverweight: {2372 readonly index: u64;2373 readonly weightLimit: Weight;2374 } & Struct;2375 readonly type: 'ServiceOverweight';2376 }23772378 /** @name PalletInflationCall (234) */2379 interface PalletInflationCall extends Enum {2380 readonly isStartInflation: boolean;2381 readonly asStartInflation: {2382 readonly inflationStartRelayBlock: u32;2383 } & Struct;2384 readonly type: 'StartInflation';2385 }23862387 /** @name PalletUniqueCall (235) */2388 interface PalletUniqueCall extends Enum {2389 readonly isCreateCollection: boolean;2390 readonly asCreateCollection: {2391 readonly collectionName: Vec<u16>;2392 readonly collectionDescription: Vec<u16>;2393 readonly tokenPrefix: Bytes;2394 readonly mode: UpDataStructsCollectionMode;2395 } & Struct;2396 readonly isCreateCollectionEx: boolean;2397 readonly asCreateCollectionEx: {2398 readonly data: UpDataStructsCreateCollectionData;2399 } & Struct;2400 readonly isDestroyCollection: boolean;2401 readonly asDestroyCollection: {2402 readonly collectionId: u32;2403 } & Struct;2404 readonly isAddToAllowList: boolean;2405 readonly asAddToAllowList: {2406 readonly collectionId: u32;2407 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2408 } & Struct;2409 readonly isRemoveFromAllowList: boolean;2410 readonly asRemoveFromAllowList: {2411 readonly collectionId: u32;2412 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2413 } & Struct;2414 readonly isChangeCollectionOwner: boolean;2415 readonly asChangeCollectionOwner: {2416 readonly collectionId: u32;2417 readonly newOwner: AccountId32;2418 } & Struct;2419 readonly isAddCollectionAdmin: boolean;2420 readonly asAddCollectionAdmin: {2421 readonly collectionId: u32;2422 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;2423 } & Struct;2424 readonly isRemoveCollectionAdmin: boolean;2425 readonly asRemoveCollectionAdmin: {2426 readonly collectionId: u32;2427 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;2428 } & Struct;2429 readonly isSetCollectionSponsor: boolean;2430 readonly asSetCollectionSponsor: {2431 readonly collectionId: u32;2432 readonly newSponsor: AccountId32;2433 } & Struct;2434 readonly isConfirmSponsorship: boolean;2435 readonly asConfirmSponsorship: {2436 readonly collectionId: u32;2437 } & Struct;2438 readonly isRemoveCollectionSponsor: boolean;2439 readonly asRemoveCollectionSponsor: {2440 readonly collectionId: u32;2441 } & Struct;2442 readonly isCreateItem: boolean;2443 readonly asCreateItem: {2444 readonly collectionId: u32;2445 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2446 readonly data: UpDataStructsCreateItemData;2447 } & Struct;2448 readonly isCreateMultipleItems: boolean;2449 readonly asCreateMultipleItems: {2450 readonly collectionId: u32;2451 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2452 readonly itemsData: Vec<UpDataStructsCreateItemData>;2453 } & Struct;2454 readonly isSetCollectionProperties: boolean;2455 readonly asSetCollectionProperties: {2456 readonly collectionId: u32;2457 readonly properties: Vec<UpDataStructsProperty>;2458 } & Struct;2459 readonly isDeleteCollectionProperties: boolean;2460 readonly asDeleteCollectionProperties: {2461 readonly collectionId: u32;2462 readonly propertyKeys: Vec<Bytes>;2463 } & Struct;2464 readonly isSetTokenProperties: boolean;2465 readonly asSetTokenProperties: {2466 readonly collectionId: u32;2467 readonly tokenId: u32;2468 readonly properties: Vec<UpDataStructsProperty>;2469 } & Struct;2470 readonly isDeleteTokenProperties: boolean;2471 readonly asDeleteTokenProperties: {2472 readonly collectionId: u32;2473 readonly tokenId: u32;2474 readonly propertyKeys: Vec<Bytes>;2475 } & Struct;2476 readonly isSetTokenPropertyPermissions: boolean;2477 readonly asSetTokenPropertyPermissions: {2478 readonly collectionId: u32;2479 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2480 } & Struct;2481 readonly isCreateMultipleItemsEx: boolean;2482 readonly asCreateMultipleItemsEx: {2483 readonly collectionId: u32;2484 readonly data: UpDataStructsCreateItemExData;2485 } & Struct;2486 readonly isSetTransfersEnabledFlag: boolean;2487 readonly asSetTransfersEnabledFlag: {2488 readonly collectionId: u32;2489 readonly value: bool;2490 } & Struct;2491 readonly isBurnItem: boolean;2492 readonly asBurnItem: {2493 readonly collectionId: u32;2494 readonly itemId: u32;2495 readonly value: u128;2496 } & Struct;2497 readonly isBurnFrom: boolean;2498 readonly asBurnFrom: {2499 readonly collectionId: u32;2500 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2501 readonly itemId: u32;2502 readonly value: u128;2503 } & Struct;2504 readonly isTransfer: boolean;2505 readonly asTransfer: {2506 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2507 readonly collectionId: u32;2508 readonly itemId: u32;2509 readonly value: u128;2510 } & Struct;2511 readonly isApprove: boolean;2512 readonly asApprove: {2513 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;2514 readonly collectionId: u32;2515 readonly itemId: u32;2516 readonly amount: u128;2517 } & Struct;2518 readonly isTransferFrom: boolean;2519 readonly asTransferFrom: {2520 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2521 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2522 readonly collectionId: u32;2523 readonly itemId: u32;2524 readonly value: u128;2525 } & Struct;2526 readonly isSetCollectionLimits: boolean;2527 readonly asSetCollectionLimits: {2528 readonly collectionId: u32;2529 readonly newLimit: UpDataStructsCollectionLimits;2530 } & Struct;2531 readonly isSetCollectionPermissions: boolean;2532 readonly asSetCollectionPermissions: {2533 readonly collectionId: u32;2534 readonly newPermission: UpDataStructsCollectionPermissions;2535 } & Struct;2536 readonly isRepartition: boolean;2537 readonly asRepartition: {2538 readonly collectionId: u32;2539 readonly tokenId: u32;2540 readonly amount: u128;2541 } & Struct;2542 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';2543 }25442545 /** @name UpDataStructsCollectionMode (240) */2546 interface UpDataStructsCollectionMode extends Enum {2547 readonly isNft: boolean;2548 readonly isFungible: boolean;2549 readonly asFungible: u8;2550 readonly isReFungible: boolean;2551 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2552 }25532554 /** @name UpDataStructsCreateCollectionData (241) */2555 interface UpDataStructsCreateCollectionData extends Struct {2556 readonly mode: UpDataStructsCollectionMode;2557 readonly access: Option<UpDataStructsAccessMode>;2558 readonly name: Vec<u16>;2559 readonly description: Vec<u16>;2560 readonly tokenPrefix: Bytes;2561 readonly pendingSponsor: Option<AccountId32>;2562 readonly limits: Option<UpDataStructsCollectionLimits>;2563 readonly permissions: Option<UpDataStructsCollectionPermissions>;2564 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2565 readonly properties: Vec<UpDataStructsProperty>;2566 }25672568 /** @name UpDataStructsAccessMode (243) */2569 interface UpDataStructsAccessMode extends Enum {2570 readonly isNormal: boolean;2571 readonly isAllowList: boolean;2572 readonly type: 'Normal' | 'AllowList';2573 }25742575 /** @name UpDataStructsCollectionLimits (245) */2576 interface UpDataStructsCollectionLimits extends Struct {2577 readonly accountTokenOwnershipLimit: Option<u32>;2578 readonly sponsoredDataSize: Option<u32>;2579 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;2580 readonly tokenLimit: Option<u32>;2581 readonly sponsorTransferTimeout: Option<u32>;2582 readonly sponsorApproveTimeout: Option<u32>;2583 readonly ownerCanTransfer: Option<bool>;2584 readonly ownerCanDestroy: Option<bool>;2585 readonly transfersEnabled: Option<bool>;2586 }25872588 /** @name UpDataStructsSponsoringRateLimit (247) */2589 interface UpDataStructsSponsoringRateLimit extends Enum {2590 readonly isSponsoringDisabled: boolean;2591 readonly isBlocks: boolean;2592 readonly asBlocks: u32;2593 readonly type: 'SponsoringDisabled' | 'Blocks';2594 }25952596 /** @name UpDataStructsCollectionPermissions (250) */2597 interface UpDataStructsCollectionPermissions extends Struct {2598 readonly access: Option<UpDataStructsAccessMode>;2599 readonly mintMode: Option<bool>;2600 readonly nesting: Option<UpDataStructsNestingPermissions>;2601 }26022603 /** @name UpDataStructsNestingPermissions (252) */2604 interface UpDataStructsNestingPermissions extends Struct {2605 readonly tokenOwner: bool;2606 readonly collectionAdmin: bool;2607 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2608 }26092610 /** @name UpDataStructsOwnerRestrictedSet (254) */2611 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}26122613 /** @name UpDataStructsPropertyKeyPermission (259) */2614 interface UpDataStructsPropertyKeyPermission extends Struct {2615 readonly key: Bytes;2616 readonly permission: UpDataStructsPropertyPermission;2617 }26182619 /** @name UpDataStructsPropertyPermission (260) */2620 interface UpDataStructsPropertyPermission extends Struct {2621 readonly mutable: bool;2622 readonly collectionAdmin: bool;2623 readonly tokenOwner: bool;2624 }26252626 /** @name UpDataStructsProperty (263) */2627 interface UpDataStructsProperty extends Struct {2628 readonly key: Bytes;2629 readonly value: Bytes;2630 }26312632 /** @name UpDataStructsCreateItemData (266) */2633 interface UpDataStructsCreateItemData extends Enum {2634 readonly isNft: boolean;2635 readonly asNft: UpDataStructsCreateNftData;2636 readonly isFungible: boolean;2637 readonly asFungible: UpDataStructsCreateFungibleData;2638 readonly isReFungible: boolean;2639 readonly asReFungible: UpDataStructsCreateReFungibleData;2640 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2641 }26422643 /** @name UpDataStructsCreateNftData (267) */2644 interface UpDataStructsCreateNftData extends Struct {2645 readonly properties: Vec<UpDataStructsProperty>;2646 }26472648 /** @name UpDataStructsCreateFungibleData (268) */2649 interface UpDataStructsCreateFungibleData extends Struct {2650 readonly value: u128;2651 }26522653 /** @name UpDataStructsCreateReFungibleData (269) */2654 interface UpDataStructsCreateReFungibleData extends Struct {2655 readonly pieces: u128;2656 readonly properties: Vec<UpDataStructsProperty>;2657 }26582659 /** @name UpDataStructsCreateItemExData (272) */2660 interface UpDataStructsCreateItemExData extends Enum {2661 readonly isNft: boolean;2662 readonly asNft: Vec<UpDataStructsCreateNftExData>;2663 readonly isFungible: boolean;2664 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2665 readonly isRefungibleMultipleItems: boolean;2666 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExSingleOwner>;2667 readonly isRefungibleMultipleOwners: boolean;2668 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;2669 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2670 }26712672 /** @name UpDataStructsCreateNftExData (274) */2673 interface UpDataStructsCreateNftExData extends Struct {2674 readonly properties: Vec<UpDataStructsProperty>;2675 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2676 }26772678 /** @name UpDataStructsCreateRefungibleExSingleOwner (281) */2679 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2680 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2681 readonly pieces: u128;2682 readonly properties: Vec<UpDataStructsProperty>;2683 }26842685 /** @name UpDataStructsCreateRefungibleExMultipleOwners (283) */2686 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2687 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2688 readonly properties: Vec<UpDataStructsProperty>;2689 }26902691 /** @name PalletUniqueSchedulerV2Call (284) */2692 interface PalletUniqueSchedulerV2Call extends Enum {2693 readonly isSchedule: boolean;2694 readonly asSchedule: {2695 readonly when: u32;2696 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2697 readonly priority: Option<u8>;2698 readonly call: Call;2699 } & Struct;2700 readonly isCancel: boolean;2701 readonly asCancel: {2702 readonly when: u32;2703 readonly index: u32;2704 } & Struct;2705 readonly isScheduleNamed: boolean;2706 readonly asScheduleNamed: {2707 readonly id: U8aFixed;2708 readonly when: u32;2709 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2710 readonly priority: Option<u8>;2711 readonly call: Call;2712 } & Struct;2713 readonly isCancelNamed: boolean;2714 readonly asCancelNamed: {2715 readonly id: U8aFixed;2716 } & Struct;2717 readonly isScheduleAfter: boolean;2718 readonly asScheduleAfter: {2719 readonly after: u32;2720 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2721 readonly priority: Option<u8>;2722 readonly call: Call;2723 } & Struct;2724 readonly isScheduleNamedAfter: boolean;2725 readonly asScheduleNamedAfter: {2726 readonly id: U8aFixed;2727 readonly after: u32;2728 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2729 readonly priority: Option<u8>;2730 readonly call: Call;2731 } & Struct;2732 readonly isChangeNamedPriority: boolean;2733 readonly asChangeNamedPriority: {2734 readonly id: U8aFixed;2735 readonly priority: u8;2736 } & Struct;2737 readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter' | 'ChangeNamedPriority';2738 }27392740 /** @name PalletConfigurationCall (287) */2741 interface PalletConfigurationCall extends Enum {2742 readonly isSetWeightToFeeCoefficientOverride: boolean;2743 readonly asSetWeightToFeeCoefficientOverride: {2744 readonly coeff: Option<u32>;2745 } & Struct;2746 readonly isSetMinGasPriceOverride: boolean;2747 readonly asSetMinGasPriceOverride: {2748 readonly coeff: Option<u64>;2749 } & Struct;2750 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';2751 }27522753 /** @name PalletTemplateTransactionPaymentCall (289) */2754 type PalletTemplateTransactionPaymentCall = Null;27552756 /** @name PalletStructureCall (290) */2757 type PalletStructureCall = Null;27582759 /** @name PalletRmrkCoreCall (291) */2760 interface PalletRmrkCoreCall extends Enum {2761 readonly isCreateCollection: boolean;2762 readonly asCreateCollection: {2763 readonly metadata: Bytes;2764 readonly max: Option<u32>;2765 readonly symbol: Bytes;2766 } & Struct;2767 readonly isDestroyCollection: boolean;2768 readonly asDestroyCollection: {2769 readonly collectionId: u32;2770 } & Struct;2771 readonly isChangeCollectionIssuer: boolean;2772 readonly asChangeCollectionIssuer: {2773 readonly collectionId: u32;2774 readonly newIssuer: MultiAddress;2775 } & Struct;2776 readonly isLockCollection: boolean;2777 readonly asLockCollection: {2778 readonly collectionId: u32;2779 } & Struct;2780 readonly isMintNft: boolean;2781 readonly asMintNft: {2782 readonly owner: Option<AccountId32>;2783 readonly collectionId: u32;2784 readonly recipient: Option<AccountId32>;2785 readonly royaltyAmount: Option<Permill>;2786 readonly metadata: Bytes;2787 readonly transferable: bool;2788 readonly resources: Option<Vec<RmrkTraitsResourceResourceTypes>>;2789 } & Struct;2790 readonly isBurnNft: boolean;2791 readonly asBurnNft: {2792 readonly collectionId: u32;2793 readonly nftId: u32;2794 readonly maxBurns: u32;2795 } & Struct;2796 readonly isSend: boolean;2797 readonly asSend: {2798 readonly rmrkCollectionId: u32;2799 readonly rmrkNftId: u32;2800 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2801 } & Struct;2802 readonly isAcceptNft: boolean;2803 readonly asAcceptNft: {2804 readonly rmrkCollectionId: u32;2805 readonly rmrkNftId: u32;2806 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2807 } & Struct;2808 readonly isRejectNft: boolean;2809 readonly asRejectNft: {2810 readonly rmrkCollectionId: u32;2811 readonly rmrkNftId: u32;2812 } & Struct;2813 readonly isAcceptResource: boolean;2814 readonly asAcceptResource: {2815 readonly rmrkCollectionId: u32;2816 readonly rmrkNftId: u32;2817 readonly resourceId: u32;2818 } & Struct;2819 readonly isAcceptResourceRemoval: boolean;2820 readonly asAcceptResourceRemoval: {2821 readonly rmrkCollectionId: u32;2822 readonly rmrkNftId: u32;2823 readonly resourceId: u32;2824 } & Struct;2825 readonly isSetProperty: boolean;2826 readonly asSetProperty: {2827 readonly rmrkCollectionId: Compact<u32>;2828 readonly maybeNftId: Option<u32>;2829 readonly key: Bytes;2830 readonly value: Bytes;2831 } & Struct;2832 readonly isSetPriority: boolean;2833 readonly asSetPriority: {2834 readonly rmrkCollectionId: u32;2835 readonly rmrkNftId: u32;2836 readonly priorities: Vec<u32>;2837 } & Struct;2838 readonly isAddBasicResource: boolean;2839 readonly asAddBasicResource: {2840 readonly rmrkCollectionId: u32;2841 readonly nftId: u32;2842 readonly resource: RmrkTraitsResourceBasicResource;2843 } & Struct;2844 readonly isAddComposableResource: boolean;2845 readonly asAddComposableResource: {2846 readonly rmrkCollectionId: u32;2847 readonly nftId: u32;2848 readonly resource: RmrkTraitsResourceComposableResource;2849 } & Struct;2850 readonly isAddSlotResource: boolean;2851 readonly asAddSlotResource: {2852 readonly rmrkCollectionId: u32;2853 readonly nftId: u32;2854 readonly resource: RmrkTraitsResourceSlotResource;2855 } & Struct;2856 readonly isRemoveResource: boolean;2857 readonly asRemoveResource: {2858 readonly rmrkCollectionId: u32;2859 readonly nftId: u32;2860 readonly resourceId: u32;2861 } & Struct;2862 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';2863 }28642865 /** @name RmrkTraitsResourceResourceTypes (297) */2866 interface RmrkTraitsResourceResourceTypes extends Enum {2867 readonly isBasic: boolean;2868 readonly asBasic: RmrkTraitsResourceBasicResource;2869 readonly isComposable: boolean;2870 readonly asComposable: RmrkTraitsResourceComposableResource;2871 readonly isSlot: boolean;2872 readonly asSlot: RmrkTraitsResourceSlotResource;2873 readonly type: 'Basic' | 'Composable' | 'Slot';2874 }28752876 /** @name RmrkTraitsResourceBasicResource (299) */2877 interface RmrkTraitsResourceBasicResource extends Struct {2878 readonly src: Option<Bytes>;2879 readonly metadata: Option<Bytes>;2880 readonly license: Option<Bytes>;2881 readonly thumb: Option<Bytes>;2882 }28832884 /** @name RmrkTraitsResourceComposableResource (301) */2885 interface RmrkTraitsResourceComposableResource extends Struct {2886 readonly parts: Vec<u32>;2887 readonly base: u32;2888 readonly src: Option<Bytes>;2889 readonly metadata: Option<Bytes>;2890 readonly license: Option<Bytes>;2891 readonly thumb: Option<Bytes>;2892 }28932894 /** @name RmrkTraitsResourceSlotResource (302) */2895 interface RmrkTraitsResourceSlotResource extends Struct {2896 readonly base: u32;2897 readonly src: Option<Bytes>;2898 readonly metadata: Option<Bytes>;2899 readonly slot: u32;2900 readonly license: Option<Bytes>;2901 readonly thumb: Option<Bytes>;2902 }29032904 /** @name PalletRmrkEquipCall (305) */2905 interface PalletRmrkEquipCall extends Enum {2906 readonly isCreateBase: boolean;2907 readonly asCreateBase: {2908 readonly baseType: Bytes;2909 readonly symbol: Bytes;2910 readonly parts: Vec<RmrkTraitsPartPartType>;2911 } & Struct;2912 readonly isThemeAdd: boolean;2913 readonly asThemeAdd: {2914 readonly baseId: u32;2915 readonly theme: RmrkTraitsTheme;2916 } & Struct;2917 readonly isEquippable: boolean;2918 readonly asEquippable: {2919 readonly baseId: u32;2920 readonly slotId: u32;2921 readonly equippables: RmrkTraitsPartEquippableList;2922 } & Struct;2923 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';2924 }29252926 /** @name RmrkTraitsPartPartType (308) */2927 interface RmrkTraitsPartPartType extends Enum {2928 readonly isFixedPart: boolean;2929 readonly asFixedPart: RmrkTraitsPartFixedPart;2930 readonly isSlotPart: boolean;2931 readonly asSlotPart: RmrkTraitsPartSlotPart;2932 readonly type: 'FixedPart' | 'SlotPart';2933 }29342935 /** @name RmrkTraitsPartFixedPart (310) */2936 interface RmrkTraitsPartFixedPart extends Struct {2937 readonly id: u32;2938 readonly z: u32;2939 readonly src: Bytes;2940 }29412942 /** @name RmrkTraitsPartSlotPart (311) */2943 interface RmrkTraitsPartSlotPart extends Struct {2944 readonly id: u32;2945 readonly equippable: RmrkTraitsPartEquippableList;2946 readonly src: Bytes;2947 readonly z: u32;2948 }29492950 /** @name RmrkTraitsPartEquippableList (312) */2951 interface RmrkTraitsPartEquippableList extends Enum {2952 readonly isAll: boolean;2953 readonly isEmpty: boolean;2954 readonly isCustom: boolean;2955 readonly asCustom: Vec<u32>;2956 readonly type: 'All' | 'Empty' | 'Custom';2957 }29582959 /** @name RmrkTraitsTheme (314) */2960 interface RmrkTraitsTheme extends Struct {2961 readonly name: Bytes;2962 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;2963 readonly inherit: bool;2964 }29652966 /** @name RmrkTraitsThemeThemeProperty (316) */2967 interface RmrkTraitsThemeThemeProperty extends Struct {2968 readonly key: Bytes;2969 readonly value: Bytes;2970 }29712972 /** @name PalletAppPromotionCall (318) */2973 interface PalletAppPromotionCall extends Enum {2974 readonly isSetAdminAddress: boolean;2975 readonly asSetAdminAddress: {2976 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;2977 } & Struct;2978 readonly isStake: boolean;2979 readonly asStake: {2980 readonly amount: u128;2981 } & Struct;2982 readonly isUnstake: boolean;2983 readonly isSponsorCollection: boolean;2984 readonly asSponsorCollection: {2985 readonly collectionId: u32;2986 } & Struct;2987 readonly isStopSponsoringCollection: boolean;2988 readonly asStopSponsoringCollection: {2989 readonly collectionId: u32;2990 } & Struct;2991 readonly isSponsorContract: boolean;2992 readonly asSponsorContract: {2993 readonly contractId: H160;2994 } & Struct;2995 readonly isStopSponsoringContract: boolean;2996 readonly asStopSponsoringContract: {2997 readonly contractId: H160;2998 } & Struct;2999 readonly isPayoutStakers: boolean;3000 readonly asPayoutStakers: {3001 readonly stakersNumber: Option<u8>;3002 } & Struct;3003 readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';3004 }30053006 /** @name PalletForeignAssetsModuleCall (319) */3007 interface PalletForeignAssetsModuleCall extends Enum {3008 readonly isRegisterForeignAsset: boolean;3009 readonly asRegisterForeignAsset: {3010 readonly owner: AccountId32;3011 readonly location: XcmVersionedMultiLocation;3012 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3013 } & Struct;3014 readonly isUpdateForeignAsset: boolean;3015 readonly asUpdateForeignAsset: {3016 readonly foreignAssetId: u32;3017 readonly location: XcmVersionedMultiLocation;3018 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3019 } & Struct;3020 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3021 }30223023 /** @name PalletEvmCall (320) */3024 interface PalletEvmCall extends Enum {3025 readonly isWithdraw: boolean;3026 readonly asWithdraw: {3027 readonly address: H160;3028 readonly value: u128;3029 } & Struct;3030 readonly isCall: boolean;3031 readonly asCall: {3032 readonly source: H160;3033 readonly target: H160;3034 readonly input: Bytes;3035 readonly value: U256;3036 readonly gasLimit: u64;3037 readonly maxFeePerGas: U256;3038 readonly maxPriorityFeePerGas: Option<U256>;3039 readonly nonce: Option<U256>;3040 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3041 } & Struct;3042 readonly isCreate: boolean;3043 readonly asCreate: {3044 readonly source: H160;3045 readonly init: Bytes;3046 readonly value: U256;3047 readonly gasLimit: u64;3048 readonly maxFeePerGas: U256;3049 readonly maxPriorityFeePerGas: Option<U256>;3050 readonly nonce: Option<U256>;3051 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3052 } & Struct;3053 readonly isCreate2: boolean;3054 readonly asCreate2: {3055 readonly source: H160;3056 readonly init: Bytes;3057 readonly salt: H256;3058 readonly value: U256;3059 readonly gasLimit: u64;3060 readonly maxFeePerGas: U256;3061 readonly maxPriorityFeePerGas: Option<U256>;3062 readonly nonce: Option<U256>;3063 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3064 } & Struct;3065 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3066 }30673068 /** @name PalletEthereumCall (326) */3069 interface PalletEthereumCall extends Enum {3070 readonly isTransact: boolean;3071 readonly asTransact: {3072 readonly transaction: EthereumTransactionTransactionV2;3073 } & Struct;3074 readonly type: 'Transact';3075 }30763077 /** @name EthereumTransactionTransactionV2 (327) */3078 interface EthereumTransactionTransactionV2 extends Enum {3079 readonly isLegacy: boolean;3080 readonly asLegacy: EthereumTransactionLegacyTransaction;3081 readonly isEip2930: boolean;3082 readonly asEip2930: EthereumTransactionEip2930Transaction;3083 readonly isEip1559: boolean;3084 readonly asEip1559: EthereumTransactionEip1559Transaction;3085 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3086 }30873088 /** @name EthereumTransactionLegacyTransaction (328) */3089 interface EthereumTransactionLegacyTransaction extends Struct {3090 readonly nonce: U256;3091 readonly gasPrice: U256;3092 readonly gasLimit: U256;3093 readonly action: EthereumTransactionTransactionAction;3094 readonly value: U256;3095 readonly input: Bytes;3096 readonly signature: EthereumTransactionTransactionSignature;3097 }30983099 /** @name EthereumTransactionTransactionAction (329) */3100 interface EthereumTransactionTransactionAction extends Enum {3101 readonly isCall: boolean;3102 readonly asCall: H160;3103 readonly isCreate: boolean;3104 readonly type: 'Call' | 'Create';3105 }31063107 /** @name EthereumTransactionTransactionSignature (330) */3108 interface EthereumTransactionTransactionSignature extends Struct {3109 readonly v: u64;3110 readonly r: H256;3111 readonly s: H256;3112 }31133114 /** @name EthereumTransactionEip2930Transaction (332) */3115 interface EthereumTransactionEip2930Transaction extends Struct {3116 readonly chainId: u64;3117 readonly nonce: U256;3118 readonly gasPrice: U256;3119 readonly gasLimit: U256;3120 readonly action: EthereumTransactionTransactionAction;3121 readonly value: U256;3122 readonly input: Bytes;3123 readonly accessList: Vec<EthereumTransactionAccessListItem>;3124 readonly oddYParity: bool;3125 readonly r: H256;3126 readonly s: H256;3127 }31283129 /** @name EthereumTransactionAccessListItem (334) */3130 interface EthereumTransactionAccessListItem extends Struct {3131 readonly address: H160;3132 readonly storageKeys: Vec<H256>;3133 }31343135 /** @name EthereumTransactionEip1559Transaction (335) */3136 interface EthereumTransactionEip1559Transaction extends Struct {3137 readonly chainId: u64;3138 readonly nonce: U256;3139 readonly maxPriorityFeePerGas: U256;3140 readonly maxFeePerGas: U256;3141 readonly gasLimit: U256;3142 readonly action: EthereumTransactionTransactionAction;3143 readonly value: U256;3144 readonly input: Bytes;3145 readonly accessList: Vec<EthereumTransactionAccessListItem>;3146 readonly oddYParity: bool;3147 readonly r: H256;3148 readonly s: H256;3149 }31503151 /** @name PalletEvmMigrationCall (336) */3152 interface PalletEvmMigrationCall extends Enum {3153 readonly isBegin: boolean;3154 readonly asBegin: {3155 readonly address: H160;3156 } & Struct;3157 readonly isSetData: boolean;3158 readonly asSetData: {3159 readonly address: H160;3160 readonly data: Vec<ITuple<[H256, H256]>>;3161 } & Struct;3162 readonly isFinish: boolean;3163 readonly asFinish: {3164 readonly address: H160;3165 readonly code: Bytes;3166 } & Struct;3167 readonly isInsertEthLogs: boolean;3168 readonly asInsertEthLogs: {3169 readonly logs: Vec<EthereumLog>;3170 } & Struct;3171 readonly isInsertEvents: boolean;3172 readonly asInsertEvents: {3173 readonly events: Vec<Bytes>;3174 } & Struct;3175 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';3176 }31773178 /** @name PalletMaintenanceCall (340) */3179 interface PalletMaintenanceCall extends Enum {3180 readonly isEnable: boolean;3181 readonly isDisable: boolean;3182 readonly type: 'Enable' | 'Disable';3183 }31843185 /** @name PalletTestUtilsCall (341) */3186 interface PalletTestUtilsCall extends Enum {3187 readonly isEnable: boolean;3188 readonly isSetTestValue: boolean;3189 readonly asSetTestValue: {3190 readonly value: u32;3191 } & Struct;3192 readonly isSetTestValueAndRollback: boolean;3193 readonly asSetTestValueAndRollback: {3194 readonly value: u32;3195 } & Struct;3196 readonly isIncTestValue: boolean;3197 readonly isSelfCancelingInc: boolean;3198 readonly asSelfCancelingInc: {3199 readonly id: U8aFixed;3200 readonly maxTestValue: u32;3201 } & Struct;3202 readonly isJustTakeFee: boolean;3203 readonly isBatchAll: boolean;3204 readonly asBatchAll: {3205 readonly calls: Vec<Call>;3206 } & Struct;3207 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'SelfCancelingInc' | 'JustTakeFee' | 'BatchAll';3208 }32093210 /** @name PalletSudoError (343) */3211 interface PalletSudoError extends Enum {3212 readonly isRequireSudo: boolean;3213 readonly type: 'RequireSudo';3214 }32153216 /** @name OrmlVestingModuleError (345) */3217 interface OrmlVestingModuleError extends Enum {3218 readonly isZeroVestingPeriod: boolean;3219 readonly isZeroVestingPeriodCount: boolean;3220 readonly isInsufficientBalanceToLock: boolean;3221 readonly isTooManyVestingSchedules: boolean;3222 readonly isAmountLow: boolean;3223 readonly isMaxVestingSchedulesExceeded: boolean;3224 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3225 }32263227 /** @name OrmlXtokensModuleError (346) */3228 interface OrmlXtokensModuleError extends Enum {3229 readonly isAssetHasNoReserve: boolean;3230 readonly isNotCrossChainTransfer: boolean;3231 readonly isInvalidDest: boolean;3232 readonly isNotCrossChainTransferableCurrency: boolean;3233 readonly isUnweighableMessage: boolean;3234 readonly isXcmExecutionFailed: boolean;3235 readonly isCannotReanchor: boolean;3236 readonly isInvalidAncestry: boolean;3237 readonly isInvalidAsset: boolean;3238 readonly isDestinationNotInvertible: boolean;3239 readonly isBadVersion: boolean;3240 readonly isDistinctReserveForAssetAndFee: boolean;3241 readonly isZeroFee: boolean;3242 readonly isZeroAmount: boolean;3243 readonly isTooManyAssetsBeingSent: boolean;3244 readonly isAssetIndexNonExistent: boolean;3245 readonly isFeeNotEnough: boolean;3246 readonly isNotSupportedMultiLocation: boolean;3247 readonly isMinXcmFeeNotDefined: boolean;3248 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3249 }32503251 /** @name OrmlTokensBalanceLock (349) */3252 interface OrmlTokensBalanceLock extends Struct {3253 readonly id: U8aFixed;3254 readonly amount: u128;3255 }32563257 /** @name OrmlTokensAccountData (351) */3258 interface OrmlTokensAccountData extends Struct {3259 readonly free: u128;3260 readonly reserved: u128;3261 readonly frozen: u128;3262 }32633264 /** @name OrmlTokensReserveData (353) */3265 interface OrmlTokensReserveData extends Struct {3266 readonly id: Null;3267 readonly amount: u128;3268 }32693270 /** @name OrmlTokensModuleError (355) */3271 interface OrmlTokensModuleError extends Enum {3272 readonly isBalanceTooLow: boolean;3273 readonly isAmountIntoBalanceFailed: boolean;3274 readonly isLiquidityRestrictions: boolean;3275 readonly isMaxLocksExceeded: boolean;3276 readonly isKeepAlive: boolean;3277 readonly isExistentialDeposit: boolean;3278 readonly isDeadAccount: boolean;3279 readonly isTooManyReserves: boolean;3280 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3281 }32823283 /** @name CumulusPalletXcmpQueueInboundChannelDetails (357) */3284 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3285 readonly sender: u32;3286 readonly state: CumulusPalletXcmpQueueInboundState;3287 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3288 }32893290 /** @name CumulusPalletXcmpQueueInboundState (358) */3291 interface CumulusPalletXcmpQueueInboundState extends Enum {3292 readonly isOk: boolean;3293 readonly isSuspended: boolean;3294 readonly type: 'Ok' | 'Suspended';3295 }32963297 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (361) */3298 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3299 readonly isConcatenatedVersionedXcm: boolean;3300 readonly isConcatenatedEncodedBlob: boolean;3301 readonly isSignals: boolean;3302 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3303 }33043305 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (364) */3306 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3307 readonly recipient: u32;3308 readonly state: CumulusPalletXcmpQueueOutboundState;3309 readonly signalsExist: bool;3310 readonly firstIndex: u16;3311 readonly lastIndex: u16;3312 }33133314 /** @name CumulusPalletXcmpQueueOutboundState (365) */3315 interface CumulusPalletXcmpQueueOutboundState extends Enum {3316 readonly isOk: boolean;3317 readonly isSuspended: boolean;3318 readonly type: 'Ok' | 'Suspended';3319 }33203321 /** @name CumulusPalletXcmpQueueQueueConfigData (367) */3322 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3323 readonly suspendThreshold: u32;3324 readonly dropThreshold: u32;3325 readonly resumeThreshold: u32;3326 readonly thresholdWeight: Weight;3327 readonly weightRestrictDecay: Weight;3328 readonly xcmpMaxIndividualWeight: Weight;3329 }33303331 /** @name CumulusPalletXcmpQueueError (369) */3332 interface CumulusPalletXcmpQueueError extends Enum {3333 readonly isFailedToSend: boolean;3334 readonly isBadXcmOrigin: boolean;3335 readonly isBadXcm: boolean;3336 readonly isBadOverweightIndex: boolean;3337 readonly isWeightOverLimit: boolean;3338 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3339 }33403341 /** @name PalletXcmError (370) */3342 interface PalletXcmError extends Enum {3343 readonly isUnreachable: boolean;3344 readonly isSendFailure: boolean;3345 readonly isFiltered: boolean;3346 readonly isUnweighableMessage: boolean;3347 readonly isDestinationNotInvertible: boolean;3348 readonly isEmpty: boolean;3349 readonly isCannotReanchor: boolean;3350 readonly isTooManyAssets: boolean;3351 readonly isInvalidOrigin: boolean;3352 readonly isBadVersion: boolean;3353 readonly isBadLocation: boolean;3354 readonly isNoSubscription: boolean;3355 readonly isAlreadySubscribed: boolean;3356 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';3357 }33583359 /** @name CumulusPalletXcmError (371) */3360 type CumulusPalletXcmError = Null;33613362 /** @name CumulusPalletDmpQueueConfigData (372) */3363 interface CumulusPalletDmpQueueConfigData extends Struct {3364 readonly maxIndividual: Weight;3365 }33663367 /** @name CumulusPalletDmpQueuePageIndexData (373) */3368 interface CumulusPalletDmpQueuePageIndexData extends Struct {3369 readonly beginUsed: u32;3370 readonly endUsed: u32;3371 readonly overweightCount: u64;3372 }33733374 /** @name CumulusPalletDmpQueueError (376) */3375 interface CumulusPalletDmpQueueError extends Enum {3376 readonly isUnknown: boolean;3377 readonly isOverLimit: boolean;3378 readonly type: 'Unknown' | 'OverLimit';3379 }33803381 /** @name PalletUniqueError (380) */3382 interface PalletUniqueError extends Enum {3383 readonly isCollectionDecimalPointLimitExceeded: boolean;3384 readonly isConfirmUnsetSponsorFail: boolean;3385 readonly isEmptyArgument: boolean;3386 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3387 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3388 }33893390 /** @name PalletUniqueSchedulerV2BlockAgenda (381) */3391 interface PalletUniqueSchedulerV2BlockAgenda extends Struct {3392 readonly agenda: Vec<Option<PalletUniqueSchedulerV2Scheduled>>;3393 readonly freePlaces: u32;3394 }33953396 /** @name PalletUniqueSchedulerV2Scheduled (384) */3397 interface PalletUniqueSchedulerV2Scheduled extends Struct {3398 readonly maybeId: Option<U8aFixed>;3399 readonly priority: u8;3400 readonly call: PalletUniqueSchedulerV2ScheduledCall;3401 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;3402 readonly origin: OpalRuntimeOriginCaller;3403 }34043405 /** @name PalletUniqueSchedulerV2ScheduledCall (385) */3406 interface PalletUniqueSchedulerV2ScheduledCall extends Enum {3407 readonly isInline: boolean;3408 readonly asInline: Bytes;3409 readonly isPreimageLookup: boolean;3410 readonly asPreimageLookup: {3411 readonly hash_: H256;3412 readonly unboundedLen: u32;3413 } & Struct;3414 readonly type: 'Inline' | 'PreimageLookup';3415 }34163417 /** @name OpalRuntimeOriginCaller (387) */3418 interface OpalRuntimeOriginCaller extends Enum {3419 readonly isSystem: boolean;3420 readonly asSystem: FrameSupportDispatchRawOrigin;3421 readonly isVoid: boolean;3422 readonly isPolkadotXcm: boolean;3423 readonly asPolkadotXcm: PalletXcmOrigin;3424 readonly isCumulusXcm: boolean;3425 readonly asCumulusXcm: CumulusPalletXcmOrigin;3426 readonly isEthereum: boolean;3427 readonly asEthereum: PalletEthereumRawOrigin;3428 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';3429 }34303431 /** @name FrameSupportDispatchRawOrigin (388) */3432 interface FrameSupportDispatchRawOrigin extends Enum {3433 readonly isRoot: boolean;3434 readonly isSigned: boolean;3435 readonly asSigned: AccountId32;3436 readonly isNone: boolean;3437 readonly type: 'Root' | 'Signed' | 'None';3438 }34393440 /** @name PalletXcmOrigin (389) */3441 interface PalletXcmOrigin extends Enum {3442 readonly isXcm: boolean;3443 readonly asXcm: XcmV1MultiLocation;3444 readonly isResponse: boolean;3445 readonly asResponse: XcmV1MultiLocation;3446 readonly type: 'Xcm' | 'Response';3447 }34483449 /** @name CumulusPalletXcmOrigin (390) */3450 interface CumulusPalletXcmOrigin extends Enum {3451 readonly isRelay: boolean;3452 readonly isSiblingParachain: boolean;3453 readonly asSiblingParachain: u32;3454 readonly type: 'Relay' | 'SiblingParachain';3455 }34563457 /** @name PalletEthereumRawOrigin (391) */3458 interface PalletEthereumRawOrigin extends Enum {3459 readonly isEthereumTransaction: boolean;3460 readonly asEthereumTransaction: H160;3461 readonly type: 'EthereumTransaction';3462 }34633464 /** @name SpCoreVoid (392) */3465 type SpCoreVoid = Null;34663467 /** @name PalletUniqueSchedulerV2Error (394) */3468 interface PalletUniqueSchedulerV2Error extends Enum {3469 readonly isFailedToSchedule: boolean;3470 readonly isAgendaIsExhausted: boolean;3471 readonly isScheduledCallCorrupted: boolean;3472 readonly isPreimageNotFound: boolean;3473 readonly isTooBigScheduledCall: boolean;3474 readonly isNotFound: boolean;3475 readonly isTargetBlockNumberInPast: boolean;3476 readonly isNamed: boolean;3477 readonly type: 'FailedToSchedule' | 'AgendaIsExhausted' | 'ScheduledCallCorrupted' | 'PreimageNotFound' | 'TooBigScheduledCall' | 'NotFound' | 'TargetBlockNumberInPast' | 'Named';3478 }34793480 /** @name UpDataStructsCollection (395) */3481 interface UpDataStructsCollection extends Struct {3482 readonly owner: AccountId32;3483 readonly mode: UpDataStructsCollectionMode;3484 readonly name: Vec<u16>;3485 readonly description: Vec<u16>;3486 readonly tokenPrefix: Bytes;3487 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3488 readonly limits: UpDataStructsCollectionLimits;3489 readonly permissions: UpDataStructsCollectionPermissions;3490 readonly flags: U8aFixed;3491 }34923493 /** @name UpDataStructsSponsorshipStateAccountId32 (396) */3494 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3495 readonly isDisabled: boolean;3496 readonly isUnconfirmed: boolean;3497 readonly asUnconfirmed: AccountId32;3498 readonly isConfirmed: boolean;3499 readonly asConfirmed: AccountId32;3500 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3501 }35023503 /** @name UpDataStructsProperties (398) */3504 interface UpDataStructsProperties extends Struct {3505 readonly map: UpDataStructsPropertiesMapBoundedVec;3506 readonly consumedSpace: u32;3507 readonly spaceLimit: u32;3508 }35093510 /** @name UpDataStructsPropertiesMapBoundedVec (399) */3511 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}35123513 /** @name UpDataStructsPropertiesMapPropertyPermission (404) */3514 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}35153516 /** @name UpDataStructsCollectionStats (411) */3517 interface UpDataStructsCollectionStats extends Struct {3518 readonly created: u32;3519 readonly destroyed: u32;3520 readonly alive: u32;3521 }35223523 /** @name UpDataStructsTokenChild (412) */3524 interface UpDataStructsTokenChild extends Struct {3525 readonly token: u32;3526 readonly collection: u32;3527 }35283529 /** @name PhantomTypeUpDataStructs (413) */3530 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}35313532 /** @name UpDataStructsTokenData (415) */3533 interface UpDataStructsTokenData extends Struct {3534 readonly properties: Vec<UpDataStructsProperty>;3535 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3536 readonly pieces: u128;3537 }35383539 /** @name UpDataStructsRpcCollection (417) */3540 interface UpDataStructsRpcCollection extends Struct {3541 readonly owner: AccountId32;3542 readonly mode: UpDataStructsCollectionMode;3543 readonly name: Vec<u16>;3544 readonly description: Vec<u16>;3545 readonly tokenPrefix: Bytes;3546 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3547 readonly limits: UpDataStructsCollectionLimits;3548 readonly permissions: UpDataStructsCollectionPermissions;3549 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3550 readonly properties: Vec<UpDataStructsProperty>;3551 readonly readOnly: bool;3552 readonly flags: UpDataStructsRpcCollectionFlags;3553 }35543555 /** @name UpDataStructsRpcCollectionFlags (418) */3556 interface UpDataStructsRpcCollectionFlags extends Struct {3557 readonly foreign: bool;3558 readonly erc721metadata: bool;3559 }35603561 /** @name RmrkTraitsCollectionCollectionInfo (419) */3562 interface RmrkTraitsCollectionCollectionInfo extends Struct {3563 readonly issuer: AccountId32;3564 readonly metadata: Bytes;3565 readonly max: Option<u32>;3566 readonly symbol: Bytes;3567 readonly nftsCount: u32;3568 }35693570 /** @name RmrkTraitsNftNftInfo (420) */3571 interface RmrkTraitsNftNftInfo extends Struct {3572 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3573 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3574 readonly metadata: Bytes;3575 readonly equipped: bool;3576 readonly pending: bool;3577 }35783579 /** @name RmrkTraitsNftRoyaltyInfo (422) */3580 interface RmrkTraitsNftRoyaltyInfo extends Struct {3581 readonly recipient: AccountId32;3582 readonly amount: Permill;3583 }35843585 /** @name RmrkTraitsResourceResourceInfo (423) */3586 interface RmrkTraitsResourceResourceInfo extends Struct {3587 readonly id: u32;3588 readonly resource: RmrkTraitsResourceResourceTypes;3589 readonly pending: bool;3590 readonly pendingRemoval: bool;3591 }35923593 /** @name RmrkTraitsPropertyPropertyInfo (424) */3594 interface RmrkTraitsPropertyPropertyInfo extends Struct {3595 readonly key: Bytes;3596 readonly value: Bytes;3597 }35983599 /** @name RmrkTraitsBaseBaseInfo (425) */3600 interface RmrkTraitsBaseBaseInfo extends Struct {3601 readonly issuer: AccountId32;3602 readonly baseType: Bytes;3603 readonly symbol: Bytes;3604 }36053606 /** @name RmrkTraitsNftNftChild (426) */3607 interface RmrkTraitsNftNftChild extends Struct {3608 readonly collectionId: u32;3609 readonly nftId: u32;3610 }36113612 /** @name PalletCommonError (428) */3613 interface PalletCommonError extends Enum {3614 readonly isCollectionNotFound: boolean;3615 readonly isMustBeTokenOwner: boolean;3616 readonly isNoPermission: boolean;3617 readonly isCantDestroyNotEmptyCollection: boolean;3618 readonly isPublicMintingNotAllowed: boolean;3619 readonly isAddressNotInAllowlist: boolean;3620 readonly isCollectionNameLimitExceeded: boolean;3621 readonly isCollectionDescriptionLimitExceeded: boolean;3622 readonly isCollectionTokenPrefixLimitExceeded: boolean;3623 readonly isTotalCollectionsLimitExceeded: boolean;3624 readonly isCollectionAdminCountExceeded: boolean;3625 readonly isCollectionLimitBoundsExceeded: boolean;3626 readonly isOwnerPermissionsCantBeReverted: boolean;3627 readonly isTransferNotAllowed: boolean;3628 readonly isAccountTokenLimitExceeded: boolean;3629 readonly isCollectionTokenLimitExceeded: boolean;3630 readonly isMetadataFlagFrozen: boolean;3631 readonly isTokenNotFound: boolean;3632 readonly isTokenValueTooLow: boolean;3633 readonly isApprovedValueTooLow: boolean;3634 readonly isCantApproveMoreThanOwned: boolean;3635 readonly isAddressIsZero: boolean;3636 readonly isUnsupportedOperation: boolean;3637 readonly isNotSufficientFounds: boolean;3638 readonly isUserIsNotAllowedToNest: boolean;3639 readonly isSourceCollectionIsNotAllowedToNest: boolean;3640 readonly isCollectionFieldSizeExceeded: boolean;3641 readonly isNoSpaceForProperty: boolean;3642 readonly isPropertyLimitReached: boolean;3643 readonly isPropertyKeyIsTooLong: boolean;3644 readonly isInvalidCharacterInPropertyKey: boolean;3645 readonly isEmptyPropertyKey: boolean;3646 readonly isCollectionIsExternal: boolean;3647 readonly isCollectionIsInternal: boolean;3648 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';3649 }36503651 /** @name PalletFungibleError (430) */3652 interface PalletFungibleError extends Enum {3653 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3654 readonly isFungibleItemsHaveNoId: boolean;3655 readonly isFungibleItemsDontHaveData: boolean;3656 readonly isFungibleDisallowsNesting: boolean;3657 readonly isSettingPropertiesNotAllowed: boolean;3658 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3659 }36603661 /** @name PalletRefungibleItemData (431) */3662 interface PalletRefungibleItemData extends Struct {3663 readonly constData: Bytes;3664 }36653666 /** @name PalletRefungibleError (436) */3667 interface PalletRefungibleError extends Enum {3668 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3669 readonly isWrongRefungiblePieces: boolean;3670 readonly isRepartitionWhileNotOwningAllPieces: boolean;3671 readonly isRefungibleDisallowsNesting: boolean;3672 readonly isSettingPropertiesNotAllowed: boolean;3673 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3674 }36753676 /** @name PalletNonfungibleItemData (437) */3677 interface PalletNonfungibleItemData extends Struct {3678 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3679 }36803681 /** @name UpDataStructsPropertyScope (439) */3682 interface UpDataStructsPropertyScope extends Enum {3683 readonly isNone: boolean;3684 readonly isRmrk: boolean;3685 readonly type: 'None' | 'Rmrk';3686 }36873688 /** @name PalletNonfungibleError (441) */3689 interface PalletNonfungibleError extends Enum {3690 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3691 readonly isNonfungibleItemsHaveNoAmount: boolean;3692 readonly isCantBurnNftWithChildren: boolean;3693 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3694 }36953696 /** @name PalletStructureError (442) */3697 interface PalletStructureError extends Enum {3698 readonly isOuroborosDetected: boolean;3699 readonly isDepthLimit: boolean;3700 readonly isBreadthLimit: boolean;3701 readonly isTokenNotFound: boolean;3702 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3703 }37043705 /** @name PalletRmrkCoreError (443) */3706 interface PalletRmrkCoreError extends Enum {3707 readonly isCorruptedCollectionType: boolean;3708 readonly isRmrkPropertyKeyIsTooLong: boolean;3709 readonly isRmrkPropertyValueIsTooLong: boolean;3710 readonly isRmrkPropertyIsNotFound: boolean;3711 readonly isUnableToDecodeRmrkData: boolean;3712 readonly isCollectionNotEmpty: boolean;3713 readonly isNoAvailableCollectionId: boolean;3714 readonly isNoAvailableNftId: boolean;3715 readonly isCollectionUnknown: boolean;3716 readonly isNoPermission: boolean;3717 readonly isNonTransferable: boolean;3718 readonly isCollectionFullOrLocked: boolean;3719 readonly isResourceDoesntExist: boolean;3720 readonly isCannotSendToDescendentOrSelf: boolean;3721 readonly isCannotAcceptNonOwnedNft: boolean;3722 readonly isCannotRejectNonOwnedNft: boolean;3723 readonly isCannotRejectNonPendingNft: boolean;3724 readonly isResourceNotPending: boolean;3725 readonly isNoAvailableResourceId: boolean;3726 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3727 }37283729 /** @name PalletRmrkEquipError (445) */3730 interface PalletRmrkEquipError extends Enum {3731 readonly isPermissionError: boolean;3732 readonly isNoAvailableBaseId: boolean;3733 readonly isNoAvailablePartId: boolean;3734 readonly isBaseDoesntExist: boolean;3735 readonly isNeedsDefaultThemeFirst: boolean;3736 readonly isPartDoesntExist: boolean;3737 readonly isNoEquippableOnFixedPart: boolean;3738 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3739 }37403741 /** @name PalletAppPromotionError (451) */3742 interface PalletAppPromotionError extends Enum {3743 readonly isAdminNotSet: boolean;3744 readonly isNoPermission: boolean;3745 readonly isNotSufficientFunds: boolean;3746 readonly isPendingForBlockOverflow: boolean;3747 readonly isSponsorNotSet: boolean;3748 readonly isIncorrectLockedBalanceOperation: boolean;3749 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';3750 }37513752 /** @name PalletForeignAssetsModuleError (452) */3753 interface PalletForeignAssetsModuleError extends Enum {3754 readonly isBadLocation: boolean;3755 readonly isMultiLocationExisted: boolean;3756 readonly isAssetIdNotExists: boolean;3757 readonly isAssetIdExisted: boolean;3758 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3759 }37603761 /** @name PalletEvmError (454) */3762 interface PalletEvmError extends Enum {3763 readonly isBalanceLow: boolean;3764 readonly isFeeOverflow: boolean;3765 readonly isPaymentOverflow: boolean;3766 readonly isWithdrawFailed: boolean;3767 readonly isGasPriceTooLow: boolean;3768 readonly isInvalidNonce: boolean;3769 readonly isGasLimitTooLow: boolean;3770 readonly isGasLimitTooHigh: boolean;3771 readonly isUndefined: boolean;3772 readonly isReentrancy: boolean;3773 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy';3774 }37753776 /** @name FpRpcTransactionStatus (457) */3777 interface FpRpcTransactionStatus extends Struct {3778 readonly transactionHash: H256;3779 readonly transactionIndex: u32;3780 readonly from: H160;3781 readonly to: Option<H160>;3782 readonly contractAddress: Option<H160>;3783 readonly logs: Vec<EthereumLog>;3784 readonly logsBloom: EthbloomBloom;3785 }37863787 /** @name EthbloomBloom (459) */3788 interface EthbloomBloom extends U8aFixed {}37893790 /** @name EthereumReceiptReceiptV3 (461) */3791 interface EthereumReceiptReceiptV3 extends Enum {3792 readonly isLegacy: boolean;3793 readonly asLegacy: EthereumReceiptEip658ReceiptData;3794 readonly isEip2930: boolean;3795 readonly asEip2930: EthereumReceiptEip658ReceiptData;3796 readonly isEip1559: boolean;3797 readonly asEip1559: EthereumReceiptEip658ReceiptData;3798 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3799 }38003801 /** @name EthereumReceiptEip658ReceiptData (462) */3802 interface EthereumReceiptEip658ReceiptData extends Struct {3803 readonly statusCode: u8;3804 readonly usedGas: U256;3805 readonly logsBloom: EthbloomBloom;3806 readonly logs: Vec<EthereumLog>;3807 }38083809 /** @name EthereumBlock (463) */3810 interface EthereumBlock extends Struct {3811 readonly header: EthereumHeader;3812 readonly transactions: Vec<EthereumTransactionTransactionV2>;3813 readonly ommers: Vec<EthereumHeader>;3814 }38153816 /** @name EthereumHeader (464) */3817 interface EthereumHeader extends Struct {3818 readonly parentHash: H256;3819 readonly ommersHash: H256;3820 readonly beneficiary: H160;3821 readonly stateRoot: H256;3822 readonly transactionsRoot: H256;3823 readonly receiptsRoot: H256;3824 readonly logsBloom: EthbloomBloom;3825 readonly difficulty: U256;3826 readonly number: U256;3827 readonly gasLimit: U256;3828 readonly gasUsed: U256;3829 readonly timestamp: u64;3830 readonly extraData: Bytes;3831 readonly mixHash: H256;3832 readonly nonce: EthereumTypesHashH64;3833 }38343835 /** @name EthereumTypesHashH64 (465) */3836 interface EthereumTypesHashH64 extends U8aFixed {}38373838 /** @name PalletEthereumError (470) */3839 interface PalletEthereumError extends Enum {3840 readonly isInvalidSignature: boolean;3841 readonly isPreLogExists: boolean;3842 readonly type: 'InvalidSignature' | 'PreLogExists';3843 }38443845 /** @name PalletEvmCoderSubstrateError (471) */3846 interface PalletEvmCoderSubstrateError extends Enum {3847 readonly isOutOfGas: boolean;3848 readonly isOutOfFund: boolean;3849 readonly type: 'OutOfGas' | 'OutOfFund';3850 }38513852 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (472) */3853 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3854 readonly isDisabled: boolean;3855 readonly isUnconfirmed: boolean;3856 readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr;3857 readonly isConfirmed: boolean;3858 readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr;3859 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3860 }38613862 /** @name PalletEvmContractHelpersSponsoringModeT (473) */3863 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3864 readonly isDisabled: boolean;3865 readonly isAllowlisted: boolean;3866 readonly isGenerous: boolean;3867 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3868 }38693870 /** @name PalletEvmContractHelpersError (479) */3871 interface PalletEvmContractHelpersError extends Enum {3872 readonly isNoPermission: boolean;3873 readonly isNoPendingSponsor: boolean;3874 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3875 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3876 }38773878 /** @name PalletEvmMigrationError (480) */3879 interface PalletEvmMigrationError extends Enum {3880 readonly isAccountNotEmpty: boolean;3881 readonly isAccountIsNotMigrating: boolean;3882 readonly isBadEvent: boolean;3883 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3884 }38853886 /** @name PalletMaintenanceError (481) */3887 type PalletMaintenanceError = Null;38883889 /** @name PalletTestUtilsError (482) */3890 interface PalletTestUtilsError extends Enum {3891 readonly isTestPalletDisabled: boolean;3892 readonly isTriggerRollback: boolean;3893 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3894 }38953896 /** @name SpRuntimeMultiSignature (484) */3897 interface SpRuntimeMultiSignature extends Enum {3898 readonly isEd25519: boolean;3899 readonly asEd25519: SpCoreEd25519Signature;3900 readonly isSr25519: boolean;3901 readonly asSr25519: SpCoreSr25519Signature;3902 readonly isEcdsa: boolean;3903 readonly asEcdsa: SpCoreEcdsaSignature;3904 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3905 }39063907 /** @name SpCoreEd25519Signature (485) */3908 interface SpCoreEd25519Signature extends U8aFixed {}39093910 /** @name SpCoreSr25519Signature (487) */3911 interface SpCoreSr25519Signature extends U8aFixed {}39123913 /** @name SpCoreEcdsaSignature (488) */3914 interface SpCoreEcdsaSignature extends U8aFixed {}39153916 /** @name FrameSystemExtensionsCheckSpecVersion (491) */3917 type FrameSystemExtensionsCheckSpecVersion = Null;39183919 /** @name FrameSystemExtensionsCheckTxVersion (492) */3920 type FrameSystemExtensionsCheckTxVersion = Null;39213922 /** @name FrameSystemExtensionsCheckGenesis (493) */3923 type FrameSystemExtensionsCheckGenesis = Null;39243925 /** @name FrameSystemExtensionsCheckNonce (496) */3926 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}39273928 /** @name FrameSystemExtensionsCheckWeight (497) */3929 type FrameSystemExtensionsCheckWeight = Null;39303931 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (498) */3932 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;39333934 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (499) */3935 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}39363937 /** @name OpalRuntimeRuntime (500) */3938 type OpalRuntimeRuntime = Null;39393940 /** @name PalletEthereumFakeTransactionFinalizer (501) */3941 type PalletEthereumFakeTransactionFinalizer = Null;39423943} // 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 { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';9import type { ITuple } from '@polkadot/types-codec/types';10import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill, Weight } from '@polkadot/types/interfaces/runtime';11import type { Event } from '@polkadot/types/interfaces/system';1213declare module '@polkadot/types/lookup' {14 /** @name FrameSystemAccountInfo (3) */15 interface FrameSystemAccountInfo extends Struct {16 readonly nonce: u32;17 readonly consumers: u32;18 readonly providers: u32;19 readonly sufficients: u32;20 readonly data: PalletBalancesAccountData;21 }2223 /** @name PalletBalancesAccountData (5) */24 interface PalletBalancesAccountData extends Struct {25 readonly free: u128;26 readonly reserved: u128;27 readonly miscFrozen: u128;28 readonly feeFrozen: u128;29 }3031 /** @name FrameSupportDispatchPerDispatchClassWeight (7) */32 interface FrameSupportDispatchPerDispatchClassWeight extends Struct {33 readonly normal: Weight;34 readonly operational: Weight;35 readonly mandatory: Weight;36 }3738 /** @name SpRuntimeDigest (12) */39 interface SpRuntimeDigest extends Struct {40 readonly logs: Vec<SpRuntimeDigestDigestItem>;41 }4243 /** @name SpRuntimeDigestDigestItem (14) */44 interface SpRuntimeDigestDigestItem extends Enum {45 readonly isOther: boolean;46 readonly asOther: Bytes;47 readonly isConsensus: boolean;48 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;49 readonly isSeal: boolean;50 readonly asSeal: ITuple<[U8aFixed, Bytes]>;51 readonly isPreRuntime: boolean;52 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;53 readonly isRuntimeEnvironmentUpdated: boolean;54 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';55 }5657 /** @name FrameSystemEventRecord (17) */58 interface FrameSystemEventRecord extends Struct {59 readonly phase: FrameSystemPhase;60 readonly event: Event;61 readonly topics: Vec<H256>;62 }6364 /** @name FrameSystemEvent (19) */65 interface FrameSystemEvent extends Enum {66 readonly isExtrinsicSuccess: boolean;67 readonly asExtrinsicSuccess: {68 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;69 } & Struct;70 readonly isExtrinsicFailed: boolean;71 readonly asExtrinsicFailed: {72 readonly dispatchError: SpRuntimeDispatchError;73 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;74 } & Struct;75 readonly isCodeUpdated: boolean;76 readonly isNewAccount: boolean;77 readonly asNewAccount: {78 readonly account: AccountId32;79 } & Struct;80 readonly isKilledAccount: boolean;81 readonly asKilledAccount: {82 readonly account: AccountId32;83 } & Struct;84 readonly isRemarked: boolean;85 readonly asRemarked: {86 readonly sender: AccountId32;87 readonly hash_: H256;88 } & Struct;89 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';90 }9192 /** @name FrameSupportDispatchDispatchInfo (20) */93 interface FrameSupportDispatchDispatchInfo extends Struct {94 readonly weight: Weight;95 readonly class: FrameSupportDispatchDispatchClass;96 readonly paysFee: FrameSupportDispatchPays;97 }9899 /** @name FrameSupportDispatchDispatchClass (21) */100 interface FrameSupportDispatchDispatchClass extends Enum {101 readonly isNormal: boolean;102 readonly isOperational: boolean;103 readonly isMandatory: boolean;104 readonly type: 'Normal' | 'Operational' | 'Mandatory';105 }106107 /** @name FrameSupportDispatchPays (22) */108 interface FrameSupportDispatchPays extends Enum {109 readonly isYes: boolean;110 readonly isNo: boolean;111 readonly type: 'Yes' | 'No';112 }113114 /** @name SpRuntimeDispatchError (23) */115 interface SpRuntimeDispatchError extends Enum {116 readonly isOther: boolean;117 readonly isCannotLookup: boolean;118 readonly isBadOrigin: boolean;119 readonly isModule: boolean;120 readonly asModule: SpRuntimeModuleError;121 readonly isConsumerRemaining: boolean;122 readonly isNoProviders: boolean;123 readonly isTooManyConsumers: boolean;124 readonly isToken: boolean;125 readonly asToken: SpRuntimeTokenError;126 readonly isArithmetic: boolean;127 readonly asArithmetic: SpRuntimeArithmeticError;128 readonly isTransactional: boolean;129 readonly asTransactional: SpRuntimeTransactionalError;130 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';131 }132133 /** @name SpRuntimeModuleError (24) */134 interface SpRuntimeModuleError extends Struct {135 readonly index: u8;136 readonly error: U8aFixed;137 }138139 /** @name SpRuntimeTokenError (25) */140 interface SpRuntimeTokenError extends Enum {141 readonly isNoFunds: boolean;142 readonly isWouldDie: boolean;143 readonly isBelowMinimum: boolean;144 readonly isCannotCreate: boolean;145 readonly isUnknownAsset: boolean;146 readonly isFrozen: boolean;147 readonly isUnsupported: boolean;148 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';149 }150151 /** @name SpRuntimeArithmeticError (26) */152 interface SpRuntimeArithmeticError extends Enum {153 readonly isUnderflow: boolean;154 readonly isOverflow: boolean;155 readonly isDivisionByZero: boolean;156 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';157 }158159 /** @name SpRuntimeTransactionalError (27) */160 interface SpRuntimeTransactionalError extends Enum {161 readonly isLimitReached: boolean;162 readonly isNoLayer: boolean;163 readonly type: 'LimitReached' | 'NoLayer';164 }165166 /** @name CumulusPalletParachainSystemEvent (28) */167 interface CumulusPalletParachainSystemEvent extends Enum {168 readonly isValidationFunctionStored: boolean;169 readonly isValidationFunctionApplied: boolean;170 readonly asValidationFunctionApplied: {171 readonly relayChainBlockNum: u32;172 } & Struct;173 readonly isValidationFunctionDiscarded: boolean;174 readonly isUpgradeAuthorized: boolean;175 readonly asUpgradeAuthorized: {176 readonly codeHash: H256;177 } & Struct;178 readonly isDownwardMessagesReceived: boolean;179 readonly asDownwardMessagesReceived: {180 readonly count: u32;181 } & Struct;182 readonly isDownwardMessagesProcessed: boolean;183 readonly asDownwardMessagesProcessed: {184 readonly weightUsed: Weight;185 readonly dmqHead: H256;186 } & Struct;187 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';188 }189190 /** @name PalletBalancesEvent (29) */191 interface PalletBalancesEvent extends Enum {192 readonly isEndowed: boolean;193 readonly asEndowed: {194 readonly account: AccountId32;195 readonly freeBalance: u128;196 } & Struct;197 readonly isDustLost: boolean;198 readonly asDustLost: {199 readonly account: AccountId32;200 readonly amount: u128;201 } & Struct;202 readonly isTransfer: boolean;203 readonly asTransfer: {204 readonly from: AccountId32;205 readonly to: AccountId32;206 readonly amount: u128;207 } & Struct;208 readonly isBalanceSet: boolean;209 readonly asBalanceSet: {210 readonly who: AccountId32;211 readonly free: u128;212 readonly reserved: u128;213 } & Struct;214 readonly isReserved: boolean;215 readonly asReserved: {216 readonly who: AccountId32;217 readonly amount: u128;218 } & Struct;219 readonly isUnreserved: boolean;220 readonly asUnreserved: {221 readonly who: AccountId32;222 readonly amount: u128;223 } & Struct;224 readonly isReserveRepatriated: boolean;225 readonly asReserveRepatriated: {226 readonly from: AccountId32;227 readonly to: AccountId32;228 readonly amount: u128;229 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;230 } & Struct;231 readonly isDeposit: boolean;232 readonly asDeposit: {233 readonly who: AccountId32;234 readonly amount: u128;235 } & Struct;236 readonly isWithdraw: boolean;237 readonly asWithdraw: {238 readonly who: AccountId32;239 readonly amount: u128;240 } & Struct;241 readonly isSlashed: boolean;242 readonly asSlashed: {243 readonly who: AccountId32;244 readonly amount: u128;245 } & Struct;246 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';247 }248249 /** @name FrameSupportTokensMiscBalanceStatus (30) */250 interface FrameSupportTokensMiscBalanceStatus extends Enum {251 readonly isFree: boolean;252 readonly isReserved: boolean;253 readonly type: 'Free' | 'Reserved';254 }255256 /** @name PalletTransactionPaymentEvent (31) */257 interface PalletTransactionPaymentEvent extends Enum {258 readonly isTransactionFeePaid: boolean;259 readonly asTransactionFeePaid: {260 readonly who: AccountId32;261 readonly actualFee: u128;262 readonly tip: u128;263 } & Struct;264 readonly type: 'TransactionFeePaid';265 }266267 /** @name PalletTreasuryEvent (32) */268 interface PalletTreasuryEvent extends Enum {269 readonly isProposed: boolean;270 readonly asProposed: {271 readonly proposalIndex: u32;272 } & Struct;273 readonly isSpending: boolean;274 readonly asSpending: {275 readonly budgetRemaining: u128;276 } & Struct;277 readonly isAwarded: boolean;278 readonly asAwarded: {279 readonly proposalIndex: u32;280 readonly award: u128;281 readonly account: AccountId32;282 } & Struct;283 readonly isRejected: boolean;284 readonly asRejected: {285 readonly proposalIndex: u32;286 readonly slashed: u128;287 } & Struct;288 readonly isBurnt: boolean;289 readonly asBurnt: {290 readonly burntFunds: u128;291 } & Struct;292 readonly isRollover: boolean;293 readonly asRollover: {294 readonly rolloverBalance: u128;295 } & Struct;296 readonly isDeposit: boolean;297 readonly asDeposit: {298 readonly value: u128;299 } & Struct;300 readonly isSpendApproved: boolean;301 readonly asSpendApproved: {302 readonly proposalIndex: u32;303 readonly amount: u128;304 readonly beneficiary: AccountId32;305 } & Struct;306 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';307 }308309 /** @name PalletSudoEvent (33) */310 interface PalletSudoEvent extends Enum {311 readonly isSudid: boolean;312 readonly asSudid: {313 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;314 } & Struct;315 readonly isKeyChanged: boolean;316 readonly asKeyChanged: {317 readonly oldSudoer: Option<AccountId32>;318 } & Struct;319 readonly isSudoAsDone: boolean;320 readonly asSudoAsDone: {321 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;322 } & Struct;323 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';324 }325326 /** @name OrmlVestingModuleEvent (37) */327 interface OrmlVestingModuleEvent extends Enum {328 readonly isVestingScheduleAdded: boolean;329 readonly asVestingScheduleAdded: {330 readonly from: AccountId32;331 readonly to: AccountId32;332 readonly vestingSchedule: OrmlVestingVestingSchedule;333 } & Struct;334 readonly isClaimed: boolean;335 readonly asClaimed: {336 readonly who: AccountId32;337 readonly amount: u128;338 } & Struct;339 readonly isVestingSchedulesUpdated: boolean;340 readonly asVestingSchedulesUpdated: {341 readonly who: AccountId32;342 } & Struct;343 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';344 }345346 /** @name OrmlVestingVestingSchedule (38) */347 interface OrmlVestingVestingSchedule extends Struct {348 readonly start: u32;349 readonly period: u32;350 readonly periodCount: u32;351 readonly perPeriod: Compact<u128>;352 }353354 /** @name OrmlXtokensModuleEvent (40) */355 interface OrmlXtokensModuleEvent extends Enum {356 readonly isTransferredMultiAssets: boolean;357 readonly asTransferredMultiAssets: {358 readonly sender: AccountId32;359 readonly assets: XcmV1MultiassetMultiAssets;360 readonly fee: XcmV1MultiAsset;361 readonly dest: XcmV1MultiLocation;362 } & Struct;363 readonly type: 'TransferredMultiAssets';364 }365366 /** @name XcmV1MultiassetMultiAssets (41) */367 interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}368369 /** @name XcmV1MultiAsset (43) */370 interface XcmV1MultiAsset extends Struct {371 readonly id: XcmV1MultiassetAssetId;372 readonly fun: XcmV1MultiassetFungibility;373 }374375 /** @name XcmV1MultiassetAssetId (44) */376 interface XcmV1MultiassetAssetId extends Enum {377 readonly isConcrete: boolean;378 readonly asConcrete: XcmV1MultiLocation;379 readonly isAbstract: boolean;380 readonly asAbstract: Bytes;381 readonly type: 'Concrete' | 'Abstract';382 }383384 /** @name XcmV1MultiLocation (45) */385 interface XcmV1MultiLocation extends Struct {386 readonly parents: u8;387 readonly interior: XcmV1MultilocationJunctions;388 }389390 /** @name XcmV1MultilocationJunctions (46) */391 interface XcmV1MultilocationJunctions extends Enum {392 readonly isHere: boolean;393 readonly isX1: boolean;394 readonly asX1: XcmV1Junction;395 readonly isX2: boolean;396 readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;397 readonly isX3: boolean;398 readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;399 readonly isX4: boolean;400 readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;401 readonly isX5: boolean;402 readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;403 readonly isX6: boolean;404 readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;405 readonly isX7: boolean;406 readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;407 readonly isX8: boolean;408 readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;409 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';410 }411412 /** @name XcmV1Junction (47) */413 interface XcmV1Junction extends Enum {414 readonly isParachain: boolean;415 readonly asParachain: Compact<u32>;416 readonly isAccountId32: boolean;417 readonly asAccountId32: {418 readonly network: XcmV0JunctionNetworkId;419 readonly id: U8aFixed;420 } & Struct;421 readonly isAccountIndex64: boolean;422 readonly asAccountIndex64: {423 readonly network: XcmV0JunctionNetworkId;424 readonly index: Compact<u64>;425 } & Struct;426 readonly isAccountKey20: boolean;427 readonly asAccountKey20: {428 readonly network: XcmV0JunctionNetworkId;429 readonly key: U8aFixed;430 } & Struct;431 readonly isPalletInstance: boolean;432 readonly asPalletInstance: u8;433 readonly isGeneralIndex: boolean;434 readonly asGeneralIndex: Compact<u128>;435 readonly isGeneralKey: boolean;436 readonly asGeneralKey: Bytes;437 readonly isOnlyChild: boolean;438 readonly isPlurality: boolean;439 readonly asPlurality: {440 readonly id: XcmV0JunctionBodyId;441 readonly part: XcmV0JunctionBodyPart;442 } & Struct;443 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';444 }445446 /** @name XcmV0JunctionNetworkId (49) */447 interface XcmV0JunctionNetworkId extends Enum {448 readonly isAny: boolean;449 readonly isNamed: boolean;450 readonly asNamed: Bytes;451 readonly isPolkadot: boolean;452 readonly isKusama: boolean;453 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';454 }455456 /** @name XcmV0JunctionBodyId (53) */457 interface XcmV0JunctionBodyId extends Enum {458 readonly isUnit: boolean;459 readonly isNamed: boolean;460 readonly asNamed: Bytes;461 readonly isIndex: boolean;462 readonly asIndex: Compact<u32>;463 readonly isExecutive: boolean;464 readonly isTechnical: boolean;465 readonly isLegislative: boolean;466 readonly isJudicial: boolean;467 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';468 }469470 /** @name XcmV0JunctionBodyPart (54) */471 interface XcmV0JunctionBodyPart extends Enum {472 readonly isVoice: boolean;473 readonly isMembers: boolean;474 readonly asMembers: {475 readonly count: Compact<u32>;476 } & Struct;477 readonly isFraction: boolean;478 readonly asFraction: {479 readonly nom: Compact<u32>;480 readonly denom: Compact<u32>;481 } & Struct;482 readonly isAtLeastProportion: boolean;483 readonly asAtLeastProportion: {484 readonly nom: Compact<u32>;485 readonly denom: Compact<u32>;486 } & Struct;487 readonly isMoreThanProportion: boolean;488 readonly asMoreThanProportion: {489 readonly nom: Compact<u32>;490 readonly denom: Compact<u32>;491 } & Struct;492 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';493 }494495 /** @name XcmV1MultiassetFungibility (55) */496 interface XcmV1MultiassetFungibility extends Enum {497 readonly isFungible: boolean;498 readonly asFungible: Compact<u128>;499 readonly isNonFungible: boolean;500 readonly asNonFungible: XcmV1MultiassetAssetInstance;501 readonly type: 'Fungible' | 'NonFungible';502 }503504 /** @name XcmV1MultiassetAssetInstance (56) */505 interface XcmV1MultiassetAssetInstance extends Enum {506 readonly isUndefined: boolean;507 readonly isIndex: boolean;508 readonly asIndex: Compact<u128>;509 readonly isArray4: boolean;510 readonly asArray4: U8aFixed;511 readonly isArray8: boolean;512 readonly asArray8: U8aFixed;513 readonly isArray16: boolean;514 readonly asArray16: U8aFixed;515 readonly isArray32: boolean;516 readonly asArray32: U8aFixed;517 readonly isBlob: boolean;518 readonly asBlob: Bytes;519 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';520 }521522 /** @name OrmlTokensModuleEvent (59) */523 interface OrmlTokensModuleEvent extends Enum {524 readonly isEndowed: boolean;525 readonly asEndowed: {526 readonly currencyId: PalletForeignAssetsAssetIds;527 readonly who: AccountId32;528 readonly amount: u128;529 } & Struct;530 readonly isDustLost: boolean;531 readonly asDustLost: {532 readonly currencyId: PalletForeignAssetsAssetIds;533 readonly who: AccountId32;534 readonly amount: u128;535 } & Struct;536 readonly isTransfer: boolean;537 readonly asTransfer: {538 readonly currencyId: PalletForeignAssetsAssetIds;539 readonly from: AccountId32;540 readonly to: AccountId32;541 readonly amount: u128;542 } & Struct;543 readonly isReserved: boolean;544 readonly asReserved: {545 readonly currencyId: PalletForeignAssetsAssetIds;546 readonly who: AccountId32;547 readonly amount: u128;548 } & Struct;549 readonly isUnreserved: boolean;550 readonly asUnreserved: {551 readonly currencyId: PalletForeignAssetsAssetIds;552 readonly who: AccountId32;553 readonly amount: u128;554 } & Struct;555 readonly isReserveRepatriated: boolean;556 readonly asReserveRepatriated: {557 readonly currencyId: PalletForeignAssetsAssetIds;558 readonly from: AccountId32;559 readonly to: AccountId32;560 readonly amount: u128;561 readonly status: FrameSupportTokensMiscBalanceStatus;562 } & Struct;563 readonly isBalanceSet: boolean;564 readonly asBalanceSet: {565 readonly currencyId: PalletForeignAssetsAssetIds;566 readonly who: AccountId32;567 readonly free: u128;568 readonly reserved: u128;569 } & Struct;570 readonly isTotalIssuanceSet: boolean;571 readonly asTotalIssuanceSet: {572 readonly currencyId: PalletForeignAssetsAssetIds;573 readonly amount: u128;574 } & Struct;575 readonly isWithdrawn: boolean;576 readonly asWithdrawn: {577 readonly currencyId: PalletForeignAssetsAssetIds;578 readonly who: AccountId32;579 readonly amount: u128;580 } & Struct;581 readonly isSlashed: boolean;582 readonly asSlashed: {583 readonly currencyId: PalletForeignAssetsAssetIds;584 readonly who: AccountId32;585 readonly freeAmount: u128;586 readonly reservedAmount: u128;587 } & Struct;588 readonly isDeposited: boolean;589 readonly asDeposited: {590 readonly currencyId: PalletForeignAssetsAssetIds;591 readonly who: AccountId32;592 readonly amount: u128;593 } & Struct;594 readonly isLockSet: boolean;595 readonly asLockSet: {596 readonly lockId: U8aFixed;597 readonly currencyId: PalletForeignAssetsAssetIds;598 readonly who: AccountId32;599 readonly amount: u128;600 } & Struct;601 readonly isLockRemoved: boolean;602 readonly asLockRemoved: {603 readonly lockId: U8aFixed;604 readonly currencyId: PalletForeignAssetsAssetIds;605 readonly who: AccountId32;606 } & Struct;607 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';608 }609610 /** @name PalletForeignAssetsAssetIds (60) */611 interface PalletForeignAssetsAssetIds extends Enum {612 readonly isForeignAssetId: boolean;613 readonly asForeignAssetId: u32;614 readonly isNativeAssetId: boolean;615 readonly asNativeAssetId: PalletForeignAssetsNativeCurrency;616 readonly type: 'ForeignAssetId' | 'NativeAssetId';617 }618619 /** @name PalletForeignAssetsNativeCurrency (61) */620 interface PalletForeignAssetsNativeCurrency extends Enum {621 readonly isHere: boolean;622 readonly isParent: boolean;623 readonly type: 'Here' | 'Parent';624 }625626 /** @name CumulusPalletXcmpQueueEvent (62) */627 interface CumulusPalletXcmpQueueEvent extends Enum {628 readonly isSuccess: boolean;629 readonly asSuccess: {630 readonly messageHash: Option<H256>;631 readonly weight: Weight;632 } & Struct;633 readonly isFail: boolean;634 readonly asFail: {635 readonly messageHash: Option<H256>;636 readonly error: XcmV2TraitsError;637 readonly weight: Weight;638 } & Struct;639 readonly isBadVersion: boolean;640 readonly asBadVersion: {641 readonly messageHash: Option<H256>;642 } & Struct;643 readonly isBadFormat: boolean;644 readonly asBadFormat: {645 readonly messageHash: Option<H256>;646 } & Struct;647 readonly isUpwardMessageSent: boolean;648 readonly asUpwardMessageSent: {649 readonly messageHash: Option<H256>;650 } & Struct;651 readonly isXcmpMessageSent: boolean;652 readonly asXcmpMessageSent: {653 readonly messageHash: Option<H256>;654 } & Struct;655 readonly isOverweightEnqueued: boolean;656 readonly asOverweightEnqueued: {657 readonly sender: u32;658 readonly sentAt: u32;659 readonly index: u64;660 readonly required: Weight;661 } & Struct;662 readonly isOverweightServiced: boolean;663 readonly asOverweightServiced: {664 readonly index: u64;665 readonly used: Weight;666 } & Struct;667 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';668 }669670 /** @name XcmV2TraitsError (64) */671 interface XcmV2TraitsError extends Enum {672 readonly isOverflow: boolean;673 readonly isUnimplemented: boolean;674 readonly isUntrustedReserveLocation: boolean;675 readonly isUntrustedTeleportLocation: boolean;676 readonly isMultiLocationFull: boolean;677 readonly isMultiLocationNotInvertible: boolean;678 readonly isBadOrigin: boolean;679 readonly isInvalidLocation: boolean;680 readonly isAssetNotFound: boolean;681 readonly isFailedToTransactAsset: boolean;682 readonly isNotWithdrawable: boolean;683 readonly isLocationCannotHold: boolean;684 readonly isExceedsMaxMessageSize: boolean;685 readonly isDestinationUnsupported: boolean;686 readonly isTransport: boolean;687 readonly isUnroutable: boolean;688 readonly isUnknownClaim: boolean;689 readonly isFailedToDecode: boolean;690 readonly isMaxWeightInvalid: boolean;691 readonly isNotHoldingFees: boolean;692 readonly isTooExpensive: boolean;693 readonly isTrap: boolean;694 readonly asTrap: u64;695 readonly isUnhandledXcmVersion: boolean;696 readonly isWeightLimitReached: boolean;697 readonly asWeightLimitReached: u64;698 readonly isBarrier: boolean;699 readonly isWeightNotComputable: boolean;700 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';701 }702703 /** @name PalletXcmEvent (66) */704 interface PalletXcmEvent extends Enum {705 readonly isAttempted: boolean;706 readonly asAttempted: XcmV2TraitsOutcome;707 readonly isSent: boolean;708 readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;709 readonly isUnexpectedResponse: boolean;710 readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;711 readonly isResponseReady: boolean;712 readonly asResponseReady: ITuple<[u64, XcmV2Response]>;713 readonly isNotified: boolean;714 readonly asNotified: ITuple<[u64, u8, u8]>;715 readonly isNotifyOverweight: boolean;716 readonly asNotifyOverweight: ITuple<[u64, u8, u8, Weight, Weight]>;717 readonly isNotifyDispatchError: boolean;718 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;719 readonly isNotifyDecodeFailed: boolean;720 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;721 readonly isInvalidResponder: boolean;722 readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;723 readonly isInvalidResponderVersion: boolean;724 readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;725 readonly isResponseTaken: boolean;726 readonly asResponseTaken: u64;727 readonly isAssetsTrapped: boolean;728 readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;729 readonly isVersionChangeNotified: boolean;730 readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;731 readonly isSupportedVersionChanged: boolean;732 readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;733 readonly isNotifyTargetSendFail: boolean;734 readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;735 readonly isNotifyTargetMigrationFail: boolean;736 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;737 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';738 }739740 /** @name XcmV2TraitsOutcome (67) */741 interface XcmV2TraitsOutcome extends Enum {742 readonly isComplete: boolean;743 readonly asComplete: u64;744 readonly isIncomplete: boolean;745 readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;746 readonly isError: boolean;747 readonly asError: XcmV2TraitsError;748 readonly type: 'Complete' | 'Incomplete' | 'Error';749 }750751 /** @name XcmV2Xcm (68) */752 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}753754 /** @name XcmV2Instruction (70) */755 interface XcmV2Instruction extends Enum {756 readonly isWithdrawAsset: boolean;757 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;758 readonly isReserveAssetDeposited: boolean;759 readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;760 readonly isReceiveTeleportedAsset: boolean;761 readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;762 readonly isQueryResponse: boolean;763 readonly asQueryResponse: {764 readonly queryId: Compact<u64>;765 readonly response: XcmV2Response;766 readonly maxWeight: Compact<u64>;767 } & Struct;768 readonly isTransferAsset: boolean;769 readonly asTransferAsset: {770 readonly assets: XcmV1MultiassetMultiAssets;771 readonly beneficiary: XcmV1MultiLocation;772 } & Struct;773 readonly isTransferReserveAsset: boolean;774 readonly asTransferReserveAsset: {775 readonly assets: XcmV1MultiassetMultiAssets;776 readonly dest: XcmV1MultiLocation;777 readonly xcm: XcmV2Xcm;778 } & Struct;779 readonly isTransact: boolean;780 readonly asTransact: {781 readonly originType: XcmV0OriginKind;782 readonly requireWeightAtMost: Compact<u64>;783 readonly call: XcmDoubleEncoded;784 } & Struct;785 readonly isHrmpNewChannelOpenRequest: boolean;786 readonly asHrmpNewChannelOpenRequest: {787 readonly sender: Compact<u32>;788 readonly maxMessageSize: Compact<u32>;789 readonly maxCapacity: Compact<u32>;790 } & Struct;791 readonly isHrmpChannelAccepted: boolean;792 readonly asHrmpChannelAccepted: {793 readonly recipient: Compact<u32>;794 } & Struct;795 readonly isHrmpChannelClosing: boolean;796 readonly asHrmpChannelClosing: {797 readonly initiator: Compact<u32>;798 readonly sender: Compact<u32>;799 readonly recipient: Compact<u32>;800 } & Struct;801 readonly isClearOrigin: boolean;802 readonly isDescendOrigin: boolean;803 readonly asDescendOrigin: XcmV1MultilocationJunctions;804 readonly isReportError: boolean;805 readonly asReportError: {806 readonly queryId: Compact<u64>;807 readonly dest: XcmV1MultiLocation;808 readonly maxResponseWeight: Compact<u64>;809 } & Struct;810 readonly isDepositAsset: boolean;811 readonly asDepositAsset: {812 readonly assets: XcmV1MultiassetMultiAssetFilter;813 readonly maxAssets: Compact<u32>;814 readonly beneficiary: XcmV1MultiLocation;815 } & Struct;816 readonly isDepositReserveAsset: boolean;817 readonly asDepositReserveAsset: {818 readonly assets: XcmV1MultiassetMultiAssetFilter;819 readonly maxAssets: Compact<u32>;820 readonly dest: XcmV1MultiLocation;821 readonly xcm: XcmV2Xcm;822 } & Struct;823 readonly isExchangeAsset: boolean;824 readonly asExchangeAsset: {825 readonly give: XcmV1MultiassetMultiAssetFilter;826 readonly receive: XcmV1MultiassetMultiAssets;827 } & Struct;828 readonly isInitiateReserveWithdraw: boolean;829 readonly asInitiateReserveWithdraw: {830 readonly assets: XcmV1MultiassetMultiAssetFilter;831 readonly reserve: XcmV1MultiLocation;832 readonly xcm: XcmV2Xcm;833 } & Struct;834 readonly isInitiateTeleport: boolean;835 readonly asInitiateTeleport: {836 readonly assets: XcmV1MultiassetMultiAssetFilter;837 readonly dest: XcmV1MultiLocation;838 readonly xcm: XcmV2Xcm;839 } & Struct;840 readonly isQueryHolding: boolean;841 readonly asQueryHolding: {842 readonly queryId: Compact<u64>;843 readonly dest: XcmV1MultiLocation;844 readonly assets: XcmV1MultiassetMultiAssetFilter;845 readonly maxResponseWeight: Compact<u64>;846 } & Struct;847 readonly isBuyExecution: boolean;848 readonly asBuyExecution: {849 readonly fees: XcmV1MultiAsset;850 readonly weightLimit: XcmV2WeightLimit;851 } & Struct;852 readonly isRefundSurplus: boolean;853 readonly isSetErrorHandler: boolean;854 readonly asSetErrorHandler: XcmV2Xcm;855 readonly isSetAppendix: boolean;856 readonly asSetAppendix: XcmV2Xcm;857 readonly isClearError: boolean;858 readonly isClaimAsset: boolean;859 readonly asClaimAsset: {860 readonly assets: XcmV1MultiassetMultiAssets;861 readonly ticket: XcmV1MultiLocation;862 } & Struct;863 readonly isTrap: boolean;864 readonly asTrap: Compact<u64>;865 readonly isSubscribeVersion: boolean;866 readonly asSubscribeVersion: {867 readonly queryId: Compact<u64>;868 readonly maxResponseWeight: Compact<u64>;869 } & Struct;870 readonly isUnsubscribeVersion: boolean;871 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';872 }873874 /** @name XcmV2Response (71) */875 interface XcmV2Response extends Enum {876 readonly isNull: boolean;877 readonly isAssets: boolean;878 readonly asAssets: XcmV1MultiassetMultiAssets;879 readonly isExecutionResult: boolean;880 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;881 readonly isVersion: boolean;882 readonly asVersion: u32;883 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';884 }885886 /** @name XcmV0OriginKind (74) */887 interface XcmV0OriginKind extends Enum {888 readonly isNative: boolean;889 readonly isSovereignAccount: boolean;890 readonly isSuperuser: boolean;891 readonly isXcm: boolean;892 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';893 }894895 /** @name XcmDoubleEncoded (75) */896 interface XcmDoubleEncoded extends Struct {897 readonly encoded: Bytes;898 }899900 /** @name XcmV1MultiassetMultiAssetFilter (76) */901 interface XcmV1MultiassetMultiAssetFilter extends Enum {902 readonly isDefinite: boolean;903 readonly asDefinite: XcmV1MultiassetMultiAssets;904 readonly isWild: boolean;905 readonly asWild: XcmV1MultiassetWildMultiAsset;906 readonly type: 'Definite' | 'Wild';907 }908909 /** @name XcmV1MultiassetWildMultiAsset (77) */910 interface XcmV1MultiassetWildMultiAsset extends Enum {911 readonly isAll: boolean;912 readonly isAllOf: boolean;913 readonly asAllOf: {914 readonly id: XcmV1MultiassetAssetId;915 readonly fun: XcmV1MultiassetWildFungibility;916 } & Struct;917 readonly type: 'All' | 'AllOf';918 }919920 /** @name XcmV1MultiassetWildFungibility (78) */921 interface XcmV1MultiassetWildFungibility extends Enum {922 readonly isFungible: boolean;923 readonly isNonFungible: boolean;924 readonly type: 'Fungible' | 'NonFungible';925 }926927 /** @name XcmV2WeightLimit (79) */928 interface XcmV2WeightLimit extends Enum {929 readonly isUnlimited: boolean;930 readonly isLimited: boolean;931 readonly asLimited: Compact<u64>;932 readonly type: 'Unlimited' | 'Limited';933 }934935 /** @name XcmVersionedMultiAssets (81) */936 interface XcmVersionedMultiAssets extends Enum {937 readonly isV0: boolean;938 readonly asV0: Vec<XcmV0MultiAsset>;939 readonly isV1: boolean;940 readonly asV1: XcmV1MultiassetMultiAssets;941 readonly type: 'V0' | 'V1';942 }943944 /** @name XcmV0MultiAsset (83) */945 interface XcmV0MultiAsset extends Enum {946 readonly isNone: boolean;947 readonly isAll: boolean;948 readonly isAllFungible: boolean;949 readonly isAllNonFungible: boolean;950 readonly isAllAbstractFungible: boolean;951 readonly asAllAbstractFungible: {952 readonly id: Bytes;953 } & Struct;954 readonly isAllAbstractNonFungible: boolean;955 readonly asAllAbstractNonFungible: {956 readonly class: Bytes;957 } & Struct;958 readonly isAllConcreteFungible: boolean;959 readonly asAllConcreteFungible: {960 readonly id: XcmV0MultiLocation;961 } & Struct;962 readonly isAllConcreteNonFungible: boolean;963 readonly asAllConcreteNonFungible: {964 readonly class: XcmV0MultiLocation;965 } & Struct;966 readonly isAbstractFungible: boolean;967 readonly asAbstractFungible: {968 readonly id: Bytes;969 readonly amount: Compact<u128>;970 } & Struct;971 readonly isAbstractNonFungible: boolean;972 readonly asAbstractNonFungible: {973 readonly class: Bytes;974 readonly instance: XcmV1MultiassetAssetInstance;975 } & Struct;976 readonly isConcreteFungible: boolean;977 readonly asConcreteFungible: {978 readonly id: XcmV0MultiLocation;979 readonly amount: Compact<u128>;980 } & Struct;981 readonly isConcreteNonFungible: boolean;982 readonly asConcreteNonFungible: {983 readonly class: XcmV0MultiLocation;984 readonly instance: XcmV1MultiassetAssetInstance;985 } & Struct;986 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';987 }988989 /** @name XcmV0MultiLocation (84) */990 interface XcmV0MultiLocation extends Enum {991 readonly isNull: boolean;992 readonly isX1: boolean;993 readonly asX1: XcmV0Junction;994 readonly isX2: boolean;995 readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;996 readonly isX3: boolean;997 readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;998 readonly isX4: boolean;999 readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1000 readonly isX5: boolean;1001 readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1002 readonly isX6: boolean;1003 readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1004 readonly isX7: boolean;1005 readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1006 readonly isX8: boolean;1007 readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1008 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1009 }10101011 /** @name XcmV0Junction (85) */1012 interface XcmV0Junction extends Enum {1013 readonly isParent: boolean;1014 readonly isParachain: boolean;1015 readonly asParachain: Compact<u32>;1016 readonly isAccountId32: boolean;1017 readonly asAccountId32: {1018 readonly network: XcmV0JunctionNetworkId;1019 readonly id: U8aFixed;1020 } & Struct;1021 readonly isAccountIndex64: boolean;1022 readonly asAccountIndex64: {1023 readonly network: XcmV0JunctionNetworkId;1024 readonly index: Compact<u64>;1025 } & Struct;1026 readonly isAccountKey20: boolean;1027 readonly asAccountKey20: {1028 readonly network: XcmV0JunctionNetworkId;1029 readonly key: U8aFixed;1030 } & Struct;1031 readonly isPalletInstance: boolean;1032 readonly asPalletInstance: u8;1033 readonly isGeneralIndex: boolean;1034 readonly asGeneralIndex: Compact<u128>;1035 readonly isGeneralKey: boolean;1036 readonly asGeneralKey: Bytes;1037 readonly isOnlyChild: boolean;1038 readonly isPlurality: boolean;1039 readonly asPlurality: {1040 readonly id: XcmV0JunctionBodyId;1041 readonly part: XcmV0JunctionBodyPart;1042 } & Struct;1043 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1044 }10451046 /** @name XcmVersionedMultiLocation (86) */1047 interface XcmVersionedMultiLocation extends Enum {1048 readonly isV0: boolean;1049 readonly asV0: XcmV0MultiLocation;1050 readonly isV1: boolean;1051 readonly asV1: XcmV1MultiLocation;1052 readonly type: 'V0' | 'V1';1053 }10541055 /** @name CumulusPalletXcmEvent (87) */1056 interface CumulusPalletXcmEvent extends Enum {1057 readonly isInvalidFormat: boolean;1058 readonly asInvalidFormat: U8aFixed;1059 readonly isUnsupportedVersion: boolean;1060 readonly asUnsupportedVersion: U8aFixed;1061 readonly isExecutedDownward: boolean;1062 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;1063 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1064 }10651066 /** @name CumulusPalletDmpQueueEvent (88) */1067 interface CumulusPalletDmpQueueEvent extends Enum {1068 readonly isInvalidFormat: boolean;1069 readonly asInvalidFormat: {1070 readonly messageId: U8aFixed;1071 } & Struct;1072 readonly isUnsupportedVersion: boolean;1073 readonly asUnsupportedVersion: {1074 readonly messageId: U8aFixed;1075 } & Struct;1076 readonly isExecutedDownward: boolean;1077 readonly asExecutedDownward: {1078 readonly messageId: U8aFixed;1079 readonly outcome: XcmV2TraitsOutcome;1080 } & Struct;1081 readonly isWeightExhausted: boolean;1082 readonly asWeightExhausted: {1083 readonly messageId: U8aFixed;1084 readonly remainingWeight: Weight;1085 readonly requiredWeight: Weight;1086 } & Struct;1087 readonly isOverweightEnqueued: boolean;1088 readonly asOverweightEnqueued: {1089 readonly messageId: U8aFixed;1090 readonly overweightIndex: u64;1091 readonly requiredWeight: Weight;1092 } & Struct;1093 readonly isOverweightServiced: boolean;1094 readonly asOverweightServiced: {1095 readonly overweightIndex: u64;1096 readonly weightUsed: Weight;1097 } & Struct;1098 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';1099 }11001101 /** @name PalletUniqueRawEvent (89) */1102 interface PalletUniqueRawEvent extends Enum {1103 readonly isCollectionSponsorRemoved: boolean;1104 readonly asCollectionSponsorRemoved: u32;1105 readonly isCollectionAdminAdded: boolean;1106 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1107 readonly isCollectionOwnedChanged: boolean;1108 readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;1109 readonly isCollectionSponsorSet: boolean;1110 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1111 readonly isSponsorshipConfirmed: boolean;1112 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1113 readonly isCollectionAdminRemoved: boolean;1114 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1115 readonly isAllowListAddressRemoved: boolean;1116 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1117 readonly isAllowListAddressAdded: boolean;1118 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1119 readonly isCollectionLimitSet: boolean;1120 readonly asCollectionLimitSet: u32;1121 readonly isCollectionPermissionSet: boolean;1122 readonly asCollectionPermissionSet: u32;1123 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';1124 }11251126 /** @name PalletEvmAccountBasicCrossAccountIdRepr (90) */1127 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1128 readonly isSubstrate: boolean;1129 readonly asSubstrate: AccountId32;1130 readonly isEthereum: boolean;1131 readonly asEthereum: H160;1132 readonly type: 'Substrate' | 'Ethereum';1133 }11341135 /** @name PalletUniqueSchedulerV2Event (93) */1136 interface PalletUniqueSchedulerV2Event extends Enum {1137 readonly isScheduled: boolean;1138 readonly asScheduled: {1139 readonly when: u32;1140 readonly index: u32;1141 } & Struct;1142 readonly isCanceled: boolean;1143 readonly asCanceled: {1144 readonly when: u32;1145 readonly index: u32;1146 } & Struct;1147 readonly isDispatched: boolean;1148 readonly asDispatched: {1149 readonly task: ITuple<[u32, u32]>;1150 readonly id: Option<U8aFixed>;1151 readonly result: Result<Null, SpRuntimeDispatchError>;1152 } & Struct;1153 readonly isPriorityChanged: boolean;1154 readonly asPriorityChanged: {1155 readonly task: ITuple<[u32, u32]>;1156 readonly priority: u8;1157 } & Struct;1158 readonly isCallUnavailable: boolean;1159 readonly asCallUnavailable: {1160 readonly task: ITuple<[u32, u32]>;1161 readonly id: Option<U8aFixed>;1162 } & Struct;1163 readonly isPermanentlyOverweight: boolean;1164 readonly asPermanentlyOverweight: {1165 readonly task: ITuple<[u32, u32]>;1166 readonly id: Option<U8aFixed>;1167 } & Struct;1168 readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'PriorityChanged' | 'CallUnavailable' | 'PermanentlyOverweight';1169 }11701171 /** @name PalletCommonEvent (96) */1172 interface PalletCommonEvent extends Enum {1173 readonly isCollectionCreated: boolean;1174 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1175 readonly isCollectionDestroyed: boolean;1176 readonly asCollectionDestroyed: u32;1177 readonly isItemCreated: boolean;1178 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1179 readonly isItemDestroyed: boolean;1180 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1181 readonly isTransfer: boolean;1182 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1183 readonly isApproved: boolean;1184 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1185 readonly isApprovedForAll: boolean;1186 readonly asApprovedForAll: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1187 readonly isCollectionPropertySet: boolean;1188 readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;1189 readonly isCollectionPropertyDeleted: boolean;1190 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;1191 readonly isTokenPropertySet: boolean;1192 readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;1193 readonly isTokenPropertyDeleted: boolean;1194 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;1195 readonly isPropertyPermissionSet: boolean;1196 readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;1197 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';1198 }11991200 /** @name PalletStructureEvent (100) */1201 interface PalletStructureEvent extends Enum {1202 readonly isExecuted: boolean;1203 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1204 readonly type: 'Executed';1205 }12061207 /** @name PalletRmrkCoreEvent (101) */1208 interface PalletRmrkCoreEvent extends Enum {1209 readonly isCollectionCreated: boolean;1210 readonly asCollectionCreated: {1211 readonly issuer: AccountId32;1212 readonly collectionId: u32;1213 } & Struct;1214 readonly isCollectionDestroyed: boolean;1215 readonly asCollectionDestroyed: {1216 readonly issuer: AccountId32;1217 readonly collectionId: u32;1218 } & Struct;1219 readonly isIssuerChanged: boolean;1220 readonly asIssuerChanged: {1221 readonly oldIssuer: AccountId32;1222 readonly newIssuer: AccountId32;1223 readonly collectionId: u32;1224 } & Struct;1225 readonly isCollectionLocked: boolean;1226 readonly asCollectionLocked: {1227 readonly issuer: AccountId32;1228 readonly collectionId: u32;1229 } & Struct;1230 readonly isNftMinted: boolean;1231 readonly asNftMinted: {1232 readonly owner: AccountId32;1233 readonly collectionId: u32;1234 readonly nftId: u32;1235 } & Struct;1236 readonly isNftBurned: boolean;1237 readonly asNftBurned: {1238 readonly owner: AccountId32;1239 readonly nftId: u32;1240 } & Struct;1241 readonly isNftSent: boolean;1242 readonly asNftSent: {1243 readonly sender: AccountId32;1244 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1245 readonly collectionId: u32;1246 readonly nftId: u32;1247 readonly approvalRequired: bool;1248 } & Struct;1249 readonly isNftAccepted: boolean;1250 readonly asNftAccepted: {1251 readonly sender: AccountId32;1252 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1253 readonly collectionId: u32;1254 readonly nftId: u32;1255 } & Struct;1256 readonly isNftRejected: boolean;1257 readonly asNftRejected: {1258 readonly sender: AccountId32;1259 readonly collectionId: u32;1260 readonly nftId: u32;1261 } & Struct;1262 readonly isPropertySet: boolean;1263 readonly asPropertySet: {1264 readonly collectionId: u32;1265 readonly maybeNftId: Option<u32>;1266 readonly key: Bytes;1267 readonly value: Bytes;1268 } & Struct;1269 readonly isResourceAdded: boolean;1270 readonly asResourceAdded: {1271 readonly nftId: u32;1272 readonly resourceId: u32;1273 } & Struct;1274 readonly isResourceRemoval: boolean;1275 readonly asResourceRemoval: {1276 readonly nftId: u32;1277 readonly resourceId: u32;1278 } & Struct;1279 readonly isResourceAccepted: boolean;1280 readonly asResourceAccepted: {1281 readonly nftId: u32;1282 readonly resourceId: u32;1283 } & Struct;1284 readonly isResourceRemovalAccepted: boolean;1285 readonly asResourceRemovalAccepted: {1286 readonly nftId: u32;1287 readonly resourceId: u32;1288 } & Struct;1289 readonly isPrioritySet: boolean;1290 readonly asPrioritySet: {1291 readonly collectionId: u32;1292 readonly nftId: u32;1293 } & Struct;1294 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';1295 }12961297 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (102) */1298 interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1299 readonly isAccountId: boolean;1300 readonly asAccountId: AccountId32;1301 readonly isCollectionAndNftTuple: boolean;1302 readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;1303 readonly type: 'AccountId' | 'CollectionAndNftTuple';1304 }13051306 /** @name PalletRmrkEquipEvent (106) */1307 interface PalletRmrkEquipEvent extends Enum {1308 readonly isBaseCreated: boolean;1309 readonly asBaseCreated: {1310 readonly issuer: AccountId32;1311 readonly baseId: u32;1312 } & Struct;1313 readonly isEquippablesUpdated: boolean;1314 readonly asEquippablesUpdated: {1315 readonly baseId: u32;1316 readonly slotId: u32;1317 } & Struct;1318 readonly type: 'BaseCreated' | 'EquippablesUpdated';1319 }13201321 /** @name PalletAppPromotionEvent (107) */1322 interface PalletAppPromotionEvent extends Enum {1323 readonly isStakingRecalculation: boolean;1324 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1325 readonly isStake: boolean;1326 readonly asStake: ITuple<[AccountId32, u128]>;1327 readonly isUnstake: boolean;1328 readonly asUnstake: ITuple<[AccountId32, u128]>;1329 readonly isSetAdmin: boolean;1330 readonly asSetAdmin: AccountId32;1331 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1332 }13331334 /** @name PalletForeignAssetsModuleEvent (108) */1335 interface PalletForeignAssetsModuleEvent extends Enum {1336 readonly isForeignAssetRegistered: boolean;1337 readonly asForeignAssetRegistered: {1338 readonly assetId: u32;1339 readonly assetAddress: XcmV1MultiLocation;1340 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1341 } & Struct;1342 readonly isForeignAssetUpdated: boolean;1343 readonly asForeignAssetUpdated: {1344 readonly assetId: u32;1345 readonly assetAddress: XcmV1MultiLocation;1346 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1347 } & Struct;1348 readonly isAssetRegistered: boolean;1349 readonly asAssetRegistered: {1350 readonly assetId: PalletForeignAssetsAssetIds;1351 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1352 } & Struct;1353 readonly isAssetUpdated: boolean;1354 readonly asAssetUpdated: {1355 readonly assetId: PalletForeignAssetsAssetIds;1356 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1357 } & Struct;1358 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1359 }13601361 /** @name PalletForeignAssetsModuleAssetMetadata (109) */1362 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1363 readonly name: Bytes;1364 readonly symbol: Bytes;1365 readonly decimals: u8;1366 readonly minimalBalance: u128;1367 }13681369 /** @name PalletEvmEvent (110) */1370 interface PalletEvmEvent extends Enum {1371 readonly isLog: boolean;1372 readonly asLog: {1373 readonly log: EthereumLog;1374 } & Struct;1375 readonly isCreated: boolean;1376 readonly asCreated: {1377 readonly address: H160;1378 } & Struct;1379 readonly isCreatedFailed: boolean;1380 readonly asCreatedFailed: {1381 readonly address: H160;1382 } & Struct;1383 readonly isExecuted: boolean;1384 readonly asExecuted: {1385 readonly address: H160;1386 } & Struct;1387 readonly isExecutedFailed: boolean;1388 readonly asExecutedFailed: {1389 readonly address: H160;1390 } & Struct;1391 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1392 }13931394 /** @name EthereumLog (111) */1395 interface EthereumLog extends Struct {1396 readonly address: H160;1397 readonly topics: Vec<H256>;1398 readonly data: Bytes;1399 }14001401 /** @name PalletEthereumEvent (113) */1402 interface PalletEthereumEvent extends Enum {1403 readonly isExecuted: boolean;1404 readonly asExecuted: {1405 readonly from: H160;1406 readonly to: H160;1407 readonly transactionHash: H256;1408 readonly exitReason: EvmCoreErrorExitReason;1409 } & Struct;1410 readonly type: 'Executed';1411 }14121413 /** @name EvmCoreErrorExitReason (114) */1414 interface EvmCoreErrorExitReason extends Enum {1415 readonly isSucceed: boolean;1416 readonly asSucceed: EvmCoreErrorExitSucceed;1417 readonly isError: boolean;1418 readonly asError: EvmCoreErrorExitError;1419 readonly isRevert: boolean;1420 readonly asRevert: EvmCoreErrorExitRevert;1421 readonly isFatal: boolean;1422 readonly asFatal: EvmCoreErrorExitFatal;1423 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1424 }14251426 /** @name EvmCoreErrorExitSucceed (115) */1427 interface EvmCoreErrorExitSucceed extends Enum {1428 readonly isStopped: boolean;1429 readonly isReturned: boolean;1430 readonly isSuicided: boolean;1431 readonly type: 'Stopped' | 'Returned' | 'Suicided';1432 }14331434 /** @name EvmCoreErrorExitError (116) */1435 interface EvmCoreErrorExitError extends Enum {1436 readonly isStackUnderflow: boolean;1437 readonly isStackOverflow: boolean;1438 readonly isInvalidJump: boolean;1439 readonly isInvalidRange: boolean;1440 readonly isDesignatedInvalid: boolean;1441 readonly isCallTooDeep: boolean;1442 readonly isCreateCollision: boolean;1443 readonly isCreateContractLimit: boolean;1444 readonly isOutOfOffset: boolean;1445 readonly isOutOfGas: boolean;1446 readonly isOutOfFund: boolean;1447 readonly isPcUnderflow: boolean;1448 readonly isCreateEmpty: boolean;1449 readonly isOther: boolean;1450 readonly asOther: Text;1451 readonly isInvalidCode: boolean;1452 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1453 }14541455 /** @name EvmCoreErrorExitRevert (119) */1456 interface EvmCoreErrorExitRevert extends Enum {1457 readonly isReverted: boolean;1458 readonly type: 'Reverted';1459 }14601461 /** @name EvmCoreErrorExitFatal (120) */1462 interface EvmCoreErrorExitFatal extends Enum {1463 readonly isNotSupported: boolean;1464 readonly isUnhandledInterrupt: boolean;1465 readonly isCallErrorAsFatal: boolean;1466 readonly asCallErrorAsFatal: EvmCoreErrorExitError;1467 readonly isOther: boolean;1468 readonly asOther: Text;1469 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1470 }14711472 /** @name PalletEvmContractHelpersEvent (121) */1473 interface PalletEvmContractHelpersEvent extends Enum {1474 readonly isContractSponsorSet: boolean;1475 readonly asContractSponsorSet: ITuple<[H160, AccountId32]>;1476 readonly isContractSponsorshipConfirmed: boolean;1477 readonly asContractSponsorshipConfirmed: ITuple<[H160, AccountId32]>;1478 readonly isContractSponsorRemoved: boolean;1479 readonly asContractSponsorRemoved: H160;1480 readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved';1481 }14821483 /** @name PalletEvmMigrationEvent (122) */1484 interface PalletEvmMigrationEvent extends Enum {1485 readonly isTestEvent: boolean;1486 readonly type: 'TestEvent';1487 }14881489 /** @name PalletMaintenanceEvent (123) */1490 interface PalletMaintenanceEvent extends Enum {1491 readonly isMaintenanceEnabled: boolean;1492 readonly isMaintenanceDisabled: boolean;1493 readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled';1494 }14951496 /** @name PalletTestUtilsEvent (124) */1497 interface PalletTestUtilsEvent extends Enum {1498 readonly isValueIsSet: boolean;1499 readonly isShouldRollback: boolean;1500 readonly isBatchCompleted: boolean;1501 readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted';1502 }15031504 /** @name FrameSystemPhase (125) */1505 interface FrameSystemPhase extends Enum {1506 readonly isApplyExtrinsic: boolean;1507 readonly asApplyExtrinsic: u32;1508 readonly isFinalization: boolean;1509 readonly isInitialization: boolean;1510 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1511 }15121513 /** @name FrameSystemLastRuntimeUpgradeInfo (127) */1514 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1515 readonly specVersion: Compact<u32>;1516 readonly specName: Text;1517 }15181519 /** @name FrameSystemCall (128) */1520 interface FrameSystemCall extends Enum {1521 readonly isFillBlock: boolean;1522 readonly asFillBlock: {1523 readonly ratio: Perbill;1524 } & Struct;1525 readonly isRemark: boolean;1526 readonly asRemark: {1527 readonly remark: Bytes;1528 } & Struct;1529 readonly isSetHeapPages: boolean;1530 readonly asSetHeapPages: {1531 readonly pages: u64;1532 } & Struct;1533 readonly isSetCode: boolean;1534 readonly asSetCode: {1535 readonly code: Bytes;1536 } & Struct;1537 readonly isSetCodeWithoutChecks: boolean;1538 readonly asSetCodeWithoutChecks: {1539 readonly code: Bytes;1540 } & Struct;1541 readonly isSetStorage: boolean;1542 readonly asSetStorage: {1543 readonly items: Vec<ITuple<[Bytes, Bytes]>>;1544 } & Struct;1545 readonly isKillStorage: boolean;1546 readonly asKillStorage: {1547 readonly keys_: Vec<Bytes>;1548 } & Struct;1549 readonly isKillPrefix: boolean;1550 readonly asKillPrefix: {1551 readonly prefix: Bytes;1552 readonly subkeys: u32;1553 } & Struct;1554 readonly isRemarkWithEvent: boolean;1555 readonly asRemarkWithEvent: {1556 readonly remark: Bytes;1557 } & Struct;1558 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1559 }15601561 /** @name FrameSystemLimitsBlockWeights (133) */1562 interface FrameSystemLimitsBlockWeights extends Struct {1563 readonly baseBlock: Weight;1564 readonly maxBlock: Weight;1565 readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;1566 }15671568 /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (134) */1569 interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {1570 readonly normal: FrameSystemLimitsWeightsPerClass;1571 readonly operational: FrameSystemLimitsWeightsPerClass;1572 readonly mandatory: FrameSystemLimitsWeightsPerClass;1573 }15741575 /** @name FrameSystemLimitsWeightsPerClass (135) */1576 interface FrameSystemLimitsWeightsPerClass extends Struct {1577 readonly baseExtrinsic: Weight;1578 readonly maxExtrinsic: Option<Weight>;1579 readonly maxTotal: Option<Weight>;1580 readonly reserved: Option<Weight>;1581 }15821583 /** @name FrameSystemLimitsBlockLength (137) */1584 interface FrameSystemLimitsBlockLength extends Struct {1585 readonly max: FrameSupportDispatchPerDispatchClassU32;1586 }15871588 /** @name FrameSupportDispatchPerDispatchClassU32 (138) */1589 interface FrameSupportDispatchPerDispatchClassU32 extends Struct {1590 readonly normal: u32;1591 readonly operational: u32;1592 readonly mandatory: u32;1593 }15941595 /** @name SpWeightsRuntimeDbWeight (139) */1596 interface SpWeightsRuntimeDbWeight extends Struct {1597 readonly read: u64;1598 readonly write: u64;1599 }16001601 /** @name SpVersionRuntimeVersion (140) */1602 interface SpVersionRuntimeVersion extends Struct {1603 readonly specName: Text;1604 readonly implName: Text;1605 readonly authoringVersion: u32;1606 readonly specVersion: u32;1607 readonly implVersion: u32;1608 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1609 readonly transactionVersion: u32;1610 readonly stateVersion: u8;1611 }16121613 /** @name FrameSystemError (145) */1614 interface FrameSystemError extends Enum {1615 readonly isInvalidSpecName: boolean;1616 readonly isSpecVersionNeedsToIncrease: boolean;1617 readonly isFailedToExtractRuntimeVersion: boolean;1618 readonly isNonDefaultComposite: boolean;1619 readonly isNonZeroRefCount: boolean;1620 readonly isCallFiltered: boolean;1621 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1622 }16231624 /** @name PolkadotPrimitivesV2PersistedValidationData (146) */1625 interface PolkadotPrimitivesV2PersistedValidationData extends Struct {1626 readonly parentHead: Bytes;1627 readonly relayParentNumber: u32;1628 readonly relayParentStorageRoot: H256;1629 readonly maxPovSize: u32;1630 }16311632 /** @name PolkadotPrimitivesV2UpgradeRestriction (149) */1633 interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {1634 readonly isPresent: boolean;1635 readonly type: 'Present';1636 }16371638 /** @name SpTrieStorageProof (150) */1639 interface SpTrieStorageProof extends Struct {1640 readonly trieNodes: BTreeSet<Bytes>;1641 }16421643 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (152) */1644 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {1645 readonly dmqMqcHead: H256;1646 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;1647 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1648 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1649 }16501651 /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (155) */1652 interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {1653 readonly maxCapacity: u32;1654 readonly maxTotalSize: u32;1655 readonly maxMessageSize: u32;1656 readonly msgCount: u32;1657 readonly totalSize: u32;1658 readonly mqcHead: Option<H256>;1659 }16601661 /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (156) */1662 interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {1663 readonly maxCodeSize: u32;1664 readonly maxHeadDataSize: u32;1665 readonly maxUpwardQueueCount: u32;1666 readonly maxUpwardQueueSize: u32;1667 readonly maxUpwardMessageSize: u32;1668 readonly maxUpwardMessageNumPerCandidate: u32;1669 readonly hrmpMaxMessageNumPerCandidate: u32;1670 readonly validationUpgradeCooldown: u32;1671 readonly validationUpgradeDelay: u32;1672 }16731674 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (162) */1675 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1676 readonly recipient: u32;1677 readonly data: Bytes;1678 }16791680 /** @name CumulusPalletParachainSystemCall (163) */1681 interface CumulusPalletParachainSystemCall extends Enum {1682 readonly isSetValidationData: boolean;1683 readonly asSetValidationData: {1684 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;1685 } & Struct;1686 readonly isSudoSendUpwardMessage: boolean;1687 readonly asSudoSendUpwardMessage: {1688 readonly message: Bytes;1689 } & Struct;1690 readonly isAuthorizeUpgrade: boolean;1691 readonly asAuthorizeUpgrade: {1692 readonly codeHash: H256;1693 } & Struct;1694 readonly isEnactAuthorizedUpgrade: boolean;1695 readonly asEnactAuthorizedUpgrade: {1696 readonly code: Bytes;1697 } & Struct;1698 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';1699 }17001701 /** @name CumulusPrimitivesParachainInherentParachainInherentData (164) */1702 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {1703 readonly validationData: PolkadotPrimitivesV2PersistedValidationData;1704 readonly relayChainState: SpTrieStorageProof;1705 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;1706 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;1707 }17081709 /** @name PolkadotCorePrimitivesInboundDownwardMessage (166) */1710 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1711 readonly sentAt: u32;1712 readonly msg: Bytes;1713 }17141715 /** @name PolkadotCorePrimitivesInboundHrmpMessage (169) */1716 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1717 readonly sentAt: u32;1718 readonly data: Bytes;1719 }17201721 /** @name CumulusPalletParachainSystemError (172) */1722 interface CumulusPalletParachainSystemError extends Enum {1723 readonly isOverlappingUpgrades: boolean;1724 readonly isProhibitedByPolkadot: boolean;1725 readonly isTooBig: boolean;1726 readonly isValidationDataNotAvailable: boolean;1727 readonly isHostConfigurationNotAvailable: boolean;1728 readonly isNotScheduled: boolean;1729 readonly isNothingAuthorized: boolean;1730 readonly isUnauthorized: boolean;1731 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1732 }17331734 /** @name PalletBalancesBalanceLock (174) */1735 interface PalletBalancesBalanceLock extends Struct {1736 readonly id: U8aFixed;1737 readonly amount: u128;1738 readonly reasons: PalletBalancesReasons;1739 }17401741 /** @name PalletBalancesReasons (175) */1742 interface PalletBalancesReasons extends Enum {1743 readonly isFee: boolean;1744 readonly isMisc: boolean;1745 readonly isAll: boolean;1746 readonly type: 'Fee' | 'Misc' | 'All';1747 }17481749 /** @name PalletBalancesReserveData (178) */1750 interface PalletBalancesReserveData extends Struct {1751 readonly id: U8aFixed;1752 readonly amount: u128;1753 }17541755 /** @name PalletBalancesReleases (180) */1756 interface PalletBalancesReleases extends Enum {1757 readonly isV100: boolean;1758 readonly isV200: boolean;1759 readonly type: 'V100' | 'V200';1760 }17611762 /** @name PalletBalancesCall (181) */1763 interface PalletBalancesCall extends Enum {1764 readonly isTransfer: boolean;1765 readonly asTransfer: {1766 readonly dest: MultiAddress;1767 readonly value: Compact<u128>;1768 } & Struct;1769 readonly isSetBalance: boolean;1770 readonly asSetBalance: {1771 readonly who: MultiAddress;1772 readonly newFree: Compact<u128>;1773 readonly newReserved: Compact<u128>;1774 } & Struct;1775 readonly isForceTransfer: boolean;1776 readonly asForceTransfer: {1777 readonly source: MultiAddress;1778 readonly dest: MultiAddress;1779 readonly value: Compact<u128>;1780 } & Struct;1781 readonly isTransferKeepAlive: boolean;1782 readonly asTransferKeepAlive: {1783 readonly dest: MultiAddress;1784 readonly value: Compact<u128>;1785 } & Struct;1786 readonly isTransferAll: boolean;1787 readonly asTransferAll: {1788 readonly dest: MultiAddress;1789 readonly keepAlive: bool;1790 } & Struct;1791 readonly isForceUnreserve: boolean;1792 readonly asForceUnreserve: {1793 readonly who: MultiAddress;1794 readonly amount: u128;1795 } & Struct;1796 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1797 }17981799 /** @name PalletBalancesError (184) */1800 interface PalletBalancesError extends Enum {1801 readonly isVestingBalance: boolean;1802 readonly isLiquidityRestrictions: boolean;1803 readonly isInsufficientBalance: boolean;1804 readonly isExistentialDeposit: boolean;1805 readonly isKeepAlive: boolean;1806 readonly isExistingVestingSchedule: boolean;1807 readonly isDeadAccount: boolean;1808 readonly isTooManyReserves: boolean;1809 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1810 }18111812 /** @name PalletTimestampCall (186) */1813 interface PalletTimestampCall extends Enum {1814 readonly isSet: boolean;1815 readonly asSet: {1816 readonly now: Compact<u64>;1817 } & Struct;1818 readonly type: 'Set';1819 }18201821 /** @name PalletTransactionPaymentReleases (188) */1822 interface PalletTransactionPaymentReleases extends Enum {1823 readonly isV1Ancient: boolean;1824 readonly isV2: boolean;1825 readonly type: 'V1Ancient' | 'V2';1826 }18271828 /** @name PalletTreasuryProposal (189) */1829 interface PalletTreasuryProposal extends Struct {1830 readonly proposer: AccountId32;1831 readonly value: u128;1832 readonly beneficiary: AccountId32;1833 readonly bond: u128;1834 }18351836 /** @name PalletTreasuryCall (192) */1837 interface PalletTreasuryCall extends Enum {1838 readonly isProposeSpend: boolean;1839 readonly asProposeSpend: {1840 readonly value: Compact<u128>;1841 readonly beneficiary: MultiAddress;1842 } & Struct;1843 readonly isRejectProposal: boolean;1844 readonly asRejectProposal: {1845 readonly proposalId: Compact<u32>;1846 } & Struct;1847 readonly isApproveProposal: boolean;1848 readonly asApproveProposal: {1849 readonly proposalId: Compact<u32>;1850 } & Struct;1851 readonly isSpend: boolean;1852 readonly asSpend: {1853 readonly amount: Compact<u128>;1854 readonly beneficiary: MultiAddress;1855 } & Struct;1856 readonly isRemoveApproval: boolean;1857 readonly asRemoveApproval: {1858 readonly proposalId: Compact<u32>;1859 } & Struct;1860 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1861 }18621863 /** @name FrameSupportPalletId (195) */1864 interface FrameSupportPalletId extends U8aFixed {}18651866 /** @name PalletTreasuryError (196) */1867 interface PalletTreasuryError extends Enum {1868 readonly isInsufficientProposersBalance: boolean;1869 readonly isInvalidIndex: boolean;1870 readonly isTooManyApprovals: boolean;1871 readonly isInsufficientPermission: boolean;1872 readonly isProposalNotApproved: boolean;1873 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1874 }18751876 /** @name PalletSudoCall (197) */1877 interface PalletSudoCall extends Enum {1878 readonly isSudo: boolean;1879 readonly asSudo: {1880 readonly call: Call;1881 } & Struct;1882 readonly isSudoUncheckedWeight: boolean;1883 readonly asSudoUncheckedWeight: {1884 readonly call: Call;1885 readonly weight: Weight;1886 } & Struct;1887 readonly isSetKey: boolean;1888 readonly asSetKey: {1889 readonly new_: MultiAddress;1890 } & Struct;1891 readonly isSudoAs: boolean;1892 readonly asSudoAs: {1893 readonly who: MultiAddress;1894 readonly call: Call;1895 } & Struct;1896 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1897 }18981899 /** @name OrmlVestingModuleCall (199) */1900 interface OrmlVestingModuleCall extends Enum {1901 readonly isClaim: boolean;1902 readonly isVestedTransfer: boolean;1903 readonly asVestedTransfer: {1904 readonly dest: MultiAddress;1905 readonly schedule: OrmlVestingVestingSchedule;1906 } & Struct;1907 readonly isUpdateVestingSchedules: boolean;1908 readonly asUpdateVestingSchedules: {1909 readonly who: MultiAddress;1910 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;1911 } & Struct;1912 readonly isClaimFor: boolean;1913 readonly asClaimFor: {1914 readonly dest: MultiAddress;1915 } & Struct;1916 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';1917 }19181919 /** @name OrmlXtokensModuleCall (201) */1920 interface OrmlXtokensModuleCall extends Enum {1921 readonly isTransfer: boolean;1922 readonly asTransfer: {1923 readonly currencyId: PalletForeignAssetsAssetIds;1924 readonly amount: u128;1925 readonly dest: XcmVersionedMultiLocation;1926 readonly destWeight: u64;1927 } & Struct;1928 readonly isTransferMultiasset: boolean;1929 readonly asTransferMultiasset: {1930 readonly asset: XcmVersionedMultiAsset;1931 readonly dest: XcmVersionedMultiLocation;1932 readonly destWeight: u64;1933 } & Struct;1934 readonly isTransferWithFee: boolean;1935 readonly asTransferWithFee: {1936 readonly currencyId: PalletForeignAssetsAssetIds;1937 readonly amount: u128;1938 readonly fee: u128;1939 readonly dest: XcmVersionedMultiLocation;1940 readonly destWeight: u64;1941 } & Struct;1942 readonly isTransferMultiassetWithFee: boolean;1943 readonly asTransferMultiassetWithFee: {1944 readonly asset: XcmVersionedMultiAsset;1945 readonly fee: XcmVersionedMultiAsset;1946 readonly dest: XcmVersionedMultiLocation;1947 readonly destWeight: u64;1948 } & Struct;1949 readonly isTransferMulticurrencies: boolean;1950 readonly asTransferMulticurrencies: {1951 readonly currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>;1952 readonly feeItem: u32;1953 readonly dest: XcmVersionedMultiLocation;1954 readonly destWeight: u64;1955 } & Struct;1956 readonly isTransferMultiassets: boolean;1957 readonly asTransferMultiassets: {1958 readonly assets: XcmVersionedMultiAssets;1959 readonly feeItem: u32;1960 readonly dest: XcmVersionedMultiLocation;1961 readonly destWeight: u64;1962 } & Struct;1963 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';1964 }19651966 /** @name XcmVersionedMultiAsset (202) */1967 interface XcmVersionedMultiAsset extends Enum {1968 readonly isV0: boolean;1969 readonly asV0: XcmV0MultiAsset;1970 readonly isV1: boolean;1971 readonly asV1: XcmV1MultiAsset;1972 readonly type: 'V0' | 'V1';1973 }19741975 /** @name OrmlTokensModuleCall (205) */1976 interface OrmlTokensModuleCall extends Enum {1977 readonly isTransfer: boolean;1978 readonly asTransfer: {1979 readonly dest: MultiAddress;1980 readonly currencyId: PalletForeignAssetsAssetIds;1981 readonly amount: Compact<u128>;1982 } & Struct;1983 readonly isTransferAll: boolean;1984 readonly asTransferAll: {1985 readonly dest: MultiAddress;1986 readonly currencyId: PalletForeignAssetsAssetIds;1987 readonly keepAlive: bool;1988 } & Struct;1989 readonly isTransferKeepAlive: boolean;1990 readonly asTransferKeepAlive: {1991 readonly dest: MultiAddress;1992 readonly currencyId: PalletForeignAssetsAssetIds;1993 readonly amount: Compact<u128>;1994 } & Struct;1995 readonly isForceTransfer: boolean;1996 readonly asForceTransfer: {1997 readonly source: MultiAddress;1998 readonly dest: MultiAddress;1999 readonly currencyId: PalletForeignAssetsAssetIds;2000 readonly amount: Compact<u128>;2001 } & Struct;2002 readonly isSetBalance: boolean;2003 readonly asSetBalance: {2004 readonly who: MultiAddress;2005 readonly currencyId: PalletForeignAssetsAssetIds;2006 readonly newFree: Compact<u128>;2007 readonly newReserved: Compact<u128>;2008 } & Struct;2009 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2010 }20112012 /** @name CumulusPalletXcmpQueueCall (206) */2013 interface CumulusPalletXcmpQueueCall extends Enum {2014 readonly isServiceOverweight: boolean;2015 readonly asServiceOverweight: {2016 readonly index: u64;2017 readonly weightLimit: Weight;2018 } & Struct;2019 readonly isSuspendXcmExecution: boolean;2020 readonly isResumeXcmExecution: boolean;2021 readonly isUpdateSuspendThreshold: boolean;2022 readonly asUpdateSuspendThreshold: {2023 readonly new_: u32;2024 } & Struct;2025 readonly isUpdateDropThreshold: boolean;2026 readonly asUpdateDropThreshold: {2027 readonly new_: u32;2028 } & Struct;2029 readonly isUpdateResumeThreshold: boolean;2030 readonly asUpdateResumeThreshold: {2031 readonly new_: u32;2032 } & Struct;2033 readonly isUpdateThresholdWeight: boolean;2034 readonly asUpdateThresholdWeight: {2035 readonly new_: Weight;2036 } & Struct;2037 readonly isUpdateWeightRestrictDecay: boolean;2038 readonly asUpdateWeightRestrictDecay: {2039 readonly new_: Weight;2040 } & Struct;2041 readonly isUpdateXcmpMaxIndividualWeight: boolean;2042 readonly asUpdateXcmpMaxIndividualWeight: {2043 readonly new_: Weight;2044 } & Struct;2045 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2046 }20472048 /** @name PalletXcmCall (207) */2049 interface PalletXcmCall extends Enum {2050 readonly isSend: boolean;2051 readonly asSend: {2052 readonly dest: XcmVersionedMultiLocation;2053 readonly message: XcmVersionedXcm;2054 } & Struct;2055 readonly isTeleportAssets: boolean;2056 readonly asTeleportAssets: {2057 readonly dest: XcmVersionedMultiLocation;2058 readonly beneficiary: XcmVersionedMultiLocation;2059 readonly assets: XcmVersionedMultiAssets;2060 readonly feeAssetItem: u32;2061 } & Struct;2062 readonly isReserveTransferAssets: boolean;2063 readonly asReserveTransferAssets: {2064 readonly dest: XcmVersionedMultiLocation;2065 readonly beneficiary: XcmVersionedMultiLocation;2066 readonly assets: XcmVersionedMultiAssets;2067 readonly feeAssetItem: u32;2068 } & Struct;2069 readonly isExecute: boolean;2070 readonly asExecute: {2071 readonly message: XcmVersionedXcm;2072 readonly maxWeight: Weight;2073 } & Struct;2074 readonly isForceXcmVersion: boolean;2075 readonly asForceXcmVersion: {2076 readonly location: XcmV1MultiLocation;2077 readonly xcmVersion: u32;2078 } & Struct;2079 readonly isForceDefaultXcmVersion: boolean;2080 readonly asForceDefaultXcmVersion: {2081 readonly maybeXcmVersion: Option<u32>;2082 } & Struct;2083 readonly isForceSubscribeVersionNotify: boolean;2084 readonly asForceSubscribeVersionNotify: {2085 readonly location: XcmVersionedMultiLocation;2086 } & Struct;2087 readonly isForceUnsubscribeVersionNotify: boolean;2088 readonly asForceUnsubscribeVersionNotify: {2089 readonly location: XcmVersionedMultiLocation;2090 } & Struct;2091 readonly isLimitedReserveTransferAssets: boolean;2092 readonly asLimitedReserveTransferAssets: {2093 readonly dest: XcmVersionedMultiLocation;2094 readonly beneficiary: XcmVersionedMultiLocation;2095 readonly assets: XcmVersionedMultiAssets;2096 readonly feeAssetItem: u32;2097 readonly weightLimit: XcmV2WeightLimit;2098 } & Struct;2099 readonly isLimitedTeleportAssets: boolean;2100 readonly asLimitedTeleportAssets: {2101 readonly dest: XcmVersionedMultiLocation;2102 readonly beneficiary: XcmVersionedMultiLocation;2103 readonly assets: XcmVersionedMultiAssets;2104 readonly feeAssetItem: u32;2105 readonly weightLimit: XcmV2WeightLimit;2106 } & Struct;2107 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';2108 }21092110 /** @name XcmVersionedXcm (208) */2111 interface XcmVersionedXcm extends Enum {2112 readonly isV0: boolean;2113 readonly asV0: XcmV0Xcm;2114 readonly isV1: boolean;2115 readonly asV1: XcmV1Xcm;2116 readonly isV2: boolean;2117 readonly asV2: XcmV2Xcm;2118 readonly type: 'V0' | 'V1' | 'V2';2119 }21202121 /** @name XcmV0Xcm (209) */2122 interface XcmV0Xcm extends Enum {2123 readonly isWithdrawAsset: boolean;2124 readonly asWithdrawAsset: {2125 readonly assets: Vec<XcmV0MultiAsset>;2126 readonly effects: Vec<XcmV0Order>;2127 } & Struct;2128 readonly isReserveAssetDeposit: boolean;2129 readonly asReserveAssetDeposit: {2130 readonly assets: Vec<XcmV0MultiAsset>;2131 readonly effects: Vec<XcmV0Order>;2132 } & Struct;2133 readonly isTeleportAsset: boolean;2134 readonly asTeleportAsset: {2135 readonly assets: Vec<XcmV0MultiAsset>;2136 readonly effects: Vec<XcmV0Order>;2137 } & Struct;2138 readonly isQueryResponse: boolean;2139 readonly asQueryResponse: {2140 readonly queryId: Compact<u64>;2141 readonly response: XcmV0Response;2142 } & Struct;2143 readonly isTransferAsset: boolean;2144 readonly asTransferAsset: {2145 readonly assets: Vec<XcmV0MultiAsset>;2146 readonly dest: XcmV0MultiLocation;2147 } & Struct;2148 readonly isTransferReserveAsset: boolean;2149 readonly asTransferReserveAsset: {2150 readonly assets: Vec<XcmV0MultiAsset>;2151 readonly dest: XcmV0MultiLocation;2152 readonly effects: Vec<XcmV0Order>;2153 } & Struct;2154 readonly isTransact: boolean;2155 readonly asTransact: {2156 readonly originType: XcmV0OriginKind;2157 readonly requireWeightAtMost: u64;2158 readonly call: XcmDoubleEncoded;2159 } & Struct;2160 readonly isHrmpNewChannelOpenRequest: boolean;2161 readonly asHrmpNewChannelOpenRequest: {2162 readonly sender: Compact<u32>;2163 readonly maxMessageSize: Compact<u32>;2164 readonly maxCapacity: Compact<u32>;2165 } & Struct;2166 readonly isHrmpChannelAccepted: boolean;2167 readonly asHrmpChannelAccepted: {2168 readonly recipient: Compact<u32>;2169 } & Struct;2170 readonly isHrmpChannelClosing: boolean;2171 readonly asHrmpChannelClosing: {2172 readonly initiator: Compact<u32>;2173 readonly sender: Compact<u32>;2174 readonly recipient: Compact<u32>;2175 } & Struct;2176 readonly isRelayedFrom: boolean;2177 readonly asRelayedFrom: {2178 readonly who: XcmV0MultiLocation;2179 readonly message: XcmV0Xcm;2180 } & Struct;2181 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2182 }21832184 /** @name XcmV0Order (211) */2185 interface XcmV0Order extends Enum {2186 readonly isNull: boolean;2187 readonly isDepositAsset: boolean;2188 readonly asDepositAsset: {2189 readonly assets: Vec<XcmV0MultiAsset>;2190 readonly dest: XcmV0MultiLocation;2191 } & Struct;2192 readonly isDepositReserveAsset: boolean;2193 readonly asDepositReserveAsset: {2194 readonly assets: Vec<XcmV0MultiAsset>;2195 readonly dest: XcmV0MultiLocation;2196 readonly effects: Vec<XcmV0Order>;2197 } & Struct;2198 readonly isExchangeAsset: boolean;2199 readonly asExchangeAsset: {2200 readonly give: Vec<XcmV0MultiAsset>;2201 readonly receive: Vec<XcmV0MultiAsset>;2202 } & Struct;2203 readonly isInitiateReserveWithdraw: boolean;2204 readonly asInitiateReserveWithdraw: {2205 readonly assets: Vec<XcmV0MultiAsset>;2206 readonly reserve: XcmV0MultiLocation;2207 readonly effects: Vec<XcmV0Order>;2208 } & Struct;2209 readonly isInitiateTeleport: boolean;2210 readonly asInitiateTeleport: {2211 readonly assets: Vec<XcmV0MultiAsset>;2212 readonly dest: XcmV0MultiLocation;2213 readonly effects: Vec<XcmV0Order>;2214 } & Struct;2215 readonly isQueryHolding: boolean;2216 readonly asQueryHolding: {2217 readonly queryId: Compact<u64>;2218 readonly dest: XcmV0MultiLocation;2219 readonly assets: Vec<XcmV0MultiAsset>;2220 } & Struct;2221 readonly isBuyExecution: boolean;2222 readonly asBuyExecution: {2223 readonly fees: XcmV0MultiAsset;2224 readonly weight: u64;2225 readonly debt: u64;2226 readonly haltOnError: bool;2227 readonly xcm: Vec<XcmV0Xcm>;2228 } & Struct;2229 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2230 }22312232 /** @name XcmV0Response (213) */2233 interface XcmV0Response extends Enum {2234 readonly isAssets: boolean;2235 readonly asAssets: Vec<XcmV0MultiAsset>;2236 readonly type: 'Assets';2237 }22382239 /** @name XcmV1Xcm (214) */2240 interface XcmV1Xcm extends Enum {2241 readonly isWithdrawAsset: boolean;2242 readonly asWithdrawAsset: {2243 readonly assets: XcmV1MultiassetMultiAssets;2244 readonly effects: Vec<XcmV1Order>;2245 } & Struct;2246 readonly isReserveAssetDeposited: boolean;2247 readonly asReserveAssetDeposited: {2248 readonly assets: XcmV1MultiassetMultiAssets;2249 readonly effects: Vec<XcmV1Order>;2250 } & Struct;2251 readonly isReceiveTeleportedAsset: boolean;2252 readonly asReceiveTeleportedAsset: {2253 readonly assets: XcmV1MultiassetMultiAssets;2254 readonly effects: Vec<XcmV1Order>;2255 } & Struct;2256 readonly isQueryResponse: boolean;2257 readonly asQueryResponse: {2258 readonly queryId: Compact<u64>;2259 readonly response: XcmV1Response;2260 } & Struct;2261 readonly isTransferAsset: boolean;2262 readonly asTransferAsset: {2263 readonly assets: XcmV1MultiassetMultiAssets;2264 readonly beneficiary: XcmV1MultiLocation;2265 } & Struct;2266 readonly isTransferReserveAsset: boolean;2267 readonly asTransferReserveAsset: {2268 readonly assets: XcmV1MultiassetMultiAssets;2269 readonly dest: XcmV1MultiLocation;2270 readonly effects: Vec<XcmV1Order>;2271 } & Struct;2272 readonly isTransact: boolean;2273 readonly asTransact: {2274 readonly originType: XcmV0OriginKind;2275 readonly requireWeightAtMost: u64;2276 readonly call: XcmDoubleEncoded;2277 } & Struct;2278 readonly isHrmpNewChannelOpenRequest: boolean;2279 readonly asHrmpNewChannelOpenRequest: {2280 readonly sender: Compact<u32>;2281 readonly maxMessageSize: Compact<u32>;2282 readonly maxCapacity: Compact<u32>;2283 } & Struct;2284 readonly isHrmpChannelAccepted: boolean;2285 readonly asHrmpChannelAccepted: {2286 readonly recipient: Compact<u32>;2287 } & Struct;2288 readonly isHrmpChannelClosing: boolean;2289 readonly asHrmpChannelClosing: {2290 readonly initiator: Compact<u32>;2291 readonly sender: Compact<u32>;2292 readonly recipient: Compact<u32>;2293 } & Struct;2294 readonly isRelayedFrom: boolean;2295 readonly asRelayedFrom: {2296 readonly who: XcmV1MultilocationJunctions;2297 readonly message: XcmV1Xcm;2298 } & Struct;2299 readonly isSubscribeVersion: boolean;2300 readonly asSubscribeVersion: {2301 readonly queryId: Compact<u64>;2302 readonly maxResponseWeight: Compact<u64>;2303 } & Struct;2304 readonly isUnsubscribeVersion: boolean;2305 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2306 }23072308 /** @name XcmV1Order (216) */2309 interface XcmV1Order extends Enum {2310 readonly isNoop: boolean;2311 readonly isDepositAsset: boolean;2312 readonly asDepositAsset: {2313 readonly assets: XcmV1MultiassetMultiAssetFilter;2314 readonly maxAssets: u32;2315 readonly beneficiary: XcmV1MultiLocation;2316 } & Struct;2317 readonly isDepositReserveAsset: boolean;2318 readonly asDepositReserveAsset: {2319 readonly assets: XcmV1MultiassetMultiAssetFilter;2320 readonly maxAssets: u32;2321 readonly dest: XcmV1MultiLocation;2322 readonly effects: Vec<XcmV1Order>;2323 } & Struct;2324 readonly isExchangeAsset: boolean;2325 readonly asExchangeAsset: {2326 readonly give: XcmV1MultiassetMultiAssetFilter;2327 readonly receive: XcmV1MultiassetMultiAssets;2328 } & Struct;2329 readonly isInitiateReserveWithdraw: boolean;2330 readonly asInitiateReserveWithdraw: {2331 readonly assets: XcmV1MultiassetMultiAssetFilter;2332 readonly reserve: XcmV1MultiLocation;2333 readonly effects: Vec<XcmV1Order>;2334 } & Struct;2335 readonly isInitiateTeleport: boolean;2336 readonly asInitiateTeleport: {2337 readonly assets: XcmV1MultiassetMultiAssetFilter;2338 readonly dest: XcmV1MultiLocation;2339 readonly effects: Vec<XcmV1Order>;2340 } & Struct;2341 readonly isQueryHolding: boolean;2342 readonly asQueryHolding: {2343 readonly queryId: Compact<u64>;2344 readonly dest: XcmV1MultiLocation;2345 readonly assets: XcmV1MultiassetMultiAssetFilter;2346 } & Struct;2347 readonly isBuyExecution: boolean;2348 readonly asBuyExecution: {2349 readonly fees: XcmV1MultiAsset;2350 readonly weight: u64;2351 readonly debt: u64;2352 readonly haltOnError: bool;2353 readonly instructions: Vec<XcmV1Xcm>;2354 } & Struct;2355 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2356 }23572358 /** @name XcmV1Response (218) */2359 interface XcmV1Response extends Enum {2360 readonly isAssets: boolean;2361 readonly asAssets: XcmV1MultiassetMultiAssets;2362 readonly isVersion: boolean;2363 readonly asVersion: u32;2364 readonly type: 'Assets' | 'Version';2365 }23662367 /** @name CumulusPalletXcmCall (232) */2368 type CumulusPalletXcmCall = Null;23692370 /** @name CumulusPalletDmpQueueCall (233) */2371 interface CumulusPalletDmpQueueCall extends Enum {2372 readonly isServiceOverweight: boolean;2373 readonly asServiceOverweight: {2374 readonly index: u64;2375 readonly weightLimit: Weight;2376 } & Struct;2377 readonly type: 'ServiceOverweight';2378 }23792380 /** @name PalletInflationCall (234) */2381 interface PalletInflationCall extends Enum {2382 readonly isStartInflation: boolean;2383 readonly asStartInflation: {2384 readonly inflationStartRelayBlock: u32;2385 } & Struct;2386 readonly type: 'StartInflation';2387 }23882389 /** @name PalletUniqueCall (235) */2390 interface PalletUniqueCall extends Enum {2391 readonly isCreateCollection: boolean;2392 readonly asCreateCollection: {2393 readonly collectionName: Vec<u16>;2394 readonly collectionDescription: Vec<u16>;2395 readonly tokenPrefix: Bytes;2396 readonly mode: UpDataStructsCollectionMode;2397 } & Struct;2398 readonly isCreateCollectionEx: boolean;2399 readonly asCreateCollectionEx: {2400 readonly data: UpDataStructsCreateCollectionData;2401 } & Struct;2402 readonly isDestroyCollection: boolean;2403 readonly asDestroyCollection: {2404 readonly collectionId: u32;2405 } & Struct;2406 readonly isAddToAllowList: boolean;2407 readonly asAddToAllowList: {2408 readonly collectionId: u32;2409 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2410 } & Struct;2411 readonly isRemoveFromAllowList: boolean;2412 readonly asRemoveFromAllowList: {2413 readonly collectionId: u32;2414 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2415 } & Struct;2416 readonly isChangeCollectionOwner: boolean;2417 readonly asChangeCollectionOwner: {2418 readonly collectionId: u32;2419 readonly newOwner: AccountId32;2420 } & Struct;2421 readonly isAddCollectionAdmin: boolean;2422 readonly asAddCollectionAdmin: {2423 readonly collectionId: u32;2424 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;2425 } & Struct;2426 readonly isRemoveCollectionAdmin: boolean;2427 readonly asRemoveCollectionAdmin: {2428 readonly collectionId: u32;2429 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;2430 } & Struct;2431 readonly isSetCollectionSponsor: boolean;2432 readonly asSetCollectionSponsor: {2433 readonly collectionId: u32;2434 readonly newSponsor: AccountId32;2435 } & Struct;2436 readonly isConfirmSponsorship: boolean;2437 readonly asConfirmSponsorship: {2438 readonly collectionId: u32;2439 } & Struct;2440 readonly isRemoveCollectionSponsor: boolean;2441 readonly asRemoveCollectionSponsor: {2442 readonly collectionId: u32;2443 } & Struct;2444 readonly isCreateItem: boolean;2445 readonly asCreateItem: {2446 readonly collectionId: u32;2447 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2448 readonly data: UpDataStructsCreateItemData;2449 } & Struct;2450 readonly isCreateMultipleItems: boolean;2451 readonly asCreateMultipleItems: {2452 readonly collectionId: u32;2453 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2454 readonly itemsData: Vec<UpDataStructsCreateItemData>;2455 } & Struct;2456 readonly isSetCollectionProperties: boolean;2457 readonly asSetCollectionProperties: {2458 readonly collectionId: u32;2459 readonly properties: Vec<UpDataStructsProperty>;2460 } & Struct;2461 readonly isDeleteCollectionProperties: boolean;2462 readonly asDeleteCollectionProperties: {2463 readonly collectionId: u32;2464 readonly propertyKeys: Vec<Bytes>;2465 } & Struct;2466 readonly isSetTokenProperties: boolean;2467 readonly asSetTokenProperties: {2468 readonly collectionId: u32;2469 readonly tokenId: u32;2470 readonly properties: Vec<UpDataStructsProperty>;2471 } & Struct;2472 readonly isDeleteTokenProperties: boolean;2473 readonly asDeleteTokenProperties: {2474 readonly collectionId: u32;2475 readonly tokenId: u32;2476 readonly propertyKeys: Vec<Bytes>;2477 } & Struct;2478 readonly isSetTokenPropertyPermissions: boolean;2479 readonly asSetTokenPropertyPermissions: {2480 readonly collectionId: u32;2481 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2482 } & Struct;2483 readonly isCreateMultipleItemsEx: boolean;2484 readonly asCreateMultipleItemsEx: {2485 readonly collectionId: u32;2486 readonly data: UpDataStructsCreateItemExData;2487 } & Struct;2488 readonly isSetTransfersEnabledFlag: boolean;2489 readonly asSetTransfersEnabledFlag: {2490 readonly collectionId: u32;2491 readonly value: bool;2492 } & Struct;2493 readonly isBurnItem: boolean;2494 readonly asBurnItem: {2495 readonly collectionId: u32;2496 readonly itemId: u32;2497 readonly value: u128;2498 } & Struct;2499 readonly isBurnFrom: boolean;2500 readonly asBurnFrom: {2501 readonly collectionId: u32;2502 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2503 readonly itemId: u32;2504 readonly value: u128;2505 } & Struct;2506 readonly isTransfer: boolean;2507 readonly asTransfer: {2508 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2509 readonly collectionId: u32;2510 readonly itemId: u32;2511 readonly value: u128;2512 } & Struct;2513 readonly isApprove: boolean;2514 readonly asApprove: {2515 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;2516 readonly collectionId: u32;2517 readonly itemId: u32;2518 readonly amount: u128;2519 } & Struct;2520 readonly isTransferFrom: boolean;2521 readonly asTransferFrom: {2522 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2523 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2524 readonly collectionId: u32;2525 readonly itemId: u32;2526 readonly value: u128;2527 } & Struct;2528 readonly isSetCollectionLimits: boolean;2529 readonly asSetCollectionLimits: {2530 readonly collectionId: u32;2531 readonly newLimit: UpDataStructsCollectionLimits;2532 } & Struct;2533 readonly isSetCollectionPermissions: boolean;2534 readonly asSetCollectionPermissions: {2535 readonly collectionId: u32;2536 readonly newPermission: UpDataStructsCollectionPermissions;2537 } & Struct;2538 readonly isRepartition: boolean;2539 readonly asRepartition: {2540 readonly collectionId: u32;2541 readonly tokenId: u32;2542 readonly amount: u128;2543 } & Struct;2544 readonly isSetApprovalForAll: boolean;2545 readonly asSetApprovalForAll: {2546 readonly collectionId: u32;2547 readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;2548 readonly approve: bool;2549 } & Struct;2550 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetApprovalForAll';2551 }25522553 /** @name UpDataStructsCollectionMode (240) */2554 interface UpDataStructsCollectionMode extends Enum {2555 readonly isNft: boolean;2556 readonly isFungible: boolean;2557 readonly asFungible: u8;2558 readonly isReFungible: boolean;2559 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2560 }25612562 /** @name UpDataStructsCreateCollectionData (241) */2563 interface UpDataStructsCreateCollectionData extends Struct {2564 readonly mode: UpDataStructsCollectionMode;2565 readonly access: Option<UpDataStructsAccessMode>;2566 readonly name: Vec<u16>;2567 readonly description: Vec<u16>;2568 readonly tokenPrefix: Bytes;2569 readonly pendingSponsor: Option<AccountId32>;2570 readonly limits: Option<UpDataStructsCollectionLimits>;2571 readonly permissions: Option<UpDataStructsCollectionPermissions>;2572 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2573 readonly properties: Vec<UpDataStructsProperty>;2574 }25752576 /** @name UpDataStructsAccessMode (243) */2577 interface UpDataStructsAccessMode extends Enum {2578 readonly isNormal: boolean;2579 readonly isAllowList: boolean;2580 readonly type: 'Normal' | 'AllowList';2581 }25822583 /** @name UpDataStructsCollectionLimits (245) */2584 interface UpDataStructsCollectionLimits extends Struct {2585 readonly accountTokenOwnershipLimit: Option<u32>;2586 readonly sponsoredDataSize: Option<u32>;2587 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;2588 readonly tokenLimit: Option<u32>;2589 readonly sponsorTransferTimeout: Option<u32>;2590 readonly sponsorApproveTimeout: Option<u32>;2591 readonly ownerCanTransfer: Option<bool>;2592 readonly ownerCanDestroy: Option<bool>;2593 readonly transfersEnabled: Option<bool>;2594 }25952596 /** @name UpDataStructsSponsoringRateLimit (247) */2597 interface UpDataStructsSponsoringRateLimit extends Enum {2598 readonly isSponsoringDisabled: boolean;2599 readonly isBlocks: boolean;2600 readonly asBlocks: u32;2601 readonly type: 'SponsoringDisabled' | 'Blocks';2602 }26032604 /** @name UpDataStructsCollectionPermissions (250) */2605 interface UpDataStructsCollectionPermissions extends Struct {2606 readonly access: Option<UpDataStructsAccessMode>;2607 readonly mintMode: Option<bool>;2608 readonly nesting: Option<UpDataStructsNestingPermissions>;2609 }26102611 /** @name UpDataStructsNestingPermissions (252) */2612 interface UpDataStructsNestingPermissions extends Struct {2613 readonly tokenOwner: bool;2614 readonly collectionAdmin: bool;2615 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2616 }26172618 /** @name UpDataStructsOwnerRestrictedSet (254) */2619 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}26202621 /** @name UpDataStructsPropertyKeyPermission (259) */2622 interface UpDataStructsPropertyKeyPermission extends Struct {2623 readonly key: Bytes;2624 readonly permission: UpDataStructsPropertyPermission;2625 }26262627 /** @name UpDataStructsPropertyPermission (260) */2628 interface UpDataStructsPropertyPermission extends Struct {2629 readonly mutable: bool;2630 readonly collectionAdmin: bool;2631 readonly tokenOwner: bool;2632 }26332634 /** @name UpDataStructsProperty (263) */2635 interface UpDataStructsProperty extends Struct {2636 readonly key: Bytes;2637 readonly value: Bytes;2638 }26392640 /** @name UpDataStructsCreateItemData (266) */2641 interface UpDataStructsCreateItemData extends Enum {2642 readonly isNft: boolean;2643 readonly asNft: UpDataStructsCreateNftData;2644 readonly isFungible: boolean;2645 readonly asFungible: UpDataStructsCreateFungibleData;2646 readonly isReFungible: boolean;2647 readonly asReFungible: UpDataStructsCreateReFungibleData;2648 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2649 }26502651 /** @name UpDataStructsCreateNftData (267) */2652 interface UpDataStructsCreateNftData extends Struct {2653 readonly properties: Vec<UpDataStructsProperty>;2654 }26552656 /** @name UpDataStructsCreateFungibleData (268) */2657 interface UpDataStructsCreateFungibleData extends Struct {2658 readonly value: u128;2659 }26602661 /** @name UpDataStructsCreateReFungibleData (269) */2662 interface UpDataStructsCreateReFungibleData extends Struct {2663 readonly pieces: u128;2664 readonly properties: Vec<UpDataStructsProperty>;2665 }26662667 /** @name UpDataStructsCreateItemExData (272) */2668 interface UpDataStructsCreateItemExData extends Enum {2669 readonly isNft: boolean;2670 readonly asNft: Vec<UpDataStructsCreateNftExData>;2671 readonly isFungible: boolean;2672 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2673 readonly isRefungibleMultipleItems: boolean;2674 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExSingleOwner>;2675 readonly isRefungibleMultipleOwners: boolean;2676 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;2677 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2678 }26792680 /** @name UpDataStructsCreateNftExData (274) */2681 interface UpDataStructsCreateNftExData extends Struct {2682 readonly properties: Vec<UpDataStructsProperty>;2683 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2684 }26852686 /** @name UpDataStructsCreateRefungibleExSingleOwner (281) */2687 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2688 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2689 readonly pieces: u128;2690 readonly properties: Vec<UpDataStructsProperty>;2691 }26922693 /** @name UpDataStructsCreateRefungibleExMultipleOwners (283) */2694 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2695 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2696 readonly properties: Vec<UpDataStructsProperty>;2697 }26982699 /** @name PalletUniqueSchedulerV2Call (284) */2700 interface PalletUniqueSchedulerV2Call extends Enum {2701 readonly isSchedule: boolean;2702 readonly asSchedule: {2703 readonly when: u32;2704 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2705 readonly priority: Option<u8>;2706 readonly call: Call;2707 } & Struct;2708 readonly isCancel: boolean;2709 readonly asCancel: {2710 readonly when: u32;2711 readonly index: u32;2712 } & Struct;2713 readonly isScheduleNamed: boolean;2714 readonly asScheduleNamed: {2715 readonly id: U8aFixed;2716 readonly when: u32;2717 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2718 readonly priority: Option<u8>;2719 readonly call: Call;2720 } & Struct;2721 readonly isCancelNamed: boolean;2722 readonly asCancelNamed: {2723 readonly id: U8aFixed;2724 } & Struct;2725 readonly isScheduleAfter: boolean;2726 readonly asScheduleAfter: {2727 readonly after: u32;2728 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2729 readonly priority: Option<u8>;2730 readonly call: Call;2731 } & Struct;2732 readonly isScheduleNamedAfter: boolean;2733 readonly asScheduleNamedAfter: {2734 readonly id: U8aFixed;2735 readonly after: u32;2736 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2737 readonly priority: Option<u8>;2738 readonly call: Call;2739 } & Struct;2740 readonly isChangeNamedPriority: boolean;2741 readonly asChangeNamedPriority: {2742 readonly id: U8aFixed;2743 readonly priority: u8;2744 } & Struct;2745 readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter' | 'ChangeNamedPriority';2746 }27472748 /** @name PalletConfigurationCall (287) */2749 interface PalletConfigurationCall extends Enum {2750 readonly isSetWeightToFeeCoefficientOverride: boolean;2751 readonly asSetWeightToFeeCoefficientOverride: {2752 readonly coeff: Option<u32>;2753 } & Struct;2754 readonly isSetMinGasPriceOverride: boolean;2755 readonly asSetMinGasPriceOverride: {2756 readonly coeff: Option<u64>;2757 } & Struct;2758 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';2759 }27602761 /** @name PalletTemplateTransactionPaymentCall (289) */2762 type PalletTemplateTransactionPaymentCall = Null;27632764 /** @name PalletStructureCall (290) */2765 type PalletStructureCall = Null;27662767 /** @name PalletRmrkCoreCall (291) */2768 interface PalletRmrkCoreCall extends Enum {2769 readonly isCreateCollection: boolean;2770 readonly asCreateCollection: {2771 readonly metadata: Bytes;2772 readonly max: Option<u32>;2773 readonly symbol: Bytes;2774 } & Struct;2775 readonly isDestroyCollection: boolean;2776 readonly asDestroyCollection: {2777 readonly collectionId: u32;2778 } & Struct;2779 readonly isChangeCollectionIssuer: boolean;2780 readonly asChangeCollectionIssuer: {2781 readonly collectionId: u32;2782 readonly newIssuer: MultiAddress;2783 } & Struct;2784 readonly isLockCollection: boolean;2785 readonly asLockCollection: {2786 readonly collectionId: u32;2787 } & Struct;2788 readonly isMintNft: boolean;2789 readonly asMintNft: {2790 readonly owner: Option<AccountId32>;2791 readonly collectionId: u32;2792 readonly recipient: Option<AccountId32>;2793 readonly royaltyAmount: Option<Permill>;2794 readonly metadata: Bytes;2795 readonly transferable: bool;2796 readonly resources: Option<Vec<RmrkTraitsResourceResourceTypes>>;2797 } & Struct;2798 readonly isBurnNft: boolean;2799 readonly asBurnNft: {2800 readonly collectionId: u32;2801 readonly nftId: u32;2802 readonly maxBurns: u32;2803 } & Struct;2804 readonly isSend: boolean;2805 readonly asSend: {2806 readonly rmrkCollectionId: u32;2807 readonly rmrkNftId: u32;2808 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2809 } & Struct;2810 readonly isAcceptNft: boolean;2811 readonly asAcceptNft: {2812 readonly rmrkCollectionId: u32;2813 readonly rmrkNftId: u32;2814 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2815 } & Struct;2816 readonly isRejectNft: boolean;2817 readonly asRejectNft: {2818 readonly rmrkCollectionId: u32;2819 readonly rmrkNftId: u32;2820 } & Struct;2821 readonly isAcceptResource: boolean;2822 readonly asAcceptResource: {2823 readonly rmrkCollectionId: u32;2824 readonly rmrkNftId: u32;2825 readonly resourceId: u32;2826 } & Struct;2827 readonly isAcceptResourceRemoval: boolean;2828 readonly asAcceptResourceRemoval: {2829 readonly rmrkCollectionId: u32;2830 readonly rmrkNftId: u32;2831 readonly resourceId: u32;2832 } & Struct;2833 readonly isSetProperty: boolean;2834 readonly asSetProperty: {2835 readonly rmrkCollectionId: Compact<u32>;2836 readonly maybeNftId: Option<u32>;2837 readonly key: Bytes;2838 readonly value: Bytes;2839 } & Struct;2840 readonly isSetPriority: boolean;2841 readonly asSetPriority: {2842 readonly rmrkCollectionId: u32;2843 readonly rmrkNftId: u32;2844 readonly priorities: Vec<u32>;2845 } & Struct;2846 readonly isAddBasicResource: boolean;2847 readonly asAddBasicResource: {2848 readonly rmrkCollectionId: u32;2849 readonly nftId: u32;2850 readonly resource: RmrkTraitsResourceBasicResource;2851 } & Struct;2852 readonly isAddComposableResource: boolean;2853 readonly asAddComposableResource: {2854 readonly rmrkCollectionId: u32;2855 readonly nftId: u32;2856 readonly resource: RmrkTraitsResourceComposableResource;2857 } & Struct;2858 readonly isAddSlotResource: boolean;2859 readonly asAddSlotResource: {2860 readonly rmrkCollectionId: u32;2861 readonly nftId: u32;2862 readonly resource: RmrkTraitsResourceSlotResource;2863 } & Struct;2864 readonly isRemoveResource: boolean;2865 readonly asRemoveResource: {2866 readonly rmrkCollectionId: u32;2867 readonly nftId: u32;2868 readonly resourceId: u32;2869 } & Struct;2870 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';2871 }28722873 /** @name RmrkTraitsResourceResourceTypes (297) */2874 interface RmrkTraitsResourceResourceTypes extends Enum {2875 readonly isBasic: boolean;2876 readonly asBasic: RmrkTraitsResourceBasicResource;2877 readonly isComposable: boolean;2878 readonly asComposable: RmrkTraitsResourceComposableResource;2879 readonly isSlot: boolean;2880 readonly asSlot: RmrkTraitsResourceSlotResource;2881 readonly type: 'Basic' | 'Composable' | 'Slot';2882 }28832884 /** @name RmrkTraitsResourceBasicResource (299) */2885 interface RmrkTraitsResourceBasicResource extends Struct {2886 readonly src: Option<Bytes>;2887 readonly metadata: Option<Bytes>;2888 readonly license: Option<Bytes>;2889 readonly thumb: Option<Bytes>;2890 }28912892 /** @name RmrkTraitsResourceComposableResource (301) */2893 interface RmrkTraitsResourceComposableResource extends Struct {2894 readonly parts: Vec<u32>;2895 readonly base: u32;2896 readonly src: Option<Bytes>;2897 readonly metadata: Option<Bytes>;2898 readonly license: Option<Bytes>;2899 readonly thumb: Option<Bytes>;2900 }29012902 /** @name RmrkTraitsResourceSlotResource (302) */2903 interface RmrkTraitsResourceSlotResource extends Struct {2904 readonly base: u32;2905 readonly src: Option<Bytes>;2906 readonly metadata: Option<Bytes>;2907 readonly slot: u32;2908 readonly license: Option<Bytes>;2909 readonly thumb: Option<Bytes>;2910 }29112912 /** @name PalletRmrkEquipCall (305) */2913 interface PalletRmrkEquipCall extends Enum {2914 readonly isCreateBase: boolean;2915 readonly asCreateBase: {2916 readonly baseType: Bytes;2917 readonly symbol: Bytes;2918 readonly parts: Vec<RmrkTraitsPartPartType>;2919 } & Struct;2920 readonly isThemeAdd: boolean;2921 readonly asThemeAdd: {2922 readonly baseId: u32;2923 readonly theme: RmrkTraitsTheme;2924 } & Struct;2925 readonly isEquippable: boolean;2926 readonly asEquippable: {2927 readonly baseId: u32;2928 readonly slotId: u32;2929 readonly equippables: RmrkTraitsPartEquippableList;2930 } & Struct;2931 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';2932 }29332934 /** @name RmrkTraitsPartPartType (308) */2935 interface RmrkTraitsPartPartType extends Enum {2936 readonly isFixedPart: boolean;2937 readonly asFixedPart: RmrkTraitsPartFixedPart;2938 readonly isSlotPart: boolean;2939 readonly asSlotPart: RmrkTraitsPartSlotPart;2940 readonly type: 'FixedPart' | 'SlotPart';2941 }29422943 /** @name RmrkTraitsPartFixedPart (310) */2944 interface RmrkTraitsPartFixedPart extends Struct {2945 readonly id: u32;2946 readonly z: u32;2947 readonly src: Bytes;2948 }29492950 /** @name RmrkTraitsPartSlotPart (311) */2951 interface RmrkTraitsPartSlotPart extends Struct {2952 readonly id: u32;2953 readonly equippable: RmrkTraitsPartEquippableList;2954 readonly src: Bytes;2955 readonly z: u32;2956 }29572958 /** @name RmrkTraitsPartEquippableList (312) */2959 interface RmrkTraitsPartEquippableList extends Enum {2960 readonly isAll: boolean;2961 readonly isEmpty: boolean;2962 readonly isCustom: boolean;2963 readonly asCustom: Vec<u32>;2964 readonly type: 'All' | 'Empty' | 'Custom';2965 }29662967 /** @name RmrkTraitsTheme (314) */2968 interface RmrkTraitsTheme extends Struct {2969 readonly name: Bytes;2970 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;2971 readonly inherit: bool;2972 }29732974 /** @name RmrkTraitsThemeThemeProperty (316) */2975 interface RmrkTraitsThemeThemeProperty extends Struct {2976 readonly key: Bytes;2977 readonly value: Bytes;2978 }29792980 /** @name PalletAppPromotionCall (318) */2981 interface PalletAppPromotionCall extends Enum {2982 readonly isSetAdminAddress: boolean;2983 readonly asSetAdminAddress: {2984 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;2985 } & Struct;2986 readonly isStake: boolean;2987 readonly asStake: {2988 readonly amount: u128;2989 } & Struct;2990 readonly isUnstake: boolean;2991 readonly isSponsorCollection: boolean;2992 readonly asSponsorCollection: {2993 readonly collectionId: u32;2994 } & Struct;2995 readonly isStopSponsoringCollection: boolean;2996 readonly asStopSponsoringCollection: {2997 readonly collectionId: u32;2998 } & Struct;2999 readonly isSponsorContract: boolean;3000 readonly asSponsorContract: {3001 readonly contractId: H160;3002 } & Struct;3003 readonly isStopSponsoringContract: boolean;3004 readonly asStopSponsoringContract: {3005 readonly contractId: H160;3006 } & Struct;3007 readonly isPayoutStakers: boolean;3008 readonly asPayoutStakers: {3009 readonly stakersNumber: Option<u8>;3010 } & Struct;3011 readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';3012 }30133014 /** @name PalletForeignAssetsModuleCall (319) */3015 interface PalletForeignAssetsModuleCall extends Enum {3016 readonly isRegisterForeignAsset: boolean;3017 readonly asRegisterForeignAsset: {3018 readonly owner: AccountId32;3019 readonly location: XcmVersionedMultiLocation;3020 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3021 } & Struct;3022 readonly isUpdateForeignAsset: boolean;3023 readonly asUpdateForeignAsset: {3024 readonly foreignAssetId: u32;3025 readonly location: XcmVersionedMultiLocation;3026 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3027 } & Struct;3028 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3029 }30303031 /** @name PalletEvmCall (320) */3032 interface PalletEvmCall extends Enum {3033 readonly isWithdraw: boolean;3034 readonly asWithdraw: {3035 readonly address: H160;3036 readonly value: u128;3037 } & Struct;3038 readonly isCall: boolean;3039 readonly asCall: {3040 readonly source: H160;3041 readonly target: H160;3042 readonly input: Bytes;3043 readonly value: U256;3044 readonly gasLimit: u64;3045 readonly maxFeePerGas: U256;3046 readonly maxPriorityFeePerGas: Option<U256>;3047 readonly nonce: Option<U256>;3048 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3049 } & Struct;3050 readonly isCreate: boolean;3051 readonly asCreate: {3052 readonly source: H160;3053 readonly init: Bytes;3054 readonly value: U256;3055 readonly gasLimit: u64;3056 readonly maxFeePerGas: U256;3057 readonly maxPriorityFeePerGas: Option<U256>;3058 readonly nonce: Option<U256>;3059 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3060 } & Struct;3061 readonly isCreate2: boolean;3062 readonly asCreate2: {3063 readonly source: H160;3064 readonly init: Bytes;3065 readonly salt: H256;3066 readonly value: U256;3067 readonly gasLimit: u64;3068 readonly maxFeePerGas: U256;3069 readonly maxPriorityFeePerGas: Option<U256>;3070 readonly nonce: Option<U256>;3071 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3072 } & Struct;3073 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3074 }30753076 /** @name PalletEthereumCall (326) */3077 interface PalletEthereumCall extends Enum {3078 readonly isTransact: boolean;3079 readonly asTransact: {3080 readonly transaction: EthereumTransactionTransactionV2;3081 } & Struct;3082 readonly type: 'Transact';3083 }30843085 /** @name EthereumTransactionTransactionV2 (327) */3086 interface EthereumTransactionTransactionV2 extends Enum {3087 readonly isLegacy: boolean;3088 readonly asLegacy: EthereumTransactionLegacyTransaction;3089 readonly isEip2930: boolean;3090 readonly asEip2930: EthereumTransactionEip2930Transaction;3091 readonly isEip1559: boolean;3092 readonly asEip1559: EthereumTransactionEip1559Transaction;3093 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3094 }30953096 /** @name EthereumTransactionLegacyTransaction (328) */3097 interface EthereumTransactionLegacyTransaction extends Struct {3098 readonly nonce: U256;3099 readonly gasPrice: U256;3100 readonly gasLimit: U256;3101 readonly action: EthereumTransactionTransactionAction;3102 readonly value: U256;3103 readonly input: Bytes;3104 readonly signature: EthereumTransactionTransactionSignature;3105 }31063107 /** @name EthereumTransactionTransactionAction (329) */3108 interface EthereumTransactionTransactionAction extends Enum {3109 readonly isCall: boolean;3110 readonly asCall: H160;3111 readonly isCreate: boolean;3112 readonly type: 'Call' | 'Create';3113 }31143115 /** @name EthereumTransactionTransactionSignature (330) */3116 interface EthereumTransactionTransactionSignature extends Struct {3117 readonly v: u64;3118 readonly r: H256;3119 readonly s: H256;3120 }31213122 /** @name EthereumTransactionEip2930Transaction (332) */3123 interface EthereumTransactionEip2930Transaction extends Struct {3124 readonly chainId: u64;3125 readonly nonce: U256;3126 readonly gasPrice: U256;3127 readonly gasLimit: U256;3128 readonly action: EthereumTransactionTransactionAction;3129 readonly value: U256;3130 readonly input: Bytes;3131 readonly accessList: Vec<EthereumTransactionAccessListItem>;3132 readonly oddYParity: bool;3133 readonly r: H256;3134 readonly s: H256;3135 }31363137 /** @name EthereumTransactionAccessListItem (334) */3138 interface EthereumTransactionAccessListItem extends Struct {3139 readonly address: H160;3140 readonly storageKeys: Vec<H256>;3141 }31423143 /** @name EthereumTransactionEip1559Transaction (335) */3144 interface EthereumTransactionEip1559Transaction extends Struct {3145 readonly chainId: u64;3146 readonly nonce: U256;3147 readonly maxPriorityFeePerGas: U256;3148 readonly maxFeePerGas: U256;3149 readonly gasLimit: U256;3150 readonly action: EthereumTransactionTransactionAction;3151 readonly value: U256;3152 readonly input: Bytes;3153 readonly accessList: Vec<EthereumTransactionAccessListItem>;3154 readonly oddYParity: bool;3155 readonly r: H256;3156 readonly s: H256;3157 }31583159 /** @name PalletEvmMigrationCall (336) */3160 interface PalletEvmMigrationCall extends Enum {3161 readonly isBegin: boolean;3162 readonly asBegin: {3163 readonly address: H160;3164 } & Struct;3165 readonly isSetData: boolean;3166 readonly asSetData: {3167 readonly address: H160;3168 readonly data: Vec<ITuple<[H256, H256]>>;3169 } & Struct;3170 readonly isFinish: boolean;3171 readonly asFinish: {3172 readonly address: H160;3173 readonly code: Bytes;3174 } & Struct;3175 readonly isInsertEthLogs: boolean;3176 readonly asInsertEthLogs: {3177 readonly logs: Vec<EthereumLog>;3178 } & Struct;3179 readonly isInsertEvents: boolean;3180 readonly asInsertEvents: {3181 readonly events: Vec<Bytes>;3182 } & Struct;3183 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';3184 }31853186 /** @name PalletMaintenanceCall (340) */3187 interface PalletMaintenanceCall extends Enum {3188 readonly isEnable: boolean;3189 readonly isDisable: boolean;3190 readonly type: 'Enable' | 'Disable';3191 }31923193 /** @name PalletTestUtilsCall (341) */3194 interface PalletTestUtilsCall extends Enum {3195 readonly isEnable: boolean;3196 readonly isSetTestValue: boolean;3197 readonly asSetTestValue: {3198 readonly value: u32;3199 } & Struct;3200 readonly isSetTestValueAndRollback: boolean;3201 readonly asSetTestValueAndRollback: {3202 readonly value: u32;3203 } & Struct;3204 readonly isIncTestValue: boolean;3205 readonly isSelfCancelingInc: boolean;3206 readonly asSelfCancelingInc: {3207 readonly id: U8aFixed;3208 readonly maxTestValue: u32;3209 } & Struct;3210 readonly isJustTakeFee: boolean;3211 readonly isBatchAll: boolean;3212 readonly asBatchAll: {3213 readonly calls: Vec<Call>;3214 } & Struct;3215 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'SelfCancelingInc' | 'JustTakeFee' | 'BatchAll';3216 }32173218 /** @name PalletSudoError (343) */3219 interface PalletSudoError extends Enum {3220 readonly isRequireSudo: boolean;3221 readonly type: 'RequireSudo';3222 }32233224 /** @name OrmlVestingModuleError (345) */3225 interface OrmlVestingModuleError extends Enum {3226 readonly isZeroVestingPeriod: boolean;3227 readonly isZeroVestingPeriodCount: boolean;3228 readonly isInsufficientBalanceToLock: boolean;3229 readonly isTooManyVestingSchedules: boolean;3230 readonly isAmountLow: boolean;3231 readonly isMaxVestingSchedulesExceeded: boolean;3232 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3233 }32343235 /** @name OrmlXtokensModuleError (346) */3236 interface OrmlXtokensModuleError extends Enum {3237 readonly isAssetHasNoReserve: boolean;3238 readonly isNotCrossChainTransfer: boolean;3239 readonly isInvalidDest: boolean;3240 readonly isNotCrossChainTransferableCurrency: boolean;3241 readonly isUnweighableMessage: boolean;3242 readonly isXcmExecutionFailed: boolean;3243 readonly isCannotReanchor: boolean;3244 readonly isInvalidAncestry: boolean;3245 readonly isInvalidAsset: boolean;3246 readonly isDestinationNotInvertible: boolean;3247 readonly isBadVersion: boolean;3248 readonly isDistinctReserveForAssetAndFee: boolean;3249 readonly isZeroFee: boolean;3250 readonly isZeroAmount: boolean;3251 readonly isTooManyAssetsBeingSent: boolean;3252 readonly isAssetIndexNonExistent: boolean;3253 readonly isFeeNotEnough: boolean;3254 readonly isNotSupportedMultiLocation: boolean;3255 readonly isMinXcmFeeNotDefined: boolean;3256 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3257 }32583259 /** @name OrmlTokensBalanceLock (349) */3260 interface OrmlTokensBalanceLock extends Struct {3261 readonly id: U8aFixed;3262 readonly amount: u128;3263 }32643265 /** @name OrmlTokensAccountData (351) */3266 interface OrmlTokensAccountData extends Struct {3267 readonly free: u128;3268 readonly reserved: u128;3269 readonly frozen: u128;3270 }32713272 /** @name OrmlTokensReserveData (353) */3273 interface OrmlTokensReserveData extends Struct {3274 readonly id: Null;3275 readonly amount: u128;3276 }32773278 /** @name OrmlTokensModuleError (355) */3279 interface OrmlTokensModuleError extends Enum {3280 readonly isBalanceTooLow: boolean;3281 readonly isAmountIntoBalanceFailed: boolean;3282 readonly isLiquidityRestrictions: boolean;3283 readonly isMaxLocksExceeded: boolean;3284 readonly isKeepAlive: boolean;3285 readonly isExistentialDeposit: boolean;3286 readonly isDeadAccount: boolean;3287 readonly isTooManyReserves: boolean;3288 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3289 }32903291 /** @name CumulusPalletXcmpQueueInboundChannelDetails (357) */3292 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3293 readonly sender: u32;3294 readonly state: CumulusPalletXcmpQueueInboundState;3295 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3296 }32973298 /** @name CumulusPalletXcmpQueueInboundState (358) */3299 interface CumulusPalletXcmpQueueInboundState extends Enum {3300 readonly isOk: boolean;3301 readonly isSuspended: boolean;3302 readonly type: 'Ok' | 'Suspended';3303 }33043305 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (361) */3306 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3307 readonly isConcatenatedVersionedXcm: boolean;3308 readonly isConcatenatedEncodedBlob: boolean;3309 readonly isSignals: boolean;3310 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3311 }33123313 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (364) */3314 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3315 readonly recipient: u32;3316 readonly state: CumulusPalletXcmpQueueOutboundState;3317 readonly signalsExist: bool;3318 readonly firstIndex: u16;3319 readonly lastIndex: u16;3320 }33213322 /** @name CumulusPalletXcmpQueueOutboundState (365) */3323 interface CumulusPalletXcmpQueueOutboundState extends Enum {3324 readonly isOk: boolean;3325 readonly isSuspended: boolean;3326 readonly type: 'Ok' | 'Suspended';3327 }33283329 /** @name CumulusPalletXcmpQueueQueueConfigData (367) */3330 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3331 readonly suspendThreshold: u32;3332 readonly dropThreshold: u32;3333 readonly resumeThreshold: u32;3334 readonly thresholdWeight: Weight;3335 readonly weightRestrictDecay: Weight;3336 readonly xcmpMaxIndividualWeight: Weight;3337 }33383339 /** @name CumulusPalletXcmpQueueError (369) */3340 interface CumulusPalletXcmpQueueError extends Enum {3341 readonly isFailedToSend: boolean;3342 readonly isBadXcmOrigin: boolean;3343 readonly isBadXcm: boolean;3344 readonly isBadOverweightIndex: boolean;3345 readonly isWeightOverLimit: boolean;3346 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3347 }33483349 /** @name PalletXcmError (370) */3350 interface PalletXcmError extends Enum {3351 readonly isUnreachable: boolean;3352 readonly isSendFailure: boolean;3353 readonly isFiltered: boolean;3354 readonly isUnweighableMessage: boolean;3355 readonly isDestinationNotInvertible: boolean;3356 readonly isEmpty: boolean;3357 readonly isCannotReanchor: boolean;3358 readonly isTooManyAssets: boolean;3359 readonly isInvalidOrigin: boolean;3360 readonly isBadVersion: boolean;3361 readonly isBadLocation: boolean;3362 readonly isNoSubscription: boolean;3363 readonly isAlreadySubscribed: boolean;3364 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';3365 }33663367 /** @name CumulusPalletXcmError (371) */3368 type CumulusPalletXcmError = Null;33693370 /** @name CumulusPalletDmpQueueConfigData (372) */3371 interface CumulusPalletDmpQueueConfigData extends Struct {3372 readonly maxIndividual: Weight;3373 }33743375 /** @name CumulusPalletDmpQueuePageIndexData (373) */3376 interface CumulusPalletDmpQueuePageIndexData extends Struct {3377 readonly beginUsed: u32;3378 readonly endUsed: u32;3379 readonly overweightCount: u64;3380 }33813382 /** @name CumulusPalletDmpQueueError (376) */3383 interface CumulusPalletDmpQueueError extends Enum {3384 readonly isUnknown: boolean;3385 readonly isOverLimit: boolean;3386 readonly type: 'Unknown' | 'OverLimit';3387 }33883389 /** @name PalletUniqueError (380) */3390 interface PalletUniqueError extends Enum {3391 readonly isCollectionDecimalPointLimitExceeded: boolean;3392 readonly isConfirmUnsetSponsorFail: boolean;3393 readonly isEmptyArgument: boolean;3394 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3395 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3396 }33973398 /** @name PalletUniqueSchedulerV2BlockAgenda (381) */3399 interface PalletUniqueSchedulerV2BlockAgenda extends Struct {3400 readonly agenda: Vec<Option<PalletUniqueSchedulerV2Scheduled>>;3401 readonly freePlaces: u32;3402 }34033404 /** @name PalletUniqueSchedulerV2Scheduled (384) */3405 interface PalletUniqueSchedulerV2Scheduled extends Struct {3406 readonly maybeId: Option<U8aFixed>;3407 readonly priority: u8;3408 readonly call: PalletUniqueSchedulerV2ScheduledCall;3409 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;3410 readonly origin: OpalRuntimeOriginCaller;3411 }34123413 /** @name PalletUniqueSchedulerV2ScheduledCall (385) */3414 interface PalletUniqueSchedulerV2ScheduledCall extends Enum {3415 readonly isInline: boolean;3416 readonly asInline: Bytes;3417 readonly isPreimageLookup: boolean;3418 readonly asPreimageLookup: {3419 readonly hash_: H256;3420 readonly unboundedLen: u32;3421 } & Struct;3422 readonly type: 'Inline' | 'PreimageLookup';3423 }34243425 /** @name OpalRuntimeOriginCaller (387) */3426 interface OpalRuntimeOriginCaller extends Enum {3427 readonly isSystem: boolean;3428 readonly asSystem: FrameSupportDispatchRawOrigin;3429 readonly isVoid: boolean;3430 readonly isPolkadotXcm: boolean;3431 readonly asPolkadotXcm: PalletXcmOrigin;3432 readonly isCumulusXcm: boolean;3433 readonly asCumulusXcm: CumulusPalletXcmOrigin;3434 readonly isEthereum: boolean;3435 readonly asEthereum: PalletEthereumRawOrigin;3436 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';3437 }34383439 /** @name FrameSupportDispatchRawOrigin (388) */3440 interface FrameSupportDispatchRawOrigin extends Enum {3441 readonly isRoot: boolean;3442 readonly isSigned: boolean;3443 readonly asSigned: AccountId32;3444 readonly isNone: boolean;3445 readonly type: 'Root' | 'Signed' | 'None';3446 }34473448 /** @name PalletXcmOrigin (389) */3449 interface PalletXcmOrigin extends Enum {3450 readonly isXcm: boolean;3451 readonly asXcm: XcmV1MultiLocation;3452 readonly isResponse: boolean;3453 readonly asResponse: XcmV1MultiLocation;3454 readonly type: 'Xcm' | 'Response';3455 }34563457 /** @name CumulusPalletXcmOrigin (390) */3458 interface CumulusPalletXcmOrigin extends Enum {3459 readonly isRelay: boolean;3460 readonly isSiblingParachain: boolean;3461 readonly asSiblingParachain: u32;3462 readonly type: 'Relay' | 'SiblingParachain';3463 }34643465 /** @name PalletEthereumRawOrigin (391) */3466 interface PalletEthereumRawOrigin extends Enum {3467 readonly isEthereumTransaction: boolean;3468 readonly asEthereumTransaction: H160;3469 readonly type: 'EthereumTransaction';3470 }34713472 /** @name SpCoreVoid (392) */3473 type SpCoreVoid = Null;34743475 /** @name PalletUniqueSchedulerV2Error (394) */3476 interface PalletUniqueSchedulerV2Error extends Enum {3477 readonly isFailedToSchedule: boolean;3478 readonly isAgendaIsExhausted: boolean;3479 readonly isScheduledCallCorrupted: boolean;3480 readonly isPreimageNotFound: boolean;3481 readonly isTooBigScheduledCall: boolean;3482 readonly isNotFound: boolean;3483 readonly isTargetBlockNumberInPast: boolean;3484 readonly isNamed: boolean;3485 readonly type: 'FailedToSchedule' | 'AgendaIsExhausted' | 'ScheduledCallCorrupted' | 'PreimageNotFound' | 'TooBigScheduledCall' | 'NotFound' | 'TargetBlockNumberInPast' | 'Named';3486 }34873488 /** @name UpDataStructsCollection (395) */3489 interface UpDataStructsCollection extends Struct {3490 readonly owner: AccountId32;3491 readonly mode: UpDataStructsCollectionMode;3492 readonly name: Vec<u16>;3493 readonly description: Vec<u16>;3494 readonly tokenPrefix: Bytes;3495 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3496 readonly limits: UpDataStructsCollectionLimits;3497 readonly permissions: UpDataStructsCollectionPermissions;3498 readonly flags: U8aFixed;3499 }35003501 /** @name UpDataStructsSponsorshipStateAccountId32 (396) */3502 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3503 readonly isDisabled: boolean;3504 readonly isUnconfirmed: boolean;3505 readonly asUnconfirmed: AccountId32;3506 readonly isConfirmed: boolean;3507 readonly asConfirmed: AccountId32;3508 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3509 }35103511 /** @name UpDataStructsProperties (398) */3512 interface UpDataStructsProperties extends Struct {3513 readonly map: UpDataStructsPropertiesMapBoundedVec;3514 readonly consumedSpace: u32;3515 readonly spaceLimit: u32;3516 }35173518 /** @name UpDataStructsPropertiesMapBoundedVec (399) */3519 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}35203521 /** @name UpDataStructsPropertiesMapPropertyPermission (404) */3522 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}35233524 /** @name UpDataStructsCollectionStats (411) */3525 interface UpDataStructsCollectionStats extends Struct {3526 readonly created: u32;3527 readonly destroyed: u32;3528 readonly alive: u32;3529 }35303531 /** @name UpDataStructsTokenChild (412) */3532 interface UpDataStructsTokenChild extends Struct {3533 readonly token: u32;3534 readonly collection: u32;3535 }35363537 /** @name PhantomTypeUpDataStructs (413) */3538 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}35393540 /** @name UpDataStructsTokenData (415) */3541 interface UpDataStructsTokenData extends Struct {3542 readonly properties: Vec<UpDataStructsProperty>;3543 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3544 readonly pieces: u128;3545 }35463547 /** @name UpDataStructsRpcCollection (417) */3548 interface UpDataStructsRpcCollection extends Struct {3549 readonly owner: AccountId32;3550 readonly mode: UpDataStructsCollectionMode;3551 readonly name: Vec<u16>;3552 readonly description: Vec<u16>;3553 readonly tokenPrefix: Bytes;3554 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3555 readonly limits: UpDataStructsCollectionLimits;3556 readonly permissions: UpDataStructsCollectionPermissions;3557 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3558 readonly properties: Vec<UpDataStructsProperty>;3559 readonly readOnly: bool;3560 readonly flags: UpDataStructsRpcCollectionFlags;3561 }35623563 /** @name UpDataStructsRpcCollectionFlags (418) */3564 interface UpDataStructsRpcCollectionFlags extends Struct {3565 readonly foreign: bool;3566 readonly erc721metadata: bool;3567 }35683569 /** @name RmrkTraitsCollectionCollectionInfo (419) */3570 interface RmrkTraitsCollectionCollectionInfo extends Struct {3571 readonly issuer: AccountId32;3572 readonly metadata: Bytes;3573 readonly max: Option<u32>;3574 readonly symbol: Bytes;3575 readonly nftsCount: u32;3576 }35773578 /** @name RmrkTraitsNftNftInfo (420) */3579 interface RmrkTraitsNftNftInfo extends Struct {3580 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3581 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3582 readonly metadata: Bytes;3583 readonly equipped: bool;3584 readonly pending: bool;3585 }35863587 /** @name RmrkTraitsNftRoyaltyInfo (422) */3588 interface RmrkTraitsNftRoyaltyInfo extends Struct {3589 readonly recipient: AccountId32;3590 readonly amount: Permill;3591 }35923593 /** @name RmrkTraitsResourceResourceInfo (423) */3594 interface RmrkTraitsResourceResourceInfo extends Struct {3595 readonly id: u32;3596 readonly resource: RmrkTraitsResourceResourceTypes;3597 readonly pending: bool;3598 readonly pendingRemoval: bool;3599 }36003601 /** @name RmrkTraitsPropertyPropertyInfo (424) */3602 interface RmrkTraitsPropertyPropertyInfo extends Struct {3603 readonly key: Bytes;3604 readonly value: Bytes;3605 }36063607 /** @name RmrkTraitsBaseBaseInfo (425) */3608 interface RmrkTraitsBaseBaseInfo extends Struct {3609 readonly issuer: AccountId32;3610 readonly baseType: Bytes;3611 readonly symbol: Bytes;3612 }36133614 /** @name RmrkTraitsNftNftChild (426) */3615 interface RmrkTraitsNftNftChild extends Struct {3616 readonly collectionId: u32;3617 readonly nftId: u32;3618 }36193620 /** @name PalletCommonError (428) */3621 interface PalletCommonError extends Enum {3622 readonly isCollectionNotFound: boolean;3623 readonly isMustBeTokenOwner: boolean;3624 readonly isNoPermission: boolean;3625 readonly isCantDestroyNotEmptyCollection: boolean;3626 readonly isPublicMintingNotAllowed: boolean;3627 readonly isAddressNotInAllowlist: boolean;3628 readonly isCollectionNameLimitExceeded: boolean;3629 readonly isCollectionDescriptionLimitExceeded: boolean;3630 readonly isCollectionTokenPrefixLimitExceeded: boolean;3631 readonly isTotalCollectionsLimitExceeded: boolean;3632 readonly isCollectionAdminCountExceeded: boolean;3633 readonly isCollectionLimitBoundsExceeded: boolean;3634 readonly isOwnerPermissionsCantBeReverted: boolean;3635 readonly isTransferNotAllowed: boolean;3636 readonly isAccountTokenLimitExceeded: boolean;3637 readonly isCollectionTokenLimitExceeded: boolean;3638 readonly isMetadataFlagFrozen: boolean;3639 readonly isTokenNotFound: boolean;3640 readonly isTokenValueTooLow: boolean;3641 readonly isApprovedValueTooLow: boolean;3642 readonly isCantApproveMoreThanOwned: boolean;3643 readonly isAddressIsZero: boolean;3644 readonly isUnsupportedOperation: boolean;3645 readonly isNotSufficientFounds: boolean;3646 readonly isUserIsNotAllowedToNest: boolean;3647 readonly isSourceCollectionIsNotAllowedToNest: boolean;3648 readonly isCollectionFieldSizeExceeded: boolean;3649 readonly isNoSpaceForProperty: boolean;3650 readonly isPropertyLimitReached: boolean;3651 readonly isPropertyKeyIsTooLong: boolean;3652 readonly isInvalidCharacterInPropertyKey: boolean;3653 readonly isEmptyPropertyKey: boolean;3654 readonly isCollectionIsExternal: boolean;3655 readonly isCollectionIsInternal: boolean;3656 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';3657 }36583659 /** @name PalletFungibleError (430) */3660 interface PalletFungibleError extends Enum {3661 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3662 readonly isFungibleItemsHaveNoId: boolean;3663 readonly isFungibleItemsDontHaveData: boolean;3664 readonly isFungibleDisallowsNesting: boolean;3665 readonly isSettingPropertiesNotAllowed: boolean;3666 readonly isSettingApprovalForAllNotAllowed: boolean;3667 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';3668 }36693670 /** @name PalletRefungibleItemData (431) */3671 interface PalletRefungibleItemData extends Struct {3672 readonly constData: Bytes;3673 }36743675 /** @name PalletRefungibleError (436) */3676 interface PalletRefungibleError extends Enum {3677 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3678 readonly isWrongRefungiblePieces: boolean;3679 readonly isRepartitionWhileNotOwningAllPieces: boolean;3680 readonly isRefungibleDisallowsNesting: boolean;3681 readonly isSettingPropertiesNotAllowed: boolean;3682 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3683 }36843685 /** @name PalletNonfungibleItemData (437) */3686 interface PalletNonfungibleItemData extends Struct {3687 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3688 }36893690 /** @name UpDataStructsPropertyScope (439) */3691 interface UpDataStructsPropertyScope extends Enum {3692 readonly isNone: boolean;3693 readonly isRmrk: boolean;3694 readonly type: 'None' | 'Rmrk';3695 }36963697 /** @name PalletNonfungibleError (441) */3698 interface PalletNonfungibleError extends Enum {3699 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3700 readonly isNonfungibleItemsHaveNoAmount: boolean;3701 readonly isCantBurnNftWithChildren: boolean;3702 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3703 }37043705 /** @name PalletStructureError (442) */3706 interface PalletStructureError extends Enum {3707 readonly isOuroborosDetected: boolean;3708 readonly isDepthLimit: boolean;3709 readonly isBreadthLimit: boolean;3710 readonly isTokenNotFound: boolean;3711 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3712 }37133714 /** @name PalletRmrkCoreError (443) */3715 interface PalletRmrkCoreError extends Enum {3716 readonly isCorruptedCollectionType: boolean;3717 readonly isRmrkPropertyKeyIsTooLong: boolean;3718 readonly isRmrkPropertyValueIsTooLong: boolean;3719 readonly isRmrkPropertyIsNotFound: boolean;3720 readonly isUnableToDecodeRmrkData: boolean;3721 readonly isCollectionNotEmpty: boolean;3722 readonly isNoAvailableCollectionId: boolean;3723 readonly isNoAvailableNftId: boolean;3724 readonly isCollectionUnknown: boolean;3725 readonly isNoPermission: boolean;3726 readonly isNonTransferable: boolean;3727 readonly isCollectionFullOrLocked: boolean;3728 readonly isResourceDoesntExist: boolean;3729 readonly isCannotSendToDescendentOrSelf: boolean;3730 readonly isCannotAcceptNonOwnedNft: boolean;3731 readonly isCannotRejectNonOwnedNft: boolean;3732 readonly isCannotRejectNonPendingNft: boolean;3733 readonly isResourceNotPending: boolean;3734 readonly isNoAvailableResourceId: boolean;3735 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3736 }37373738 /** @name PalletRmrkEquipError (445) */3739 interface PalletRmrkEquipError extends Enum {3740 readonly isPermissionError: boolean;3741 readonly isNoAvailableBaseId: boolean;3742 readonly isNoAvailablePartId: boolean;3743 readonly isBaseDoesntExist: boolean;3744 readonly isNeedsDefaultThemeFirst: boolean;3745 readonly isPartDoesntExist: boolean;3746 readonly isNoEquippableOnFixedPart: boolean;3747 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3748 }37493750 /** @name PalletAppPromotionError (451) */3751 interface PalletAppPromotionError extends Enum {3752 readonly isAdminNotSet: boolean;3753 readonly isNoPermission: boolean;3754 readonly isNotSufficientFunds: boolean;3755 readonly isPendingForBlockOverflow: boolean;3756 readonly isSponsorNotSet: boolean;3757 readonly isIncorrectLockedBalanceOperation: boolean;3758 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';3759 }37603761 /** @name PalletForeignAssetsModuleError (452) */3762 interface PalletForeignAssetsModuleError extends Enum {3763 readonly isBadLocation: boolean;3764 readonly isMultiLocationExisted: boolean;3765 readonly isAssetIdNotExists: boolean;3766 readonly isAssetIdExisted: boolean;3767 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3768 }37693770 /** @name PalletEvmError (454) */3771 interface PalletEvmError extends Enum {3772 readonly isBalanceLow: boolean;3773 readonly isFeeOverflow: boolean;3774 readonly isPaymentOverflow: boolean;3775 readonly isWithdrawFailed: boolean;3776 readonly isGasPriceTooLow: boolean;3777 readonly isInvalidNonce: boolean;3778 readonly isGasLimitTooLow: boolean;3779 readonly isGasLimitTooHigh: boolean;3780 readonly isUndefined: boolean;3781 readonly isReentrancy: boolean;3782 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy';3783 }37843785 /** @name FpRpcTransactionStatus (457) */3786 interface FpRpcTransactionStatus extends Struct {3787 readonly transactionHash: H256;3788 readonly transactionIndex: u32;3789 readonly from: H160;3790 readonly to: Option<H160>;3791 readonly contractAddress: Option<H160>;3792 readonly logs: Vec<EthereumLog>;3793 readonly logsBloom: EthbloomBloom;3794 }37953796 /** @name EthbloomBloom (459) */3797 interface EthbloomBloom extends U8aFixed {}37983799 /** @name EthereumReceiptReceiptV3 (461) */3800 interface EthereumReceiptReceiptV3 extends Enum {3801 readonly isLegacy: boolean;3802 readonly asLegacy: EthereumReceiptEip658ReceiptData;3803 readonly isEip2930: boolean;3804 readonly asEip2930: EthereumReceiptEip658ReceiptData;3805 readonly isEip1559: boolean;3806 readonly asEip1559: EthereumReceiptEip658ReceiptData;3807 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3808 }38093810 /** @name EthereumReceiptEip658ReceiptData (462) */3811 interface EthereumReceiptEip658ReceiptData extends Struct {3812 readonly statusCode: u8;3813 readonly usedGas: U256;3814 readonly logsBloom: EthbloomBloom;3815 readonly logs: Vec<EthereumLog>;3816 }38173818 /** @name EthereumBlock (463) */3819 interface EthereumBlock extends Struct {3820 readonly header: EthereumHeader;3821 readonly transactions: Vec<EthereumTransactionTransactionV2>;3822 readonly ommers: Vec<EthereumHeader>;3823 }38243825 /** @name EthereumHeader (464) */3826 interface EthereumHeader extends Struct {3827 readonly parentHash: H256;3828 readonly ommersHash: H256;3829 readonly beneficiary: H160;3830 readonly stateRoot: H256;3831 readonly transactionsRoot: H256;3832 readonly receiptsRoot: H256;3833 readonly logsBloom: EthbloomBloom;3834 readonly difficulty: U256;3835 readonly number: U256;3836 readonly gasLimit: U256;3837 readonly gasUsed: U256;3838 readonly timestamp: u64;3839 readonly extraData: Bytes;3840 readonly mixHash: H256;3841 readonly nonce: EthereumTypesHashH64;3842 }38433844 /** @name EthereumTypesHashH64 (465) */3845 interface EthereumTypesHashH64 extends U8aFixed {}38463847 /** @name PalletEthereumError (470) */3848 interface PalletEthereumError extends Enum {3849 readonly isInvalidSignature: boolean;3850 readonly isPreLogExists: boolean;3851 readonly type: 'InvalidSignature' | 'PreLogExists';3852 }38533854 /** @name PalletEvmCoderSubstrateError (471) */3855 interface PalletEvmCoderSubstrateError extends Enum {3856 readonly isOutOfGas: boolean;3857 readonly isOutOfFund: boolean;3858 readonly type: 'OutOfGas' | 'OutOfFund';3859 }38603861 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (472) */3862 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3863 readonly isDisabled: boolean;3864 readonly isUnconfirmed: boolean;3865 readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr;3866 readonly isConfirmed: boolean;3867 readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr;3868 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3869 }38703871 /** @name PalletEvmContractHelpersSponsoringModeT (473) */3872 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3873 readonly isDisabled: boolean;3874 readonly isAllowlisted: boolean;3875 readonly isGenerous: boolean;3876 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3877 }38783879 /** @name PalletEvmContractHelpersError (479) */3880 interface PalletEvmContractHelpersError extends Enum {3881 readonly isNoPermission: boolean;3882 readonly isNoPendingSponsor: boolean;3883 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3884 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3885 }38863887 /** @name PalletEvmMigrationError (480) */3888 interface PalletEvmMigrationError extends Enum {3889 readonly isAccountNotEmpty: boolean;3890 readonly isAccountIsNotMigrating: boolean;3891 readonly isBadEvent: boolean;3892 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3893 }38943895 /** @name PalletMaintenanceError (481) */3896 type PalletMaintenanceError = Null;38973898 /** @name PalletTestUtilsError (482) */3899 interface PalletTestUtilsError extends Enum {3900 readonly isTestPalletDisabled: boolean;3901 readonly isTriggerRollback: boolean;3902 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3903 }39043905 /** @name SpRuntimeMultiSignature (484) */3906 interface SpRuntimeMultiSignature extends Enum {3907 readonly isEd25519: boolean;3908 readonly asEd25519: SpCoreEd25519Signature;3909 readonly isSr25519: boolean;3910 readonly asSr25519: SpCoreSr25519Signature;3911 readonly isEcdsa: boolean;3912 readonly asEcdsa: SpCoreEcdsaSignature;3913 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3914 }39153916 /** @name SpCoreEd25519Signature (485) */3917 interface SpCoreEd25519Signature extends U8aFixed {}39183919 /** @name SpCoreSr25519Signature (487) */3920 interface SpCoreSr25519Signature extends U8aFixed {}39213922 /** @name SpCoreEcdsaSignature (488) */3923 interface SpCoreEcdsaSignature extends U8aFixed {}39243925 /** @name FrameSystemExtensionsCheckSpecVersion (491) */3926 type FrameSystemExtensionsCheckSpecVersion = Null;39273928 /** @name FrameSystemExtensionsCheckTxVersion (492) */3929 type FrameSystemExtensionsCheckTxVersion = Null;39303931 /** @name FrameSystemExtensionsCheckGenesis (493) */3932 type FrameSystemExtensionsCheckGenesis = Null;39333934 /** @name FrameSystemExtensionsCheckNonce (496) */3935 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}39363937 /** @name FrameSystemExtensionsCheckWeight (497) */3938 type FrameSystemExtensionsCheckWeight = Null;39393940 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (498) */3941 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;39423943 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (499) */3944 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}39453946 /** @name OpalRuntimeRuntime (500) */3947 type OpalRuntimeRuntime = Null;39483949 /** @name PalletEthereumFakeTransactionFinalizer (501) */3950 type PalletEthereumFakeTransactionFinalizer = Null;39513952} // declare moduletests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -175,5 +175,10 @@
[collectionParam, tokenParam],
'Option<u128>',
),
+ isApprovedForAll: fun(
+ 'Tells whether an operator is approved by a given owner.',
+ [collectionParam, crossAccountParam('owner'), crossAccountParam('operator')],
+ 'Option<bool>',
+ ),
},
};
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -1413,6 +1413,32 @@
getTokenObject(_collectionId: number, _tokenId: number): any {
return null;
}
+
+ /**
+ * Tells whether an operator is approved by a given owner.
+ * @param collectionId ID of collection
+ * @param owner owner address
+ * @param operator operator addrees
+ * @returns true if operator is enabled
+ */
+ async isApprovedForAll(collectionId: number, owner: ICrossAccountId, operator: ICrossAccountId): Promise<boolean> {
+ return (await this.helper.callRpc('api.rpc.unique.isApprovedForAll', [collectionId, owner, operator])).toJSON();
+ }
+
+ /** Sets or unsets the approval of a given operator.
+ * An operator is allowed to transfer all tokens of the sender on their behalf.
+ * @param operator Operator
+ * @param approved Is operator enabled or disabled
+ * @returns ```true``` if extrinsic success, otherwise ```false```
+ */
+ async setApprovalForAll(signer: TSigner, collectionId: number, operator: ICrossAccountId, approved: boolean): Promise<boolean> {
+ const result = await this.helper.executeExtrinsic(
+ signer,
+ 'api.tx.unique.setApprovalForAll', [collectionId, operator, approved],
+ true,
+ );
+ return this.helper.util.findCollectionInEvents(result.result.events, collectionId, 'common', 'ApprovedForAll');
+ }
}