difftreelog
feat(rpc) topmostTokenOwner
in: master
15 files changed
client/rpc/src/lib.rsdiffbeforeafterboth--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -48,6 +48,13 @@
token: TokenId,
at: Option<BlockHash>,
) -> Result<Option<CrossAccountId>>;
+ #[rpc(name = "unique_topmostTokenOwner")]
+ fn topmost_token_owner(
+ &self,
+ collection: CollectionId,
+ token: TokenId,
+ at: Option<BlockHash>,
+ ) -> Result<Option<CrossAccountId>>;
#[rpc(name = "unique_constMetadata")]
fn const_metadata(
&self,
@@ -224,6 +231,7 @@
token_owner(collection: CollectionId, token: TokenId) -> Option<CrossAccountId>;
changed_in 2, token_owner_before_version_2(collection, token) => |u| Some(u)
);
+ pass_method!(topmost_token_owner(collection: CollectionId, token: TokenId) -> Option<CrossAccountId>);
pass_method!(const_metadata(collection: CollectionId, token: TokenId) -> Vec<u8>);
pass_method!(variable_metadata(collection: CollectionId, token: TokenId) -> Vec<u8>);
pass_method!(collection_tokens(collection: CollectionId) -> u32);
primitives/rpc/src/lib.rsdiffbeforeafterboth--- a/primitives/rpc/src/lib.rs
+++ b/primitives/rpc/src/lib.rs
@@ -36,6 +36,7 @@
fn token_exists(collection: CollectionId, token: TokenId) -> Result<bool>;
fn token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>>;
+ fn topmost_token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>>;
fn const_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>>;
fn variable_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>>;
runtime/common/src/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -21,6 +21,11 @@
fn token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>, DispatchError> {
dispatch_unique_runtime!(collection.token_owner(token))
}
+ fn topmost_token_owner(collection: CollectionId, token: TokenId) -> Result<Option<CrossAccountId>, DispatchError> {
+ let budget = up_data_structs::budget::Value::new(5);
+
+ Ok(Some(<pallet_structure::Pallet<Runtime>>::find_topmost_owner(collection, token, &budget)?))
+ }
fn const_metadata(collection: CollectionId, token: TokenId) -> Result<Vec<u8>, DispatchError> {
dispatch_unique_runtime!(collection.const_metadata(token))
}
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -73,6 +73,10 @@
**/
CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;
/**
+ * Tried to store more data than allowed in collection field
+ **/
+ CollectionFieldSizeExceeded: AugmentedError<ApiType>;
+ /**
* Collection limit bounds per collection exceeded
**/
CollectionLimitBoundsExceeded: AugmentedError<ApiType>;
@@ -101,6 +105,10 @@
**/
MustBeTokenOwner: AugmentedError<ApiType>;
/**
+ * Collection has nesting disabled
+ **/
+ NestingIsDisabled: AugmentedError<ApiType>;
+ /**
* No permission to perform action
**/
NoPermission: AugmentedError<ApiType>;
@@ -109,6 +117,10 @@
**/
NotSufficientFounds: AugmentedError<ApiType>;
/**
+ * Only owner may nest tokens under this collection
+ **/
+ OnlyOwnerAllowedToNest: AugmentedError<ApiType>;
+ /**
* Tried to enable permissions which are only permitted to be disabled
**/
OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;
@@ -117,6 +129,10 @@
**/
PublicMintingNotAllowed: AugmentedError<ApiType>;
/**
+ * Only tokens from specific collections may nest tokens under this
+ **/
+ SourceCollectionIsNotAllowedToNest: AugmentedError<ApiType>;
+ /**
* Item not exists.
**/
TokenNotFound: AugmentedError<ApiType>;
@@ -237,6 +253,10 @@
};
fungible: {
/**
+ * Fungible token does not support nested
+ **/
+ FungibleDisallowsNesting: AugmentedError<ApiType>;
+ /**
* Tried to set data for fungible item
**/
FungibleItemsDontHaveData: AugmentedError<ApiType>;
@@ -373,6 +393,10 @@
**/
NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
/**
+ * Refungible token can't nest other tokens
+ **/
+ RefungibleDisallowsNesting: AugmentedError<ApiType>;
+ /**
* Maximum refungibility exceeded
**/
WrongRefungiblePieces: AugmentedError<ApiType>;
@@ -381,6 +405,24 @@
**/
[key: string]: AugmentedError<ApiType>;
};
+ structure: {
+ /**
+ * While searched for owner, encountered depth limit
+ **/
+ DepthLimit: AugmentedError<ApiType>;
+ /**
+ * While searched for owner, got already checked account
+ **/
+ OuroborosDetected: AugmentedError<ApiType>;
+ /**
+ * While searched for owner, found token owner by not-yet-existing token
+ **/
+ TokenNotFound: AugmentedError<ApiType>;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError<ApiType>;
+ };
sudo: {
/**
* Sender must be the Sudo account
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -391,6 +391,16 @@
**/
[key: string]: AugmentedEvent<ApiType>;
};
+ structure: {
+ /**
+ * Executed call on behalf of token
+ **/
+ Executed: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent<ApiType>;
+ };
sudo: {
/**
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
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, 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, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollectionField, UpDataStructsCollectionStats, UpDataStructsCollectionVersion2 } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' {
@@ -13,25 +13,25 @@
balances: {
/**
* The Balances pallet example of storing the balance of an account.
- *
+ *
* # Example
- *
+ *
* ```nocompile
* impl pallet_balances::Config for Runtime {
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
* }
* ```
- *
+ *
* You can also store the balance of an account in the `System` pallet.
- *
+ *
* # Example
- *
+ *
* ```nocompile
* impl pallet_balances::Config for Runtime {
* type AccountStore = System
* }
* ```
- *
+ *
* But this comes with tradeoffs, storing account balances in the system pallet stores
* `frame_system` data alongside the account data contrary to storing account balances in the
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
@@ -49,7 +49,7 @@
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Storage version of the pallet.
- *
+ *
* This is set to v2.0.0 for new networks.
**/
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
@@ -77,13 +77,17 @@
/**
* Collection info
**/
- collectionById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<UpDataStructsCollection>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ collectionById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<UpDataStructsCollectionVersion2>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ /**
+ * Large variable-size collection fields are extracted here
+ **/
+ collectionData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: UpDataStructsCollectionField | 'VariableOnChainSchema' | 'ConstOnChainSchema' | 'OffchainSchema' | number | Uint8Array) => Observable<Bytes>, [u32, UpDataStructsCollectionField]> & QueryableStorageEntry<ApiType, [u32, UpDataStructsCollectionField]>;
createdCollectionCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
destroyedCollectionCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Not used by code, exists only to provide some types to metadata
**/
- dummyStorageValue: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[UpDataStructsCollectionStats, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
+ dummyStorageValue: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[UpDataStructsCollectionStats, u32, u32, PhantomTypeUpDataStructs]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* List of collection admins
**/
@@ -245,7 +249,7 @@
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* A custom head data that should be returned as result of `validate_block`.
- *
+ *
* See [`Pallet::set_custom_validation_head_data`] for more information.
**/
customValidationHeadData: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
@@ -255,35 +259,35 @@
didSetValidationCode: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The parachain host configuration that was obtained from the relay parent.
- *
+ *
* This field is meant to be updated each block with the validation data inherent. Therefore,
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
- *
+ *
* This data is also absent from the genesis.
**/
hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2AbridgedHostConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* HRMP messages that were sent in a block.
- *
+ *
* This will be cleared in `on_initialize` of each new block.
**/
hrmpOutboundMessages: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotCorePrimitivesOutboundHrmpMessage>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* HRMP watermark that was set in a block.
- *
+ *
* This will be cleared in `on_initialize` of each new block.
**/
hrmpWatermark: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The last downward message queue chain head we have observed.
- *
+ *
* This value is loaded before and saved after processing inbound downward messages carried
* by the system inherent.
**/
lastDmqMqcHead: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The message queue chain heads we have observed per each channel incoming channel.
- *
+ *
* This value is loaded before and saved after processing inbound downward messages carried
* by the system inherent.
**/
@@ -291,7 +295,7 @@
/**
* Validation code that is set by the parachain and is to be communicated to collator and
* consequently the relay-chain.
- *
+ *
* This will be cleared in `on_initialize` of each new block if no other pallet already set
* the value.
**/
@@ -302,35 +306,35 @@
pendingUpwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* In case of a scheduled upgrade, this storage field contains the validation code to be applied.
- *
+ *
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE]
* which will result the next block process with the new validation code. This concludes the upgrade process.
- *
+ *
* [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE
**/
pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Number of downward messages processed in a block.
- *
+ *
* This will be cleared in `on_initialize` of each new block.
**/
processedDownwardMessages: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The state proof for the last relay parent block.
- *
+ *
* This field is meant to be updated each block with the validation data inherent. Therefore,
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
- *
+ *
* This data is also absent from the genesis.
**/
relayStateProof: AugmentedQuery<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The snapshot of some state related to messaging relevant to the current parachain as per
* the relay parent.
- *
+ *
* This field is meant to be updated each block with the validation data inherent. Therefore,
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
- *
+ *
* This data is also absent from the genesis.
**/
relevantMessagingState: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
@@ -348,7 +352,7 @@
* An option which indicates if the relay-chain restricts signalling a validation code upgrade.
* In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
* candidate will be invalid.
- *
+ *
* This storage item is a mirror of the corresponding value for the current parachain from the
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
* set after the inherent.
@@ -356,7 +360,7 @@
upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Upward messages that were sent in a block.
- *
+ *
* This will be cleared in `on_initialize` of each new block.
**/
upwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
@@ -400,6 +404,12 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ structure: {
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
sudo: {
/**
* The `AccountId` of the sudo key.
@@ -437,10 +447,10 @@
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Events deposited for the current block.
- *
+ *
* NOTE: The item is unbound and should therefore never be read on chain.
* It could otherwise inflate the PoV size of a block.
- *
+ *
* Events have a large in-memory size. Box the events to not go out-of-memory
* just in case someone still reads them from within the runtime.
**/
@@ -448,11 +458,11 @@
/**
* Mapping between a topic (represented by T::Hash) and a vector of indexes
* of events in the `<Events<T>>` list.
- *
+ *
* All topic vectors have deterministic storage locations depending on the topic. This
* allows light-clients to leverage the changes trie storage tracking mechanism and
* in case of changes fetch the list of events of interest.
- *
+ *
* The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
* the `EventIndex` then in case if the topic has the same contents on the next block
* no notification will be triggered thus the event might be lost.
@@ -577,7 +587,7 @@
vesting: {
/**
* Vesting schedules of an account.
- *
+ *
* VestingSchedules: map AccountId => Vec<VestingSchedule>
**/
vestingSchedules: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<OrmlVestingVestingSchedule>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
@@ -610,7 +620,7 @@
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The messages that exceeded max individual message weight budget.
- *
+ *
* These message stay in this storage map until they are manually dispatched via
* `service_overweight`.
**/
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionStats } from './unique';
+import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimitsVersion2, UpDataStructsCollectionStats, UpDataStructsRpcCollection } from './unique';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
@@ -601,7 +601,7 @@
/**
* Get collection by specified id
**/
- collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollection>>>;
+ collectionById: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsRpcCollection>>>;
/**
* Get collection stats
**/
@@ -617,7 +617,7 @@
/**
* Get effective collection limits
**/
- effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;
+ effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimitsVersion2>>>;
/**
* Get last token id
**/
@@ -635,6 +635,10 @@
**/
tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletEvmAccountBasicCrossAccountIdRepr>>;
/**
+ * Get token owner, in case of nested token - find parent recursive
+ **/
+ topmostTokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletEvmAccountBasicCrossAccountIdRepr>>;
+ /**
* Get token variable metadata
**/
variableMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api-base/types';5import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';6import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';7import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';8import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';910declare module '@polkadot/api-base/types/submittable' {11 export interface AugmentedSubmittables<ApiType extends ApiTypes> {12 balances: {13 /**14 * Exactly as `transfer`, except the origin must be root and the source account may be15 * specified.16 * # <weight>17 * - Same as transfer, but additional read and write because the source account is not18 * assumed to be in the overlay.19 * # </weight>20 **/21 forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;22 /**23 * Unreserve some balance from a user by force.24 * 25 * Can only be called by ROOT.26 **/27 forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;28 /**29 * Set the balances of a given account.30 * 31 * This will alter `FreeBalance` and `ReservedBalance` in storage. it will32 * also alter the total issuance of the system (`TotalIssuance`) appropriately.33 * If the new free or reserved balance is below the existential deposit,34 * it will reset the account nonce (`frame_system::AccountNonce`).35 * 36 * The dispatch origin for this call is `root`.37 **/38 setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;39 /**40 * Transfer some liquid free balance to another account.41 * 42 * `transfer` will set the `FreeBalance` of the sender and receiver.43 * If the sender's account is below the existential deposit as a result44 * of the transfer, the account will be reaped.45 * 46 * The dispatch origin for this call must be `Signed` by the transactor.47 * 48 * # <weight>49 * - Dependent on arguments but not critical, given proper implementations for input config50 * types. See related functions below.51 * - It contains a limited number of reads and writes internally and no complex52 * computation.53 * 54 * Related functions:55 * 56 * - `ensure_can_withdraw` is always called internally but has a bounded complexity.57 * - Transferring balances to accounts that did not exist before will cause58 * `T::OnNewAccount::on_new_account` to be called.59 * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.60 * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check61 * that the transfer will not kill the origin account.62 * ---------------------------------63 * - Origin account is already in memory, so no DB operations for them.64 * # </weight>65 **/66 transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;67 /**68 * Transfer the entire transferable balance from the caller account.69 * 70 * NOTE: This function only attempts to transfer _transferable_ balances. This means that71 * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be72 * transferred by this function. To ensure that this function results in a killed account,73 * you might need to prepare the account by removing any reference counters, storage74 * deposits, etc...75 * 76 * The dispatch origin of this call must be Signed.77 * 78 * - `dest`: The recipient of the transfer.79 * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all80 * of the funds the account has, causing the sender account to be killed (false), or81 * transfer everything except at least the existential deposit, which will guarantee to82 * keep the sender account alive (true). # <weight>83 * - O(1). Just like transfer, but reading the user's transferable balance first.84 * #</weight>85 **/86 transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;87 /**88 * Same as the [`transfer`] call, but with a check that the transfer will not kill the89 * origin account.90 * 91 * 99% of the time you want [`transfer`] instead.92 * 93 * [`transfer`]: struct.Pallet.html#method.transfer94 **/95 transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;96 /**97 * Generic tx98 **/99 [key: string]: SubmittableExtrinsicFunction<ApiType>;100 };101 charging: {102 /**103 * Generic tx104 **/105 [key: string]: SubmittableExtrinsicFunction<ApiType>;106 };107 cumulusXcm: {108 /**109 * Generic tx110 **/111 [key: string]: SubmittableExtrinsicFunction<ApiType>;112 };113 dmpQueue: {114 /**115 * Service a single overweight message.116 * 117 * - `origin`: Must pass `ExecuteOverweightOrigin`.118 * - `index`: The index of the overweight message to service.119 * - `weight_limit`: The amount of weight that message execution may take.120 * 121 * Errors:122 * - `Unknown`: Message of `index` is unknown.123 * - `OverLimit`: Message execution may use greater than `weight_limit`.124 * 125 * Events:126 * - `OverweightServiced`: On success.127 **/128 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;129 /**130 * Generic tx131 **/132 [key: string]: SubmittableExtrinsicFunction<ApiType>;133 };134 ethereum: {135 /**136 * Transact an Ethereum transaction.137 **/138 transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;139 /**140 * Generic tx141 **/142 [key: string]: SubmittableExtrinsicFunction<ApiType>;143 };144 evm: {145 /**146 * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.147 **/148 call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;149 /**150 * Issue an EVM create operation. This is similar to a contract creation transaction in151 * Ethereum.152 **/153 create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;154 /**155 * Issue an EVM create2 operation.156 **/157 create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;158 /**159 * Withdraw balance from EVM into currency/balances pallet.160 **/161 withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;162 /**163 * Generic tx164 **/165 [key: string]: SubmittableExtrinsicFunction<ApiType>;166 };167 evmMigration: {168 begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;169 finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;170 setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;171 /**172 * Generic tx173 **/174 [key: string]: SubmittableExtrinsicFunction<ApiType>;175 };176 inflation: {177 /**178 * This method sets the inflation start date. Can be only called once.179 * Inflation start block can be backdated and will catch up. The method will create Treasury180 * account if it does not exist and perform the first inflation deposit.181 * 182 * # Permissions183 * 184 * * Root185 * 186 * # Arguments187 * 188 * * inflation_start_relay_block: The relay chain block at which inflation should start189 **/190 startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;191 /**192 * Generic tx193 **/194 [key: string]: SubmittableExtrinsicFunction<ApiType>;195 };196 parachainSystem: {197 authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;198 enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;199 /**200 * Set the current validation data.201 * 202 * This should be invoked exactly once per block. It will panic at the finalization203 * phase if the call was not invoked.204 * 205 * The dispatch origin for this call must be `Inherent`206 * 207 * As a side effect, this function upgrades the current validation function208 * if the appropriate time has come.209 **/210 setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CumulusPrimitivesParachainInherentParachainInherentData]>;211 sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;212 /**213 * Generic tx214 **/215 [key: string]: SubmittableExtrinsicFunction<ApiType>;216 };217 polkadotXcm: {218 /**219 * Execute an XCM message from a local, signed, origin.220 * 221 * An event is deposited indicating whether `msg` could be executed completely or only222 * partially.223 * 224 * No more than `max_weight` will be used in its attempted execution. If this is less than the225 * maximum amount of weight that the message could take to be executed, then no execution226 * attempt will be made.227 * 228 * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully229 * to completion; only that *some* of it was executed.230 **/231 execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;232 /**233 * Set a safe XCM version (the version that XCM should be encoded with if the most recent234 * version a destination can accept is unknown).235 * 236 * - `origin`: Must be Root.237 * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.238 **/239 forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;240 /**241 * Ask a location to notify us regarding their XCM version and any changes to it.242 * 243 * - `origin`: Must be Root.244 * - `location`: The location to which we should subscribe for XCM version notifications.245 **/246 forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;247 /**248 * Require that a particular destination should no longer notify us regarding any XCM249 * version changes.250 * 251 * - `origin`: Must be Root.252 * - `location`: The location to which we are currently subscribed for XCM version253 * notifications which we no longer desire.254 **/255 forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;256 /**257 * Extoll that a particular destination can be communicated with through a particular258 * version of XCM.259 * 260 * - `origin`: Must be Root.261 * - `location`: The destination that is being described.262 * - `xcm_version`: The latest version of XCM that `location` supports.263 **/264 forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;265 /**266 * Transfer some assets from the local chain to the sovereign account of a destination267 * chain and forward a notification XCM.268 * 269 * Fee payment on the destination side is made from the asset in the `assets` vector of270 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight271 * is needed than `weight_limit`, then the operation will fail and the assets send may be272 * at risk.273 * 274 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.275 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send276 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.277 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be278 * an `AccountId32` value.279 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the280 * `dest` side.281 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay282 * fees.283 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.284 **/285 limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;286 /**287 * Teleport some assets from the local chain to some destination chain.288 * 289 * Fee payment on the destination side is made from the asset in the `assets` vector of290 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight291 * is needed than `weight_limit`, then the operation will fail and the assets send may be292 * at risk.293 * 294 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.295 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send296 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.297 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be298 * an `AccountId32` value.299 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the300 * `dest` side. May not be empty.301 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay302 * fees.303 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.304 **/305 limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;306 /**307 * Transfer some assets from the local chain to the sovereign account of a destination308 * chain and forward a notification XCM.309 * 310 * Fee payment on the destination side is made from the asset in the `assets` vector of311 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,312 * with all fees taken as needed from the asset.313 * 314 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.315 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send316 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.317 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be318 * an `AccountId32` value.319 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the320 * `dest` side.321 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay322 * fees.323 **/324 reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;325 send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;326 /**327 * Teleport some assets from the local chain to some destination chain.328 * 329 * Fee payment on the destination side is made from the asset in the `assets` vector of330 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,331 * with all fees taken as needed from the asset.332 * 333 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.334 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send335 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.336 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be337 * an `AccountId32` value.338 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the339 * `dest` side. May not be empty.340 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay341 * fees.342 **/343 teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;344 /**345 * Generic tx346 **/347 [key: string]: SubmittableExtrinsicFunction<ApiType>;348 };349 sudo: {350 /**351 * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo352 * key.353 * 354 * The dispatch origin for this call must be _Signed_.355 * 356 * # <weight>357 * - O(1).358 * - Limited storage reads.359 * - One DB change.360 * # </weight>361 **/362 setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;363 /**364 * Authenticates the sudo key and dispatches a function call with `Root` origin.365 * 366 * The dispatch origin for this call must be _Signed_.367 * 368 * # <weight>369 * - O(1).370 * - Limited storage reads.371 * - One DB write (event).372 * - Weight of derivative `call` execution + 10,000.373 * # </weight>374 **/375 sudo: AugmentedSubmittable<(call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;376 /**377 * Authenticates the sudo key and dispatches a function call with `Signed` origin from378 * a given account.379 * 380 * The dispatch origin for this call must be _Signed_.381 * 382 * # <weight>383 * - O(1).384 * - Limited storage reads.385 * - One DB write (event).386 * - Weight of derivative `call` execution + 10,000.387 * # </weight>388 **/389 sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;390 /**391 * Authenticates the sudo key and dispatches a function call with `Root` origin.392 * This function does not check the weight of the call, and instead allows the393 * Sudo user to specify the weight of the call.394 * 395 * The dispatch origin for this call must be _Signed_.396 * 397 * # <weight>398 * - O(1).399 * - The weight of this call is defined by the caller.400 * # </weight>401 **/402 sudoUncheckedWeight: AugmentedSubmittable<(call: Call | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;403 /**404 * Generic tx405 **/406 [key: string]: SubmittableExtrinsicFunction<ApiType>;407 };408 system: {409 /**410 * A dispatch that will fill the block weight up to the given ratio.411 **/412 fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;413 /**414 * Kill all storage items with a key that starts with the given prefix.415 * 416 * **NOTE:** We rely on the Root origin to provide us the number of subkeys under417 * the prefix we are removing to accurately calculate the weight of this function.418 **/419 killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;420 /**421 * Kill some items from storage.422 **/423 killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;424 /**425 * Make some on-chain remark.426 * 427 * # <weight>428 * - `O(1)`429 * # </weight>430 **/431 remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;432 /**433 * Make some on-chain remark and emit event.434 **/435 remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;436 /**437 * Set the new runtime code.438 * 439 * # <weight>440 * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`441 * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is442 * expensive).443 * - 1 storage write (codec `O(C)`).444 * - 1 digest item.445 * - 1 event.446 * The weight of this function is dependent on the runtime, but generally this is very447 * expensive. We will treat this as a full block.448 * # </weight>449 **/450 setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;451 /**452 * Set the new runtime code without doing any checks of the given `code`.453 * 454 * # <weight>455 * - `O(C)` where `C` length of `code`456 * - 1 storage write (codec `O(C)`).457 * - 1 digest item.458 * - 1 event.459 * The weight of this function is dependent on the runtime. We will treat this as a full460 * block. # </weight>461 **/462 setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;463 /**464 * Set the number of pages in the WebAssembly environment's heap.465 **/466 setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;467 /**468 * Set some items of storage.469 **/470 setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;471 /**472 * Generic tx473 **/474 [key: string]: SubmittableExtrinsicFunction<ApiType>;475 };476 timestamp: {477 /**478 * Set the current time.479 * 480 * This call should be invoked exactly once per block. It will panic at the finalization481 * phase, if this call hasn't been invoked by that time.482 * 483 * The timestamp should be greater than the previous one by the amount specified by484 * `MinimumPeriod`.485 * 486 * The dispatch origin for this call must be `Inherent`.487 * 488 * # <weight>489 * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)490 * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in491 * `on_finalize`)492 * - 1 event handler `on_timestamp_set`. Must be `O(1)`.493 * # </weight>494 **/495 set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;496 /**497 * Generic tx498 **/499 [key: string]: SubmittableExtrinsicFunction<ApiType>;500 };501 treasury: {502 /**503 * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary504 * and the original deposit will be returned.505 * 506 * May only be called from `T::ApproveOrigin`.507 * 508 * # <weight>509 * - Complexity: O(1).510 * - DbReads: `Proposals`, `Approvals`511 * - DbWrite: `Approvals`512 * # </weight>513 **/514 approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;515 /**516 * Put forward a suggestion for spending. A deposit proportional to the value517 * is reserved and slashed if the proposal is rejected. It is returned once the518 * proposal is awarded.519 * 520 * # <weight>521 * - Complexity: O(1)522 * - DbReads: `ProposalCount`, `origin account`523 * - DbWrites: `ProposalCount`, `Proposals`, `origin account`524 * # </weight>525 **/526 proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;527 /**528 * Reject a proposed spend. The original deposit will be slashed.529 * 530 * May only be called from `T::RejectOrigin`.531 * 532 * # <weight>533 * - Complexity: O(1)534 * - DbReads: `Proposals`, `rejected proposer account`535 * - DbWrites: `Proposals`, `rejected proposer account`536 * # </weight>537 **/538 rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;539 /**540 * Generic tx541 **/542 [key: string]: SubmittableExtrinsicFunction<ApiType>;543 };544 unique: {545 /**546 * Adds an admin of the Collection.547 * NFT Collection can be controlled by multiple admin addresses (some which can also be servers, for example). Admins can issue and burn NFTs, as well as add and remove other admins, but cannot change NFT or Collection ownership.548 * 549 * # Permissions550 * 551 * * Collection Owner.552 * * Collection Admin.553 * 554 * # Arguments555 * 556 * * collection_id: ID of the Collection to add admin for.557 * 558 * * new_admin_id: Address of new admin to add.559 **/560 addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;561 /**562 * Add an address to allow list.563 * 564 * # Permissions565 * 566 * * Collection Owner567 * * Collection Admin568 * 569 * # Arguments570 * 571 * * collection_id.572 * 573 * * address.574 **/575 addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;576 /**577 * Set, change, or remove approved address to transfer the ownership of the NFT.578 * 579 * # Permissions580 * 581 * * Collection Owner582 * * Collection Admin583 * * Current NFT owner584 * 585 * # Arguments586 * 587 * * approved: Address that is approved to transfer this NFT or zero (if needed to remove approval).588 * 589 * * collection_id.590 * 591 * * item_id: ID of the item.592 **/593 approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;594 /**595 * Destroys a concrete instance of NFT on behalf of the owner596 * See also: [`approve`]597 * 598 * # Permissions599 * 600 * * Collection Owner.601 * * Collection Admin.602 * * Current NFT Owner.603 * 604 * # Arguments605 * 606 * * collection_id: ID of the collection.607 * 608 * * item_id: ID of NFT to burn.609 * 610 * * from: owner of item611 **/612 burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;613 /**614 * Destroys a concrete instance of NFT.615 * 616 * # Permissions617 * 618 * * Collection Owner.619 * * Collection Admin.620 * * Current NFT Owner.621 * 622 * # Arguments623 * 624 * * collection_id: ID of the collection.625 * 626 * * item_id: ID of NFT to burn.627 **/628 burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;629 /**630 * Change the owner of the collection.631 * 632 * # Permissions633 * 634 * * Collection Owner.635 * 636 * # Arguments637 * 638 * * collection_id.639 * 640 * * new_owner.641 **/642 changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;643 /**644 * # Permissions645 * 646 * * Sponsor.647 * 648 * # Arguments649 * 650 * * collection_id.651 **/652 confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;653 /**654 * This method creates a Collection of NFTs. Each Token may have multiple properties encoded as an array of bytes of certain length. The initial owner of the collection is set to the address that signed the transaction and can be changed later.655 * 656 * # Permissions657 * 658 * * Anyone.659 * 660 * # Arguments661 * 662 * * collection_name: UTF-16 string with collection name (limit 64 characters), will be stored as zero-terminated.663 * 664 * * collection_description: UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.665 * 666 * * token_prefix: UTF-8 string with token prefix.667 * 668 * * mode: [CollectionMode] collection type and type dependent data.669 **/670 createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;671 /**672 * This method creates a collection673 * 674 * Prefer it to deprecated [`created_collection`] method675 **/676 createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; offchainSchema?: any; schemaVersion?: any; pendingSponsor?: any; limits?: any; variableOnChainSchema?: any; constOnChainSchema?: any; metaUpdatePermission?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;677 /**678 * This method creates a concrete instance of NFT Collection created with CreateCollection method.679 * 680 * # Permissions681 * 682 * * Collection Owner.683 * * Collection Admin.684 * * Anyone if685 * * Allow List is enabled, and686 * * Address is added to allow list, and687 * * MintPermission is enabled (see SetMintPermission method)688 * 689 * # Arguments690 * 691 * * collection_id: ID of the collection.692 * 693 * * owner: Address, initial owner of the NFT.694 * 695 * * data: Token data to store on chain.696 **/697 createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;698 /**699 * This method creates multiple items in a collection created with CreateCollection method.700 * 701 * # Permissions702 * 703 * * Collection Owner.704 * * Collection Admin.705 * * Anyone if706 * * Allow List is enabled, and707 * * Address is added to allow list, and708 * * MintPermission is enabled (see SetMintPermission method)709 * 710 * # Arguments711 * 712 * * collection_id: ID of the collection.713 * 714 * * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].715 * 716 * * owner: Address, initial owner of the NFT.717 **/718 createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;719 createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;720 /**721 * **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.722 * 723 * # Permissions724 * 725 * * Collection Owner.726 * 727 * # Arguments728 * 729 * * collection_id: collection to destroy.730 **/731 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;732 /**733 * Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.734 * 735 * # Permissions736 * 737 * * Collection Owner.738 * * Collection Admin.739 * 740 * # Arguments741 * 742 * * collection_id: ID of the Collection to remove admin for.743 * 744 * * account_id: Address of admin to remove.745 **/746 removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;747 /**748 * Switch back to pay-per-own-transaction model.749 * 750 * # Permissions751 * 752 * * Collection owner.753 * 754 * # Arguments755 * 756 * * collection_id.757 **/758 removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;759 /**760 * Remove an address from allow list.761 * 762 * # Permissions763 * 764 * * Collection Owner765 * * Collection Admin766 * 767 * # Arguments768 * 769 * * collection_id.770 * 771 * * address.772 **/773 removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;774 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]>;775 /**776 * # Permissions777 * 778 * * Collection Owner779 * 780 * # Arguments781 * 782 * * collection_id.783 * 784 * * new_sponsor.785 **/786 setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;787 /**788 * Set const on-chain data schema.789 * 790 * # Permissions791 * 792 * * Collection Owner793 * * Collection Admin794 * 795 * # Arguments796 * 797 * * collection_id.798 * 799 * * schema: String representing the const on-chain data schema.800 **/801 setConstOnChainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;802 /**803 * Set meta_update_permission value for particular collection804 * 805 * # Permissions806 * 807 * * Collection Owner.808 * 809 * # Arguments810 * 811 * * collection_id: ID of the collection.812 * 813 * * value: New flag value.814 **/815 setMetaUpdatePermissionFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: UpDataStructsMetaUpdatePermission | 'ItemOwner' | 'Admin' | 'None' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsMetaUpdatePermission]>;816 /**817 * Allows Anyone to create tokens if:818 * * Allow List is enabled, and819 * * Address is added to allow list, and820 * * This method was called with True parameter821 * 822 * # Permissions823 * * Collection Owner824 * 825 * # Arguments826 * 827 * * collection_id.828 * 829 * * mint_permission: Boolean parameter. If True, allows minting to Anyone with conditions above.830 **/831 setMintPermission: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, mintPermission: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;832 /**833 * Set off-chain data schema.834 * 835 * # Permissions836 * 837 * * Collection Owner838 * * Collection Admin839 * 840 * # Arguments841 * 842 * * collection_id.843 * 844 * * schema: String representing the offchain data schema.845 **/846 setOffchainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;847 /**848 * Toggle between normal and allow list access for the methods with access for `Anyone`.849 * 850 * # Permissions851 * 852 * * Collection Owner.853 * 854 * # Arguments855 * 856 * * collection_id.857 * 858 * * mode: [AccessMode]859 **/860 setPublicAccessMode: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, mode: UpDataStructsAccessMode | 'Normal' | 'AllowList' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsAccessMode]>;861 /**862 * Set schema standard863 * ImageURL864 * Unique865 * 866 * # Permissions867 * 868 * * Collection Owner869 * * Collection Admin870 * 871 * # Arguments872 * 873 * * collection_id.874 * 875 * * schema: SchemaVersion: enum876 **/877 setSchemaVersion: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, version: UpDataStructsSchemaVersion | 'ImageURL' | 'Unique' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsSchemaVersion]>;878 /**879 * Set transfers_enabled value for particular collection880 * 881 * # Permissions882 * 883 * * Collection Owner.884 * 885 * # Arguments886 * 887 * * collection_id: ID of the collection.888 * 889 * * value: New flag value.890 **/891 setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;892 /**893 * Set off-chain data schema.894 * 895 * # Permissions896 * 897 * * Collection Owner898 * * Collection Admin899 * 900 * # Arguments901 * 902 * * collection_id.903 * 904 * * schema: String representing the offchain data schema.905 **/906 setVariableMetaData: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes]>;907 /**908 * Set variable on-chain data schema.909 * 910 * # Permissions911 * 912 * * Collection Owner913 * * Collection Admin914 * 915 * # Arguments916 * 917 * * collection_id.918 * 919 * * schema: String representing the variable on-chain data schema.920 **/921 setVariableOnChainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;922 /**923 * Change ownership of the token.924 * 925 * # Permissions926 * 927 * * Collection Owner928 * * Collection Admin929 * * Current NFT owner930 * 931 * # Arguments932 * 933 * * recipient: Address of token recipient.934 * 935 * * collection_id.936 * 937 * * item_id: ID of the item938 * * Non-Fungible Mode: Required.939 * * Fungible Mode: Ignored.940 * * Re-Fungible Mode: Required.941 * 942 * * value: Amount to transfer.943 * * Non-Fungible Mode: Ignored944 * * Fungible Mode: Must specify transferred amount945 * * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)946 **/947 transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;948 /**949 * Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.950 * 951 * # Permissions952 * * Collection Owner953 * * Collection Admin954 * * Current NFT owner955 * * Address approved by current NFT owner956 * 957 * # Arguments958 * 959 * * from: Address that owns token.960 * 961 * * recipient: Address of token recipient.962 * 963 * * collection_id.964 * 965 * * item_id: ID of the item.966 * 967 * * value: Amount to transfer.968 **/969 transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;970 /**971 * Generic tx972 **/973 [key: string]: SubmittableExtrinsicFunction<ApiType>;974 };975 vesting: {976 claim: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;977 claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;978 updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec<OrmlVestingVestingSchedule> | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [MultiAddress, Vec<OrmlVestingVestingSchedule>]>;979 vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, OrmlVestingVestingSchedule]>;980 /**981 * Generic tx982 **/983 [key: string]: SubmittableExtrinsicFunction<ApiType>;984 };985 xcmpQueue: {986 /**987 * Resumes all XCM executions for the XCMP queue.988 * 989 * Note that this function doesn't change the status of the in/out bound channels.990 * 991 * - `origin`: Must pass `ControllerOrigin`.992 **/993 resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;994 /**995 * Services a single overweight XCM.996 * 997 * - `origin`: Must pass `ExecuteOverweightOrigin`.998 * - `index`: The index of the overweight XCM to service999 * - `weight_limit`: The amount of weight that XCM execution may take.1000 * 1001 * Errors:1002 * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.1003 * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.1004 * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.1005 * 1006 * Events:1007 * - `OverweightServiced`: On success.1008 **/1009 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;1010 /**1011 * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.1012 * 1013 * - `origin`: Must pass `ControllerOrigin`.1014 **/1015 suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1016 /**1017 * Overwrites the number of pages of messages which must be in the queue after which we drop any further1018 * messages from the channel.1019 * 1020 * - `origin`: Must pass `Root`.1021 * - `new`: Desired value for `QueueConfigData.drop_threshold`1022 **/1023 updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1024 /**1025 * Overwrites the number of pages of messages which the queue must be reduced to before it signals that1026 * message sending may recommence after it has been suspended.1027 * 1028 * - `origin`: Must pass `Root`.1029 * - `new`: Desired value for `QueueConfigData.resume_threshold`1030 **/1031 updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1032 /**1033 * Overwrites the number of pages of messages which must be in the queue for the other side to be told to1034 * suspend their sending.1035 * 1036 * - `origin`: Must pass `Root`.1037 * - `new`: Desired value for `QueueConfigData.suspend_value`1038 **/1039 updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1040 /**1041 * Overwrites the amount of remaining weight under which we stop processing messages.1042 * 1043 * - `origin`: Must pass `Root`.1044 * - `new`: Desired value for `QueueConfigData.threshold_weight`1045 **/1046 updateThresholdWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1047 /**1048 * Overwrites the speed to which the available weight approaches the maximum weight.1049 * A lower number results in a faster progression. A value of 1 makes the entire weight available initially.1050 * 1051 * - `origin`: Must pass `Root`.1052 * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.1053 **/1054 updateWeightRestrictDecay: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1055 /**1056 * Overwrite the maximum amount of weight any individual message may consume.1057 * Messages above this weight go into the overweight queue and may only be serviced explicitly.1058 * 1059 * - `origin`: Must pass `Root`.1060 * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.1061 **/1062 updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1063 /**1064 * Generic tx1065 **/1066 [key: string]: SubmittableExtrinsicFunction<ApiType>;1067 };1068 } // AugmentedSubmittables1069} // declare module1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api-base/types';5import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';6import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';7import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';8import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode, UpDataStructsCollectionLimitsVersion2, UpDataStructsCollectionMode, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';910declare module '@polkadot/api-base/types/submittable' {11 export interface AugmentedSubmittables<ApiType extends ApiTypes> {12 balances: {13 /**14 * Exactly as `transfer`, except the origin must be root and the source account may be15 * specified.16 * # <weight>17 * - Same as transfer, but additional read and write because the source account is not18 * assumed to be in the overlay.19 * # </weight>20 **/21 forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;22 /**23 * Unreserve some balance from a user by force.24 * 25 * Can only be called by ROOT.26 **/27 forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;28 /**29 * Set the balances of a given account.30 * 31 * This will alter `FreeBalance` and `ReservedBalance` in storage. it will32 * also alter the total issuance of the system (`TotalIssuance`) appropriately.33 * If the new free or reserved balance is below the existential deposit,34 * it will reset the account nonce (`frame_system::AccountNonce`).35 * 36 * The dispatch origin for this call is `root`.37 **/38 setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;39 /**40 * Transfer some liquid free balance to another account.41 * 42 * `transfer` will set the `FreeBalance` of the sender and receiver.43 * If the sender's account is below the existential deposit as a result44 * of the transfer, the account will be reaped.45 * 46 * The dispatch origin for this call must be `Signed` by the transactor.47 * 48 * # <weight>49 * - Dependent on arguments but not critical, given proper implementations for input config50 * types. See related functions below.51 * - It contains a limited number of reads and writes internally and no complex52 * computation.53 * 54 * Related functions:55 * 56 * - `ensure_can_withdraw` is always called internally but has a bounded complexity.57 * - Transferring balances to accounts that did not exist before will cause58 * `T::OnNewAccount::on_new_account` to be called.59 * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.60 * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check61 * that the transfer will not kill the origin account.62 * ---------------------------------63 * - Origin account is already in memory, so no DB operations for them.64 * # </weight>65 **/66 transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;67 /**68 * Transfer the entire transferable balance from the caller account.69 * 70 * NOTE: This function only attempts to transfer _transferable_ balances. This means that71 * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be72 * transferred by this function. To ensure that this function results in a killed account,73 * you might need to prepare the account by removing any reference counters, storage74 * deposits, etc...75 * 76 * The dispatch origin of this call must be Signed.77 * 78 * - `dest`: The recipient of the transfer.79 * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all80 * of the funds the account has, causing the sender account to be killed (false), or81 * transfer everything except at least the existential deposit, which will guarantee to82 * keep the sender account alive (true). # <weight>83 * - O(1). Just like transfer, but reading the user's transferable balance first.84 * #</weight>85 **/86 transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;87 /**88 * Same as the [`transfer`] call, but with a check that the transfer will not kill the89 * origin account.90 * 91 * 99% of the time you want [`transfer`] instead.92 * 93 * [`transfer`]: struct.Pallet.html#method.transfer94 **/95 transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;96 /**97 * Generic tx98 **/99 [key: string]: SubmittableExtrinsicFunction<ApiType>;100 };101 charging: {102 /**103 * Generic tx104 **/105 [key: string]: SubmittableExtrinsicFunction<ApiType>;106 };107 cumulusXcm: {108 /**109 * Generic tx110 **/111 [key: string]: SubmittableExtrinsicFunction<ApiType>;112 };113 dmpQueue: {114 /**115 * Service a single overweight message.116 * 117 * - `origin`: Must pass `ExecuteOverweightOrigin`.118 * - `index`: The index of the overweight message to service.119 * - `weight_limit`: The amount of weight that message execution may take.120 * 121 * Errors:122 * - `Unknown`: Message of `index` is unknown.123 * - `OverLimit`: Message execution may use greater than `weight_limit`.124 * 125 * Events:126 * - `OverweightServiced`: On success.127 **/128 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;129 /**130 * Generic tx131 **/132 [key: string]: SubmittableExtrinsicFunction<ApiType>;133 };134 ethereum: {135 /**136 * Transact an Ethereum transaction.137 **/138 transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;139 /**140 * Generic tx141 **/142 [key: string]: SubmittableExtrinsicFunction<ApiType>;143 };144 evm: {145 /**146 * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.147 **/148 call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;149 /**150 * Issue an EVM create operation. This is similar to a contract creation transaction in151 * Ethereum.152 **/153 create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;154 /**155 * Issue an EVM create2 operation.156 **/157 create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | object | string | Uint8Array, nonce: Option<U256> | null | object | string | Uint8Array, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;158 /**159 * Withdraw balance from EVM into currency/balances pallet.160 **/161 withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;162 /**163 * Generic tx164 **/165 [key: string]: SubmittableExtrinsicFunction<ApiType>;166 };167 evmMigration: {168 begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;169 finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;170 setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;171 /**172 * Generic tx173 **/174 [key: string]: SubmittableExtrinsicFunction<ApiType>;175 };176 inflation: {177 /**178 * This method sets the inflation start date. Can be only called once.179 * Inflation start block can be backdated and will catch up. The method will create Treasury180 * account if it does not exist and perform the first inflation deposit.181 * 182 * # Permissions183 * 184 * * Root185 * 186 * # Arguments187 * 188 * * inflation_start_relay_block: The relay chain block at which inflation should start189 **/190 startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;191 /**192 * Generic tx193 **/194 [key: string]: SubmittableExtrinsicFunction<ApiType>;195 };196 parachainSystem: {197 authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;198 enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;199 /**200 * Set the current validation data.201 * 202 * This should be invoked exactly once per block. It will panic at the finalization203 * phase if the call was not invoked.204 * 205 * The dispatch origin for this call must be `Inherent`206 * 207 * As a side effect, this function upgrades the current validation function208 * if the appropriate time has come.209 **/210 setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CumulusPrimitivesParachainInherentParachainInherentData]>;211 sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;212 /**213 * Generic tx214 **/215 [key: string]: SubmittableExtrinsicFunction<ApiType>;216 };217 polkadotXcm: {218 /**219 * Execute an XCM message from a local, signed, origin.220 * 221 * An event is deposited indicating whether `msg` could be executed completely or only222 * partially.223 * 224 * No more than `max_weight` will be used in its attempted execution. If this is less than the225 * maximum amount of weight that the message could take to be executed, then no execution226 * attempt will be made.227 * 228 * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully229 * to completion; only that *some* of it was executed.230 **/231 execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;232 /**233 * Set a safe XCM version (the version that XCM should be encoded with if the most recent234 * version a destination can accept is unknown).235 * 236 * - `origin`: Must be Root.237 * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.238 **/239 forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;240 /**241 * Ask a location to notify us regarding their XCM version and any changes to it.242 * 243 * - `origin`: Must be Root.244 * - `location`: The location to which we should subscribe for XCM version notifications.245 **/246 forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;247 /**248 * Require that a particular destination should no longer notify us regarding any XCM249 * version changes.250 * 251 * - `origin`: Must be Root.252 * - `location`: The location to which we are currently subscribed for XCM version253 * notifications which we no longer desire.254 **/255 forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;256 /**257 * Extoll that a particular destination can be communicated with through a particular258 * version of XCM.259 * 260 * - `origin`: Must be Root.261 * - `location`: The destination that is being described.262 * - `xcm_version`: The latest version of XCM that `location` supports.263 **/264 forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;265 /**266 * Transfer some assets from the local chain to the sovereign account of a destination267 * chain and forward a notification XCM.268 * 269 * Fee payment on the destination side is made from the asset in the `assets` vector of270 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight271 * is needed than `weight_limit`, then the operation will fail and the assets send may be272 * at risk.273 * 274 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.275 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send276 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.277 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be278 * an `AccountId32` value.279 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the280 * `dest` side.281 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay282 * fees.283 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.284 **/285 limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;286 /**287 * Teleport some assets from the local chain to some destination chain.288 * 289 * Fee payment on the destination side is made from the asset in the `assets` vector of290 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight291 * is needed than `weight_limit`, then the operation will fail and the assets send may be292 * at risk.293 * 294 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.295 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send296 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.297 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be298 * an `AccountId32` value.299 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the300 * `dest` side. May not be empty.301 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay302 * fees.303 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.304 **/305 limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;306 /**307 * Transfer some assets from the local chain to the sovereign account of a destination308 * chain and forward a notification XCM.309 * 310 * Fee payment on the destination side is made from the asset in the `assets` vector of311 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,312 * with all fees taken as needed from the asset.313 * 314 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.315 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send316 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.317 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be318 * an `AccountId32` value.319 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the320 * `dest` side.321 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay322 * fees.323 **/324 reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;325 send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;326 /**327 * Teleport some assets from the local chain to some destination chain.328 * 329 * Fee payment on the destination side is made from the asset in the `assets` vector of330 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,331 * with all fees taken as needed from the asset.332 * 333 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.334 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send335 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.336 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be337 * an `AccountId32` value.338 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the339 * `dest` side. May not be empty.340 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay341 * fees.342 **/343 teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;344 /**345 * Generic tx346 **/347 [key: string]: SubmittableExtrinsicFunction<ApiType>;348 };349 structure: {350 /**351 * Generic tx352 **/353 [key: string]: SubmittableExtrinsicFunction<ApiType>;354 };355 sudo: {356 /**357 * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo358 * key.359 * 360 * The dispatch origin for this call must be _Signed_.361 * 362 * # <weight>363 * - O(1).364 * - Limited storage reads.365 * - One DB change.366 * # </weight>367 **/368 setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;369 /**370 * Authenticates the sudo key and dispatches a function call with `Root` origin.371 * 372 * The dispatch origin for this call must be _Signed_.373 * 374 * # <weight>375 * - O(1).376 * - Limited storage reads.377 * - One DB write (event).378 * - Weight of derivative `call` execution + 10,000.379 * # </weight>380 **/381 sudo: AugmentedSubmittable<(call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;382 /**383 * Authenticates the sudo key and dispatches a function call with `Signed` origin from384 * a given account.385 * 386 * The dispatch origin for this call must be _Signed_.387 * 388 * # <weight>389 * - O(1).390 * - Limited storage reads.391 * - One DB write (event).392 * - Weight of derivative `call` execution + 10,000.393 * # </weight>394 **/395 sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;396 /**397 * Authenticates the sudo key and dispatches a function call with `Root` origin.398 * This function does not check the weight of the call, and instead allows the399 * Sudo user to specify the weight of the call.400 * 401 * The dispatch origin for this call must be _Signed_.402 * 403 * # <weight>404 * - O(1).405 * - The weight of this call is defined by the caller.406 * # </weight>407 **/408 sudoUncheckedWeight: AugmentedSubmittable<(call: Call | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;409 /**410 * Generic tx411 **/412 [key: string]: SubmittableExtrinsicFunction<ApiType>;413 };414 system: {415 /**416 * A dispatch that will fill the block weight up to the given ratio.417 **/418 fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;419 /**420 * Kill all storage items with a key that starts with the given prefix.421 * 422 * **NOTE:** We rely on the Root origin to provide us the number of subkeys under423 * the prefix we are removing to accurately calculate the weight of this function.424 **/425 killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;426 /**427 * Kill some items from storage.428 **/429 killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;430 /**431 * Make some on-chain remark.432 * 433 * # <weight>434 * - `O(1)`435 * # </weight>436 **/437 remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;438 /**439 * Make some on-chain remark and emit event.440 **/441 remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;442 /**443 * Set the new runtime code.444 * 445 * # <weight>446 * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`447 * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is448 * expensive).449 * - 1 storage write (codec `O(C)`).450 * - 1 digest item.451 * - 1 event.452 * The weight of this function is dependent on the runtime, but generally this is very453 * expensive. We will treat this as a full block.454 * # </weight>455 **/456 setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;457 /**458 * Set the new runtime code without doing any checks of the given `code`.459 * 460 * # <weight>461 * - `O(C)` where `C` length of `code`462 * - 1 storage write (codec `O(C)`).463 * - 1 digest item.464 * - 1 event.465 * The weight of this function is dependent on the runtime. We will treat this as a full466 * block. # </weight>467 **/468 setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;469 /**470 * Set the number of pages in the WebAssembly environment's heap.471 **/472 setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;473 /**474 * Set some items of storage.475 **/476 setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;477 /**478 * Generic tx479 **/480 [key: string]: SubmittableExtrinsicFunction<ApiType>;481 };482 timestamp: {483 /**484 * Set the current time.485 * 486 * This call should be invoked exactly once per block. It will panic at the finalization487 * phase, if this call hasn't been invoked by that time.488 * 489 * The timestamp should be greater than the previous one by the amount specified by490 * `MinimumPeriod`.491 * 492 * The dispatch origin for this call must be `Inherent`.493 * 494 * # <weight>495 * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)496 * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in497 * `on_finalize`)498 * - 1 event handler `on_timestamp_set`. Must be `O(1)`.499 * # </weight>500 **/501 set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;502 /**503 * Generic tx504 **/505 [key: string]: SubmittableExtrinsicFunction<ApiType>;506 };507 treasury: {508 /**509 * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary510 * and the original deposit will be returned.511 * 512 * May only be called from `T::ApproveOrigin`.513 * 514 * # <weight>515 * - Complexity: O(1).516 * - DbReads: `Proposals`, `Approvals`517 * - DbWrite: `Approvals`518 * # </weight>519 **/520 approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;521 /**522 * Put forward a suggestion for spending. A deposit proportional to the value523 * is reserved and slashed if the proposal is rejected. It is returned once the524 * proposal is awarded.525 * 526 * # <weight>527 * - Complexity: O(1)528 * - DbReads: `ProposalCount`, `origin account`529 * - DbWrites: `ProposalCount`, `Proposals`, `origin account`530 * # </weight>531 **/532 proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;533 /**534 * Reject a proposed spend. The original deposit will be slashed.535 * 536 * May only be called from `T::RejectOrigin`.537 * 538 * # <weight>539 * - Complexity: O(1)540 * - DbReads: `Proposals`, `rejected proposer account`541 * - DbWrites: `Proposals`, `rejected proposer account`542 * # </weight>543 **/544 rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;545 /**546 * Generic tx547 **/548 [key: string]: SubmittableExtrinsicFunction<ApiType>;549 };550 unique: {551 /**552 * Adds an admin of the Collection.553 * NFT Collection can be controlled by multiple admin addresses (some which can also be servers, for example). Admins can issue and burn NFTs, as well as add and remove other admins, but cannot change NFT or Collection ownership.554 * 555 * # Permissions556 * 557 * * Collection Owner.558 * * Collection Admin.559 * 560 * # Arguments561 * 562 * * collection_id: ID of the Collection to add admin for.563 * 564 * * new_admin_id: Address of new admin to add.565 **/566 addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;567 /**568 * Add an address to allow list.569 * 570 * # Permissions571 * 572 * * Collection Owner573 * * Collection Admin574 * 575 * # Arguments576 * 577 * * collection_id.578 * 579 * * address.580 **/581 addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;582 /**583 * Set, change, or remove approved address to transfer the ownership of the NFT.584 * 585 * # Permissions586 * 587 * * Collection Owner588 * * Collection Admin589 * * Current NFT owner590 * 591 * # Arguments592 * 593 * * approved: Address that is approved to transfer this NFT or zero (if needed to remove approval).594 * 595 * * collection_id.596 * 597 * * item_id: ID of the item.598 **/599 approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;600 /**601 * Destroys a concrete instance of NFT on behalf of the owner602 * See also: [`approve`]603 * 604 * # Permissions605 * 606 * * Collection Owner.607 * * Collection Admin.608 * * Current NFT Owner.609 * 610 * # Arguments611 * 612 * * collection_id: ID of the collection.613 * 614 * * item_id: ID of NFT to burn.615 * 616 * * from: owner of item617 **/618 burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;619 /**620 * Destroys a concrete instance of NFT.621 * 622 * # Permissions623 * 624 * * Collection Owner.625 * * Collection Admin.626 * * Current NFT Owner.627 * 628 * # Arguments629 * 630 * * collection_id: ID of the collection.631 * 632 * * item_id: ID of NFT to burn.633 **/634 burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;635 /**636 * Change the owner of the collection.637 * 638 * # Permissions639 * 640 * * Collection Owner.641 * 642 * # Arguments643 * 644 * * collection_id.645 * 646 * * new_owner.647 **/648 changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;649 /**650 * # Permissions651 * 652 * * Sponsor.653 * 654 * # Arguments655 * 656 * * collection_id.657 **/658 confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;659 /**660 * This method creates a Collection of NFTs. Each Token may have multiple properties encoded as an array of bytes of certain length. The initial owner of the collection is set to the address that signed the transaction and can be changed later.661 * 662 * # Permissions663 * 664 * * Anyone.665 * 666 * # Arguments667 * 668 * * collection_name: UTF-16 string with collection name (limit 64 characters), will be stored as zero-terminated.669 * 670 * * collection_description: UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.671 * 672 * * token_prefix: UTF-8 string with token prefix.673 * 674 * * mode: [CollectionMode] collection type and type dependent data.675 **/676 createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;677 /**678 * This method creates a collection679 * 680 * Prefer it to deprecated [`created_collection`] method681 **/682 createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; offchainSchema?: any; schemaVersion?: any; pendingSponsor?: any; limits?: any; variableOnChainSchema?: any; constOnChainSchema?: any; metaUpdatePermission?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;683 /**684 * This method creates a concrete instance of NFT Collection created with CreateCollection method.685 * 686 * # Permissions687 * 688 * * Collection Owner.689 * * Collection Admin.690 * * Anyone if691 * * Allow List is enabled, and692 * * Address is added to allow list, and693 * * MintPermission is enabled (see SetMintPermission method)694 * 695 * # Arguments696 * 697 * * collection_id: ID of the collection.698 * 699 * * owner: Address, initial owner of the NFT.700 * 701 * * data: Token data to store on chain.702 **/703 createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;704 /**705 * This method creates multiple items in a collection created with CreateCollection method.706 * 707 * # Permissions708 * 709 * * Collection Owner.710 * * Collection Admin.711 * * Anyone if712 * * Allow List is enabled, and713 * * Address is added to allow list, and714 * * MintPermission is enabled (see SetMintPermission method)715 * 716 * # Arguments717 * 718 * * collection_id: ID of the collection.719 * 720 * * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].721 * 722 * * owner: Address, initial owner of the NFT.723 **/724 createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;725 createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;726 /**727 * **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.728 * 729 * # Permissions730 * 731 * * Collection Owner.732 * 733 * # Arguments734 * 735 * * collection_id: collection to destroy.736 **/737 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;738 /**739 * Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.740 * 741 * # Permissions742 * 743 * * Collection Owner.744 * * Collection Admin.745 * 746 * # Arguments747 * 748 * * collection_id: ID of the Collection to remove admin for.749 * 750 * * account_id: Address of admin to remove.751 **/752 removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;753 /**754 * Switch back to pay-per-own-transaction model.755 * 756 * # Permissions757 * 758 * * Collection owner.759 * 760 * # Arguments761 * 762 * * collection_id.763 **/764 removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;765 /**766 * Remove an address from allow list.767 * 768 * # Permissions769 * 770 * * Collection Owner771 * * Collection Admin772 * 773 * # Arguments774 * 775 * * collection_id.776 * 777 * * address.778 **/779 removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;780 setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimitsVersion2 | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any; nestingRule?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimitsVersion2]>;781 /**782 * # Permissions783 * 784 * * Collection Owner785 * 786 * # Arguments787 * 788 * * collection_id.789 * 790 * * new_sponsor.791 **/792 setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;793 /**794 * Set const on-chain data schema.795 * 796 * # Permissions797 * 798 * * Collection Owner799 * * Collection Admin800 * 801 * # Arguments802 * 803 * * collection_id.804 * 805 * * schema: String representing the const on-chain data schema.806 **/807 setConstOnChainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;808 /**809 * Set meta_update_permission value for particular collection810 * 811 * # Permissions812 * 813 * * Collection Owner.814 * 815 * # Arguments816 * 817 * * collection_id: ID of the collection.818 * 819 * * value: New flag value.820 **/821 setMetaUpdatePermissionFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: UpDataStructsMetaUpdatePermission | 'ItemOwner' | 'Admin' | 'None' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsMetaUpdatePermission]>;822 /**823 * Allows Anyone to create tokens if:824 * * Allow List is enabled, and825 * * Address is added to allow list, and826 * * This method was called with True parameter827 * 828 * # Permissions829 * * Collection Owner830 * 831 * # Arguments832 * 833 * * collection_id.834 * 835 * * mint_permission: Boolean parameter. If True, allows minting to Anyone with conditions above.836 **/837 setMintPermission: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, mintPermission: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;838 /**839 * Set off-chain data schema.840 * 841 * # Permissions842 * 843 * * Collection Owner844 * * Collection Admin845 * 846 * # Arguments847 * 848 * * collection_id.849 * 850 * * schema: String representing the offchain data schema.851 **/852 setOffchainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;853 /**854 * Toggle between normal and allow list access for the methods with access for `Anyone`.855 * 856 * # Permissions857 * 858 * * Collection Owner.859 * 860 * # Arguments861 * 862 * * collection_id.863 * 864 * * mode: [AccessMode]865 **/866 setPublicAccessMode: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, mode: UpDataStructsAccessMode | 'Normal' | 'AllowList' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsAccessMode]>;867 /**868 * Set schema standard869 * ImageURL870 * Unique871 * 872 * # Permissions873 * 874 * * Collection Owner875 * * Collection Admin876 * 877 * # Arguments878 * 879 * * collection_id.880 * 881 * * schema: SchemaVersion: enum882 **/883 setSchemaVersion: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, version: UpDataStructsSchemaVersion | 'ImageURL' | 'Unique' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsSchemaVersion]>;884 /**885 * Set transfers_enabled value for particular collection886 * 887 * # Permissions888 * 889 * * Collection Owner.890 * 891 * # Arguments892 * 893 * * collection_id: ID of the collection.894 * 895 * * value: New flag value.896 **/897 setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;898 /**899 * Set off-chain data schema.900 * 901 * # Permissions902 * 903 * * Collection Owner904 * * Collection Admin905 * 906 * # Arguments907 * 908 * * collection_id.909 * 910 * * schema: String representing the offchain data schema.911 **/912 setVariableMetaData: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes]>;913 /**914 * Set variable on-chain data schema.915 * 916 * # Permissions917 * 918 * * Collection Owner919 * * Collection Admin920 * 921 * # Arguments922 * 923 * * collection_id.924 * 925 * * schema: String representing the variable on-chain data schema.926 **/927 setVariableOnChainSchema: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, schema: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;928 /**929 * Change ownership of the token.930 * 931 * # Permissions932 * 933 * * Collection Owner934 * * Collection Admin935 * * Current NFT owner936 * 937 * # Arguments938 * 939 * * recipient: Address of token recipient.940 * 941 * * collection_id.942 * 943 * * item_id: ID of the item944 * * Non-Fungible Mode: Required.945 * * Fungible Mode: Ignored.946 * * Re-Fungible Mode: Required.947 * 948 * * value: Amount to transfer.949 * * Non-Fungible Mode: Ignored950 * * Fungible Mode: Must specify transferred amount951 * * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)952 **/953 transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;954 /**955 * Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.956 * 957 * # Permissions958 * * Collection Owner959 * * Collection Admin960 * * Current NFT owner961 * * Address approved by current NFT owner962 * 963 * # Arguments964 * 965 * * from: Address that owns token.966 * 967 * * recipient: Address of token recipient.968 * 969 * * collection_id.970 * 971 * * item_id: ID of the item.972 * 973 * * value: Amount to transfer.974 **/975 transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;976 /**977 * Generic tx978 **/979 [key: string]: SubmittableExtrinsicFunction<ApiType>;980 };981 vesting: {982 claim: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;983 claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;984 updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec<OrmlVestingVestingSchedule> | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [MultiAddress, Vec<OrmlVestingVestingSchedule>]>;985 vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, OrmlVestingVestingSchedule]>;986 /**987 * Generic tx988 **/989 [key: string]: SubmittableExtrinsicFunction<ApiType>;990 };991 xcmpQueue: {992 /**993 * Resumes all XCM executions for the XCMP queue.994 * 995 * Note that this function doesn't change the status of the in/out bound channels.996 * 997 * - `origin`: Must pass `ControllerOrigin`.998 **/999 resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1000 /**1001 * Services a single overweight XCM.1002 * 1003 * - `origin`: Must pass `ExecuteOverweightOrigin`.1004 * - `index`: The index of the overweight XCM to service1005 * - `weight_limit`: The amount of weight that XCM execution may take.1006 * 1007 * Errors:1008 * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.1009 * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.1010 * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.1011 * 1012 * Events:1013 * - `OverweightServiced`: On success.1014 **/1015 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;1016 /**1017 * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.1018 * 1019 * - `origin`: Must pass `ControllerOrigin`.1020 **/1021 suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1022 /**1023 * Overwrites the number of pages of messages which must be in the queue after which we drop any further1024 * messages from the channel.1025 * 1026 * - `origin`: Must pass `Root`.1027 * - `new`: Desired value for `QueueConfigData.drop_threshold`1028 **/1029 updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1030 /**1031 * Overwrites the number of pages of messages which the queue must be reduced to before it signals that1032 * message sending may recommence after it has been suspended.1033 * 1034 * - `origin`: Must pass `Root`.1035 * - `new`: Desired value for `QueueConfigData.resume_threshold`1036 **/1037 updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1038 /**1039 * Overwrites the number of pages of messages which must be in the queue for the other side to be told to1040 * suspend their sending.1041 * 1042 * - `origin`: Must pass `Root`.1043 * - `new`: Desired value for `QueueConfigData.suspend_value`1044 **/1045 updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1046 /**1047 * Overwrites the amount of remaining weight under which we stop processing messages.1048 * 1049 * - `origin`: Must pass `Root`.1050 * - `new`: Desired value for `QueueConfigData.threshold_weight`1051 **/1052 updateThresholdWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1053 /**1054 * Overwrites the speed to which the available weight approaches the maximum weight.1055 * A lower number results in a faster progression. A value of 1 makes the entire weight available initially.1056 * 1057 * - `origin`: Must pass `Root`.1058 * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.1059 **/1060 updateWeightRestrictDecay: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1061 /**1062 * Overwrite the maximum amount of weight any individual message may consume.1063 * Messages above this weight go into the overweight queue and may only be serviced explicitly.1064 * 1065 * - `origin`: Must pass `Root`.1066 * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.1067 **/1068 updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1069 /**1070 * Generic tx1071 **/1072 [key: string]: SubmittableExtrinsicFunction<ApiType>;1073 };1074 } // AugmentedSubmittables1075} // declare moduletests/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, 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, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, 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 './unique';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, FrameSupportStorageBoundedBTreeSet, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollectionField, UpDataStructsCollectionLimitsVersion2, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCollectionVersion2, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsNestingRule, UpDataStructsRpcCollection, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, 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 './unique';
import type { Data, StorageKey } from '@polkadot/types';
import type { BTreeSet, BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, 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';
@@ -479,6 +479,7 @@
ForkTreePendingChangeNode: ForkTreePendingChangeNode;
FpRpcTransactionStatus: FpRpcTransactionStatus;
FrameSupportPalletId: FrameSupportPalletId;
+ FrameSupportStorageBoundedBTreeSet: FrameSupportStorageBoundedBTreeSet;
FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus;
FrameSupportWeightsDispatchClass: FrameSupportWeightsDispatchClass;
FrameSupportWeightsDispatchInfo: FrameSupportWeightsDispatchInfo;
@@ -789,6 +790,9 @@
PalletsOrigin: PalletsOrigin;
PalletStorageMetadataLatest: PalletStorageMetadataLatest;
PalletStorageMetadataV14: PalletStorageMetadataV14;
+ PalletStructureCall: PalletStructureCall;
+ PalletStructureError: PalletStructureError;
+ PalletStructureEvent: PalletStructureEvent;
PalletSudoCall: PalletSudoCall;
PalletSudoError: PalletSudoError;
PalletSudoEvent: PalletSudoEvent;
@@ -846,6 +850,7 @@
PerU16: PerU16;
Phantom: Phantom;
PhantomData: PhantomData;
+ PhantomTypeUpDataStructs: PhantomTypeUpDataStructs;
Phase: Phase;
PhragmenScore: PhragmenScore;
Points: Points;
@@ -1163,10 +1168,11 @@
UnrewardedRelayer: UnrewardedRelayer;
UnrewardedRelayersState: UnrewardedRelayersState;
UpDataStructsAccessMode: UpDataStructsAccessMode;
- UpDataStructsCollection: UpDataStructsCollection;
- UpDataStructsCollectionLimits: UpDataStructsCollectionLimits;
+ UpDataStructsCollectionField: UpDataStructsCollectionField;
+ UpDataStructsCollectionLimitsVersion2: UpDataStructsCollectionLimitsVersion2;
UpDataStructsCollectionMode: UpDataStructsCollectionMode;
UpDataStructsCollectionStats: UpDataStructsCollectionStats;
+ UpDataStructsCollectionVersion2: UpDataStructsCollectionVersion2;
UpDataStructsCreateCollectionData: UpDataStructsCreateCollectionData;
UpDataStructsCreateFungibleData: UpDataStructsCreateFungibleData;
UpDataStructsCreateItemData: UpDataStructsCreateItemData;
@@ -1176,6 +1182,8 @@
UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;
UpDataStructsCreateRefungibleExData: UpDataStructsCreateRefungibleExData;
UpDataStructsMetaUpdatePermission: UpDataStructsMetaUpdatePermission;
+ UpDataStructsNestingRule: UpDataStructsNestingRule;
+ UpDataStructsRpcCollection: UpDataStructsRpcCollection;
UpDataStructsSchemaVersion: UpDataStructsSchemaVersion;
UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;
UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ /dev/null
@@ -1,2438 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
-/* eslint-disable */
-
-/* eslint-disable sort-keys */
-
-export default {
- /**
- * Lookup2: polkadot_primitives::v2::PersistedValidationData<primitive_types::H256, N>
- **/
- PolkadotPrimitivesV2PersistedValidationData: {
- parentHead: 'Bytes',
- relayParentNumber: 'u32',
- relayParentStorageRoot: 'H256',
- maxPovSize: 'u32'
- },
- /**
- * Lookup9: polkadot_primitives::v2::UpgradeRestriction
- **/
- PolkadotPrimitivesV2UpgradeRestriction: {
- _enum: ['Present']
- },
- /**
- * Lookup10: sp_trie::storage_proof::StorageProof
- **/
- SpTrieStorageProof: {
- trieNodes: 'BTreeSet'
- },
- /**
- * Lookup11: BTreeSet<T>
- **/
- BTreeSet: 'BTreeSet<Bytes>',
- /**
- * Lookup13: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
- **/
- CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: {
- dmqMqcHead: 'H256',
- relayDispatchQueueSize: '(u32,u32)',
- ingressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>',
- egressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>'
- },
- /**
- * Lookup18: polkadot_primitives::v2::AbridgedHrmpChannel
- **/
- PolkadotPrimitivesV2AbridgedHrmpChannel: {
- maxCapacity: 'u32',
- maxTotalSize: 'u32',
- maxMessageSize: 'u32',
- msgCount: 'u32',
- totalSize: 'u32',
- mqcHead: 'Option<H256>'
- },
- /**
- * Lookup20: polkadot_primitives::v2::AbridgedHostConfiguration
- **/
- PolkadotPrimitivesV2AbridgedHostConfiguration: {
- maxCodeSize: 'u32',
- maxHeadDataSize: 'u32',
- maxUpwardQueueCount: 'u32',
- maxUpwardQueueSize: 'u32',
- maxUpwardMessageSize: 'u32',
- maxUpwardMessageNumPerCandidate: 'u32',
- hrmpMaxMessageNumPerCandidate: 'u32',
- validationUpgradeCooldown: 'u32',
- validationUpgradeDelay: 'u32'
- },
- /**
- * Lookup26: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
- **/
- PolkadotCorePrimitivesOutboundHrmpMessage: {
- recipient: 'u32',
- data: 'Bytes'
- },
- /**
- * Lookup28: cumulus_pallet_parachain_system::pallet::Call<T>
- **/
- CumulusPalletParachainSystemCall: {
- _enum: {
- set_validation_data: {
- data: 'CumulusPrimitivesParachainInherentParachainInherentData',
- },
- sudo_send_upward_message: {
- message: 'Bytes',
- },
- authorize_upgrade: {
- codeHash: 'H256',
- },
- enact_authorized_upgrade: {
- code: 'Bytes'
- }
- }
- },
- /**
- * Lookup29: cumulus_primitives_parachain_inherent::ParachainInherentData
- **/
- CumulusPrimitivesParachainInherentParachainInherentData: {
- validationData: 'PolkadotPrimitivesV2PersistedValidationData',
- relayChainState: 'SpTrieStorageProof',
- downwardMessages: 'Vec<PolkadotCorePrimitivesInboundDownwardMessage>',
- horizontalMessages: 'BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>'
- },
- /**
- * Lookup31: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
- **/
- PolkadotCorePrimitivesInboundDownwardMessage: {
- sentAt: 'u32',
- msg: 'Bytes'
- },
- /**
- * Lookup34: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
- **/
- PolkadotCorePrimitivesInboundHrmpMessage: {
- sentAt: 'u32',
- data: 'Bytes'
- },
- /**
- * Lookup37: cumulus_pallet_parachain_system::pallet::Event<T>
- **/
- CumulusPalletParachainSystemEvent: {
- _enum: {
- ValidationFunctionStored: 'Null',
- ValidationFunctionApplied: 'u32',
- ValidationFunctionDiscarded: 'Null',
- UpgradeAuthorized: 'H256',
- DownwardMessagesReceived: 'u32',
- DownwardMessagesProcessed: '(u64,H256)'
- }
- },
- /**
- * Lookup38: cumulus_pallet_parachain_system::pallet::Error<T>
- **/
- CumulusPalletParachainSystemError: {
- _enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized']
- },
- /**
- * Lookup41: pallet_balances::AccountData<Balance>
- **/
- PalletBalancesAccountData: {
- free: 'u128',
- reserved: 'u128',
- miscFrozen: 'u128',
- feeFrozen: 'u128'
- },
- /**
- * Lookup43: pallet_balances::BalanceLock<Balance>
- **/
- PalletBalancesBalanceLock: {
- id: '[u8;8]',
- amount: 'u128',
- reasons: 'PalletBalancesReasons'
- },
- /**
- * Lookup45: pallet_balances::Reasons
- **/
- PalletBalancesReasons: {
- _enum: ['Fee', 'Misc', 'All']
- },
- /**
- * Lookup48: pallet_balances::ReserveData<ReserveIdentifier, Balance>
- **/
- PalletBalancesReserveData: {
- id: '[u8;8]',
- amount: 'u128'
- },
- /**
- * Lookup50: pallet_balances::Releases
- **/
- PalletBalancesReleases: {
- _enum: ['V1_0_0', 'V2_0_0']
- },
- /**
- * Lookup51: pallet_balances::pallet::Call<T, I>
- **/
- PalletBalancesCall: {
- _enum: {
- transfer: {
- dest: 'MultiAddress',
- value: 'Compact<u128>',
- },
- set_balance: {
- who: 'MultiAddress',
- newFree: 'Compact<u128>',
- newReserved: 'Compact<u128>',
- },
- force_transfer: {
- source: 'MultiAddress',
- dest: 'MultiAddress',
- value: 'Compact<u128>',
- },
- transfer_keep_alive: {
- dest: 'MultiAddress',
- value: 'Compact<u128>',
- },
- transfer_all: {
- dest: 'MultiAddress',
- keepAlive: 'bool',
- },
- force_unreserve: {
- who: 'MultiAddress',
- amount: 'u128'
- }
- }
- },
- /**
- * Lookup57: pallet_balances::pallet::Event<T, I>
- **/
- PalletBalancesEvent: {
- _enum: {
- Endowed: {
- account: 'AccountId32',
- freeBalance: 'u128',
- },
- DustLost: {
- account: 'AccountId32',
- amount: 'u128',
- },
- Transfer: {
- from: 'AccountId32',
- to: 'AccountId32',
- amount: 'u128',
- },
- BalanceSet: {
- who: 'AccountId32',
- free: 'u128',
- reserved: 'u128',
- },
- Reserved: {
- who: 'AccountId32',
- amount: 'u128',
- },
- Unreserved: {
- who: 'AccountId32',
- amount: 'u128',
- },
- ReserveRepatriated: {
- from: 'AccountId32',
- to: 'AccountId32',
- amount: 'u128',
- destinationStatus: 'FrameSupportTokensMiscBalanceStatus',
- },
- Deposit: {
- who: 'AccountId32',
- amount: 'u128',
- },
- Withdraw: {
- who: 'AccountId32',
- amount: 'u128',
- },
- Slashed: {
- who: 'AccountId32',
- amount: 'u128'
- }
- }
- },
- /**
- * Lookup58: frame_support::traits::tokens::misc::BalanceStatus
- **/
- FrameSupportTokensMiscBalanceStatus: {
- _enum: ['Free', 'Reserved']
- },
- /**
- * Lookup59: pallet_balances::pallet::Error<T, I>
- **/
- PalletBalancesError: {
- _enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
- },
- /**
- * Lookup62: pallet_timestamp::pallet::Call<T>
- **/
- PalletTimestampCall: {
- _enum: {
- set: {
- now: 'Compact<u64>'
- }
- }
- },
- /**
- * Lookup65: pallet_transaction_payment::Releases
- **/
- PalletTransactionPaymentReleases: {
- _enum: ['V1Ancient', 'V2']
- },
- /**
- * Lookup67: frame_support::weights::WeightToFeeCoefficient<Balance>
- **/
- FrameSupportWeightsWeightToFeeCoefficient: {
- coeffInteger: 'u128',
- coeffFrac: 'Perbill',
- negative: 'bool',
- degree: 'u8'
- },
- /**
- * Lookup69: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
- **/
- PalletTreasuryProposal: {
- proposer: 'AccountId32',
- value: 'u128',
- beneficiary: 'AccountId32',
- bond: 'u128'
- },
- /**
- * Lookup72: pallet_treasury::pallet::Call<T, I>
- **/
- PalletTreasuryCall: {
- _enum: {
- propose_spend: {
- value: 'Compact<u128>',
- beneficiary: 'MultiAddress',
- },
- reject_proposal: {
- proposalId: 'Compact<u32>',
- },
- approve_proposal: {
- proposalId: 'Compact<u32>'
- }
- }
- },
- /**
- * Lookup74: pallet_treasury::pallet::Event<T, I>
- **/
- PalletTreasuryEvent: {
- _enum: {
- Proposed: {
- proposalIndex: 'u32',
- },
- Spending: {
- budgetRemaining: 'u128',
- },
- Awarded: {
- proposalIndex: 'u32',
- award: 'u128',
- account: 'AccountId32',
- },
- Rejected: {
- proposalIndex: 'u32',
- slashed: 'u128',
- },
- Burnt: {
- burntFunds: 'u128',
- },
- Rollover: {
- rolloverBalance: 'u128',
- },
- Deposit: {
- value: 'u128'
- }
- }
- },
- /**
- * Lookup77: frame_support::PalletId
- **/
- FrameSupportPalletId: '[u8;8]',
- /**
- * Lookup78: pallet_treasury::pallet::Error<T, I>
- **/
- PalletTreasuryError: {
- _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals']
- },
- /**
- * Lookup79: pallet_sudo::pallet::Call<T>
- **/
- PalletSudoCall: {
- _enum: {
- sudo: {
- call: 'Call',
- },
- sudo_unchecked_weight: {
- call: 'Call',
- weight: 'u64',
- },
- set_key: {
- _alias: {
- new_: 'new',
- },
- new_: 'MultiAddress',
- },
- sudo_as: {
- who: 'MultiAddress',
- call: 'Call'
- }
- }
- },
- /**
- * Lookup81: frame_system::pallet::Call<T>
- **/
- FrameSystemCall: {
- _enum: {
- fill_block: {
- ratio: 'Perbill',
- },
- remark: {
- remark: 'Bytes',
- },
- set_heap_pages: {
- pages: 'u64',
- },
- set_code: {
- code: 'Bytes',
- },
- set_code_without_checks: {
- code: 'Bytes',
- },
- set_storage: {
- items: 'Vec<(Bytes,Bytes)>',
- },
- kill_storage: {
- _alias: {
- keys_: 'keys',
- },
- keys_: 'Vec<Bytes>',
- },
- kill_prefix: {
- prefix: 'Bytes',
- subkeys: 'u32',
- },
- remark_with_event: {
- remark: 'Bytes'
- }
- }
- },
- /**
- * Lookup84: orml_vesting::module::Call<T>
- **/
- OrmlVestingModuleCall: {
- _enum: {
- claim: 'Null',
- vested_transfer: {
- dest: 'MultiAddress',
- schedule: 'OrmlVestingVestingSchedule',
- },
- update_vesting_schedules: {
- who: 'MultiAddress',
- vestingSchedules: 'Vec<OrmlVestingVestingSchedule>',
- },
- claim_for: {
- dest: 'MultiAddress'
- }
- }
- },
- /**
- * Lookup85: orml_vesting::VestingSchedule<BlockNumber, Balance>
- **/
- OrmlVestingVestingSchedule: {
- start: 'u32',
- period: 'u32',
- periodCount: 'u32',
- perPeriod: 'Compact<u128>'
- },
- /**
- * Lookup87: cumulus_pallet_xcmp_queue::pallet::Call<T>
- **/
- CumulusPalletXcmpQueueCall: {
- _enum: {
- service_overweight: {
- index: 'u64',
- weightLimit: 'u64',
- },
- suspend_xcm_execution: 'Null',
- resume_xcm_execution: 'Null',
- update_suspend_threshold: {
- _alias: {
- new_: 'new',
- },
- new_: 'u32',
- },
- update_drop_threshold: {
- _alias: {
- new_: 'new',
- },
- new_: 'u32',
- },
- update_resume_threshold: {
- _alias: {
- new_: 'new',
- },
- new_: 'u32',
- },
- update_threshold_weight: {
- _alias: {
- new_: 'new',
- },
- new_: 'u64',
- },
- update_weight_restrict_decay: {
- _alias: {
- new_: 'new',
- },
- new_: 'u64',
- },
- update_xcmp_max_individual_weight: {
- _alias: {
- new_: 'new',
- },
- new_: 'u64'
- }
- }
- },
- /**
- * Lookup88: pallet_xcm::pallet::Call<T>
- **/
- PalletXcmCall: {
- _enum: {
- send: {
- dest: 'XcmVersionedMultiLocation',
- message: 'XcmVersionedXcm',
- },
- teleport_assets: {
- dest: 'XcmVersionedMultiLocation',
- beneficiary: 'XcmVersionedMultiLocation',
- assets: 'XcmVersionedMultiAssets',
- feeAssetItem: 'u32',
- },
- reserve_transfer_assets: {
- dest: 'XcmVersionedMultiLocation',
- beneficiary: 'XcmVersionedMultiLocation',
- assets: 'XcmVersionedMultiAssets',
- feeAssetItem: 'u32',
- },
- execute: {
- message: 'XcmVersionedXcm',
- maxWeight: 'u64',
- },
- force_xcm_version: {
- location: 'XcmV1MultiLocation',
- xcmVersion: 'u32',
- },
- force_default_xcm_version: {
- maybeXcmVersion: 'Option<u32>',
- },
- force_subscribe_version_notify: {
- location: 'XcmVersionedMultiLocation',
- },
- force_unsubscribe_version_notify: {
- location: 'XcmVersionedMultiLocation',
- },
- limited_reserve_transfer_assets: {
- dest: 'XcmVersionedMultiLocation',
- beneficiary: 'XcmVersionedMultiLocation',
- assets: 'XcmVersionedMultiAssets',
- feeAssetItem: 'u32',
- weightLimit: 'XcmV2WeightLimit',
- },
- limited_teleport_assets: {
- dest: 'XcmVersionedMultiLocation',
- beneficiary: 'XcmVersionedMultiLocation',
- assets: 'XcmVersionedMultiAssets',
- feeAssetItem: 'u32',
- weightLimit: 'XcmV2WeightLimit'
- }
- }
- },
- /**
- * Lookup89: xcm::VersionedMultiLocation
- **/
- XcmVersionedMultiLocation: {
- _enum: {
- V0: 'XcmV0MultiLocation',
- V1: 'XcmV1MultiLocation'
- }
- },
- /**
- * Lookup90: xcm::v0::multi_location::MultiLocation
- **/
- XcmV0MultiLocation: {
- _enum: {
- Null: 'Null',
- X1: 'XcmV0Junction',
- X2: '(XcmV0Junction,XcmV0Junction)',
- X3: '(XcmV0Junction,XcmV0Junction,XcmV0Junction)',
- X4: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',
- X5: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',
- X6: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',
- X7: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',
- X8: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)'
- }
- },
- /**
- * Lookup91: xcm::v0::junction::Junction
- **/
- XcmV0Junction: {
- _enum: {
- Parent: 'Null',
- Parachain: 'Compact<u32>',
- AccountId32: {
- network: 'XcmV0JunctionNetworkId',
- id: '[u8;32]',
- },
- AccountIndex64: {
- network: 'XcmV0JunctionNetworkId',
- index: 'Compact<u64>',
- },
- AccountKey20: {
- network: 'XcmV0JunctionNetworkId',
- key: '[u8;20]',
- },
- PalletInstance: 'u8',
- GeneralIndex: 'Compact<u128>',
- GeneralKey: 'Bytes',
- OnlyChild: 'Null',
- Plurality: {
- id: 'XcmV0JunctionBodyId',
- part: 'XcmV0JunctionBodyPart'
- }
- }
- },
- /**
- * Lookup92: xcm::v0::junction::NetworkId
- **/
- XcmV0JunctionNetworkId: {
- _enum: {
- Any: 'Null',
- Named: 'Bytes',
- Polkadot: 'Null',
- Kusama: 'Null'
- }
- },
- /**
- * Lookup93: xcm::v0::junction::BodyId
- **/
- XcmV0JunctionBodyId: {
- _enum: {
- Unit: 'Null',
- Named: 'Bytes',
- Index: 'Compact<u32>',
- Executive: 'Null',
- Technical: 'Null',
- Legislative: 'Null',
- Judicial: 'Null'
- }
- },
- /**
- * Lookup94: xcm::v0::junction::BodyPart
- **/
- XcmV0JunctionBodyPart: {
- _enum: {
- Voice: 'Null',
- Members: {
- count: 'Compact<u32>',
- },
- Fraction: {
- nom: 'Compact<u32>',
- denom: 'Compact<u32>',
- },
- AtLeastProportion: {
- nom: 'Compact<u32>',
- denom: 'Compact<u32>',
- },
- MoreThanProportion: {
- nom: 'Compact<u32>',
- denom: 'Compact<u32>'
- }
- }
- },
- /**
- * Lookup95: xcm::v1::multilocation::MultiLocation
- **/
- XcmV1MultiLocation: {
- parents: 'u8',
- interior: 'XcmV1MultilocationJunctions'
- },
- /**
- * Lookup96: xcm::v1::multilocation::Junctions
- **/
- XcmV1MultilocationJunctions: {
- _enum: {
- Here: 'Null',
- X1: 'XcmV1Junction',
- X2: '(XcmV1Junction,XcmV1Junction)',
- X3: '(XcmV1Junction,XcmV1Junction,XcmV1Junction)',
- X4: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',
- X5: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',
- X6: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',
- X7: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',
- X8: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)'
- }
- },
- /**
- * Lookup97: xcm::v1::junction::Junction
- **/
- XcmV1Junction: {
- _enum: {
- Parachain: 'Compact<u32>',
- AccountId32: {
- network: 'XcmV0JunctionNetworkId',
- id: '[u8;32]',
- },
- AccountIndex64: {
- network: 'XcmV0JunctionNetworkId',
- index: 'Compact<u64>',
- },
- AccountKey20: {
- network: 'XcmV0JunctionNetworkId',
- key: '[u8;20]',
- },
- PalletInstance: 'u8',
- GeneralIndex: 'Compact<u128>',
- GeneralKey: 'Bytes',
- OnlyChild: 'Null',
- Plurality: {
- id: 'XcmV0JunctionBodyId',
- part: 'XcmV0JunctionBodyPart'
- }
- }
- },
- /**
- * Lookup98: xcm::VersionedXcm<Call>
- **/
- XcmVersionedXcm: {
- _enum: {
- V0: 'XcmV0Xcm',
- V1: 'XcmV1Xcm',
- V2: 'XcmV2Xcm'
- }
- },
- /**
- * Lookup99: xcm::v0::Xcm<Call>
- **/
- XcmV0Xcm: {
- _enum: {
- WithdrawAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- effects: 'Vec<XcmV0Order>',
- },
- ReserveAssetDeposit: {
- assets: 'Vec<XcmV0MultiAsset>',
- effects: 'Vec<XcmV0Order>',
- },
- TeleportAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- effects: 'Vec<XcmV0Order>',
- },
- QueryResponse: {
- queryId: 'Compact<u64>',
- response: 'XcmV0Response',
- },
- TransferAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- dest: 'XcmV0MultiLocation',
- },
- TransferReserveAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- dest: 'XcmV0MultiLocation',
- effects: 'Vec<XcmV0Order>',
- },
- Transact: {
- originType: 'XcmV0OriginKind',
- requireWeightAtMost: 'u64',
- call: 'XcmDoubleEncoded',
- },
- HrmpNewChannelOpenRequest: {
- sender: 'Compact<u32>',
- maxMessageSize: 'Compact<u32>',
- maxCapacity: 'Compact<u32>',
- },
- HrmpChannelAccepted: {
- recipient: 'Compact<u32>',
- },
- HrmpChannelClosing: {
- initiator: 'Compact<u32>',
- sender: 'Compact<u32>',
- recipient: 'Compact<u32>',
- },
- RelayedFrom: {
- who: 'XcmV0MultiLocation',
- message: 'XcmV0Xcm'
- }
- }
- },
- /**
- * Lookup101: xcm::v0::multi_asset::MultiAsset
- **/
- XcmV0MultiAsset: {
- _enum: {
- None: 'Null',
- All: 'Null',
- AllFungible: 'Null',
- AllNonFungible: 'Null',
- AllAbstractFungible: {
- id: 'Bytes',
- },
- AllAbstractNonFungible: {
- class: 'Bytes',
- },
- AllConcreteFungible: {
- id: 'XcmV0MultiLocation',
- },
- AllConcreteNonFungible: {
- class: 'XcmV0MultiLocation',
- },
- AbstractFungible: {
- id: 'Bytes',
- amount: 'Compact<u128>',
- },
- AbstractNonFungible: {
- class: 'Bytes',
- instance: 'XcmV1MultiassetAssetInstance',
- },
- ConcreteFungible: {
- id: 'XcmV0MultiLocation',
- amount: 'Compact<u128>',
- },
- ConcreteNonFungible: {
- class: 'XcmV0MultiLocation',
- instance: 'XcmV1MultiassetAssetInstance'
- }
- }
- },
- /**
- * Lookup102: xcm::v1::multiasset::AssetInstance
- **/
- XcmV1MultiassetAssetInstance: {
- _enum: {
- Undefined: 'Null',
- Index: 'Compact<u128>',
- Array4: '[u8;4]',
- Array8: '[u8;8]',
- Array16: '[u8;16]',
- Array32: '[u8;32]',
- Blob: 'Bytes'
- }
- },
- /**
- * Lookup106: xcm::v0::order::Order<Call>
- **/
- XcmV0Order: {
- _enum: {
- Null: 'Null',
- DepositAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- dest: 'XcmV0MultiLocation',
- },
- DepositReserveAsset: {
- assets: 'Vec<XcmV0MultiAsset>',
- dest: 'XcmV0MultiLocation',
- effects: 'Vec<XcmV0Order>',
- },
- ExchangeAsset: {
- give: 'Vec<XcmV0MultiAsset>',
- receive: 'Vec<XcmV0MultiAsset>',
- },
- InitiateReserveWithdraw: {
- assets: 'Vec<XcmV0MultiAsset>',
- reserve: 'XcmV0MultiLocation',
- effects: 'Vec<XcmV0Order>',
- },
- InitiateTeleport: {
- assets: 'Vec<XcmV0MultiAsset>',
- dest: 'XcmV0MultiLocation',
- effects: 'Vec<XcmV0Order>',
- },
- QueryHolding: {
- queryId: 'Compact<u64>',
- dest: 'XcmV0MultiLocation',
- assets: 'Vec<XcmV0MultiAsset>',
- },
- BuyExecution: {
- fees: 'XcmV0MultiAsset',
- weight: 'u64',
- debt: 'u64',
- haltOnError: 'bool',
- xcm: 'Vec<XcmV0Xcm>'
- }
- }
- },
- /**
- * Lookup108: xcm::v0::Response
- **/
- XcmV0Response: {
- _enum: {
- Assets: 'Vec<XcmV0MultiAsset>'
- }
- },
- /**
- * Lookup109: xcm::v0::OriginKind
- **/
- XcmV0OriginKind: {
- _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
- },
- /**
- * Lookup110: xcm::double_encoded::DoubleEncoded<T>
- **/
- XcmDoubleEncoded: {
- encoded: 'Bytes'
- },
- /**
- * Lookup111: xcm::v1::Xcm<Call>
- **/
- XcmV1Xcm: {
- _enum: {
- WithdrawAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- effects: 'Vec<XcmV1Order>',
- },
- ReserveAssetDeposited: {
- assets: 'XcmV1MultiassetMultiAssets',
- effects: 'Vec<XcmV1Order>',
- },
- ReceiveTeleportedAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- effects: 'Vec<XcmV1Order>',
- },
- QueryResponse: {
- queryId: 'Compact<u64>',
- response: 'XcmV1Response',
- },
- TransferAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- beneficiary: 'XcmV1MultiLocation',
- },
- TransferReserveAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- dest: 'XcmV1MultiLocation',
- effects: 'Vec<XcmV1Order>',
- },
- Transact: {
- originType: 'XcmV0OriginKind',
- requireWeightAtMost: 'u64',
- call: 'XcmDoubleEncoded',
- },
- HrmpNewChannelOpenRequest: {
- sender: 'Compact<u32>',
- maxMessageSize: 'Compact<u32>',
- maxCapacity: 'Compact<u32>',
- },
- HrmpChannelAccepted: {
- recipient: 'Compact<u32>',
- },
- HrmpChannelClosing: {
- initiator: 'Compact<u32>',
- sender: 'Compact<u32>',
- recipient: 'Compact<u32>',
- },
- RelayedFrom: {
- who: 'XcmV1MultilocationJunctions',
- message: 'XcmV1Xcm',
- },
- SubscribeVersion: {
- queryId: 'Compact<u64>',
- maxResponseWeight: 'Compact<u64>',
- },
- UnsubscribeVersion: 'Null'
- }
- },
- /**
- * Lookup112: xcm::v1::multiasset::MultiAssets
- **/
- XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
- /**
- * Lookup114: xcm::v1::multiasset::MultiAsset
- **/
- XcmV1MultiAsset: {
- id: 'XcmV1MultiassetAssetId',
- fun: 'XcmV1MultiassetFungibility'
- },
- /**
- * Lookup115: xcm::v1::multiasset::AssetId
- **/
- XcmV1MultiassetAssetId: {
- _enum: {
- Concrete: 'XcmV1MultiLocation',
- Abstract: 'Bytes'
- }
- },
- /**
- * Lookup116: xcm::v1::multiasset::Fungibility
- **/
- XcmV1MultiassetFungibility: {
- _enum: {
- Fungible: 'Compact<u128>',
- NonFungible: 'XcmV1MultiassetAssetInstance'
- }
- },
- /**
- * Lookup118: xcm::v1::order::Order<Call>
- **/
- XcmV1Order: {
- _enum: {
- Noop: 'Null',
- DepositAsset: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- maxAssets: 'u32',
- beneficiary: 'XcmV1MultiLocation',
- },
- DepositReserveAsset: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- maxAssets: 'u32',
- dest: 'XcmV1MultiLocation',
- effects: 'Vec<XcmV1Order>',
- },
- ExchangeAsset: {
- give: 'XcmV1MultiassetMultiAssetFilter',
- receive: 'XcmV1MultiassetMultiAssets',
- },
- InitiateReserveWithdraw: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- reserve: 'XcmV1MultiLocation',
- effects: 'Vec<XcmV1Order>',
- },
- InitiateTeleport: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- dest: 'XcmV1MultiLocation',
- effects: 'Vec<XcmV1Order>',
- },
- QueryHolding: {
- queryId: 'Compact<u64>',
- dest: 'XcmV1MultiLocation',
- assets: 'XcmV1MultiassetMultiAssetFilter',
- },
- BuyExecution: {
- fees: 'XcmV1MultiAsset',
- weight: 'u64',
- debt: 'u64',
- haltOnError: 'bool',
- instructions: 'Vec<XcmV1Xcm>'
- }
- }
- },
- /**
- * Lookup119: xcm::v1::multiasset::MultiAssetFilter
- **/
- XcmV1MultiassetMultiAssetFilter: {
- _enum: {
- Definite: 'XcmV1MultiassetMultiAssets',
- Wild: 'XcmV1MultiassetWildMultiAsset'
- }
- },
- /**
- * Lookup120: xcm::v1::multiasset::WildMultiAsset
- **/
- XcmV1MultiassetWildMultiAsset: {
- _enum: {
- All: 'Null',
- AllOf: {
- id: 'XcmV1MultiassetAssetId',
- fun: 'XcmV1MultiassetWildFungibility'
- }
- }
- },
- /**
- * Lookup121: xcm::v1::multiasset::WildFungibility
- **/
- XcmV1MultiassetWildFungibility: {
- _enum: ['Fungible', 'NonFungible']
- },
- /**
- * Lookup123: xcm::v1::Response
- **/
- XcmV1Response: {
- _enum: {
- Assets: 'XcmV1MultiassetMultiAssets',
- Version: 'u32'
- }
- },
- /**
- * Lookup124: xcm::v2::Xcm<Call>
- **/
- XcmV2Xcm: 'Vec<XcmV2Instruction>',
- /**
- * Lookup126: xcm::v2::Instruction<Call>
- **/
- XcmV2Instruction: {
- _enum: {
- WithdrawAsset: 'XcmV1MultiassetMultiAssets',
- ReserveAssetDeposited: 'XcmV1MultiassetMultiAssets',
- ReceiveTeleportedAsset: 'XcmV1MultiassetMultiAssets',
- QueryResponse: {
- queryId: 'Compact<u64>',
- response: 'XcmV2Response',
- maxWeight: 'Compact<u64>',
- },
- TransferAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- beneficiary: 'XcmV1MultiLocation',
- },
- TransferReserveAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- dest: 'XcmV1MultiLocation',
- xcm: 'XcmV2Xcm',
- },
- Transact: {
- originType: 'XcmV0OriginKind',
- requireWeightAtMost: 'Compact<u64>',
- call: 'XcmDoubleEncoded',
- },
- HrmpNewChannelOpenRequest: {
- sender: 'Compact<u32>',
- maxMessageSize: 'Compact<u32>',
- maxCapacity: 'Compact<u32>',
- },
- HrmpChannelAccepted: {
- recipient: 'Compact<u32>',
- },
- HrmpChannelClosing: {
- initiator: 'Compact<u32>',
- sender: 'Compact<u32>',
- recipient: 'Compact<u32>',
- },
- ClearOrigin: 'Null',
- DescendOrigin: 'XcmV1MultilocationJunctions',
- ReportError: {
- queryId: 'Compact<u64>',
- dest: 'XcmV1MultiLocation',
- maxResponseWeight: 'Compact<u64>',
- },
- DepositAsset: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- maxAssets: 'Compact<u32>',
- beneficiary: 'XcmV1MultiLocation',
- },
- DepositReserveAsset: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- maxAssets: 'Compact<u32>',
- dest: 'XcmV1MultiLocation',
- xcm: 'XcmV2Xcm',
- },
- ExchangeAsset: {
- give: 'XcmV1MultiassetMultiAssetFilter',
- receive: 'XcmV1MultiassetMultiAssets',
- },
- InitiateReserveWithdraw: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- reserve: 'XcmV1MultiLocation',
- xcm: 'XcmV2Xcm',
- },
- InitiateTeleport: {
- assets: 'XcmV1MultiassetMultiAssetFilter',
- dest: 'XcmV1MultiLocation',
- xcm: 'XcmV2Xcm',
- },
- QueryHolding: {
- queryId: 'Compact<u64>',
- dest: 'XcmV1MultiLocation',
- assets: 'XcmV1MultiassetMultiAssetFilter',
- maxResponseWeight: 'Compact<u64>',
- },
- BuyExecution: {
- fees: 'XcmV1MultiAsset',
- weightLimit: 'XcmV2WeightLimit',
- },
- RefundSurplus: 'Null',
- SetErrorHandler: 'XcmV2Xcm',
- SetAppendix: 'XcmV2Xcm',
- ClearError: 'Null',
- ClaimAsset: {
- assets: 'XcmV1MultiassetMultiAssets',
- ticket: 'XcmV1MultiLocation',
- },
- Trap: 'Compact<u64>',
- SubscribeVersion: {
- queryId: 'Compact<u64>',
- maxResponseWeight: 'Compact<u64>',
- },
- UnsubscribeVersion: 'Null'
- }
- },
- /**
- * Lookup127: xcm::v2::Response
- **/
- XcmV2Response: {
- _enum: {
- Null: 'Null',
- Assets: 'XcmV1MultiassetMultiAssets',
- ExecutionResult: 'Option<(u32,XcmV2TraitsError)>',
- Version: 'u32'
- }
- },
- /**
- * Lookup130: xcm::v2::traits::Error
- **/
- XcmV2TraitsError: {
- _enum: {
- Overflow: 'Null',
- Unimplemented: 'Null',
- UntrustedReserveLocation: 'Null',
- UntrustedTeleportLocation: 'Null',
- MultiLocationFull: 'Null',
- MultiLocationNotInvertible: 'Null',
- BadOrigin: 'Null',
- InvalidLocation: 'Null',
- AssetNotFound: 'Null',
- FailedToTransactAsset: 'Null',
- NotWithdrawable: 'Null',
- LocationCannotHold: 'Null',
- ExceedsMaxMessageSize: 'Null',
- DestinationUnsupported: 'Null',
- Transport: 'Null',
- Unroutable: 'Null',
- UnknownClaim: 'Null',
- FailedToDecode: 'Null',
- MaxWeightInvalid: 'Null',
- NotHoldingFees: 'Null',
- TooExpensive: 'Null',
- Trap: 'u64',
- UnhandledXcmVersion: 'Null',
- WeightLimitReached: 'u64',
- Barrier: 'Null',
- WeightNotComputable: 'Null'
- }
- },
- /**
- * Lookup131: xcm::v2::WeightLimit
- **/
- XcmV2WeightLimit: {
- _enum: {
- Unlimited: 'Null',
- Limited: 'Compact<u64>'
- }
- },
- /**
- * Lookup132: xcm::VersionedMultiAssets
- **/
- XcmVersionedMultiAssets: {
- _enum: {
- V0: 'Vec<XcmV0MultiAsset>',
- V1: 'XcmV1MultiassetMultiAssets'
- }
- },
- /**
- * Lookup147: cumulus_pallet_xcm::pallet::Call<T>
- **/
- CumulusPalletXcmCall: 'Null',
- /**
- * Lookup148: cumulus_pallet_dmp_queue::pallet::Call<T>
- **/
- CumulusPalletDmpQueueCall: {
- _enum: {
- service_overweight: {
- index: 'u64',
- weightLimit: 'u64'
- }
- }
- },
- /**
- * Lookup149: pallet_inflation::pallet::Call<T>
- **/
- PalletInflationCall: {
- _enum: {
- start_inflation: {
- inflationStartRelayBlock: 'u32'
- }
- }
- },
- /**
- * Lookup150: pallet_unique::Call<T>
- **/
- PalletUniqueCall: {
- _enum: {
- create_collection: {
- collectionName: 'Vec<u16>',
- collectionDescription: 'Vec<u16>',
- tokenPrefix: 'Bytes',
- mode: 'UpDataStructsCollectionMode',
- },
- create_collection_ex: {
- data: 'UpDataStructsCreateCollectionData',
- },
- destroy_collection: {
- collectionId: 'u32',
- },
- add_to_allow_list: {
- collectionId: 'u32',
- address: 'PalletEvmAccountBasicCrossAccountIdRepr',
- },
- remove_from_allow_list: {
- collectionId: 'u32',
- address: 'PalletEvmAccountBasicCrossAccountIdRepr',
- },
- set_public_access_mode: {
- collectionId: 'u32',
- mode: 'UpDataStructsAccessMode',
- },
- set_mint_permission: {
- collectionId: 'u32',
- mintPermission: 'bool',
- },
- change_collection_owner: {
- collectionId: 'u32',
- newOwner: 'AccountId32',
- },
- add_collection_admin: {
- collectionId: 'u32',
- newAdminId: 'PalletEvmAccountBasicCrossAccountIdRepr',
- },
- remove_collection_admin: {
- collectionId: 'u32',
- accountId: 'PalletEvmAccountBasicCrossAccountIdRepr',
- },
- set_collection_sponsor: {
- collectionId: 'u32',
- newSponsor: 'AccountId32',
- },
- confirm_sponsorship: {
- collectionId: 'u32',
- },
- remove_collection_sponsor: {
- collectionId: 'u32',
- },
- create_item: {
- collectionId: 'u32',
- owner: 'PalletEvmAccountBasicCrossAccountIdRepr',
- data: 'UpDataStructsCreateItemData',
- },
- create_multiple_items: {
- collectionId: 'u32',
- owner: 'PalletEvmAccountBasicCrossAccountIdRepr',
- itemsData: 'Vec<UpDataStructsCreateItemData>',
- },
- create_multiple_items_ex: {
- collectionId: 'u32',
- data: 'UpDataStructsCreateItemExData',
- },
- set_transfers_enabled_flag: {
- collectionId: 'u32',
- value: 'bool',
- },
- burn_item: {
- collectionId: 'u32',
- itemId: 'u32',
- value: 'u128',
- },
- burn_from: {
- collectionId: 'u32',
- from: 'PalletEvmAccountBasicCrossAccountIdRepr',
- itemId: 'u32',
- value: 'u128',
- },
- transfer: {
- recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',
- collectionId: 'u32',
- itemId: 'u32',
- value: 'u128',
- },
- approve: {
- spender: 'PalletEvmAccountBasicCrossAccountIdRepr',
- collectionId: 'u32',
- itemId: 'u32',
- amount: 'u128',
- },
- transfer_from: {
- from: 'PalletEvmAccountBasicCrossAccountIdRepr',
- recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',
- collectionId: 'u32',
- itemId: 'u32',
- value: 'u128',
- },
- set_variable_meta_data: {
- collectionId: 'u32',
- itemId: 'u32',
- data: 'Bytes',
- },
- set_meta_update_permission_flag: {
- collectionId: 'u32',
- value: 'UpDataStructsMetaUpdatePermission',
- },
- set_schema_version: {
- collectionId: 'u32',
- version: 'UpDataStructsSchemaVersion',
- },
- set_offchain_schema: {
- collectionId: 'u32',
- schema: 'Bytes',
- },
- set_const_on_chain_schema: {
- collectionId: 'u32',
- schema: 'Bytes',
- },
- set_variable_on_chain_schema: {
- collectionId: 'u32',
- schema: 'Bytes',
- },
- set_collection_limits: {
- collectionId: 'u32',
- newLimit: 'UpDataStructsCollectionLimits'
- }
- }
- },
- /**
- * Lookup156: up_data_structs::CollectionMode
- **/
- UpDataStructsCollectionMode: {
- _enum: {
- NFT: 'Null',
- Fungible: 'u8',
- ReFungible: 'Null'
- }
- },
- /**
- * Lookup157: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
- **/
- UpDataStructsCreateCollectionData: {
- mode: 'UpDataStructsCollectionMode',
- access: 'Option<UpDataStructsAccessMode>',
- name: 'Vec<u16>',
- description: 'Vec<u16>',
- tokenPrefix: 'Bytes',
- offchainSchema: 'Bytes',
- schemaVersion: 'Option<UpDataStructsSchemaVersion>',
- pendingSponsor: 'Option<AccountId32>',
- limits: 'Option<UpDataStructsCollectionLimits>',
- variableOnChainSchema: 'Bytes',
- constOnChainSchema: 'Bytes',
- metaUpdatePermission: 'Option<UpDataStructsMetaUpdatePermission>'
- },
- /**
- * Lookup159: up_data_structs::AccessMode
- **/
- UpDataStructsAccessMode: {
- _enum: ['Normal', 'AllowList']
- },
- /**
- * Lookup162: up_data_structs::SchemaVersion
- **/
- UpDataStructsSchemaVersion: {
- _enum: ['ImageURL', 'Unique']
- },
- /**
- * Lookup165: up_data_structs::CollectionLimits
- **/
- UpDataStructsCollectionLimits: {
- accountTokenOwnershipLimit: 'Option<u32>',
- sponsoredDataSize: 'Option<u32>',
- sponsoredDataRateLimit: 'Option<UpDataStructsSponsoringRateLimit>',
- tokenLimit: 'Option<u32>',
- sponsorTransferTimeout: 'Option<u32>',
- sponsorApproveTimeout: 'Option<u32>',
- ownerCanTransfer: 'Option<bool>',
- ownerCanDestroy: 'Option<bool>',
- transfersEnabled: 'Option<bool>'
- },
- /**
- * Lookup167: up_data_structs::SponsoringRateLimit
- **/
- UpDataStructsSponsoringRateLimit: {
- _enum: {
- SponsoringDisabled: 'Null',
- Blocks: 'u32'
- }
- },
- /**
- * Lookup171: up_data_structs::MetaUpdatePermission
- **/
- UpDataStructsMetaUpdatePermission: {
- _enum: ['ItemOwner', 'Admin', 'None']
- },
- /**
- * Lookup173: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
- **/
- PalletEvmAccountBasicCrossAccountIdRepr: {
- _enum: {
- Substrate: 'AccountId32',
- Ethereum: 'H160'
- }
- },
- /**
- * Lookup175: up_data_structs::CreateItemData
- **/
- UpDataStructsCreateItemData: {
- _enum: {
- NFT: 'UpDataStructsCreateNftData',
- Fungible: 'UpDataStructsCreateFungibleData',
- ReFungible: 'UpDataStructsCreateReFungibleData'
- }
- },
- /**
- * Lookup176: up_data_structs::CreateNftData
- **/
- UpDataStructsCreateNftData: {
- constData: 'Bytes',
- variableData: 'Bytes'
- },
- /**
- * Lookup178: up_data_structs::CreateFungibleData
- **/
- UpDataStructsCreateFungibleData: {
- value: 'u128'
- },
- /**
- * Lookup179: up_data_structs::CreateReFungibleData
- **/
- UpDataStructsCreateReFungibleData: {
- constData: 'Bytes',
- variableData: 'Bytes',
- pieces: 'u128'
- },
- /**
- * Lookup181: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
- **/
- UpDataStructsCreateItemExData: {
- _enum: {
- NFT: 'Vec<UpDataStructsCreateNftExData>',
- Fungible: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
- RefungibleMultipleItems: 'Vec<UpDataStructsCreateRefungibleExData>',
- RefungibleMultipleOwners: 'UpDataStructsCreateRefungibleExData'
- }
- },
- /**
- * Lookup183: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
- **/
- UpDataStructsCreateNftExData: {
- constData: 'Bytes',
- variableData: 'Bytes',
- owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
- },
- /**
- * Lookup190: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
- **/
- UpDataStructsCreateRefungibleExData: {
- constData: 'Bytes',
- variableData: 'Bytes',
- users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'
- },
- /**
- * Lookup193: pallet_template_transaction_payment::Call<T>
- **/
- PalletTemplateTransactionPaymentCall: 'Null',
- /**
- * Lookup194: pallet_evm::pallet::Call<T>
- **/
- PalletEvmCall: {
- _enum: {
- withdraw: {
- address: 'H160',
- value: 'u128',
- },
- call: {
- source: 'H160',
- target: 'H160',
- input: 'Bytes',
- value: 'U256',
- gasLimit: 'u64',
- maxFeePerGas: 'U256',
- maxPriorityFeePerGas: 'Option<U256>',
- nonce: 'Option<U256>',
- accessList: 'Vec<(H160,Vec<H256>)>',
- },
- create: {
- source: 'H160',
- init: 'Bytes',
- value: 'U256',
- gasLimit: 'u64',
- maxFeePerGas: 'U256',
- maxPriorityFeePerGas: 'Option<U256>',
- nonce: 'Option<U256>',
- accessList: 'Vec<(H160,Vec<H256>)>',
- },
- create2: {
- source: 'H160',
- init: 'Bytes',
- salt: 'H256',
- value: 'U256',
- gasLimit: 'u64',
- maxFeePerGas: 'U256',
- maxPriorityFeePerGas: 'Option<U256>',
- nonce: 'Option<U256>',
- accessList: 'Vec<(H160,Vec<H256>)>'
- }
- }
- },
- /**
- * Lookup200: pallet_ethereum::pallet::Call<T>
- **/
- PalletEthereumCall: {
- _enum: {
- transact: {
- transaction: 'EthereumTransactionTransactionV2'
- }
- }
- },
- /**
- * Lookup201: ethereum::transaction::TransactionV2
- **/
- EthereumTransactionTransactionV2: {
- _enum: {
- Legacy: 'EthereumTransactionLegacyTransaction',
- EIP2930: 'EthereumTransactionEip2930Transaction',
- EIP1559: 'EthereumTransactionEip1559Transaction'
- }
- },
- /**
- * Lookup202: ethereum::transaction::LegacyTransaction
- **/
- EthereumTransactionLegacyTransaction: {
- nonce: 'U256',
- gasPrice: 'U256',
- gasLimit: 'U256',
- action: 'EthereumTransactionTransactionAction',
- value: 'U256',
- input: 'Bytes',
- signature: 'EthereumTransactionTransactionSignature'
- },
- /**
- * Lookup203: ethereum::transaction::TransactionAction
- **/
- EthereumTransactionTransactionAction: {
- _enum: {
- Call: 'H160',
- Create: 'Null'
- }
- },
- /**
- * Lookup204: ethereum::transaction::TransactionSignature
- **/
- EthereumTransactionTransactionSignature: {
- v: 'u64',
- r: 'H256',
- s: 'H256'
- },
- /**
- * Lookup206: ethereum::transaction::EIP2930Transaction
- **/
- EthereumTransactionEip2930Transaction: {
- chainId: 'u64',
- nonce: 'U256',
- gasPrice: 'U256',
- gasLimit: 'U256',
- action: 'EthereumTransactionTransactionAction',
- value: 'U256',
- input: 'Bytes',
- accessList: 'Vec<EthereumTransactionAccessListItem>',
- oddYParity: 'bool',
- r: 'H256',
- s: 'H256'
- },
- /**
- * Lookup208: ethereum::transaction::AccessListItem
- **/
- EthereumTransactionAccessListItem: {
- address: 'H160',
- storageKeys: 'Vec<H256>'
- },
- /**
- * Lookup209: ethereum::transaction::EIP1559Transaction
- **/
- EthereumTransactionEip1559Transaction: {
- chainId: 'u64',
- nonce: 'U256',
- maxPriorityFeePerGas: 'U256',
- maxFeePerGas: 'U256',
- gasLimit: 'U256',
- action: 'EthereumTransactionTransactionAction',
- value: 'U256',
- input: 'Bytes',
- accessList: 'Vec<EthereumTransactionAccessListItem>',
- oddYParity: 'bool',
- r: 'H256',
- s: 'H256'
- },
- /**
- * Lookup210: pallet_evm_migration::pallet::Call<T>
- **/
- PalletEvmMigrationCall: {
- _enum: {
- begin: {
- address: 'H160',
- },
- set_data: {
- address: 'H160',
- data: 'Vec<(H256,H256)>',
- },
- finish: {
- address: 'H160',
- code: 'Bytes'
- }
- }
- },
- /**
- * Lookup213: pallet_sudo::pallet::Event<T>
- **/
- PalletSudoEvent: {
- _enum: {
- Sudid: {
- sudoResult: 'Result<Null, SpRuntimeDispatchError>',
- },
- KeyChanged: {
- oldSudoer: 'Option<AccountId32>',
- },
- SudoAsDone: {
- sudoResult: 'Result<Null, SpRuntimeDispatchError>'
- }
- }
- },
- /**
- * Lookup215: sp_runtime::DispatchError
- **/
- SpRuntimeDispatchError: {
- _enum: {
- Other: 'Null',
- CannotLookup: 'Null',
- BadOrigin: 'Null',
- Module: 'SpRuntimeModuleError',
- ConsumerRemaining: 'Null',
- NoProviders: 'Null',
- TooManyConsumers: 'Null',
- Token: 'SpRuntimeTokenError',
- Arithmetic: 'SpRuntimeArithmeticError',
- Transactional: 'SpRuntimeTransactionalError'
- }
- },
- /**
- * Lookup216: sp_runtime::ModuleError
- **/
- SpRuntimeModuleError: {
- index: 'u8',
- error: '[u8;4]'
- },
- /**
- * Lookup217: sp_runtime::TokenError
- **/
- SpRuntimeTokenError: {
- _enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported']
- },
- /**
- * Lookup218: sp_runtime::ArithmeticError
- **/
- SpRuntimeArithmeticError: {
- _enum: ['Underflow', 'Overflow', 'DivisionByZero']
- },
- /**
- * Lookup219: sp_runtime::TransactionalError
- **/
- SpRuntimeTransactionalError: {
- _enum: ['LimitReached', 'NoLayer']
- },
- /**
- * Lookup220: pallet_sudo::pallet::Error<T>
- **/
- PalletSudoError: {
- _enum: ['RequireSudo']
- },
- /**
- * Lookup221: frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>
- **/
- FrameSystemAccountInfo: {
- nonce: 'u32',
- consumers: 'u32',
- providers: 'u32',
- sufficients: 'u32',
- data: 'PalletBalancesAccountData'
- },
- /**
- * Lookup222: frame_support::weights::PerDispatchClass<T>
- **/
- FrameSupportWeightsPerDispatchClassU64: {
- normal: 'u64',
- operational: 'u64',
- mandatory: 'u64'
- },
- /**
- * Lookup223: sp_runtime::generic::digest::Digest
- **/
- SpRuntimeDigest: {
- logs: 'Vec<SpRuntimeDigestDigestItem>'
- },
- /**
- * Lookup225: sp_runtime::generic::digest::DigestItem
- **/
- SpRuntimeDigestDigestItem: {
- _enum: {
- Other: 'Bytes',
- __Unused1: 'Null',
- __Unused2: 'Null',
- __Unused3: 'Null',
- Consensus: '([u8;4],Bytes)',
- Seal: '([u8;4],Bytes)',
- PreRuntime: '([u8;4],Bytes)',
- __Unused7: 'Null',
- RuntimeEnvironmentUpdated: 'Null'
- }
- },
- /**
- * Lookup227: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>
- **/
- FrameSystemEventRecord: {
- phase: 'FrameSystemPhase',
- event: 'Event',
- topics: 'Vec<H256>'
- },
- /**
- * Lookup229: frame_system::pallet::Event<T>
- **/
- FrameSystemEvent: {
- _enum: {
- ExtrinsicSuccess: {
- dispatchInfo: 'FrameSupportWeightsDispatchInfo',
- },
- ExtrinsicFailed: {
- dispatchError: 'SpRuntimeDispatchError',
- dispatchInfo: 'FrameSupportWeightsDispatchInfo',
- },
- CodeUpdated: 'Null',
- NewAccount: {
- account: 'AccountId32',
- },
- KilledAccount: {
- account: 'AccountId32',
- },
- Remarked: {
- _alias: {
- hash_: 'hash',
- },
- sender: 'AccountId32',
- hash_: 'H256'
- }
- }
- },
- /**
- * Lookup230: frame_support::weights::DispatchInfo
- **/
- FrameSupportWeightsDispatchInfo: {
- weight: 'u64',
- class: 'FrameSupportWeightsDispatchClass',
- paysFee: 'FrameSupportWeightsPays'
- },
- /**
- * Lookup231: frame_support::weights::DispatchClass
- **/
- FrameSupportWeightsDispatchClass: {
- _enum: ['Normal', 'Operational', 'Mandatory']
- },
- /**
- * Lookup232: frame_support::weights::Pays
- **/
- FrameSupportWeightsPays: {
- _enum: ['Yes', 'No']
- },
- /**
- * Lookup233: orml_vesting::module::Event<T>
- **/
- OrmlVestingModuleEvent: {
- _enum: {
- VestingScheduleAdded: {
- from: 'AccountId32',
- to: 'AccountId32',
- vestingSchedule: 'OrmlVestingVestingSchedule',
- },
- Claimed: {
- who: 'AccountId32',
- amount: 'u128',
- },
- VestingSchedulesUpdated: {
- who: 'AccountId32'
- }
- }
- },
- /**
- * Lookup234: cumulus_pallet_xcmp_queue::pallet::Event<T>
- **/
- CumulusPalletXcmpQueueEvent: {
- _enum: {
- Success: 'Option<H256>',
- Fail: '(Option<H256>,XcmV2TraitsError)',
- BadVersion: 'Option<H256>',
- BadFormat: 'Option<H256>',
- UpwardMessageSent: 'Option<H256>',
- XcmpMessageSent: 'Option<H256>',
- OverweightEnqueued: '(u32,u32,u64,u64)',
- OverweightServiced: '(u64,u64)'
- }
- },
- /**
- * Lookup235: pallet_xcm::pallet::Event<T>
- **/
- PalletXcmEvent: {
- _enum: {
- Attempted: 'XcmV2TraitsOutcome',
- Sent: '(XcmV1MultiLocation,XcmV1MultiLocation,XcmV2Xcm)',
- UnexpectedResponse: '(XcmV1MultiLocation,u64)',
- ResponseReady: '(u64,XcmV2Response)',
- Notified: '(u64,u8,u8)',
- NotifyOverweight: '(u64,u8,u8,u64,u64)',
- NotifyDispatchError: '(u64,u8,u8)',
- NotifyDecodeFailed: '(u64,u8,u8)',
- InvalidResponder: '(XcmV1MultiLocation,u64,Option<XcmV1MultiLocation>)',
- InvalidResponderVersion: '(XcmV1MultiLocation,u64)',
- ResponseTaken: 'u64',
- AssetsTrapped: '(H256,XcmV1MultiLocation,XcmVersionedMultiAssets)',
- VersionChangeNotified: '(XcmV1MultiLocation,u32)',
- SupportedVersionChanged: '(XcmV1MultiLocation,u32)',
- NotifyTargetSendFail: '(XcmV1MultiLocation,u64,XcmV2TraitsError)',
- NotifyTargetMigrationFail: '(XcmVersionedMultiLocation,u64)'
- }
- },
- /**
- * Lookup236: xcm::v2::traits::Outcome
- **/
- XcmV2TraitsOutcome: {
- _enum: {
- Complete: 'u64',
- Incomplete: '(u64,XcmV2TraitsError)',
- Error: 'XcmV2TraitsError'
- }
- },
- /**
- * Lookup238: cumulus_pallet_xcm::pallet::Event<T>
- **/
- CumulusPalletXcmEvent: {
- _enum: {
- InvalidFormat: '[u8;8]',
- UnsupportedVersion: '[u8;8]',
- ExecutedDownward: '([u8;8],XcmV2TraitsOutcome)'
- }
- },
- /**
- * Lookup239: cumulus_pallet_dmp_queue::pallet::Event<T>
- **/
- 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)'
- }
- },
- /**
- * Lookup240: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
- **/
- PalletUniqueRawEvent: {
- _enum: {
- CollectionSponsorRemoved: 'u32',
- CollectionAdminAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
- CollectionOwnedChanged: '(u32,AccountId32)',
- CollectionSponsorSet: '(u32,AccountId32)',
- ConstOnChainSchemaSet: 'u32',
- SponsorshipConfirmed: '(u32,AccountId32)',
- CollectionAdminRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
- AllowListAddressRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
- AllowListAddressAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
- CollectionLimitSet: 'u32',
- MintPermissionSet: 'u32',
- OffchainSchemaSet: 'u32',
- PublicAccessModeSet: '(u32,UpDataStructsAccessMode)',
- SchemaVersionSet: 'u32',
- VariableOnChainSchemaSet: 'u32'
- }
- },
- /**
- * Lookup241: pallet_common::pallet::Event<T>
- **/
- PalletCommonEvent: {
- _enum: {
- CollectionCreated: '(u32,u8,AccountId32)',
- CollectionDestroyed: 'u32',
- ItemCreated: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
- ItemDestroyed: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
- Transfer: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
- Approved: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)'
- }
- },
- /**
- * Lookup242: pallet_evm::pallet::Event<T>
- **/
- PalletEvmEvent: {
- _enum: {
- Log: 'EthereumLog',
- Created: 'H160',
- CreatedFailed: 'H160',
- Executed: 'H160',
- ExecutedFailed: 'H160',
- BalanceDeposit: '(AccountId32,H160,U256)',
- BalanceWithdraw: '(AccountId32,H160,U256)'
- }
- },
- /**
- * Lookup243: ethereum::log::Log
- **/
- EthereumLog: {
- address: 'H160',
- topics: 'Vec<H256>',
- data: 'Bytes'
- },
- /**
- * Lookup244: pallet_ethereum::pallet::Event
- **/
- PalletEthereumEvent: {
- _enum: {
- Executed: '(H160,H160,H256,EvmCoreErrorExitReason)'
- }
- },
- /**
- * Lookup245: evm_core::error::ExitReason
- **/
- EvmCoreErrorExitReason: {
- _enum: {
- Succeed: 'EvmCoreErrorExitSucceed',
- Error: 'EvmCoreErrorExitError',
- Revert: 'EvmCoreErrorExitRevert',
- Fatal: 'EvmCoreErrorExitFatal'
- }
- },
- /**
- * Lookup246: evm_core::error::ExitSucceed
- **/
- EvmCoreErrorExitSucceed: {
- _enum: ['Stopped', 'Returned', 'Suicided']
- },
- /**
- * Lookup247: evm_core::error::ExitError
- **/
- EvmCoreErrorExitError: {
- _enum: {
- StackUnderflow: 'Null',
- StackOverflow: 'Null',
- InvalidJump: 'Null',
- InvalidRange: 'Null',
- DesignatedInvalid: 'Null',
- CallTooDeep: 'Null',
- CreateCollision: 'Null',
- CreateContractLimit: 'Null',
- OutOfOffset: 'Null',
- OutOfGas: 'Null',
- OutOfFund: 'Null',
- PCUnderflow: 'Null',
- CreateEmpty: 'Null',
- Other: 'Text',
- InvalidCode: 'Null'
- }
- },
- /**
- * Lookup250: evm_core::error::ExitRevert
- **/
- EvmCoreErrorExitRevert: {
- _enum: ['Reverted']
- },
- /**
- * Lookup251: evm_core::error::ExitFatal
- **/
- EvmCoreErrorExitFatal: {
- _enum: {
- NotSupported: 'Null',
- UnhandledInterrupt: 'Null',
- CallErrorAsFatal: 'EvmCoreErrorExitError',
- Other: 'Text'
- }
- },
- /**
- * Lookup252: frame_system::Phase
- **/
- FrameSystemPhase: {
- _enum: {
- ApplyExtrinsic: 'u32',
- Finalization: 'Null',
- Initialization: 'Null'
- }
- },
- /**
- * Lookup254: frame_system::LastRuntimeUpgradeInfo
- **/
- FrameSystemLastRuntimeUpgradeInfo: {
- specVersion: 'Compact<u32>',
- specName: 'Text'
- },
- /**
- * Lookup255: frame_system::limits::BlockWeights
- **/
- FrameSystemLimitsBlockWeights: {
- baseBlock: 'u64',
- maxBlock: 'u64',
- perClass: 'FrameSupportWeightsPerDispatchClassWeightsPerClass'
- },
- /**
- * Lookup256: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>
- **/
- FrameSupportWeightsPerDispatchClassWeightsPerClass: {
- normal: 'FrameSystemLimitsWeightsPerClass',
- operational: 'FrameSystemLimitsWeightsPerClass',
- mandatory: 'FrameSystemLimitsWeightsPerClass'
- },
- /**
- * Lookup257: frame_system::limits::WeightsPerClass
- **/
- FrameSystemLimitsWeightsPerClass: {
- baseExtrinsic: 'u64',
- maxExtrinsic: 'Option<u64>',
- maxTotal: 'Option<u64>',
- reserved: 'Option<u64>'
- },
- /**
- * Lookup259: frame_system::limits::BlockLength
- **/
- FrameSystemLimitsBlockLength: {
- max: 'FrameSupportWeightsPerDispatchClassU32'
- },
- /**
- * Lookup260: frame_support::weights::PerDispatchClass<T>
- **/
- FrameSupportWeightsPerDispatchClassU32: {
- normal: 'u32',
- operational: 'u32',
- mandatory: 'u32'
- },
- /**
- * Lookup261: frame_support::weights::RuntimeDbWeight
- **/
- FrameSupportWeightsRuntimeDbWeight: {
- read: 'u64',
- write: 'u64'
- },
- /**
- * Lookup262: sp_version::RuntimeVersion
- **/
- SpVersionRuntimeVersion: {
- specName: 'Text',
- implName: 'Text',
- authoringVersion: 'u32',
- specVersion: 'u32',
- implVersion: 'u32',
- apis: 'Vec<([u8;8],u32)>',
- transactionVersion: 'u32',
- stateVersion: 'u8'
- },
- /**
- * Lookup266: frame_system::pallet::Error<T>
- **/
- FrameSystemError: {
- _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered']
- },
- /**
- * Lookup268: orml_vesting::module::Error<T>
- **/
- OrmlVestingModuleError: {
- _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
- },
- /**
- * Lookup270: cumulus_pallet_xcmp_queue::InboundChannelDetails
- **/
- CumulusPalletXcmpQueueInboundChannelDetails: {
- sender: 'u32',
- state: 'CumulusPalletXcmpQueueInboundState',
- messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
- },
- /**
- * Lookup271: cumulus_pallet_xcmp_queue::InboundState
- **/
- CumulusPalletXcmpQueueInboundState: {
- _enum: ['Ok', 'Suspended']
- },
- /**
- * Lookup274: polkadot_parachain::primitives::XcmpMessageFormat
- **/
- PolkadotParachainPrimitivesXcmpMessageFormat: {
- _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
- },
- /**
- * Lookup277: cumulus_pallet_xcmp_queue::OutboundChannelDetails
- **/
- CumulusPalletXcmpQueueOutboundChannelDetails: {
- recipient: 'u32',
- state: 'CumulusPalletXcmpQueueOutboundState',
- signalsExist: 'bool',
- firstIndex: 'u16',
- lastIndex: 'u16'
- },
- /**
- * Lookup278: cumulus_pallet_xcmp_queue::OutboundState
- **/
- CumulusPalletXcmpQueueOutboundState: {
- _enum: ['Ok', 'Suspended']
- },
- /**
- * Lookup280: cumulus_pallet_xcmp_queue::QueueConfigData
- **/
- CumulusPalletXcmpQueueQueueConfigData: {
- suspendThreshold: 'u32',
- dropThreshold: 'u32',
- resumeThreshold: 'u32',
- thresholdWeight: 'u64',
- weightRestrictDecay: 'u64',
- xcmpMaxIndividualWeight: 'u64'
- },
- /**
- * Lookup282: cumulus_pallet_xcmp_queue::pallet::Error<T>
- **/
- CumulusPalletXcmpQueueError: {
- _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
- },
- /**
- * Lookup283: pallet_xcm::pallet::Error<T>
- **/
- PalletXcmError: {
- _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
- },
- /**
- * Lookup284: cumulus_pallet_xcm::pallet::Error<T>
- **/
- CumulusPalletXcmError: 'Null',
- /**
- * Lookup285: cumulus_pallet_dmp_queue::ConfigData
- **/
- CumulusPalletDmpQueueConfigData: {
- maxIndividual: 'u64'
- },
- /**
- * Lookup286: cumulus_pallet_dmp_queue::PageIndexData
- **/
- CumulusPalletDmpQueuePageIndexData: {
- beginUsed: 'u32',
- endUsed: 'u32',
- overweightCount: 'u64'
- },
- /**
- * Lookup289: cumulus_pallet_dmp_queue::pallet::Error<T>
- **/
- CumulusPalletDmpQueueError: {
- _enum: ['Unknown', 'OverLimit']
- },
- /**
- * Lookup293: pallet_unique::Error<T>
- **/
- PalletUniqueError: {
- _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument']
- },
- /**
- * Lookup294: up_data_structs::Collection<sp_core::crypto::AccountId32>
- **/
- UpDataStructsCollection: {
- owner: 'AccountId32',
- mode: 'UpDataStructsCollectionMode',
- access: 'UpDataStructsAccessMode',
- name: 'Vec<u16>',
- description: 'Vec<u16>',
- tokenPrefix: 'Bytes',
- mintMode: 'bool',
- offchainSchema: 'Bytes',
- schemaVersion: 'UpDataStructsSchemaVersion',
- sponsorship: 'UpDataStructsSponsorshipState',
- limits: 'UpDataStructsCollectionLimits',
- variableOnChainSchema: 'Bytes',
- constOnChainSchema: 'Bytes',
- metaUpdatePermission: 'UpDataStructsMetaUpdatePermission'
- },
- /**
- * Lookup295: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
- **/
- UpDataStructsSponsorshipState: {
- _enum: {
- Disabled: 'Null',
- Unconfirmed: 'AccountId32',
- Confirmed: 'AccountId32'
- }
- },
- /**
- * Lookup298: up_data_structs::CollectionStats
- **/
- UpDataStructsCollectionStats: {
- created: 'u32',
- destroyed: 'u32',
- alive: 'u32'
- },
- /**
- * Lookup299: pallet_common::pallet::Error<T>
- **/
- PalletCommonError: {
- _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'TokenVariableDataLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds']
- },
- /**
- * Lookup301: pallet_fungible::pallet::Error<T>
- **/
- PalletFungibleError: {
- _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData']
- },
- /**
- * Lookup302: pallet_refungible::ItemData
- **/
- PalletRefungibleItemData: {
- constData: 'Bytes',
- variableData: 'Bytes'
- },
- /**
- * Lookup306: pallet_refungible::pallet::Error<T>
- **/
- PalletRefungibleError: {
- _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces']
- },
- /**
- * Lookup307: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
- **/
- PalletNonfungibleItemData: {
- constData: 'Bytes',
- variableData: 'Bytes',
- owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
- },
- /**
- * Lookup308: pallet_nonfungible::pallet::Error<T>
- **/
- PalletNonfungibleError: {
- _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount']
- },
- /**
- * Lookup310: pallet_evm::pallet::Error<T>
- **/
- PalletEvmError: {
- _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
- },
- /**
- * Lookup313: fp_rpc::TransactionStatus
- **/
- FpRpcTransactionStatus: {
- transactionHash: 'H256',
- transactionIndex: 'u32',
- from: 'H160',
- to: 'Option<H160>',
- contractAddress: 'Option<H160>',
- logs: 'Vec<EthereumLog>',
- logsBloom: 'EthbloomBloom'
- },
- /**
- * Lookup316: ethbloom::Bloom
- **/
- EthbloomBloom: '[u8;256]',
- /**
- * Lookup318: ethereum::receipt::ReceiptV3
- **/
- EthereumReceiptReceiptV3: {
- _enum: {
- Legacy: 'EthereumReceiptEip658ReceiptData',
- EIP2930: 'EthereumReceiptEip658ReceiptData',
- EIP1559: 'EthereumReceiptEip658ReceiptData'
- }
- },
- /**
- * Lookup319: ethereum::receipt::EIP658ReceiptData
- **/
- EthereumReceiptEip658ReceiptData: {
- statusCode: 'u8',
- usedGas: 'U256',
- logsBloom: 'EthbloomBloom',
- logs: 'Vec<EthereumLog>'
- },
- /**
- * Lookup320: ethereum::block::Block<ethereum::transaction::TransactionV2>
- **/
- EthereumBlock: {
- header: 'EthereumHeader',
- transactions: 'Vec<EthereumTransactionTransactionV2>',
- ommers: 'Vec<EthereumHeader>'
- },
- /**
- * Lookup321: ethereum::header::Header
- **/
- EthereumHeader: {
- parentHash: 'H256',
- ommersHash: 'H256',
- beneficiary: 'H160',
- stateRoot: 'H256',
- transactionsRoot: 'H256',
- receiptsRoot: 'H256',
- logsBloom: 'EthbloomBloom',
- difficulty: 'U256',
- number: 'U256',
- gasLimit: 'U256',
- gasUsed: 'U256',
- timestamp: 'u64',
- extraData: 'Bytes',
- mixHash: 'H256',
- nonce: 'EthereumTypesHashH64'
- },
- /**
- * Lookup322: ethereum_types::hash::H64
- **/
- EthereumTypesHashH64: '[u8;8]',
- /**
- * Lookup327: pallet_ethereum::pallet::Error<T>
- **/
- PalletEthereumError: {
- _enum: ['InvalidSignature', 'PreLogExists']
- },
- /**
- * Lookup328: pallet_evm_coder_substrate::pallet::Error<T>
- **/
- PalletEvmCoderSubstrateError: {
- _enum: ['OutOfGas', 'OutOfFund']
- },
- /**
- * Lookup329: pallet_evm_contract_helpers::SponsoringModeT
- **/
- PalletEvmContractHelpersSponsoringModeT: {
- _enum: ['Disabled', 'Allowlisted', 'Generous']
- },
- /**
- * Lookup331: pallet_evm_contract_helpers::pallet::Error<T>
- **/
- PalletEvmContractHelpersError: {
- _enum: ['NoPermission']
- },
- /**
- * Lookup332: pallet_evm_migration::pallet::Error<T>
- **/
- PalletEvmMigrationError: {
- _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
- },
- /**
- * Lookup334: sp_runtime::MultiSignature
- **/
- SpRuntimeMultiSignature: {
- _enum: {
- Ed25519: 'SpCoreEd25519Signature',
- Sr25519: 'SpCoreSr25519Signature',
- Ecdsa: 'SpCoreEcdsaSignature'
- }
- },
- /**
- * Lookup335: sp_core::ed25519::Signature
- **/
- SpCoreEd25519Signature: '[u8;64]',
- /**
- * Lookup337: sp_core::sr25519::Signature
- **/
- SpCoreSr25519Signature: '[u8;64]',
- /**
- * Lookup338: sp_core::ecdsa::Signature
- **/
- SpCoreEcdsaSignature: '[u8;65]',
- /**
- * Lookup341: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
- **/
- FrameSystemExtensionsCheckSpecVersion: 'Null',
- /**
- * Lookup342: frame_system::extensions::check_genesis::CheckGenesis<T>
- **/
- FrameSystemExtensionsCheckGenesis: 'Null',
- /**
- * Lookup345: frame_system::extensions::check_nonce::CheckNonce<T>
- **/
- FrameSystemExtensionsCheckNonce: 'Compact<u32>',
- /**
- * Lookup346: frame_system::extensions::check_weight::CheckWeight<T>
- **/
- FrameSystemExtensionsCheckWeight: 'Null',
- /**
- * Lookup347: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
- **/
- PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
- /**
- * Lookup348: opal_runtime::Runtime
- **/
- OpalRuntimeRuntime: 'Null'
-};
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ /dev/null
@@ -1,2662 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
-/* eslint-disable */
-
-declare module '@polkadot/types/lookup' {
- import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
- import type { ITuple } from '@polkadot/types-codec/types';
- import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';
- import type { Event } from '@polkadot/types/interfaces/system';
-
- /** @name PolkadotPrimitivesV2PersistedValidationData (2) */
- export interface PolkadotPrimitivesV2PersistedValidationData extends Struct {
- readonly parentHead: Bytes;
- readonly relayParentNumber: u32;
- readonly relayParentStorageRoot: H256;
- readonly maxPovSize: u32;
- }
-
- /** @name PolkadotPrimitivesV2UpgradeRestriction (9) */
- export interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
- readonly isPresent: boolean;
- readonly type: 'Present';
- }
-
- /** @name SpTrieStorageProof (10) */
- export interface SpTrieStorageProof extends Struct {
- readonly trieNodes: BTreeSet;
- }
-
- /** @name BTreeSet (11) */
- export interface BTreeSet extends BTreeSet<Bytes> {}
-
- /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (13) */
- export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {
- readonly dmqMqcHead: H256;
- readonly relayDispatchQueueSize: ITuple<[u32, u32]>;
- readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
- readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
- }
-
- /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (18) */
- export interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {
- readonly maxCapacity: u32;
- readonly maxTotalSize: u32;
- readonly maxMessageSize: u32;
- readonly msgCount: u32;
- readonly totalSize: u32;
- readonly mqcHead: Option<H256>;
- }
-
- /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (20) */
- export interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {
- readonly maxCodeSize: u32;
- readonly maxHeadDataSize: u32;
- readonly maxUpwardQueueCount: u32;
- readonly maxUpwardQueueSize: u32;
- readonly maxUpwardMessageSize: u32;
- readonly maxUpwardMessageNumPerCandidate: u32;
- readonly hrmpMaxMessageNumPerCandidate: u32;
- readonly validationUpgradeCooldown: u32;
- readonly validationUpgradeDelay: u32;
- }
-
- /** @name PolkadotCorePrimitivesOutboundHrmpMessage (26) */
- export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
- readonly recipient: u32;
- readonly data: Bytes;
- }
-
- /** @name CumulusPalletParachainSystemCall (28) */
- export interface CumulusPalletParachainSystemCall extends Enum {
- readonly isSetValidationData: boolean;
- readonly asSetValidationData: {
- readonly data: CumulusPrimitivesParachainInherentParachainInherentData;
- } & Struct;
- readonly isSudoSendUpwardMessage: boolean;
- readonly asSudoSendUpwardMessage: {
- readonly message: Bytes;
- } & Struct;
- readonly isAuthorizeUpgrade: boolean;
- readonly asAuthorizeUpgrade: {
- readonly codeHash: H256;
- } & Struct;
- readonly isEnactAuthorizedUpgrade: boolean;
- readonly asEnactAuthorizedUpgrade: {
- readonly code: Bytes;
- } & Struct;
- readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';
- }
-
- /** @name CumulusPrimitivesParachainInherentParachainInherentData (29) */
- export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {
- readonly validationData: PolkadotPrimitivesV2PersistedValidationData;
- readonly relayChainState: SpTrieStorageProof;
- readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;
- readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;
- }
-
- /** @name PolkadotCorePrimitivesInboundDownwardMessage (31) */
- export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
- readonly sentAt: u32;
- readonly msg: Bytes;
- }
-
- /** @name PolkadotCorePrimitivesInboundHrmpMessage (34) */
- export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
- readonly sentAt: u32;
- readonly data: Bytes;
- }
-
- /** @name CumulusPalletParachainSystemEvent (37) */
- export interface CumulusPalletParachainSystemEvent extends Enum {
- readonly isValidationFunctionStored: boolean;
- readonly isValidationFunctionApplied: boolean;
- readonly asValidationFunctionApplied: u32;
- readonly isValidationFunctionDiscarded: boolean;
- readonly isUpgradeAuthorized: boolean;
- readonly asUpgradeAuthorized: H256;
- readonly isDownwardMessagesReceived: boolean;
- readonly asDownwardMessagesReceived: u32;
- readonly isDownwardMessagesProcessed: boolean;
- readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;
- readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';
- }
-
- /** @name CumulusPalletParachainSystemError (38) */
- export interface CumulusPalletParachainSystemError extends Enum {
- readonly isOverlappingUpgrades: boolean;
- readonly isProhibitedByPolkadot: boolean;
- readonly isTooBig: boolean;
- readonly isValidationDataNotAvailable: boolean;
- readonly isHostConfigurationNotAvailable: boolean;
- readonly isNotScheduled: boolean;
- readonly isNothingAuthorized: boolean;
- readonly isUnauthorized: boolean;
- readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
- }
-
- /** @name PalletBalancesAccountData (41) */
- export interface PalletBalancesAccountData extends Struct {
- readonly free: u128;
- readonly reserved: u128;
- readonly miscFrozen: u128;
- readonly feeFrozen: u128;
- }
-
- /** @name PalletBalancesBalanceLock (43) */
- export interface PalletBalancesBalanceLock extends Struct {
- readonly id: U8aFixed;
- readonly amount: u128;
- readonly reasons: PalletBalancesReasons;
- }
-
- /** @name PalletBalancesReasons (45) */
- export interface PalletBalancesReasons extends Enum {
- readonly isFee: boolean;
- readonly isMisc: boolean;
- readonly isAll: boolean;
- readonly type: 'Fee' | 'Misc' | 'All';
- }
-
- /** @name PalletBalancesReserveData (48) */
- export interface PalletBalancesReserveData extends Struct {
- readonly id: U8aFixed;
- readonly amount: u128;
- }
-
- /** @name PalletBalancesReleases (50) */
- export interface PalletBalancesReleases extends Enum {
- readonly isV100: boolean;
- readonly isV200: boolean;
- readonly type: 'V100' | 'V200';
- }
-
- /** @name PalletBalancesCall (51) */
- export interface PalletBalancesCall extends Enum {
- readonly isTransfer: boolean;
- readonly asTransfer: {
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isSetBalance: boolean;
- readonly asSetBalance: {
- readonly who: MultiAddress;
- readonly newFree: Compact<u128>;
- readonly newReserved: Compact<u128>;
- } & Struct;
- readonly isForceTransfer: boolean;
- readonly asForceTransfer: {
- readonly source: MultiAddress;
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isTransferKeepAlive: boolean;
- readonly asTransferKeepAlive: {
- readonly dest: MultiAddress;
- readonly value: Compact<u128>;
- } & Struct;
- readonly isTransferAll: boolean;
- readonly asTransferAll: {
- readonly dest: MultiAddress;
- readonly keepAlive: bool;
- } & Struct;
- readonly isForceUnreserve: boolean;
- readonly asForceUnreserve: {
- readonly who: MultiAddress;
- readonly amount: u128;
- } & Struct;
- readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
- }
-
- /** @name PalletBalancesEvent (57) */
- export interface PalletBalancesEvent extends Enum {
- readonly isEndowed: boolean;
- readonly asEndowed: {
- readonly account: AccountId32;
- readonly freeBalance: u128;
- } & Struct;
- readonly isDustLost: boolean;
- readonly asDustLost: {
- readonly account: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isTransfer: boolean;
- readonly asTransfer: {
- readonly from: AccountId32;
- readonly to: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isBalanceSet: boolean;
- readonly asBalanceSet: {
- readonly who: AccountId32;
- readonly free: u128;
- readonly reserved: u128;
- } & Struct;
- readonly isReserved: boolean;
- readonly asReserved: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isUnreserved: boolean;
- readonly asUnreserved: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isReserveRepatriated: boolean;
- readonly asReserveRepatriated: {
- readonly from: AccountId32;
- readonly to: AccountId32;
- readonly amount: u128;
- readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;
- } & Struct;
- readonly isDeposit: boolean;
- readonly asDeposit: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isWithdraw: boolean;
- readonly asWithdraw: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isSlashed: boolean;
- readonly asSlashed: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';
- }
-
- /** @name FrameSupportTokensMiscBalanceStatus (58) */
- export interface FrameSupportTokensMiscBalanceStatus extends Enum {
- readonly isFree: boolean;
- readonly isReserved: boolean;
- readonly type: 'Free' | 'Reserved';
- }
-
- /** @name PalletBalancesError (59) */
- export interface PalletBalancesError extends Enum {
- readonly isVestingBalance: boolean;
- readonly isLiquidityRestrictions: boolean;
- readonly isInsufficientBalance: boolean;
- readonly isExistentialDeposit: boolean;
- readonly isKeepAlive: boolean;
- readonly isExistingVestingSchedule: boolean;
- readonly isDeadAccount: boolean;
- readonly isTooManyReserves: boolean;
- readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
- }
-
- /** @name PalletTimestampCall (62) */
- export interface PalletTimestampCall extends Enum {
- readonly isSet: boolean;
- readonly asSet: {
- readonly now: Compact<u64>;
- } & Struct;
- readonly type: 'Set';
- }
-
- /** @name PalletTransactionPaymentReleases (65) */
- export interface PalletTransactionPaymentReleases extends Enum {
- readonly isV1Ancient: boolean;
- readonly isV2: boolean;
- readonly type: 'V1Ancient' | 'V2';
- }
-
- /** @name FrameSupportWeightsWeightToFeeCoefficient (67) */
- export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
- readonly coeffInteger: u128;
- readonly coeffFrac: Perbill;
- readonly negative: bool;
- readonly degree: u8;
- }
-
- /** @name PalletTreasuryProposal (69) */
- export interface PalletTreasuryProposal extends Struct {
- readonly proposer: AccountId32;
- readonly value: u128;
- readonly beneficiary: AccountId32;
- readonly bond: u128;
- }
-
- /** @name PalletTreasuryCall (72) */
- export interface PalletTreasuryCall extends Enum {
- readonly isProposeSpend: boolean;
- readonly asProposeSpend: {
- readonly value: Compact<u128>;
- readonly beneficiary: MultiAddress;
- } & Struct;
- readonly isRejectProposal: boolean;
- readonly asRejectProposal: {
- readonly proposalId: Compact<u32>;
- } & Struct;
- readonly isApproveProposal: boolean;
- readonly asApproveProposal: {
- readonly proposalId: Compact<u32>;
- } & Struct;
- readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';
- }
-
- /** @name PalletTreasuryEvent (74) */
- export interface PalletTreasuryEvent extends Enum {
- readonly isProposed: boolean;
- readonly asProposed: {
- readonly proposalIndex: u32;
- } & Struct;
- readonly isSpending: boolean;
- readonly asSpending: {
- readonly budgetRemaining: u128;
- } & Struct;
- readonly isAwarded: boolean;
- readonly asAwarded: {
- readonly proposalIndex: u32;
- readonly award: u128;
- readonly account: AccountId32;
- } & Struct;
- readonly isRejected: boolean;
- readonly asRejected: {
- readonly proposalIndex: u32;
- readonly slashed: u128;
- } & Struct;
- readonly isBurnt: boolean;
- readonly asBurnt: {
- readonly burntFunds: u128;
- } & Struct;
- readonly isRollover: boolean;
- readonly asRollover: {
- readonly rolloverBalance: u128;
- } & Struct;
- readonly isDeposit: boolean;
- readonly asDeposit: {
- readonly value: u128;
- } & Struct;
- readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';
- }
-
- /** @name FrameSupportPalletId (77) */
- export interface FrameSupportPalletId extends U8aFixed {}
-
- /** @name PalletTreasuryError (78) */
- export interface PalletTreasuryError extends Enum {
- readonly isInsufficientProposersBalance: boolean;
- readonly isInvalidIndex: boolean;
- readonly isTooManyApprovals: boolean;
- readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';
- }
-
- /** @name PalletSudoCall (79) */
- export interface PalletSudoCall extends Enum {
- readonly isSudo: boolean;
- readonly asSudo: {
- readonly call: Call;
- } & Struct;
- readonly isSudoUncheckedWeight: boolean;
- readonly asSudoUncheckedWeight: {
- readonly call: Call;
- readonly weight: u64;
- } & Struct;
- readonly isSetKey: boolean;
- readonly asSetKey: {
- readonly new_: MultiAddress;
- } & Struct;
- readonly isSudoAs: boolean;
- readonly asSudoAs: {
- readonly who: MultiAddress;
- readonly call: Call;
- } & Struct;
- readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
- }
-
- /** @name FrameSystemCall (81) */
- export interface FrameSystemCall extends Enum {
- readonly isFillBlock: boolean;
- readonly asFillBlock: {
- readonly ratio: Perbill;
- } & Struct;
- readonly isRemark: boolean;
- readonly asRemark: {
- readonly remark: Bytes;
- } & Struct;
- readonly isSetHeapPages: boolean;
- readonly asSetHeapPages: {
- readonly pages: u64;
- } & Struct;
- readonly isSetCode: boolean;
- readonly asSetCode: {
- readonly code: Bytes;
- } & Struct;
- readonly isSetCodeWithoutChecks: boolean;
- readonly asSetCodeWithoutChecks: {
- readonly code: Bytes;
- } & Struct;
- readonly isSetStorage: boolean;
- readonly asSetStorage: {
- readonly items: Vec<ITuple<[Bytes, Bytes]>>;
- } & Struct;
- readonly isKillStorage: boolean;
- readonly asKillStorage: {
- readonly keys_: Vec<Bytes>;
- } & Struct;
- readonly isKillPrefix: boolean;
- readonly asKillPrefix: {
- readonly prefix: Bytes;
- readonly subkeys: u32;
- } & Struct;
- readonly isRemarkWithEvent: boolean;
- readonly asRemarkWithEvent: {
- readonly remark: Bytes;
- } & Struct;
- readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';
- }
-
- /** @name OrmlVestingModuleCall (84) */
- export interface OrmlVestingModuleCall extends Enum {
- readonly isClaim: boolean;
- readonly isVestedTransfer: boolean;
- readonly asVestedTransfer: {
- readonly dest: MultiAddress;
- readonly schedule: OrmlVestingVestingSchedule;
- } & Struct;
- readonly isUpdateVestingSchedules: boolean;
- readonly asUpdateVestingSchedules: {
- readonly who: MultiAddress;
- readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;
- } & Struct;
- readonly isClaimFor: boolean;
- readonly asClaimFor: {
- readonly dest: MultiAddress;
- } & Struct;
- readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
- }
-
- /** @name OrmlVestingVestingSchedule (85) */
- export interface OrmlVestingVestingSchedule extends Struct {
- readonly start: u32;
- readonly period: u32;
- readonly periodCount: u32;
- readonly perPeriod: Compact<u128>;
- }
-
- /** @name CumulusPalletXcmpQueueCall (87) */
- export interface CumulusPalletXcmpQueueCall extends Enum {
- readonly isServiceOverweight: boolean;
- readonly asServiceOverweight: {
- readonly index: u64;
- readonly weightLimit: u64;
- } & Struct;
- readonly isSuspendXcmExecution: boolean;
- readonly isResumeXcmExecution: boolean;
- readonly isUpdateSuspendThreshold: boolean;
- readonly asUpdateSuspendThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateDropThreshold: boolean;
- readonly asUpdateDropThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateResumeThreshold: boolean;
- readonly asUpdateResumeThreshold: {
- readonly new_: u32;
- } & Struct;
- readonly isUpdateThresholdWeight: boolean;
- readonly asUpdateThresholdWeight: {
- readonly new_: u64;
- } & Struct;
- readonly isUpdateWeightRestrictDecay: boolean;
- readonly asUpdateWeightRestrictDecay: {
- readonly new_: u64;
- } & Struct;
- readonly isUpdateXcmpMaxIndividualWeight: boolean;
- readonly asUpdateXcmpMaxIndividualWeight: {
- readonly new_: u64;
- } & Struct;
- readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
- }
-
- /** @name PalletXcmCall (88) */
- export interface PalletXcmCall extends Enum {
- readonly isSend: boolean;
- readonly asSend: {
- readonly dest: XcmVersionedMultiLocation;
- readonly message: XcmVersionedXcm;
- } & Struct;
- readonly isTeleportAssets: boolean;
- readonly asTeleportAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- } & Struct;
- readonly isReserveTransferAssets: boolean;
- readonly asReserveTransferAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- } & Struct;
- readonly isExecute: boolean;
- readonly asExecute: {
- readonly message: XcmVersionedXcm;
- readonly maxWeight: u64;
- } & Struct;
- readonly isForceXcmVersion: boolean;
- readonly asForceXcmVersion: {
- readonly location: XcmV1MultiLocation;
- readonly xcmVersion: u32;
- } & Struct;
- readonly isForceDefaultXcmVersion: boolean;
- readonly asForceDefaultXcmVersion: {
- readonly maybeXcmVersion: Option<u32>;
- } & Struct;
- readonly isForceSubscribeVersionNotify: boolean;
- readonly asForceSubscribeVersionNotify: {
- readonly location: XcmVersionedMultiLocation;
- } & Struct;
- readonly isForceUnsubscribeVersionNotify: boolean;
- readonly asForceUnsubscribeVersionNotify: {
- readonly location: XcmVersionedMultiLocation;
- } & Struct;
- readonly isLimitedReserveTransferAssets: boolean;
- readonly asLimitedReserveTransferAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- readonly weightLimit: XcmV2WeightLimit;
- } & Struct;
- readonly isLimitedTeleportAssets: boolean;
- readonly asLimitedTeleportAssets: {
- readonly dest: XcmVersionedMultiLocation;
- readonly beneficiary: XcmVersionedMultiLocation;
- readonly assets: XcmVersionedMultiAssets;
- readonly feeAssetItem: u32;
- readonly weightLimit: XcmV2WeightLimit;
- } & Struct;
- readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
- }
-
- /** @name XcmVersionedMultiLocation (89) */
- export interface XcmVersionedMultiLocation extends Enum {
- readonly isV0: boolean;
- readonly asV0: XcmV0MultiLocation;
- readonly isV1: boolean;
- readonly asV1: XcmV1MultiLocation;
- readonly type: 'V0' | 'V1';
- }
-
- /** @name XcmV0MultiLocation (90) */
- export interface XcmV0MultiLocation extends Enum {
- readonly isNull: boolean;
- readonly isX1: boolean;
- readonly asX1: XcmV0Junction;
- readonly isX2: boolean;
- readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;
- readonly isX3: boolean;
- readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX4: boolean;
- readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX5: boolean;
- readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX6: boolean;
- readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX7: boolean;
- readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly isX8: boolean;
- readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
- readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
- }
-
- /** @name XcmV0Junction (91) */
- export interface XcmV0Junction extends Enum {
- readonly isParent: boolean;
- readonly isParachain: boolean;
- readonly asParachain: Compact<u32>;
- readonly isAccountId32: boolean;
- readonly asAccountId32: {
- readonly network: XcmV0JunctionNetworkId;
- readonly id: U8aFixed;
- } & Struct;
- readonly isAccountIndex64: boolean;
- readonly asAccountIndex64: {
- readonly network: XcmV0JunctionNetworkId;
- readonly index: Compact<u64>;
- } & Struct;
- readonly isAccountKey20: boolean;
- readonly asAccountKey20: {
- readonly network: XcmV0JunctionNetworkId;
- readonly key: U8aFixed;
- } & Struct;
- readonly isPalletInstance: boolean;
- readonly asPalletInstance: u8;
- readonly isGeneralIndex: boolean;
- readonly asGeneralIndex: Compact<u128>;
- readonly isGeneralKey: boolean;
- readonly asGeneralKey: Bytes;
- readonly isOnlyChild: boolean;
- readonly isPlurality: boolean;
- readonly asPlurality: {
- readonly id: XcmV0JunctionBodyId;
- readonly part: XcmV0JunctionBodyPart;
- } & Struct;
- readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
- }
-
- /** @name XcmV0JunctionNetworkId (92) */
- export interface XcmV0JunctionNetworkId extends Enum {
- readonly isAny: boolean;
- readonly isNamed: boolean;
- readonly asNamed: Bytes;
- readonly isPolkadot: boolean;
- readonly isKusama: boolean;
- readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
- }
-
- /** @name XcmV0JunctionBodyId (93) */
- export interface XcmV0JunctionBodyId extends Enum {
- readonly isUnit: boolean;
- readonly isNamed: boolean;
- readonly asNamed: Bytes;
- readonly isIndex: boolean;
- readonly asIndex: Compact<u32>;
- readonly isExecutive: boolean;
- readonly isTechnical: boolean;
- readonly isLegislative: boolean;
- readonly isJudicial: boolean;
- readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
- }
-
- /** @name XcmV0JunctionBodyPart (94) */
- export interface XcmV0JunctionBodyPart extends Enum {
- readonly isVoice: boolean;
- readonly isMembers: boolean;
- readonly asMembers: {
- readonly count: Compact<u32>;
- } & Struct;
- readonly isFraction: boolean;
- readonly asFraction: {
- readonly nom: Compact<u32>;
- readonly denom: Compact<u32>;
- } & Struct;
- readonly isAtLeastProportion: boolean;
- readonly asAtLeastProportion: {
- readonly nom: Compact<u32>;
- readonly denom: Compact<u32>;
- } & Struct;
- readonly isMoreThanProportion: boolean;
- readonly asMoreThanProportion: {
- readonly nom: Compact<u32>;
- readonly denom: Compact<u32>;
- } & Struct;
- readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
- }
-
- /** @name XcmV1MultiLocation (95) */
- export interface XcmV1MultiLocation extends Struct {
- readonly parents: u8;
- readonly interior: XcmV1MultilocationJunctions;
- }
-
- /** @name XcmV1MultilocationJunctions (96) */
- export interface XcmV1MultilocationJunctions extends Enum {
- readonly isHere: boolean;
- readonly isX1: boolean;
- readonly asX1: XcmV1Junction;
- readonly isX2: boolean;
- readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;
- readonly isX3: boolean;
- readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly isX4: boolean;
- readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly isX5: boolean;
- readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly isX6: boolean;
- readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly isX7: boolean;
- readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly isX8: boolean;
- readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
- readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
- }
-
- /** @name XcmV1Junction (97) */
- export interface XcmV1Junction extends Enum {
- readonly isParachain: boolean;
- readonly asParachain: Compact<u32>;
- readonly isAccountId32: boolean;
- readonly asAccountId32: {
- readonly network: XcmV0JunctionNetworkId;
- readonly id: U8aFixed;
- } & Struct;
- readonly isAccountIndex64: boolean;
- readonly asAccountIndex64: {
- readonly network: XcmV0JunctionNetworkId;
- readonly index: Compact<u64>;
- } & Struct;
- readonly isAccountKey20: boolean;
- readonly asAccountKey20: {
- readonly network: XcmV0JunctionNetworkId;
- readonly key: U8aFixed;
- } & Struct;
- readonly isPalletInstance: boolean;
- readonly asPalletInstance: u8;
- readonly isGeneralIndex: boolean;
- readonly asGeneralIndex: Compact<u128>;
- readonly isGeneralKey: boolean;
- readonly asGeneralKey: Bytes;
- readonly isOnlyChild: boolean;
- readonly isPlurality: boolean;
- readonly asPlurality: {
- readonly id: XcmV0JunctionBodyId;
- readonly part: XcmV0JunctionBodyPart;
- } & Struct;
- readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
- }
-
- /** @name XcmVersionedXcm (98) */
- export interface XcmVersionedXcm extends Enum {
- readonly isV0: boolean;
- readonly asV0: XcmV0Xcm;
- readonly isV1: boolean;
- readonly asV1: XcmV1Xcm;
- readonly isV2: boolean;
- readonly asV2: XcmV2Xcm;
- readonly type: 'V0' | 'V1' | 'V2';
- }
-
- /** @name XcmV0Xcm (99) */
- export interface XcmV0Xcm extends Enum {
- readonly isWithdrawAsset: boolean;
- readonly asWithdrawAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isReserveAssetDeposit: boolean;
- readonly asReserveAssetDeposit: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isTeleportAsset: boolean;
- readonly asTeleportAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isQueryResponse: boolean;
- readonly asQueryResponse: {
- readonly queryId: Compact<u64>;
- readonly response: XcmV0Response;
- } & Struct;
- readonly isTransferAsset: boolean;
- readonly asTransferAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- } & Struct;
- readonly isTransferReserveAsset: boolean;
- readonly asTransferReserveAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly originType: XcmV0OriginKind;
- readonly requireWeightAtMost: u64;
- readonly call: XcmDoubleEncoded;
- } & Struct;
- readonly isHrmpNewChannelOpenRequest: boolean;
- readonly asHrmpNewChannelOpenRequest: {
- readonly sender: Compact<u32>;
- readonly maxMessageSize: Compact<u32>;
- readonly maxCapacity: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelAccepted: boolean;
- readonly asHrmpChannelAccepted: {
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelClosing: boolean;
- readonly asHrmpChannelClosing: {
- readonly initiator: Compact<u32>;
- readonly sender: Compact<u32>;
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isRelayedFrom: boolean;
- readonly asRelayedFrom: {
- readonly who: XcmV0MultiLocation;
- readonly message: XcmV0Xcm;
- } & Struct;
- readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
- }
-
- /** @name XcmV0MultiAsset (101) */
- export interface XcmV0MultiAsset extends Enum {
- readonly isNone: boolean;
- readonly isAll: boolean;
- readonly isAllFungible: boolean;
- readonly isAllNonFungible: boolean;
- readonly isAllAbstractFungible: boolean;
- readonly asAllAbstractFungible: {
- readonly id: Bytes;
- } & Struct;
- readonly isAllAbstractNonFungible: boolean;
- readonly asAllAbstractNonFungible: {
- readonly class: Bytes;
- } & Struct;
- readonly isAllConcreteFungible: boolean;
- readonly asAllConcreteFungible: {
- readonly id: XcmV0MultiLocation;
- } & Struct;
- readonly isAllConcreteNonFungible: boolean;
- readonly asAllConcreteNonFungible: {
- readonly class: XcmV0MultiLocation;
- } & Struct;
- readonly isAbstractFungible: boolean;
- readonly asAbstractFungible: {
- readonly id: Bytes;
- readonly amount: Compact<u128>;
- } & Struct;
- readonly isAbstractNonFungible: boolean;
- readonly asAbstractNonFungible: {
- readonly class: Bytes;
- readonly instance: XcmV1MultiassetAssetInstance;
- } & Struct;
- readonly isConcreteFungible: boolean;
- readonly asConcreteFungible: {
- readonly id: XcmV0MultiLocation;
- readonly amount: Compact<u128>;
- } & Struct;
- readonly isConcreteNonFungible: boolean;
- readonly asConcreteNonFungible: {
- readonly class: XcmV0MultiLocation;
- readonly instance: XcmV1MultiassetAssetInstance;
- } & Struct;
- readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
- }
-
- /** @name XcmV1MultiassetAssetInstance (102) */
- export interface XcmV1MultiassetAssetInstance extends Enum {
- readonly isUndefined: boolean;
- readonly isIndex: boolean;
- readonly asIndex: Compact<u128>;
- readonly isArray4: boolean;
- readonly asArray4: U8aFixed;
- readonly isArray8: boolean;
- readonly asArray8: U8aFixed;
- readonly isArray16: boolean;
- readonly asArray16: U8aFixed;
- readonly isArray32: boolean;
- readonly asArray32: U8aFixed;
- readonly isBlob: boolean;
- readonly asBlob: Bytes;
- readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
- }
-
- /** @name XcmV0Order (106) */
- export interface XcmV0Order extends Enum {
- readonly isNull: boolean;
- readonly isDepositAsset: boolean;
- readonly asDepositAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- } & Struct;
- readonly isDepositReserveAsset: boolean;
- readonly asDepositReserveAsset: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isExchangeAsset: boolean;
- readonly asExchangeAsset: {
- readonly give: Vec<XcmV0MultiAsset>;
- readonly receive: Vec<XcmV0MultiAsset>;
- } & Struct;
- readonly isInitiateReserveWithdraw: boolean;
- readonly asInitiateReserveWithdraw: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly reserve: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isInitiateTeleport: boolean;
- readonly asInitiateTeleport: {
- readonly assets: Vec<XcmV0MultiAsset>;
- readonly dest: XcmV0MultiLocation;
- readonly effects: Vec<XcmV0Order>;
- } & Struct;
- readonly isQueryHolding: boolean;
- readonly asQueryHolding: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV0MultiLocation;
- readonly assets: Vec<XcmV0MultiAsset>;
- } & Struct;
- readonly isBuyExecution: boolean;
- readonly asBuyExecution: {
- readonly fees: XcmV0MultiAsset;
- readonly weight: u64;
- readonly debt: u64;
- readonly haltOnError: bool;
- readonly xcm: Vec<XcmV0Xcm>;
- } & Struct;
- readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
- }
-
- /** @name XcmV0Response (108) */
- export interface XcmV0Response extends Enum {
- readonly isAssets: boolean;
- readonly asAssets: Vec<XcmV0MultiAsset>;
- readonly type: 'Assets';
- }
-
- /** @name XcmV0OriginKind (109) */
- export interface XcmV0OriginKind extends Enum {
- readonly isNative: boolean;
- readonly isSovereignAccount: boolean;
- readonly isSuperuser: boolean;
- readonly isXcm: boolean;
- readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
- }
-
- /** @name XcmDoubleEncoded (110) */
- export interface XcmDoubleEncoded extends Struct {
- readonly encoded: Bytes;
- }
-
- /** @name XcmV1Xcm (111) */
- export interface XcmV1Xcm extends Enum {
- readonly isWithdrawAsset: boolean;
- readonly asWithdrawAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isReserveAssetDeposited: boolean;
- readonly asReserveAssetDeposited: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isReceiveTeleportedAsset: boolean;
- readonly asReceiveTeleportedAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isQueryResponse: boolean;
- readonly asQueryResponse: {
- readonly queryId: Compact<u64>;
- readonly response: XcmV1Response;
- } & Struct;
- readonly isTransferAsset: boolean;
- readonly asTransferAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isTransferReserveAsset: boolean;
- readonly asTransferReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly originType: XcmV0OriginKind;
- readonly requireWeightAtMost: u64;
- readonly call: XcmDoubleEncoded;
- } & Struct;
- readonly isHrmpNewChannelOpenRequest: boolean;
- readonly asHrmpNewChannelOpenRequest: {
- readonly sender: Compact<u32>;
- readonly maxMessageSize: Compact<u32>;
- readonly maxCapacity: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelAccepted: boolean;
- readonly asHrmpChannelAccepted: {
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelClosing: boolean;
- readonly asHrmpChannelClosing: {
- readonly initiator: Compact<u32>;
- readonly sender: Compact<u32>;
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isRelayedFrom: boolean;
- readonly asRelayedFrom: {
- readonly who: XcmV1MultilocationJunctions;
- readonly message: XcmV1Xcm;
- } & Struct;
- readonly isSubscribeVersion: boolean;
- readonly asSubscribeVersion: {
- readonly queryId: Compact<u64>;
- readonly maxResponseWeight: Compact<u64>;
- } & Struct;
- readonly isUnsubscribeVersion: boolean;
- readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
- }
-
- /** @name XcmV1MultiassetMultiAssets (112) */
- export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
-
- /** @name XcmV1MultiAsset (114) */
- export interface XcmV1MultiAsset extends Struct {
- readonly id: XcmV1MultiassetAssetId;
- readonly fun: XcmV1MultiassetFungibility;
- }
-
- /** @name XcmV1MultiassetAssetId (115) */
- export interface XcmV1MultiassetAssetId extends Enum {
- readonly isConcrete: boolean;
- readonly asConcrete: XcmV1MultiLocation;
- readonly isAbstract: boolean;
- readonly asAbstract: Bytes;
- readonly type: 'Concrete' | 'Abstract';
- }
-
- /** @name XcmV1MultiassetFungibility (116) */
- export interface XcmV1MultiassetFungibility extends Enum {
- readonly isFungible: boolean;
- readonly asFungible: Compact<u128>;
- readonly isNonFungible: boolean;
- readonly asNonFungible: XcmV1MultiassetAssetInstance;
- readonly type: 'Fungible' | 'NonFungible';
- }
-
- /** @name XcmV1Order (118) */
- export interface XcmV1Order extends Enum {
- readonly isNoop: boolean;
- readonly isDepositAsset: boolean;
- readonly asDepositAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: u32;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isDepositReserveAsset: boolean;
- readonly asDepositReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: u32;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isExchangeAsset: boolean;
- readonly asExchangeAsset: {
- readonly give: XcmV1MultiassetMultiAssetFilter;
- readonly receive: XcmV1MultiassetMultiAssets;
- } & Struct;
- readonly isInitiateReserveWithdraw: boolean;
- readonly asInitiateReserveWithdraw: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly reserve: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isInitiateTeleport: boolean;
- readonly asInitiateTeleport: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly dest: XcmV1MultiLocation;
- readonly effects: Vec<XcmV1Order>;
- } & Struct;
- readonly isQueryHolding: boolean;
- readonly asQueryHolding: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV1MultiLocation;
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- } & Struct;
- readonly isBuyExecution: boolean;
- readonly asBuyExecution: {
- readonly fees: XcmV1MultiAsset;
- readonly weight: u64;
- readonly debt: u64;
- readonly haltOnError: bool;
- readonly instructions: Vec<XcmV1Xcm>;
- } & Struct;
- readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
- }
-
- /** @name XcmV1MultiassetMultiAssetFilter (119) */
- export interface XcmV1MultiassetMultiAssetFilter extends Enum {
- readonly isDefinite: boolean;
- readonly asDefinite: XcmV1MultiassetMultiAssets;
- readonly isWild: boolean;
- readonly asWild: XcmV1MultiassetWildMultiAsset;
- readonly type: 'Definite' | 'Wild';
- }
-
- /** @name XcmV1MultiassetWildMultiAsset (120) */
- export interface XcmV1MultiassetWildMultiAsset extends Enum {
- readonly isAll: boolean;
- readonly isAllOf: boolean;
- readonly asAllOf: {
- readonly id: XcmV1MultiassetAssetId;
- readonly fun: XcmV1MultiassetWildFungibility;
- } & Struct;
- readonly type: 'All' | 'AllOf';
- }
-
- /** @name XcmV1MultiassetWildFungibility (121) */
- export interface XcmV1MultiassetWildFungibility extends Enum {
- readonly isFungible: boolean;
- readonly isNonFungible: boolean;
- readonly type: 'Fungible' | 'NonFungible';
- }
-
- /** @name XcmV1Response (123) */
- export interface XcmV1Response extends Enum {
- readonly isAssets: boolean;
- readonly asAssets: XcmV1MultiassetMultiAssets;
- readonly isVersion: boolean;
- readonly asVersion: u32;
- readonly type: 'Assets' | 'Version';
- }
-
- /** @name XcmV2Xcm (124) */
- export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
-
- /** @name XcmV2Instruction (126) */
- export interface XcmV2Instruction extends Enum {
- readonly isWithdrawAsset: boolean;
- readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;
- readonly isReserveAssetDeposited: boolean;
- readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;
- readonly isReceiveTeleportedAsset: boolean;
- readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;
- readonly isQueryResponse: boolean;
- readonly asQueryResponse: {
- readonly queryId: Compact<u64>;
- readonly response: XcmV2Response;
- readonly maxWeight: Compact<u64>;
- } & Struct;
- readonly isTransferAsset: boolean;
- readonly asTransferAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isTransferReserveAsset: boolean;
- readonly asTransferReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly dest: XcmV1MultiLocation;
- readonly xcm: XcmV2Xcm;
- } & Struct;
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly originType: XcmV0OriginKind;
- readonly requireWeightAtMost: Compact<u64>;
- readonly call: XcmDoubleEncoded;
- } & Struct;
- readonly isHrmpNewChannelOpenRequest: boolean;
- readonly asHrmpNewChannelOpenRequest: {
- readonly sender: Compact<u32>;
- readonly maxMessageSize: Compact<u32>;
- readonly maxCapacity: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelAccepted: boolean;
- readonly asHrmpChannelAccepted: {
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isHrmpChannelClosing: boolean;
- readonly asHrmpChannelClosing: {
- readonly initiator: Compact<u32>;
- readonly sender: Compact<u32>;
- readonly recipient: Compact<u32>;
- } & Struct;
- readonly isClearOrigin: boolean;
- readonly isDescendOrigin: boolean;
- readonly asDescendOrigin: XcmV1MultilocationJunctions;
- readonly isReportError: boolean;
- readonly asReportError: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV1MultiLocation;
- readonly maxResponseWeight: Compact<u64>;
- } & Struct;
- readonly isDepositAsset: boolean;
- readonly asDepositAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: Compact<u32>;
- readonly beneficiary: XcmV1MultiLocation;
- } & Struct;
- readonly isDepositReserveAsset: boolean;
- readonly asDepositReserveAsset: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxAssets: Compact<u32>;
- readonly dest: XcmV1MultiLocation;
- readonly xcm: XcmV2Xcm;
- } & Struct;
- readonly isExchangeAsset: boolean;
- readonly asExchangeAsset: {
- readonly give: XcmV1MultiassetMultiAssetFilter;
- readonly receive: XcmV1MultiassetMultiAssets;
- } & Struct;
- readonly isInitiateReserveWithdraw: boolean;
- readonly asInitiateReserveWithdraw: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly reserve: XcmV1MultiLocation;
- readonly xcm: XcmV2Xcm;
- } & Struct;
- readonly isInitiateTeleport: boolean;
- readonly asInitiateTeleport: {
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly dest: XcmV1MultiLocation;
- readonly xcm: XcmV2Xcm;
- } & Struct;
- readonly isQueryHolding: boolean;
- readonly asQueryHolding: {
- readonly queryId: Compact<u64>;
- readonly dest: XcmV1MultiLocation;
- readonly assets: XcmV1MultiassetMultiAssetFilter;
- readonly maxResponseWeight: Compact<u64>;
- } & Struct;
- readonly isBuyExecution: boolean;
- readonly asBuyExecution: {
- readonly fees: XcmV1MultiAsset;
- readonly weightLimit: XcmV2WeightLimit;
- } & Struct;
- readonly isRefundSurplus: boolean;
- readonly isSetErrorHandler: boolean;
- readonly asSetErrorHandler: XcmV2Xcm;
- readonly isSetAppendix: boolean;
- readonly asSetAppendix: XcmV2Xcm;
- readonly isClearError: boolean;
- readonly isClaimAsset: boolean;
- readonly asClaimAsset: {
- readonly assets: XcmV1MultiassetMultiAssets;
- readonly ticket: XcmV1MultiLocation;
- } & Struct;
- readonly isTrap: boolean;
- readonly asTrap: Compact<u64>;
- readonly isSubscribeVersion: boolean;
- readonly asSubscribeVersion: {
- readonly queryId: Compact<u64>;
- readonly maxResponseWeight: Compact<u64>;
- } & Struct;
- readonly isUnsubscribeVersion: boolean;
- 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';
- }
-
- /** @name XcmV2Response (127) */
- export interface XcmV2Response extends Enum {
- readonly isNull: boolean;
- readonly isAssets: boolean;
- readonly asAssets: XcmV1MultiassetMultiAssets;
- readonly isExecutionResult: boolean;
- readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;
- readonly isVersion: boolean;
- readonly asVersion: u32;
- readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
- }
-
- /** @name XcmV2TraitsError (130) */
- export interface XcmV2TraitsError extends Enum {
- readonly isOverflow: boolean;
- readonly isUnimplemented: boolean;
- readonly isUntrustedReserveLocation: boolean;
- readonly isUntrustedTeleportLocation: boolean;
- readonly isMultiLocationFull: boolean;
- readonly isMultiLocationNotInvertible: boolean;
- readonly isBadOrigin: boolean;
- readonly isInvalidLocation: boolean;
- readonly isAssetNotFound: boolean;
- readonly isFailedToTransactAsset: boolean;
- readonly isNotWithdrawable: boolean;
- readonly isLocationCannotHold: boolean;
- readonly isExceedsMaxMessageSize: boolean;
- readonly isDestinationUnsupported: boolean;
- readonly isTransport: boolean;
- readonly isUnroutable: boolean;
- readonly isUnknownClaim: boolean;
- readonly isFailedToDecode: boolean;
- readonly isMaxWeightInvalid: boolean;
- readonly isNotHoldingFees: boolean;
- readonly isTooExpensive: boolean;
- readonly isTrap: boolean;
- readonly asTrap: u64;
- readonly isUnhandledXcmVersion: boolean;
- readonly isWeightLimitReached: boolean;
- readonly asWeightLimitReached: u64;
- readonly isBarrier: boolean;
- readonly isWeightNotComputable: boolean;
- 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';
- }
-
- /** @name XcmV2WeightLimit (131) */
- export interface XcmV2WeightLimit extends Enum {
- readonly isUnlimited: boolean;
- readonly isLimited: boolean;
- readonly asLimited: Compact<u64>;
- readonly type: 'Unlimited' | 'Limited';
- }
-
- /** @name XcmVersionedMultiAssets (132) */
- export interface XcmVersionedMultiAssets extends Enum {
- readonly isV0: boolean;
- readonly asV0: Vec<XcmV0MultiAsset>;
- readonly isV1: boolean;
- readonly asV1: XcmV1MultiassetMultiAssets;
- readonly type: 'V0' | 'V1';
- }
-
- /** @name CumulusPalletXcmCall (147) */
- export type CumulusPalletXcmCall = Null;
-
- /** @name CumulusPalletDmpQueueCall (148) */
- export interface CumulusPalletDmpQueueCall extends Enum {
- readonly isServiceOverweight: boolean;
- readonly asServiceOverweight: {
- readonly index: u64;
- readonly weightLimit: u64;
- } & Struct;
- readonly type: 'ServiceOverweight';
- }
-
- /** @name PalletInflationCall (149) */
- export interface PalletInflationCall extends Enum {
- readonly isStartInflation: boolean;
- readonly asStartInflation: {
- readonly inflationStartRelayBlock: u32;
- } & Struct;
- readonly type: 'StartInflation';
- }
-
- /** @name PalletUniqueCall (150) */
- export interface PalletUniqueCall extends Enum {
- readonly isCreateCollection: boolean;
- readonly asCreateCollection: {
- readonly collectionName: Vec<u16>;
- readonly collectionDescription: Vec<u16>;
- readonly tokenPrefix: Bytes;
- readonly mode: UpDataStructsCollectionMode;
- } & Struct;
- readonly isCreateCollectionEx: boolean;
- readonly asCreateCollectionEx: {
- readonly data: UpDataStructsCreateCollectionData;
- } & Struct;
- readonly isDestroyCollection: boolean;
- readonly asDestroyCollection: {
- readonly collectionId: u32;
- } & Struct;
- readonly isAddToAllowList: boolean;
- readonly asAddToAllowList: {
- readonly collectionId: u32;
- readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isRemoveFromAllowList: boolean;
- readonly asRemoveFromAllowList: {
- readonly collectionId: u32;
- readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isSetPublicAccessMode: boolean;
- readonly asSetPublicAccessMode: {
- readonly collectionId: u32;
- readonly mode: UpDataStructsAccessMode;
- } & Struct;
- readonly isSetMintPermission: boolean;
- readonly asSetMintPermission: {
- readonly collectionId: u32;
- readonly mintPermission: bool;
- } & Struct;
- readonly isChangeCollectionOwner: boolean;
- readonly asChangeCollectionOwner: {
- readonly collectionId: u32;
- readonly newOwner: AccountId32;
- } & Struct;
- readonly isAddCollectionAdmin: boolean;
- readonly asAddCollectionAdmin: {
- readonly collectionId: u32;
- readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isRemoveCollectionAdmin: boolean;
- readonly asRemoveCollectionAdmin: {
- readonly collectionId: u32;
- readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;
- } & Struct;
- readonly isSetCollectionSponsor: boolean;
- readonly asSetCollectionSponsor: {
- readonly collectionId: u32;
- readonly newSponsor: AccountId32;
- } & Struct;
- readonly isConfirmSponsorship: boolean;
- readonly asConfirmSponsorship: {
- readonly collectionId: u32;
- } & Struct;
- readonly isRemoveCollectionSponsor: boolean;
- readonly asRemoveCollectionSponsor: {
- readonly collectionId: u32;
- } & Struct;
- readonly isCreateItem: boolean;
- readonly asCreateItem: {
- readonly collectionId: u32;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly data: UpDataStructsCreateItemData;
- } & Struct;
- readonly isCreateMultipleItems: boolean;
- readonly asCreateMultipleItems: {
- readonly collectionId: u32;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly itemsData: Vec<UpDataStructsCreateItemData>;
- } & Struct;
- readonly isCreateMultipleItemsEx: boolean;
- readonly asCreateMultipleItemsEx: {
- readonly collectionId: u32;
- readonly data: UpDataStructsCreateItemExData;
- } & Struct;
- readonly isSetTransfersEnabledFlag: boolean;
- readonly asSetTransfersEnabledFlag: {
- readonly collectionId: u32;
- readonly value: bool;
- } & Struct;
- readonly isBurnItem: boolean;
- readonly asBurnItem: {
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isBurnFrom: boolean;
- readonly asBurnFrom: {
- readonly collectionId: u32;
- readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isTransfer: boolean;
- readonly asTransfer: {
- readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isApprove: boolean;
- readonly asApprove: {
- readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly amount: u128;
- } & Struct;
- readonly isTransferFrom: boolean;
- readonly asTransferFrom: {
- readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly value: u128;
- } & Struct;
- readonly isSetVariableMetaData: boolean;
- readonly asSetVariableMetaData: {
- readonly collectionId: u32;
- readonly itemId: u32;
- readonly data: Bytes;
- } & Struct;
- readonly isSetMetaUpdatePermissionFlag: boolean;
- readonly asSetMetaUpdatePermissionFlag: {
- readonly collectionId: u32;
- readonly value: UpDataStructsMetaUpdatePermission;
- } & Struct;
- readonly isSetSchemaVersion: boolean;
- readonly asSetSchemaVersion: {
- readonly collectionId: u32;
- readonly version: UpDataStructsSchemaVersion;
- } & Struct;
- readonly isSetOffchainSchema: boolean;
- readonly asSetOffchainSchema: {
- readonly collectionId: u32;
- readonly schema: Bytes;
- } & Struct;
- readonly isSetConstOnChainSchema: boolean;
- readonly asSetConstOnChainSchema: {
- readonly collectionId: u32;
- readonly schema: Bytes;
- } & Struct;
- readonly isSetVariableOnChainSchema: boolean;
- readonly asSetVariableOnChainSchema: {
- readonly collectionId: u32;
- readonly schema: Bytes;
- } & Struct;
- readonly isSetCollectionLimits: boolean;
- readonly asSetCollectionLimits: {
- readonly collectionId: u32;
- readonly newLimit: UpDataStructsCollectionLimits;
- } & Struct;
- readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';
- }
-
- /** @name UpDataStructsCollectionMode (156) */
- export interface UpDataStructsCollectionMode extends Enum {
- readonly isNft: boolean;
- readonly isFungible: boolean;
- readonly asFungible: u8;
- readonly isReFungible: boolean;
- readonly type: 'Nft' | 'Fungible' | 'ReFungible';
- }
-
- /** @name UpDataStructsCreateCollectionData (157) */
- export interface UpDataStructsCreateCollectionData extends Struct {
- readonly mode: UpDataStructsCollectionMode;
- readonly access: Option<UpDataStructsAccessMode>;
- readonly name: Vec<u16>;
- readonly description: Vec<u16>;
- readonly tokenPrefix: Bytes;
- readonly offchainSchema: Bytes;
- readonly schemaVersion: Option<UpDataStructsSchemaVersion>;
- readonly pendingSponsor: Option<AccountId32>;
- readonly limits: Option<UpDataStructsCollectionLimits>;
- readonly variableOnChainSchema: Bytes;
- readonly constOnChainSchema: Bytes;
- readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;
- }
-
- /** @name UpDataStructsAccessMode (159) */
- export interface UpDataStructsAccessMode extends Enum {
- readonly isNormal: boolean;
- readonly isAllowList: boolean;
- readonly type: 'Normal' | 'AllowList';
- }
-
- /** @name UpDataStructsSchemaVersion (162) */
- export interface UpDataStructsSchemaVersion extends Enum {
- readonly isImageURL: boolean;
- readonly isUnique: boolean;
- readonly type: 'ImageURL' | 'Unique';
- }
-
- /** @name UpDataStructsCollectionLimits (165) */
- export interface UpDataStructsCollectionLimits extends Struct {
- readonly accountTokenOwnershipLimit: Option<u32>;
- readonly sponsoredDataSize: Option<u32>;
- readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;
- readonly tokenLimit: Option<u32>;
- readonly sponsorTransferTimeout: Option<u32>;
- readonly sponsorApproveTimeout: Option<u32>;
- readonly ownerCanTransfer: Option<bool>;
- readonly ownerCanDestroy: Option<bool>;
- readonly transfersEnabled: Option<bool>;
- }
-
- /** @name UpDataStructsSponsoringRateLimit (167) */
- export interface UpDataStructsSponsoringRateLimit extends Enum {
- readonly isSponsoringDisabled: boolean;
- readonly isBlocks: boolean;
- readonly asBlocks: u32;
- readonly type: 'SponsoringDisabled' | 'Blocks';
- }
-
- /** @name UpDataStructsMetaUpdatePermission (171) */
- export interface UpDataStructsMetaUpdatePermission extends Enum {
- readonly isItemOwner: boolean;
- readonly isAdmin: boolean;
- readonly isNone: boolean;
- readonly type: 'ItemOwner' | 'Admin' | 'None';
- }
-
- /** @name PalletEvmAccountBasicCrossAccountIdRepr (173) */
- export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {
- readonly isSubstrate: boolean;
- readonly asSubstrate: AccountId32;
- readonly isEthereum: boolean;
- readonly asEthereum: H160;
- readonly type: 'Substrate' | 'Ethereum';
- }
-
- /** @name UpDataStructsCreateItemData (175) */
- export interface UpDataStructsCreateItemData extends Enum {
- readonly isNft: boolean;
- readonly asNft: UpDataStructsCreateNftData;
- readonly isFungible: boolean;
- readonly asFungible: UpDataStructsCreateFungibleData;
- readonly isReFungible: boolean;
- readonly asReFungible: UpDataStructsCreateReFungibleData;
- readonly type: 'Nft' | 'Fungible' | 'ReFungible';
- }
-
- /** @name UpDataStructsCreateNftData (176) */
- export interface UpDataStructsCreateNftData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- }
-
- /** @name UpDataStructsCreateFungibleData (178) */
- export interface UpDataStructsCreateFungibleData extends Struct {
- readonly value: u128;
- }
-
- /** @name UpDataStructsCreateReFungibleData (179) */
- export interface UpDataStructsCreateReFungibleData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- readonly pieces: u128;
- }
-
- /** @name UpDataStructsCreateItemExData (181) */
- export interface UpDataStructsCreateItemExData extends Enum {
- readonly isNft: boolean;
- readonly asNft: Vec<UpDataStructsCreateNftExData>;
- readonly isFungible: boolean;
- readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
- readonly isRefungibleMultipleItems: boolean;
- readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;
- readonly isRefungibleMultipleOwners: boolean;
- readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExData;
- readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
- }
-
- /** @name UpDataStructsCreateNftExData (183) */
- export interface UpDataStructsCreateNftExData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- }
-
- /** @name UpDataStructsCreateRefungibleExData (190) */
- export interface UpDataStructsCreateRefungibleExData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
- }
-
- /** @name PalletTemplateTransactionPaymentCall (193) */
- export type PalletTemplateTransactionPaymentCall = Null;
-
- /** @name PalletEvmCall (194) */
- export interface PalletEvmCall extends Enum {
- readonly isWithdraw: boolean;
- readonly asWithdraw: {
- readonly address: H160;
- readonly value: u128;
- } & Struct;
- readonly isCall: boolean;
- readonly asCall: {
- readonly source: H160;
- readonly target: H160;
- readonly input: Bytes;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
- } & Struct;
- readonly isCreate: boolean;
- readonly asCreate: {
- readonly source: H160;
- readonly init: Bytes;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
- } & Struct;
- readonly isCreate2: boolean;
- readonly asCreate2: {
- readonly source: H160;
- readonly init: Bytes;
- readonly salt: H256;
- readonly value: U256;
- readonly gasLimit: u64;
- readonly maxFeePerGas: U256;
- readonly maxPriorityFeePerGas: Option<U256>;
- readonly nonce: Option<U256>;
- readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;
- } & Struct;
- readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
- }
-
- /** @name PalletEthereumCall (200) */
- export interface PalletEthereumCall extends Enum {
- readonly isTransact: boolean;
- readonly asTransact: {
- readonly transaction: EthereumTransactionTransactionV2;
- } & Struct;
- readonly type: 'Transact';
- }
-
- /** @name EthereumTransactionTransactionV2 (201) */
- export interface EthereumTransactionTransactionV2 extends Enum {
- readonly isLegacy: boolean;
- readonly asLegacy: EthereumTransactionLegacyTransaction;
- readonly isEip2930: boolean;
- readonly asEip2930: EthereumTransactionEip2930Transaction;
- readonly isEip1559: boolean;
- readonly asEip1559: EthereumTransactionEip1559Transaction;
- readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
- }
-
- /** @name EthereumTransactionLegacyTransaction (202) */
- export interface EthereumTransactionLegacyTransaction extends Struct {
- readonly nonce: U256;
- readonly gasPrice: U256;
- readonly gasLimit: U256;
- readonly action: EthereumTransactionTransactionAction;
- readonly value: U256;
- readonly input: Bytes;
- readonly signature: EthereumTransactionTransactionSignature;
- }
-
- /** @name EthereumTransactionTransactionAction (203) */
- export interface EthereumTransactionTransactionAction extends Enum {
- readonly isCall: boolean;
- readonly asCall: H160;
- readonly isCreate: boolean;
- readonly type: 'Call' | 'Create';
- }
-
- /** @name EthereumTransactionTransactionSignature (204) */
- export interface EthereumTransactionTransactionSignature extends Struct {
- readonly v: u64;
- readonly r: H256;
- readonly s: H256;
- }
-
- /** @name EthereumTransactionEip2930Transaction (206) */
- export interface EthereumTransactionEip2930Transaction extends Struct {
- readonly chainId: u64;
- readonly nonce: U256;
- readonly gasPrice: U256;
- readonly gasLimit: U256;
- readonly action: EthereumTransactionTransactionAction;
- readonly value: U256;
- readonly input: Bytes;
- readonly accessList: Vec<EthereumTransactionAccessListItem>;
- readonly oddYParity: bool;
- readonly r: H256;
- readonly s: H256;
- }
-
- /** @name EthereumTransactionAccessListItem (208) */
- export interface EthereumTransactionAccessListItem extends Struct {
- readonly address: H160;
- readonly storageKeys: Vec<H256>;
- }
-
- /** @name EthereumTransactionEip1559Transaction (209) */
- export interface EthereumTransactionEip1559Transaction extends Struct {
- readonly chainId: u64;
- readonly nonce: U256;
- readonly maxPriorityFeePerGas: U256;
- readonly maxFeePerGas: U256;
- readonly gasLimit: U256;
- readonly action: EthereumTransactionTransactionAction;
- readonly value: U256;
- readonly input: Bytes;
- readonly accessList: Vec<EthereumTransactionAccessListItem>;
- readonly oddYParity: bool;
- readonly r: H256;
- readonly s: H256;
- }
-
- /** @name PalletEvmMigrationCall (210) */
- export interface PalletEvmMigrationCall extends Enum {
- readonly isBegin: boolean;
- readonly asBegin: {
- readonly address: H160;
- } & Struct;
- readonly isSetData: boolean;
- readonly asSetData: {
- readonly address: H160;
- readonly data: Vec<ITuple<[H256, H256]>>;
- } & Struct;
- readonly isFinish: boolean;
- readonly asFinish: {
- readonly address: H160;
- readonly code: Bytes;
- } & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish';
- }
-
- /** @name PalletSudoEvent (213) */
- export interface PalletSudoEvent extends Enum {
- readonly isSudid: boolean;
- readonly asSudid: {
- readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
- } & Struct;
- readonly isKeyChanged: boolean;
- readonly asKeyChanged: {
- readonly oldSudoer: Option<AccountId32>;
- } & Struct;
- readonly isSudoAsDone: boolean;
- readonly asSudoAsDone: {
- readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
- } & Struct;
- readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';
- }
-
- /** @name SpRuntimeDispatchError (215) */
- export interface SpRuntimeDispatchError extends Enum {
- readonly isOther: boolean;
- readonly isCannotLookup: boolean;
- readonly isBadOrigin: boolean;
- readonly isModule: boolean;
- readonly asModule: SpRuntimeModuleError;
- readonly isConsumerRemaining: boolean;
- readonly isNoProviders: boolean;
- readonly isTooManyConsumers: boolean;
- readonly isToken: boolean;
- readonly asToken: SpRuntimeTokenError;
- readonly isArithmetic: boolean;
- readonly asArithmetic: SpRuntimeArithmeticError;
- readonly isTransactional: boolean;
- readonly asTransactional: SpRuntimeTransactionalError;
- readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';
- }
-
- /** @name SpRuntimeModuleError (216) */
- export interface SpRuntimeModuleError extends Struct {
- readonly index: u8;
- readonly error: U8aFixed;
- }
-
- /** @name SpRuntimeTokenError (217) */
- export interface SpRuntimeTokenError extends Enum {
- readonly isNoFunds: boolean;
- readonly isWouldDie: boolean;
- readonly isBelowMinimum: boolean;
- readonly isCannotCreate: boolean;
- readonly isUnknownAsset: boolean;
- readonly isFrozen: boolean;
- readonly isUnsupported: boolean;
- readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';
- }
-
- /** @name SpRuntimeArithmeticError (218) */
- export interface SpRuntimeArithmeticError extends Enum {
- readonly isUnderflow: boolean;
- readonly isOverflow: boolean;
- readonly isDivisionByZero: boolean;
- readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
- }
-
- /** @name SpRuntimeTransactionalError (219) */
- export interface SpRuntimeTransactionalError extends Enum {
- readonly isLimitReached: boolean;
- readonly isNoLayer: boolean;
- readonly type: 'LimitReached' | 'NoLayer';
- }
-
- /** @name PalletSudoError (220) */
- export interface PalletSudoError extends Enum {
- readonly isRequireSudo: boolean;
- readonly type: 'RequireSudo';
- }
-
- /** @name FrameSystemAccountInfo (221) */
- export interface FrameSystemAccountInfo extends Struct {
- readonly nonce: u32;
- readonly consumers: u32;
- readonly providers: u32;
- readonly sufficients: u32;
- readonly data: PalletBalancesAccountData;
- }
-
- /** @name FrameSupportWeightsPerDispatchClassU64 (222) */
- export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {
- readonly normal: u64;
- readonly operational: u64;
- readonly mandatory: u64;
- }
-
- /** @name SpRuntimeDigest (223) */
- export interface SpRuntimeDigest extends Struct {
- readonly logs: Vec<SpRuntimeDigestDigestItem>;
- }
-
- /** @name SpRuntimeDigestDigestItem (225) */
- export interface SpRuntimeDigestDigestItem extends Enum {
- readonly isOther: boolean;
- readonly asOther: Bytes;
- readonly isConsensus: boolean;
- readonly asConsensus: ITuple<[U8aFixed, Bytes]>;
- readonly isSeal: boolean;
- readonly asSeal: ITuple<[U8aFixed, Bytes]>;
- readonly isPreRuntime: boolean;
- readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;
- readonly isRuntimeEnvironmentUpdated: boolean;
- readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';
- }
-
- /** @name FrameSystemEventRecord (227) */
- export interface FrameSystemEventRecord extends Struct {
- readonly phase: FrameSystemPhase;
- readonly event: Event;
- readonly topics: Vec<H256>;
- }
-
- /** @name FrameSystemEvent (229) */
- export interface FrameSystemEvent extends Enum {
- readonly isExtrinsicSuccess: boolean;
- readonly asExtrinsicSuccess: {
- readonly dispatchInfo: FrameSupportWeightsDispatchInfo;
- } & Struct;
- readonly isExtrinsicFailed: boolean;
- readonly asExtrinsicFailed: {
- readonly dispatchError: SpRuntimeDispatchError;
- readonly dispatchInfo: FrameSupportWeightsDispatchInfo;
- } & Struct;
- readonly isCodeUpdated: boolean;
- readonly isNewAccount: boolean;
- readonly asNewAccount: {
- readonly account: AccountId32;
- } & Struct;
- readonly isKilledAccount: boolean;
- readonly asKilledAccount: {
- readonly account: AccountId32;
- } & Struct;
- readonly isRemarked: boolean;
- readonly asRemarked: {
- readonly sender: AccountId32;
- readonly hash_: H256;
- } & Struct;
- readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';
- }
-
- /** @name FrameSupportWeightsDispatchInfo (230) */
- export interface FrameSupportWeightsDispatchInfo extends Struct {
- readonly weight: u64;
- readonly class: FrameSupportWeightsDispatchClass;
- readonly paysFee: FrameSupportWeightsPays;
- }
-
- /** @name FrameSupportWeightsDispatchClass (231) */
- export interface FrameSupportWeightsDispatchClass extends Enum {
- readonly isNormal: boolean;
- readonly isOperational: boolean;
- readonly isMandatory: boolean;
- readonly type: 'Normal' | 'Operational' | 'Mandatory';
- }
-
- /** @name FrameSupportWeightsPays (232) */
- export interface FrameSupportWeightsPays extends Enum {
- readonly isYes: boolean;
- readonly isNo: boolean;
- readonly type: 'Yes' | 'No';
- }
-
- /** @name OrmlVestingModuleEvent (233) */
- export interface OrmlVestingModuleEvent extends Enum {
- readonly isVestingScheduleAdded: boolean;
- readonly asVestingScheduleAdded: {
- readonly from: AccountId32;
- readonly to: AccountId32;
- readonly vestingSchedule: OrmlVestingVestingSchedule;
- } & Struct;
- readonly isClaimed: boolean;
- readonly asClaimed: {
- readonly who: AccountId32;
- readonly amount: u128;
- } & Struct;
- readonly isVestingSchedulesUpdated: boolean;
- readonly asVestingSchedulesUpdated: {
- readonly who: AccountId32;
- } & Struct;
- readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';
- }
-
- /** @name CumulusPalletXcmpQueueEvent (234) */
- export interface CumulusPalletXcmpQueueEvent extends Enum {
- readonly isSuccess: boolean;
- readonly asSuccess: Option<H256>;
- readonly isFail: boolean;
- readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;
- readonly isBadVersion: boolean;
- readonly asBadVersion: Option<H256>;
- readonly isBadFormat: boolean;
- readonly asBadFormat: Option<H256>;
- readonly isUpwardMessageSent: boolean;
- readonly asUpwardMessageSent: Option<H256>;
- readonly isXcmpMessageSent: boolean;
- readonly asXcmpMessageSent: Option<H256>;
- readonly isOverweightEnqueued: boolean;
- readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;
- readonly isOverweightServiced: boolean;
- readonly asOverweightServiced: ITuple<[u64, u64]>;
- readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';
- }
-
- /** @name PalletXcmEvent (235) */
- export interface PalletXcmEvent extends Enum {
- readonly isAttempted: boolean;
- readonly asAttempted: XcmV2TraitsOutcome;
- readonly isSent: boolean;
- readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;
- readonly isUnexpectedResponse: boolean;
- readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;
- readonly isResponseReady: boolean;
- readonly asResponseReady: ITuple<[u64, XcmV2Response]>;
- readonly isNotified: boolean;
- readonly asNotified: ITuple<[u64, u8, u8]>;
- readonly isNotifyOverweight: boolean;
- readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;
- readonly isNotifyDispatchError: boolean;
- readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;
- readonly isNotifyDecodeFailed: boolean;
- readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;
- readonly isInvalidResponder: boolean;
- readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;
- readonly isInvalidResponderVersion: boolean;
- readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;
- readonly isResponseTaken: boolean;
- readonly asResponseTaken: u64;
- readonly isAssetsTrapped: boolean;
- readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
- readonly isVersionChangeNotified: boolean;
- readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;
- readonly isSupportedVersionChanged: boolean;
- readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;
- readonly isNotifyTargetSendFail: boolean;
- readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;
- readonly isNotifyTargetMigrationFail: boolean;
- readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;
- readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
- }
-
- /** @name XcmV2TraitsOutcome (236) */
- export interface XcmV2TraitsOutcome extends Enum {
- readonly isComplete: boolean;
- readonly asComplete: u64;
- readonly isIncomplete: boolean;
- readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
- readonly isError: boolean;
- readonly asError: XcmV2TraitsError;
- readonly type: 'Complete' | 'Incomplete' | 'Error';
- }
-
- /** @name CumulusPalletXcmEvent (238) */
- export interface CumulusPalletXcmEvent extends Enum {
- readonly isInvalidFormat: boolean;
- readonly asInvalidFormat: U8aFixed;
- readonly isUnsupportedVersion: boolean;
- readonly asUnsupportedVersion: U8aFixed;
- readonly isExecutedDownward: boolean;
- readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;
- readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';
- }
-
- /** @name CumulusPalletDmpQueueEvent (239) */
- export interface CumulusPalletDmpQueueEvent extends Enum {
- readonly isInvalidFormat: boolean;
- readonly asInvalidFormat: U8aFixed;
- readonly isUnsupportedVersion: boolean;
- readonly asUnsupportedVersion: U8aFixed;
- readonly isExecutedDownward: boolean;
- readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;
- readonly isWeightExhausted: boolean;
- readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;
- readonly isOverweightEnqueued: boolean;
- readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;
- readonly isOverweightServiced: boolean;
- readonly asOverweightServiced: ITuple<[u64, u64]>;
- readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';
- }
-
- /** @name PalletUniqueRawEvent (240) */
- export interface PalletUniqueRawEvent extends Enum {
- readonly isCollectionSponsorRemoved: boolean;
- readonly asCollectionSponsorRemoved: u32;
- readonly isCollectionAdminAdded: boolean;
- readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
- readonly isCollectionOwnedChanged: boolean;
- readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;
- readonly isCollectionSponsorSet: boolean;
- readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;
- readonly isConstOnChainSchemaSet: boolean;
- readonly asConstOnChainSchemaSet: u32;
- readonly isSponsorshipConfirmed: boolean;
- readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;
- readonly isCollectionAdminRemoved: boolean;
- readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
- readonly isAllowListAddressRemoved: boolean;
- readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
- readonly isAllowListAddressAdded: boolean;
- readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
- readonly isCollectionLimitSet: boolean;
- readonly asCollectionLimitSet: u32;
- readonly isMintPermissionSet: boolean;
- readonly asMintPermissionSet: u32;
- readonly isOffchainSchemaSet: boolean;
- readonly asOffchainSchemaSet: u32;
- readonly isPublicAccessModeSet: boolean;
- readonly asPublicAccessModeSet: ITuple<[u32, UpDataStructsAccessMode]>;
- readonly isSchemaVersionSet: boolean;
- readonly asSchemaVersionSet: u32;
- readonly isVariableOnChainSchemaSet: boolean;
- readonly asVariableOnChainSchemaSet: u32;
- readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'ConstOnChainSchemaSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'MintPermissionSet' | 'OffchainSchemaSet' | 'PublicAccessModeSet' | 'SchemaVersionSet' | 'VariableOnChainSchemaSet';
- }
-
- /** @name PalletCommonEvent (241) */
- export interface PalletCommonEvent extends Enum {
- readonly isCollectionCreated: boolean;
- readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;
- readonly isCollectionDestroyed: boolean;
- readonly asCollectionDestroyed: u32;
- readonly isItemCreated: boolean;
- readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
- readonly isItemDestroyed: boolean;
- readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
- readonly isTransfer: boolean;
- readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
- readonly isApproved: boolean;
- readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
- readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved';
- }
-
- /** @name PalletEvmEvent (242) */
- export interface PalletEvmEvent extends Enum {
- readonly isLog: boolean;
- readonly asLog: EthereumLog;
- readonly isCreated: boolean;
- readonly asCreated: H160;
- readonly isCreatedFailed: boolean;
- readonly asCreatedFailed: H160;
- readonly isExecuted: boolean;
- readonly asExecuted: H160;
- readonly isExecutedFailed: boolean;
- readonly asExecutedFailed: H160;
- readonly isBalanceDeposit: boolean;
- readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;
- readonly isBalanceWithdraw: boolean;
- readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;
- readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';
- }
-
- /** @name EthereumLog (243) */
- export interface EthereumLog extends Struct {
- readonly address: H160;
- readonly topics: Vec<H256>;
- readonly data: Bytes;
- }
-
- /** @name PalletEthereumEvent (244) */
- export interface PalletEthereumEvent extends Enum {
- readonly isExecuted: boolean;
- readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;
- readonly type: 'Executed';
- }
-
- /** @name EvmCoreErrorExitReason (245) */
- export interface EvmCoreErrorExitReason extends Enum {
- readonly isSucceed: boolean;
- readonly asSucceed: EvmCoreErrorExitSucceed;
- readonly isError: boolean;
- readonly asError: EvmCoreErrorExitError;
- readonly isRevert: boolean;
- readonly asRevert: EvmCoreErrorExitRevert;
- readonly isFatal: boolean;
- readonly asFatal: EvmCoreErrorExitFatal;
- readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';
- }
-
- /** @name EvmCoreErrorExitSucceed (246) */
- export interface EvmCoreErrorExitSucceed extends Enum {
- readonly isStopped: boolean;
- readonly isReturned: boolean;
- readonly isSuicided: boolean;
- readonly type: 'Stopped' | 'Returned' | 'Suicided';
- }
-
- /** @name EvmCoreErrorExitError (247) */
- export interface EvmCoreErrorExitError extends Enum {
- readonly isStackUnderflow: boolean;
- readonly isStackOverflow: boolean;
- readonly isInvalidJump: boolean;
- readonly isInvalidRange: boolean;
- readonly isDesignatedInvalid: boolean;
- readonly isCallTooDeep: boolean;
- readonly isCreateCollision: boolean;
- readonly isCreateContractLimit: boolean;
- readonly isOutOfOffset: boolean;
- readonly isOutOfGas: boolean;
- readonly isOutOfFund: boolean;
- readonly isPcUnderflow: boolean;
- readonly isCreateEmpty: boolean;
- readonly isOther: boolean;
- readonly asOther: Text;
- readonly isInvalidCode: boolean;
- readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';
- }
-
- /** @name EvmCoreErrorExitRevert (250) */
- export interface EvmCoreErrorExitRevert extends Enum {
- readonly isReverted: boolean;
- readonly type: 'Reverted';
- }
-
- /** @name EvmCoreErrorExitFatal (251) */
- export interface EvmCoreErrorExitFatal extends Enum {
- readonly isNotSupported: boolean;
- readonly isUnhandledInterrupt: boolean;
- readonly isCallErrorAsFatal: boolean;
- readonly asCallErrorAsFatal: EvmCoreErrorExitError;
- readonly isOther: boolean;
- readonly asOther: Text;
- readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';
- }
-
- /** @name FrameSystemPhase (252) */
- export interface FrameSystemPhase extends Enum {
- readonly isApplyExtrinsic: boolean;
- readonly asApplyExtrinsic: u32;
- readonly isFinalization: boolean;
- readonly isInitialization: boolean;
- readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
- }
-
- /** @name FrameSystemLastRuntimeUpgradeInfo (254) */
- export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {
- readonly specVersion: Compact<u32>;
- readonly specName: Text;
- }
-
- /** @name FrameSystemLimitsBlockWeights (255) */
- export interface FrameSystemLimitsBlockWeights extends Struct {
- readonly baseBlock: u64;
- readonly maxBlock: u64;
- readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;
- }
-
- /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (256) */
- export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {
- readonly normal: FrameSystemLimitsWeightsPerClass;
- readonly operational: FrameSystemLimitsWeightsPerClass;
- readonly mandatory: FrameSystemLimitsWeightsPerClass;
- }
-
- /** @name FrameSystemLimitsWeightsPerClass (257) */
- export interface FrameSystemLimitsWeightsPerClass extends Struct {
- readonly baseExtrinsic: u64;
- readonly maxExtrinsic: Option<u64>;
- readonly maxTotal: Option<u64>;
- readonly reserved: Option<u64>;
- }
-
- /** @name FrameSystemLimitsBlockLength (259) */
- export interface FrameSystemLimitsBlockLength extends Struct {
- readonly max: FrameSupportWeightsPerDispatchClassU32;
- }
-
- /** @name FrameSupportWeightsPerDispatchClassU32 (260) */
- export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {
- readonly normal: u32;
- readonly operational: u32;
- readonly mandatory: u32;
- }
-
- /** @name FrameSupportWeightsRuntimeDbWeight (261) */
- export interface FrameSupportWeightsRuntimeDbWeight extends Struct {
- readonly read: u64;
- readonly write: u64;
- }
-
- /** @name SpVersionRuntimeVersion (262) */
- export interface SpVersionRuntimeVersion extends Struct {
- readonly specName: Text;
- readonly implName: Text;
- readonly authoringVersion: u32;
- readonly specVersion: u32;
- readonly implVersion: u32;
- readonly apis: Vec<ITuple<[U8aFixed, u32]>>;
- readonly transactionVersion: u32;
- readonly stateVersion: u8;
- }
-
- /** @name FrameSystemError (266) */
- export interface FrameSystemError extends Enum {
- readonly isInvalidSpecName: boolean;
- readonly isSpecVersionNeedsToIncrease: boolean;
- readonly isFailedToExtractRuntimeVersion: boolean;
- readonly isNonDefaultComposite: boolean;
- readonly isNonZeroRefCount: boolean;
- readonly isCallFiltered: boolean;
- readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
- }
-
- /** @name OrmlVestingModuleError (268) */
- export interface OrmlVestingModuleError extends Enum {
- readonly isZeroVestingPeriod: boolean;
- readonly isZeroVestingPeriodCount: boolean;
- readonly isInsufficientBalanceToLock: boolean;
- readonly isTooManyVestingSchedules: boolean;
- readonly isAmountLow: boolean;
- readonly isMaxVestingSchedulesExceeded: boolean;
- readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
- }
-
- /** @name CumulusPalletXcmpQueueInboundChannelDetails (270) */
- export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
- readonly sender: u32;
- readonly state: CumulusPalletXcmpQueueInboundState;
- readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
- }
-
- /** @name CumulusPalletXcmpQueueInboundState (271) */
- export interface CumulusPalletXcmpQueueInboundState extends Enum {
- readonly isOk: boolean;
- readonly isSuspended: boolean;
- readonly type: 'Ok' | 'Suspended';
- }
-
- /** @name PolkadotParachainPrimitivesXcmpMessageFormat (274) */
- export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
- readonly isConcatenatedVersionedXcm: boolean;
- readonly isConcatenatedEncodedBlob: boolean;
- readonly isSignals: boolean;
- readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
- }
-
- /** @name CumulusPalletXcmpQueueOutboundChannelDetails (277) */
- export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
- readonly recipient: u32;
- readonly state: CumulusPalletXcmpQueueOutboundState;
- readonly signalsExist: bool;
- readonly firstIndex: u16;
- readonly lastIndex: u16;
- }
-
- /** @name CumulusPalletXcmpQueueOutboundState (278) */
- export interface CumulusPalletXcmpQueueOutboundState extends Enum {
- readonly isOk: boolean;
- readonly isSuspended: boolean;
- readonly type: 'Ok' | 'Suspended';
- }
-
- /** @name CumulusPalletXcmpQueueQueueConfigData (280) */
- export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
- readonly suspendThreshold: u32;
- readonly dropThreshold: u32;
- readonly resumeThreshold: u32;
- readonly thresholdWeight: u64;
- readonly weightRestrictDecay: u64;
- readonly xcmpMaxIndividualWeight: u64;
- }
-
- /** @name CumulusPalletXcmpQueueError (282) */
- export interface CumulusPalletXcmpQueueError extends Enum {
- readonly isFailedToSend: boolean;
- readonly isBadXcmOrigin: boolean;
- readonly isBadXcm: boolean;
- readonly isBadOverweightIndex: boolean;
- readonly isWeightOverLimit: boolean;
- readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
- }
-
- /** @name PalletXcmError (283) */
- export interface PalletXcmError extends Enum {
- readonly isUnreachable: boolean;
- readonly isSendFailure: boolean;
- readonly isFiltered: boolean;
- readonly isUnweighableMessage: boolean;
- readonly isDestinationNotInvertible: boolean;
- readonly isEmpty: boolean;
- readonly isCannotReanchor: boolean;
- readonly isTooManyAssets: boolean;
- readonly isInvalidOrigin: boolean;
- readonly isBadVersion: boolean;
- readonly isBadLocation: boolean;
- readonly isNoSubscription: boolean;
- readonly isAlreadySubscribed: boolean;
- readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
- }
-
- /** @name CumulusPalletXcmError (284) */
- export type CumulusPalletXcmError = Null;
-
- /** @name CumulusPalletDmpQueueConfigData (285) */
- export interface CumulusPalletDmpQueueConfigData extends Struct {
- readonly maxIndividual: u64;
- }
-
- /** @name CumulusPalletDmpQueuePageIndexData (286) */
- export interface CumulusPalletDmpQueuePageIndexData extends Struct {
- readonly beginUsed: u32;
- readonly endUsed: u32;
- readonly overweightCount: u64;
- }
-
- /** @name CumulusPalletDmpQueueError (289) */
- export interface CumulusPalletDmpQueueError extends Enum {
- readonly isUnknown: boolean;
- readonly isOverLimit: boolean;
- readonly type: 'Unknown' | 'OverLimit';
- }
-
- /** @name PalletUniqueError (293) */
- export interface PalletUniqueError extends Enum {
- readonly isCollectionDecimalPointLimitExceeded: boolean;
- readonly isConfirmUnsetSponsorFail: boolean;
- readonly isEmptyArgument: boolean;
- readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';
- }
-
- /** @name UpDataStructsCollection (294) */
- export interface UpDataStructsCollection extends Struct {
- readonly owner: AccountId32;
- readonly mode: UpDataStructsCollectionMode;
- readonly access: UpDataStructsAccessMode;
- readonly name: Vec<u16>;
- readonly description: Vec<u16>;
- readonly tokenPrefix: Bytes;
- readonly mintMode: bool;
- readonly offchainSchema: Bytes;
- readonly schemaVersion: UpDataStructsSchemaVersion;
- readonly sponsorship: UpDataStructsSponsorshipState;
- readonly limits: UpDataStructsCollectionLimits;
- readonly variableOnChainSchema: Bytes;
- readonly constOnChainSchema: Bytes;
- readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;
- }
-
- /** @name UpDataStructsSponsorshipState (295) */
- export interface UpDataStructsSponsorshipState extends Enum {
- readonly isDisabled: boolean;
- readonly isUnconfirmed: boolean;
- readonly asUnconfirmed: AccountId32;
- readonly isConfirmed: boolean;
- readonly asConfirmed: AccountId32;
- readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
- }
-
- /** @name UpDataStructsCollectionStats (298) */
- export interface UpDataStructsCollectionStats extends Struct {
- readonly created: u32;
- readonly destroyed: u32;
- readonly alive: u32;
- }
-
- /** @name PalletCommonError (299) */
- export interface PalletCommonError extends Enum {
- readonly isCollectionNotFound: boolean;
- readonly isMustBeTokenOwner: boolean;
- readonly isNoPermission: boolean;
- readonly isPublicMintingNotAllowed: boolean;
- readonly isAddressNotInAllowlist: boolean;
- readonly isCollectionNameLimitExceeded: boolean;
- readonly isCollectionDescriptionLimitExceeded: boolean;
- readonly isCollectionTokenPrefixLimitExceeded: boolean;
- readonly isTotalCollectionsLimitExceeded: boolean;
- readonly isTokenVariableDataLimitExceeded: boolean;
- readonly isCollectionAdminCountExceeded: boolean;
- readonly isCollectionLimitBoundsExceeded: boolean;
- readonly isOwnerPermissionsCantBeReverted: boolean;
- readonly isTransferNotAllowed: boolean;
- readonly isAccountTokenLimitExceeded: boolean;
- readonly isCollectionTokenLimitExceeded: boolean;
- readonly isMetadataFlagFrozen: boolean;
- readonly isTokenNotFound: boolean;
- readonly isTokenValueTooLow: boolean;
- readonly isApprovedValueTooLow: boolean;
- readonly isCantApproveMoreThanOwned: boolean;
- readonly isAddressIsZero: boolean;
- readonly isUnsupportedOperation: boolean;
- readonly isNotSufficientFounds: boolean;
- readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds';
- }
-
- /** @name PalletFungibleError (301) */
- export interface PalletFungibleError extends Enum {
- readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
- readonly isFungibleItemsHaveNoId: boolean;
- readonly isFungibleItemsDontHaveData: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData';
- }
-
- /** @name PalletRefungibleItemData (302) */
- export interface PalletRefungibleItemData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- }
-
- /** @name PalletRefungibleError (306) */
- export interface PalletRefungibleError extends Enum {
- readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
- readonly isWrongRefungiblePieces: boolean;
- readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces';
- }
-
- /** @name PalletNonfungibleItemData (307) */
- export interface PalletNonfungibleItemData extends Struct {
- readonly constData: Bytes;
- readonly variableData: Bytes;
- readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
- }
-
- /** @name PalletNonfungibleError (308) */
- export interface PalletNonfungibleError extends Enum {
- readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
- readonly isNonfungibleItemsHaveNoAmount: boolean;
- readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount';
- }
-
- /** @name PalletEvmError (310) */
- export interface PalletEvmError extends Enum {
- readonly isBalanceLow: boolean;
- readonly isFeeOverflow: boolean;
- readonly isPaymentOverflow: boolean;
- readonly isWithdrawFailed: boolean;
- readonly isGasPriceTooLow: boolean;
- readonly isInvalidNonce: boolean;
- readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';
- }
-
- /** @name FpRpcTransactionStatus (313) */
- export interface FpRpcTransactionStatus extends Struct {
- readonly transactionHash: H256;
- readonly transactionIndex: u32;
- readonly from: H160;
- readonly to: Option<H160>;
- readonly contractAddress: Option<H160>;
- readonly logs: Vec<EthereumLog>;
- readonly logsBloom: EthbloomBloom;
- }
-
- /** @name EthbloomBloom (316) */
- export interface EthbloomBloom extends U8aFixed {}
-
- /** @name EthereumReceiptReceiptV3 (318) */
- export interface EthereumReceiptReceiptV3 extends Enum {
- readonly isLegacy: boolean;
- readonly asLegacy: EthereumReceiptEip658ReceiptData;
- readonly isEip2930: boolean;
- readonly asEip2930: EthereumReceiptEip658ReceiptData;
- readonly isEip1559: boolean;
- readonly asEip1559: EthereumReceiptEip658ReceiptData;
- readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
- }
-
- /** @name EthereumReceiptEip658ReceiptData (319) */
- export interface EthereumReceiptEip658ReceiptData extends Struct {
- readonly statusCode: u8;
- readonly usedGas: U256;
- readonly logsBloom: EthbloomBloom;
- readonly logs: Vec<EthereumLog>;
- }
-
- /** @name EthereumBlock (320) */
- export interface EthereumBlock extends Struct {
- readonly header: EthereumHeader;
- readonly transactions: Vec<EthereumTransactionTransactionV2>;
- readonly ommers: Vec<EthereumHeader>;
- }
-
- /** @name EthereumHeader (321) */
- export interface EthereumHeader extends Struct {
- readonly parentHash: H256;
- readonly ommersHash: H256;
- readonly beneficiary: H160;
- readonly stateRoot: H256;
- readonly transactionsRoot: H256;
- readonly receiptsRoot: H256;
- readonly logsBloom: EthbloomBloom;
- readonly difficulty: U256;
- readonly number: U256;
- readonly gasLimit: U256;
- readonly gasUsed: U256;
- readonly timestamp: u64;
- readonly extraData: Bytes;
- readonly mixHash: H256;
- readonly nonce: EthereumTypesHashH64;
- }
-
- /** @name EthereumTypesHashH64 (322) */
- export interface EthereumTypesHashH64 extends U8aFixed {}
-
- /** @name PalletEthereumError (327) */
- export interface PalletEthereumError extends Enum {
- readonly isInvalidSignature: boolean;
- readonly isPreLogExists: boolean;
- readonly type: 'InvalidSignature' | 'PreLogExists';
- }
-
- /** @name PalletEvmCoderSubstrateError (328) */
- export interface PalletEvmCoderSubstrateError extends Enum {
- readonly isOutOfGas: boolean;
- readonly isOutOfFund: boolean;
- readonly type: 'OutOfGas' | 'OutOfFund';
- }
-
- /** @name PalletEvmContractHelpersSponsoringModeT (329) */
- export interface PalletEvmContractHelpersSponsoringModeT extends Enum {
- readonly isDisabled: boolean;
- readonly isAllowlisted: boolean;
- readonly isGenerous: boolean;
- readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
- }
-
- /** @name PalletEvmContractHelpersError (331) */
- export interface PalletEvmContractHelpersError extends Enum {
- readonly isNoPermission: boolean;
- readonly type: 'NoPermission';
- }
-
- /** @name PalletEvmMigrationError (332) */
- export interface PalletEvmMigrationError extends Enum {
- readonly isAccountNotEmpty: boolean;
- readonly isAccountIsNotMigrating: boolean;
- readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';
- }
-
- /** @name SpRuntimeMultiSignature (334) */
- export interface SpRuntimeMultiSignature extends Enum {
- readonly isEd25519: boolean;
- readonly asEd25519: SpCoreEd25519Signature;
- readonly isSr25519: boolean;
- readonly asSr25519: SpCoreSr25519Signature;
- readonly isEcdsa: boolean;
- readonly asEcdsa: SpCoreEcdsaSignature;
- readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
- }
-
- /** @name SpCoreEd25519Signature (335) */
- export interface SpCoreEd25519Signature extends U8aFixed {}
-
- /** @name SpCoreSr25519Signature (337) */
- export interface SpCoreSr25519Signature extends U8aFixed {}
-
- /** @name SpCoreEcdsaSignature (338) */
- export interface SpCoreEcdsaSignature extends U8aFixed {}
-
- /** @name FrameSystemExtensionsCheckSpecVersion (341) */
- export type FrameSystemExtensionsCheckSpecVersion = Null;
-
- /** @name FrameSystemExtensionsCheckGenesis (342) */
- export type FrameSystemExtensionsCheckGenesis = Null;
-
- /** @name FrameSystemExtensionsCheckNonce (345) */
- export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
-
- /** @name FrameSystemExtensionsCheckWeight (346) */
- export type FrameSystemExtensionsCheckWeight = Null;
-
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (347) */
- export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
-
- /** @name OpalRuntimeRuntime (348) */
- export type OpalRuntimeRuntime = Null;
-
-} // declare module
tests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -49,6 +49,7 @@
balance: fun('Get amount of specific account token', [collectionParam, crossAccountParam(), tokenParam], 'u128'),
allowance: fun('Get allowed amount', [collectionParam, crossAccountParam('sender'), crossAccountParam('spender'), tokenParam], 'u128'),
tokenOwner: fun('Get token owner', [collectionParam, tokenParam], CROSS_ACCOUNT_ID_TYPE),
+ topmostTokenOwner: fun('Get token owner, in case of nested token - find parent recursive', [collectionParam, tokenParam], CROSS_ACCOUNT_ID_TYPE),
constMetadata: fun('Get token constant metadata', [collectionParam, tokenParam], 'Vec<u8>'),
variableMetadata: fun('Get token variable metadata', [collectionParam, tokenParam], 'Vec<u8>'),
tokenExists: fun('Check if token exists', [collectionParam, tokenParam], 'bool'),
tests/src/interfaces/unique/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/types.ts
+++ b/tests/src/interfaces/unique/types.ts
@@ -449,6 +449,9 @@
/** @name FrameSupportPalletId */
export interface FrameSupportPalletId extends U8aFixed {}
+/** @name FrameSupportStorageBoundedBTreeSet */
+export interface FrameSupportStorageBoundedBTreeSet extends Vec<u32> {}
+
/** @name FrameSupportTokensMiscBalanceStatus */
export interface FrameSupportTokensMiscBalanceStatus extends Enum {
readonly isFree: boolean;
@@ -890,7 +893,11 @@
readonly isAddressIsZero: boolean;
readonly isUnsupportedOperation: boolean;
readonly isNotSufficientFounds: boolean;
- readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds';
+ readonly isNestingIsDisabled: boolean;
+ readonly isOnlyOwnerAllowedToNest: boolean;
+ readonly isSourceCollectionIsNotAllowedToNest: boolean;
+ readonly isCollectionFieldSizeExceeded: boolean;
+ readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded';
}
/** @name PalletCommonEvent */
@@ -1069,7 +1076,8 @@
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
readonly isFungibleItemsDontHaveData: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData';
+ readonly isFungibleDisallowsNesting: boolean;
+ readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting';
}
/** @name PalletInflationCall */
@@ -1099,7 +1107,8 @@
export interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
- readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces';
+ readonly isRefungibleDisallowsNesting: boolean;
+ readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting';
}
/** @name PalletRefungibleItemData */
@@ -1108,6 +1117,24 @@
readonly variableData: Bytes;
}
+/** @name PalletStructureCall */
+export interface PalletStructureCall extends Null {}
+
+/** @name PalletStructureError */
+export interface PalletStructureError extends Enum {
+ readonly isOuroborosDetected: boolean;
+ readonly isDepthLimit: boolean;
+ readonly isTokenNotFound: boolean;
+ readonly type: 'OuroborosDetected' | 'DepthLimit' | 'TokenNotFound';
+}
+
+/** @name PalletStructureEvent */
+export interface PalletStructureEvent extends Enum {
+ readonly isExecuted: boolean;
+ readonly asExecuted: Result<Null, SpRuntimeDispatchError>;
+ readonly type: 'Executed';
+}
+
/** @name PalletSudoCall */
export interface PalletSudoCall extends Enum {
readonly isSudo: boolean;
@@ -1402,7 +1429,7 @@
readonly isSetCollectionLimits: boolean;
readonly asSetCollectionLimits: {
readonly collectionId: u32;
- readonly newLimit: UpDataStructsCollectionLimits;
+ readonly newLimit: UpDataStructsCollectionLimitsVersion2;
} & Struct;
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';
}
@@ -1567,6 +1594,9 @@
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
}
+/** @name PhantomTypeUpDataStructs */
+export interface PhantomTypeUpDataStructs extends Vec<Lookup309> {}
+
/** @name PolkadotCorePrimitivesInboundDownwardMessage */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
readonly sentAt: u32;
@@ -1745,26 +1775,16 @@
readonly type: 'Normal' | 'AllowList';
}
-/** @name UpDataStructsCollection */
-export interface UpDataStructsCollection extends Struct {
- readonly owner: AccountId32;
- readonly mode: UpDataStructsCollectionMode;
- readonly access: UpDataStructsAccessMode;
- readonly name: Vec<u16>;
- readonly description: Vec<u16>;
- readonly tokenPrefix: Bytes;
- readonly mintMode: bool;
- readonly offchainSchema: Bytes;
- readonly schemaVersion: UpDataStructsSchemaVersion;
- readonly sponsorship: UpDataStructsSponsorshipState;
- readonly limits: UpDataStructsCollectionLimits;
- readonly variableOnChainSchema: Bytes;
- readonly constOnChainSchema: Bytes;
- readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;
+/** @name UpDataStructsCollectionField */
+export interface UpDataStructsCollectionField extends Enum {
+ readonly isVariableOnChainSchema: boolean;
+ readonly isConstOnChainSchema: boolean;
+ readonly isOffchainSchema: boolean;
+ readonly type: 'VariableOnChainSchema' | 'ConstOnChainSchema' | 'OffchainSchema';
}
-/** @name UpDataStructsCollectionLimits */
-export interface UpDataStructsCollectionLimits extends Struct {
+/** @name UpDataStructsCollectionLimitsVersion2 */
+export interface UpDataStructsCollectionLimitsVersion2 extends Struct {
readonly accountTokenOwnershipLimit: Option<u32>;
readonly sponsoredDataSize: Option<u32>;
readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;
@@ -1774,6 +1794,7 @@
readonly ownerCanTransfer: Option<bool>;
readonly ownerCanDestroy: Option<bool>;
readonly transfersEnabled: Option<bool>;
+ readonly nestingRule: Option<UpDataStructsNestingRule>;
}
/** @name UpDataStructsCollectionMode */
@@ -1792,6 +1813,21 @@
readonly alive: u32;
}
+/** @name UpDataStructsCollectionVersion2 */
+export interface UpDataStructsCollectionVersion2 extends Struct {
+ readonly owner: AccountId32;
+ readonly mode: UpDataStructsCollectionMode;
+ readonly access: UpDataStructsAccessMode;
+ readonly name: Vec<u16>;
+ readonly description: Vec<u16>;
+ readonly tokenPrefix: Bytes;
+ readonly mintMode: bool;
+ readonly schemaVersion: UpDataStructsSchemaVersion;
+ readonly sponsorship: UpDataStructsSponsorshipState;
+ readonly limits: UpDataStructsCollectionLimitsVersion2;
+ readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;
+}
+
/** @name UpDataStructsCreateCollectionData */
export interface UpDataStructsCreateCollectionData extends Struct {
readonly mode: UpDataStructsCollectionMode;
@@ -1802,7 +1838,7 @@
readonly offchainSchema: Bytes;
readonly schemaVersion: Option<UpDataStructsSchemaVersion>;
readonly pendingSponsor: Option<AccountId32>;
- readonly limits: Option<UpDataStructsCollectionLimits>;
+ readonly limits: Option<UpDataStructsCollectionLimitsVersion2>;
readonly variableOnChainSchema: Bytes;
readonly constOnChainSchema: Bytes;
readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;
@@ -1872,6 +1908,33 @@
readonly type: 'ItemOwner' | 'Admin' | 'None';
}
+/** @name UpDataStructsNestingRule */
+export interface UpDataStructsNestingRule extends Enum {
+ readonly isDisabled: boolean;
+ readonly isOwner: boolean;
+ readonly isOwnerRestricted: boolean;
+ readonly asOwnerRestricted: FrameSupportStorageBoundedBTreeSet;
+ readonly type: 'Disabled' | 'Owner' | 'OwnerRestricted';
+}
+
+/** @name UpDataStructsRpcCollection */
+export interface UpDataStructsRpcCollection extends Struct {
+ readonly owner: AccountId32;
+ readonly mode: UpDataStructsCollectionMode;
+ readonly access: UpDataStructsAccessMode;
+ readonly name: Vec<u16>;
+ readonly description: Vec<u16>;
+ readonly tokenPrefix: Bytes;
+ readonly mintMode: bool;
+ readonly offchainSchema: Bytes;
+ readonly schemaVersion: UpDataStructsSchemaVersion;
+ readonly sponsorship: UpDataStructsSponsorshipState;
+ readonly limits: UpDataStructsCollectionLimitsVersion2;
+ readonly variableOnChainSchema: Bytes;
+ readonly constOnChainSchema: Bytes;
+ readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;
+}
+
/** @name UpDataStructsSchemaVersion */
export interface UpDataStructsSchemaVersion extends Enum {
readonly isImageURL: boolean;
tests/src/nesting/nest.test.tsdiffbeforeafterboth--- a/tests/src/nesting/nest.test.ts
+++ b/tests/src/nesting/nest.test.ts
@@ -2,9 +2,9 @@
import {tokenIdToAddress} from '../eth/util/helpers';
import privateKey from '../substrate/privateKey';
import usingApi from '../substrate/substrate-api';
-import {createCollectionExpectSuccess, createItemExpectSuccess, getTokenOwner, setCollectionLimitsExpectSuccess, transferExpectSuccess, transferFromExpectSuccess} from '../util/helpers';
+import {createCollectionExpectSuccess, createItemExpectSuccess, getTokenOwner, getTopmostTokenOwner, setCollectionLimitsExpectSuccess, transferExpectSuccess, transferFromExpectSuccess} from '../util/helpers';
-describe('nesting', () => {
+describe.only('nesting', () => {
it('allows to nest/unnest token', async () => {
await usingApi(async api => {
const alice = privateKey('//Alice');
@@ -18,9 +18,15 @@
// Nest
await transferExpectSuccess(collection, nestedToken, alice, {Ethereum: tokenIdToAddress(collection, targetToken)});
+
+ expect(await getTopmostTokenOwner(api, collection, nestedToken)).to.be.deep.equal({Substrate: alice.address});
+ expect(await getTokenOwner(api, collection, nestedToken)).to.be.deep.equal({Ethereum: tokenIdToAddress(collection, targetToken).toLowerCase()});
// Move bundle to different user
await transferExpectSuccess(collection, targetToken, alice, {Substrate: bob.address});
+
+ expect(await getTopmostTokenOwner(api, collection, nestedToken)).to.be.deep.equal({Substrate: bob.address});
+ expect(await getTokenOwner(api, collection, nestedToken)).to.be.deep.equal({Ethereum: tokenIdToAddress(collection, targetToken).toLowerCase()});
// Unnest
await transferFromExpectSuccess(collection, nestedToken, bob, {Ethereum: tokenIdToAddress(collection, targetToken)}, {Substrate: bob.address});
tests/src/util/helpers.tsdiffbeforeafterboth--- a/tests/src/util/helpers.ts
+++ b/tests/src/util/helpers.ts
@@ -27,7 +27,7 @@
import privateKey from '../substrate/privateKey';
import {default as usingApi, submitTransactionAsync, submitTransactionExpectFailAsync} from '../substrate/substrate-api';
import {hexToStr, strToUTF16, utf16ToStr} from './util';
-import {UpDataStructsCollection} from '@polkadot/types/lookup';
+import {UpDataStructsRpcCollection} from '@polkadot/types/lookup';
chai.use(chaiAsPromised);
const expect = chai.expect;
@@ -987,6 +987,13 @@
): Promise<CrossAccountId> {
return normalizeAccountId((await api.rpc.unique.tokenOwner(collectionId, token)).toJSON() as any);
}
+export async function getTopmostTokenOwner(
+ api: ApiPromise,
+ collectionId: number,
+ token: number,
+): Promise<CrossAccountId> {
+ return normalizeAccountId((await api.rpc.unique.topmostTokenOwner(collectionId, token)).toJSON() as any);
+}
export async function isTokenExists(
api: ApiPromise,
collectionId: number,
@@ -1256,7 +1263,7 @@
}
export const getDetailedCollectionInfo = async (api: ApiPromise, collectionId: number)
- : Promise<UpDataStructsCollection | null> => {
+ : Promise<UpDataStructsRpcCollection | null> => {
return (await api.rpc.unique.collectionById(collectionId)).unwrapOr(null);
};
@@ -1265,7 +1272,7 @@
return (await api.rpc.unique.collectionStats()).created.toNumber();
};
-export async function queryCollectionExpectSuccess(api: ApiPromise, collectionId: number): Promise<UpDataStructsCollection> {
+export async function queryCollectionExpectSuccess(api: ApiPromise, collectionId: number): Promise<UpDataStructsRpcCollection> {
return (await api.rpc.unique.collectionById(collectionId)).unwrap();
}