difftreelog
added feature: repartition method in refungible palette. added tests: integration tests for repartition.
in: master
17 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6608,6 +6608,7 @@
"pallet-evm",
"pallet-evm-coder-substrate",
"pallet-nonfungible",
+ "pallet-refungible",
"parity-scale-codec 3.1.5",
"scale-info",
"serde",
pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -64,6 +64,8 @@
NotRefungibleDataUsedToMintFungibleCollectionToken,
/// Maximum refungibility exceeded
WrongRefungiblePieces,
+ /// Refungible token can't be repartitioned by user who isn't owns all pieces
+ RepartitionWhileNotOwningAllPieces,
/// Refungible token can't nest other tokens
RefungibleDisallowsNesting,
/// Setting item properties is not allowed
@@ -684,4 +686,28 @@
) -> DispatchResult {
Self::create_multiple_items(collection, sender, vec![data], nesting_budget)
}
+
+ pub fn repartition(
+ owner: &T::CrossAccountId,
+ collection: &RefungibleHandle<T>,
+ token: TokenId,
+ amount: u128,
+ ) -> DispatchResult {
+ ensure!(
+ amount <= MAX_REFUNGIBLE_PIECES,
+ <Error<T>>::WrongRefungiblePieces
+ );
+ ensure!(amount > 0, <CommonError<T>>::TokenValueTooLow);
+ // Ensure user owns all pieces
+ let total_supply = <TotalSupply<T>>::get((collection.id, token));
+ let balance = <Balance<T>>::get((collection.id, token, owner));
+ ensure!(
+ total_supply == balance,
+ <Error<T>>::RepartitionWhileNotOwningAllPieces
+ );
+
+ <Balance<T>>::insert((collection.id, token, owner), amount);
+ <TotalSupply<T>>::insert((collection.id, token), amount);
+ Ok(())
+ }
}
pallets/unique/Cargo.tomldiffbeforeafterboth--- a/pallets/unique/Cargo.toml
+++ b/pallets/unique/Cargo.toml
@@ -103,3 +103,4 @@
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
pallet-nonfungible = { default-features = false, path = '../../pallets/nonfungible' }
+pallet-refungible = { default-features = false, path = '../../pallets/refungible' }
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -27,7 +27,7 @@
use frame_support::{
decl_module, decl_storage, decl_error, decl_event,
dispatch::DispatchResult,
- ensure,
+ ensure, fail,
weights::{Weight},
transactional,
pallet_prelude::{DispatchResultWithPostInfo, ConstU32},
@@ -47,6 +47,7 @@
CollectionHandle, Pallet as PalletCommon, CommonWeightInfo, dispatch::dispatch_tx,
dispatch::CollectionDispatch,
};
+use pallet_refungible::{Pallet as PalletRefungible, RefungibleHandle};
pub mod eth;
#[cfg(feature = "runtime-benchmarks")]
@@ -65,10 +66,14 @@
ConfirmUnsetSponsorFail,
/// Length of items properties must be greater than 0.
EmptyArgument,
+ /// Repertition is only supported by refungible collection
+ RepartitionCalledOnNonRefungibleCollection,
}
}
-pub trait Config: system::Config + pallet_common::Config + Sized + TypeInfo {
+pub trait Config:
+ system::Config + pallet_common::Config + pallet_refungible::Config + Sized + TypeInfo
+{
type Event: From<Event<Self>> + Into<<Self as frame_system::Config>::Event>;
/// Weight information for extrinsics in this pallet.
@@ -898,5 +903,24 @@
target_collection.save()
}
+
+ #[weight = <SelfWeightOf<T>>::set_collection_limits()]
+ #[transactional]
+ pub fn repartition(
+ origin,
+ collection_id: CollectionId,
+ token: TokenId,
+ amount: u128,
+ ) -> DispatchResult {
+ let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);
+ let target_collection = <CollectionHandle<T>>::try_get(collection_id)?;
+ target_collection.check_is_internal()?;
+ let refungible_collection = match target_collection.mode {
+ CollectionMode::ReFungible => RefungibleHandle::cast(target_collection),
+ _ => fail!(<Error<T>>::RepartitionCalledOnNonRefungibleCollection),
+ };
+ <PalletRefungible<T>>::repartition(&sender, &refungible_collection, token, amount)?;
+ Ok(())
+ }
}
}
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -78,6 +78,7 @@
"testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",
"testLimits": "mocha --timeout 9999999 -r ts-node/register ./**/limits.test.ts",
"testEthCreateCollection": "mocha --timeout 9999999 -r ts-node/register ./**/eth/createCollection.test.ts",
+ "testRFT": "mocha --timeout 9999999 -r ts-node/register ./**/refungible.test.ts",
"polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",
"polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",
"polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",
tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-consts.ts
+++ b/tests/src/interfaces/augment-api-consts.ts
@@ -2,10 +2,10 @@
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api-base/types';
-import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
+import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Permill } from '@polkadot/types/interfaces/runtime';
-import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
+import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/consts' {
export interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -110,10 +110,6 @@
[key: string]: Codec;
};
transactionPayment: {
- /**
- * The polynomial that is applied in order to derive fee from length.
- **/
- lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
@@ -138,10 +134,6 @@
* transactions.
**/
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
- /**
- * The polynomial that is applied in order to derive fee from weight.
- **/
- weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
/**
* Generic const
**/
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -429,6 +429,10 @@
**/
RefungibleDisallowsNesting: AugmentedError<ApiType>;
/**
+ * Refungible token can't be repartitioned by user who isn't owns all pieces
+ **/
+ RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;
+ /**
* Setting item properties is not allowed
**/
SettingPropertiesNotAllowed: AugmentedError<ApiType>;
@@ -444,6 +448,7 @@
rmrkCore: {
CannotAcceptNonOwnedNft: AugmentedError<ApiType>;
CannotRejectNonOwnedNft: AugmentedError<ApiType>;
+ CannotRejectNonPendingNft: AugmentedError<ApiType>;
CannotSendToDescendentOrSelf: AugmentedError<ApiType>;
CollectionFullOrLocked: AugmentedError<ApiType>;
CollectionNotEmpty: AugmentedError<ApiType>;
@@ -452,10 +457,12 @@
NftTypeEncodeError: AugmentedError<ApiType>;
NoAvailableCollectionId: AugmentedError<ApiType>;
NoAvailableNftId: AugmentedError<ApiType>;
+ NoAvailableResourceId: AugmentedError<ApiType>;
NonTransferable: AugmentedError<ApiType>;
NoPermission: AugmentedError<ApiType>;
ResourceDoesntExist: AugmentedError<ApiType>;
ResourceNotPending: AugmentedError<ApiType>;
+ RmrkPropertyIsNotFound: AugmentedError<ApiType>;
RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;
RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;
UnableToDecodeRmrkData: AugmentedError<ApiType>;
@@ -469,6 +476,8 @@
NeedsDefaultThemeFirst: AugmentedError<ApiType>;
NoAvailableBaseId: AugmentedError<ApiType>;
NoAvailablePartId: AugmentedError<ApiType>;
+ NoEquippableOnFixedPart: AugmentedError<ApiType>;
+ PartDoesntExist: AugmentedError<ApiType>;
PermissionError: AugmentedError<ApiType>;
/**
* Generic error
@@ -599,6 +608,10 @@
**/
EmptyArgument: AugmentedError<ApiType>;
/**
+ * Repertition is only supported by refungible collection
+ **/
+ RepartitionCalledOnNonRefungibleCollection: AugmentedError<ApiType>;
+ /**
* Generic error
**/
[key: string]: 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
@@ -166,34 +166,28 @@
dmpQueue: {
/**
* Downward message executed with the given outcome.
- * \[ id, outcome \]
**/
- ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;
+ ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;
/**
* Downward message is invalid XCM.
- * \[ id \]
**/
- InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;
+ InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;
/**
* Downward message is overweight and was placed in the overweight queue.
- * \[ id, index, required \]
**/
- OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
+ OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;
/**
* Downward message from the overweight queue was executed.
- * \[ index, used \]
**/
- OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
+ OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;
/**
* Downward message is unsupported version of XCM.
- * \[ id \]
**/
- UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;
+ UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;
/**
* The weight limit for handling downward messages was reached.
- * \[ id, remaining, required \]
**/
- WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;
+ WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;
/**
* Generic event
**/
@@ -246,22 +240,20 @@
parachainSystem: {
/**
* Downward messages were processed using the given weight.
- * \[ weight_used, result_mqc_head \]
**/
- DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;
+ DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;
/**
* Some downward messages have been received and will be processed.
- * \[ count \]
**/
- DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;
+ DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;
/**
* An upgrade has been authorized.
**/
- UpgradeAuthorized: AugmentedEvent<ApiType, [H256]>;
+ UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;
/**
* The validation function was applied as of the contained relay chain block number.
**/
- ValidationFunctionApplied: AugmentedEvent<ApiType, [u32]>;
+ ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: u32 }>;
/**
* The relay-chain aborted the upgrade process.
**/
@@ -420,6 +412,7 @@
};
rmrkEquip: {
BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;
+ EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: u32 }>;
/**
* Generic event
**/
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -5,7 +5,7 @@
import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletUniqueSchedulerScheduledV3, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsTokenChild } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletUniqueSchedulerScheduledV3, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsTokenChild } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' {
@@ -228,6 +228,7 @@
* Used to enumerate tokens owned by account
**/
owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;
+ tokenAuxProperties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: UpDataStructsPropertyScope | 'None' | 'Rmrk' | number | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<Bytes>>, [u32, u32, UpDataStructsPropertyScope, Bytes]> & QueryableStorageEntry<ApiType, [u32, u32, UpDataStructsPropertyScope, Bytes]>;
/**
* Used to enumerate token's children
**/
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -5,7 +5,7 @@
import type { Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, FrameSupportScheduleMaybeHashed, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, FrameSupportScheduleMaybeHashed, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartEquippableList, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/submittable' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -361,11 +361,11 @@
/**
* accept the addition of a new resource to an existing NFT
**/
- acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* accept the removal of a resource of an existing NFT
**/
- acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
/**
* Create basic resource
**/
@@ -415,7 +415,7 @@
* - `metadata`: Arbitrary data about an nft, e.g. IPFS hash
* - `transferable`: Ability to transfer this NFT
**/
- mintNft: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option<AccountId32> | null | object | string | Uint8Array, royaltyAmount: Option<Permill> | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array, resources: Option<Vec<RmrkTraitsResourceResourceTypes>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Option<AccountId32>, Option<Permill>, Bytes, bool, Option<Vec<RmrkTraitsResourceResourceTypes>>]>;
+ mintNft: AugmentedSubmittable<(owner: Option<AccountId32> | null | object | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option<AccountId32> | null | object | string | Uint8Array, royaltyAmount: Option<Permill> | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array, resources: Option<Vec<RmrkTraitsResourceResourceTypes>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<AccountId32>, Option<Permill>, Bytes, bool, Option<Vec<RmrkTraitsResourceResourceTypes>>]>;
/**
* Rejects an NFT sent from another account to self or owned NFT
*
@@ -465,6 +465,7 @@
* RmrkPartsLimit
**/
createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec<RmrkTraitsPartPartType> | (RmrkTraitsPartPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Vec<RmrkTraitsPartPartType>]>;
+ equippable: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, slotId: u32 | AnyNumber | Uint8Array, equippables: RmrkTraitsPartEquippableList | { All: any } | { Empty: any } | { Custom: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsPartEquippableList]>;
/**
* Adds a Theme to a Base.
* Modeled after [themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md)
@@ -959,6 +960,7 @@
* * address.
**/
removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, token: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;
setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;
setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
import type { Data, StorageKey } from '@polkadot/types';
import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
@@ -489,7 +489,6 @@
FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;
FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;
FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;
- FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;
FrameSystemAccountInfo: FrameSystemAccountInfo;
FrameSystemCall: FrameSystemCall;
FrameSystemError: FrameSystemError;
@@ -1226,6 +1225,7 @@
UpDataStructsProperty: UpDataStructsProperty;
UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;
UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;
+ UpDataStructsPropertyScope: UpDataStructsPropertyScope;
UpDataStructsRpcCollection: UpDataStructsRpcCollection;
UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;
UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -31,17 +31,35 @@
/** @name CumulusPalletDmpQueueEvent */
export interface CumulusPalletDmpQueueEvent extends Enum {
readonly isInvalidFormat: boolean;
- readonly asInvalidFormat: U8aFixed;
+ readonly asInvalidFormat: {
+ readonly messageId: U8aFixed;
+ } & Struct;
readonly isUnsupportedVersion: boolean;
- readonly asUnsupportedVersion: U8aFixed;
+ readonly asUnsupportedVersion: {
+ readonly messageId: U8aFixed;
+ } & Struct;
readonly isExecutedDownward: boolean;
- readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;
+ readonly asExecutedDownward: {
+ readonly messageId: U8aFixed;
+ readonly outcome: XcmV2TraitsOutcome;
+ } & Struct;
readonly isWeightExhausted: boolean;
- readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;
+ readonly asWeightExhausted: {
+ readonly messageId: U8aFixed;
+ readonly remainingWeight: u64;
+ readonly requiredWeight: u64;
+ } & Struct;
readonly isOverweightEnqueued: boolean;
- readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;
+ readonly asOverweightEnqueued: {
+ readonly messageId: U8aFixed;
+ readonly overweightIndex: u64;
+ readonly requiredWeight: u64;
+ } & Struct;
readonly isOverweightServiced: boolean;
- readonly asOverweightServiced: ITuple<[u64, u64]>;
+ readonly asOverweightServiced: {
+ readonly overweightIndex: u64;
+ readonly weightUsed: u64;
+ } & Struct;
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';
}
@@ -90,14 +108,23 @@
export interface CumulusPalletParachainSystemEvent extends Enum {
readonly isValidationFunctionStored: boolean;
readonly isValidationFunctionApplied: boolean;
- readonly asValidationFunctionApplied: u32;
+ readonly asValidationFunctionApplied: {
+ readonly relayChainBlockNum: u32;
+ } & Struct;
readonly isValidationFunctionDiscarded: boolean;
readonly isUpgradeAuthorized: boolean;
- readonly asUpgradeAuthorized: H256;
+ readonly asUpgradeAuthorized: {
+ readonly codeHash: H256;
+ } & Struct;
readonly isDownwardMessagesReceived: boolean;
- readonly asDownwardMessagesReceived: u32;
+ readonly asDownwardMessagesReceived: {
+ readonly count: u32;
+ } & Struct;
readonly isDownwardMessagesProcessed: boolean;
- readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;
+ readonly asDownwardMessagesProcessed: {
+ readonly weightUsed: u64;
+ readonly dmqHead: H256;
+ } & Struct;
readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';
}
@@ -535,14 +562,6 @@
readonly write: u64;
}
-/** @name FrameSupportWeightsWeightToFeeCoefficient */
-export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
- readonly coeffInteger: u128;
- readonly coeffFrac: Perbill;
- readonly negative: bool;
- readonly degree: u8;
-}
-
/** @name FrameSystemAccountInfo */
export interface FrameSystemAccountInfo extends Struct {
readonly nonce: u32;
@@ -1175,9 +1194,10 @@
export interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
+ readonly isRepartitionWhileNotOwningAllPieces: boolean;
readonly isRefungibleDisallowsNesting: boolean;
readonly isSettingPropertiesNotAllowed: boolean;
- readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
+ readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
/** @name PalletRefungibleItemData */
@@ -1208,7 +1228,7 @@
} & Struct;
readonly isMintNft: boolean;
readonly asMintNft: {
- readonly owner: AccountId32;
+ readonly owner: Option<AccountId32>;
readonly collectionId: u32;
readonly recipient: Option<AccountId32>;
readonly royaltyAmount: Option<Permill>;
@@ -1243,13 +1263,13 @@
readonly asAcceptResource: {
readonly rmrkCollectionId: u32;
readonly rmrkNftId: u32;
- readonly rmrkResourceId: u32;
+ readonly resourceId: u32;
} & Struct;
readonly isAcceptResourceRemoval: boolean;
readonly asAcceptResourceRemoval: {
readonly rmrkCollectionId: u32;
readonly rmrkNftId: u32;
- readonly rmrkResourceId: u32;
+ readonly resourceId: u32;
} & Struct;
readonly isSetProperty: boolean;
readonly asSetProperty: {
@@ -1297,6 +1317,7 @@
readonly isNftTypeEncodeError: boolean;
readonly isRmrkPropertyKeyIsTooLong: boolean;
readonly isRmrkPropertyValueIsTooLong: boolean;
+ readonly isRmrkPropertyIsNotFound: boolean;
readonly isUnableToDecodeRmrkData: boolean;
readonly isCollectionNotEmpty: boolean;
readonly isNoAvailableCollectionId: boolean;
@@ -1309,8 +1330,10 @@
readonly isCannotSendToDescendentOrSelf: boolean;
readonly isCannotAcceptNonOwnedNft: boolean;
readonly isCannotRejectNonOwnedNft: boolean;
+ readonly isCannotRejectNonPendingNft: boolean;
readonly isResourceNotPending: boolean;
- readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';
+ readonly isNoAvailableResourceId: boolean;
+ readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
}
/** @name PalletRmrkCoreEvent */
@@ -1416,7 +1439,13 @@
readonly baseId: u32;
readonly theme: RmrkTraitsTheme;
} & Struct;
- readonly type: 'CreateBase' | 'ThemeAdd';
+ readonly isEquippable: boolean;
+ readonly asEquippable: {
+ readonly baseId: u32;
+ readonly slotId: u32;
+ readonly equippables: RmrkTraitsPartEquippableList;
+ } & Struct;
+ readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
}
/** @name PalletRmrkEquipError */
@@ -1426,7 +1455,9 @@
readonly isNoAvailablePartId: boolean;
readonly isBaseDoesntExist: boolean;
readonly isNeedsDefaultThemeFirst: boolean;
- readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';
+ readonly isPartDoesntExist: boolean;
+ readonly isNoEquippableOnFixedPart: boolean;
+ readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
}
/** @name PalletRmrkEquipEvent */
@@ -1436,7 +1467,12 @@
readonly issuer: AccountId32;
readonly baseId: u32;
} & Struct;
- readonly type: 'BaseCreated';
+ readonly isEquippablesUpdated: boolean;
+ readonly asEquippablesUpdated: {
+ readonly baseId: u32;
+ readonly slotId: u32;
+ } & Struct;
+ readonly type: 'BaseCreated' | 'EquippablesUpdated';
}
/** @name PalletStructureCall */
@@ -1750,7 +1786,13 @@
readonly collectionId: u32;
readonly newLimit: UpDataStructsCollectionPermissions;
} & 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';
+ readonly isRepartition: boolean;
+ readonly asRepartition: {
+ readonly collectionId: u32;
+ readonly token: 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';
}
/** @name PalletUniqueError */
@@ -1758,7 +1800,8 @@
readonly isCollectionDecimalPointLimitExceeded: boolean;
readonly isConfirmUnsetSponsorFail: boolean;
readonly isEmptyArgument: boolean;
- readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';
+ readonly isRepartitionCalledOnNonRefungibleCollection: boolean;
+ readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
}
/** @name PalletUniqueRawEvent */
@@ -2431,7 +2474,6 @@
readonly tokenOwner: bool;
readonly collectionAdmin: bool;
readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
- readonly permissive: bool;
}
/** @name UpDataStructsOwnerRestrictedSet */
@@ -2469,6 +2511,13 @@
readonly tokenOwner: bool;
}
+/** @name UpDataStructsPropertyScope */
+export interface UpDataStructsPropertyScope extends Enum {
+ readonly isNone: boolean;
+ readonly isRmrk: boolean;
+ readonly type: 'None' | 'Rmrk';
+}
+
/** @name UpDataStructsRpcCollection */
export interface UpDataStructsRpcCollection extends Struct {
readonly owner: AccountId32;
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -114,11 +114,20 @@
CumulusPalletParachainSystemEvent: {
_enum: {
ValidationFunctionStored: 'Null',
- ValidationFunctionApplied: 'u32',
+ ValidationFunctionApplied: {
+ relayChainBlockNum: 'u32',
+ },
ValidationFunctionDiscarded: 'Null',
- UpgradeAuthorized: 'H256',
- DownwardMessagesReceived: 'u32',
- DownwardMessagesProcessed: '(u64,H256)'
+ UpgradeAuthorized: {
+ codeHash: 'H256',
+ },
+ DownwardMessagesReceived: {
+ count: 'u32',
+ },
+ DownwardMessagesProcessed: {
+ weightUsed: 'u64',
+ dmqHead: 'H256'
+ }
}
},
/**
@@ -276,16 +285,7 @@
_enum: ['V1Ancient', 'V2']
},
/**
- * Lookup68: frame_support::weights::WeightToFeeCoefficient<Balance>
- **/
- FrameSupportWeightsWeightToFeeCoefficient: {
- coeffInteger: 'u128',
- coeffFrac: 'Perbill',
- negative: 'bool',
- degree: 'u8'
- },
- /**
- * Lookup70: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
+ * Lookup67: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
**/
PalletTreasuryProposal: {
proposer: 'AccountId32',
@@ -294,7 +294,7 @@
bond: 'u128'
},
/**
- * Lookup73: pallet_treasury::pallet::Call<T, I>
+ * Lookup70: pallet_treasury::pallet::Call<T, I>
**/
PalletTreasuryCall: {
_enum: {
@@ -314,7 +314,7 @@
}
},
/**
- * Lookup75: pallet_treasury::pallet::Event<T, I>
+ * Lookup72: pallet_treasury::pallet::Event<T, I>
**/
PalletTreasuryEvent: {
_enum: {
@@ -345,17 +345,17 @@
}
},
/**
- * Lookup78: frame_support::PalletId
+ * Lookup75: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
- * Lookup79: pallet_treasury::pallet::Error<T, I>
+ * Lookup76: pallet_treasury::pallet::Error<T, I>
**/
PalletTreasuryError: {
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'ProposalNotApproved']
},
/**
- * Lookup80: pallet_sudo::pallet::Call<T>
+ * Lookup77: pallet_sudo::pallet::Call<T>
**/
PalletSudoCall: {
_enum: {
@@ -379,7 +379,7 @@
}
},
/**
- * Lookup82: frame_system::pallet::Call<T>
+ * Lookup79: frame_system::pallet::Call<T>
**/
FrameSystemCall: {
_enum: {
@@ -417,7 +417,7 @@
}
},
/**
- * Lookup85: orml_vesting::module::Call<T>
+ * Lookup83: orml_vesting::module::Call<T>
**/
OrmlVestingModuleCall: {
_enum: {
@@ -436,7 +436,7 @@
}
},
/**
- * Lookup86: orml_vesting::VestingSchedule<BlockNumber, Balance>
+ * Lookup84: orml_vesting::VestingSchedule<BlockNumber, Balance>
**/
OrmlVestingVestingSchedule: {
start: 'u32',
@@ -445,7 +445,7 @@
perPeriod: 'Compact<u128>'
},
/**
- * Lookup88: cumulus_pallet_xcmp_queue::pallet::Call<T>
+ * Lookup86: cumulus_pallet_xcmp_queue::pallet::Call<T>
**/
CumulusPalletXcmpQueueCall: {
_enum: {
@@ -494,7 +494,7 @@
}
},
/**
- * Lookup89: pallet_xcm::pallet::Call<T>
+ * Lookup87: pallet_xcm::pallet::Call<T>
**/
PalletXcmCall: {
_enum: {
@@ -548,7 +548,7 @@
}
},
/**
- * Lookup90: xcm::VersionedMultiLocation
+ * Lookup88: xcm::VersionedMultiLocation
**/
XcmVersionedMultiLocation: {
_enum: {
@@ -557,7 +557,7 @@
}
},
/**
- * Lookup91: xcm::v0::multi_location::MultiLocation
+ * Lookup89: xcm::v0::multi_location::MultiLocation
**/
XcmV0MultiLocation: {
_enum: {
@@ -573,7 +573,7 @@
}
},
/**
- * Lookup92: xcm::v0::junction::Junction
+ * Lookup90: xcm::v0::junction::Junction
**/
XcmV0Junction: {
_enum: {
@@ -602,7 +602,7 @@
}
},
/**
- * Lookup93: xcm::v0::junction::NetworkId
+ * Lookup91: xcm::v0::junction::NetworkId
**/
XcmV0JunctionNetworkId: {
_enum: {
@@ -613,7 +613,7 @@
}
},
/**
- * Lookup94: xcm::v0::junction::BodyId
+ * Lookup92: xcm::v0::junction::BodyId
**/
XcmV0JunctionBodyId: {
_enum: {
@@ -627,7 +627,7 @@
}
},
/**
- * Lookup95: xcm::v0::junction::BodyPart
+ * Lookup93: xcm::v0::junction::BodyPart
**/
XcmV0JunctionBodyPart: {
_enum: {
@@ -650,14 +650,14 @@
}
},
/**
- * Lookup96: xcm::v1::multilocation::MultiLocation
+ * Lookup94: xcm::v1::multilocation::MultiLocation
**/
XcmV1MultiLocation: {
parents: 'u8',
interior: 'XcmV1MultilocationJunctions'
},
/**
- * Lookup97: xcm::v1::multilocation::Junctions
+ * Lookup95: xcm::v1::multilocation::Junctions
**/
XcmV1MultilocationJunctions: {
_enum: {
@@ -673,7 +673,7 @@
}
},
/**
- * Lookup98: xcm::v1::junction::Junction
+ * Lookup96: xcm::v1::junction::Junction
**/
XcmV1Junction: {
_enum: {
@@ -701,7 +701,7 @@
}
},
/**
- * Lookup99: xcm::VersionedXcm<Call>
+ * Lookup97: xcm::VersionedXcm<Call>
**/
XcmVersionedXcm: {
_enum: {
@@ -711,7 +711,7 @@
}
},
/**
- * Lookup100: xcm::v0::Xcm<Call>
+ * Lookup98: xcm::v0::Xcm<Call>
**/
XcmV0Xcm: {
_enum: {
@@ -765,7 +765,7 @@
}
},
/**
- * Lookup102: xcm::v0::multi_asset::MultiAsset
+ * Lookup100: xcm::v0::multi_asset::MultiAsset
**/
XcmV0MultiAsset: {
_enum: {
@@ -804,7 +804,7 @@
}
},
/**
- * Lookup103: xcm::v1::multiasset::AssetInstance
+ * Lookup101: xcm::v1::multiasset::AssetInstance
**/
XcmV1MultiassetAssetInstance: {
_enum: {
@@ -818,7 +818,7 @@
}
},
/**
- * Lookup106: xcm::v0::order::Order<Call>
+ * Lookup104: xcm::v0::order::Order<Call>
**/
XcmV0Order: {
_enum: {
@@ -861,7 +861,7 @@
}
},
/**
- * Lookup108: xcm::v0::Response
+ * Lookup106: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -869,19 +869,19 @@
}
},
/**
- * Lookup109: xcm::v0::OriginKind
+ * Lookup107: xcm::v0::OriginKind
**/
XcmV0OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
- * Lookup110: xcm::double_encoded::DoubleEncoded<T>
+ * Lookup108: xcm::double_encoded::DoubleEncoded<T>
**/
XcmDoubleEncoded: {
encoded: 'Bytes'
},
/**
- * Lookup111: xcm::v1::Xcm<Call>
+ * Lookup109: xcm::v1::Xcm<Call>
**/
XcmV1Xcm: {
_enum: {
@@ -940,18 +940,18 @@
}
},
/**
- * Lookup112: xcm::v1::multiasset::MultiAssets
+ * Lookup110: xcm::v1::multiasset::MultiAssets
**/
XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
/**
- * Lookup114: xcm::v1::multiasset::MultiAsset
+ * Lookup112: xcm::v1::multiasset::MultiAsset
**/
XcmV1MultiAsset: {
id: 'XcmV1MultiassetAssetId',
fun: 'XcmV1MultiassetFungibility'
},
/**
- * Lookup115: xcm::v1::multiasset::AssetId
+ * Lookup113: xcm::v1::multiasset::AssetId
**/
XcmV1MultiassetAssetId: {
_enum: {
@@ -960,7 +960,7 @@
}
},
/**
- * Lookup116: xcm::v1::multiasset::Fungibility
+ * Lookup114: xcm::v1::multiasset::Fungibility
**/
XcmV1MultiassetFungibility: {
_enum: {
@@ -969,7 +969,7 @@
}
},
/**
- * Lookup118: xcm::v1::order::Order<Call>
+ * Lookup116: xcm::v1::order::Order<Call>
**/
XcmV1Order: {
_enum: {
@@ -1014,7 +1014,7 @@
}
},
/**
- * Lookup119: xcm::v1::multiasset::MultiAssetFilter
+ * Lookup117: xcm::v1::multiasset::MultiAssetFilter
**/
XcmV1MultiassetMultiAssetFilter: {
_enum: {
@@ -1023,7 +1023,7 @@
}
},
/**
- * Lookup120: xcm::v1::multiasset::WildMultiAsset
+ * Lookup118: xcm::v1::multiasset::WildMultiAsset
**/
XcmV1MultiassetWildMultiAsset: {
_enum: {
@@ -1035,13 +1035,13 @@
}
},
/**
- * Lookup121: xcm::v1::multiasset::WildFungibility
+ * Lookup119: xcm::v1::multiasset::WildFungibility
**/
XcmV1MultiassetWildFungibility: {
_enum: ['Fungible', 'NonFungible']
},
/**
- * Lookup123: xcm::v1::Response
+ * Lookup121: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -1050,11 +1050,11 @@
}
},
/**
- * Lookup124: xcm::v2::Xcm<Call>
+ * Lookup122: xcm::v2::Xcm<Call>
**/
XcmV2Xcm: 'Vec<XcmV2Instruction>',
/**
- * Lookup126: xcm::v2::Instruction<Call>
+ * Lookup124: xcm::v2::Instruction<Call>
**/
XcmV2Instruction: {
_enum: {
@@ -1152,7 +1152,7 @@
}
},
/**
- * Lookup127: xcm::v2::Response
+ * Lookup125: xcm::v2::Response
**/
XcmV2Response: {
_enum: {
@@ -1163,7 +1163,7 @@
}
},
/**
- * Lookup130: xcm::v2::traits::Error
+ * Lookup128: xcm::v2::traits::Error
**/
XcmV2TraitsError: {
_enum: {
@@ -1196,7 +1196,7 @@
}
},
/**
- * Lookup131: xcm::v2::WeightLimit
+ * Lookup129: xcm::v2::WeightLimit
**/
XcmV2WeightLimit: {
_enum: {
@@ -1205,7 +1205,7 @@
}
},
/**
- * Lookup132: xcm::VersionedMultiAssets
+ * Lookup130: xcm::VersionedMultiAssets
**/
XcmVersionedMultiAssets: {
_enum: {
@@ -1214,11 +1214,11 @@
}
},
/**
- * Lookup147: cumulus_pallet_xcm::pallet::Call<T>
+ * Lookup145: cumulus_pallet_xcm::pallet::Call<T>
**/
CumulusPalletXcmCall: 'Null',
/**
- * Lookup148: cumulus_pallet_dmp_queue::pallet::Call<T>
+ * Lookup146: cumulus_pallet_dmp_queue::pallet::Call<T>
**/
CumulusPalletDmpQueueCall: {
_enum: {
@@ -1229,7 +1229,7 @@
}
},
/**
- * Lookup149: pallet_inflation::pallet::Call<T>
+ * Lookup147: pallet_inflation::pallet::Call<T>
**/
PalletInflationCall: {
_enum: {
@@ -1239,7 +1239,7 @@
}
},
/**
- * Lookup150: pallet_unique::Call<T>
+ * Lookup148: pallet_unique::Call<T>
**/
PalletUniqueCall: {
_enum: {
@@ -1361,12 +1361,17 @@
},
set_collection_permissions: {
collectionId: 'u32',
- newLimit: 'UpDataStructsCollectionPermissions'
+ newLimit: 'UpDataStructsCollectionPermissions',
+ },
+ repartition: {
+ collectionId: 'u32',
+ token: 'u32',
+ amount: 'u128'
}
}
},
/**
- * Lookup156: up_data_structs::CollectionMode
+ * Lookup154: up_data_structs::CollectionMode
**/
UpDataStructsCollectionMode: {
_enum: {
@@ -1376,7 +1381,7 @@
}
},
/**
- * Lookup157: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+ * Lookup155: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
**/
UpDataStructsCreateCollectionData: {
mode: 'UpDataStructsCollectionMode',
@@ -1391,13 +1396,13 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup159: up_data_structs::AccessMode
+ * Lookup157: up_data_structs::AccessMode
**/
UpDataStructsAccessMode: {
_enum: ['Normal', 'AllowList']
},
/**
- * Lookup162: up_data_structs::CollectionLimits
+ * Lookup160: up_data_structs::CollectionLimits
**/
UpDataStructsCollectionLimits: {
accountTokenOwnershipLimit: 'Option<u32>',
@@ -1411,7 +1416,7 @@
transfersEnabled: 'Option<bool>'
},
/**
- * Lookup164: up_data_structs::SponsoringRateLimit
+ * Lookup162: up_data_structs::SponsoringRateLimit
**/
UpDataStructsSponsoringRateLimit: {
_enum: {
@@ -1420,7 +1425,7 @@
}
},
/**
- * Lookup167: up_data_structs::CollectionPermissions
+ * Lookup165: up_data_structs::CollectionPermissions
**/
UpDataStructsCollectionPermissions: {
access: 'Option<UpDataStructsAccessMode>',
@@ -1428,27 +1433,26 @@
nesting: 'Option<UpDataStructsNestingPermissions>'
},
/**
- * Lookup169: up_data_structs::NestingPermissions
+ * Lookup167: up_data_structs::NestingPermissions
**/
UpDataStructsNestingPermissions: {
tokenOwner: 'bool',
collectionAdmin: 'bool',
- restricted: 'Option<UpDataStructsOwnerRestrictedSet>',
- permissive: 'bool'
+ restricted: 'Option<UpDataStructsOwnerRestrictedSet>'
},
/**
- * Lookup171: up_data_structs::OwnerRestrictedSet
+ * Lookup169: up_data_structs::OwnerRestrictedSet
**/
UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
/**
- * Lookup177: up_data_structs::PropertyKeyPermission
+ * Lookup175: up_data_structs::PropertyKeyPermission
**/
UpDataStructsPropertyKeyPermission: {
key: 'Bytes',
permission: 'UpDataStructsPropertyPermission'
},
/**
- * Lookup179: up_data_structs::PropertyPermission
+ * Lookup177: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
mutable: 'bool',
@@ -1456,14 +1460,14 @@
tokenOwner: 'bool'
},
/**
- * Lookup182: up_data_structs::Property
+ * Lookup180: up_data_structs::Property
**/
UpDataStructsProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup185: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
+ * Lookup183: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
**/
PalletEvmAccountBasicCrossAccountIdRepr: {
_enum: {
@@ -1472,7 +1476,7 @@
}
},
/**
- * Lookup187: up_data_structs::CreateItemData
+ * Lookup185: up_data_structs::CreateItemData
**/
UpDataStructsCreateItemData: {
_enum: {
@@ -1482,26 +1486,26 @@
}
},
/**
- * Lookup188: up_data_structs::CreateNftData
+ * Lookup186: up_data_structs::CreateNftData
**/
UpDataStructsCreateNftData: {
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup189: up_data_structs::CreateFungibleData
+ * Lookup187: up_data_structs::CreateFungibleData
**/
UpDataStructsCreateFungibleData: {
value: 'u128'
},
/**
- * Lookup190: up_data_structs::CreateReFungibleData
+ * Lookup188: up_data_structs::CreateReFungibleData
**/
UpDataStructsCreateReFungibleData: {
constData: 'Bytes',
pieces: 'u128'
},
/**
- * Lookup195: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup193: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
@@ -1512,21 +1516,21 @@
}
},
/**
- * Lookup197: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup195: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup204: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup202: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExData: {
constData: 'Bytes',
users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'
},
/**
- * Lookup206: pallet_unique_scheduler::pallet::Call<T>
+ * Lookup204: pallet_unique_scheduler::pallet::Call<T>
**/
PalletUniqueSchedulerCall: {
_enum: {
@@ -1550,7 +1554,7 @@
}
},
/**
- * Lookup208: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
+ * Lookup206: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
**/
FrameSupportScheduleMaybeHashed: {
_enum: {
@@ -1559,15 +1563,15 @@
}
},
/**
- * Lookup209: pallet_template_transaction_payment::Call<T>
+ * Lookup207: pallet_template_transaction_payment::Call<T>
**/
PalletTemplateTransactionPaymentCall: 'Null',
/**
- * Lookup210: pallet_structure::pallet::Call<T>
+ * Lookup208: pallet_structure::pallet::Call<T>
**/
PalletStructureCall: 'Null',
/**
- * Lookup211: pallet_rmrk_core::pallet::Call<T>
+ * Lookup209: pallet_rmrk_core::pallet::Call<T>
**/
PalletRmrkCoreCall: {
_enum: {
@@ -1587,7 +1591,7 @@
collectionId: 'u32',
},
mint_nft: {
- owner: 'AccountId32',
+ owner: 'Option<AccountId32>',
collectionId: 'u32',
recipient: 'Option<AccountId32>',
royaltyAmount: 'Option<Permill>',
@@ -1617,12 +1621,12 @@
accept_resource: {
rmrkCollectionId: 'u32',
rmrkNftId: 'u32',
- rmrkResourceId: 'u32',
+ resourceId: 'u32',
},
accept_resource_removal: {
rmrkCollectionId: 'u32',
rmrkNftId: 'u32',
- rmrkResourceId: 'u32',
+ resourceId: 'u32',
},
set_property: {
rmrkCollectionId: 'Compact<u32>',
@@ -1658,7 +1662,7 @@
}
},
/**
- * Lookup217: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup215: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceTypes: {
_enum: {
@@ -1668,7 +1672,7 @@
}
},
/**
- * Lookup219: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup217: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceBasicResource: {
src: 'Option<Bytes>',
@@ -1677,7 +1681,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup221: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup219: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceComposableResource: {
parts: 'Vec<u32>',
@@ -1688,7 +1692,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup222: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup220: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceSlotResource: {
base: 'u32',
@@ -1699,7 +1703,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup224: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
+ * Lookup222: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
**/
RmrkTraitsNftAccountIdOrCollectionNftTuple: {
_enum: {
@@ -1708,7 +1712,7 @@
}
},
/**
- * Lookup228: pallet_rmrk_equip::pallet::Call<T>
+ * Lookup226: pallet_rmrk_equip::pallet::Call<T>
**/
PalletRmrkEquipCall: {
_enum: {
@@ -1719,12 +1723,17 @@
},
theme_add: {
baseId: 'u32',
- theme: 'RmrkTraitsTheme'
+ theme: 'RmrkTraitsTheme',
+ },
+ equippable: {
+ baseId: 'u32',
+ slotId: 'u32',
+ equippables: 'RmrkTraitsPartEquippableList'
}
}
},
/**
- * Lookup230: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup229: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartPartType: {
_enum: {
@@ -1733,7 +1742,7 @@
}
},
/**
- * Lookup232: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup231: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartFixedPart: {
id: 'u32',
@@ -1741,7 +1750,7 @@
src: 'Bytes'
},
/**
- * Lookup233: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup232: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartSlotPart: {
id: 'u32',
@@ -1750,7 +1759,7 @@
z: 'u32'
},
/**
- * Lookup234: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup233: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartEquippableList: {
_enum: {
@@ -1760,7 +1769,7 @@
}
},
/**
- * Lookup236: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, PropertyList>
+ * Lookup235: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>, S>>
**/
RmrkTraitsTheme: {
name: 'Bytes',
@@ -1768,7 +1777,7 @@
inherit: 'bool'
},
/**
- * Lookup238: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup237: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsThemeThemeProperty: {
key: 'Bytes',
@@ -2166,12 +2175,30 @@
**/
CumulusPalletDmpQueueEvent: {
_enum: {
- InvalidFormat: '[u8;32]',
- UnsupportedVersion: '[u8;32]',
- ExecutedDownward: '([u8;32],XcmV2TraitsOutcome)',
- WeightExhausted: '([u8;32],u64,u64)',
- OverweightEnqueued: '([u8;32],u64,u64)',
- OverweightServiced: '(u64,u64)'
+ InvalidFormat: {
+ messageId: '[u8;32]',
+ },
+ UnsupportedVersion: {
+ messageId: '[u8;32]',
+ },
+ ExecutedDownward: {
+ messageId: '[u8;32]',
+ outcome: 'XcmV2TraitsOutcome',
+ },
+ WeightExhausted: {
+ messageId: '[u8;32]',
+ remainingWeight: 'u64',
+ requiredWeight: 'u64',
+ },
+ OverweightEnqueued: {
+ messageId: '[u8;32]',
+ overweightIndex: 'u64',
+ requiredWeight: 'u64',
+ },
+ OverweightServiced: {
+ overweightIndex: 'u64',
+ weightUsed: 'u64'
+ }
}
},
/**
@@ -2332,7 +2359,11 @@
_enum: {
BaseCreated: {
issuer: 'AccountId32',
- baseId: 'u32'
+ baseId: 'u32',
+ },
+ EquippablesUpdated: {
+ baseId: 'u32',
+ slotId: 'u32'
}
}
},
@@ -2597,7 +2628,7 @@
* Lookup344: pallet_unique::Error<T>
**/
PalletUniqueError: {
- _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument']
+ _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
},
/**
* Lookup347: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
@@ -2926,7 +2957,7 @@
* Lookup393: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
- _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
+ _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
* Lookup394: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
@@ -2935,37 +2966,43 @@
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup396: pallet_nonfungible::pallet::Error<T>
+ * Lookup396: up_data_structs::PropertyScope
+ **/
+ UpDataStructsPropertyScope: {
+ _enum: ['None', 'Rmrk']
+ },
+ /**
+ * Lookup398: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup397: pallet_structure::pallet::Error<T>
+ * Lookup399: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
_enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
},
/**
- * Lookup398: pallet_rmrk_core::pallet::Error<T>
+ * Lookup400: pallet_rmrk_core::pallet::Error<T>
**/
PalletRmrkCoreError: {
- _enum: ['CorruptedCollectionType', 'NftTypeEncodeError', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'ResourceNotPending']
+ _enum: ['CorruptedCollectionType', 'NftTypeEncodeError', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']
},
/**
- * Lookup400: pallet_rmrk_equip::pallet::Error<T>
+ * Lookup402: pallet_rmrk_equip::pallet::Error<T>
**/
PalletRmrkEquipError: {
- _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst']
+ _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
},
/**
- * Lookup403: pallet_evm::pallet::Error<T>
+ * Lookup405: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
},
/**
- * Lookup406: fp_rpc::TransactionStatus
+ * Lookup408: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -2977,11 +3014,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup408: ethbloom::Bloom
+ * Lookup410: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup410: ethereum::receipt::ReceiptV3
+ * Lookup412: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -2991,7 +3028,7 @@
}
},
/**
- * Lookup411: ethereum::receipt::EIP658ReceiptData
+ * Lookup413: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -3000,7 +3037,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup412: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup414: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3008,7 +3045,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup413: ethereum::header::Header
+ * Lookup415: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3028,41 +3065,41 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup414: ethereum_types::hash::H64
+ * Lookup416: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup419: pallet_ethereum::pallet::Error<T>
+ * Lookup421: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup420: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup422: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup421: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup423: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup423: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup425: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission']
},
/**
- * Lookup424: pallet_evm_migration::pallet::Error<T>
+ * Lookup426: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
},
/**
- * Lookup426: sp_runtime::MultiSignature
+ * Lookup428: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3072,43 +3109,43 @@
}
},
/**
- * Lookup427: sp_core::ed25519::Signature
+ * Lookup429: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup429: sp_core::sr25519::Signature
+ * Lookup431: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup430: sp_core::ecdsa::Signature
+ * Lookup432: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup433: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup435: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup434: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup436: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup437: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup439: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup438: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup440: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup439: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup441: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup440: opal_runtime::Runtime
+ * Lookup442: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup441: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup443: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/registry.tsdiffbeforeafterboth--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
export interface InterfaceTypes {
@@ -59,7 +59,6 @@
FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;
FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;
FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;
- FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;
FrameSystemAccountInfo: FrameSystemAccountInfo;
FrameSystemCall: FrameSystemCall;
FrameSystemError: FrameSystemError;
@@ -204,6 +203,7 @@
UpDataStructsProperty: UpDataStructsProperty;
UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;
UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;
+ UpDataStructsPropertyScope: UpDataStructsPropertyScope;
UpDataStructsRpcCollection: UpDataStructsRpcCollection;
UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;
UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth108 export interface CumulusPalletParachainSystemEvent extends Enum {108 export interface CumulusPalletParachainSystemEvent extends Enum {109 readonly isValidationFunctionStored: boolean;109 readonly isValidationFunctionStored: boolean;110 readonly isValidationFunctionApplied: boolean;110 readonly isValidationFunctionApplied: boolean;111 readonly asValidationFunctionApplied: u32;111 readonly asValidationFunctionApplied: {112 readonly relayChainBlockNum: u32;113 } & Struct;112 readonly isValidationFunctionDiscarded: boolean;114 readonly isValidationFunctionDiscarded: boolean;113 readonly isUpgradeAuthorized: boolean;115 readonly isUpgradeAuthorized: boolean;114 readonly asUpgradeAuthorized: H256;116 readonly asUpgradeAuthorized: {117 readonly codeHash: H256;118 } & Struct;115 readonly isDownwardMessagesReceived: boolean;119 readonly isDownwardMessagesReceived: boolean;116 readonly asDownwardMessagesReceived: u32;120 readonly asDownwardMessagesReceived: {121 readonly count: u32;122 } & Struct;117 readonly isDownwardMessagesProcessed: boolean;123 readonly isDownwardMessagesProcessed: boolean;118 readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;124 readonly asDownwardMessagesProcessed: {125 readonly weightUsed: u64;126 readonly dmqHead: H256;127 } & Struct;119 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';128 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';120 }129 }121130300 readonly type: 'V1Ancient' | 'V2';309 readonly type: 'V1Ancient' | 'V2';301 }310 }302303 /** @name FrameSupportWeightsWeightToFeeCoefficient (68) */304 export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {305 readonly coeffInteger: u128;306 readonly coeffFrac: Perbill;307 readonly negative: bool;308 readonly degree: u8;309 }310311311 /** @name PalletTreasuryProposal (70) */312 /** @name PalletTreasuryProposal (67) */312 export interface PalletTreasuryProposal extends Struct {313 export interface PalletTreasuryProposal extends Struct {313 readonly proposer: AccountId32;314 readonly proposer: AccountId32;314 readonly value: u128;315 readonly value: u128;315 readonly beneficiary: AccountId32;316 readonly beneficiary: AccountId32;316 readonly bond: u128;317 readonly bond: u128;317 }318 }318319319 /** @name PalletTreasuryCall (73) */320 /** @name PalletTreasuryCall (70) */320 export interface PalletTreasuryCall extends Enum {321 export interface PalletTreasuryCall extends Enum {321 readonly isProposeSpend: boolean;322 readonly isProposeSpend: boolean;322 readonly asProposeSpend: {323 readonly asProposeSpend: {338 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';339 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';339 }340 }340341341 /** @name PalletTreasuryEvent (75) */342 /** @name PalletTreasuryEvent (72) */342 export interface PalletTreasuryEvent extends Enum {343 export interface PalletTreasuryEvent extends Enum {343 readonly isProposed: boolean;344 readonly isProposed: boolean;344 readonly asProposed: {345 readonly asProposed: {374 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';375 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';375 }376 }376377377 /** @name FrameSupportPalletId (78) */378 /** @name FrameSupportPalletId (75) */378 export interface FrameSupportPalletId extends U8aFixed {}379 export interface FrameSupportPalletId extends U8aFixed {}379380380 /** @name PalletTreasuryError (79) */381 /** @name PalletTreasuryError (76) */381 export interface PalletTreasuryError extends Enum {382 export interface PalletTreasuryError extends Enum {382 readonly isInsufficientProposersBalance: boolean;383 readonly isInsufficientProposersBalance: boolean;383 readonly isInvalidIndex: boolean;384 readonly isInvalidIndex: boolean;386 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';387 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';387 }388 }388389389 /** @name PalletSudoCall (80) */390 /** @name PalletSudoCall (77) */390 export interface PalletSudoCall extends Enum {391 export interface PalletSudoCall extends Enum {391 readonly isSudo: boolean;392 readonly isSudo: boolean;392 readonly asSudo: {393 readonly asSudo: {409 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';410 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';410 }411 }411412412 /** @name FrameSystemCall (82) */413 /** @name FrameSystemCall (79) */413 export interface FrameSystemCall extends Enum {414 export interface FrameSystemCall extends Enum {414 readonly isFillBlock: boolean;415 readonly isFillBlock: boolean;415 readonly asFillBlock: {416 readonly asFillBlock: {451 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';452 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';452 }453 }453454454 /** @name OrmlVestingModuleCall (85) */455 /** @name OrmlVestingModuleCall (83) */455 export interface OrmlVestingModuleCall extends Enum {456 export interface OrmlVestingModuleCall extends Enum {456 readonly isClaim: boolean;457 readonly isClaim: boolean;457 readonly isVestedTransfer: boolean;458 readonly isVestedTransfer: boolean;471 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';472 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';472 }473 }473474474 /** @name OrmlVestingVestingSchedule (86) */475 /** @name OrmlVestingVestingSchedule (84) */475 export interface OrmlVestingVestingSchedule extends Struct {476 export interface OrmlVestingVestingSchedule extends Struct {476 readonly start: u32;477 readonly start: u32;477 readonly period: u32;478 readonly period: u32;478 readonly periodCount: u32;479 readonly periodCount: u32;479 readonly perPeriod: Compact<u128>;480 readonly perPeriod: Compact<u128>;480 }481 }481482482 /** @name CumulusPalletXcmpQueueCall (88) */483 /** @name CumulusPalletXcmpQueueCall (86) */483 export interface CumulusPalletXcmpQueueCall extends Enum {484 export interface CumulusPalletXcmpQueueCall extends Enum {484 readonly isServiceOverweight: boolean;485 readonly isServiceOverweight: boolean;485 readonly asServiceOverweight: {486 readonly asServiceOverweight: {515 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';516 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';516 }517 }517518518 /** @name PalletXcmCall (89) */519 /** @name PalletXcmCall (87) */519 export interface PalletXcmCall extends Enum {520 export interface PalletXcmCall extends Enum {520 readonly isSend: boolean;521 readonly isSend: boolean;521 readonly asSend: {522 readonly asSend: {577 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';578 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';578 }579 }579580580 /** @name XcmVersionedMultiLocation (90) */581 /** @name XcmVersionedMultiLocation (88) */581 export interface XcmVersionedMultiLocation extends Enum {582 export interface XcmVersionedMultiLocation extends Enum {582 readonly isV0: boolean;583 readonly isV0: boolean;583 readonly asV0: XcmV0MultiLocation;584 readonly asV0: XcmV0MultiLocation;586 readonly type: 'V0' | 'V1';587 readonly type: 'V0' | 'V1';587 }588 }588589589 /** @name XcmV0MultiLocation (91) */590 /** @name XcmV0MultiLocation (89) */590 export interface XcmV0MultiLocation extends Enum {591 export interface XcmV0MultiLocation extends Enum {591 readonly isNull: boolean;592 readonly isNull: boolean;592 readonly isX1: boolean;593 readonly isX1: boolean;608 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';609 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';609 }610 }610611611 /** @name XcmV0Junction (92) */612 /** @name XcmV0Junction (90) */612 export interface XcmV0Junction extends Enum {613 export interface XcmV0Junction extends Enum {613 readonly isParent: boolean;614 readonly isParent: boolean;614 readonly isParachain: boolean;615 readonly isParachain: boolean;643 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';644 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';644 }645 }645646646 /** @name XcmV0JunctionNetworkId (93) */647 /** @name XcmV0JunctionNetworkId (91) */647 export interface XcmV0JunctionNetworkId extends Enum {648 export interface XcmV0JunctionNetworkId extends Enum {648 readonly isAny: boolean;649 readonly isAny: boolean;649 readonly isNamed: boolean;650 readonly isNamed: boolean;653 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';654 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';654 }655 }655656656 /** @name XcmV0JunctionBodyId (94) */657 /** @name XcmV0JunctionBodyId (92) */657 export interface XcmV0JunctionBodyId extends Enum {658 export interface XcmV0JunctionBodyId extends Enum {658 readonly isUnit: boolean;659 readonly isUnit: boolean;659 readonly isNamed: boolean;660 readonly isNamed: boolean;667 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';668 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';668 }669 }669670670 /** @name XcmV0JunctionBodyPart (95) */671 /** @name XcmV0JunctionBodyPart (93) */671 export interface XcmV0JunctionBodyPart extends Enum {672 export interface XcmV0JunctionBodyPart extends Enum {672 readonly isVoice: boolean;673 readonly isVoice: boolean;673 readonly isMembers: boolean;674 readonly isMembers: boolean;692 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';693 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';693 }694 }694695695 /** @name XcmV1MultiLocation (96) */696 /** @name XcmV1MultiLocation (94) */696 export interface XcmV1MultiLocation extends Struct {697 export interface XcmV1MultiLocation extends Struct {697 readonly parents: u8;698 readonly parents: u8;698 readonly interior: XcmV1MultilocationJunctions;699 readonly interior: XcmV1MultilocationJunctions;699 }700 }700701701 /** @name XcmV1MultilocationJunctions (97) */702 /** @name XcmV1MultilocationJunctions (95) */702 export interface XcmV1MultilocationJunctions extends Enum {703 export interface XcmV1MultilocationJunctions extends Enum {703 readonly isHere: boolean;704 readonly isHere: boolean;704 readonly isX1: boolean;705 readonly isX1: boolean;720 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';721 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';721 }722 }722723723 /** @name XcmV1Junction (98) */724 /** @name XcmV1Junction (96) */724 export interface XcmV1Junction extends Enum {725 export interface XcmV1Junction extends Enum {725 readonly isParachain: boolean;726 readonly isParachain: boolean;726 readonly asParachain: Compact<u32>;727 readonly asParachain: Compact<u32>;754 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';755 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';755 }756 }756757757 /** @name XcmVersionedXcm (99) */758 /** @name XcmVersionedXcm (97) */758 export interface XcmVersionedXcm extends Enum {759 export interface XcmVersionedXcm extends Enum {759 readonly isV0: boolean;760 readonly isV0: boolean;760 readonly asV0: XcmV0Xcm;761 readonly asV0: XcmV0Xcm;765 readonly type: 'V0' | 'V1' | 'V2';766 readonly type: 'V0' | 'V1' | 'V2';766 }767 }767768768 /** @name XcmV0Xcm (100) */769 /** @name XcmV0Xcm (98) */769 export interface XcmV0Xcm extends Enum {770 export interface XcmV0Xcm extends Enum {770 readonly isWithdrawAsset: boolean;771 readonly isWithdrawAsset: boolean;771 readonly asWithdrawAsset: {772 readonly asWithdrawAsset: {828 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';829 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';829 }830 }830831831 /** @name XcmV0MultiAsset (102) */832 /** @name XcmV0MultiAsset (100) */832 export interface XcmV0MultiAsset extends Enum {833 export interface XcmV0MultiAsset extends Enum {833 readonly isNone: boolean;834 readonly isNone: boolean;834 readonly isAll: boolean;835 readonly isAll: boolean;873 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';874 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';874 }875 }875876876 /** @name XcmV1MultiassetAssetInstance (103) */877 /** @name XcmV1MultiassetAssetInstance (101) */877 export interface XcmV1MultiassetAssetInstance extends Enum {878 export interface XcmV1MultiassetAssetInstance extends Enum {878 readonly isUndefined: boolean;879 readonly isUndefined: boolean;879 readonly isIndex: boolean;880 readonly isIndex: boolean;891 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';892 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';892 }893 }893894894 /** @name XcmV0Order (106) */895 /** @name XcmV0Order (104) */895 export interface XcmV0Order extends Enum {896 export interface XcmV0Order extends Enum {896 readonly isNull: boolean;897 readonly isNull: boolean;897 readonly isDepositAsset: boolean;898 readonly isDepositAsset: boolean;939 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';940 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';940 }941 }941942942 /** @name XcmV0Response (108) */943 /** @name XcmV0Response (106) */943 export interface XcmV0Response extends Enum {944 export interface XcmV0Response extends Enum {944 readonly isAssets: boolean;945 readonly isAssets: boolean;945 readonly asAssets: Vec<XcmV0MultiAsset>;946 readonly asAssets: Vec<XcmV0MultiAsset>;946 readonly type: 'Assets';947 readonly type: 'Assets';947 }948 }948949949 /** @name XcmV0OriginKind (109) */950 /** @name XcmV0OriginKind (107) */950 export interface XcmV0OriginKind extends Enum {951 export interface XcmV0OriginKind extends Enum {951 readonly isNative: boolean;952 readonly isNative: boolean;952 readonly isSovereignAccount: boolean;953 readonly isSovereignAccount: boolean;955 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';956 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';956 }957 }957958958 /** @name XcmDoubleEncoded (110) */959 /** @name XcmDoubleEncoded (108) */959 export interface XcmDoubleEncoded extends Struct {960 export interface XcmDoubleEncoded extends Struct {960 readonly encoded: Bytes;961 readonly encoded: Bytes;961 }962 }962963963 /** @name XcmV1Xcm (111) */964 /** @name XcmV1Xcm (109) */964 export interface XcmV1Xcm extends Enum {965 export interface XcmV1Xcm extends Enum {965 readonly isWithdrawAsset: boolean;966 readonly isWithdrawAsset: boolean;966 readonly asWithdrawAsset: {967 readonly asWithdrawAsset: {1029 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1030 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1030 }1031 }103110321032 /** @name XcmV1MultiassetMultiAssets (112) */1033 /** @name XcmV1MultiassetMultiAssets (110) */1033 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}1034 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}103410351035 /** @name XcmV1MultiAsset (114) */1036 /** @name XcmV1MultiAsset (112) */1036 export interface XcmV1MultiAsset extends Struct {1037 export interface XcmV1MultiAsset extends Struct {1037 readonly id: XcmV1MultiassetAssetId;1038 readonly id: XcmV1MultiassetAssetId;1038 readonly fun: XcmV1MultiassetFungibility;1039 readonly fun: XcmV1MultiassetFungibility;1039 }1040 }104010411041 /** @name XcmV1MultiassetAssetId (115) */1042 /** @name XcmV1MultiassetAssetId (113) */1042 export interface XcmV1MultiassetAssetId extends Enum {1043 export interface XcmV1MultiassetAssetId extends Enum {1043 readonly isConcrete: boolean;1044 readonly isConcrete: boolean;1044 readonly asConcrete: XcmV1MultiLocation;1045 readonly asConcrete: XcmV1MultiLocation;1047 readonly type: 'Concrete' | 'Abstract';1048 readonly type: 'Concrete' | 'Abstract';1048 }1049 }104910501050 /** @name XcmV1MultiassetFungibility (116) */1051 /** @name XcmV1MultiassetFungibility (114) */1051 export interface XcmV1MultiassetFungibility extends Enum {1052 export interface XcmV1MultiassetFungibility extends Enum {1052 readonly isFungible: boolean;1053 readonly isFungible: boolean;1053 readonly asFungible: Compact<u128>;1054 readonly asFungible: Compact<u128>;1056 readonly type: 'Fungible' | 'NonFungible';1057 readonly type: 'Fungible' | 'NonFungible';1057 }1058 }105810591059 /** @name XcmV1Order (118) */1060 /** @name XcmV1Order (116) */1060 export interface XcmV1Order extends Enum {1061 export interface XcmV1Order extends Enum {1061 readonly isNoop: boolean;1062 readonly isNoop: boolean;1062 readonly isDepositAsset: boolean;1063 readonly isDepositAsset: boolean;1106 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1107 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1107 }1108 }110811091109 /** @name XcmV1MultiassetMultiAssetFilter (119) */1110 /** @name XcmV1MultiassetMultiAssetFilter (117) */1110 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1111 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1111 readonly isDefinite: boolean;1112 readonly isDefinite: boolean;1112 readonly asDefinite: XcmV1MultiassetMultiAssets;1113 readonly asDefinite: XcmV1MultiassetMultiAssets;1115 readonly type: 'Definite' | 'Wild';1116 readonly type: 'Definite' | 'Wild';1116 }1117 }111711181118 /** @name XcmV1MultiassetWildMultiAsset (120) */1119 /** @name XcmV1MultiassetWildMultiAsset (118) */1119 export interface XcmV1MultiassetWildMultiAsset extends Enum {1120 export interface XcmV1MultiassetWildMultiAsset extends Enum {1120 readonly isAll: boolean;1121 readonly isAll: boolean;1121 readonly isAllOf: boolean;1122 readonly isAllOf: boolean;1126 readonly type: 'All' | 'AllOf';1127 readonly type: 'All' | 'AllOf';1127 }1128 }112811291129 /** @name XcmV1MultiassetWildFungibility (121) */1130 /** @name XcmV1MultiassetWildFungibility (119) */1130 export interface XcmV1MultiassetWildFungibility extends Enum {1131 export interface XcmV1MultiassetWildFungibility extends Enum {1131 readonly isFungible: boolean;1132 readonly isFungible: boolean;1132 readonly isNonFungible: boolean;1133 readonly isNonFungible: boolean;1133 readonly type: 'Fungible' | 'NonFungible';1134 readonly type: 'Fungible' | 'NonFungible';1134 }1135 }113511361136 /** @name XcmV1Response (123) */1137 /** @name XcmV1Response (121) */1137 export interface XcmV1Response extends Enum {1138 export interface XcmV1Response extends Enum {1138 readonly isAssets: boolean;1139 readonly isAssets: boolean;1139 readonly asAssets: XcmV1MultiassetMultiAssets;1140 readonly asAssets: XcmV1MultiassetMultiAssets;1142 readonly type: 'Assets' | 'Version';1143 readonly type: 'Assets' | 'Version';1143 }1144 }114411451145 /** @name XcmV2Xcm (124) */1146 /** @name XcmV2Xcm (122) */1146 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}1147 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}114711481148 /** @name XcmV2Instruction (126) */1149 /** @name XcmV2Instruction (124) */1149 export interface XcmV2Instruction extends Enum {1150 export interface XcmV2Instruction extends Enum {1150 readonly isWithdrawAsset: boolean;1151 readonly isWithdrawAsset: boolean;1151 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1152 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1265 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';1266 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';1266 }1267 }126712681268 /** @name XcmV2Response (127) */1269 /** @name XcmV2Response (125) */1269 export interface XcmV2Response extends Enum {1270 export interface XcmV2Response extends Enum {1270 readonly isNull: boolean;1271 readonly isNull: boolean;1271 readonly isAssets: boolean;1272 readonly isAssets: boolean;1277 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1278 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1278 }1279 }127912801280 /** @name XcmV2TraitsError (130) */1281 /** @name XcmV2TraitsError (128) */1281 export interface XcmV2TraitsError extends Enum {1282 export interface XcmV2TraitsError extends Enum {1282 readonly isOverflow: boolean;1283 readonly isOverflow: boolean;1283 readonly isUnimplemented: boolean;1284 readonly isUnimplemented: boolean;1310 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';1311 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';1311 }1312 }131213131313 /** @name XcmV2WeightLimit (131) */1314 /** @name XcmV2WeightLimit (129) */1314 export interface XcmV2WeightLimit extends Enum {1315 export interface XcmV2WeightLimit extends Enum {1315 readonly isUnlimited: boolean;1316 readonly isUnlimited: boolean;1316 readonly isLimited: boolean;1317 readonly isLimited: boolean;1317 readonly asLimited: Compact<u64>;1318 readonly asLimited: Compact<u64>;1318 readonly type: 'Unlimited' | 'Limited';1319 readonly type: 'Unlimited' | 'Limited';1319 }1320 }132013211321 /** @name XcmVersionedMultiAssets (132) */1322 /** @name XcmVersionedMultiAssets (130) */1322 export interface XcmVersionedMultiAssets extends Enum {1323 export interface XcmVersionedMultiAssets extends Enum {1323 readonly isV0: boolean;1324 readonly isV0: boolean;1324 readonly asV0: Vec<XcmV0MultiAsset>;1325 readonly asV0: Vec<XcmV0MultiAsset>;1327 readonly type: 'V0' | 'V1';1328 readonly type: 'V0' | 'V1';1328 }1329 }132913301330 /** @name CumulusPalletXcmCall (147) */1331 /** @name CumulusPalletXcmCall (145) */1331 export type CumulusPalletXcmCall = Null;1332 export type CumulusPalletXcmCall = Null;133213331333 /** @name CumulusPalletDmpQueueCall (148) */1334 /** @name CumulusPalletDmpQueueCall (146) */1334 export interface CumulusPalletDmpQueueCall extends Enum {1335 export interface CumulusPalletDmpQueueCall extends Enum {1335 readonly isServiceOverweight: boolean;1336 readonly isServiceOverweight: boolean;1336 readonly asServiceOverweight: {1337 readonly asServiceOverweight: {1340 readonly type: 'ServiceOverweight';1341 readonly type: 'ServiceOverweight';1341 }1342 }134213431343 /** @name PalletInflationCall (149) */1344 /** @name PalletInflationCall (147) */1344 export interface PalletInflationCall extends Enum {1345 export interface PalletInflationCall extends Enum {1345 readonly isStartInflation: boolean;1346 readonly isStartInflation: boolean;1346 readonly asStartInflation: {1347 readonly asStartInflation: {1349 readonly type: 'StartInflation';1350 readonly type: 'StartInflation';1350 }1351 }135113521352 /** @name PalletUniqueCall (150) */1353 /** @name PalletUniqueCall (148) */1353 export interface PalletUniqueCall extends Enum {1354 export interface PalletUniqueCall extends Enum {1354 readonly isCreateCollection: boolean;1355 readonly isCreateCollection: boolean;1355 readonly asCreateCollection: {1356 readonly asCreateCollection: {1498 readonly collectionId: u32;1499 readonly collectionId: u32;1499 readonly newLimit: UpDataStructsCollectionPermissions;1500 readonly newLimit: UpDataStructsCollectionPermissions;1500 } & Struct;1501 } & Struct;1502 readonly isRepartition: boolean;1503 readonly asRepartition: {1504 readonly collectionId: u32;1505 readonly token: u32;1506 readonly amount: u128;1507 } & Struct;1501 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';1508 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';1502 }1509 }150315101504 /** @name UpDataStructsCollectionMode (156) */1511 /** @name UpDataStructsCollectionMode (154) */1505 export interface UpDataStructsCollectionMode extends Enum {1512 export interface UpDataStructsCollectionMode extends Enum {1506 readonly isNft: boolean;1513 readonly isNft: boolean;1507 readonly isFungible: boolean;1514 readonly isFungible: boolean;1510 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1517 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1511 }1518 }151215191513 /** @name UpDataStructsCreateCollectionData (157) */1520 /** @name UpDataStructsCreateCollectionData (155) */1514 export interface UpDataStructsCreateCollectionData extends Struct {1521 export interface UpDataStructsCreateCollectionData extends Struct {1515 readonly mode: UpDataStructsCollectionMode;1522 readonly mode: UpDataStructsCollectionMode;1516 readonly access: Option<UpDataStructsAccessMode>;1523 readonly access: Option<UpDataStructsAccessMode>;1524 readonly properties: Vec<UpDataStructsProperty>;1531 readonly properties: Vec<UpDataStructsProperty>;1525 }1532 }152615331527 /** @name UpDataStructsAccessMode (159) */1534 /** @name UpDataStructsAccessMode (157) */1528 export interface UpDataStructsAccessMode extends Enum {1535 export interface UpDataStructsAccessMode extends Enum {1529 readonly isNormal: boolean;1536 readonly isNormal: boolean;1530 readonly isAllowList: boolean;1537 readonly isAllowList: boolean;1531 readonly type: 'Normal' | 'AllowList';1538 readonly type: 'Normal' | 'AllowList';1532 }1539 }153315401534 /** @name UpDataStructsCollectionLimits (162) */1541 /** @name UpDataStructsCollectionLimits (160) */1535 export interface UpDataStructsCollectionLimits extends Struct {1542 export interface UpDataStructsCollectionLimits extends Struct {1536 readonly accountTokenOwnershipLimit: Option<u32>;1543 readonly accountTokenOwnershipLimit: Option<u32>;1537 readonly sponsoredDataSize: Option<u32>;1544 readonly sponsoredDataSize: Option<u32>;1544 readonly transfersEnabled: Option<bool>;1551 readonly transfersEnabled: Option<bool>;1545 }1552 }154615531547 /** @name UpDataStructsSponsoringRateLimit (164) */1554 /** @name UpDataStructsSponsoringRateLimit (162) */1548 export interface UpDataStructsSponsoringRateLimit extends Enum {1555 export interface UpDataStructsSponsoringRateLimit extends Enum {1549 readonly isSponsoringDisabled: boolean;1556 readonly isSponsoringDisabled: boolean;1550 readonly isBlocks: boolean;1557 readonly isBlocks: boolean;1551 readonly asBlocks: u32;1558 readonly asBlocks: u32;1552 readonly type: 'SponsoringDisabled' | 'Blocks';1559 readonly type: 'SponsoringDisabled' | 'Blocks';1553 }1560 }155415611555 /** @name UpDataStructsCollectionPermissions (167) */1562 /** @name UpDataStructsCollectionPermissions (165) */1556 export interface UpDataStructsCollectionPermissions extends Struct {1563 export interface UpDataStructsCollectionPermissions extends Struct {1557 readonly access: Option<UpDataStructsAccessMode>;1564 readonly access: Option<UpDataStructsAccessMode>;1558 readonly mintMode: Option<bool>;1565 readonly mintMode: Option<bool>;1559 readonly nesting: Option<UpDataStructsNestingPermissions>;1566 readonly nesting: Option<UpDataStructsNestingPermissions>;1560 }1567 }156115681562 /** @name UpDataStructsNestingPermissions (169) */1569 /** @name UpDataStructsNestingPermissions (167) */1563 export interface UpDataStructsNestingPermissions extends Struct {1570 export interface UpDataStructsNestingPermissions extends Struct {1564 readonly tokenOwner: bool;1571 readonly tokenOwner: bool;1565 readonly collectionAdmin: bool;1572 readonly collectionAdmin: bool;1566 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;1573 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;1567 readonly permissive: bool;1568 }1574 }156915751570 /** @name UpDataStructsOwnerRestrictedSet (171) */1576 /** @name UpDataStructsOwnerRestrictedSet (169) */1571 export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}1577 export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}157215781573 /** @name UpDataStructsPropertyKeyPermission (177) */1579 /** @name UpDataStructsPropertyKeyPermission (175) */1574 export interface UpDataStructsPropertyKeyPermission extends Struct {1580 export interface UpDataStructsPropertyKeyPermission extends Struct {1575 readonly key: Bytes;1581 readonly key: Bytes;1576 readonly permission: UpDataStructsPropertyPermission;1582 readonly permission: UpDataStructsPropertyPermission;1577 }1583 }157815841579 /** @name UpDataStructsPropertyPermission (179) */1585 /** @name UpDataStructsPropertyPermission (177) */1580 export interface UpDataStructsPropertyPermission extends Struct {1586 export interface UpDataStructsPropertyPermission extends Struct {1581 readonly mutable: bool;1587 readonly mutable: bool;1582 readonly collectionAdmin: bool;1588 readonly collectionAdmin: bool;1583 readonly tokenOwner: bool;1589 readonly tokenOwner: bool;1584 }1590 }158515911586 /** @name UpDataStructsProperty (182) */1592 /** @name UpDataStructsProperty (180) */1587 export interface UpDataStructsProperty extends Struct {1593 export interface UpDataStructsProperty extends Struct {1588 readonly key: Bytes;1594 readonly key: Bytes;1589 readonly value: Bytes;1595 readonly value: Bytes;1590 }1596 }159115971592 /** @name PalletEvmAccountBasicCrossAccountIdRepr (185) */1598 /** @name PalletEvmAccountBasicCrossAccountIdRepr (183) */1593 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1599 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1594 readonly isSubstrate: boolean;1600 readonly isSubstrate: boolean;1595 readonly asSubstrate: AccountId32;1601 readonly asSubstrate: AccountId32;1598 readonly type: 'Substrate' | 'Ethereum';1604 readonly type: 'Substrate' | 'Ethereum';1599 }1605 }160016061601 /** @name UpDataStructsCreateItemData (187) */1607 /** @name UpDataStructsCreateItemData (185) */1602 export interface UpDataStructsCreateItemData extends Enum {1608 export interface UpDataStructsCreateItemData extends Enum {1603 readonly isNft: boolean;1609 readonly isNft: boolean;1604 readonly asNft: UpDataStructsCreateNftData;1610 readonly asNft: UpDataStructsCreateNftData;1609 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1615 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1610 }1616 }161116171612 /** @name UpDataStructsCreateNftData (188) */1618 /** @name UpDataStructsCreateNftData (186) */1613 export interface UpDataStructsCreateNftData extends Struct {1619 export interface UpDataStructsCreateNftData extends Struct {1614 readonly properties: Vec<UpDataStructsProperty>;1620 readonly properties: Vec<UpDataStructsProperty>;1615 }1621 }161616221617 /** @name UpDataStructsCreateFungibleData (189) */1623 /** @name UpDataStructsCreateFungibleData (187) */1618 export interface UpDataStructsCreateFungibleData extends Struct {1624 export interface UpDataStructsCreateFungibleData extends Struct {1619 readonly value: u128;1625 readonly value: u128;1620 }1626 }162116271622 /** @name UpDataStructsCreateReFungibleData (190) */1628 /** @name UpDataStructsCreateReFungibleData (188) */1623 export interface UpDataStructsCreateReFungibleData extends Struct {1629 export interface UpDataStructsCreateReFungibleData extends Struct {1624 readonly constData: Bytes;1630 readonly constData: Bytes;1625 readonly pieces: u128;1631 readonly pieces: u128;1626 }1632 }162716331628 /** @name UpDataStructsCreateItemExData (195) */1634 /** @name UpDataStructsCreateItemExData (193) */1629 export interface UpDataStructsCreateItemExData extends Enum {1635 export interface UpDataStructsCreateItemExData extends Enum {1630 readonly isNft: boolean;1636 readonly isNft: boolean;1631 readonly asNft: Vec<UpDataStructsCreateNftExData>;1637 readonly asNft: Vec<UpDataStructsCreateNftExData>;1638 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1644 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1639 }1645 }164016461641 /** @name UpDataStructsCreateNftExData (197) */1647 /** @name UpDataStructsCreateNftExData (195) */1642 export interface UpDataStructsCreateNftExData extends Struct {1648 export interface UpDataStructsCreateNftExData extends Struct {1643 readonly properties: Vec<UpDataStructsProperty>;1649 readonly properties: Vec<UpDataStructsProperty>;1644 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1650 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1645 }1651 }164616521647 /** @name UpDataStructsCreateRefungibleExData (204) */1653 /** @name UpDataStructsCreateRefungibleExData (202) */1648 export interface UpDataStructsCreateRefungibleExData extends Struct {1654 export interface UpDataStructsCreateRefungibleExData extends Struct {1649 readonly constData: Bytes;1655 readonly constData: Bytes;1650 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1656 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1651 }1657 }165216581653 /** @name PalletUniqueSchedulerCall (206) */1659 /** @name PalletUniqueSchedulerCall (204) */1654 export interface PalletUniqueSchedulerCall extends Enum {1660 export interface PalletUniqueSchedulerCall extends Enum {1655 readonly isScheduleNamed: boolean;1661 readonly isScheduleNamed: boolean;1656 readonly asScheduleNamed: {1662 readonly asScheduleNamed: {1675 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1681 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1676 }1682 }167716831678 /** @name FrameSupportScheduleMaybeHashed (208) */1684 /** @name FrameSupportScheduleMaybeHashed (206) */1679 export interface FrameSupportScheduleMaybeHashed extends Enum {1685 export interface FrameSupportScheduleMaybeHashed extends Enum {1680 readonly isValue: boolean;1686 readonly isValue: boolean;1681 readonly asValue: Call;1687 readonly asValue: Call;1684 readonly type: 'Value' | 'Hash';1690 readonly type: 'Value' | 'Hash';1685 }1691 }168616921687 /** @name PalletTemplateTransactionPaymentCall (209) */1693 /** @name PalletTemplateTransactionPaymentCall (207) */1688 export type PalletTemplateTransactionPaymentCall = Null;1694 export type PalletTemplateTransactionPaymentCall = Null;168916951690 /** @name PalletStructureCall (210) */1696 /** @name PalletStructureCall (208) */1691 export type PalletStructureCall = Null;1697 export type PalletStructureCall = Null;169216981693 /** @name PalletRmrkCoreCall (211) */1699 /** @name PalletRmrkCoreCall (209) */1694 export interface PalletRmrkCoreCall extends Enum {1700 export interface PalletRmrkCoreCall extends Enum {1695 readonly isCreateCollection: boolean;1701 readonly isCreateCollection: boolean;1696 readonly asCreateCollection: {1702 readonly asCreateCollection: {1713 } & Struct;1719 } & Struct;1714 readonly isMintNft: boolean;1720 readonly isMintNft: boolean;1715 readonly asMintNft: {1721 readonly asMintNft: {1716 readonly owner: AccountId32;1722 readonly owner: Option<AccountId32>;1717 readonly collectionId: u32;1723 readonly collectionId: u32;1718 readonly recipient: Option<AccountId32>;1724 readonly recipient: Option<AccountId32>;1719 readonly royaltyAmount: Option<Permill>;1725 readonly royaltyAmount: Option<Permill>;1748 readonly asAcceptResource: {1754 readonly asAcceptResource: {1749 readonly rmrkCollectionId: u32;1755 readonly rmrkCollectionId: u32;1750 readonly rmrkNftId: u32;1756 readonly rmrkNftId: u32;1751 readonly rmrkResourceId: u32;1757 readonly resourceId: u32;1752 } & Struct;1758 } & Struct;1753 readonly isAcceptResourceRemoval: boolean;1759 readonly isAcceptResourceRemoval: boolean;1754 readonly asAcceptResourceRemoval: {1760 readonly asAcceptResourceRemoval: {1755 readonly rmrkCollectionId: u32;1761 readonly rmrkCollectionId: u32;1756 readonly rmrkNftId: u32;1762 readonly rmrkNftId: u32;1757 readonly rmrkResourceId: u32;1763 readonly resourceId: u32;1758 } & Struct;1764 } & Struct;1759 readonly isSetProperty: boolean;1765 readonly isSetProperty: boolean;1760 readonly asSetProperty: {1766 readonly asSetProperty: {1796 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1802 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1797 }1803 }179818041799 /** @name RmrkTraitsResourceResourceTypes (217) */1805 /** @name RmrkTraitsResourceResourceTypes (215) */1800 export interface RmrkTraitsResourceResourceTypes extends Enum {1806 export interface RmrkTraitsResourceResourceTypes extends Enum {1801 readonly isBasic: boolean;1807 readonly isBasic: boolean;1802 readonly asBasic: RmrkTraitsResourceBasicResource;1808 readonly asBasic: RmrkTraitsResourceBasicResource;1807 readonly type: 'Basic' | 'Composable' | 'Slot';1813 readonly type: 'Basic' | 'Composable' | 'Slot';1808 }1814 }180918151810 /** @name RmrkTraitsResourceBasicResource (219) */1816 /** @name RmrkTraitsResourceBasicResource (217) */1811 export interface RmrkTraitsResourceBasicResource extends Struct {1817 export interface RmrkTraitsResourceBasicResource extends Struct {1812 readonly src: Option<Bytes>;1818 readonly src: Option<Bytes>;1813 readonly metadata: Option<Bytes>;1819 readonly metadata: Option<Bytes>;1814 readonly license: Option<Bytes>;1820 readonly license: Option<Bytes>;1815 readonly thumb: Option<Bytes>;1821 readonly thumb: Option<Bytes>;1816 }1822 }181718231818 /** @name RmrkTraitsResourceComposableResource (221) */1824 /** @name RmrkTraitsResourceComposableResource (219) */1819 export interface RmrkTraitsResourceComposableResource extends Struct {1825 export interface RmrkTraitsResourceComposableResource extends Struct {1820 readonly parts: Vec<u32>;1826 readonly parts: Vec<u32>;1821 readonly base: u32;1827 readonly base: u32;1825 readonly thumb: Option<Bytes>;1831 readonly thumb: Option<Bytes>;1826 }1832 }182718331828 /** @name RmrkTraitsResourceSlotResource (222) */1834 /** @name RmrkTraitsResourceSlotResource (220) */1829 export interface RmrkTraitsResourceSlotResource extends Struct {1835 export interface RmrkTraitsResourceSlotResource extends Struct {1830 readonly base: u32;1836 readonly base: u32;1831 readonly src: Option<Bytes>;1837 readonly src: Option<Bytes>;1835 readonly thumb: Option<Bytes>;1841 readonly thumb: Option<Bytes>;1836 }1842 }183718431838 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (224) */1844 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (222) */1839 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1845 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1840 readonly isAccountId: boolean;1846 readonly isAccountId: boolean;1841 readonly asAccountId: AccountId32;1847 readonly asAccountId: AccountId32;1844 readonly type: 'AccountId' | 'CollectionAndNftTuple';1850 readonly type: 'AccountId' | 'CollectionAndNftTuple';1845 }1851 }184618521847 /** @name PalletRmrkEquipCall (228) */1853 /** @name PalletRmrkEquipCall (226) */1848 export interface PalletRmrkEquipCall extends Enum {1854 export interface PalletRmrkEquipCall extends Enum {1849 readonly isCreateBase: boolean;1855 readonly isCreateBase: boolean;1850 readonly asCreateBase: {1856 readonly asCreateBase: {1857 readonly baseId: u32;1863 readonly baseId: u32;1858 readonly theme: RmrkTraitsTheme;1864 readonly theme: RmrkTraitsTheme;1859 } & Struct;1865 } & Struct;1866 readonly isEquippable: boolean;1867 readonly asEquippable: {1868 readonly baseId: u32;1869 readonly slotId: u32;1870 readonly equippables: RmrkTraitsPartEquippableList;1871 } & Struct;1860 readonly type: 'CreateBase' | 'ThemeAdd';1872 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';1861 }1873 }186218741863 /** @name RmrkTraitsPartPartType (230) */1875 /** @name RmrkTraitsPartPartType (229) */1864 export interface RmrkTraitsPartPartType extends Enum {1876 export interface RmrkTraitsPartPartType extends Enum {1865 readonly isFixedPart: boolean;1877 readonly isFixedPart: boolean;1866 readonly asFixedPart: RmrkTraitsPartFixedPart;1878 readonly asFixedPart: RmrkTraitsPartFixedPart;1869 readonly type: 'FixedPart' | 'SlotPart';1881 readonly type: 'FixedPart' | 'SlotPart';1870 }1882 }187118831872 /** @name RmrkTraitsPartFixedPart (232) */1884 /** @name RmrkTraitsPartFixedPart (231) */1873 export interface RmrkTraitsPartFixedPart extends Struct {1885 export interface RmrkTraitsPartFixedPart extends Struct {1874 readonly id: u32;1886 readonly id: u32;1875 readonly z: u32;1887 readonly z: u32;1876 readonly src: Bytes;1888 readonly src: Bytes;1877 }1889 }187818901879 /** @name RmrkTraitsPartSlotPart (233) */1891 /** @name RmrkTraitsPartSlotPart (232) */1880 export interface RmrkTraitsPartSlotPart extends Struct {1892 export interface RmrkTraitsPartSlotPart extends Struct {1881 readonly id: u32;1893 readonly id: u32;1882 readonly equippable: RmrkTraitsPartEquippableList;1894 readonly equippable: RmrkTraitsPartEquippableList;1883 readonly src: Bytes;1895 readonly src: Bytes;1884 readonly z: u32;1896 readonly z: u32;1885 }1897 }188618981887 /** @name RmrkTraitsPartEquippableList (234) */1899 /** @name RmrkTraitsPartEquippableList (233) */1888 export interface RmrkTraitsPartEquippableList extends Enum {1900 export interface RmrkTraitsPartEquippableList extends Enum {1889 readonly isAll: boolean;1901 readonly isAll: boolean;1890 readonly isEmpty: boolean;1902 readonly isEmpty: boolean;1893 readonly type: 'All' | 'Empty' | 'Custom';1905 readonly type: 'All' | 'Empty' | 'Custom';1894 }1906 }189519071896 /** @name RmrkTraitsTheme (236) */1908 /** @name RmrkTraitsTheme (235) */1897 export interface RmrkTraitsTheme extends Struct {1909 export interface RmrkTraitsTheme extends Struct {1898 readonly name: Bytes;1910 readonly name: Bytes;1899 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1911 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1900 readonly inherit: bool;1912 readonly inherit: bool;1901 }1913 }190219141903 /** @name RmrkTraitsThemeThemeProperty (238) */1915 /** @name RmrkTraitsThemeThemeProperty (237) */1904 export interface RmrkTraitsThemeThemeProperty extends Struct {1916 export interface RmrkTraitsThemeThemeProperty extends Struct {1905 readonly key: Bytes;1917 readonly key: Bytes;1906 readonly value: Bytes;1918 readonly value: Bytes;2323 /** @name CumulusPalletDmpQueueEvent (284) */2335 /** @name CumulusPalletDmpQueueEvent (284) */2324 export interface CumulusPalletDmpQueueEvent extends Enum {2336 export interface CumulusPalletDmpQueueEvent extends Enum {2325 readonly isInvalidFormat: boolean;2337 readonly isInvalidFormat: boolean;2326 readonly asInvalidFormat: U8aFixed;2338 readonly asInvalidFormat: {2339 readonly messageId: U8aFixed;2340 } & Struct;2327 readonly isUnsupportedVersion: boolean;2341 readonly isUnsupportedVersion: boolean;2328 readonly asUnsupportedVersion: U8aFixed;2342 readonly asUnsupportedVersion: {2343 readonly messageId: U8aFixed;2344 } & Struct;2329 readonly isExecutedDownward: boolean;2345 readonly isExecutedDownward: boolean;2330 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2346 readonly asExecutedDownward: {2347 readonly messageId: U8aFixed;2348 readonly outcome: XcmV2TraitsOutcome;2349 } & Struct;2331 readonly isWeightExhausted: boolean;2350 readonly isWeightExhausted: boolean;2332 readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;2351 readonly asWeightExhausted: {2352 readonly messageId: U8aFixed;2353 readonly remainingWeight: u64;2354 readonly requiredWeight: u64;2355 } & Struct;2333 readonly isOverweightEnqueued: boolean;2356 readonly isOverweightEnqueued: boolean;2334 readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;2357 readonly asOverweightEnqueued: {2358 readonly messageId: U8aFixed;2359 readonly overweightIndex: u64;2360 readonly requiredWeight: u64;2361 } & Struct;2335 readonly isOverweightServiced: boolean;2362 readonly isOverweightServiced: boolean;2336 readonly asOverweightServiced: ITuple<[u64, u64]>;2363 readonly asOverweightServiced: {2364 readonly overweightIndex: u64;2365 readonly weightUsed: u64;2366 } & Struct;2337 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2367 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2338 }2368 }233923692527 readonly issuer: AccountId32;2557 readonly issuer: AccountId32;2528 readonly baseId: u32;2558 readonly baseId: u32;2529 } & Struct;2559 } & Struct;2560 readonly isEquippablesUpdated: boolean;2561 readonly asEquippablesUpdated: {2562 readonly baseId: u32;2563 readonly slotId: u32;2564 } & Struct;2530 readonly type: 'BaseCreated';2565 readonly type: 'BaseCreated' | 'EquippablesUpdated';2531 }2566 }253225672533 /** @name PalletEvmEvent (293) */2568 /** @name PalletEvmEvent (293) */2814 readonly isCollectionDecimalPointLimitExceeded: boolean;2849 readonly isCollectionDecimalPointLimitExceeded: boolean;2815 readonly isConfirmUnsetSponsorFail: boolean;2850 readonly isConfirmUnsetSponsorFail: boolean;2816 readonly isEmptyArgument: boolean;2851 readonly isEmptyArgument: boolean;2852 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;2817 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2853 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';2818 }2854 }281928552820 /** @name PalletUniqueSchedulerScheduledV3 (347) */2856 /** @name PalletUniqueSchedulerScheduledV3 (347) */3067 export interface PalletRefungibleError extends Enum {3103 export interface PalletRefungibleError extends Enum {3068 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3104 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3069 readonly isWrongRefungiblePieces: boolean;3105 readonly isWrongRefungiblePieces: boolean;3106 readonly isRepartitionWhileNotOwningAllPieces: boolean;3070 readonly isRefungibleDisallowsNesting: boolean;3107 readonly isRefungibleDisallowsNesting: boolean;3071 readonly isSettingPropertiesNotAllowed: boolean;3108 readonly isSettingPropertiesNotAllowed: boolean;3072 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3109 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3073 }3110 }307431113075 /** @name PalletNonfungibleItemData (394) */3112 /** @name PalletNonfungibleItemData (394) */3076 export interface PalletNonfungibleItemData extends Struct {3113 export interface PalletNonfungibleItemData extends Struct {3077 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3114 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3078 }3115 }31163117 /** @name UpDataStructsPropertyScope (396) */3118 export interface UpDataStructsPropertyScope extends Enum {3119 readonly isNone: boolean;3120 readonly isRmrk: boolean;3121 readonly type: 'None' | 'Rmrk';3122 }307931233080 /** @name PalletNonfungibleError (396) */3124 /** @name PalletNonfungibleError (398) */3081 export interface PalletNonfungibleError extends Enum {3125 export interface PalletNonfungibleError extends Enum {3082 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3126 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3083 readonly isNonfungibleItemsHaveNoAmount: boolean;3127 readonly isNonfungibleItemsHaveNoAmount: boolean;3084 readonly isCantBurnNftWithChildren: boolean;3128 readonly isCantBurnNftWithChildren: boolean;3085 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3129 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3086 }3130 }308731313088 /** @name PalletStructureError (397) */3132 /** @name PalletStructureError (399) */3089 export interface PalletStructureError extends Enum {3133 export interface PalletStructureError extends Enum {3090 readonly isOuroborosDetected: boolean;3134 readonly isOuroborosDetected: boolean;3091 readonly isDepthLimit: boolean;3135 readonly isDepthLimit: boolean;3094 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3138 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3095 }3139 }309631403097 /** @name PalletRmrkCoreError (398) */3141 /** @name PalletRmrkCoreError (400) */3098 export interface PalletRmrkCoreError extends Enum {3142 export interface PalletRmrkCoreError extends Enum {3099 readonly isCorruptedCollectionType: boolean;3143 readonly isCorruptedCollectionType: boolean;3100 readonly isNftTypeEncodeError: boolean;3144 readonly isNftTypeEncodeError: boolean;3101 readonly isRmrkPropertyKeyIsTooLong: boolean;3145 readonly isRmrkPropertyKeyIsTooLong: boolean;3102 readonly isRmrkPropertyValueIsTooLong: boolean;3146 readonly isRmrkPropertyValueIsTooLong: boolean;3147 readonly isRmrkPropertyIsNotFound: boolean;3103 readonly isUnableToDecodeRmrkData: boolean;3148 readonly isUnableToDecodeRmrkData: boolean;3104 readonly isCollectionNotEmpty: boolean;3149 readonly isCollectionNotEmpty: boolean;3105 readonly isNoAvailableCollectionId: boolean;3150 readonly isNoAvailableCollectionId: boolean;3112 readonly isCannotSendToDescendentOrSelf: boolean;3157 readonly isCannotSendToDescendentOrSelf: boolean;3113 readonly isCannotAcceptNonOwnedNft: boolean;3158 readonly isCannotAcceptNonOwnedNft: boolean;3114 readonly isCannotRejectNonOwnedNft: boolean;3159 readonly isCannotRejectNonOwnedNft: boolean;3160 readonly isCannotRejectNonPendingNft: boolean;3115 readonly isResourceNotPending: boolean;3161 readonly isResourceNotPending: boolean;3162 readonly isNoAvailableResourceId: boolean;3116 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';3163 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3117 }3164 }311831653119 /** @name PalletRmrkEquipError (400) */3166 /** @name PalletRmrkEquipError (402) */3120 export interface PalletRmrkEquipError extends Enum {3167 export interface PalletRmrkEquipError extends Enum {3121 readonly isPermissionError: boolean;3168 readonly isPermissionError: boolean;3122 readonly isNoAvailableBaseId: boolean;3169 readonly isNoAvailableBaseId: boolean;3123 readonly isNoAvailablePartId: boolean;3170 readonly isNoAvailablePartId: boolean;3124 readonly isBaseDoesntExist: boolean;3171 readonly isBaseDoesntExist: boolean;3125 readonly isNeedsDefaultThemeFirst: boolean;3172 readonly isNeedsDefaultThemeFirst: boolean;3173 readonly isPartDoesntExist: boolean;3174 readonly isNoEquippableOnFixedPart: boolean;3126 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';3175 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3127 }3176 }312831773129 /** @name PalletEvmError (403) */3178 /** @name PalletEvmError (405) */3130 export interface PalletEvmError extends Enum {3179 export interface PalletEvmError extends Enum {3131 readonly isBalanceLow: boolean;3180 readonly isBalanceLow: boolean;3132 readonly isFeeOverflow: boolean;3181 readonly isFeeOverflow: boolean;3137 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3186 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3138 }3187 }313931883140 /** @name FpRpcTransactionStatus (406) */3189 /** @name FpRpcTransactionStatus (408) */3141 export interface FpRpcTransactionStatus extends Struct {3190 export interface FpRpcTransactionStatus extends Struct {3142 readonly transactionHash: H256;3191 readonly transactionHash: H256;3143 readonly transactionIndex: u32;3192 readonly transactionIndex: u32;3148 readonly logsBloom: EthbloomBloom;3197 readonly logsBloom: EthbloomBloom;3149 }3198 }315031993151 /** @name EthbloomBloom (408) */3200 /** @name EthbloomBloom (410) */3152 export interface EthbloomBloom extends U8aFixed {}3201 export interface EthbloomBloom extends U8aFixed {}315332023154 /** @name EthereumReceiptReceiptV3 (410) */3203 /** @name EthereumReceiptReceiptV3 (412) */3155 export interface EthereumReceiptReceiptV3 extends Enum {3204 export interface EthereumReceiptReceiptV3 extends Enum {3156 readonly isLegacy: boolean;3205 readonly isLegacy: boolean;3157 readonly asLegacy: EthereumReceiptEip658ReceiptData;3206 readonly asLegacy: EthereumReceiptEip658ReceiptData;3162 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3211 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3163 }3212 }316432133165 /** @name EthereumReceiptEip658ReceiptData (411) */3214 /** @name EthereumReceiptEip658ReceiptData (413) */3166 export interface EthereumReceiptEip658ReceiptData extends Struct {3215 export interface EthereumReceiptEip658ReceiptData extends Struct {3167 readonly statusCode: u8;3216 readonly statusCode: u8;3168 readonly usedGas: U256;3217 readonly usedGas: U256;3169 readonly logsBloom: EthbloomBloom;3218 readonly logsBloom: EthbloomBloom;3170 readonly logs: Vec<EthereumLog>;3219 readonly logs: Vec<EthereumLog>;3171 }3220 }317232213173 /** @name EthereumBlock (412) */3222 /** @name EthereumBlock (414) */3174 export interface EthereumBlock extends Struct {3223 export interface EthereumBlock extends Struct {3175 readonly header: EthereumHeader;3224 readonly header: EthereumHeader;3176 readonly transactions: Vec<EthereumTransactionTransactionV2>;3225 readonly transactions: Vec<EthereumTransactionTransactionV2>;3177 readonly ommers: Vec<EthereumHeader>;3226 readonly ommers: Vec<EthereumHeader>;3178 }3227 }317932283180 /** @name EthereumHeader (413) */3229 /** @name EthereumHeader (415) */3181 export interface EthereumHeader extends Struct {3230 export interface EthereumHeader extends Struct {3182 readonly parentHash: H256;3231 readonly parentHash: H256;3183 readonly ommersHash: H256;3232 readonly ommersHash: H256;3196 readonly nonce: EthereumTypesHashH64;3245 readonly nonce: EthereumTypesHashH64;3197 }3246 }319832473199 /** @name EthereumTypesHashH64 (414) */3248 /** @name EthereumTypesHashH64 (416) */3200 export interface EthereumTypesHashH64 extends U8aFixed {}3249 export interface EthereumTypesHashH64 extends U8aFixed {}320132503202 /** @name PalletEthereumError (419) */3251 /** @name PalletEthereumError (421) */3203 export interface PalletEthereumError extends Enum {3252 export interface PalletEthereumError extends Enum {3204 readonly isInvalidSignature: boolean;3253 readonly isInvalidSignature: boolean;3205 readonly isPreLogExists: boolean;3254 readonly isPreLogExists: boolean;3206 readonly type: 'InvalidSignature' | 'PreLogExists';3255 readonly type: 'InvalidSignature' | 'PreLogExists';3207 }3256 }320832573209 /** @name PalletEvmCoderSubstrateError (420) */3258 /** @name PalletEvmCoderSubstrateError (422) */3210 export interface PalletEvmCoderSubstrateError extends Enum {3259 export interface PalletEvmCoderSubstrateError extends Enum {3211 readonly isOutOfGas: boolean;3260 readonly isOutOfGas: boolean;3212 readonly isOutOfFund: boolean;3261 readonly isOutOfFund: boolean;3213 readonly type: 'OutOfGas' | 'OutOfFund';3262 readonly type: 'OutOfGas' | 'OutOfFund';3214 }3263 }321532643216 /** @name PalletEvmContractHelpersSponsoringModeT (421) */3265 /** @name PalletEvmContractHelpersSponsoringModeT (423) */3217 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3266 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3218 readonly isDisabled: boolean;3267 readonly isDisabled: boolean;3219 readonly isAllowlisted: boolean;3268 readonly isAllowlisted: boolean;3220 readonly isGenerous: boolean;3269 readonly isGenerous: boolean;3221 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3270 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3222 }3271 }322332723224 /** @name PalletEvmContractHelpersError (423) */3273 /** @name PalletEvmContractHelpersError (425) */3225 export interface PalletEvmContractHelpersError extends Enum {3274 export interface PalletEvmContractHelpersError extends Enum {3226 readonly isNoPermission: boolean;3275 readonly isNoPermission: boolean;3227 readonly type: 'NoPermission';3276 readonly type: 'NoPermission';3228 }3277 }322932783230 /** @name PalletEvmMigrationError (424) */3279 /** @name PalletEvmMigrationError (426) */3231 export interface PalletEvmMigrationError extends Enum {3280 export interface PalletEvmMigrationError extends Enum {3232 readonly isAccountNotEmpty: boolean;3281 readonly isAccountNotEmpty: boolean;3233 readonly isAccountIsNotMigrating: boolean;3282 readonly isAccountIsNotMigrating: boolean;3234 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3283 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3235 }3284 }323632853237 /** @name SpRuntimeMultiSignature (426) */3286 /** @name SpRuntimeMultiSignature (428) */3238 export interface SpRuntimeMultiSignature extends Enum {3287 export interface SpRuntimeMultiSignature extends Enum {3239 readonly isEd25519: boolean;3288 readonly isEd25519: boolean;3240 readonly asEd25519: SpCoreEd25519Signature;3289 readonly asEd25519: SpCoreEd25519Signature;3245 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3294 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3246 }3295 }324732963248 /** @name SpCoreEd25519Signature (427) */3297 /** @name SpCoreEd25519Signature (429) */3249 export interface SpCoreEd25519Signature extends U8aFixed {}3298 export interface SpCoreEd25519Signature extends U8aFixed {}325032993251 /** @name SpCoreSr25519Signature (429) */3300 /** @name SpCoreSr25519Signature (431) */3252 export interface SpCoreSr25519Signature extends U8aFixed {}3301 export interface SpCoreSr25519Signature extends U8aFixed {}325333023254 /** @name SpCoreEcdsaSignature (430) */3303 /** @name SpCoreEcdsaSignature (432) */3255 export interface SpCoreEcdsaSignature extends U8aFixed {}3304 export interface SpCoreEcdsaSignature extends U8aFixed {}325633053257 /** @name FrameSystemExtensionsCheckSpecVersion (433) */3306 /** @name FrameSystemExtensionsCheckSpecVersion (435) */3258 export type FrameSystemExtensionsCheckSpecVersion = Null;3307 export type FrameSystemExtensionsCheckSpecVersion = Null;325933083260 /** @name FrameSystemExtensionsCheckGenesis (434) */3309 /** @name FrameSystemExtensionsCheckGenesis (436) */3261 export type FrameSystemExtensionsCheckGenesis = Null;3310 export type FrameSystemExtensionsCheckGenesis = Null;326233113263 /** @name FrameSystemExtensionsCheckNonce (437) */3312 /** @name FrameSystemExtensionsCheckNonce (439) */3264 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3313 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}326533143266 /** @name FrameSystemExtensionsCheckWeight (438) */3315 /** @name FrameSystemExtensionsCheckWeight (440) */3267 export type FrameSystemExtensionsCheckWeight = Null;3316 export type FrameSystemExtensionsCheckWeight = Null;326833173269 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (439) */3318 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (441) */3270 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3319 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}327133203272 /** @name OpalRuntimeRuntime (440) */3321 /** @name OpalRuntimeRuntime (442) */3273 export type OpalRuntimeRuntime = Null;3322 export type OpalRuntimeRuntime = Null;327433233275 /** @name PalletEthereumFakeTransactionFinalizer (441) */3324 /** @name PalletEthereumFakeTransactionFinalizer (443) */3276 export type PalletEthereumFakeTransactionFinalizer = Null;3325 export type PalletEthereumFakeTransactionFinalizer = Null;327733263278} // declare module3327} // declare moduletests/src/refungible.test.tsdiffbeforeafterboth--- a/tests/src/refungible.test.ts
+++ b/tests/src/refungible.test.ts
@@ -29,6 +29,7 @@
createRefungibleToken,
transfer,
burnItem,
+ repartitionRFT,
} from './util/helpers';
import chai from 'chai';
@@ -162,4 +163,27 @@
expect(await getAllowance(api, collectionId, alice, bob, tokenId)).to.be.equal(40n);
});
});
+
+ it('Repartition', async () => {
+ await usingApi(async api => {
+ const collectionId = (await createCollection(api, alice, {mode: {type: 'ReFungible'}})).collectionId;
+ const tokenId = (await createRefungibleToken(api, alice, collectionId, 100n)).itemId;
+
+ expect(await repartitionRFT(api, collectionId, alice, tokenId, 200n)).to.be.true;
+ expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(200n);
+
+ expect(await transfer(api, collectionId, tokenId, alice, bob, 110n)).to.be.true;
+ expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(90n);
+ expect(await getBalance(api, collectionId, bob, tokenId)).to.be.equal(110n);
+
+ await expect(repartitionRFT(api, collectionId, alice, tokenId, 80n)).to.eventually.be.rejected;
+
+ expect(await transfer(api, collectionId, tokenId, alice, bob, 90n)).to.be.true;
+ expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(0n);
+ expect(await getBalance(api, collectionId, bob, tokenId)).to.be.equal(200n);
+
+ expect(await repartitionRFT(api, collectionId, bob, tokenId, 150n)).to.be.true;
+ await expect(transfer(api, collectionId, tokenId, bob, alice, 160n)).to.eventually.be.rejected;
+ });
+ });
});
tests/src/util/helpers.tsdiffbeforeafterboth--- a/tests/src/util/helpers.ts
+++ b/tests/src/util/helpers.ts
@@ -1630,3 +1630,17 @@
return promise;
});
}
+
+export async function repartitionRFT(
+ api: ApiPromise,
+ collectionId: number,
+ sender: IKeyringPair,
+ tokenId: number,
+ amount: bigint,
+): Promise<boolean> {
+ const tx = api.tx.unique.repartition(collectionId, tokenId, amount);
+ const events = await submitTransactionAsync(sender, tx);
+ const result = getGenericResult(events);
+
+ return result.success;
+}