difftreelog
test(properties)
in: master
13 files changed
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -34,6 +34,7 @@
"testCollision": "mocha --timeout 9999999 -r ts-node/register ./src/collision-tests/*.test.ts",
"testEvent": "mocha --timeout 9999999 -r ts-node/register ./src/check-event/*.test.ts",
"testNesting": "mocha --timeout 9999999 -r ts-node/register ./**/nesting/**.test.ts",
+ "testProperties": "mocha --timeout 9999999 -r ts-node/register ./**/properties.test.ts",
"testMigrationStructure": "mocha --timeout 9999999 -r ts-node/register ./**/nesting/migration-check.test.ts",
"testAddCollectionAdmin": "mocha --timeout 9999999 -r ts-node/register ./**/addCollectionAdmin.test.ts",
"testSetSchemaVersion": "mocha --timeout 9999999 -r ts-node/register ./**/setSchemaVersion.test.ts",
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -271,9 +271,9 @@
**/
NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
/**
- * Item properties are not allowed
+ * Setting item properties is not allowed
**/
- PropertiesNotAllowed: AugmentedError<ApiType>;
+ SettingPropertiesNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -399,13 +399,13 @@
**/
NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
/**
- * Item properties are not allowed
+ * Refungible token can't nest other tokens
**/
- PropertiesNotAllowed: AugmentedError<ApiType>;
+ RefungibleDisallowsNesting: AugmentedError<ApiType>;
/**
- * Refungible token can't nest other tokens
+ * Setting item properties is not allowed
**/
- RefungibleDisallowsNesting: AugmentedError<ApiType>;
+ SettingPropertiesNotAllowed: AugmentedError<ApiType>;
/**
* Maximum refungibility exceeded
**/
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, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionField, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertyPermission } 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, PhantomTypeUpDataStructsRpcCollection, PhantomTypeUpDataStructsTokenData, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionField, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertyPermission } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' {
@@ -92,7 +92,7 @@
/**
* Not used by code, exists only to provide some types to metadata
**/
- dummyStorageValue: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[UpDataStructsCollectionStats, u32, u32, PhantomTypeUpDataStructs]>>>, []> & QueryableStorageEntry<ApiType, []>;
+ dummyStorageValue: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[UpDataStructsCollectionStats, u32, u32, PhantomTypeUpDataStructsTokenData, PhantomTypeUpDataStructsRpcCollection]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* List of collection admins
**/
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, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsRpcCollection } from './unique';
+import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenData } 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';
@@ -13,7 +13,6 @@
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
-import type { BlockStats } from '@polkadot/types/interfaces/dev';
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
@@ -23,7 +22,7 @@
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
-import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
+import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
@@ -156,12 +155,6 @@
* Upload new code without instantiating a contract from it
**/
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
- };
- dev: {
- /**
- * Reexecute the specified `block_hash` and gather statistics while doing so
- **/
- getBlockStats: AugmentedRpc<(at: Hash | string | Uint8Array) => Observable<Option<BlockStats>>>;
};
engine: {
/**
@@ -341,9 +334,9 @@
};
grandpa: {
/**
- * Prove finality for the given block number, returning the Justification for the last block in the set.
+ * Prove finality for the range (begin; end] hash.
**/
- proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
+ proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
/**
* Returns the state of the current best round state as well as the ongoing background rounds
**/
@@ -480,10 +473,6 @@
* Provides a way to trace the re-execution of a single block
**/
traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array, methods: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;
- /**
- * Check current migration state
- **/
- trieMigrationStatus: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MigrationStatusResult>>;
};
syncstate: {
/**
@@ -631,6 +620,14 @@
**/
nextSponsored: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
/**
+ * Get property permissions
+ **/
+ propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;
+ /**
+ * Get token data
+ **/
+ tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;
+ /**
* Check if token exists
**/
tokenExists: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;
@@ -639,6 +636,10 @@
**/
tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
+ * Get token properties
+ **/
+ tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
+ /**
* 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<Option<PalletEvmAccountBasicCrossAccountIdRepr>>>;
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -378,7 +378,7 @@
* - Weight of derivative `call` execution + 10,000.
* # </weight>
**/
- sudo: AugmentedSubmittable<(call: Call) => SubmittableExtrinsic<ApiType>, [Call]>;
+ sudo: AugmentedSubmittable<(call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
/**
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
* a given account.
@@ -392,7 +392,7 @@
* - Weight of derivative `call` execution + 10,000.
* # </weight>
**/
- sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
+ sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
/**
* Authenticates the sudo key and dispatches a function call with `Root` origin.
* This function does not check the weight of the call, and instead allows the
@@ -405,7 +405,7 @@
* - The weight of this call is defined by the caller.
* # </weight>
**/
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
/**
* Generic tx
**/
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, 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, UpDataStructsCollection, UpDataStructsCollectionField, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsNestingRule, UpDataStructsProperties, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, 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 { 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, PhantomTypeUpDataStructsRpcCollection, PhantomTypeUpDataStructsTokenData, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionField, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsNestingRule, UpDataStructsProperties, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRpcCollection, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './unique';
import type { Data, StorageKey } from '@polkadot/types';
import type { 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';
@@ -23,7 +23,6 @@
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
-import type { BlockStats } from '@polkadot/types/interfaces/dev';
import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
@@ -52,9 +51,9 @@
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
-import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
+import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
-import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
+import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
@@ -154,7 +153,6 @@
BlockNumber: BlockNumber;
BlockNumberFor: BlockNumberFor;
BlockNumberOf: BlockNumberOf;
- BlockStats: BlockStats;
BlockTrace: BlockTrace;
BlockTraceEvent: BlockTraceEvent;
BlockTraceEventData: BlockTraceEventData;
@@ -329,7 +327,6 @@
DispatchClass: DispatchClass;
DispatchError: DispatchError;
DispatchErrorModule: DispatchErrorModule;
- DispatchErrorModuleU8a: DispatchErrorModuleU8a;
DispatchErrorTo198: DispatchErrorTo198;
DispatchFeePayment: DispatchFeePayment;
DispatchInfo: DispatchInfo;
@@ -661,7 +658,6 @@
MetadataV13: MetadataV13;
MetadataV14: MetadataV14;
MetadataV9: MetadataV9;
- MigrationStatusResult: MigrationStatusResult;
MmrLeafProof: MmrLeafProof;
MmrRootHash: MmrRootHash;
ModuleConstantMetadataV10: ModuleConstantMetadataV10;
@@ -849,7 +845,8 @@
PerU16: PerU16;
Phantom: Phantom;
PhantomData: PhantomData;
- PhantomTypeUpDataStructs: PhantomTypeUpDataStructs;
+ PhantomTypeUpDataStructsRpcCollection: PhantomTypeUpDataStructsRpcCollection;
+ PhantomTypeUpDataStructsTokenData: PhantomTypeUpDataStructsTokenData;
Phase: Phase;
PhragmenScore: PhragmenScore;
Points: Points;
@@ -1189,6 +1186,7 @@
UpDataStructsSchemaVersion: UpDataStructsSchemaVersion;
UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;
UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;
+ UpDataStructsTokenData: UpDataStructsTokenData;
UpgradeGoAhead: UpgradeGoAhead;
UpgradeRestriction: UpgradeRestriction;
UpwardMessage: UpwardMessage;
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -23,7 +23,7 @@
* Lookup10: sp_trie::storage_proof::StorageProof
**/
SpTrieStorageProof: {
- trieNodes: 'BTreeSet<Bytes>'
+ trieNodes: 'Vec<Bytes>'
},
/**
* Lookup13: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
@@ -1469,7 +1469,7 @@
/**
* Lookup171: frame_support::storage::bounded_btree_set::BoundedBTreeSet<up_data_structs::CollectionId, S>
**/
- FrameSupportStorageBoundedBTreeSet: 'BTreeSet<u32>',
+ FrameSupportStorageBoundedBTreeSet: 'Vec<u32>',
/**
* Lookup177: up_data_structs::MetaUpdatePermission
**/
@@ -1487,7 +1487,9 @@
* Lookup181: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
- _enum: ['None', 'AdminConst', 'Admin', 'ItemOwnerConst', 'ItemOwner', 'ItemOwnerOrAdmin']
+ mutable: 'bool',
+ collectionAdmin: 'bool',
+ tokenOwner: 'bool'
},
/**
* Lookup184: up_data_structs::Property
@@ -1520,7 +1522,8 @@
**/
UpDataStructsCreateNftData: {
constData: 'Bytes',
- variableData: 'Bytes'
+ variableData: 'Bytes',
+ properties: 'Vec<UpDataStructsProperty>'
},
/**
* Lookup191: up_data_structs::CreateFungibleData
@@ -1553,6 +1556,7 @@
UpDataStructsCreateNftExData: {
constData: 'Bytes',
variableData: 'Bytes',
+ properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
@@ -2324,12 +2328,24 @@
alive: 'u32'
},
/**
- * Lookup325: PhantomType::up_data_structs<up_data_structs::RpcCollection<sp_core::crypto::AccountId32>>
+ * Lookup325: PhantomType::up_data_structs<up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>>
**/
- PhantomTypeUpDataStructs: '[Lookup326;0]',
+ PhantomTypeUpDataStructsTokenData: '[Lookup326;0]',
/**
- * Lookup326: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ * Lookup326: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
+ UpDataStructsTokenData: {
+ constData: 'Bytes',
+ properties: 'Vec<UpDataStructsProperty>',
+ owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>'
+ },
+ /**
+ * Lookup329: PhantomType::up_data_structs<up_data_structs::RpcCollection<sp_core::crypto::AccountId32>>
+ **/
+ PhantomTypeUpDataStructsRpcCollection: '[Lookup330;0]',
+ /**
+ * Lookup330: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ **/
UpDataStructsRpcCollection: {
owner: 'AccountId32',
mode: 'UpDataStructsCollectionMode',
@@ -2347,32 +2363,32 @@
metaUpdatePermission: 'UpDataStructsMetaUpdatePermission'
},
/**
- * Lookup328: pallet_common::pallet::Error<T>
+ * Lookup332: 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', 'NestingIsDisabled', 'OnlyOwnerAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached']
},
/**
- * Lookup330: pallet_fungible::pallet::Error<T>
+ * Lookup334: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
- _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'PropertiesNotAllowed']
+ _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup331: pallet_refungible::ItemData
+ * Lookup335: pallet_refungible::ItemData
**/
PalletRefungibleItemData: {
constData: 'Bytes',
variableData: 'Bytes'
},
/**
- * Lookup335: pallet_refungible::pallet::Error<T>
+ * Lookup339: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
- _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RefungibleDisallowsNesting', 'PropertiesNotAllowed']
+ _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup336: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup340: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
constData: 'Bytes',
@@ -2380,25 +2396,25 @@
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup337: pallet_nonfungible::pallet::Error<T>
+ * Lookup341: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount']
},
/**
- * Lookup338: pallet_structure::pallet::Error<T>
+ * Lookup342: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
_enum: ['OuroborosDetected', 'DepthLimit', 'TokenNotFound']
},
/**
- * Lookup340: pallet_evm::pallet::Error<T>
+ * Lookup344: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
},
/**
- * Lookup343: fp_rpc::TransactionStatus
+ * Lookup347: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -2410,11 +2426,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup346: ethbloom::Bloom
+ * Lookup350: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup348: ethereum::receipt::ReceiptV3
+ * Lookup352: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -2424,7 +2440,7 @@
}
},
/**
- * Lookup349: ethereum::receipt::EIP658ReceiptData
+ * Lookup353: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -2433,7 +2449,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup350: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup354: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -2441,7 +2457,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup351: ethereum::header::Header
+ * Lookup355: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -2461,41 +2477,41 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup352: ethereum_types::hash::H64
+ * Lookup356: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup357: pallet_ethereum::pallet::Error<T>
+ * Lookup361: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup358: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup362: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup359: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup363: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup361: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup365: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission']
},
/**
- * Lookup362: pallet_evm_migration::pallet::Error<T>
+ * Lookup366: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
},
/**
- * Lookup364: sp_runtime::MultiSignature
+ * Lookup368: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -2505,39 +2521,39 @@
}
},
/**
- * Lookup365: sp_core::ed25519::Signature
+ * Lookup369: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup367: sp_core::sr25519::Signature
+ * Lookup371: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup368: sp_core::ecdsa::Signature
+ * Lookup372: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup371: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup375: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup372: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup376: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup375: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup379: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup376: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup380: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup377: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup381: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup378: opal_runtime::Runtime
+ * Lookup382: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null'
};
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34declare module '@polkadot/types/lookup' {5 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';6 import type { ITuple } from '@polkadot/types-codec/types';7 import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';8 import type { Event } from '@polkadot/types/interfaces/system';910 /** @name PolkadotPrimitivesV1PersistedValidationData (2) */11 export interface PolkadotPrimitivesV1PersistedValidationData extends Struct {12 readonly parentHead: Bytes;13 readonly relayParentNumber: u32;14 readonly relayParentStorageRoot: H256;15 readonly maxPovSize: u32;16 }1718 /** @name PolkadotPrimitivesV1UpgradeRestriction (9) */19 export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {20 readonly isPresent: boolean;21 readonly type: 'Present';22 }2324 /** @name SpTrieStorageProof (10) */25 export interface SpTrieStorageProof extends Struct {26 readonly trieNodes: BTreeSet<Bytes>;27 }2829 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (13) */30 export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {31 readonly dmqMqcHead: H256;32 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;33 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;34 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;35 }3637 /** @name PolkadotPrimitivesV1AbridgedHrmpChannel (18) */38 export interface PolkadotPrimitivesV1AbridgedHrmpChannel extends Struct {39 readonly maxCapacity: u32;40 readonly maxTotalSize: u32;41 readonly maxMessageSize: u32;42 readonly msgCount: u32;43 readonly totalSize: u32;44 readonly mqcHead: Option<H256>;45 }4647 /** @name PolkadotPrimitivesV1AbridgedHostConfiguration (20) */48 export interface PolkadotPrimitivesV1AbridgedHostConfiguration extends Struct {49 readonly maxCodeSize: u32;50 readonly maxHeadDataSize: u32;51 readonly maxUpwardQueueCount: u32;52 readonly maxUpwardQueueSize: u32;53 readonly maxUpwardMessageSize: u32;54 readonly maxUpwardMessageNumPerCandidate: u32;55 readonly hrmpMaxMessageNumPerCandidate: u32;56 readonly validationUpgradeCooldown: u32;57 readonly validationUpgradeDelay: u32;58 }5960 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (26) */61 export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {62 readonly recipient: u32;63 readonly data: Bytes;64 }6566 /** @name CumulusPalletParachainSystemCall (28) */67 export interface CumulusPalletParachainSystemCall extends Enum {68 readonly isSetValidationData: boolean;69 readonly asSetValidationData: {70 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;71 } & Struct;72 readonly isSudoSendUpwardMessage: boolean;73 readonly asSudoSendUpwardMessage: {74 readonly message: Bytes;75 } & Struct;76 readonly isAuthorizeUpgrade: boolean;77 readonly asAuthorizeUpgrade: {78 readonly codeHash: H256;79 } & Struct;80 readonly isEnactAuthorizedUpgrade: boolean;81 readonly asEnactAuthorizedUpgrade: {82 readonly code: Bytes;83 } & Struct;84 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';85 }8687 /** @name CumulusPrimitivesParachainInherentParachainInherentData (29) */88 export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {89 readonly validationData: PolkadotPrimitivesV1PersistedValidationData;90 readonly relayChainState: SpTrieStorageProof;91 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;92 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;93 }9495 /** @name PolkadotCorePrimitivesInboundDownwardMessage (31) */96 export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {97 readonly sentAt: u32;98 readonly msg: Bytes;99 }100101 /** @name PolkadotCorePrimitivesInboundHrmpMessage (34) */102 export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {103 readonly sentAt: u32;104 readonly data: Bytes;105 }106107 /** @name CumulusPalletParachainSystemEvent (37) */108 export interface CumulusPalletParachainSystemEvent extends Enum {109 readonly isValidationFunctionStored: boolean;110 readonly isValidationFunctionApplied: boolean;111 readonly asValidationFunctionApplied: u32;112 readonly isValidationFunctionDiscarded: boolean;113 readonly isUpgradeAuthorized: boolean;114 readonly asUpgradeAuthorized: H256;115 readonly isDownwardMessagesReceived: boolean;116 readonly asDownwardMessagesReceived: u32;117 readonly isDownwardMessagesProcessed: boolean;118 readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;119 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';120 }121122 /** @name CumulusPalletParachainSystemError (38) */123 export interface CumulusPalletParachainSystemError extends Enum {124 readonly isOverlappingUpgrades: boolean;125 readonly isProhibitedByPolkadot: boolean;126 readonly isTooBig: boolean;127 readonly isValidationDataNotAvailable: boolean;128 readonly isHostConfigurationNotAvailable: boolean;129 readonly isNotScheduled: boolean;130 readonly isNothingAuthorized: boolean;131 readonly isUnauthorized: boolean;132 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';133 }134135 /** @name PalletBalancesAccountData (41) */136 export interface PalletBalancesAccountData extends Struct {137 readonly free: u128;138 readonly reserved: u128;139 readonly miscFrozen: u128;140 readonly feeFrozen: u128;141 }142143 /** @name PalletBalancesBalanceLock (43) */144 export interface PalletBalancesBalanceLock extends Struct {145 readonly id: U8aFixed;146 readonly amount: u128;147 readonly reasons: PalletBalancesReasons;148 }149150 /** @name PalletBalancesReasons (45) */151 export interface PalletBalancesReasons extends Enum {152 readonly isFee: boolean;153 readonly isMisc: boolean;154 readonly isAll: boolean;155 readonly type: 'Fee' | 'Misc' | 'All';156 }157158 /** @name PalletBalancesReserveData (48) */159 export interface PalletBalancesReserveData extends Struct {160 readonly id: U8aFixed;161 readonly amount: u128;162 }163164 /** @name PalletBalancesReleases (50) */165 export interface PalletBalancesReleases extends Enum {166 readonly isV100: boolean;167 readonly isV200: boolean;168 readonly type: 'V100' | 'V200';169 }170171 /** @name PalletBalancesCall (51) */172 export interface PalletBalancesCall extends Enum {173 readonly isTransfer: boolean;174 readonly asTransfer: {175 readonly dest: MultiAddress;176 readonly value: Compact<u128>;177 } & Struct;178 readonly isSetBalance: boolean;179 readonly asSetBalance: {180 readonly who: MultiAddress;181 readonly newFree: Compact<u128>;182 readonly newReserved: Compact<u128>;183 } & Struct;184 readonly isForceTransfer: boolean;185 readonly asForceTransfer: {186 readonly source: MultiAddress;187 readonly dest: MultiAddress;188 readonly value: Compact<u128>;189 } & Struct;190 readonly isTransferKeepAlive: boolean;191 readonly asTransferKeepAlive: {192 readonly dest: MultiAddress;193 readonly value: Compact<u128>;194 } & Struct;195 readonly isTransferAll: boolean;196 readonly asTransferAll: {197 readonly dest: MultiAddress;198 readonly keepAlive: bool;199 } & Struct;200 readonly isForceUnreserve: boolean;201 readonly asForceUnreserve: {202 readonly who: MultiAddress;203 readonly amount: u128;204 } & Struct;205 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';206 }207208 /** @name PalletBalancesEvent (57) */209 export interface PalletBalancesEvent extends Enum {210 readonly isEndowed: boolean;211 readonly asEndowed: {212 readonly account: AccountId32;213 readonly freeBalance: u128;214 } & Struct;215 readonly isDustLost: boolean;216 readonly asDustLost: {217 readonly account: AccountId32;218 readonly amount: u128;219 } & Struct;220 readonly isTransfer: boolean;221 readonly asTransfer: {222 readonly from: AccountId32;223 readonly to: AccountId32;224 readonly amount: u128;225 } & Struct;226 readonly isBalanceSet: boolean;227 readonly asBalanceSet: {228 readonly who: AccountId32;229 readonly free: u128;230 readonly reserved: u128;231 } & Struct;232 readonly isReserved: boolean;233 readonly asReserved: {234 readonly who: AccountId32;235 readonly amount: u128;236 } & Struct;237 readonly isUnreserved: boolean;238 readonly asUnreserved: {239 readonly who: AccountId32;240 readonly amount: u128;241 } & Struct;242 readonly isReserveRepatriated: boolean;243 readonly asReserveRepatriated: {244 readonly from: AccountId32;245 readonly to: AccountId32;246 readonly amount: u128;247 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;248 } & Struct;249 readonly isDeposit: boolean;250 readonly asDeposit: {251 readonly who: AccountId32;252 readonly amount: u128;253 } & Struct;254 readonly isWithdraw: boolean;255 readonly asWithdraw: {256 readonly who: AccountId32;257 readonly amount: u128;258 } & Struct;259 readonly isSlashed: boolean;260 readonly asSlashed: {261 readonly who: AccountId32;262 readonly amount: u128;263 } & Struct;264 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';265 }266267 /** @name FrameSupportTokensMiscBalanceStatus (58) */268 export interface FrameSupportTokensMiscBalanceStatus extends Enum {269 readonly isFree: boolean;270 readonly isReserved: boolean;271 readonly type: 'Free' | 'Reserved';272 }273274 /** @name PalletBalancesError (59) */275 export interface PalletBalancesError extends Enum {276 readonly isVestingBalance: boolean;277 readonly isLiquidityRestrictions: boolean;278 readonly isInsufficientBalance: boolean;279 readonly isExistentialDeposit: boolean;280 readonly isKeepAlive: boolean;281 readonly isExistingVestingSchedule: boolean;282 readonly isDeadAccount: boolean;283 readonly isTooManyReserves: boolean;284 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';285 }286287 /** @name PalletTimestampCall (62) */288 export interface PalletTimestampCall extends Enum {289 readonly isSet: boolean;290 readonly asSet: {291 readonly now: Compact<u64>;292 } & Struct;293 readonly type: 'Set';294 }295296 /** @name PalletTransactionPaymentReleases (65) */297 export interface PalletTransactionPaymentReleases extends Enum {298 readonly isV1Ancient: boolean;299 readonly isV2: boolean;300 readonly type: 'V1Ancient' | 'V2';301 }302303 /** @name FrameSupportWeightsWeightToFeeCoefficient (67) */304 export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {305 readonly coeffInteger: u128;306 readonly coeffFrac: Perbill;307 readonly negative: bool;308 readonly degree: u8;309 }310311 /** @name PalletTreasuryProposal (69) */312 export interface PalletTreasuryProposal extends Struct {313 readonly proposer: AccountId32;314 readonly value: u128;315 readonly beneficiary: AccountId32;316 readonly bond: u128;317 }318319 /** @name PalletTreasuryCall (72) */320 export interface PalletTreasuryCall extends Enum {321 readonly isProposeSpend: boolean;322 readonly asProposeSpend: {323 readonly value: Compact<u128>;324 readonly beneficiary: MultiAddress;325 } & Struct;326 readonly isRejectProposal: boolean;327 readonly asRejectProposal: {328 readonly proposalId: Compact<u32>;329 } & Struct;330 readonly isApproveProposal: boolean;331 readonly asApproveProposal: {332 readonly proposalId: Compact<u32>;333 } & Struct;334 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';335 }336337 /** @name PalletTreasuryEvent (74) */338 export interface PalletTreasuryEvent extends Enum {339 readonly isProposed: boolean;340 readonly asProposed: {341 readonly proposalIndex: u32;342 } & Struct;343 readonly isSpending: boolean;344 readonly asSpending: {345 readonly budgetRemaining: u128;346 } & Struct;347 readonly isAwarded: boolean;348 readonly asAwarded: {349 readonly proposalIndex: u32;350 readonly award: u128;351 readonly account: AccountId32;352 } & Struct;353 readonly isRejected: boolean;354 readonly asRejected: {355 readonly proposalIndex: u32;356 readonly slashed: u128;357 } & Struct;358 readonly isBurnt: boolean;359 readonly asBurnt: {360 readonly burntFunds: u128;361 } & Struct;362 readonly isRollover: boolean;363 readonly asRollover: {364 readonly rolloverBalance: u128;365 } & Struct;366 readonly isDeposit: boolean;367 readonly asDeposit: {368 readonly value: u128;369 } & Struct;370 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';371 }372373 /** @name FrameSupportPalletId (77) */374 export interface FrameSupportPalletId extends U8aFixed {}375376 /** @name PalletTreasuryError (78) */377 export interface PalletTreasuryError extends Enum {378 readonly isInsufficientProposersBalance: boolean;379 readonly isInvalidIndex: boolean;380 readonly isTooManyApprovals: boolean;381 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';382 }383384 /** @name PalletSudoCall (79) */385 export interface PalletSudoCall extends Enum {386 readonly isSudo: boolean;387 readonly asSudo: {388 readonly call: Call;389 } & Struct;390 readonly isSudoUncheckedWeight: boolean;391 readonly asSudoUncheckedWeight: {392 readonly call: Call;393 readonly weight: u64;394 } & Struct;395 readonly isSetKey: boolean;396 readonly asSetKey: {397 readonly new_: MultiAddress;398 } & Struct;399 readonly isSudoAs: boolean;400 readonly asSudoAs: {401 readonly who: MultiAddress;402 readonly call: Call;403 } & Struct;404 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';405 }406407 /** @name FrameSystemCall (81) */408 export interface FrameSystemCall extends Enum {409 readonly isFillBlock: boolean;410 readonly asFillBlock: {411 readonly ratio: Perbill;412 } & Struct;413 readonly isRemark: boolean;414 readonly asRemark: {415 readonly remark: Bytes;416 } & Struct;417 readonly isSetHeapPages: boolean;418 readonly asSetHeapPages: {419 readonly pages: u64;420 } & Struct;421 readonly isSetCode: boolean;422 readonly asSetCode: {423 readonly code: Bytes;424 } & Struct;425 readonly isSetCodeWithoutChecks: boolean;426 readonly asSetCodeWithoutChecks: {427 readonly code: Bytes;428 } & Struct;429 readonly isSetStorage: boolean;430 readonly asSetStorage: {431 readonly items: Vec<ITuple<[Bytes, Bytes]>>;432 } & Struct;433 readonly isKillStorage: boolean;434 readonly asKillStorage: {435 readonly keys_: Vec<Bytes>;436 } & Struct;437 readonly isKillPrefix: boolean;438 readonly asKillPrefix: {439 readonly prefix: Bytes;440 readonly subkeys: u32;441 } & Struct;442 readonly isRemarkWithEvent: boolean;443 readonly asRemarkWithEvent: {444 readonly remark: Bytes;445 } & Struct;446 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';447 }448449 /** @name OrmlVestingModuleCall (84) */450 export interface OrmlVestingModuleCall extends Enum {451 readonly isClaim: boolean;452 readonly isVestedTransfer: boolean;453 readonly asVestedTransfer: {454 readonly dest: MultiAddress;455 readonly schedule: OrmlVestingVestingSchedule;456 } & Struct;457 readonly isUpdateVestingSchedules: boolean;458 readonly asUpdateVestingSchedules: {459 readonly who: MultiAddress;460 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;461 } & Struct;462 readonly isClaimFor: boolean;463 readonly asClaimFor: {464 readonly dest: MultiAddress;465 } & Struct;466 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';467 }468469 /** @name OrmlVestingVestingSchedule (85) */470 export interface OrmlVestingVestingSchedule extends Struct {471 readonly start: u32;472 readonly period: u32;473 readonly periodCount: u32;474 readonly perPeriod: Compact<u128>;475 }476477 /** @name CumulusPalletXcmpQueueCall (87) */478 export interface CumulusPalletXcmpQueueCall extends Enum {479 readonly isServiceOverweight: boolean;480 readonly asServiceOverweight: {481 readonly index: u64;482 readonly weightLimit: u64;483 } & Struct;484 readonly isSuspendXcmExecution: boolean;485 readonly isResumeXcmExecution: boolean;486 readonly isUpdateSuspendThreshold: boolean;487 readonly asUpdateSuspendThreshold: {488 readonly new_: u32;489 } & Struct;490 readonly isUpdateDropThreshold: boolean;491 readonly asUpdateDropThreshold: {492 readonly new_: u32;493 } & Struct;494 readonly isUpdateResumeThreshold: boolean;495 readonly asUpdateResumeThreshold: {496 readonly new_: u32;497 } & Struct;498 readonly isUpdateThresholdWeight: boolean;499 readonly asUpdateThresholdWeight: {500 readonly new_: u64;501 } & Struct;502 readonly isUpdateWeightRestrictDecay: boolean;503 readonly asUpdateWeightRestrictDecay: {504 readonly new_: u64;505 } & Struct;506 readonly isUpdateXcmpMaxIndividualWeight: boolean;507 readonly asUpdateXcmpMaxIndividualWeight: {508 readonly new_: u64;509 } & Struct;510 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';511 }512513 /** @name PalletXcmCall (88) */514 export interface PalletXcmCall extends Enum {515 readonly isSend: boolean;516 readonly asSend: {517 readonly dest: XcmVersionedMultiLocation;518 readonly message: XcmVersionedXcm;519 } & Struct;520 readonly isTeleportAssets: boolean;521 readonly asTeleportAssets: {522 readonly dest: XcmVersionedMultiLocation;523 readonly beneficiary: XcmVersionedMultiLocation;524 readonly assets: XcmVersionedMultiAssets;525 readonly feeAssetItem: u32;526 } & Struct;527 readonly isReserveTransferAssets: boolean;528 readonly asReserveTransferAssets: {529 readonly dest: XcmVersionedMultiLocation;530 readonly beneficiary: XcmVersionedMultiLocation;531 readonly assets: XcmVersionedMultiAssets;532 readonly feeAssetItem: u32;533 } & Struct;534 readonly isExecute: boolean;535 readonly asExecute: {536 readonly message: XcmVersionedXcm;537 readonly maxWeight: u64;538 } & Struct;539 readonly isForceXcmVersion: boolean;540 readonly asForceXcmVersion: {541 readonly location: XcmV1MultiLocation;542 readonly xcmVersion: u32;543 } & Struct;544 readonly isForceDefaultXcmVersion: boolean;545 readonly asForceDefaultXcmVersion: {546 readonly maybeXcmVersion: Option<u32>;547 } & Struct;548 readonly isForceSubscribeVersionNotify: boolean;549 readonly asForceSubscribeVersionNotify: {550 readonly location: XcmVersionedMultiLocation;551 } & Struct;552 readonly isForceUnsubscribeVersionNotify: boolean;553 readonly asForceUnsubscribeVersionNotify: {554 readonly location: XcmVersionedMultiLocation;555 } & Struct;556 readonly isLimitedReserveTransferAssets: boolean;557 readonly asLimitedReserveTransferAssets: {558 readonly dest: XcmVersionedMultiLocation;559 readonly beneficiary: XcmVersionedMultiLocation;560 readonly assets: XcmVersionedMultiAssets;561 readonly feeAssetItem: u32;562 readonly weightLimit: XcmV2WeightLimit;563 } & Struct;564 readonly isLimitedTeleportAssets: boolean;565 readonly asLimitedTeleportAssets: {566 readonly dest: XcmVersionedMultiLocation;567 readonly beneficiary: XcmVersionedMultiLocation;568 readonly assets: XcmVersionedMultiAssets;569 readonly feeAssetItem: u32;570 readonly weightLimit: XcmV2WeightLimit;571 } & Struct;572 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';573 }574575 /** @name XcmVersionedMultiLocation (89) */576 export interface XcmVersionedMultiLocation extends Enum {577 readonly isV0: boolean;578 readonly asV0: XcmV0MultiLocation;579 readonly isV1: boolean;580 readonly asV1: XcmV1MultiLocation;581 readonly type: 'V0' | 'V1';582 }583584 /** @name XcmV0MultiLocation (90) */585 export interface XcmV0MultiLocation extends Enum {586 readonly isNull: boolean;587 readonly isX1: boolean;588 readonly asX1: XcmV0Junction;589 readonly isX2: boolean;590 readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;591 readonly isX3: boolean;592 readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;593 readonly isX4: boolean;594 readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;595 readonly isX5: boolean;596 readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;597 readonly isX6: boolean;598 readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;599 readonly isX7: boolean;600 readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;601 readonly isX8: boolean;602 readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;603 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';604 }605606 /** @name XcmV0Junction (91) */607 export interface XcmV0Junction extends Enum {608 readonly isParent: boolean;609 readonly isParachain: boolean;610 readonly asParachain: Compact<u32>;611 readonly isAccountId32: boolean;612 readonly asAccountId32: {613 readonly network: XcmV0JunctionNetworkId;614 readonly id: U8aFixed;615 } & Struct;616 readonly isAccountIndex64: boolean;617 readonly asAccountIndex64: {618 readonly network: XcmV0JunctionNetworkId;619 readonly index: Compact<u64>;620 } & Struct;621 readonly isAccountKey20: boolean;622 readonly asAccountKey20: {623 readonly network: XcmV0JunctionNetworkId;624 readonly key: U8aFixed;625 } & Struct;626 readonly isPalletInstance: boolean;627 readonly asPalletInstance: u8;628 readonly isGeneralIndex: boolean;629 readonly asGeneralIndex: Compact<u128>;630 readonly isGeneralKey: boolean;631 readonly asGeneralKey: Bytes;632 readonly isOnlyChild: boolean;633 readonly isPlurality: boolean;634 readonly asPlurality: {635 readonly id: XcmV0JunctionBodyId;636 readonly part: XcmV0JunctionBodyPart;637 } & Struct;638 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';639 }640641 /** @name XcmV0JunctionNetworkId (92) */642 export interface XcmV0JunctionNetworkId extends Enum {643 readonly isAny: boolean;644 readonly isNamed: boolean;645 readonly asNamed: Bytes;646 readonly isPolkadot: boolean;647 readonly isKusama: boolean;648 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';649 }650651 /** @name XcmV0JunctionBodyId (93) */652 export interface XcmV0JunctionBodyId extends Enum {653 readonly isUnit: boolean;654 readonly isNamed: boolean;655 readonly asNamed: Bytes;656 readonly isIndex: boolean;657 readonly asIndex: Compact<u32>;658 readonly isExecutive: boolean;659 readonly isTechnical: boolean;660 readonly isLegislative: boolean;661 readonly isJudicial: boolean;662 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';663 }664665 /** @name XcmV0JunctionBodyPart (94) */666 export interface XcmV0JunctionBodyPart extends Enum {667 readonly isVoice: boolean;668 readonly isMembers: boolean;669 readonly asMembers: {670 readonly count: Compact<u32>;671 } & Struct;672 readonly isFraction: boolean;673 readonly asFraction: {674 readonly nom: Compact<u32>;675 readonly denom: Compact<u32>;676 } & Struct;677 readonly isAtLeastProportion: boolean;678 readonly asAtLeastProportion: {679 readonly nom: Compact<u32>;680 readonly denom: Compact<u32>;681 } & Struct;682 readonly isMoreThanProportion: boolean;683 readonly asMoreThanProportion: {684 readonly nom: Compact<u32>;685 readonly denom: Compact<u32>;686 } & Struct;687 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';688 }689690 /** @name XcmV1MultiLocation (95) */691 export interface XcmV1MultiLocation extends Struct {692 readonly parents: u8;693 readonly interior: XcmV1MultilocationJunctions;694 }695696 /** @name XcmV1MultilocationJunctions (96) */697 export interface XcmV1MultilocationJunctions extends Enum {698 readonly isHere: boolean;699 readonly isX1: boolean;700 readonly asX1: XcmV1Junction;701 readonly isX2: boolean;702 readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;703 readonly isX3: boolean;704 readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;705 readonly isX4: boolean;706 readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;707 readonly isX5: boolean;708 readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;709 readonly isX6: boolean;710 readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;711 readonly isX7: boolean;712 readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;713 readonly isX8: boolean;714 readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;715 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';716 }717718 /** @name XcmV1Junction (97) */719 export interface XcmV1Junction extends Enum {720 readonly isParachain: boolean;721 readonly asParachain: Compact<u32>;722 readonly isAccountId32: boolean;723 readonly asAccountId32: {724 readonly network: XcmV0JunctionNetworkId;725 readonly id: U8aFixed;726 } & Struct;727 readonly isAccountIndex64: boolean;728 readonly asAccountIndex64: {729 readonly network: XcmV0JunctionNetworkId;730 readonly index: Compact<u64>;731 } & Struct;732 readonly isAccountKey20: boolean;733 readonly asAccountKey20: {734 readonly network: XcmV0JunctionNetworkId;735 readonly key: U8aFixed;736 } & Struct;737 readonly isPalletInstance: boolean;738 readonly asPalletInstance: u8;739 readonly isGeneralIndex: boolean;740 readonly asGeneralIndex: Compact<u128>;741 readonly isGeneralKey: boolean;742 readonly asGeneralKey: Bytes;743 readonly isOnlyChild: boolean;744 readonly isPlurality: boolean;745 readonly asPlurality: {746 readonly id: XcmV0JunctionBodyId;747 readonly part: XcmV0JunctionBodyPart;748 } & Struct;749 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';750 }751752 /** @name XcmVersionedXcm (98) */753 export interface XcmVersionedXcm extends Enum {754 readonly isV0: boolean;755 readonly asV0: XcmV0Xcm;756 readonly isV1: boolean;757 readonly asV1: XcmV1Xcm;758 readonly isV2: boolean;759 readonly asV2: XcmV2Xcm;760 readonly type: 'V0' | 'V1' | 'V2';761 }762763 /** @name XcmV0Xcm (99) */764 export interface XcmV0Xcm extends Enum {765 readonly isWithdrawAsset: boolean;766 readonly asWithdrawAsset: {767 readonly assets: Vec<XcmV0MultiAsset>;768 readonly effects: Vec<XcmV0Order>;769 } & Struct;770 readonly isReserveAssetDeposit: boolean;771 readonly asReserveAssetDeposit: {772 readonly assets: Vec<XcmV0MultiAsset>;773 readonly effects: Vec<XcmV0Order>;774 } & Struct;775 readonly isTeleportAsset: boolean;776 readonly asTeleportAsset: {777 readonly assets: Vec<XcmV0MultiAsset>;778 readonly effects: Vec<XcmV0Order>;779 } & Struct;780 readonly isQueryResponse: boolean;781 readonly asQueryResponse: {782 readonly queryId: Compact<u64>;783 readonly response: XcmV0Response;784 } & Struct;785 readonly isTransferAsset: boolean;786 readonly asTransferAsset: {787 readonly assets: Vec<XcmV0MultiAsset>;788 readonly dest: XcmV0MultiLocation;789 } & Struct;790 readonly isTransferReserveAsset: boolean;791 readonly asTransferReserveAsset: {792 readonly assets: Vec<XcmV0MultiAsset>;793 readonly dest: XcmV0MultiLocation;794 readonly effects: Vec<XcmV0Order>;795 } & Struct;796 readonly isTransact: boolean;797 readonly asTransact: {798 readonly originType: XcmV0OriginKind;799 readonly requireWeightAtMost: u64;800 readonly call: XcmDoubleEncoded;801 } & Struct;802 readonly isHrmpNewChannelOpenRequest: boolean;803 readonly asHrmpNewChannelOpenRequest: {804 readonly sender: Compact<u32>;805 readonly maxMessageSize: Compact<u32>;806 readonly maxCapacity: Compact<u32>;807 } & Struct;808 readonly isHrmpChannelAccepted: boolean;809 readonly asHrmpChannelAccepted: {810 readonly recipient: Compact<u32>;811 } & Struct;812 readonly isHrmpChannelClosing: boolean;813 readonly asHrmpChannelClosing: {814 readonly initiator: Compact<u32>;815 readonly sender: Compact<u32>;816 readonly recipient: Compact<u32>;817 } & Struct;818 readonly isRelayedFrom: boolean;819 readonly asRelayedFrom: {820 readonly who: XcmV0MultiLocation;821 readonly message: XcmV0Xcm;822 } & Struct;823 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';824 }825826 /** @name XcmV0MultiAsset (101) */827 export interface XcmV0MultiAsset extends Enum {828 readonly isNone: boolean;829 readonly isAll: boolean;830 readonly isAllFungible: boolean;831 readonly isAllNonFungible: boolean;832 readonly isAllAbstractFungible: boolean;833 readonly asAllAbstractFungible: {834 readonly id: Bytes;835 } & Struct;836 readonly isAllAbstractNonFungible: boolean;837 readonly asAllAbstractNonFungible: {838 readonly class: Bytes;839 } & Struct;840 readonly isAllConcreteFungible: boolean;841 readonly asAllConcreteFungible: {842 readonly id: XcmV0MultiLocation;843 } & Struct;844 readonly isAllConcreteNonFungible: boolean;845 readonly asAllConcreteNonFungible: {846 readonly class: XcmV0MultiLocation;847 } & Struct;848 readonly isAbstractFungible: boolean;849 readonly asAbstractFungible: {850 readonly id: Bytes;851 readonly amount: Compact<u128>;852 } & Struct;853 readonly isAbstractNonFungible: boolean;854 readonly asAbstractNonFungible: {855 readonly class: Bytes;856 readonly instance: XcmV1MultiassetAssetInstance;857 } & Struct;858 readonly isConcreteFungible: boolean;859 readonly asConcreteFungible: {860 readonly id: XcmV0MultiLocation;861 readonly amount: Compact<u128>;862 } & Struct;863 readonly isConcreteNonFungible: boolean;864 readonly asConcreteNonFungible: {865 readonly class: XcmV0MultiLocation;866 readonly instance: XcmV1MultiassetAssetInstance;867 } & Struct;868 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';869 }870871 /** @name XcmV1MultiassetAssetInstance (102) */872 export interface XcmV1MultiassetAssetInstance extends Enum {873 readonly isUndefined: boolean;874 readonly isIndex: boolean;875 readonly asIndex: Compact<u128>;876 readonly isArray4: boolean;877 readonly asArray4: U8aFixed;878 readonly isArray8: boolean;879 readonly asArray8: U8aFixed;880 readonly isArray16: boolean;881 readonly asArray16: U8aFixed;882 readonly isArray32: boolean;883 readonly asArray32: U8aFixed;884 readonly isBlob: boolean;885 readonly asBlob: Bytes;886 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';887 }888889 /** @name XcmV0Order (106) */890 export interface XcmV0Order extends Enum {891 readonly isNull: boolean;892 readonly isDepositAsset: boolean;893 readonly asDepositAsset: {894 readonly assets: Vec<XcmV0MultiAsset>;895 readonly dest: XcmV0MultiLocation;896 } & Struct;897 readonly isDepositReserveAsset: boolean;898 readonly asDepositReserveAsset: {899 readonly assets: Vec<XcmV0MultiAsset>;900 readonly dest: XcmV0MultiLocation;901 readonly effects: Vec<XcmV0Order>;902 } & Struct;903 readonly isExchangeAsset: boolean;904 readonly asExchangeAsset: {905 readonly give: Vec<XcmV0MultiAsset>;906 readonly receive: Vec<XcmV0MultiAsset>;907 } & Struct;908 readonly isInitiateReserveWithdraw: boolean;909 readonly asInitiateReserveWithdraw: {910 readonly assets: Vec<XcmV0MultiAsset>;911 readonly reserve: XcmV0MultiLocation;912 readonly effects: Vec<XcmV0Order>;913 } & Struct;914 readonly isInitiateTeleport: boolean;915 readonly asInitiateTeleport: {916 readonly assets: Vec<XcmV0MultiAsset>;917 readonly dest: XcmV0MultiLocation;918 readonly effects: Vec<XcmV0Order>;919 } & Struct;920 readonly isQueryHolding: boolean;921 readonly asQueryHolding: {922 readonly queryId: Compact<u64>;923 readonly dest: XcmV0MultiLocation;924 readonly assets: Vec<XcmV0MultiAsset>;925 } & Struct;926 readonly isBuyExecution: boolean;927 readonly asBuyExecution: {928 readonly fees: XcmV0MultiAsset;929 readonly weight: u64;930 readonly debt: u64;931 readonly haltOnError: bool;932 readonly xcm: Vec<XcmV0Xcm>;933 } & Struct;934 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';935 }936937 /** @name XcmV0Response (108) */938 export interface XcmV0Response extends Enum {939 readonly isAssets: boolean;940 readonly asAssets: Vec<XcmV0MultiAsset>;941 readonly type: 'Assets';942 }943944 /** @name XcmV0OriginKind (109) */945 export interface XcmV0OriginKind extends Enum {946 readonly isNative: boolean;947 readonly isSovereignAccount: boolean;948 readonly isSuperuser: boolean;949 readonly isXcm: boolean;950 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';951 }952953 /** @name XcmDoubleEncoded (110) */954 export interface XcmDoubleEncoded extends Struct {955 readonly encoded: Bytes;956 }957958 /** @name XcmV1Xcm (111) */959 export interface XcmV1Xcm extends Enum {960 readonly isWithdrawAsset: boolean;961 readonly asWithdrawAsset: {962 readonly assets: XcmV1MultiassetMultiAssets;963 readonly effects: Vec<XcmV1Order>;964 } & Struct;965 readonly isReserveAssetDeposited: boolean;966 readonly asReserveAssetDeposited: {967 readonly assets: XcmV1MultiassetMultiAssets;968 readonly effects: Vec<XcmV1Order>;969 } & Struct;970 readonly isReceiveTeleportedAsset: boolean;971 readonly asReceiveTeleportedAsset: {972 readonly assets: XcmV1MultiassetMultiAssets;973 readonly effects: Vec<XcmV1Order>;974 } & Struct;975 readonly isQueryResponse: boolean;976 readonly asQueryResponse: {977 readonly queryId: Compact<u64>;978 readonly response: XcmV1Response;979 } & Struct;980 readonly isTransferAsset: boolean;981 readonly asTransferAsset: {982 readonly assets: XcmV1MultiassetMultiAssets;983 readonly beneficiary: XcmV1MultiLocation;984 } & Struct;985 readonly isTransferReserveAsset: boolean;986 readonly asTransferReserveAsset: {987 readonly assets: XcmV1MultiassetMultiAssets;988 readonly dest: XcmV1MultiLocation;989 readonly effects: Vec<XcmV1Order>;990 } & Struct;991 readonly isTransact: boolean;992 readonly asTransact: {993 readonly originType: XcmV0OriginKind;994 readonly requireWeightAtMost: u64;995 readonly call: XcmDoubleEncoded;996 } & Struct;997 readonly isHrmpNewChannelOpenRequest: boolean;998 readonly asHrmpNewChannelOpenRequest: {999 readonly sender: Compact<u32>;1000 readonly maxMessageSize: Compact<u32>;1001 readonly maxCapacity: Compact<u32>;1002 } & Struct;1003 readonly isHrmpChannelAccepted: boolean;1004 readonly asHrmpChannelAccepted: {1005 readonly recipient: Compact<u32>;1006 } & Struct;1007 readonly isHrmpChannelClosing: boolean;1008 readonly asHrmpChannelClosing: {1009 readonly initiator: Compact<u32>;1010 readonly sender: Compact<u32>;1011 readonly recipient: Compact<u32>;1012 } & Struct;1013 readonly isRelayedFrom: boolean;1014 readonly asRelayedFrom: {1015 readonly who: XcmV1MultilocationJunctions;1016 readonly message: XcmV1Xcm;1017 } & Struct;1018 readonly isSubscribeVersion: boolean;1019 readonly asSubscribeVersion: {1020 readonly queryId: Compact<u64>;1021 readonly maxResponseWeight: Compact<u64>;1022 } & Struct;1023 readonly isUnsubscribeVersion: boolean;1024 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1025 }10261027 /** @name XcmV1MultiassetMultiAssets (112) */1028 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}10291030 /** @name XcmV1MultiAsset (114) */1031 export interface XcmV1MultiAsset extends Struct {1032 readonly id: XcmV1MultiassetAssetId;1033 readonly fun: XcmV1MultiassetFungibility;1034 }10351036 /** @name XcmV1MultiassetAssetId (115) */1037 export interface XcmV1MultiassetAssetId extends Enum {1038 readonly isConcrete: boolean;1039 readonly asConcrete: XcmV1MultiLocation;1040 readonly isAbstract: boolean;1041 readonly asAbstract: Bytes;1042 readonly type: 'Concrete' | 'Abstract';1043 }10441045 /** @name XcmV1MultiassetFungibility (116) */1046 export interface XcmV1MultiassetFungibility extends Enum {1047 readonly isFungible: boolean;1048 readonly asFungible: Compact<u128>;1049 readonly isNonFungible: boolean;1050 readonly asNonFungible: XcmV1MultiassetAssetInstance;1051 readonly type: 'Fungible' | 'NonFungible';1052 }10531054 /** @name XcmV1Order (118) */1055 export interface XcmV1Order extends Enum {1056 readonly isNoop: boolean;1057 readonly isDepositAsset: boolean;1058 readonly asDepositAsset: {1059 readonly assets: XcmV1MultiassetMultiAssetFilter;1060 readonly maxAssets: u32;1061 readonly beneficiary: XcmV1MultiLocation;1062 } & Struct;1063 readonly isDepositReserveAsset: boolean;1064 readonly asDepositReserveAsset: {1065 readonly assets: XcmV1MultiassetMultiAssetFilter;1066 readonly maxAssets: u32;1067 readonly dest: XcmV1MultiLocation;1068 readonly effects: Vec<XcmV1Order>;1069 } & Struct;1070 readonly isExchangeAsset: boolean;1071 readonly asExchangeAsset: {1072 readonly give: XcmV1MultiassetMultiAssetFilter;1073 readonly receive: XcmV1MultiassetMultiAssets;1074 } & Struct;1075 readonly isInitiateReserveWithdraw: boolean;1076 readonly asInitiateReserveWithdraw: {1077 readonly assets: XcmV1MultiassetMultiAssetFilter;1078 readonly reserve: XcmV1MultiLocation;1079 readonly effects: Vec<XcmV1Order>;1080 } & Struct;1081 readonly isInitiateTeleport: boolean;1082 readonly asInitiateTeleport: {1083 readonly assets: XcmV1MultiassetMultiAssetFilter;1084 readonly dest: XcmV1MultiLocation;1085 readonly effects: Vec<XcmV1Order>;1086 } & Struct;1087 readonly isQueryHolding: boolean;1088 readonly asQueryHolding: {1089 readonly queryId: Compact<u64>;1090 readonly dest: XcmV1MultiLocation;1091 readonly assets: XcmV1MultiassetMultiAssetFilter;1092 } & Struct;1093 readonly isBuyExecution: boolean;1094 readonly asBuyExecution: {1095 readonly fees: XcmV1MultiAsset;1096 readonly weight: u64;1097 readonly debt: u64;1098 readonly haltOnError: bool;1099 readonly instructions: Vec<XcmV1Xcm>;1100 } & Struct;1101 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1102 }11031104 /** @name XcmV1MultiassetMultiAssetFilter (119) */1105 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1106 readonly isDefinite: boolean;1107 readonly asDefinite: XcmV1MultiassetMultiAssets;1108 readonly isWild: boolean;1109 readonly asWild: XcmV1MultiassetWildMultiAsset;1110 readonly type: 'Definite' | 'Wild';1111 }11121113 /** @name XcmV1MultiassetWildMultiAsset (120) */1114 export interface XcmV1MultiassetWildMultiAsset extends Enum {1115 readonly isAll: boolean;1116 readonly isAllOf: boolean;1117 readonly asAllOf: {1118 readonly id: XcmV1MultiassetAssetId;1119 readonly fun: XcmV1MultiassetWildFungibility;1120 } & Struct;1121 readonly type: 'All' | 'AllOf';1122 }11231124 /** @name XcmV1MultiassetWildFungibility (121) */1125 export interface XcmV1MultiassetWildFungibility extends Enum {1126 readonly isFungible: boolean;1127 readonly isNonFungible: boolean;1128 readonly type: 'Fungible' | 'NonFungible';1129 }11301131 /** @name XcmV1Response (123) */1132 export interface XcmV1Response extends Enum {1133 readonly isAssets: boolean;1134 readonly asAssets: XcmV1MultiassetMultiAssets;1135 readonly isVersion: boolean;1136 readonly asVersion: u32;1137 readonly type: 'Assets' | 'Version';1138 }11391140 /** @name XcmV2Xcm (124) */1141 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}11421143 /** @name XcmV2Instruction (126) */1144 export interface XcmV2Instruction extends Enum {1145 readonly isWithdrawAsset: boolean;1146 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1147 readonly isReserveAssetDeposited: boolean;1148 readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;1149 readonly isReceiveTeleportedAsset: boolean;1150 readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;1151 readonly isQueryResponse: boolean;1152 readonly asQueryResponse: {1153 readonly queryId: Compact<u64>;1154 readonly response: XcmV2Response;1155 readonly maxWeight: Compact<u64>;1156 } & Struct;1157 readonly isTransferAsset: boolean;1158 readonly asTransferAsset: {1159 readonly assets: XcmV1MultiassetMultiAssets;1160 readonly beneficiary: XcmV1MultiLocation;1161 } & Struct;1162 readonly isTransferReserveAsset: boolean;1163 readonly asTransferReserveAsset: {1164 readonly assets: XcmV1MultiassetMultiAssets;1165 readonly dest: XcmV1MultiLocation;1166 readonly xcm: XcmV2Xcm;1167 } & Struct;1168 readonly isTransact: boolean;1169 readonly asTransact: {1170 readonly originType: XcmV0OriginKind;1171 readonly requireWeightAtMost: Compact<u64>;1172 readonly call: XcmDoubleEncoded;1173 } & Struct;1174 readonly isHrmpNewChannelOpenRequest: boolean;1175 readonly asHrmpNewChannelOpenRequest: {1176 readonly sender: Compact<u32>;1177 readonly maxMessageSize: Compact<u32>;1178 readonly maxCapacity: Compact<u32>;1179 } & Struct;1180 readonly isHrmpChannelAccepted: boolean;1181 readonly asHrmpChannelAccepted: {1182 readonly recipient: Compact<u32>;1183 } & Struct;1184 readonly isHrmpChannelClosing: boolean;1185 readonly asHrmpChannelClosing: {1186 readonly initiator: Compact<u32>;1187 readonly sender: Compact<u32>;1188 readonly recipient: Compact<u32>;1189 } & Struct;1190 readonly isClearOrigin: boolean;1191 readonly isDescendOrigin: boolean;1192 readonly asDescendOrigin: XcmV1MultilocationJunctions;1193 readonly isReportError: boolean;1194 readonly asReportError: {1195 readonly queryId: Compact<u64>;1196 readonly dest: XcmV1MultiLocation;1197 readonly maxResponseWeight: Compact<u64>;1198 } & Struct;1199 readonly isDepositAsset: boolean;1200 readonly asDepositAsset: {1201 readonly assets: XcmV1MultiassetMultiAssetFilter;1202 readonly maxAssets: Compact<u32>;1203 readonly beneficiary: XcmV1MultiLocation;1204 } & Struct;1205 readonly isDepositReserveAsset: boolean;1206 readonly asDepositReserveAsset: {1207 readonly assets: XcmV1MultiassetMultiAssetFilter;1208 readonly maxAssets: Compact<u32>;1209 readonly dest: XcmV1MultiLocation;1210 readonly xcm: XcmV2Xcm;1211 } & Struct;1212 readonly isExchangeAsset: boolean;1213 readonly asExchangeAsset: {1214 readonly give: XcmV1MultiassetMultiAssetFilter;1215 readonly receive: XcmV1MultiassetMultiAssets;1216 } & Struct;1217 readonly isInitiateReserveWithdraw: boolean;1218 readonly asInitiateReserveWithdraw: {1219 readonly assets: XcmV1MultiassetMultiAssetFilter;1220 readonly reserve: XcmV1MultiLocation;1221 readonly xcm: XcmV2Xcm;1222 } & Struct;1223 readonly isInitiateTeleport: boolean;1224 readonly asInitiateTeleport: {1225 readonly assets: XcmV1MultiassetMultiAssetFilter;1226 readonly dest: XcmV1MultiLocation;1227 readonly xcm: XcmV2Xcm;1228 } & Struct;1229 readonly isQueryHolding: boolean;1230 readonly asQueryHolding: {1231 readonly queryId: Compact<u64>;1232 readonly dest: XcmV1MultiLocation;1233 readonly assets: XcmV1MultiassetMultiAssetFilter;1234 readonly maxResponseWeight: Compact<u64>;1235 } & Struct;1236 readonly isBuyExecution: boolean;1237 readonly asBuyExecution: {1238 readonly fees: XcmV1MultiAsset;1239 readonly weightLimit: XcmV2WeightLimit;1240 } & Struct;1241 readonly isRefundSurplus: boolean;1242 readonly isSetErrorHandler: boolean;1243 readonly asSetErrorHandler: XcmV2Xcm;1244 readonly isSetAppendix: boolean;1245 readonly asSetAppendix: XcmV2Xcm;1246 readonly isClearError: boolean;1247 readonly isClaimAsset: boolean;1248 readonly asClaimAsset: {1249 readonly assets: XcmV1MultiassetMultiAssets;1250 readonly ticket: XcmV1MultiLocation;1251 } & Struct;1252 readonly isTrap: boolean;1253 readonly asTrap: Compact<u64>;1254 readonly isSubscribeVersion: boolean;1255 readonly asSubscribeVersion: {1256 readonly queryId: Compact<u64>;1257 readonly maxResponseWeight: Compact<u64>;1258 } & Struct;1259 readonly isUnsubscribeVersion: boolean;1260 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';1261 }12621263 /** @name XcmV2Response (127) */1264 export interface XcmV2Response extends Enum {1265 readonly isNull: boolean;1266 readonly isAssets: boolean;1267 readonly asAssets: XcmV1MultiassetMultiAssets;1268 readonly isExecutionResult: boolean;1269 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;1270 readonly isVersion: boolean;1271 readonly asVersion: u32;1272 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1273 }12741275 /** @name XcmV2TraitsError (130) */1276 export interface XcmV2TraitsError extends Enum {1277 readonly isOverflow: boolean;1278 readonly isUnimplemented: boolean;1279 readonly isUntrustedReserveLocation: boolean;1280 readonly isUntrustedTeleportLocation: boolean;1281 readonly isMultiLocationFull: boolean;1282 readonly isMultiLocationNotInvertible: boolean;1283 readonly isBadOrigin: boolean;1284 readonly isInvalidLocation: boolean;1285 readonly isAssetNotFound: boolean;1286 readonly isFailedToTransactAsset: boolean;1287 readonly isNotWithdrawable: boolean;1288 readonly isLocationCannotHold: boolean;1289 readonly isExceedsMaxMessageSize: boolean;1290 readonly isDestinationUnsupported: boolean;1291 readonly isTransport: boolean;1292 readonly isUnroutable: boolean;1293 readonly isUnknownClaim: boolean;1294 readonly isFailedToDecode: boolean;1295 readonly isMaxWeightInvalid: boolean;1296 readonly isNotHoldingFees: boolean;1297 readonly isTooExpensive: boolean;1298 readonly isTrap: boolean;1299 readonly asTrap: u64;1300 readonly isUnhandledXcmVersion: boolean;1301 readonly isWeightLimitReached: boolean;1302 readonly asWeightLimitReached: u64;1303 readonly isBarrier: boolean;1304 readonly isWeightNotComputable: boolean;1305 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';1306 }13071308 /** @name XcmV2WeightLimit (131) */1309 export interface XcmV2WeightLimit extends Enum {1310 readonly isUnlimited: boolean;1311 readonly isLimited: boolean;1312 readonly asLimited: Compact<u64>;1313 readonly type: 'Unlimited' | 'Limited';1314 }13151316 /** @name XcmVersionedMultiAssets (132) */1317 export interface XcmVersionedMultiAssets extends Enum {1318 readonly isV0: boolean;1319 readonly asV0: Vec<XcmV0MultiAsset>;1320 readonly isV1: boolean;1321 readonly asV1: XcmV1MultiassetMultiAssets;1322 readonly type: 'V0' | 'V1';1323 }13241325 /** @name CumulusPalletXcmCall (147) */1326 export type CumulusPalletXcmCall = Null;13271328 /** @name CumulusPalletDmpQueueCall (148) */1329 export interface CumulusPalletDmpQueueCall extends Enum {1330 readonly isServiceOverweight: boolean;1331 readonly asServiceOverweight: {1332 readonly index: u64;1333 readonly weightLimit: u64;1334 } & Struct;1335 readonly type: 'ServiceOverweight';1336 }13371338 /** @name PalletInflationCall (149) */1339 export interface PalletInflationCall extends Enum {1340 readonly isStartInflation: boolean;1341 readonly asStartInflation: {1342 readonly inflationStartRelayBlock: u32;1343 } & Struct;1344 readonly type: 'StartInflation';1345 }13461347 /** @name PalletUniqueCall (150) */1348 export interface PalletUniqueCall extends Enum {1349 readonly isCreateCollection: boolean;1350 readonly asCreateCollection: {1351 readonly collectionName: Vec<u16>;1352 readonly collectionDescription: Vec<u16>;1353 readonly tokenPrefix: Bytes;1354 readonly mode: UpDataStructsCollectionMode;1355 } & Struct;1356 readonly isCreateCollectionEx: boolean;1357 readonly asCreateCollectionEx: {1358 readonly data: UpDataStructsCreateCollectionData;1359 } & Struct;1360 readonly isDestroyCollection: boolean;1361 readonly asDestroyCollection: {1362 readonly collectionId: u32;1363 } & Struct;1364 readonly isAddToAllowList: boolean;1365 readonly asAddToAllowList: {1366 readonly collectionId: u32;1367 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;1368 } & Struct;1369 readonly isRemoveFromAllowList: boolean;1370 readonly asRemoveFromAllowList: {1371 readonly collectionId: u32;1372 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;1373 } & Struct;1374 readonly isSetPublicAccessMode: boolean;1375 readonly asSetPublicAccessMode: {1376 readonly collectionId: u32;1377 readonly mode: UpDataStructsAccessMode;1378 } & Struct;1379 readonly isSetMintPermission: boolean;1380 readonly asSetMintPermission: {1381 readonly collectionId: u32;1382 readonly mintPermission: bool;1383 } & Struct;1384 readonly isChangeCollectionOwner: boolean;1385 readonly asChangeCollectionOwner: {1386 readonly collectionId: u32;1387 readonly newOwner: AccountId32;1388 } & Struct;1389 readonly isAddCollectionAdmin: boolean;1390 readonly asAddCollectionAdmin: {1391 readonly collectionId: u32;1392 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;1393 } & Struct;1394 readonly isRemoveCollectionAdmin: boolean;1395 readonly asRemoveCollectionAdmin: {1396 readonly collectionId: u32;1397 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;1398 } & Struct;1399 readonly isSetCollectionSponsor: boolean;1400 readonly asSetCollectionSponsor: {1401 readonly collectionId: u32;1402 readonly newSponsor: AccountId32;1403 } & Struct;1404 readonly isConfirmSponsorship: boolean;1405 readonly asConfirmSponsorship: {1406 readonly collectionId: u32;1407 } & Struct;1408 readonly isRemoveCollectionSponsor: boolean;1409 readonly asRemoveCollectionSponsor: {1410 readonly collectionId: u32;1411 } & Struct;1412 readonly isCreateItem: boolean;1413 readonly asCreateItem: {1414 readonly collectionId: u32;1415 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1416 readonly data: UpDataStructsCreateItemData;1417 } & Struct;1418 readonly isCreateMultipleItems: boolean;1419 readonly asCreateMultipleItems: {1420 readonly collectionId: u32;1421 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1422 readonly itemsData: Vec<UpDataStructsCreateItemData>;1423 } & Struct;1424 readonly isSetCollectionProperties: boolean;1425 readonly asSetCollectionProperties: {1426 readonly collectionId: u32;1427 readonly properties: Vec<UpDataStructsProperty>;1428 } & Struct;1429 readonly isDeleteCollectionProperties: boolean;1430 readonly asDeleteCollectionProperties: {1431 readonly collectionId: u32;1432 readonly propertyKeys: Vec<Bytes>;1433 } & Struct;1434 readonly isSetTokenProperties: boolean;1435 readonly asSetTokenProperties: {1436 readonly collectionId: u32;1437 readonly tokenId: u32;1438 readonly properties: Vec<UpDataStructsProperty>;1439 } & Struct;1440 readonly isDeleteTokenProperties: boolean;1441 readonly asDeleteTokenProperties: {1442 readonly collectionId: u32;1443 readonly tokenId: u32;1444 readonly propertyKeys: Vec<Bytes>;1445 } & Struct;1446 readonly isSetPropertyPermissions: boolean;1447 readonly asSetPropertyPermissions: {1448 readonly collectionId: u32;1449 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;1450 } & Struct;1451 readonly isCreateMultipleItemsEx: boolean;1452 readonly asCreateMultipleItemsEx: {1453 readonly collectionId: u32;1454 readonly data: UpDataStructsCreateItemExData;1455 } & Struct;1456 readonly isSetTransfersEnabledFlag: boolean;1457 readonly asSetTransfersEnabledFlag: {1458 readonly collectionId: u32;1459 readonly value: bool;1460 } & Struct;1461 readonly isBurnItem: boolean;1462 readonly asBurnItem: {1463 readonly collectionId: u32;1464 readonly itemId: u32;1465 readonly value: u128;1466 } & Struct;1467 readonly isBurnFrom: boolean;1468 readonly asBurnFrom: {1469 readonly collectionId: u32;1470 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;1471 readonly itemId: u32;1472 readonly value: u128;1473 } & Struct;1474 readonly isTransfer: boolean;1475 readonly asTransfer: {1476 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;1477 readonly collectionId: u32;1478 readonly itemId: u32;1479 readonly value: u128;1480 } & Struct;1481 readonly isApprove: boolean;1482 readonly asApprove: {1483 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;1484 readonly collectionId: u32;1485 readonly itemId: u32;1486 readonly amount: u128;1487 } & Struct;1488 readonly isTransferFrom: boolean;1489 readonly asTransferFrom: {1490 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;1491 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;1492 readonly collectionId: u32;1493 readonly itemId: u32;1494 readonly value: u128;1495 } & Struct;1496 readonly isSetVariableMetaData: boolean;1497 readonly asSetVariableMetaData: {1498 readonly collectionId: u32;1499 readonly itemId: u32;1500 readonly data: Bytes;1501 } & Struct;1502 readonly isSetMetaUpdatePermissionFlag: boolean;1503 readonly asSetMetaUpdatePermissionFlag: {1504 readonly collectionId: u32;1505 readonly value: UpDataStructsMetaUpdatePermission;1506 } & Struct;1507 readonly isSetSchemaVersion: boolean;1508 readonly asSetSchemaVersion: {1509 readonly collectionId: u32;1510 readonly version: UpDataStructsSchemaVersion;1511 } & Struct;1512 readonly isSetOffchainSchema: boolean;1513 readonly asSetOffchainSchema: {1514 readonly collectionId: u32;1515 readonly schema: Bytes;1516 } & Struct;1517 readonly isSetConstOnChainSchema: boolean;1518 readonly asSetConstOnChainSchema: {1519 readonly collectionId: u32;1520 readonly schema: Bytes;1521 } & Struct;1522 readonly isSetVariableOnChainSchema: boolean;1523 readonly asSetVariableOnChainSchema: {1524 readonly collectionId: u32;1525 readonly schema: Bytes;1526 } & Struct;1527 readonly isSetCollectionLimits: boolean;1528 readonly asSetCollectionLimits: {1529 readonly collectionId: u32;1530 readonly newLimit: UpDataStructsCollectionLimits;1531 } & Struct;1532 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';1533 }15341535 /** @name UpDataStructsCollectionMode (156) */1536 export interface UpDataStructsCollectionMode extends Enum {1537 readonly isNft: boolean;1538 readonly isFungible: boolean;1539 readonly asFungible: u8;1540 readonly isReFungible: boolean;1541 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1542 }15431544 /** @name UpDataStructsCreateCollectionData (157) */1545 export interface UpDataStructsCreateCollectionData extends Struct {1546 readonly mode: UpDataStructsCollectionMode;1547 readonly access: Option<UpDataStructsAccessMode>;1548 readonly name: Vec<u16>;1549 readonly description: Vec<u16>;1550 readonly tokenPrefix: Bytes;1551 readonly offchainSchema: Bytes;1552 readonly schemaVersion: Option<UpDataStructsSchemaVersion>;1553 readonly pendingSponsor: Option<AccountId32>;1554 readonly limits: Option<UpDataStructsCollectionLimits>;1555 readonly variableOnChainSchema: Bytes;1556 readonly constOnChainSchema: Bytes;1557 readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;1558 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;1559 readonly properties: Vec<UpDataStructsProperty>;1560 }15611562 /** @name UpDataStructsAccessMode (159) */1563 export interface UpDataStructsAccessMode extends Enum {1564 readonly isNormal: boolean;1565 readonly isAllowList: boolean;1566 readonly type: 'Normal' | 'AllowList';1567 }15681569 /** @name UpDataStructsSchemaVersion (162) */1570 export interface UpDataStructsSchemaVersion extends Enum {1571 readonly isImageURL: boolean;1572 readonly isUnique: boolean;1573 readonly type: 'ImageURL' | 'Unique';1574 }15751576 /** @name UpDataStructsCollectionLimits (165) */1577 export interface UpDataStructsCollectionLimits extends Struct {1578 readonly accountTokenOwnershipLimit: Option<u32>;1579 readonly sponsoredDataSize: Option<u32>;1580 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;1581 readonly tokenLimit: Option<u32>;1582 readonly sponsorTransferTimeout: Option<u32>;1583 readonly sponsorApproveTimeout: Option<u32>;1584 readonly ownerCanTransfer: Option<bool>;1585 readonly ownerCanDestroy: Option<bool>;1586 readonly transfersEnabled: Option<bool>;1587 readonly nestingRule: Option<UpDataStructsNestingRule>;1588 }15891590 /** @name UpDataStructsSponsoringRateLimit (167) */1591 export interface UpDataStructsSponsoringRateLimit extends Enum {1592 readonly isSponsoringDisabled: boolean;1593 readonly isBlocks: boolean;1594 readonly asBlocks: u32;1595 readonly type: 'SponsoringDisabled' | 'Blocks';1596 }15971598 /** @name UpDataStructsNestingRule (170) */1599 export interface UpDataStructsNestingRule extends Enum {1600 readonly isDisabled: boolean;1601 readonly isOwner: boolean;1602 readonly isOwnerRestricted: boolean;1603 readonly asOwnerRestricted: FrameSupportStorageBoundedBTreeSet;1604 readonly type: 'Disabled' | 'Owner' | 'OwnerRestricted';1605 }16061607 /** @name FrameSupportStorageBoundedBTreeSet (171) */1608 export interface FrameSupportStorageBoundedBTreeSet extends BTreeSet<u32> {}16091610 /** @name UpDataStructsMetaUpdatePermission (177) */1611 export interface UpDataStructsMetaUpdatePermission extends Enum {1612 readonly isItemOwner: boolean;1613 readonly isAdmin: boolean;1614 readonly isNone: boolean;1615 readonly type: 'ItemOwner' | 'Admin' | 'None';1616 }16171618 /** @name UpDataStructsPropertyKeyPermission (179) */1619 export interface UpDataStructsPropertyKeyPermission extends Struct {1620 readonly key: Bytes;1621 readonly permission: UpDataStructsPropertyPermission;1622 }16231624 /** @name UpDataStructsPropertyPermission (181) */1625 export interface UpDataStructsPropertyPermission extends Enum {1626 readonly isNone: boolean;1627 readonly isAdminConst: boolean;1628 readonly isAdmin: boolean;1629 readonly isItemOwnerConst: boolean;1630 readonly isItemOwner: boolean;1631 readonly isItemOwnerOrAdmin: boolean;1632 readonly type: 'None' | 'AdminConst' | 'Admin' | 'ItemOwnerConst' | 'ItemOwner' | 'ItemOwnerOrAdmin';1633 }16341635 /** @name UpDataStructsProperty (184) */1636 export interface UpDataStructsProperty extends Struct {1637 readonly key: Bytes;1638 readonly value: Bytes;1639 }16401641 /** @name PalletEvmAccountBasicCrossAccountIdRepr (186) */1642 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1643 readonly isSubstrate: boolean;1644 readonly asSubstrate: AccountId32;1645 readonly isEthereum: boolean;1646 readonly asEthereum: H160;1647 readonly type: 'Substrate' | 'Ethereum';1648 }16491650 /** @name UpDataStructsCreateItemData (188) */1651 export interface UpDataStructsCreateItemData extends Enum {1652 readonly isNft: boolean;1653 readonly asNft: UpDataStructsCreateNftData;1654 readonly isFungible: boolean;1655 readonly asFungible: UpDataStructsCreateFungibleData;1656 readonly isReFungible: boolean;1657 readonly asReFungible: UpDataStructsCreateReFungibleData;1658 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1659 }16601661 /** @name UpDataStructsCreateNftData (189) */1662 export interface UpDataStructsCreateNftData extends Struct {1663 readonly constData: Bytes;1664 readonly variableData: Bytes;1665 }16661667 /** @name UpDataStructsCreateFungibleData (191) */1668 export interface UpDataStructsCreateFungibleData extends Struct {1669 readonly value: u128;1670 }16711672 /** @name UpDataStructsCreateReFungibleData (192) */1673 export interface UpDataStructsCreateReFungibleData extends Struct {1674 readonly constData: Bytes;1675 readonly variableData: Bytes;1676 readonly pieces: u128;1677 }16781679 /** @name UpDataStructsCreateItemExData (196) */1680 export interface UpDataStructsCreateItemExData extends Enum {1681 readonly isNft: boolean;1682 readonly asNft: Vec<UpDataStructsCreateNftExData>;1683 readonly isFungible: boolean;1684 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1685 readonly isRefungibleMultipleItems: boolean;1686 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;1687 readonly isRefungibleMultipleOwners: boolean;1688 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExData;1689 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1690 }16911692 /** @name UpDataStructsCreateNftExData (198) */1693 export interface UpDataStructsCreateNftExData extends Struct {1694 readonly constData: Bytes;1695 readonly variableData: Bytes;1696 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1697 }16981699 /** @name UpDataStructsCreateRefungibleExData (205) */1700 export interface UpDataStructsCreateRefungibleExData extends Struct {1701 readonly constData: Bytes;1702 readonly variableData: Bytes;1703 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1704 }17051706 /** @name PalletTemplateTransactionPaymentCall (207) */1707 export type PalletTemplateTransactionPaymentCall = Null;17081709 /** @name PalletStructureCall (208) */1710 export type PalletStructureCall = Null;17111712 /** @name PalletEvmCall (209) */1713 export interface PalletEvmCall extends Enum {1714 readonly isWithdraw: boolean;1715 readonly asWithdraw: {1716 readonly address: H160;1717 readonly value: u128;1718 } & Struct;1719 readonly isCall: boolean;1720 readonly asCall: {1721 readonly source: H160;1722 readonly target: H160;1723 readonly input: Bytes;1724 readonly value: U256;1725 readonly gasLimit: u64;1726 readonly maxFeePerGas: U256;1727 readonly maxPriorityFeePerGas: Option<U256>;1728 readonly nonce: Option<U256>;1729 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1730 } & Struct;1731 readonly isCreate: boolean;1732 readonly asCreate: {1733 readonly source: H160;1734 readonly init: Bytes;1735 readonly value: U256;1736 readonly gasLimit: u64;1737 readonly maxFeePerGas: U256;1738 readonly maxPriorityFeePerGas: Option<U256>;1739 readonly nonce: Option<U256>;1740 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1741 } & Struct;1742 readonly isCreate2: boolean;1743 readonly asCreate2: {1744 readonly source: H160;1745 readonly init: Bytes;1746 readonly salt: H256;1747 readonly value: U256;1748 readonly gasLimit: u64;1749 readonly maxFeePerGas: U256;1750 readonly maxPriorityFeePerGas: Option<U256>;1751 readonly nonce: Option<U256>;1752 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1753 } & Struct;1754 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';1755 }17561757 /** @name PalletEthereumCall (215) */1758 export interface PalletEthereumCall extends Enum {1759 readonly isTransact: boolean;1760 readonly asTransact: {1761 readonly transaction: EthereumTransactionTransactionV2;1762 } & Struct;1763 readonly type: 'Transact';1764 }17651766 /** @name EthereumTransactionTransactionV2 (216) */1767 export interface EthereumTransactionTransactionV2 extends Enum {1768 readonly isLegacy: boolean;1769 readonly asLegacy: EthereumTransactionLegacyTransaction;1770 readonly isEip2930: boolean;1771 readonly asEip2930: EthereumTransactionEip2930Transaction;1772 readonly isEip1559: boolean;1773 readonly asEip1559: EthereumTransactionEip1559Transaction;1774 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';1775 }17761777 /** @name EthereumTransactionLegacyTransaction (217) */1778 export interface EthereumTransactionLegacyTransaction extends Struct {1779 readonly nonce: U256;1780 readonly gasPrice: U256;1781 readonly gasLimit: U256;1782 readonly action: EthereumTransactionTransactionAction;1783 readonly value: U256;1784 readonly input: Bytes;1785 readonly signature: EthereumTransactionTransactionSignature;1786 }17871788 /** @name EthereumTransactionTransactionAction (218) */1789 export interface EthereumTransactionTransactionAction extends Enum {1790 readonly isCall: boolean;1791 readonly asCall: H160;1792 readonly isCreate: boolean;1793 readonly type: 'Call' | 'Create';1794 }17951796 /** @name EthereumTransactionTransactionSignature (219) */1797 export interface EthereumTransactionTransactionSignature extends Struct {1798 readonly v: u64;1799 readonly r: H256;1800 readonly s: H256;1801 }18021803 /** @name EthereumTransactionEip2930Transaction (221) */1804 export interface EthereumTransactionEip2930Transaction extends Struct {1805 readonly chainId: u64;1806 readonly nonce: U256;1807 readonly gasPrice: U256;1808 readonly gasLimit: U256;1809 readonly action: EthereumTransactionTransactionAction;1810 readonly value: U256;1811 readonly input: Bytes;1812 readonly accessList: Vec<EthereumTransactionAccessListItem>;1813 readonly oddYParity: bool;1814 readonly r: H256;1815 readonly s: H256;1816 }18171818 /** @name EthereumTransactionAccessListItem (223) */1819 export interface EthereumTransactionAccessListItem extends Struct {1820 readonly address: H160;1821 readonly storageKeys: Vec<H256>;1822 }18231824 /** @name EthereumTransactionEip1559Transaction (224) */1825 export interface EthereumTransactionEip1559Transaction extends Struct {1826 readonly chainId: u64;1827 readonly nonce: U256;1828 readonly maxPriorityFeePerGas: U256;1829 readonly maxFeePerGas: U256;1830 readonly gasLimit: U256;1831 readonly action: EthereumTransactionTransactionAction;1832 readonly value: U256;1833 readonly input: Bytes;1834 readonly accessList: Vec<EthereumTransactionAccessListItem>;1835 readonly oddYParity: bool;1836 readonly r: H256;1837 readonly s: H256;1838 }18391840 /** @name PalletEvmMigrationCall (225) */1841 export interface PalletEvmMigrationCall extends Enum {1842 readonly isBegin: boolean;1843 readonly asBegin: {1844 readonly address: H160;1845 } & Struct;1846 readonly isSetData: boolean;1847 readonly asSetData: {1848 readonly address: H160;1849 readonly data: Vec<ITuple<[H256, H256]>>;1850 } & Struct;1851 readonly isFinish: boolean;1852 readonly asFinish: {1853 readonly address: H160;1854 readonly code: Bytes;1855 } & Struct;1856 readonly type: 'Begin' | 'SetData' | 'Finish';1857 }18581859 /** @name PalletSudoEvent (228) */1860 export interface PalletSudoEvent extends Enum {1861 readonly isSudid: boolean;1862 readonly asSudid: {1863 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1864 } & Struct;1865 readonly isKeyChanged: boolean;1866 readonly asKeyChanged: {1867 readonly oldSudoer: Option<AccountId32>;1868 } & Struct;1869 readonly isSudoAsDone: boolean;1870 readonly asSudoAsDone: {1871 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1872 } & Struct;1873 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';1874 }18751876 /** @name SpRuntimeDispatchError (230) */1877 export interface SpRuntimeDispatchError extends Enum {1878 readonly isOther: boolean;1879 readonly isCannotLookup: boolean;1880 readonly isBadOrigin: boolean;1881 readonly isModule: boolean;1882 readonly asModule: SpRuntimeModuleError;1883 readonly isConsumerRemaining: boolean;1884 readonly isNoProviders: boolean;1885 readonly isTooManyConsumers: boolean;1886 readonly isToken: boolean;1887 readonly asToken: SpRuntimeTokenError;1888 readonly isArithmetic: boolean;1889 readonly asArithmetic: SpRuntimeArithmeticError;1890 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic';1891 }18921893 /** @name SpRuntimeModuleError (231) */1894 export interface SpRuntimeModuleError extends Struct {1895 readonly index: u8;1896 readonly error: u8;1897 }18981899 /** @name SpRuntimeTokenError (232) */1900 export interface SpRuntimeTokenError extends Enum {1901 readonly isNoFunds: boolean;1902 readonly isWouldDie: boolean;1903 readonly isBelowMinimum: boolean;1904 readonly isCannotCreate: boolean;1905 readonly isUnknownAsset: boolean;1906 readonly isFrozen: boolean;1907 readonly isUnsupported: boolean;1908 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';1909 }19101911 /** @name SpRuntimeArithmeticError (233) */1912 export interface SpRuntimeArithmeticError extends Enum {1913 readonly isUnderflow: boolean;1914 readonly isOverflow: boolean;1915 readonly isDivisionByZero: boolean;1916 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';1917 }19181919 /** @name PalletSudoError (234) */1920 export interface PalletSudoError extends Enum {1921 readonly isRequireSudo: boolean;1922 readonly type: 'RequireSudo';1923 }19241925 /** @name FrameSystemAccountInfo (235) */1926 export interface FrameSystemAccountInfo extends Struct {1927 readonly nonce: u32;1928 readonly consumers: u32;1929 readonly providers: u32;1930 readonly sufficients: u32;1931 readonly data: PalletBalancesAccountData;1932 }19331934 /** @name FrameSupportWeightsPerDispatchClassU64 (236) */1935 export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {1936 readonly normal: u64;1937 readonly operational: u64;1938 readonly mandatory: u64;1939 }19401941 /** @name SpRuntimeDigest (237) */1942 export interface SpRuntimeDigest extends Struct {1943 readonly logs: Vec<SpRuntimeDigestDigestItem>;1944 }19451946 /** @name SpRuntimeDigestDigestItem (239) */1947 export interface SpRuntimeDigestDigestItem extends Enum {1948 readonly isOther: boolean;1949 readonly asOther: Bytes;1950 readonly isConsensus: boolean;1951 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;1952 readonly isSeal: boolean;1953 readonly asSeal: ITuple<[U8aFixed, Bytes]>;1954 readonly isPreRuntime: boolean;1955 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;1956 readonly isRuntimeEnvironmentUpdated: boolean;1957 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';1958 }19591960 /** @name FrameSystemEventRecord (241) */1961 export interface FrameSystemEventRecord extends Struct {1962 readonly phase: FrameSystemPhase;1963 readonly event: Event;1964 readonly topics: Vec<H256>;1965 }19661967 /** @name FrameSystemEvent (243) */1968 export interface FrameSystemEvent extends Enum {1969 readonly isExtrinsicSuccess: boolean;1970 readonly asExtrinsicSuccess: {1971 readonly dispatchInfo: FrameSupportWeightsDispatchInfo;1972 } & Struct;1973 readonly isExtrinsicFailed: boolean;1974 readonly asExtrinsicFailed: {1975 readonly dispatchError: SpRuntimeDispatchError;1976 readonly dispatchInfo: FrameSupportWeightsDispatchInfo;1977 } & Struct;1978 readonly isCodeUpdated: boolean;1979 readonly isNewAccount: boolean;1980 readonly asNewAccount: {1981 readonly account: AccountId32;1982 } & Struct;1983 readonly isKilledAccount: boolean;1984 readonly asKilledAccount: {1985 readonly account: AccountId32;1986 } & Struct;1987 readonly isRemarked: boolean;1988 readonly asRemarked: {1989 readonly sender: AccountId32;1990 readonly hash_: H256;1991 } & Struct;1992 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';1993 }19941995 /** @name FrameSupportWeightsDispatchInfo (244) */1996 export interface FrameSupportWeightsDispatchInfo extends Struct {1997 readonly weight: u64;1998 readonly class: FrameSupportWeightsDispatchClass;1999 readonly paysFee: FrameSupportWeightsPays;2000 }20012002 /** @name FrameSupportWeightsDispatchClass (245) */2003 export interface FrameSupportWeightsDispatchClass extends Enum {2004 readonly isNormal: boolean;2005 readonly isOperational: boolean;2006 readonly isMandatory: boolean;2007 readonly type: 'Normal' | 'Operational' | 'Mandatory';2008 }20092010 /** @name FrameSupportWeightsPays (246) */2011 export interface FrameSupportWeightsPays extends Enum {2012 readonly isYes: boolean;2013 readonly isNo: boolean;2014 readonly type: 'Yes' | 'No';2015 }20162017 /** @name OrmlVestingModuleEvent (247) */2018 export interface OrmlVestingModuleEvent extends Enum {2019 readonly isVestingScheduleAdded: boolean;2020 readonly asVestingScheduleAdded: {2021 readonly from: AccountId32;2022 readonly to: AccountId32;2023 readonly vestingSchedule: OrmlVestingVestingSchedule;2024 } & Struct;2025 readonly isClaimed: boolean;2026 readonly asClaimed: {2027 readonly who: AccountId32;2028 readonly amount: u128;2029 } & Struct;2030 readonly isVestingSchedulesUpdated: boolean;2031 readonly asVestingSchedulesUpdated: {2032 readonly who: AccountId32;2033 } & Struct;2034 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';2035 }20362037 /** @name CumulusPalletXcmpQueueEvent (248) */2038 export interface CumulusPalletXcmpQueueEvent extends Enum {2039 readonly isSuccess: boolean;2040 readonly asSuccess: Option<H256>;2041 readonly isFail: boolean;2042 readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;2043 readonly isBadVersion: boolean;2044 readonly asBadVersion: Option<H256>;2045 readonly isBadFormat: boolean;2046 readonly asBadFormat: Option<H256>;2047 readonly isUpwardMessageSent: boolean;2048 readonly asUpwardMessageSent: Option<H256>;2049 readonly isXcmpMessageSent: boolean;2050 readonly asXcmpMessageSent: Option<H256>;2051 readonly isOverweightEnqueued: boolean;2052 readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;2053 readonly isOverweightServiced: boolean;2054 readonly asOverweightServiced: ITuple<[u64, u64]>;2055 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';2056 }20572058 /** @name PalletXcmEvent (249) */2059 export interface PalletXcmEvent extends Enum {2060 readonly isAttempted: boolean;2061 readonly asAttempted: XcmV2TraitsOutcome;2062 readonly isSent: boolean;2063 readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;2064 readonly isUnexpectedResponse: boolean;2065 readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;2066 readonly isResponseReady: boolean;2067 readonly asResponseReady: ITuple<[u64, XcmV2Response]>;2068 readonly isNotified: boolean;2069 readonly asNotified: ITuple<[u64, u8, u8]>;2070 readonly isNotifyOverweight: boolean;2071 readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;2072 readonly isNotifyDispatchError: boolean;2073 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;2074 readonly isNotifyDecodeFailed: boolean;2075 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;2076 readonly isInvalidResponder: boolean;2077 readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;2078 readonly isInvalidResponderVersion: boolean;2079 readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;2080 readonly isResponseTaken: boolean;2081 readonly asResponseTaken: u64;2082 readonly isAssetsTrapped: boolean;2083 readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;2084 readonly isVersionChangeNotified: boolean;2085 readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;2086 readonly isSupportedVersionChanged: boolean;2087 readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;2088 readonly isNotifyTargetSendFail: boolean;2089 readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;2090 readonly isNotifyTargetMigrationFail: boolean;2091 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;2092 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';2093 }20942095 /** @name XcmV2TraitsOutcome (250) */2096 export interface XcmV2TraitsOutcome extends Enum {2097 readonly isComplete: boolean;2098 readonly asComplete: u64;2099 readonly isIncomplete: boolean;2100 readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;2101 readonly isError: boolean;2102 readonly asError: XcmV2TraitsError;2103 readonly type: 'Complete' | 'Incomplete' | 'Error';2104 }21052106 /** @name CumulusPalletXcmEvent (252) */2107 export interface CumulusPalletXcmEvent extends Enum {2108 readonly isInvalidFormat: boolean;2109 readonly asInvalidFormat: U8aFixed;2110 readonly isUnsupportedVersion: boolean;2111 readonly asUnsupportedVersion: U8aFixed;2112 readonly isExecutedDownward: boolean;2113 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2114 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';2115 }21162117 /** @name CumulusPalletDmpQueueEvent (253) */2118 export interface CumulusPalletDmpQueueEvent extends Enum {2119 readonly isInvalidFormat: boolean;2120 readonly asInvalidFormat: U8aFixed;2121 readonly isUnsupportedVersion: boolean;2122 readonly asUnsupportedVersion: U8aFixed;2123 readonly isExecutedDownward: boolean;2124 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2125 readonly isWeightExhausted: boolean;2126 readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;2127 readonly isOverweightEnqueued: boolean;2128 readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;2129 readonly isOverweightServiced: boolean;2130 readonly asOverweightServiced: ITuple<[u64, u64]>;2131 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2132 }21332134 /** @name PalletUniqueRawEvent (254) */2135 export interface PalletUniqueRawEvent extends Enum {2136 readonly isCollectionSponsorRemoved: boolean;2137 readonly asCollectionSponsorRemoved: u32;2138 readonly isCollectionAdminAdded: boolean;2139 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2140 readonly isCollectionOwnedChanged: boolean;2141 readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;2142 readonly isCollectionSponsorSet: boolean;2143 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;2144 readonly isConstOnChainSchemaSet: boolean;2145 readonly asConstOnChainSchemaSet: u32;2146 readonly isSponsorshipConfirmed: boolean;2147 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;2148 readonly isCollectionAdminRemoved: boolean;2149 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2150 readonly isAllowListAddressRemoved: boolean;2151 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2152 readonly isAllowListAddressAdded: boolean;2153 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2154 readonly isCollectionLimitSet: boolean;2155 readonly asCollectionLimitSet: u32;2156 readonly isMintPermissionSet: boolean;2157 readonly asMintPermissionSet: u32;2158 readonly isOffchainSchemaSet: boolean;2159 readonly asOffchainSchemaSet: u32;2160 readonly isPublicAccessModeSet: boolean;2161 readonly asPublicAccessModeSet: ITuple<[u32, UpDataStructsAccessMode]>;2162 readonly isSchemaVersionSet: boolean;2163 readonly asSchemaVersionSet: u32;2164 readonly isVariableOnChainSchemaSet: boolean;2165 readonly asVariableOnChainSchemaSet: u32;2166 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'ConstOnChainSchemaSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'MintPermissionSet' | 'OffchainSchemaSet' | 'PublicAccessModeSet' | 'SchemaVersionSet' | 'VariableOnChainSchemaSet';2167 }21682169 /** @name PalletCommonEvent (255) */2170 export interface PalletCommonEvent extends Enum {2171 readonly isCollectionCreated: boolean;2172 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;2173 readonly isCollectionDestroyed: boolean;2174 readonly asCollectionDestroyed: u32;2175 readonly isItemCreated: boolean;2176 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2177 readonly isItemDestroyed: boolean;2178 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2179 readonly isTransfer: boolean;2180 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2181 readonly isApproved: boolean;2182 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2183 readonly isCollectionPropertySet: boolean;2184 readonly asCollectionPropertySet: ITuple<[u32, UpDataStructsProperty]>;2185 readonly isCollectionPropertyDeleted: boolean;2186 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;2187 readonly isTokenPropertySet: boolean;2188 readonly asTokenPropertySet: ITuple<[u32, u32, UpDataStructsProperty]>;2189 readonly isTokenPropertyDeleted: boolean;2190 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;2191 readonly isPropertyPermissionSet: boolean;2192 readonly asPropertyPermissionSet: ITuple<[u32, UpDataStructsPropertyKeyPermission]>;2193 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';2194 }21952196 /** @name PalletStructureEvent (256) */2197 export interface PalletStructureEvent extends Enum {2198 readonly isExecuted: boolean;2199 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;2200 readonly type: 'Executed';2201 }22022203 /** @name PalletEvmEvent (257) */2204 export interface PalletEvmEvent extends Enum {2205 readonly isLog: boolean;2206 readonly asLog: EthereumLog;2207 readonly isCreated: boolean;2208 readonly asCreated: H160;2209 readonly isCreatedFailed: boolean;2210 readonly asCreatedFailed: H160;2211 readonly isExecuted: boolean;2212 readonly asExecuted: H160;2213 readonly isExecutedFailed: boolean;2214 readonly asExecutedFailed: H160;2215 readonly isBalanceDeposit: boolean;2216 readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;2217 readonly isBalanceWithdraw: boolean;2218 readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;2219 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';2220 }22212222 /** @name EthereumLog (258) */2223 export interface EthereumLog extends Struct {2224 readonly address: H160;2225 readonly topics: Vec<H256>;2226 readonly data: Bytes;2227 }22282229 /** @name PalletEthereumEvent (259) */2230 export interface PalletEthereumEvent extends Enum {2231 readonly isExecuted: boolean;2232 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;2233 readonly type: 'Executed';2234 }22352236 /** @name EvmCoreErrorExitReason (260) */2237 export interface EvmCoreErrorExitReason extends Enum {2238 readonly isSucceed: boolean;2239 readonly asSucceed: EvmCoreErrorExitSucceed;2240 readonly isError: boolean;2241 readonly asError: EvmCoreErrorExitError;2242 readonly isRevert: boolean;2243 readonly asRevert: EvmCoreErrorExitRevert;2244 readonly isFatal: boolean;2245 readonly asFatal: EvmCoreErrorExitFatal;2246 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';2247 }22482249 /** @name EvmCoreErrorExitSucceed (261) */2250 export interface EvmCoreErrorExitSucceed extends Enum {2251 readonly isStopped: boolean;2252 readonly isReturned: boolean;2253 readonly isSuicided: boolean;2254 readonly type: 'Stopped' | 'Returned' | 'Suicided';2255 }22562257 /** @name EvmCoreErrorExitError (262) */2258 export interface EvmCoreErrorExitError extends Enum {2259 readonly isStackUnderflow: boolean;2260 readonly isStackOverflow: boolean;2261 readonly isInvalidJump: boolean;2262 readonly isInvalidRange: boolean;2263 readonly isDesignatedInvalid: boolean;2264 readonly isCallTooDeep: boolean;2265 readonly isCreateCollision: boolean;2266 readonly isCreateContractLimit: boolean;2267 readonly isInvalidCode: boolean;2268 readonly isOutOfOffset: boolean;2269 readonly isOutOfGas: boolean;2270 readonly isOutOfFund: boolean;2271 readonly isPcUnderflow: boolean;2272 readonly isCreateEmpty: boolean;2273 readonly isOther: boolean;2274 readonly asOther: Text;2275 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'InvalidCode' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other';2276 }22772278 /** @name EvmCoreErrorExitRevert (265) */2279 export interface EvmCoreErrorExitRevert extends Enum {2280 readonly isReverted: boolean;2281 readonly type: 'Reverted';2282 }22832284 /** @name EvmCoreErrorExitFatal (266) */2285 export interface EvmCoreErrorExitFatal extends Enum {2286 readonly isNotSupported: boolean;2287 readonly isUnhandledInterrupt: boolean;2288 readonly isCallErrorAsFatal: boolean;2289 readonly asCallErrorAsFatal: EvmCoreErrorExitError;2290 readonly isOther: boolean;2291 readonly asOther: Text;2292 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';2293 }22942295 /** @name FrameSystemPhase (267) */2296 export interface FrameSystemPhase extends Enum {2297 readonly isApplyExtrinsic: boolean;2298 readonly asApplyExtrinsic: u32;2299 readonly isFinalization: boolean;2300 readonly isInitialization: boolean;2301 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';2302 }23032304 /** @name FrameSystemLastRuntimeUpgradeInfo (269) */2305 export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {2306 readonly specVersion: Compact<u32>;2307 readonly specName: Text;2308 }23092310 /** @name FrameSystemLimitsBlockWeights (270) */2311 export interface FrameSystemLimitsBlockWeights extends Struct {2312 readonly baseBlock: u64;2313 readonly maxBlock: u64;2314 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;2315 }23162317 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (271) */2318 export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {2319 readonly normal: FrameSystemLimitsWeightsPerClass;2320 readonly operational: FrameSystemLimitsWeightsPerClass;2321 readonly mandatory: FrameSystemLimitsWeightsPerClass;2322 }23232324 /** @name FrameSystemLimitsWeightsPerClass (272) */2325 export interface FrameSystemLimitsWeightsPerClass extends Struct {2326 readonly baseExtrinsic: u64;2327 readonly maxExtrinsic: Option<u64>;2328 readonly maxTotal: Option<u64>;2329 readonly reserved: Option<u64>;2330 }23312332 /** @name FrameSystemLimitsBlockLength (274) */2333 export interface FrameSystemLimitsBlockLength extends Struct {2334 readonly max: FrameSupportWeightsPerDispatchClassU32;2335 }23362337 /** @name FrameSupportWeightsPerDispatchClassU32 (275) */2338 export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {2339 readonly normal: u32;2340 readonly operational: u32;2341 readonly mandatory: u32;2342 }23432344 /** @name FrameSupportWeightsRuntimeDbWeight (276) */2345 export interface FrameSupportWeightsRuntimeDbWeight extends Struct {2346 readonly read: u64;2347 readonly write: u64;2348 }23492350 /** @name SpVersionRuntimeVersion (277) */2351 export interface SpVersionRuntimeVersion extends Struct {2352 readonly specName: Text;2353 readonly implName: Text;2354 readonly authoringVersion: u32;2355 readonly specVersion: u32;2356 readonly implVersion: u32;2357 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;2358 readonly transactionVersion: u32;2359 readonly stateVersion: u8;2360 }23612362 /** @name FrameSystemError (281) */2363 export interface FrameSystemError extends Enum {2364 readonly isInvalidSpecName: boolean;2365 readonly isSpecVersionNeedsToIncrease: boolean;2366 readonly isFailedToExtractRuntimeVersion: boolean;2367 readonly isNonDefaultComposite: boolean;2368 readonly isNonZeroRefCount: boolean;2369 readonly isCallFiltered: boolean;2370 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';2371 }23722373 /** @name OrmlVestingModuleError (283) */2374 export interface OrmlVestingModuleError extends Enum {2375 readonly isZeroVestingPeriod: boolean;2376 readonly isZeroVestingPeriodCount: boolean;2377 readonly isInsufficientBalanceToLock: boolean;2378 readonly isTooManyVestingSchedules: boolean;2379 readonly isAmountLow: boolean;2380 readonly isMaxVestingSchedulesExceeded: boolean;2381 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2382 }23832384 /** @name CumulusPalletXcmpQueueInboundChannelDetails (285) */2385 export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2386 readonly sender: u32;2387 readonly state: CumulusPalletXcmpQueueInboundState;2388 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2389 }23902391 /** @name CumulusPalletXcmpQueueInboundState (286) */2392 export interface CumulusPalletXcmpQueueInboundState extends Enum {2393 readonly isOk: boolean;2394 readonly isSuspended: boolean;2395 readonly type: 'Ok' | 'Suspended';2396 }23972398 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (289) */2399 export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2400 readonly isConcatenatedVersionedXcm: boolean;2401 readonly isConcatenatedEncodedBlob: boolean;2402 readonly isSignals: boolean;2403 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2404 }24052406 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (292) */2407 export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2408 readonly recipient: u32;2409 readonly state: CumulusPalletXcmpQueueOutboundState;2410 readonly signalsExist: bool;2411 readonly firstIndex: u16;2412 readonly lastIndex: u16;2413 }24142415 /** @name CumulusPalletXcmpQueueOutboundState (293) */2416 export interface CumulusPalletXcmpQueueOutboundState extends Enum {2417 readonly isOk: boolean;2418 readonly isSuspended: boolean;2419 readonly type: 'Ok' | 'Suspended';2420 }24212422 /** @name CumulusPalletXcmpQueueQueueConfigData (295) */2423 export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2424 readonly suspendThreshold: u32;2425 readonly dropThreshold: u32;2426 readonly resumeThreshold: u32;2427 readonly thresholdWeight: u64;2428 readonly weightRestrictDecay: u64;2429 readonly xcmpMaxIndividualWeight: u64;2430 }24312432 /** @name CumulusPalletXcmpQueueError (297) */2433 export interface CumulusPalletXcmpQueueError extends Enum {2434 readonly isFailedToSend: boolean;2435 readonly isBadXcmOrigin: boolean;2436 readonly isBadXcm: boolean;2437 readonly isBadOverweightIndex: boolean;2438 readonly isWeightOverLimit: boolean;2439 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2440 }24412442 /** @name PalletXcmError (298) */2443 export interface PalletXcmError extends Enum {2444 readonly isUnreachable: boolean;2445 readonly isSendFailure: boolean;2446 readonly isFiltered: boolean;2447 readonly isUnweighableMessage: boolean;2448 readonly isDestinationNotInvertible: boolean;2449 readonly isEmpty: boolean;2450 readonly isCannotReanchor: boolean;2451 readonly isTooManyAssets: boolean;2452 readonly isInvalidOrigin: boolean;2453 readonly isBadVersion: boolean;2454 readonly isBadLocation: boolean;2455 readonly isNoSubscription: boolean;2456 readonly isAlreadySubscribed: boolean;2457 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2458 }24592460 /** @name CumulusPalletXcmError (299) */2461 export type CumulusPalletXcmError = Null;24622463 /** @name CumulusPalletDmpQueueConfigData (300) */2464 export interface CumulusPalletDmpQueueConfigData extends Struct {2465 readonly maxIndividual: u64;2466 }24672468 /** @name CumulusPalletDmpQueuePageIndexData (301) */2469 export interface CumulusPalletDmpQueuePageIndexData extends Struct {2470 readonly beginUsed: u32;2471 readonly endUsed: u32;2472 readonly overweightCount: u64;2473 }24742475 /** @name CumulusPalletDmpQueueError (304) */2476 export interface CumulusPalletDmpQueueError extends Enum {2477 readonly isUnknown: boolean;2478 readonly isOverLimit: boolean;2479 readonly type: 'Unknown' | 'OverLimit';2480 }24812482 /** @name PalletUniqueError (308) */2483 export interface PalletUniqueError extends Enum {2484 readonly isCollectionDecimalPointLimitExceeded: boolean;2485 readonly isConfirmUnsetSponsorFail: boolean;2486 readonly isEmptyArgument: boolean;2487 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2488 }24892490 /** @name UpDataStructsCollection (309) */2491 export interface UpDataStructsCollection extends Struct {2492 readonly owner: AccountId32;2493 readonly mode: UpDataStructsCollectionMode;2494 readonly access: UpDataStructsAccessMode;2495 readonly name: Vec<u16>;2496 readonly description: Vec<u16>;2497 readonly tokenPrefix: Bytes;2498 readonly mintMode: bool;2499 readonly schemaVersion: UpDataStructsSchemaVersion;2500 readonly sponsorship: UpDataStructsSponsorshipState;2501 readonly limits: UpDataStructsCollectionLimits;2502 readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;2503 }25042505 /** @name UpDataStructsSponsorshipState (310) */2506 export interface UpDataStructsSponsorshipState extends Enum {2507 readonly isDisabled: boolean;2508 readonly isUnconfirmed: boolean;2509 readonly asUnconfirmed: AccountId32;2510 readonly isConfirmed: boolean;2511 readonly asConfirmed: AccountId32;2512 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';2513 }25142515 /** @name UpDataStructsProperties (311) */2516 export interface UpDataStructsProperties extends Struct {2517 readonly map: BTreeMap<Bytes, Bytes>;2518 readonly consumedSpace: u32;2519 readonly spaceLimit: u32;2520 }25212522 /** @name UpDataStructsCollectionField (321) */2523 export interface UpDataStructsCollectionField extends Enum {2524 readonly isVariableOnChainSchema: boolean;2525 readonly isConstOnChainSchema: boolean;2526 readonly isOffchainSchema: boolean;2527 readonly type: 'VariableOnChainSchema' | 'ConstOnChainSchema' | 'OffchainSchema';2528 }25292530 /** @name UpDataStructsCollectionStats (324) */2531 export interface UpDataStructsCollectionStats extends Struct {2532 readonly created: u32;2533 readonly destroyed: u32;2534 readonly alive: u32;2535 }25362537 /** @name PhantomTypeUpDataStructs (325) */2538 export interface PhantomTypeUpDataStructs extends Vec<UpDataStructsRpcCollection> {}25392540 /** @name UpDataStructsRpcCollection (326) */2541 export interface UpDataStructsRpcCollection extends Struct {2542 readonly owner: AccountId32;2543 readonly mode: UpDataStructsCollectionMode;2544 readonly access: UpDataStructsAccessMode;2545 readonly name: Vec<u16>;2546 readonly description: Vec<u16>;2547 readonly tokenPrefix: Bytes;2548 readonly mintMode: bool;2549 readonly offchainSchema: Bytes;2550 readonly schemaVersion: UpDataStructsSchemaVersion;2551 readonly sponsorship: UpDataStructsSponsorshipState;2552 readonly limits: UpDataStructsCollectionLimits;2553 readonly variableOnChainSchema: Bytes;2554 readonly constOnChainSchema: Bytes;2555 readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;2556 }25572558 /** @name PalletCommonError (328) */2559 export interface PalletCommonError extends Enum {2560 readonly isCollectionNotFound: boolean;2561 readonly isMustBeTokenOwner: boolean;2562 readonly isNoPermission: boolean;2563 readonly isPublicMintingNotAllowed: boolean;2564 readonly isAddressNotInAllowlist: boolean;2565 readonly isCollectionNameLimitExceeded: boolean;2566 readonly isCollectionDescriptionLimitExceeded: boolean;2567 readonly isCollectionTokenPrefixLimitExceeded: boolean;2568 readonly isTotalCollectionsLimitExceeded: boolean;2569 readonly isTokenVariableDataLimitExceeded: boolean;2570 readonly isCollectionAdminCountExceeded: boolean;2571 readonly isCollectionLimitBoundsExceeded: boolean;2572 readonly isOwnerPermissionsCantBeReverted: boolean;2573 readonly isTransferNotAllowed: boolean;2574 readonly isAccountTokenLimitExceeded: boolean;2575 readonly isCollectionTokenLimitExceeded: boolean;2576 readonly isMetadataFlagFrozen: boolean;2577 readonly isTokenNotFound: boolean;2578 readonly isTokenValueTooLow: boolean;2579 readonly isApprovedValueTooLow: boolean;2580 readonly isCantApproveMoreThanOwned: boolean;2581 readonly isAddressIsZero: boolean;2582 readonly isUnsupportedOperation: boolean;2583 readonly isNotSufficientFounds: boolean;2584 readonly isNestingIsDisabled: boolean;2585 readonly isOnlyOwnerAllowedToNest: boolean;2586 readonly isSourceCollectionIsNotAllowedToNest: boolean;2587 readonly isCollectionFieldSizeExceeded: boolean;2588 readonly isNoSpaceForProperty: boolean;2589 readonly isPropertyLimitReached: boolean;2590 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' | 'NoSpaceForProperty' | 'PropertyLimitReached';2591 }25922593 /** @name PalletFungibleError (330) */2594 export interface PalletFungibleError extends Enum {2595 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;2596 readonly isFungibleItemsHaveNoId: boolean;2597 readonly isFungibleItemsDontHaveData: boolean;2598 readonly isFungibleDisallowsNesting: boolean;2599 readonly isPropertiesNotAllowed: boolean;2600 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'PropertiesNotAllowed';2601 }26022603 /** @name PalletRefungibleItemData (331) */2604 export interface PalletRefungibleItemData extends Struct {2605 readonly constData: Bytes;2606 readonly variableData: Bytes;2607 }26082609 /** @name PalletRefungibleError (335) */2610 export interface PalletRefungibleError extends Enum {2611 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;2612 readonly isWrongRefungiblePieces: boolean;2613 readonly isRefungibleDisallowsNesting: boolean;2614 readonly isPropertiesNotAllowed: boolean;2615 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'PropertiesNotAllowed';2616 }26172618 /** @name PalletNonfungibleItemData (336) */2619 export interface PalletNonfungibleItemData extends Struct {2620 readonly constData: Bytes;2621 readonly variableData: Bytes;2622 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2623 }26242625 /** @name PalletNonfungibleError (337) */2626 export interface PalletNonfungibleError extends Enum {2627 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;2628 readonly isNonfungibleItemsHaveNoAmount: boolean;2629 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount';2630 }26312632 /** @name PalletStructureError (338) */2633 export interface PalletStructureError extends Enum {2634 readonly isOuroborosDetected: boolean;2635 readonly isDepthLimit: boolean;2636 readonly isTokenNotFound: boolean;2637 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'TokenNotFound';2638 }26392640 /** @name PalletEvmError (340) */2641 export interface PalletEvmError extends Enum {2642 readonly isBalanceLow: boolean;2643 readonly isFeeOverflow: boolean;2644 readonly isPaymentOverflow: boolean;2645 readonly isWithdrawFailed: boolean;2646 readonly isGasPriceTooLow: boolean;2647 readonly isInvalidNonce: boolean;2648 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';2649 }26502651 /** @name FpRpcTransactionStatus (343) */2652 export interface FpRpcTransactionStatus extends Struct {2653 readonly transactionHash: H256;2654 readonly transactionIndex: u32;2655 readonly from: H160;2656 readonly to: Option<H160>;2657 readonly contractAddress: Option<H160>;2658 readonly logs: Vec<EthereumLog>;2659 readonly logsBloom: EthbloomBloom;2660 }26612662 /** @name EthbloomBloom (346) */2663 export interface EthbloomBloom extends U8aFixed {}26642665 /** @name EthereumReceiptReceiptV3 (348) */2666 export interface EthereumReceiptReceiptV3 extends Enum {2667 readonly isLegacy: boolean;2668 readonly asLegacy: EthereumReceiptEip658ReceiptData;2669 readonly isEip2930: boolean;2670 readonly asEip2930: EthereumReceiptEip658ReceiptData;2671 readonly isEip1559: boolean;2672 readonly asEip1559: EthereumReceiptEip658ReceiptData;2673 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';2674 }26752676 /** @name EthereumReceiptEip658ReceiptData (349) */2677 export interface EthereumReceiptEip658ReceiptData extends Struct {2678 readonly statusCode: u8;2679 readonly usedGas: U256;2680 readonly logsBloom: EthbloomBloom;2681 readonly logs: Vec<EthereumLog>;2682 }26832684 /** @name EthereumBlock (350) */2685 export interface EthereumBlock extends Struct {2686 readonly header: EthereumHeader;2687 readonly transactions: Vec<EthereumTransactionTransactionV2>;2688 readonly ommers: Vec<EthereumHeader>;2689 }26902691 /** @name EthereumHeader (351) */2692 export interface EthereumHeader extends Struct {2693 readonly parentHash: H256;2694 readonly ommersHash: H256;2695 readonly beneficiary: H160;2696 readonly stateRoot: H256;2697 readonly transactionsRoot: H256;2698 readonly receiptsRoot: H256;2699 readonly logsBloom: EthbloomBloom;2700 readonly difficulty: U256;2701 readonly number: U256;2702 readonly gasLimit: U256;2703 readonly gasUsed: U256;2704 readonly timestamp: u64;2705 readonly extraData: Bytes;2706 readonly mixHash: H256;2707 readonly nonce: EthereumTypesHashH64;2708 }27092710 /** @name EthereumTypesHashH64 (352) */2711 export interface EthereumTypesHashH64 extends U8aFixed {}27122713 /** @name PalletEthereumError (357) */2714 export interface PalletEthereumError extends Enum {2715 readonly isInvalidSignature: boolean;2716 readonly isPreLogExists: boolean;2717 readonly type: 'InvalidSignature' | 'PreLogExists';2718 }27192720 /** @name PalletEvmCoderSubstrateError (358) */2721 export interface PalletEvmCoderSubstrateError extends Enum {2722 readonly isOutOfGas: boolean;2723 readonly isOutOfFund: boolean;2724 readonly type: 'OutOfGas' | 'OutOfFund';2725 }27262727 /** @name PalletEvmContractHelpersSponsoringModeT (359) */2728 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {2729 readonly isDisabled: boolean;2730 readonly isAllowlisted: boolean;2731 readonly isGenerous: boolean;2732 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';2733 }27342735 /** @name PalletEvmContractHelpersError (361) */2736 export interface PalletEvmContractHelpersError extends Enum {2737 readonly isNoPermission: boolean;2738 readonly type: 'NoPermission';2739 }27402741 /** @name PalletEvmMigrationError (362) */2742 export interface PalletEvmMigrationError extends Enum {2743 readonly isAccountNotEmpty: boolean;2744 readonly isAccountIsNotMigrating: boolean;2745 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';2746 }27472748 /** @name SpRuntimeMultiSignature (364) */2749 export interface SpRuntimeMultiSignature extends Enum {2750 readonly isEd25519: boolean;2751 readonly asEd25519: SpCoreEd25519Signature;2752 readonly isSr25519: boolean;2753 readonly asSr25519: SpCoreSr25519Signature;2754 readonly isEcdsa: boolean;2755 readonly asEcdsa: SpCoreEcdsaSignature;2756 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';2757 }27582759 /** @name SpCoreEd25519Signature (365) */2760 export interface SpCoreEd25519Signature extends U8aFixed {}27612762 /** @name SpCoreSr25519Signature (367) */2763 export interface SpCoreSr25519Signature extends U8aFixed {}27642765 /** @name SpCoreEcdsaSignature (368) */2766 export interface SpCoreEcdsaSignature extends U8aFixed {}27672768 /** @name FrameSystemExtensionsCheckSpecVersion (371) */2769 export type FrameSystemExtensionsCheckSpecVersion = Null;27702771 /** @name FrameSystemExtensionsCheckGenesis (372) */2772 export type FrameSystemExtensionsCheckGenesis = Null;27732774 /** @name FrameSystemExtensionsCheckNonce (375) */2775 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}27762777 /** @name FrameSystemExtensionsCheckWeight (376) */2778 export type FrameSystemExtensionsCheckWeight = Null;27792780 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (377) */2781 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}27822783 /** @name OpalRuntimeRuntime (378) */2784 export type OpalRuntimeRuntime = Null;27852786} // declare module1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34declare module '@polkadot/types/lookup' {5 import type { BTreeMap, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';6 import type { ITuple } from '@polkadot/types-codec/types';7 import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';8 import type { Event } from '@polkadot/types/interfaces/system';910 /** @name PolkadotPrimitivesV1PersistedValidationData (2) */11 export interface PolkadotPrimitivesV1PersistedValidationData extends Struct {12 readonly parentHead: Bytes;13 readonly relayParentNumber: u32;14 readonly relayParentStorageRoot: H256;15 readonly maxPovSize: u32;16 }1718 /** @name PolkadotPrimitivesV1UpgradeRestriction (9) */19 export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {20 readonly isPresent: boolean;21 readonly type: 'Present';22 }2324 /** @name SpTrieStorageProof (10) */25 export interface SpTrieStorageProof extends Struct {26 readonly trieNodes: Vec<Bytes>;27 }2829 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (13) */30 export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {31 readonly dmqMqcHead: H256;32 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;33 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;34 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;35 }3637 /** @name PolkadotPrimitivesV1AbridgedHrmpChannel (18) */38 export interface PolkadotPrimitivesV1AbridgedHrmpChannel extends Struct {39 readonly maxCapacity: u32;40 readonly maxTotalSize: u32;41 readonly maxMessageSize: u32;42 readonly msgCount: u32;43 readonly totalSize: u32;44 readonly mqcHead: Option<H256>;45 }4647 /** @name PolkadotPrimitivesV1AbridgedHostConfiguration (20) */48 export interface PolkadotPrimitivesV1AbridgedHostConfiguration extends Struct {49 readonly maxCodeSize: u32;50 readonly maxHeadDataSize: u32;51 readonly maxUpwardQueueCount: u32;52 readonly maxUpwardQueueSize: u32;53 readonly maxUpwardMessageSize: u32;54 readonly maxUpwardMessageNumPerCandidate: u32;55 readonly hrmpMaxMessageNumPerCandidate: u32;56 readonly validationUpgradeCooldown: u32;57 readonly validationUpgradeDelay: u32;58 }5960 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (26) */61 export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {62 readonly recipient: u32;63 readonly data: Bytes;64 }6566 /** @name CumulusPalletParachainSystemCall (28) */67 export interface CumulusPalletParachainSystemCall extends Enum {68 readonly isSetValidationData: boolean;69 readonly asSetValidationData: {70 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;71 } & Struct;72 readonly isSudoSendUpwardMessage: boolean;73 readonly asSudoSendUpwardMessage: {74 readonly message: Bytes;75 } & Struct;76 readonly isAuthorizeUpgrade: boolean;77 readonly asAuthorizeUpgrade: {78 readonly codeHash: H256;79 } & Struct;80 readonly isEnactAuthorizedUpgrade: boolean;81 readonly asEnactAuthorizedUpgrade: {82 readonly code: Bytes;83 } & Struct;84 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';85 }8687 /** @name CumulusPrimitivesParachainInherentParachainInherentData (29) */88 export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {89 readonly validationData: PolkadotPrimitivesV1PersistedValidationData;90 readonly relayChainState: SpTrieStorageProof;91 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;92 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;93 }9495 /** @name PolkadotCorePrimitivesInboundDownwardMessage (31) */96 export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {97 readonly sentAt: u32;98 readonly msg: Bytes;99 }100101 /** @name PolkadotCorePrimitivesInboundHrmpMessage (34) */102 export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {103 readonly sentAt: u32;104 readonly data: Bytes;105 }106107 /** @name CumulusPalletParachainSystemEvent (37) */108 export interface CumulusPalletParachainSystemEvent extends Enum {109 readonly isValidationFunctionStored: boolean;110 readonly isValidationFunctionApplied: boolean;111 readonly asValidationFunctionApplied: u32;112 readonly isValidationFunctionDiscarded: boolean;113 readonly isUpgradeAuthorized: boolean;114 readonly asUpgradeAuthorized: H256;115 readonly isDownwardMessagesReceived: boolean;116 readonly asDownwardMessagesReceived: u32;117 readonly isDownwardMessagesProcessed: boolean;118 readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;119 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';120 }121122 /** @name CumulusPalletParachainSystemError (38) */123 export interface CumulusPalletParachainSystemError extends Enum {124 readonly isOverlappingUpgrades: boolean;125 readonly isProhibitedByPolkadot: boolean;126 readonly isTooBig: boolean;127 readonly isValidationDataNotAvailable: boolean;128 readonly isHostConfigurationNotAvailable: boolean;129 readonly isNotScheduled: boolean;130 readonly isNothingAuthorized: boolean;131 readonly isUnauthorized: boolean;132 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';133 }134135 /** @name PalletBalancesAccountData (41) */136 export interface PalletBalancesAccountData extends Struct {137 readonly free: u128;138 readonly reserved: u128;139 readonly miscFrozen: u128;140 readonly feeFrozen: u128;141 }142143 /** @name PalletBalancesBalanceLock (43) */144 export interface PalletBalancesBalanceLock extends Struct {145 readonly id: U8aFixed;146 readonly amount: u128;147 readonly reasons: PalletBalancesReasons;148 }149150 /** @name PalletBalancesReasons (45) */151 export interface PalletBalancesReasons extends Enum {152 readonly isFee: boolean;153 readonly isMisc: boolean;154 readonly isAll: boolean;155 readonly type: 'Fee' | 'Misc' | 'All';156 }157158 /** @name PalletBalancesReserveData (48) */159 export interface PalletBalancesReserveData extends Struct {160 readonly id: U8aFixed;161 readonly amount: u128;162 }163164 /** @name PalletBalancesReleases (50) */165 export interface PalletBalancesReleases extends Enum {166 readonly isV100: boolean;167 readonly isV200: boolean;168 readonly type: 'V100' | 'V200';169 }170171 /** @name PalletBalancesCall (51) */172 export interface PalletBalancesCall extends Enum {173 readonly isTransfer: boolean;174 readonly asTransfer: {175 readonly dest: MultiAddress;176 readonly value: Compact<u128>;177 } & Struct;178 readonly isSetBalance: boolean;179 readonly asSetBalance: {180 readonly who: MultiAddress;181 readonly newFree: Compact<u128>;182 readonly newReserved: Compact<u128>;183 } & Struct;184 readonly isForceTransfer: boolean;185 readonly asForceTransfer: {186 readonly source: MultiAddress;187 readonly dest: MultiAddress;188 readonly value: Compact<u128>;189 } & Struct;190 readonly isTransferKeepAlive: boolean;191 readonly asTransferKeepAlive: {192 readonly dest: MultiAddress;193 readonly value: Compact<u128>;194 } & Struct;195 readonly isTransferAll: boolean;196 readonly asTransferAll: {197 readonly dest: MultiAddress;198 readonly keepAlive: bool;199 } & Struct;200 readonly isForceUnreserve: boolean;201 readonly asForceUnreserve: {202 readonly who: MultiAddress;203 readonly amount: u128;204 } & Struct;205 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';206 }207208 /** @name PalletBalancesEvent (57) */209 export interface PalletBalancesEvent extends Enum {210 readonly isEndowed: boolean;211 readonly asEndowed: {212 readonly account: AccountId32;213 readonly freeBalance: u128;214 } & Struct;215 readonly isDustLost: boolean;216 readonly asDustLost: {217 readonly account: AccountId32;218 readonly amount: u128;219 } & Struct;220 readonly isTransfer: boolean;221 readonly asTransfer: {222 readonly from: AccountId32;223 readonly to: AccountId32;224 readonly amount: u128;225 } & Struct;226 readonly isBalanceSet: boolean;227 readonly asBalanceSet: {228 readonly who: AccountId32;229 readonly free: u128;230 readonly reserved: u128;231 } & Struct;232 readonly isReserved: boolean;233 readonly asReserved: {234 readonly who: AccountId32;235 readonly amount: u128;236 } & Struct;237 readonly isUnreserved: boolean;238 readonly asUnreserved: {239 readonly who: AccountId32;240 readonly amount: u128;241 } & Struct;242 readonly isReserveRepatriated: boolean;243 readonly asReserveRepatriated: {244 readonly from: AccountId32;245 readonly to: AccountId32;246 readonly amount: u128;247 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;248 } & Struct;249 readonly isDeposit: boolean;250 readonly asDeposit: {251 readonly who: AccountId32;252 readonly amount: u128;253 } & Struct;254 readonly isWithdraw: boolean;255 readonly asWithdraw: {256 readonly who: AccountId32;257 readonly amount: u128;258 } & Struct;259 readonly isSlashed: boolean;260 readonly asSlashed: {261 readonly who: AccountId32;262 readonly amount: u128;263 } & Struct;264 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';265 }266267 /** @name FrameSupportTokensMiscBalanceStatus (58) */268 export interface FrameSupportTokensMiscBalanceStatus extends Enum {269 readonly isFree: boolean;270 readonly isReserved: boolean;271 readonly type: 'Free' | 'Reserved';272 }273274 /** @name PalletBalancesError (59) */275 export interface PalletBalancesError extends Enum {276 readonly isVestingBalance: boolean;277 readonly isLiquidityRestrictions: boolean;278 readonly isInsufficientBalance: boolean;279 readonly isExistentialDeposit: boolean;280 readonly isKeepAlive: boolean;281 readonly isExistingVestingSchedule: boolean;282 readonly isDeadAccount: boolean;283 readonly isTooManyReserves: boolean;284 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';285 }286287 /** @name PalletTimestampCall (62) */288 export interface PalletTimestampCall extends Enum {289 readonly isSet: boolean;290 readonly asSet: {291 readonly now: Compact<u64>;292 } & Struct;293 readonly type: 'Set';294 }295296 /** @name PalletTransactionPaymentReleases (65) */297 export interface PalletTransactionPaymentReleases extends Enum {298 readonly isV1Ancient: boolean;299 readonly isV2: boolean;300 readonly type: 'V1Ancient' | 'V2';301 }302303 /** @name FrameSupportWeightsWeightToFeeCoefficient (67) */304 export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {305 readonly coeffInteger: u128;306 readonly coeffFrac: Perbill;307 readonly negative: bool;308 readonly degree: u8;309 }310311 /** @name PalletTreasuryProposal (69) */312 export interface PalletTreasuryProposal extends Struct {313 readonly proposer: AccountId32;314 readonly value: u128;315 readonly beneficiary: AccountId32;316 readonly bond: u128;317 }318319 /** @name PalletTreasuryCall (72) */320 export interface PalletTreasuryCall extends Enum {321 readonly isProposeSpend: boolean;322 readonly asProposeSpend: {323 readonly value: Compact<u128>;324 readonly beneficiary: MultiAddress;325 } & Struct;326 readonly isRejectProposal: boolean;327 readonly asRejectProposal: {328 readonly proposalId: Compact<u32>;329 } & Struct;330 readonly isApproveProposal: boolean;331 readonly asApproveProposal: {332 readonly proposalId: Compact<u32>;333 } & Struct;334 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';335 }336337 /** @name PalletTreasuryEvent (74) */338 export interface PalletTreasuryEvent extends Enum {339 readonly isProposed: boolean;340 readonly asProposed: {341 readonly proposalIndex: u32;342 } & Struct;343 readonly isSpending: boolean;344 readonly asSpending: {345 readonly budgetRemaining: u128;346 } & Struct;347 readonly isAwarded: boolean;348 readonly asAwarded: {349 readonly proposalIndex: u32;350 readonly award: u128;351 readonly account: AccountId32;352 } & Struct;353 readonly isRejected: boolean;354 readonly asRejected: {355 readonly proposalIndex: u32;356 readonly slashed: u128;357 } & Struct;358 readonly isBurnt: boolean;359 readonly asBurnt: {360 readonly burntFunds: u128;361 } & Struct;362 readonly isRollover: boolean;363 readonly asRollover: {364 readonly rolloverBalance: u128;365 } & Struct;366 readonly isDeposit: boolean;367 readonly asDeposit: {368 readonly value: u128;369 } & Struct;370 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';371 }372373 /** @name FrameSupportPalletId (77) */374 export interface FrameSupportPalletId extends U8aFixed {}375376 /** @name PalletTreasuryError (78) */377 export interface PalletTreasuryError extends Enum {378 readonly isInsufficientProposersBalance: boolean;379 readonly isInvalidIndex: boolean;380 readonly isTooManyApprovals: boolean;381 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';382 }383384 /** @name PalletSudoCall (79) */385 export interface PalletSudoCall extends Enum {386 readonly isSudo: boolean;387 readonly asSudo: {388 readonly call: Call;389 } & Struct;390 readonly isSudoUncheckedWeight: boolean;391 readonly asSudoUncheckedWeight: {392 readonly call: Call;393 readonly weight: u64;394 } & Struct;395 readonly isSetKey: boolean;396 readonly asSetKey: {397 readonly new_: MultiAddress;398 } & Struct;399 readonly isSudoAs: boolean;400 readonly asSudoAs: {401 readonly who: MultiAddress;402 readonly call: Call;403 } & Struct;404 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';405 }406407 /** @name FrameSystemCall (81) */408 export interface FrameSystemCall extends Enum {409 readonly isFillBlock: boolean;410 readonly asFillBlock: {411 readonly ratio: Perbill;412 } & Struct;413 readonly isRemark: boolean;414 readonly asRemark: {415 readonly remark: Bytes;416 } & Struct;417 readonly isSetHeapPages: boolean;418 readonly asSetHeapPages: {419 readonly pages: u64;420 } & Struct;421 readonly isSetCode: boolean;422 readonly asSetCode: {423 readonly code: Bytes;424 } & Struct;425 readonly isSetCodeWithoutChecks: boolean;426 readonly asSetCodeWithoutChecks: {427 readonly code: Bytes;428 } & Struct;429 readonly isSetStorage: boolean;430 readonly asSetStorage: {431 readonly items: Vec<ITuple<[Bytes, Bytes]>>;432 } & Struct;433 readonly isKillStorage: boolean;434 readonly asKillStorage: {435 readonly keys_: Vec<Bytes>;436 } & Struct;437 readonly isKillPrefix: boolean;438 readonly asKillPrefix: {439 readonly prefix: Bytes;440 readonly subkeys: u32;441 } & Struct;442 readonly isRemarkWithEvent: boolean;443 readonly asRemarkWithEvent: {444 readonly remark: Bytes;445 } & Struct;446 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';447 }448449 /** @name OrmlVestingModuleCall (84) */450 export interface OrmlVestingModuleCall extends Enum {451 readonly isClaim: boolean;452 readonly isVestedTransfer: boolean;453 readonly asVestedTransfer: {454 readonly dest: MultiAddress;455 readonly schedule: OrmlVestingVestingSchedule;456 } & Struct;457 readonly isUpdateVestingSchedules: boolean;458 readonly asUpdateVestingSchedules: {459 readonly who: MultiAddress;460 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;461 } & Struct;462 readonly isClaimFor: boolean;463 readonly asClaimFor: {464 readonly dest: MultiAddress;465 } & Struct;466 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';467 }468469 /** @name OrmlVestingVestingSchedule (85) */470 export interface OrmlVestingVestingSchedule extends Struct {471 readonly start: u32;472 readonly period: u32;473 readonly periodCount: u32;474 readonly perPeriod: Compact<u128>;475 }476477 /** @name CumulusPalletXcmpQueueCall (87) */478 export interface CumulusPalletXcmpQueueCall extends Enum {479 readonly isServiceOverweight: boolean;480 readonly asServiceOverweight: {481 readonly index: u64;482 readonly weightLimit: u64;483 } & Struct;484 readonly isSuspendXcmExecution: boolean;485 readonly isResumeXcmExecution: boolean;486 readonly isUpdateSuspendThreshold: boolean;487 readonly asUpdateSuspendThreshold: {488 readonly new_: u32;489 } & Struct;490 readonly isUpdateDropThreshold: boolean;491 readonly asUpdateDropThreshold: {492 readonly new_: u32;493 } & Struct;494 readonly isUpdateResumeThreshold: boolean;495 readonly asUpdateResumeThreshold: {496 readonly new_: u32;497 } & Struct;498 readonly isUpdateThresholdWeight: boolean;499 readonly asUpdateThresholdWeight: {500 readonly new_: u64;501 } & Struct;502 readonly isUpdateWeightRestrictDecay: boolean;503 readonly asUpdateWeightRestrictDecay: {504 readonly new_: u64;505 } & Struct;506 readonly isUpdateXcmpMaxIndividualWeight: boolean;507 readonly asUpdateXcmpMaxIndividualWeight: {508 readonly new_: u64;509 } & Struct;510 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';511 }512513 /** @name PalletXcmCall (88) */514 export interface PalletXcmCall extends Enum {515 readonly isSend: boolean;516 readonly asSend: {517 readonly dest: XcmVersionedMultiLocation;518 readonly message: XcmVersionedXcm;519 } & Struct;520 readonly isTeleportAssets: boolean;521 readonly asTeleportAssets: {522 readonly dest: XcmVersionedMultiLocation;523 readonly beneficiary: XcmVersionedMultiLocation;524 readonly assets: XcmVersionedMultiAssets;525 readonly feeAssetItem: u32;526 } & Struct;527 readonly isReserveTransferAssets: boolean;528 readonly asReserveTransferAssets: {529 readonly dest: XcmVersionedMultiLocation;530 readonly beneficiary: XcmVersionedMultiLocation;531 readonly assets: XcmVersionedMultiAssets;532 readonly feeAssetItem: u32;533 } & Struct;534 readonly isExecute: boolean;535 readonly asExecute: {536 readonly message: XcmVersionedXcm;537 readonly maxWeight: u64;538 } & Struct;539 readonly isForceXcmVersion: boolean;540 readonly asForceXcmVersion: {541 readonly location: XcmV1MultiLocation;542 readonly xcmVersion: u32;543 } & Struct;544 readonly isForceDefaultXcmVersion: boolean;545 readonly asForceDefaultXcmVersion: {546 readonly maybeXcmVersion: Option<u32>;547 } & Struct;548 readonly isForceSubscribeVersionNotify: boolean;549 readonly asForceSubscribeVersionNotify: {550 readonly location: XcmVersionedMultiLocation;551 } & Struct;552 readonly isForceUnsubscribeVersionNotify: boolean;553 readonly asForceUnsubscribeVersionNotify: {554 readonly location: XcmVersionedMultiLocation;555 } & Struct;556 readonly isLimitedReserveTransferAssets: boolean;557 readonly asLimitedReserveTransferAssets: {558 readonly dest: XcmVersionedMultiLocation;559 readonly beneficiary: XcmVersionedMultiLocation;560 readonly assets: XcmVersionedMultiAssets;561 readonly feeAssetItem: u32;562 readonly weightLimit: XcmV2WeightLimit;563 } & Struct;564 readonly isLimitedTeleportAssets: boolean;565 readonly asLimitedTeleportAssets: {566 readonly dest: XcmVersionedMultiLocation;567 readonly beneficiary: XcmVersionedMultiLocation;568 readonly assets: XcmVersionedMultiAssets;569 readonly feeAssetItem: u32;570 readonly weightLimit: XcmV2WeightLimit;571 } & Struct;572 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';573 }574575 /** @name XcmVersionedMultiLocation (89) */576 export interface XcmVersionedMultiLocation extends Enum {577 readonly isV0: boolean;578 readonly asV0: XcmV0MultiLocation;579 readonly isV1: boolean;580 readonly asV1: XcmV1MultiLocation;581 readonly type: 'V0' | 'V1';582 }583584 /** @name XcmV0MultiLocation (90) */585 export interface XcmV0MultiLocation extends Enum {586 readonly isNull: boolean;587 readonly isX1: boolean;588 readonly asX1: XcmV0Junction;589 readonly isX2: boolean;590 readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;591 readonly isX3: boolean;592 readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;593 readonly isX4: boolean;594 readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;595 readonly isX5: boolean;596 readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;597 readonly isX6: boolean;598 readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;599 readonly isX7: boolean;600 readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;601 readonly isX8: boolean;602 readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;603 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';604 }605606 /** @name XcmV0Junction (91) */607 export interface XcmV0Junction extends Enum {608 readonly isParent: boolean;609 readonly isParachain: boolean;610 readonly asParachain: Compact<u32>;611 readonly isAccountId32: boolean;612 readonly asAccountId32: {613 readonly network: XcmV0JunctionNetworkId;614 readonly id: U8aFixed;615 } & Struct;616 readonly isAccountIndex64: boolean;617 readonly asAccountIndex64: {618 readonly network: XcmV0JunctionNetworkId;619 readonly index: Compact<u64>;620 } & Struct;621 readonly isAccountKey20: boolean;622 readonly asAccountKey20: {623 readonly network: XcmV0JunctionNetworkId;624 readonly key: U8aFixed;625 } & Struct;626 readonly isPalletInstance: boolean;627 readonly asPalletInstance: u8;628 readonly isGeneralIndex: boolean;629 readonly asGeneralIndex: Compact<u128>;630 readonly isGeneralKey: boolean;631 readonly asGeneralKey: Bytes;632 readonly isOnlyChild: boolean;633 readonly isPlurality: boolean;634 readonly asPlurality: {635 readonly id: XcmV0JunctionBodyId;636 readonly part: XcmV0JunctionBodyPart;637 } & Struct;638 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';639 }640641 /** @name XcmV0JunctionNetworkId (92) */642 export interface XcmV0JunctionNetworkId extends Enum {643 readonly isAny: boolean;644 readonly isNamed: boolean;645 readonly asNamed: Bytes;646 readonly isPolkadot: boolean;647 readonly isKusama: boolean;648 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';649 }650651 /** @name XcmV0JunctionBodyId (93) */652 export interface XcmV0JunctionBodyId extends Enum {653 readonly isUnit: boolean;654 readonly isNamed: boolean;655 readonly asNamed: Bytes;656 readonly isIndex: boolean;657 readonly asIndex: Compact<u32>;658 readonly isExecutive: boolean;659 readonly isTechnical: boolean;660 readonly isLegislative: boolean;661 readonly isJudicial: boolean;662 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';663 }664665 /** @name XcmV0JunctionBodyPart (94) */666 export interface XcmV0JunctionBodyPart extends Enum {667 readonly isVoice: boolean;668 readonly isMembers: boolean;669 readonly asMembers: {670 readonly count: Compact<u32>;671 } & Struct;672 readonly isFraction: boolean;673 readonly asFraction: {674 readonly nom: Compact<u32>;675 readonly denom: Compact<u32>;676 } & Struct;677 readonly isAtLeastProportion: boolean;678 readonly asAtLeastProportion: {679 readonly nom: Compact<u32>;680 readonly denom: Compact<u32>;681 } & Struct;682 readonly isMoreThanProportion: boolean;683 readonly asMoreThanProportion: {684 readonly nom: Compact<u32>;685 readonly denom: Compact<u32>;686 } & Struct;687 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';688 }689690 /** @name XcmV1MultiLocation (95) */691 export interface XcmV1MultiLocation extends Struct {692 readonly parents: u8;693 readonly interior: XcmV1MultilocationJunctions;694 }695696 /** @name XcmV1MultilocationJunctions (96) */697 export interface XcmV1MultilocationJunctions extends Enum {698 readonly isHere: boolean;699 readonly isX1: boolean;700 readonly asX1: XcmV1Junction;701 readonly isX2: boolean;702 readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;703 readonly isX3: boolean;704 readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;705 readonly isX4: boolean;706 readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;707 readonly isX5: boolean;708 readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;709 readonly isX6: boolean;710 readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;711 readonly isX7: boolean;712 readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;713 readonly isX8: boolean;714 readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;715 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';716 }717718 /** @name XcmV1Junction (97) */719 export interface XcmV1Junction extends Enum {720 readonly isParachain: boolean;721 readonly asParachain: Compact<u32>;722 readonly isAccountId32: boolean;723 readonly asAccountId32: {724 readonly network: XcmV0JunctionNetworkId;725 readonly id: U8aFixed;726 } & Struct;727 readonly isAccountIndex64: boolean;728 readonly asAccountIndex64: {729 readonly network: XcmV0JunctionNetworkId;730 readonly index: Compact<u64>;731 } & Struct;732 readonly isAccountKey20: boolean;733 readonly asAccountKey20: {734 readonly network: XcmV0JunctionNetworkId;735 readonly key: U8aFixed;736 } & Struct;737 readonly isPalletInstance: boolean;738 readonly asPalletInstance: u8;739 readonly isGeneralIndex: boolean;740 readonly asGeneralIndex: Compact<u128>;741 readonly isGeneralKey: boolean;742 readonly asGeneralKey: Bytes;743 readonly isOnlyChild: boolean;744 readonly isPlurality: boolean;745 readonly asPlurality: {746 readonly id: XcmV0JunctionBodyId;747 readonly part: XcmV0JunctionBodyPart;748 } & Struct;749 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';750 }751752 /** @name XcmVersionedXcm (98) */753 export interface XcmVersionedXcm extends Enum {754 readonly isV0: boolean;755 readonly asV0: XcmV0Xcm;756 readonly isV1: boolean;757 readonly asV1: XcmV1Xcm;758 readonly isV2: boolean;759 readonly asV2: XcmV2Xcm;760 readonly type: 'V0' | 'V1' | 'V2';761 }762763 /** @name XcmV0Xcm (99) */764 export interface XcmV0Xcm extends Enum {765 readonly isWithdrawAsset: boolean;766 readonly asWithdrawAsset: {767 readonly assets: Vec<XcmV0MultiAsset>;768 readonly effects: Vec<XcmV0Order>;769 } & Struct;770 readonly isReserveAssetDeposit: boolean;771 readonly asReserveAssetDeposit: {772 readonly assets: Vec<XcmV0MultiAsset>;773 readonly effects: Vec<XcmV0Order>;774 } & Struct;775 readonly isTeleportAsset: boolean;776 readonly asTeleportAsset: {777 readonly assets: Vec<XcmV0MultiAsset>;778 readonly effects: Vec<XcmV0Order>;779 } & Struct;780 readonly isQueryResponse: boolean;781 readonly asQueryResponse: {782 readonly queryId: Compact<u64>;783 readonly response: XcmV0Response;784 } & Struct;785 readonly isTransferAsset: boolean;786 readonly asTransferAsset: {787 readonly assets: Vec<XcmV0MultiAsset>;788 readonly dest: XcmV0MultiLocation;789 } & Struct;790 readonly isTransferReserveAsset: boolean;791 readonly asTransferReserveAsset: {792 readonly assets: Vec<XcmV0MultiAsset>;793 readonly dest: XcmV0MultiLocation;794 readonly effects: Vec<XcmV0Order>;795 } & Struct;796 readonly isTransact: boolean;797 readonly asTransact: {798 readonly originType: XcmV0OriginKind;799 readonly requireWeightAtMost: u64;800 readonly call: XcmDoubleEncoded;801 } & Struct;802 readonly isHrmpNewChannelOpenRequest: boolean;803 readonly asHrmpNewChannelOpenRequest: {804 readonly sender: Compact<u32>;805 readonly maxMessageSize: Compact<u32>;806 readonly maxCapacity: Compact<u32>;807 } & Struct;808 readonly isHrmpChannelAccepted: boolean;809 readonly asHrmpChannelAccepted: {810 readonly recipient: Compact<u32>;811 } & Struct;812 readonly isHrmpChannelClosing: boolean;813 readonly asHrmpChannelClosing: {814 readonly initiator: Compact<u32>;815 readonly sender: Compact<u32>;816 readonly recipient: Compact<u32>;817 } & Struct;818 readonly isRelayedFrom: boolean;819 readonly asRelayedFrom: {820 readonly who: XcmV0MultiLocation;821 readonly message: XcmV0Xcm;822 } & Struct;823 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';824 }825826 /** @name XcmV0MultiAsset (101) */827 export interface XcmV0MultiAsset extends Enum {828 readonly isNone: boolean;829 readonly isAll: boolean;830 readonly isAllFungible: boolean;831 readonly isAllNonFungible: boolean;832 readonly isAllAbstractFungible: boolean;833 readonly asAllAbstractFungible: {834 readonly id: Bytes;835 } & Struct;836 readonly isAllAbstractNonFungible: boolean;837 readonly asAllAbstractNonFungible: {838 readonly class: Bytes;839 } & Struct;840 readonly isAllConcreteFungible: boolean;841 readonly asAllConcreteFungible: {842 readonly id: XcmV0MultiLocation;843 } & Struct;844 readonly isAllConcreteNonFungible: boolean;845 readonly asAllConcreteNonFungible: {846 readonly class: XcmV0MultiLocation;847 } & Struct;848 readonly isAbstractFungible: boolean;849 readonly asAbstractFungible: {850 readonly id: Bytes;851 readonly amount: Compact<u128>;852 } & Struct;853 readonly isAbstractNonFungible: boolean;854 readonly asAbstractNonFungible: {855 readonly class: Bytes;856 readonly instance: XcmV1MultiassetAssetInstance;857 } & Struct;858 readonly isConcreteFungible: boolean;859 readonly asConcreteFungible: {860 readonly id: XcmV0MultiLocation;861 readonly amount: Compact<u128>;862 } & Struct;863 readonly isConcreteNonFungible: boolean;864 readonly asConcreteNonFungible: {865 readonly class: XcmV0MultiLocation;866 readonly instance: XcmV1MultiassetAssetInstance;867 } & Struct;868 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';869 }870871 /** @name XcmV1MultiassetAssetInstance (102) */872 export interface XcmV1MultiassetAssetInstance extends Enum {873 readonly isUndefined: boolean;874 readonly isIndex: boolean;875 readonly asIndex: Compact<u128>;876 readonly isArray4: boolean;877 readonly asArray4: U8aFixed;878 readonly isArray8: boolean;879 readonly asArray8: U8aFixed;880 readonly isArray16: boolean;881 readonly asArray16: U8aFixed;882 readonly isArray32: boolean;883 readonly asArray32: U8aFixed;884 readonly isBlob: boolean;885 readonly asBlob: Bytes;886 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';887 }888889 /** @name XcmV0Order (106) */890 export interface XcmV0Order extends Enum {891 readonly isNull: boolean;892 readonly isDepositAsset: boolean;893 readonly asDepositAsset: {894 readonly assets: Vec<XcmV0MultiAsset>;895 readonly dest: XcmV0MultiLocation;896 } & Struct;897 readonly isDepositReserveAsset: boolean;898 readonly asDepositReserveAsset: {899 readonly assets: Vec<XcmV0MultiAsset>;900 readonly dest: XcmV0MultiLocation;901 readonly effects: Vec<XcmV0Order>;902 } & Struct;903 readonly isExchangeAsset: boolean;904 readonly asExchangeAsset: {905 readonly give: Vec<XcmV0MultiAsset>;906 readonly receive: Vec<XcmV0MultiAsset>;907 } & Struct;908 readonly isInitiateReserveWithdraw: boolean;909 readonly asInitiateReserveWithdraw: {910 readonly assets: Vec<XcmV0MultiAsset>;911 readonly reserve: XcmV0MultiLocation;912 readonly effects: Vec<XcmV0Order>;913 } & Struct;914 readonly isInitiateTeleport: boolean;915 readonly asInitiateTeleport: {916 readonly assets: Vec<XcmV0MultiAsset>;917 readonly dest: XcmV0MultiLocation;918 readonly effects: Vec<XcmV0Order>;919 } & Struct;920 readonly isQueryHolding: boolean;921 readonly asQueryHolding: {922 readonly queryId: Compact<u64>;923 readonly dest: XcmV0MultiLocation;924 readonly assets: Vec<XcmV0MultiAsset>;925 } & Struct;926 readonly isBuyExecution: boolean;927 readonly asBuyExecution: {928 readonly fees: XcmV0MultiAsset;929 readonly weight: u64;930 readonly debt: u64;931 readonly haltOnError: bool;932 readonly xcm: Vec<XcmV0Xcm>;933 } & Struct;934 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';935 }936937 /** @name XcmV0Response (108) */938 export interface XcmV0Response extends Enum {939 readonly isAssets: boolean;940 readonly asAssets: Vec<XcmV0MultiAsset>;941 readonly type: 'Assets';942 }943944 /** @name XcmV0OriginKind (109) */945 export interface XcmV0OriginKind extends Enum {946 readonly isNative: boolean;947 readonly isSovereignAccount: boolean;948 readonly isSuperuser: boolean;949 readonly isXcm: boolean;950 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';951 }952953 /** @name XcmDoubleEncoded (110) */954 export interface XcmDoubleEncoded extends Struct {955 readonly encoded: Bytes;956 }957958 /** @name XcmV1Xcm (111) */959 export interface XcmV1Xcm extends Enum {960 readonly isWithdrawAsset: boolean;961 readonly asWithdrawAsset: {962 readonly assets: XcmV1MultiassetMultiAssets;963 readonly effects: Vec<XcmV1Order>;964 } & Struct;965 readonly isReserveAssetDeposited: boolean;966 readonly asReserveAssetDeposited: {967 readonly assets: XcmV1MultiassetMultiAssets;968 readonly effects: Vec<XcmV1Order>;969 } & Struct;970 readonly isReceiveTeleportedAsset: boolean;971 readonly asReceiveTeleportedAsset: {972 readonly assets: XcmV1MultiassetMultiAssets;973 readonly effects: Vec<XcmV1Order>;974 } & Struct;975 readonly isQueryResponse: boolean;976 readonly asQueryResponse: {977 readonly queryId: Compact<u64>;978 readonly response: XcmV1Response;979 } & Struct;980 readonly isTransferAsset: boolean;981 readonly asTransferAsset: {982 readonly assets: XcmV1MultiassetMultiAssets;983 readonly beneficiary: XcmV1MultiLocation;984 } & Struct;985 readonly isTransferReserveAsset: boolean;986 readonly asTransferReserveAsset: {987 readonly assets: XcmV1MultiassetMultiAssets;988 readonly dest: XcmV1MultiLocation;989 readonly effects: Vec<XcmV1Order>;990 } & Struct;991 readonly isTransact: boolean;992 readonly asTransact: {993 readonly originType: XcmV0OriginKind;994 readonly requireWeightAtMost: u64;995 readonly call: XcmDoubleEncoded;996 } & Struct;997 readonly isHrmpNewChannelOpenRequest: boolean;998 readonly asHrmpNewChannelOpenRequest: {999 readonly sender: Compact<u32>;1000 readonly maxMessageSize: Compact<u32>;1001 readonly maxCapacity: Compact<u32>;1002 } & Struct;1003 readonly isHrmpChannelAccepted: boolean;1004 readonly asHrmpChannelAccepted: {1005 readonly recipient: Compact<u32>;1006 } & Struct;1007 readonly isHrmpChannelClosing: boolean;1008 readonly asHrmpChannelClosing: {1009 readonly initiator: Compact<u32>;1010 readonly sender: Compact<u32>;1011 readonly recipient: Compact<u32>;1012 } & Struct;1013 readonly isRelayedFrom: boolean;1014 readonly asRelayedFrom: {1015 readonly who: XcmV1MultilocationJunctions;1016 readonly message: XcmV1Xcm;1017 } & Struct;1018 readonly isSubscribeVersion: boolean;1019 readonly asSubscribeVersion: {1020 readonly queryId: Compact<u64>;1021 readonly maxResponseWeight: Compact<u64>;1022 } & Struct;1023 readonly isUnsubscribeVersion: boolean;1024 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1025 }10261027 /** @name XcmV1MultiassetMultiAssets (112) */1028 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}10291030 /** @name XcmV1MultiAsset (114) */1031 export interface XcmV1MultiAsset extends Struct {1032 readonly id: XcmV1MultiassetAssetId;1033 readonly fun: XcmV1MultiassetFungibility;1034 }10351036 /** @name XcmV1MultiassetAssetId (115) */1037 export interface XcmV1MultiassetAssetId extends Enum {1038 readonly isConcrete: boolean;1039 readonly asConcrete: XcmV1MultiLocation;1040 readonly isAbstract: boolean;1041 readonly asAbstract: Bytes;1042 readonly type: 'Concrete' | 'Abstract';1043 }10441045 /** @name XcmV1MultiassetFungibility (116) */1046 export interface XcmV1MultiassetFungibility extends Enum {1047 readonly isFungible: boolean;1048 readonly asFungible: Compact<u128>;1049 readonly isNonFungible: boolean;1050 readonly asNonFungible: XcmV1MultiassetAssetInstance;1051 readonly type: 'Fungible' | 'NonFungible';1052 }10531054 /** @name XcmV1Order (118) */1055 export interface XcmV1Order extends Enum {1056 readonly isNoop: boolean;1057 readonly isDepositAsset: boolean;1058 readonly asDepositAsset: {1059 readonly assets: XcmV1MultiassetMultiAssetFilter;1060 readonly maxAssets: u32;1061 readonly beneficiary: XcmV1MultiLocation;1062 } & Struct;1063 readonly isDepositReserveAsset: boolean;1064 readonly asDepositReserveAsset: {1065 readonly assets: XcmV1MultiassetMultiAssetFilter;1066 readonly maxAssets: u32;1067 readonly dest: XcmV1MultiLocation;1068 readonly effects: Vec<XcmV1Order>;1069 } & Struct;1070 readonly isExchangeAsset: boolean;1071 readonly asExchangeAsset: {1072 readonly give: XcmV1MultiassetMultiAssetFilter;1073 readonly receive: XcmV1MultiassetMultiAssets;1074 } & Struct;1075 readonly isInitiateReserveWithdraw: boolean;1076 readonly asInitiateReserveWithdraw: {1077 readonly assets: XcmV1MultiassetMultiAssetFilter;1078 readonly reserve: XcmV1MultiLocation;1079 readonly effects: Vec<XcmV1Order>;1080 } & Struct;1081 readonly isInitiateTeleport: boolean;1082 readonly asInitiateTeleport: {1083 readonly assets: XcmV1MultiassetMultiAssetFilter;1084 readonly dest: XcmV1MultiLocation;1085 readonly effects: Vec<XcmV1Order>;1086 } & Struct;1087 readonly isQueryHolding: boolean;1088 readonly asQueryHolding: {1089 readonly queryId: Compact<u64>;1090 readonly dest: XcmV1MultiLocation;1091 readonly assets: XcmV1MultiassetMultiAssetFilter;1092 } & Struct;1093 readonly isBuyExecution: boolean;1094 readonly asBuyExecution: {1095 readonly fees: XcmV1MultiAsset;1096 readonly weight: u64;1097 readonly debt: u64;1098 readonly haltOnError: bool;1099 readonly instructions: Vec<XcmV1Xcm>;1100 } & Struct;1101 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1102 }11031104 /** @name XcmV1MultiassetMultiAssetFilter (119) */1105 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1106 readonly isDefinite: boolean;1107 readonly asDefinite: XcmV1MultiassetMultiAssets;1108 readonly isWild: boolean;1109 readonly asWild: XcmV1MultiassetWildMultiAsset;1110 readonly type: 'Definite' | 'Wild';1111 }11121113 /** @name XcmV1MultiassetWildMultiAsset (120) */1114 export interface XcmV1MultiassetWildMultiAsset extends Enum {1115 readonly isAll: boolean;1116 readonly isAllOf: boolean;1117 readonly asAllOf: {1118 readonly id: XcmV1MultiassetAssetId;1119 readonly fun: XcmV1MultiassetWildFungibility;1120 } & Struct;1121 readonly type: 'All' | 'AllOf';1122 }11231124 /** @name XcmV1MultiassetWildFungibility (121) */1125 export interface XcmV1MultiassetWildFungibility extends Enum {1126 readonly isFungible: boolean;1127 readonly isNonFungible: boolean;1128 readonly type: 'Fungible' | 'NonFungible';1129 }11301131 /** @name XcmV1Response (123) */1132 export interface XcmV1Response extends Enum {1133 readonly isAssets: boolean;1134 readonly asAssets: XcmV1MultiassetMultiAssets;1135 readonly isVersion: boolean;1136 readonly asVersion: u32;1137 readonly type: 'Assets' | 'Version';1138 }11391140 /** @name XcmV2Xcm (124) */1141 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}11421143 /** @name XcmV2Instruction (126) */1144 export interface XcmV2Instruction extends Enum {1145 readonly isWithdrawAsset: boolean;1146 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1147 readonly isReserveAssetDeposited: boolean;1148 readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;1149 readonly isReceiveTeleportedAsset: boolean;1150 readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;1151 readonly isQueryResponse: boolean;1152 readonly asQueryResponse: {1153 readonly queryId: Compact<u64>;1154 readonly response: XcmV2Response;1155 readonly maxWeight: Compact<u64>;1156 } & Struct;1157 readonly isTransferAsset: boolean;1158 readonly asTransferAsset: {1159 readonly assets: XcmV1MultiassetMultiAssets;1160 readonly beneficiary: XcmV1MultiLocation;1161 } & Struct;1162 readonly isTransferReserveAsset: boolean;1163 readonly asTransferReserveAsset: {1164 readonly assets: XcmV1MultiassetMultiAssets;1165 readonly dest: XcmV1MultiLocation;1166 readonly xcm: XcmV2Xcm;1167 } & Struct;1168 readonly isTransact: boolean;1169 readonly asTransact: {1170 readonly originType: XcmV0OriginKind;1171 readonly requireWeightAtMost: Compact<u64>;1172 readonly call: XcmDoubleEncoded;1173 } & Struct;1174 readonly isHrmpNewChannelOpenRequest: boolean;1175 readonly asHrmpNewChannelOpenRequest: {1176 readonly sender: Compact<u32>;1177 readonly maxMessageSize: Compact<u32>;1178 readonly maxCapacity: Compact<u32>;1179 } & Struct;1180 readonly isHrmpChannelAccepted: boolean;1181 readonly asHrmpChannelAccepted: {1182 readonly recipient: Compact<u32>;1183 } & Struct;1184 readonly isHrmpChannelClosing: boolean;1185 readonly asHrmpChannelClosing: {1186 readonly initiator: Compact<u32>;1187 readonly sender: Compact<u32>;1188 readonly recipient: Compact<u32>;1189 } & Struct;1190 readonly isClearOrigin: boolean;1191 readonly isDescendOrigin: boolean;1192 readonly asDescendOrigin: XcmV1MultilocationJunctions;1193 readonly isReportError: boolean;1194 readonly asReportError: {1195 readonly queryId: Compact<u64>;1196 readonly dest: XcmV1MultiLocation;1197 readonly maxResponseWeight: Compact<u64>;1198 } & Struct;1199 readonly isDepositAsset: boolean;1200 readonly asDepositAsset: {1201 readonly assets: XcmV1MultiassetMultiAssetFilter;1202 readonly maxAssets: Compact<u32>;1203 readonly beneficiary: XcmV1MultiLocation;1204 } & Struct;1205 readonly isDepositReserveAsset: boolean;1206 readonly asDepositReserveAsset: {1207 readonly assets: XcmV1MultiassetMultiAssetFilter;1208 readonly maxAssets: Compact<u32>;1209 readonly dest: XcmV1MultiLocation;1210 readonly xcm: XcmV2Xcm;1211 } & Struct;1212 readonly isExchangeAsset: boolean;1213 readonly asExchangeAsset: {1214 readonly give: XcmV1MultiassetMultiAssetFilter;1215 readonly receive: XcmV1MultiassetMultiAssets;1216 } & Struct;1217 readonly isInitiateReserveWithdraw: boolean;1218 readonly asInitiateReserveWithdraw: {1219 readonly assets: XcmV1MultiassetMultiAssetFilter;1220 readonly reserve: XcmV1MultiLocation;1221 readonly xcm: XcmV2Xcm;1222 } & Struct;1223 readonly isInitiateTeleport: boolean;1224 readonly asInitiateTeleport: {1225 readonly assets: XcmV1MultiassetMultiAssetFilter;1226 readonly dest: XcmV1MultiLocation;1227 readonly xcm: XcmV2Xcm;1228 } & Struct;1229 readonly isQueryHolding: boolean;1230 readonly asQueryHolding: {1231 readonly queryId: Compact<u64>;1232 readonly dest: XcmV1MultiLocation;1233 readonly assets: XcmV1MultiassetMultiAssetFilter;1234 readonly maxResponseWeight: Compact<u64>;1235 } & Struct;1236 readonly isBuyExecution: boolean;1237 readonly asBuyExecution: {1238 readonly fees: XcmV1MultiAsset;1239 readonly weightLimit: XcmV2WeightLimit;1240 } & Struct;1241 readonly isRefundSurplus: boolean;1242 readonly isSetErrorHandler: boolean;1243 readonly asSetErrorHandler: XcmV2Xcm;1244 readonly isSetAppendix: boolean;1245 readonly asSetAppendix: XcmV2Xcm;1246 readonly isClearError: boolean;1247 readonly isClaimAsset: boolean;1248 readonly asClaimAsset: {1249 readonly assets: XcmV1MultiassetMultiAssets;1250 readonly ticket: XcmV1MultiLocation;1251 } & Struct;1252 readonly isTrap: boolean;1253 readonly asTrap: Compact<u64>;1254 readonly isSubscribeVersion: boolean;1255 readonly asSubscribeVersion: {1256 readonly queryId: Compact<u64>;1257 readonly maxResponseWeight: Compact<u64>;1258 } & Struct;1259 readonly isUnsubscribeVersion: boolean;1260 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';1261 }12621263 /** @name XcmV2Response (127) */1264 export interface XcmV2Response extends Enum {1265 readonly isNull: boolean;1266 readonly isAssets: boolean;1267 readonly asAssets: XcmV1MultiassetMultiAssets;1268 readonly isExecutionResult: boolean;1269 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;1270 readonly isVersion: boolean;1271 readonly asVersion: u32;1272 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1273 }12741275 /** @name XcmV2TraitsError (130) */1276 export interface XcmV2TraitsError extends Enum {1277 readonly isOverflow: boolean;1278 readonly isUnimplemented: boolean;1279 readonly isUntrustedReserveLocation: boolean;1280 readonly isUntrustedTeleportLocation: boolean;1281 readonly isMultiLocationFull: boolean;1282 readonly isMultiLocationNotInvertible: boolean;1283 readonly isBadOrigin: boolean;1284 readonly isInvalidLocation: boolean;1285 readonly isAssetNotFound: boolean;1286 readonly isFailedToTransactAsset: boolean;1287 readonly isNotWithdrawable: boolean;1288 readonly isLocationCannotHold: boolean;1289 readonly isExceedsMaxMessageSize: boolean;1290 readonly isDestinationUnsupported: boolean;1291 readonly isTransport: boolean;1292 readonly isUnroutable: boolean;1293 readonly isUnknownClaim: boolean;1294 readonly isFailedToDecode: boolean;1295 readonly isMaxWeightInvalid: boolean;1296 readonly isNotHoldingFees: boolean;1297 readonly isTooExpensive: boolean;1298 readonly isTrap: boolean;1299 readonly asTrap: u64;1300 readonly isUnhandledXcmVersion: boolean;1301 readonly isWeightLimitReached: boolean;1302 readonly asWeightLimitReached: u64;1303 readonly isBarrier: boolean;1304 readonly isWeightNotComputable: boolean;1305 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';1306 }13071308 /** @name XcmV2WeightLimit (131) */1309 export interface XcmV2WeightLimit extends Enum {1310 readonly isUnlimited: boolean;1311 readonly isLimited: boolean;1312 readonly asLimited: Compact<u64>;1313 readonly type: 'Unlimited' | 'Limited';1314 }13151316 /** @name XcmVersionedMultiAssets (132) */1317 export interface XcmVersionedMultiAssets extends Enum {1318 readonly isV0: boolean;1319 readonly asV0: Vec<XcmV0MultiAsset>;1320 readonly isV1: boolean;1321 readonly asV1: XcmV1MultiassetMultiAssets;1322 readonly type: 'V0' | 'V1';1323 }13241325 /** @name CumulusPalletXcmCall (147) */1326 export type CumulusPalletXcmCall = Null;13271328 /** @name CumulusPalletDmpQueueCall (148) */1329 export interface CumulusPalletDmpQueueCall extends Enum {1330 readonly isServiceOverweight: boolean;1331 readonly asServiceOverweight: {1332 readonly index: u64;1333 readonly weightLimit: u64;1334 } & Struct;1335 readonly type: 'ServiceOverweight';1336 }13371338 /** @name PalletInflationCall (149) */1339 export interface PalletInflationCall extends Enum {1340 readonly isStartInflation: boolean;1341 readonly asStartInflation: {1342 readonly inflationStartRelayBlock: u32;1343 } & Struct;1344 readonly type: 'StartInflation';1345 }13461347 /** @name PalletUniqueCall (150) */1348 export interface PalletUniqueCall extends Enum {1349 readonly isCreateCollection: boolean;1350 readonly asCreateCollection: {1351 readonly collectionName: Vec<u16>;1352 readonly collectionDescription: Vec<u16>;1353 readonly tokenPrefix: Bytes;1354 readonly mode: UpDataStructsCollectionMode;1355 } & Struct;1356 readonly isCreateCollectionEx: boolean;1357 readonly asCreateCollectionEx: {1358 readonly data: UpDataStructsCreateCollectionData;1359 } & Struct;1360 readonly isDestroyCollection: boolean;1361 readonly asDestroyCollection: {1362 readonly collectionId: u32;1363 } & Struct;1364 readonly isAddToAllowList: boolean;1365 readonly asAddToAllowList: {1366 readonly collectionId: u32;1367 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;1368 } & Struct;1369 readonly isRemoveFromAllowList: boolean;1370 readonly asRemoveFromAllowList: {1371 readonly collectionId: u32;1372 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;1373 } & Struct;1374 readonly isSetPublicAccessMode: boolean;1375 readonly asSetPublicAccessMode: {1376 readonly collectionId: u32;1377 readonly mode: UpDataStructsAccessMode;1378 } & Struct;1379 readonly isSetMintPermission: boolean;1380 readonly asSetMintPermission: {1381 readonly collectionId: u32;1382 readonly mintPermission: bool;1383 } & Struct;1384 readonly isChangeCollectionOwner: boolean;1385 readonly asChangeCollectionOwner: {1386 readonly collectionId: u32;1387 readonly newOwner: AccountId32;1388 } & Struct;1389 readonly isAddCollectionAdmin: boolean;1390 readonly asAddCollectionAdmin: {1391 readonly collectionId: u32;1392 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;1393 } & Struct;1394 readonly isRemoveCollectionAdmin: boolean;1395 readonly asRemoveCollectionAdmin: {1396 readonly collectionId: u32;1397 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;1398 } & Struct;1399 readonly isSetCollectionSponsor: boolean;1400 readonly asSetCollectionSponsor: {1401 readonly collectionId: u32;1402 readonly newSponsor: AccountId32;1403 } & Struct;1404 readonly isConfirmSponsorship: boolean;1405 readonly asConfirmSponsorship: {1406 readonly collectionId: u32;1407 } & Struct;1408 readonly isRemoveCollectionSponsor: boolean;1409 readonly asRemoveCollectionSponsor: {1410 readonly collectionId: u32;1411 } & Struct;1412 readonly isCreateItem: boolean;1413 readonly asCreateItem: {1414 readonly collectionId: u32;1415 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1416 readonly data: UpDataStructsCreateItemData;1417 } & Struct;1418 readonly isCreateMultipleItems: boolean;1419 readonly asCreateMultipleItems: {1420 readonly collectionId: u32;1421 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1422 readonly itemsData: Vec<UpDataStructsCreateItemData>;1423 } & Struct;1424 readonly isSetCollectionProperties: boolean;1425 readonly asSetCollectionProperties: {1426 readonly collectionId: u32;1427 readonly properties: Vec<UpDataStructsProperty>;1428 } & Struct;1429 readonly isDeleteCollectionProperties: boolean;1430 readonly asDeleteCollectionProperties: {1431 readonly collectionId: u32;1432 readonly propertyKeys: Vec<Bytes>;1433 } & Struct;1434 readonly isSetTokenProperties: boolean;1435 readonly asSetTokenProperties: {1436 readonly collectionId: u32;1437 readonly tokenId: u32;1438 readonly properties: Vec<UpDataStructsProperty>;1439 } & Struct;1440 readonly isDeleteTokenProperties: boolean;1441 readonly asDeleteTokenProperties: {1442 readonly collectionId: u32;1443 readonly tokenId: u32;1444 readonly propertyKeys: Vec<Bytes>;1445 } & Struct;1446 readonly isSetPropertyPermissions: boolean;1447 readonly asSetPropertyPermissions: {1448 readonly collectionId: u32;1449 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;1450 } & Struct;1451 readonly isCreateMultipleItemsEx: boolean;1452 readonly asCreateMultipleItemsEx: {1453 readonly collectionId: u32;1454 readonly data: UpDataStructsCreateItemExData;1455 } & Struct;1456 readonly isSetTransfersEnabledFlag: boolean;1457 readonly asSetTransfersEnabledFlag: {1458 readonly collectionId: u32;1459 readonly value: bool;1460 } & Struct;1461 readonly isBurnItem: boolean;1462 readonly asBurnItem: {1463 readonly collectionId: u32;1464 readonly itemId: u32;1465 readonly value: u128;1466 } & Struct;1467 readonly isBurnFrom: boolean;1468 readonly asBurnFrom: {1469 readonly collectionId: u32;1470 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;1471 readonly itemId: u32;1472 readonly value: u128;1473 } & Struct;1474 readonly isTransfer: boolean;1475 readonly asTransfer: {1476 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;1477 readonly collectionId: u32;1478 readonly itemId: u32;1479 readonly value: u128;1480 } & Struct;1481 readonly isApprove: boolean;1482 readonly asApprove: {1483 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;1484 readonly collectionId: u32;1485 readonly itemId: u32;1486 readonly amount: u128;1487 } & Struct;1488 readonly isTransferFrom: boolean;1489 readonly asTransferFrom: {1490 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;1491 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;1492 readonly collectionId: u32;1493 readonly itemId: u32;1494 readonly value: u128;1495 } & Struct;1496 readonly isSetVariableMetaData: boolean;1497 readonly asSetVariableMetaData: {1498 readonly collectionId: u32;1499 readonly itemId: u32;1500 readonly data: Bytes;1501 } & Struct;1502 readonly isSetMetaUpdatePermissionFlag: boolean;1503 readonly asSetMetaUpdatePermissionFlag: {1504 readonly collectionId: u32;1505 readonly value: UpDataStructsMetaUpdatePermission;1506 } & Struct;1507 readonly isSetSchemaVersion: boolean;1508 readonly asSetSchemaVersion: {1509 readonly collectionId: u32;1510 readonly version: UpDataStructsSchemaVersion;1511 } & Struct;1512 readonly isSetOffchainSchema: boolean;1513 readonly asSetOffchainSchema: {1514 readonly collectionId: u32;1515 readonly schema: Bytes;1516 } & Struct;1517 readonly isSetConstOnChainSchema: boolean;1518 readonly asSetConstOnChainSchema: {1519 readonly collectionId: u32;1520 readonly schema: Bytes;1521 } & Struct;1522 readonly isSetVariableOnChainSchema: boolean;1523 readonly asSetVariableOnChainSchema: {1524 readonly collectionId: u32;1525 readonly schema: Bytes;1526 } & Struct;1527 readonly isSetCollectionLimits: boolean;1528 readonly asSetCollectionLimits: {1529 readonly collectionId: u32;1530 readonly newLimit: UpDataStructsCollectionLimits;1531 } & Struct;1532 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';1533 }15341535 /** @name UpDataStructsCollectionMode (156) */1536 export interface UpDataStructsCollectionMode extends Enum {1537 readonly isNft: boolean;1538 readonly isFungible: boolean;1539 readonly asFungible: u8;1540 readonly isReFungible: boolean;1541 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1542 }15431544 /** @name UpDataStructsCreateCollectionData (157) */1545 export interface UpDataStructsCreateCollectionData extends Struct {1546 readonly mode: UpDataStructsCollectionMode;1547 readonly access: Option<UpDataStructsAccessMode>;1548 readonly name: Vec<u16>;1549 readonly description: Vec<u16>;1550 readonly tokenPrefix: Bytes;1551 readonly offchainSchema: Bytes;1552 readonly schemaVersion: Option<UpDataStructsSchemaVersion>;1553 readonly pendingSponsor: Option<AccountId32>;1554 readonly limits: Option<UpDataStructsCollectionLimits>;1555 readonly variableOnChainSchema: Bytes;1556 readonly constOnChainSchema: Bytes;1557 readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;1558 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;1559 readonly properties: Vec<UpDataStructsProperty>;1560 }15611562 /** @name UpDataStructsAccessMode (159) */1563 export interface UpDataStructsAccessMode extends Enum {1564 readonly isNormal: boolean;1565 readonly isAllowList: boolean;1566 readonly type: 'Normal' | 'AllowList';1567 }15681569 /** @name UpDataStructsSchemaVersion (162) */1570 export interface UpDataStructsSchemaVersion extends Enum {1571 readonly isImageURL: boolean;1572 readonly isUnique: boolean;1573 readonly type: 'ImageURL' | 'Unique';1574 }15751576 /** @name UpDataStructsCollectionLimits (165) */1577 export interface UpDataStructsCollectionLimits extends Struct {1578 readonly accountTokenOwnershipLimit: Option<u32>;1579 readonly sponsoredDataSize: Option<u32>;1580 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;1581 readonly tokenLimit: Option<u32>;1582 readonly sponsorTransferTimeout: Option<u32>;1583 readonly sponsorApproveTimeout: Option<u32>;1584 readonly ownerCanTransfer: Option<bool>;1585 readonly ownerCanDestroy: Option<bool>;1586 readonly transfersEnabled: Option<bool>;1587 readonly nestingRule: Option<UpDataStructsNestingRule>;1588 }15891590 /** @name UpDataStructsSponsoringRateLimit (167) */1591 export interface UpDataStructsSponsoringRateLimit extends Enum {1592 readonly isSponsoringDisabled: boolean;1593 readonly isBlocks: boolean;1594 readonly asBlocks: u32;1595 readonly type: 'SponsoringDisabled' | 'Blocks';1596 }15971598 /** @name UpDataStructsNestingRule (170) */1599 export interface UpDataStructsNestingRule extends Enum {1600 readonly isDisabled: boolean;1601 readonly isOwner: boolean;1602 readonly isOwnerRestricted: boolean;1603 readonly asOwnerRestricted: FrameSupportStorageBoundedBTreeSet;1604 readonly type: 'Disabled' | 'Owner' | 'OwnerRestricted';1605 }16061607 /** @name FrameSupportStorageBoundedBTreeSet (171) */1608 export interface FrameSupportStorageBoundedBTreeSet extends Vec<u32> {}16091610 /** @name UpDataStructsMetaUpdatePermission (177) */1611 export interface UpDataStructsMetaUpdatePermission extends Enum {1612 readonly isItemOwner: boolean;1613 readonly isAdmin: boolean;1614 readonly isNone: boolean;1615 readonly type: 'ItemOwner' | 'Admin' | 'None';1616 }16171618 /** @name UpDataStructsPropertyKeyPermission (179) */1619 export interface UpDataStructsPropertyKeyPermission extends Struct {1620 readonly key: Bytes;1621 readonly permission: UpDataStructsPropertyPermission;1622 }16231624 /** @name UpDataStructsPropertyPermission (181) */1625 export interface UpDataStructsPropertyPermission extends Struct {1626 readonly mutable: bool;1627 readonly collectionAdmin: bool;1628 readonly tokenOwner: bool;1629 }16301631 /** @name UpDataStructsProperty (184) */1632 export interface UpDataStructsProperty extends Struct {1633 readonly key: Bytes;1634 readonly value: Bytes;1635 }16361637 /** @name PalletEvmAccountBasicCrossAccountIdRepr (186) */1638 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1639 readonly isSubstrate: boolean;1640 readonly asSubstrate: AccountId32;1641 readonly isEthereum: boolean;1642 readonly asEthereum: H160;1643 readonly type: 'Substrate' | 'Ethereum';1644 }16451646 /** @name UpDataStructsCreateItemData (188) */1647 export interface UpDataStructsCreateItemData extends Enum {1648 readonly isNft: boolean;1649 readonly asNft: UpDataStructsCreateNftData;1650 readonly isFungible: boolean;1651 readonly asFungible: UpDataStructsCreateFungibleData;1652 readonly isReFungible: boolean;1653 readonly asReFungible: UpDataStructsCreateReFungibleData;1654 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1655 }16561657 /** @name UpDataStructsCreateNftData (189) */1658 export interface UpDataStructsCreateNftData extends Struct {1659 readonly constData: Bytes;1660 readonly variableData: Bytes;1661 readonly properties: Vec<UpDataStructsProperty>;1662 }16631664 /** @name UpDataStructsCreateFungibleData (191) */1665 export interface UpDataStructsCreateFungibleData extends Struct {1666 readonly value: u128;1667 }16681669 /** @name UpDataStructsCreateReFungibleData (192) */1670 export interface UpDataStructsCreateReFungibleData extends Struct {1671 readonly constData: Bytes;1672 readonly variableData: Bytes;1673 readonly pieces: u128;1674 }16751676 /** @name UpDataStructsCreateItemExData (196) */1677 export interface UpDataStructsCreateItemExData extends Enum {1678 readonly isNft: boolean;1679 readonly asNft: Vec<UpDataStructsCreateNftExData>;1680 readonly isFungible: boolean;1681 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1682 readonly isRefungibleMultipleItems: boolean;1683 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;1684 readonly isRefungibleMultipleOwners: boolean;1685 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExData;1686 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1687 }16881689 /** @name UpDataStructsCreateNftExData (198) */1690 export interface UpDataStructsCreateNftExData extends Struct {1691 readonly constData: Bytes;1692 readonly variableData: Bytes;1693 readonly properties: Vec<UpDataStructsProperty>;1694 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1695 }16961697 /** @name UpDataStructsCreateRefungibleExData (205) */1698 export interface UpDataStructsCreateRefungibleExData extends Struct {1699 readonly constData: Bytes;1700 readonly variableData: Bytes;1701 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1702 }17031704 /** @name PalletTemplateTransactionPaymentCall (207) */1705 export type PalletTemplateTransactionPaymentCall = Null;17061707 /** @name PalletStructureCall (208) */1708 export type PalletStructureCall = Null;17091710 /** @name PalletEvmCall (209) */1711 export interface PalletEvmCall extends Enum {1712 readonly isWithdraw: boolean;1713 readonly asWithdraw: {1714 readonly address: H160;1715 readonly value: u128;1716 } & Struct;1717 readonly isCall: boolean;1718 readonly asCall: {1719 readonly source: H160;1720 readonly target: H160;1721 readonly input: Bytes;1722 readonly value: U256;1723 readonly gasLimit: u64;1724 readonly maxFeePerGas: U256;1725 readonly maxPriorityFeePerGas: Option<U256>;1726 readonly nonce: Option<U256>;1727 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1728 } & Struct;1729 readonly isCreate: boolean;1730 readonly asCreate: {1731 readonly source: H160;1732 readonly init: Bytes;1733 readonly value: U256;1734 readonly gasLimit: u64;1735 readonly maxFeePerGas: U256;1736 readonly maxPriorityFeePerGas: Option<U256>;1737 readonly nonce: Option<U256>;1738 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1739 } & Struct;1740 readonly isCreate2: boolean;1741 readonly asCreate2: {1742 readonly source: H160;1743 readonly init: Bytes;1744 readonly salt: H256;1745 readonly value: U256;1746 readonly gasLimit: u64;1747 readonly maxFeePerGas: U256;1748 readonly maxPriorityFeePerGas: Option<U256>;1749 readonly nonce: Option<U256>;1750 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;1751 } & Struct;1752 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';1753 }17541755 /** @name PalletEthereumCall (215) */1756 export interface PalletEthereumCall extends Enum {1757 readonly isTransact: boolean;1758 readonly asTransact: {1759 readonly transaction: EthereumTransactionTransactionV2;1760 } & Struct;1761 readonly type: 'Transact';1762 }17631764 /** @name EthereumTransactionTransactionV2 (216) */1765 export interface EthereumTransactionTransactionV2 extends Enum {1766 readonly isLegacy: boolean;1767 readonly asLegacy: EthereumTransactionLegacyTransaction;1768 readonly isEip2930: boolean;1769 readonly asEip2930: EthereumTransactionEip2930Transaction;1770 readonly isEip1559: boolean;1771 readonly asEip1559: EthereumTransactionEip1559Transaction;1772 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';1773 }17741775 /** @name EthereumTransactionLegacyTransaction (217) */1776 export interface EthereumTransactionLegacyTransaction extends Struct {1777 readonly nonce: U256;1778 readonly gasPrice: U256;1779 readonly gasLimit: U256;1780 readonly action: EthereumTransactionTransactionAction;1781 readonly value: U256;1782 readonly input: Bytes;1783 readonly signature: EthereumTransactionTransactionSignature;1784 }17851786 /** @name EthereumTransactionTransactionAction (218) */1787 export interface EthereumTransactionTransactionAction extends Enum {1788 readonly isCall: boolean;1789 readonly asCall: H160;1790 readonly isCreate: boolean;1791 readonly type: 'Call' | 'Create';1792 }17931794 /** @name EthereumTransactionTransactionSignature (219) */1795 export interface EthereumTransactionTransactionSignature extends Struct {1796 readonly v: u64;1797 readonly r: H256;1798 readonly s: H256;1799 }18001801 /** @name EthereumTransactionEip2930Transaction (221) */1802 export interface EthereumTransactionEip2930Transaction extends Struct {1803 readonly chainId: u64;1804 readonly nonce: U256;1805 readonly gasPrice: U256;1806 readonly gasLimit: U256;1807 readonly action: EthereumTransactionTransactionAction;1808 readonly value: U256;1809 readonly input: Bytes;1810 readonly accessList: Vec<EthereumTransactionAccessListItem>;1811 readonly oddYParity: bool;1812 readonly r: H256;1813 readonly s: H256;1814 }18151816 /** @name EthereumTransactionAccessListItem (223) */1817 export interface EthereumTransactionAccessListItem extends Struct {1818 readonly address: H160;1819 readonly storageKeys: Vec<H256>;1820 }18211822 /** @name EthereumTransactionEip1559Transaction (224) */1823 export interface EthereumTransactionEip1559Transaction extends Struct {1824 readonly chainId: u64;1825 readonly nonce: U256;1826 readonly maxPriorityFeePerGas: U256;1827 readonly maxFeePerGas: U256;1828 readonly gasLimit: U256;1829 readonly action: EthereumTransactionTransactionAction;1830 readonly value: U256;1831 readonly input: Bytes;1832 readonly accessList: Vec<EthereumTransactionAccessListItem>;1833 readonly oddYParity: bool;1834 readonly r: H256;1835 readonly s: H256;1836 }18371838 /** @name PalletEvmMigrationCall (225) */1839 export interface PalletEvmMigrationCall extends Enum {1840 readonly isBegin: boolean;1841 readonly asBegin: {1842 readonly address: H160;1843 } & Struct;1844 readonly isSetData: boolean;1845 readonly asSetData: {1846 readonly address: H160;1847 readonly data: Vec<ITuple<[H256, H256]>>;1848 } & Struct;1849 readonly isFinish: boolean;1850 readonly asFinish: {1851 readonly address: H160;1852 readonly code: Bytes;1853 } & Struct;1854 readonly type: 'Begin' | 'SetData' | 'Finish';1855 }18561857 /** @name PalletSudoEvent (228) */1858 export interface PalletSudoEvent extends Enum {1859 readonly isSudid: boolean;1860 readonly asSudid: {1861 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1862 } & Struct;1863 readonly isKeyChanged: boolean;1864 readonly asKeyChanged: {1865 readonly oldSudoer: Option<AccountId32>;1866 } & Struct;1867 readonly isSudoAsDone: boolean;1868 readonly asSudoAsDone: {1869 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1870 } & Struct;1871 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';1872 }18731874 /** @name SpRuntimeDispatchError (230) */1875 export interface SpRuntimeDispatchError extends Enum {1876 readonly isOther: boolean;1877 readonly isCannotLookup: boolean;1878 readonly isBadOrigin: boolean;1879 readonly isModule: boolean;1880 readonly asModule: SpRuntimeModuleError;1881 readonly isConsumerRemaining: boolean;1882 readonly isNoProviders: boolean;1883 readonly isTooManyConsumers: boolean;1884 readonly isToken: boolean;1885 readonly asToken: SpRuntimeTokenError;1886 readonly isArithmetic: boolean;1887 readonly asArithmetic: SpRuntimeArithmeticError;1888 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic';1889 }18901891 /** @name SpRuntimeModuleError (231) */1892 export interface SpRuntimeModuleError extends Struct {1893 readonly index: u8;1894 readonly error: u8;1895 }18961897 /** @name SpRuntimeTokenError (232) */1898 export interface SpRuntimeTokenError extends Enum {1899 readonly isNoFunds: boolean;1900 readonly isWouldDie: boolean;1901 readonly isBelowMinimum: boolean;1902 readonly isCannotCreate: boolean;1903 readonly isUnknownAsset: boolean;1904 readonly isFrozen: boolean;1905 readonly isUnsupported: boolean;1906 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';1907 }19081909 /** @name SpRuntimeArithmeticError (233) */1910 export interface SpRuntimeArithmeticError extends Enum {1911 readonly isUnderflow: boolean;1912 readonly isOverflow: boolean;1913 readonly isDivisionByZero: boolean;1914 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';1915 }19161917 /** @name PalletSudoError (234) */1918 export interface PalletSudoError extends Enum {1919 readonly isRequireSudo: boolean;1920 readonly type: 'RequireSudo';1921 }19221923 /** @name FrameSystemAccountInfo (235) */1924 export interface FrameSystemAccountInfo extends Struct {1925 readonly nonce: u32;1926 readonly consumers: u32;1927 readonly providers: u32;1928 readonly sufficients: u32;1929 readonly data: PalletBalancesAccountData;1930 }19311932 /** @name FrameSupportWeightsPerDispatchClassU64 (236) */1933 export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {1934 readonly normal: u64;1935 readonly operational: u64;1936 readonly mandatory: u64;1937 }19381939 /** @name SpRuntimeDigest (237) */1940 export interface SpRuntimeDigest extends Struct {1941 readonly logs: Vec<SpRuntimeDigestDigestItem>;1942 }19431944 /** @name SpRuntimeDigestDigestItem (239) */1945 export interface SpRuntimeDigestDigestItem extends Enum {1946 readonly isOther: boolean;1947 readonly asOther: Bytes;1948 readonly isConsensus: boolean;1949 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;1950 readonly isSeal: boolean;1951 readonly asSeal: ITuple<[U8aFixed, Bytes]>;1952 readonly isPreRuntime: boolean;1953 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;1954 readonly isRuntimeEnvironmentUpdated: boolean;1955 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';1956 }19571958 /** @name FrameSystemEventRecord (241) */1959 export interface FrameSystemEventRecord extends Struct {1960 readonly phase: FrameSystemPhase;1961 readonly event: Event;1962 readonly topics: Vec<H256>;1963 }19641965 /** @name FrameSystemEvent (243) */1966 export interface FrameSystemEvent extends Enum {1967 readonly isExtrinsicSuccess: boolean;1968 readonly asExtrinsicSuccess: {1969 readonly dispatchInfo: FrameSupportWeightsDispatchInfo;1970 } & Struct;1971 readonly isExtrinsicFailed: boolean;1972 readonly asExtrinsicFailed: {1973 readonly dispatchError: SpRuntimeDispatchError;1974 readonly dispatchInfo: FrameSupportWeightsDispatchInfo;1975 } & Struct;1976 readonly isCodeUpdated: boolean;1977 readonly isNewAccount: boolean;1978 readonly asNewAccount: {1979 readonly account: AccountId32;1980 } & Struct;1981 readonly isKilledAccount: boolean;1982 readonly asKilledAccount: {1983 readonly account: AccountId32;1984 } & Struct;1985 readonly isRemarked: boolean;1986 readonly asRemarked: {1987 readonly sender: AccountId32;1988 readonly hash_: H256;1989 } & Struct;1990 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';1991 }19921993 /** @name FrameSupportWeightsDispatchInfo (244) */1994 export interface FrameSupportWeightsDispatchInfo extends Struct {1995 readonly weight: u64;1996 readonly class: FrameSupportWeightsDispatchClass;1997 readonly paysFee: FrameSupportWeightsPays;1998 }19992000 /** @name FrameSupportWeightsDispatchClass (245) */2001 export interface FrameSupportWeightsDispatchClass extends Enum {2002 readonly isNormal: boolean;2003 readonly isOperational: boolean;2004 readonly isMandatory: boolean;2005 readonly type: 'Normal' | 'Operational' | 'Mandatory';2006 }20072008 /** @name FrameSupportWeightsPays (246) */2009 export interface FrameSupportWeightsPays extends Enum {2010 readonly isYes: boolean;2011 readonly isNo: boolean;2012 readonly type: 'Yes' | 'No';2013 }20142015 /** @name OrmlVestingModuleEvent (247) */2016 export interface OrmlVestingModuleEvent extends Enum {2017 readonly isVestingScheduleAdded: boolean;2018 readonly asVestingScheduleAdded: {2019 readonly from: AccountId32;2020 readonly to: AccountId32;2021 readonly vestingSchedule: OrmlVestingVestingSchedule;2022 } & Struct;2023 readonly isClaimed: boolean;2024 readonly asClaimed: {2025 readonly who: AccountId32;2026 readonly amount: u128;2027 } & Struct;2028 readonly isVestingSchedulesUpdated: boolean;2029 readonly asVestingSchedulesUpdated: {2030 readonly who: AccountId32;2031 } & Struct;2032 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';2033 }20342035 /** @name CumulusPalletXcmpQueueEvent (248) */2036 export interface CumulusPalletXcmpQueueEvent extends Enum {2037 readonly isSuccess: boolean;2038 readonly asSuccess: Option<H256>;2039 readonly isFail: boolean;2040 readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;2041 readonly isBadVersion: boolean;2042 readonly asBadVersion: Option<H256>;2043 readonly isBadFormat: boolean;2044 readonly asBadFormat: Option<H256>;2045 readonly isUpwardMessageSent: boolean;2046 readonly asUpwardMessageSent: Option<H256>;2047 readonly isXcmpMessageSent: boolean;2048 readonly asXcmpMessageSent: Option<H256>;2049 readonly isOverweightEnqueued: boolean;2050 readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;2051 readonly isOverweightServiced: boolean;2052 readonly asOverweightServiced: ITuple<[u64, u64]>;2053 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';2054 }20552056 /** @name PalletXcmEvent (249) */2057 export interface PalletXcmEvent extends Enum {2058 readonly isAttempted: boolean;2059 readonly asAttempted: XcmV2TraitsOutcome;2060 readonly isSent: boolean;2061 readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;2062 readonly isUnexpectedResponse: boolean;2063 readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;2064 readonly isResponseReady: boolean;2065 readonly asResponseReady: ITuple<[u64, XcmV2Response]>;2066 readonly isNotified: boolean;2067 readonly asNotified: ITuple<[u64, u8, u8]>;2068 readonly isNotifyOverweight: boolean;2069 readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;2070 readonly isNotifyDispatchError: boolean;2071 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;2072 readonly isNotifyDecodeFailed: boolean;2073 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;2074 readonly isInvalidResponder: boolean;2075 readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;2076 readonly isInvalidResponderVersion: boolean;2077 readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;2078 readonly isResponseTaken: boolean;2079 readonly asResponseTaken: u64;2080 readonly isAssetsTrapped: boolean;2081 readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;2082 readonly isVersionChangeNotified: boolean;2083 readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;2084 readonly isSupportedVersionChanged: boolean;2085 readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;2086 readonly isNotifyTargetSendFail: boolean;2087 readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;2088 readonly isNotifyTargetMigrationFail: boolean;2089 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;2090 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';2091 }20922093 /** @name XcmV2TraitsOutcome (250) */2094 export interface XcmV2TraitsOutcome extends Enum {2095 readonly isComplete: boolean;2096 readonly asComplete: u64;2097 readonly isIncomplete: boolean;2098 readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;2099 readonly isError: boolean;2100 readonly asError: XcmV2TraitsError;2101 readonly type: 'Complete' | 'Incomplete' | 'Error';2102 }21032104 /** @name CumulusPalletXcmEvent (252) */2105 export interface CumulusPalletXcmEvent extends Enum {2106 readonly isInvalidFormat: boolean;2107 readonly asInvalidFormat: U8aFixed;2108 readonly isUnsupportedVersion: boolean;2109 readonly asUnsupportedVersion: U8aFixed;2110 readonly isExecutedDownward: boolean;2111 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2112 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';2113 }21142115 /** @name CumulusPalletDmpQueueEvent (253) */2116 export interface CumulusPalletDmpQueueEvent extends Enum {2117 readonly isInvalidFormat: boolean;2118 readonly asInvalidFormat: U8aFixed;2119 readonly isUnsupportedVersion: boolean;2120 readonly asUnsupportedVersion: U8aFixed;2121 readonly isExecutedDownward: boolean;2122 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2123 readonly isWeightExhausted: boolean;2124 readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;2125 readonly isOverweightEnqueued: boolean;2126 readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;2127 readonly isOverweightServiced: boolean;2128 readonly asOverweightServiced: ITuple<[u64, u64]>;2129 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2130 }21312132 /** @name PalletUniqueRawEvent (254) */2133 export interface PalletUniqueRawEvent extends Enum {2134 readonly isCollectionSponsorRemoved: boolean;2135 readonly asCollectionSponsorRemoved: u32;2136 readonly isCollectionAdminAdded: boolean;2137 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2138 readonly isCollectionOwnedChanged: boolean;2139 readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;2140 readonly isCollectionSponsorSet: boolean;2141 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;2142 readonly isConstOnChainSchemaSet: boolean;2143 readonly asConstOnChainSchemaSet: u32;2144 readonly isSponsorshipConfirmed: boolean;2145 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;2146 readonly isCollectionAdminRemoved: boolean;2147 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2148 readonly isAllowListAddressRemoved: boolean;2149 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2150 readonly isAllowListAddressAdded: boolean;2151 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;2152 readonly isCollectionLimitSet: boolean;2153 readonly asCollectionLimitSet: u32;2154 readonly isMintPermissionSet: boolean;2155 readonly asMintPermissionSet: u32;2156 readonly isOffchainSchemaSet: boolean;2157 readonly asOffchainSchemaSet: u32;2158 readonly isPublicAccessModeSet: boolean;2159 readonly asPublicAccessModeSet: ITuple<[u32, UpDataStructsAccessMode]>;2160 readonly isSchemaVersionSet: boolean;2161 readonly asSchemaVersionSet: u32;2162 readonly isVariableOnChainSchemaSet: boolean;2163 readonly asVariableOnChainSchemaSet: u32;2164 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'ConstOnChainSchemaSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'MintPermissionSet' | 'OffchainSchemaSet' | 'PublicAccessModeSet' | 'SchemaVersionSet' | 'VariableOnChainSchemaSet';2165 }21662167 /** @name PalletCommonEvent (255) */2168 export interface PalletCommonEvent extends Enum {2169 readonly isCollectionCreated: boolean;2170 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;2171 readonly isCollectionDestroyed: boolean;2172 readonly asCollectionDestroyed: u32;2173 readonly isItemCreated: boolean;2174 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2175 readonly isItemDestroyed: boolean;2176 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2177 readonly isTransfer: boolean;2178 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2179 readonly isApproved: boolean;2180 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;2181 readonly isCollectionPropertySet: boolean;2182 readonly asCollectionPropertySet: ITuple<[u32, UpDataStructsProperty]>;2183 readonly isCollectionPropertyDeleted: boolean;2184 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;2185 readonly isTokenPropertySet: boolean;2186 readonly asTokenPropertySet: ITuple<[u32, u32, UpDataStructsProperty]>;2187 readonly isTokenPropertyDeleted: boolean;2188 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;2189 readonly isPropertyPermissionSet: boolean;2190 readonly asPropertyPermissionSet: ITuple<[u32, UpDataStructsPropertyKeyPermission]>;2191 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';2192 }21932194 /** @name PalletStructureEvent (256) */2195 export interface PalletStructureEvent extends Enum {2196 readonly isExecuted: boolean;2197 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;2198 readonly type: 'Executed';2199 }22002201 /** @name PalletEvmEvent (257) */2202 export interface PalletEvmEvent extends Enum {2203 readonly isLog: boolean;2204 readonly asLog: EthereumLog;2205 readonly isCreated: boolean;2206 readonly asCreated: H160;2207 readonly isCreatedFailed: boolean;2208 readonly asCreatedFailed: H160;2209 readonly isExecuted: boolean;2210 readonly asExecuted: H160;2211 readonly isExecutedFailed: boolean;2212 readonly asExecutedFailed: H160;2213 readonly isBalanceDeposit: boolean;2214 readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;2215 readonly isBalanceWithdraw: boolean;2216 readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;2217 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';2218 }22192220 /** @name EthereumLog (258) */2221 export interface EthereumLog extends Struct {2222 readonly address: H160;2223 readonly topics: Vec<H256>;2224 readonly data: Bytes;2225 }22262227 /** @name PalletEthereumEvent (259) */2228 export interface PalletEthereumEvent extends Enum {2229 readonly isExecuted: boolean;2230 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;2231 readonly type: 'Executed';2232 }22332234 /** @name EvmCoreErrorExitReason (260) */2235 export interface EvmCoreErrorExitReason extends Enum {2236 readonly isSucceed: boolean;2237 readonly asSucceed: EvmCoreErrorExitSucceed;2238 readonly isError: boolean;2239 readonly asError: EvmCoreErrorExitError;2240 readonly isRevert: boolean;2241 readonly asRevert: EvmCoreErrorExitRevert;2242 readonly isFatal: boolean;2243 readonly asFatal: EvmCoreErrorExitFatal;2244 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';2245 }22462247 /** @name EvmCoreErrorExitSucceed (261) */2248 export interface EvmCoreErrorExitSucceed extends Enum {2249 readonly isStopped: boolean;2250 readonly isReturned: boolean;2251 readonly isSuicided: boolean;2252 readonly type: 'Stopped' | 'Returned' | 'Suicided';2253 }22542255 /** @name EvmCoreErrorExitError (262) */2256 export interface EvmCoreErrorExitError extends Enum {2257 readonly isStackUnderflow: boolean;2258 readonly isStackOverflow: boolean;2259 readonly isInvalidJump: boolean;2260 readonly isInvalidRange: boolean;2261 readonly isDesignatedInvalid: boolean;2262 readonly isCallTooDeep: boolean;2263 readonly isCreateCollision: boolean;2264 readonly isCreateContractLimit: boolean;2265 readonly isInvalidCode: boolean;2266 readonly isOutOfOffset: boolean;2267 readonly isOutOfGas: boolean;2268 readonly isOutOfFund: boolean;2269 readonly isPcUnderflow: boolean;2270 readonly isCreateEmpty: boolean;2271 readonly isOther: boolean;2272 readonly asOther: Text;2273 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'InvalidCode' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other';2274 }22752276 /** @name EvmCoreErrorExitRevert (265) */2277 export interface EvmCoreErrorExitRevert extends Enum {2278 readonly isReverted: boolean;2279 readonly type: 'Reverted';2280 }22812282 /** @name EvmCoreErrorExitFatal (266) */2283 export interface EvmCoreErrorExitFatal extends Enum {2284 readonly isNotSupported: boolean;2285 readonly isUnhandledInterrupt: boolean;2286 readonly isCallErrorAsFatal: boolean;2287 readonly asCallErrorAsFatal: EvmCoreErrorExitError;2288 readonly isOther: boolean;2289 readonly asOther: Text;2290 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';2291 }22922293 /** @name FrameSystemPhase (267) */2294 export interface FrameSystemPhase extends Enum {2295 readonly isApplyExtrinsic: boolean;2296 readonly asApplyExtrinsic: u32;2297 readonly isFinalization: boolean;2298 readonly isInitialization: boolean;2299 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';2300 }23012302 /** @name FrameSystemLastRuntimeUpgradeInfo (269) */2303 export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {2304 readonly specVersion: Compact<u32>;2305 readonly specName: Text;2306 }23072308 /** @name FrameSystemLimitsBlockWeights (270) */2309 export interface FrameSystemLimitsBlockWeights extends Struct {2310 readonly baseBlock: u64;2311 readonly maxBlock: u64;2312 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;2313 }23142315 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (271) */2316 export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {2317 readonly normal: FrameSystemLimitsWeightsPerClass;2318 readonly operational: FrameSystemLimitsWeightsPerClass;2319 readonly mandatory: FrameSystemLimitsWeightsPerClass;2320 }23212322 /** @name FrameSystemLimitsWeightsPerClass (272) */2323 export interface FrameSystemLimitsWeightsPerClass extends Struct {2324 readonly baseExtrinsic: u64;2325 readonly maxExtrinsic: Option<u64>;2326 readonly maxTotal: Option<u64>;2327 readonly reserved: Option<u64>;2328 }23292330 /** @name FrameSystemLimitsBlockLength (274) */2331 export interface FrameSystemLimitsBlockLength extends Struct {2332 readonly max: FrameSupportWeightsPerDispatchClassU32;2333 }23342335 /** @name FrameSupportWeightsPerDispatchClassU32 (275) */2336 export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {2337 readonly normal: u32;2338 readonly operational: u32;2339 readonly mandatory: u32;2340 }23412342 /** @name FrameSupportWeightsRuntimeDbWeight (276) */2343 export interface FrameSupportWeightsRuntimeDbWeight extends Struct {2344 readonly read: u64;2345 readonly write: u64;2346 }23472348 /** @name SpVersionRuntimeVersion (277) */2349 export interface SpVersionRuntimeVersion extends Struct {2350 readonly specName: Text;2351 readonly implName: Text;2352 readonly authoringVersion: u32;2353 readonly specVersion: u32;2354 readonly implVersion: u32;2355 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;2356 readonly transactionVersion: u32;2357 readonly stateVersion: u8;2358 }23592360 /** @name FrameSystemError (281) */2361 export interface FrameSystemError extends Enum {2362 readonly isInvalidSpecName: boolean;2363 readonly isSpecVersionNeedsToIncrease: boolean;2364 readonly isFailedToExtractRuntimeVersion: boolean;2365 readonly isNonDefaultComposite: boolean;2366 readonly isNonZeroRefCount: boolean;2367 readonly isCallFiltered: boolean;2368 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';2369 }23702371 /** @name OrmlVestingModuleError (283) */2372 export interface OrmlVestingModuleError extends Enum {2373 readonly isZeroVestingPeriod: boolean;2374 readonly isZeroVestingPeriodCount: boolean;2375 readonly isInsufficientBalanceToLock: boolean;2376 readonly isTooManyVestingSchedules: boolean;2377 readonly isAmountLow: boolean;2378 readonly isMaxVestingSchedulesExceeded: boolean;2379 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2380 }23812382 /** @name CumulusPalletXcmpQueueInboundChannelDetails (285) */2383 export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2384 readonly sender: u32;2385 readonly state: CumulusPalletXcmpQueueInboundState;2386 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2387 }23882389 /** @name CumulusPalletXcmpQueueInboundState (286) */2390 export interface CumulusPalletXcmpQueueInboundState extends Enum {2391 readonly isOk: boolean;2392 readonly isSuspended: boolean;2393 readonly type: 'Ok' | 'Suspended';2394 }23952396 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (289) */2397 export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2398 readonly isConcatenatedVersionedXcm: boolean;2399 readonly isConcatenatedEncodedBlob: boolean;2400 readonly isSignals: boolean;2401 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2402 }24032404 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (292) */2405 export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2406 readonly recipient: u32;2407 readonly state: CumulusPalletXcmpQueueOutboundState;2408 readonly signalsExist: bool;2409 readonly firstIndex: u16;2410 readonly lastIndex: u16;2411 }24122413 /** @name CumulusPalletXcmpQueueOutboundState (293) */2414 export interface CumulusPalletXcmpQueueOutboundState extends Enum {2415 readonly isOk: boolean;2416 readonly isSuspended: boolean;2417 readonly type: 'Ok' | 'Suspended';2418 }24192420 /** @name CumulusPalletXcmpQueueQueueConfigData (295) */2421 export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2422 readonly suspendThreshold: u32;2423 readonly dropThreshold: u32;2424 readonly resumeThreshold: u32;2425 readonly thresholdWeight: u64;2426 readonly weightRestrictDecay: u64;2427 readonly xcmpMaxIndividualWeight: u64;2428 }24292430 /** @name CumulusPalletXcmpQueueError (297) */2431 export interface CumulusPalletXcmpQueueError extends Enum {2432 readonly isFailedToSend: boolean;2433 readonly isBadXcmOrigin: boolean;2434 readonly isBadXcm: boolean;2435 readonly isBadOverweightIndex: boolean;2436 readonly isWeightOverLimit: boolean;2437 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2438 }24392440 /** @name PalletXcmError (298) */2441 export interface PalletXcmError extends Enum {2442 readonly isUnreachable: boolean;2443 readonly isSendFailure: boolean;2444 readonly isFiltered: boolean;2445 readonly isUnweighableMessage: boolean;2446 readonly isDestinationNotInvertible: boolean;2447 readonly isEmpty: boolean;2448 readonly isCannotReanchor: boolean;2449 readonly isTooManyAssets: boolean;2450 readonly isInvalidOrigin: boolean;2451 readonly isBadVersion: boolean;2452 readonly isBadLocation: boolean;2453 readonly isNoSubscription: boolean;2454 readonly isAlreadySubscribed: boolean;2455 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2456 }24572458 /** @name CumulusPalletXcmError (299) */2459 export type CumulusPalletXcmError = Null;24602461 /** @name CumulusPalletDmpQueueConfigData (300) */2462 export interface CumulusPalletDmpQueueConfigData extends Struct {2463 readonly maxIndividual: u64;2464 }24652466 /** @name CumulusPalletDmpQueuePageIndexData (301) */2467 export interface CumulusPalletDmpQueuePageIndexData extends Struct {2468 readonly beginUsed: u32;2469 readonly endUsed: u32;2470 readonly overweightCount: u64;2471 }24722473 /** @name CumulusPalletDmpQueueError (304) */2474 export interface CumulusPalletDmpQueueError extends Enum {2475 readonly isUnknown: boolean;2476 readonly isOverLimit: boolean;2477 readonly type: 'Unknown' | 'OverLimit';2478 }24792480 /** @name PalletUniqueError (308) */2481 export interface PalletUniqueError extends Enum {2482 readonly isCollectionDecimalPointLimitExceeded: boolean;2483 readonly isConfirmUnsetSponsorFail: boolean;2484 readonly isEmptyArgument: boolean;2485 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2486 }24872488 /** @name UpDataStructsCollection (309) */2489 export interface UpDataStructsCollection extends Struct {2490 readonly owner: AccountId32;2491 readonly mode: UpDataStructsCollectionMode;2492 readonly access: UpDataStructsAccessMode;2493 readonly name: Vec<u16>;2494 readonly description: Vec<u16>;2495 readonly tokenPrefix: Bytes;2496 readonly mintMode: bool;2497 readonly schemaVersion: UpDataStructsSchemaVersion;2498 readonly sponsorship: UpDataStructsSponsorshipState;2499 readonly limits: UpDataStructsCollectionLimits;2500 readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;2501 }25022503 /** @name UpDataStructsSponsorshipState (310) */2504 export interface UpDataStructsSponsorshipState extends Enum {2505 readonly isDisabled: boolean;2506 readonly isUnconfirmed: boolean;2507 readonly asUnconfirmed: AccountId32;2508 readonly isConfirmed: boolean;2509 readonly asConfirmed: AccountId32;2510 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';2511 }25122513 /** @name UpDataStructsProperties (311) */2514 export interface UpDataStructsProperties extends Struct {2515 readonly map: BTreeMap<Bytes, Bytes>;2516 readonly consumedSpace: u32;2517 readonly spaceLimit: u32;2518 }25192520 /** @name UpDataStructsCollectionField (321) */2521 export interface UpDataStructsCollectionField extends Enum {2522 readonly isVariableOnChainSchema: boolean;2523 readonly isConstOnChainSchema: boolean;2524 readonly isOffchainSchema: boolean;2525 readonly type: 'VariableOnChainSchema' | 'ConstOnChainSchema' | 'OffchainSchema';2526 }25272528 /** @name UpDataStructsCollectionStats (324) */2529 export interface UpDataStructsCollectionStats extends Struct {2530 readonly created: u32;2531 readonly destroyed: u32;2532 readonly alive: u32;2533 }25342535 /** @name PhantomTypeUpDataStructsTokenData (325) */2536 export interface PhantomTypeUpDataStructsTokenData extends Vec<UpDataStructsTokenData> {}25372538 /** @name UpDataStructsTokenData (326) */2539 export interface UpDataStructsTokenData extends Struct {2540 readonly constData: Bytes;2541 readonly properties: Vec<UpDataStructsProperty>;2542 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;2543 }25442545 /** @name PhantomTypeUpDataStructsRpcCollection (329) */2546 export interface PhantomTypeUpDataStructsRpcCollection extends Vec<UpDataStructsRpcCollection> {}25472548 /** @name UpDataStructsRpcCollection (330) */2549 export interface UpDataStructsRpcCollection extends Struct {2550 readonly owner: AccountId32;2551 readonly mode: UpDataStructsCollectionMode;2552 readonly access: UpDataStructsAccessMode;2553 readonly name: Vec<u16>;2554 readonly description: Vec<u16>;2555 readonly tokenPrefix: Bytes;2556 readonly mintMode: bool;2557 readonly offchainSchema: Bytes;2558 readonly schemaVersion: UpDataStructsSchemaVersion;2559 readonly sponsorship: UpDataStructsSponsorshipState;2560 readonly limits: UpDataStructsCollectionLimits;2561 readonly variableOnChainSchema: Bytes;2562 readonly constOnChainSchema: Bytes;2563 readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;2564 }25652566 /** @name PalletCommonError (332) */2567 export interface PalletCommonError extends Enum {2568 readonly isCollectionNotFound: boolean;2569 readonly isMustBeTokenOwner: boolean;2570 readonly isNoPermission: boolean;2571 readonly isPublicMintingNotAllowed: boolean;2572 readonly isAddressNotInAllowlist: boolean;2573 readonly isCollectionNameLimitExceeded: boolean;2574 readonly isCollectionDescriptionLimitExceeded: boolean;2575 readonly isCollectionTokenPrefixLimitExceeded: boolean;2576 readonly isTotalCollectionsLimitExceeded: boolean;2577 readonly isTokenVariableDataLimitExceeded: boolean;2578 readonly isCollectionAdminCountExceeded: boolean;2579 readonly isCollectionLimitBoundsExceeded: boolean;2580 readonly isOwnerPermissionsCantBeReverted: boolean;2581 readonly isTransferNotAllowed: boolean;2582 readonly isAccountTokenLimitExceeded: boolean;2583 readonly isCollectionTokenLimitExceeded: boolean;2584 readonly isMetadataFlagFrozen: boolean;2585 readonly isTokenNotFound: boolean;2586 readonly isTokenValueTooLow: boolean;2587 readonly isApprovedValueTooLow: boolean;2588 readonly isCantApproveMoreThanOwned: boolean;2589 readonly isAddressIsZero: boolean;2590 readonly isUnsupportedOperation: boolean;2591 readonly isNotSufficientFounds: boolean;2592 readonly isNestingIsDisabled: boolean;2593 readonly isOnlyOwnerAllowedToNest: boolean;2594 readonly isSourceCollectionIsNotAllowedToNest: boolean;2595 readonly isCollectionFieldSizeExceeded: boolean;2596 readonly isNoSpaceForProperty: boolean;2597 readonly isPropertyLimitReached: boolean;2598 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' | 'NoSpaceForProperty' | 'PropertyLimitReached';2599 }26002601 /** @name PalletFungibleError (334) */2602 export interface PalletFungibleError extends Enum {2603 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;2604 readonly isFungibleItemsHaveNoId: boolean;2605 readonly isFungibleItemsDontHaveData: boolean;2606 readonly isFungibleDisallowsNesting: boolean;2607 readonly isSettingPropertiesNotAllowed: boolean;2608 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';2609 }26102611 /** @name PalletRefungibleItemData (335) */2612 export interface PalletRefungibleItemData extends Struct {2613 readonly constData: Bytes;2614 readonly variableData: Bytes;2615 }26162617 /** @name PalletRefungibleError (339) */2618 export interface PalletRefungibleError extends Enum {2619 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;2620 readonly isWrongRefungiblePieces: boolean;2621 readonly isRefungibleDisallowsNesting: boolean;2622 readonly isSettingPropertiesNotAllowed: boolean;2623 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';2624 }26252626 /** @name PalletNonfungibleItemData (340) */2627 export interface PalletNonfungibleItemData extends Struct {2628 readonly constData: Bytes;2629 readonly variableData: Bytes;2630 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2631 }26322633 /** @name PalletNonfungibleError (341) */2634 export interface PalletNonfungibleError extends Enum {2635 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;2636 readonly isNonfungibleItemsHaveNoAmount: boolean;2637 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount';2638 }26392640 /** @name PalletStructureError (342) */2641 export interface PalletStructureError extends Enum {2642 readonly isOuroborosDetected: boolean;2643 readonly isDepthLimit: boolean;2644 readonly isTokenNotFound: boolean;2645 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'TokenNotFound';2646 }26472648 /** @name PalletEvmError (344) */2649 export interface PalletEvmError extends Enum {2650 readonly isBalanceLow: boolean;2651 readonly isFeeOverflow: boolean;2652 readonly isPaymentOverflow: boolean;2653 readonly isWithdrawFailed: boolean;2654 readonly isGasPriceTooLow: boolean;2655 readonly isInvalidNonce: boolean;2656 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';2657 }26582659 /** @name FpRpcTransactionStatus (347) */2660 export interface FpRpcTransactionStatus extends Struct {2661 readonly transactionHash: H256;2662 readonly transactionIndex: u32;2663 readonly from: H160;2664 readonly to: Option<H160>;2665 readonly contractAddress: Option<H160>;2666 readonly logs: Vec<EthereumLog>;2667 readonly logsBloom: EthbloomBloom;2668 }26692670 /** @name EthbloomBloom (350) */2671 export interface EthbloomBloom extends U8aFixed {}26722673 /** @name EthereumReceiptReceiptV3 (352) */2674 export interface EthereumReceiptReceiptV3 extends Enum {2675 readonly isLegacy: boolean;2676 readonly asLegacy: EthereumReceiptEip658ReceiptData;2677 readonly isEip2930: boolean;2678 readonly asEip2930: EthereumReceiptEip658ReceiptData;2679 readonly isEip1559: boolean;2680 readonly asEip1559: EthereumReceiptEip658ReceiptData;2681 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';2682 }26832684 /** @name EthereumReceiptEip658ReceiptData (353) */2685 export interface EthereumReceiptEip658ReceiptData extends Struct {2686 readonly statusCode: u8;2687 readonly usedGas: U256;2688 readonly logsBloom: EthbloomBloom;2689 readonly logs: Vec<EthereumLog>;2690 }26912692 /** @name EthereumBlock (354) */2693 export interface EthereumBlock extends Struct {2694 readonly header: EthereumHeader;2695 readonly transactions: Vec<EthereumTransactionTransactionV2>;2696 readonly ommers: Vec<EthereumHeader>;2697 }26982699 /** @name EthereumHeader (355) */2700 export interface EthereumHeader extends Struct {2701 readonly parentHash: H256;2702 readonly ommersHash: H256;2703 readonly beneficiary: H160;2704 readonly stateRoot: H256;2705 readonly transactionsRoot: H256;2706 readonly receiptsRoot: H256;2707 readonly logsBloom: EthbloomBloom;2708 readonly difficulty: U256;2709 readonly number: U256;2710 readonly gasLimit: U256;2711 readonly gasUsed: U256;2712 readonly timestamp: u64;2713 readonly extraData: Bytes;2714 readonly mixHash: H256;2715 readonly nonce: EthereumTypesHashH64;2716 }27172718 /** @name EthereumTypesHashH64 (356) */2719 export interface EthereumTypesHashH64 extends U8aFixed {}27202721 /** @name PalletEthereumError (361) */2722 export interface PalletEthereumError extends Enum {2723 readonly isInvalidSignature: boolean;2724 readonly isPreLogExists: boolean;2725 readonly type: 'InvalidSignature' | 'PreLogExists';2726 }27272728 /** @name PalletEvmCoderSubstrateError (362) */2729 export interface PalletEvmCoderSubstrateError extends Enum {2730 readonly isOutOfGas: boolean;2731 readonly isOutOfFund: boolean;2732 readonly type: 'OutOfGas' | 'OutOfFund';2733 }27342735 /** @name PalletEvmContractHelpersSponsoringModeT (363) */2736 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {2737 readonly isDisabled: boolean;2738 readonly isAllowlisted: boolean;2739 readonly isGenerous: boolean;2740 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';2741 }27422743 /** @name PalletEvmContractHelpersError (365) */2744 export interface PalletEvmContractHelpersError extends Enum {2745 readonly isNoPermission: boolean;2746 readonly type: 'NoPermission';2747 }27482749 /** @name PalletEvmMigrationError (366) */2750 export interface PalletEvmMigrationError extends Enum {2751 readonly isAccountNotEmpty: boolean;2752 readonly isAccountIsNotMigrating: boolean;2753 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';2754 }27552756 /** @name SpRuntimeMultiSignature (368) */2757 export interface SpRuntimeMultiSignature extends Enum {2758 readonly isEd25519: boolean;2759 readonly asEd25519: SpCoreEd25519Signature;2760 readonly isSr25519: boolean;2761 readonly asSr25519: SpCoreSr25519Signature;2762 readonly isEcdsa: boolean;2763 readonly asEcdsa: SpCoreEcdsaSignature;2764 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';2765 }27662767 /** @name SpCoreEd25519Signature (369) */2768 export interface SpCoreEd25519Signature extends U8aFixed {}27692770 /** @name SpCoreSr25519Signature (371) */2771 export interface SpCoreSr25519Signature extends U8aFixed {}27722773 /** @name SpCoreEcdsaSignature (372) */2774 export interface SpCoreEcdsaSignature extends U8aFixed {}27752776 /** @name FrameSystemExtensionsCheckSpecVersion (375) */2777 export type FrameSystemExtensionsCheckSpecVersion = Null;27782779 /** @name FrameSystemExtensionsCheckGenesis (376) */2780 export type FrameSystemExtensionsCheckGenesis = Null;27812782 /** @name FrameSystemExtensionsCheckNonce (379) */2783 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}27842785 /** @name FrameSystemExtensionsCheckWeight (380) */2786 export type FrameSystemExtensionsCheckWeight = Null;27872788 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (381) */2789 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}27902791 /** @name OpalRuntimeRuntime (382) */2792 export type OpalRuntimeRuntime = Null;27932794} // declare moduletests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -54,13 +54,26 @@
topmostTokenOwner: fun('Get token owner, in case of nested token - find parent recursive', [collectionParam, tokenParam], `Option<${CROSS_ACCOUNT_ID_TYPE}>`),
constMetadata: fun('Get token constant metadata', [collectionParam, tokenParam], 'Vec<u8>'),
variableMetadata: fun('Get token variable metadata', [collectionParam, tokenParam], 'Vec<u8>'),
-
collectionProperties: fun(
'Get collection properties',
[collectionParam, propertyKeysParam],
'Vec<UpDataStructsProperty>',
),
-
+ tokenProperties: fun(
+ 'Get token properties',
+ [collectionParam, tokenParam, propertyKeysParam],
+ 'Vec<UpDataStructsProperty>',
+ ),
+ propertyPermissions: fun(
+ 'Get property permissions',
+ [collectionParam, propertyKeysParam],
+ 'Vec<UpDataStructsPropertyKeyPermission>',
+ ),
+ tokenData: fun(
+ 'Get token data',
+ [collectionParam, tokenParam, propertyKeysParam],
+ 'UpDataStructsTokenData',
+ ),
tokenExists: fun('Check if token exists', [collectionParam, tokenParam], 'bool'),
collectionById: fun('Get collection by specified id', [collectionParam], 'Option<UpDataStructsRpcCollection>'),
collectionStats: fun('Get collection stats', [], 'UpDataStructsCollectionStats'),
tests/src/interfaces/unique/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/types.ts
+++ b/tests/src/interfaces/unique/types.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-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 { BTreeMap, 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';
@@ -447,7 +447,7 @@
export interface FrameSupportPalletId extends U8aFixed {}
/** @name FrameSupportStorageBoundedBTreeSet */
-export interface FrameSupportStorageBoundedBTreeSet extends BTreeSet<u32> {}
+export interface FrameSupportStorageBoundedBTreeSet extends Vec<u32> {}
/** @name FrameSupportTokensMiscBalanceStatus */
export interface FrameSupportTokensMiscBalanceStatus extends Enum {
@@ -1086,8 +1086,8 @@
readonly isFungibleItemsHaveNoId: boolean;
readonly isFungibleItemsDontHaveData: boolean;
readonly isFungibleDisallowsNesting: boolean;
- readonly isPropertiesNotAllowed: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'PropertiesNotAllowed';
+ readonly isSettingPropertiesNotAllowed: boolean;
+ readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
/** @name PalletInflationCall */
@@ -1118,8 +1118,8 @@
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
readonly isRefungibleDisallowsNesting: boolean;
- readonly isPropertiesNotAllowed: boolean;
- readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'PropertiesNotAllowed';
+ readonly isSettingPropertiesNotAllowed: boolean;
+ readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
/** @name PalletRefungibleItemData */
@@ -1632,8 +1632,11 @@
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<Lookup326> {}
+/** @name PhantomTypeUpDataStructsRpcCollection */
+export interface PhantomTypeUpDataStructsRpcCollection extends Vec<Lookup330> {}
+
+/** @name PhantomTypeUpDataStructsTokenData */
+export interface PhantomTypeUpDataStructsTokenData extends Vec<Lookup326> {}
/** @name PolkadotCorePrimitivesInboundDownwardMessage */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
@@ -1782,7 +1785,7 @@
/** @name SpTrieStorageProof */
export interface SpTrieStorageProof extends Struct {
- readonly trieNodes: BTreeSet<Bytes>;
+ readonly trieNodes: Vec<Bytes>;
}
/** @name SpVersionRuntimeVersion */
@@ -1908,12 +1911,14 @@
export interface UpDataStructsCreateNftData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
+ readonly properties: Vec<UpDataStructsProperty>;
}
/** @name UpDataStructsCreateNftExData */
export interface UpDataStructsCreateNftExData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
+ readonly properties: Vec<UpDataStructsProperty>;
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
@@ -1968,14 +1973,10 @@
}
/** @name UpDataStructsPropertyPermission */
-export interface UpDataStructsPropertyPermission extends Enum {
- readonly isNone: boolean;
- readonly isAdminConst: boolean;
- readonly isAdmin: boolean;
- readonly isItemOwnerConst: boolean;
- readonly isItemOwner: boolean;
- readonly isItemOwnerOrAdmin: boolean;
- readonly type: 'None' | 'AdminConst' | 'Admin' | 'ItemOwnerConst' | 'ItemOwner' | 'ItemOwnerOrAdmin';
+export interface UpDataStructsPropertyPermission extends Struct {
+ readonly mutable: bool;
+ readonly collectionAdmin: bool;
+ readonly tokenOwner: bool;
}
/** @name UpDataStructsRpcCollection */
@@ -2021,6 +2022,13 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
+/** @name UpDataStructsTokenData */
+export interface UpDataStructsTokenData extends Struct {
+ readonly constData: Bytes;
+ readonly properties: Vec<UpDataStructsProperty>;
+ readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
+}
+
/** @name XcmDoubleEncoded */
export interface XcmDoubleEncoded extends Struct {
readonly encoded: Bytes;
tests/src/nesting/migration-check.test.tsdiffbeforeafterboth--- a/tests/src/nesting/migration-check.test.ts
+++ b/tests/src/nesting/migration-check.test.ts
@@ -5,6 +5,8 @@
import {IKeyringPair} from '@polkadot/types/types';
import {strToUTF16} from '../util/util';
import waitNewBlocks from '../substrate/wait-new-blocks';
+// Used for polkadot-launch signalling
+import find from 'find-process';
// todo skip
describe('Migration testing for pallet-common', () => {
@@ -54,13 +56,12 @@
let newVersion = oldVersion!;
let connectionFailCounter = 0;
- // Cooperate with polkadot-launch if it's running (assuming custom name change), and send a custom signal
- const find = require('find-process');
- find('name', 'polkadot-launch', true).then(function (list: [any]) {
- for (let proc of list) {
+ // Cooperate with polkadot-launch if it's running (assuming custom name change to 'polkadot-launch'), and send a custom signal
+ find('name', 'polkadot-launch', true).then((list) => {
+ for (const proc of list) {
process.kill(proc.pid, 'SIGUSR1');
}
- })
+ });
// And wait for the parachain upgrade
while (newVersion == oldVersion! && connectionFailCounter < 2) {
tests/src/nesting/properties.test.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/nesting/properties.test.ts
@@ -0,0 +1,652 @@
+import {expect} from 'chai';
+import privateKey from '../substrate/privateKey';
+import usingApi, {executeTransaction} from '../substrate/substrate-api';
+import {
+ addCollectionAdminExpectSuccess,
+ createCollectionExpectSuccess,
+ createItemExpectSuccess,
+ getCreateCollectionResult,
+ transferExpectSuccess,
+} from '../util/helpers';
+import {IKeyringPair} from '@polkadot/types/types';
+
+let alice: IKeyringPair;
+let bob: IKeyringPair;
+let charlie: IKeyringPair;
+
+// ---------- COLLECTION PROPERTIES
+
+describe('Integration Test: Collection Properties', () => {
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ });
+
+ it('Reads properties from a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+ const properties = (await api.query.common.collectionProperties(collection)).toJSON();
+ expect(properties.map).to.be.empty;
+ expect(properties.consumedSpace).to.equal(0);
+ });
+ });
+
+ it('Sets properties for a collection', async () => {
+ await usingApi(async api => {
+ const events = await executeTransaction(api, bob, api.tx.unique.createCollectionEx({mode: 'NFT'}));
+ const {collectionId} = getCreateCollectionResult(events);
+
+ // As owner
+ await expect(executeTransaction(
+ api,
+ bob,
+ api.tx.unique.setCollectionProperties(collectionId, [{key: 'electron', value: 'come bond'}]),
+ )).to.not.be.rejected;
+
+ await addCollectionAdminExpectSuccess(bob, collectionId, alice.address);
+
+ // As administrator
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collectionId, [{key: 'black hole'}]),
+ )).to.not.be.rejected;
+
+ const properties = (await api.rpc.unique.collectionProperties(collectionId, ['electron', 'black hole'])).toJSON();
+ expect(properties).to.be.deep.equal([
+ {key: `0x${Buffer.from('electron').toString('hex')}`, value: `0x${Buffer.from('come bond').toString('hex')}`},
+ {key: `0x${Buffer.from('black hole').toString('hex')}`, value: `0x${Buffer.from('').toString('hex')}`},
+ ]);
+ });
+ });
+
+ it('Changes properties of a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'electron', value: 'come bond'}, {key: 'black hole'}]),
+ )).to.not.be.rejected;
+
+ // Mutate the properties
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'electron', value: 'bonded'}, {key: 'black hole', value: 'LIGO'}]),
+ )).to.not.be.rejected;
+
+ const properties = (await api.rpc.unique.collectionProperties(collection, ['electron', 'black hole'])).toJSON();
+ expect(properties).to.be.deep.equal([
+ {key: `0x${Buffer.from('electron').toString('hex')}`, value: `0x${Buffer.from('bonded').toString('hex')}`},
+ {key: `0x${Buffer.from('black hole').toString('hex')}`, value: `0x${Buffer.from('LIGO').toString('hex')}`},
+ ]);
+ });
+ });
+
+ it('Deletes properties of a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'electron', value: 'come bond'}, {key: 'black hole', value: 'LIGO'}]),
+ )).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.deleteCollectionProperties(collection, ['electron']),
+ )).to.not.be.rejected;
+
+ const properties = (await api.rpc.unique.collectionProperties(collection, ['electron', 'black hole'])).toJSON();
+ expect(properties).to.be.deep.equal([
+ {key: `0x${Buffer.from('black hole').toString('hex')}`, value: `0x${Buffer.from('LIGO').toString('hex')}`},
+ ]);
+ });
+ });
+});
+
+describe('Negative Integration Test: Collection Properties', () => {
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ });
+
+ it('Fails to set properties in a collection if not its onwer/administrator', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ bob,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'electron', value: 'come bond'}, {key: 'black hole', value: 'LIGO'}]),
+ )).to.be.rejectedWith(/common\.NoPermission/);
+
+ const properties = (await api.query.common.collectionProperties(collection)).toJSON();
+ expect(properties.map).to.be.empty;
+ expect(properties.consumedSpace).to.equal(0);
+ });
+ });
+
+ it('Fails to set properties that exceed the limits', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+ const spaceLimit = (await api.query.common.collectionProperties(collection)).toJSON().spaceLimit as number;
+
+ // Mute the general tx parsing error, too many bytes to process
+ {
+ console.error = () => {};
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'electron', value: 'low high '.repeat(Math.ceil(spaceLimit! / 9))}]),
+ )).to.be.rejected;
+ }
+
+ let properties = (await api.rpc.unique.collectionProperties(collection, ['electron'])).toJSON();
+ expect(properties).to.be.empty;
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [
+ {key: 'electron', value: 'low high '.repeat(Math.ceil(spaceLimit! / 18))},
+ {key: 'black hole', value: '0'.repeat(Math.ceil(spaceLimit! / 2))},
+ ]),
+ )).to.be.rejectedWith(/common\.NoSpaceForProperty/);
+
+ properties = (await api.rpc.unique.collectionProperties(collection, ['electron', 'black hole'])).toJSON();
+ expect(properties).to.be.empty;
+ });
+ });
+
+ it('Fails to set more properties than it is allowed', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ const propertiesToBeSet = [];
+ for (let i = 0; i < 65; i++) {
+ propertiesToBeSet.push({
+ key: 'electron ' + i,
+ value: Math.random() > 0.5 ? 'high' : 'low',
+ });
+ }
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, propertiesToBeSet),
+ )).to.be.rejectedWith(/common\.PropertyLimitReached/);
+
+ const properties = (await api.query.common.collectionProperties(collection)).toJSON();
+ expect(properties.map).to.be.empty;
+ expect(properties.consumedSpace).to.equal(0);
+ });
+ });
+});
+
+// ---------- ACCESS RIGHTS
+
+describe('Integration Test: Access Rights to Token Properties', () => {
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ });
+
+ it('Reads access rights to properties of a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+ const propertyRights = (await api.query.common.collectionPropertyPermissions(collection)).toJSON();
+ expect(propertyRights).to.be.empty;
+ });
+ });
+
+ it('Sets access rights to properties of a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {mutable: true}}]),
+ )).to.not.be.rejected;
+
+ await addCollectionAdminExpectSuccess(alice, collection, bob.address);
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'mindgame', permission: {collectionAdmin: true, tokenOwner: false}}]),
+ )).to.not.be.rejected;
+
+ const propertyRights = (await api.rpc.unique.propertyPermissions(collection, ['skullduggery', 'mindgame'])).toJSON();
+ expect(propertyRights).to.be.deep.equal([
+ {key: `0x${Buffer.from('skullduggery').toString('hex')}`, permission: {'mutable': true, 'collectionAdmin': false, 'tokenOwner': false}},
+ {key: `0x${Buffer.from('mindgame').toString('hex')}`, permission: {'mutable': false, 'collectionAdmin': true, 'tokenOwner': false}},
+ ]);
+ });
+ });
+
+ it('Changes access rights to properties of a collection', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {mutable: true, collectionAdmin: true}}]),
+ )).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {mutable: false, tokenOwner: true}}]),
+ )).to.not.be.rejected;
+
+ const propertyRights = (await api.rpc.unique.propertyPermissions(collection, ['skullduggery'])).toJSON();
+ expect(propertyRights).to.be.deep.equal([
+ {key: `0x${Buffer.from('skullduggery').toString('hex')}`, permission: {'mutable': false, 'collectionAdmin': false, 'tokenOwner': true}},
+ ]);
+ });
+ });
+});
+
+describe('Negative Integration Test: Access Rights to Token Properties', () => {
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ });
+
+ it('Prevents from setting access rights to properties of a collection if not an onwer/admin', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ bob,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {mutable: true, tokenOwner: true}}]),
+ )).to.be.rejectedWith(/common\.NoPermission/);
+
+ const propertyRights = (await api.rpc.unique.propertyPermissions(collection, ['skullduggery'])).toJSON();
+ expect(propertyRights).to.be.empty;
+ });
+ });
+
+ it('Prevents from adding too many possible properties', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ const constitution = [];
+ for (let i = 0; i < 65; i++) {
+ constitution.push({
+ key: 'property ' + i,
+ permission: Math.random() > 0.5 ? {mutable: true, collectionAdmin: true, tokenOwner: true} : {},
+ });
+ }
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, constitution),
+ )).to.be.rejectedWith(/common\.PropertyLimitReached/);
+
+ const propertyRights = (await api.query.common.collectionPropertyPermissions(collection)).toJSON();
+ expect(propertyRights).to.be.empty;
+ });
+ });
+
+ it('Prevents access rights to be modified if constant', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {mutable: false, tokenOwner: true}}]),
+ )).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'skullduggery', permission: {}}]),
+ )).to.be.rejectedWith(/common\.NoPermission/);
+
+ const propertyRights = (await api.rpc.unique.propertyPermissions(collection, ['skullduggery'])).toJSON();
+ expect(propertyRights).to.deep.equal([
+ {key: `0x${Buffer.from('skullduggery').toString('hex')}`, permission: {'mutable': false, 'collectionAdmin': false, 'tokenOwner': true}},
+ ]);
+ });
+ });
+});
+
+// ---------- TOKEN PROPERTIES
+
+describe('Integration Test: Token Properties', () => {
+ let collection: number;
+ let token: number;
+ let permissions: {permission: any, signers: IKeyringPair[]}[];
+
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ charlie = privateKey('//Charlie');
+
+ permissions = [
+ {permission: {mutable: true, collectionAdmin: true}, signers: [alice, bob]},
+ {permission: {mutable: false, collectionAdmin: true}, signers: [alice, bob]},
+ {permission: {mutable: true, tokenOwner: true}, signers: [charlie]},
+ {permission: {mutable: false, tokenOwner: true}, signers: [charlie]},
+ {permission: {mutable: true, collectionAdmin: true, tokenOwner: true}, signers: [alice, bob, charlie]},
+ {permission: {mutable: false, collectionAdmin: true, tokenOwner: true}, signers: [alice, bob, charlie]},
+ ];
+ });
+
+ beforeEach(async () => {
+ collection = await createCollectionExpectSuccess();
+ token = await createItemExpectSuccess(alice, collection, 'NFT');
+ await addCollectionAdminExpectSuccess(alice, collection, bob.address);
+ await transferExpectSuccess(collection, token, alice, charlie);
+ });
+
+ it('Reads properties of a token', async () => {
+ await usingApi(async api => {
+ const collection = await createCollectionExpectSuccess();
+ const token = await createItemExpectSuccess(alice, collection, 'NFT');
+
+ const properties = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON();
+ expect(properties.map).to.be.empty;
+ expect(properties.consumedSpace).to.be.equal(0);
+
+ const tokenData = (await api.rpc.unique.tokenData(collection, token, ['anything'])).toJSON().properties;
+ expect(tokenData).to.be.empty;
+ });
+ });
+
+ it('Assigns properties to a token according to permissions', async () => {
+ await usingApi(async api => {
+ const propertyKeys: string[] = [];
+ let i = 0;
+ for (const permission of permissions) {
+ for (const signer of permission.signers) {
+ const key = i + ' ' + signer.address;
+ propertyKeys.push(key);
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: key, permission: permission.permission}]),
+ ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.setTokenProperties(collection, token, [{key: key, value: 'Serotonin increase'}]),
+ ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;
+ }
+
+ i++;
+ }
+
+ const properties = (await api.rpc.unique.tokenProperties(collection, token, propertyKeys)).toJSON() as any[];
+ const tokensData = (await api.rpc.unique.tokenData(collection, token, propertyKeys)).toJSON().properties as any[];
+ for (let i = 0; i < properties.length; i++) {
+ expect(properties[i].value).to.be.equal(`0x${Buffer.from('Serotonin increase').toString('hex')}`);
+ expect(tokensData[i].value).to.be.equal(`0x${Buffer.from('Serotonin increase').toString('hex')}`);
+ }
+ });
+ });
+
+ it('Changes properties of a token according to permissions', async () => {
+ await usingApi(async api => {
+ const propertyKeys: string[] = [];
+ let i = 0;
+ for (const permission of permissions) {
+ if (!permission.permission.mutable) continue;
+
+ for (const signer of permission.signers) {
+ const key = i + ' ' + signer.address;
+ propertyKeys.push(key);
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: key, permission: permission.permission}]),
+ ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.setTokenProperties(collection, token, [{key: key, value: 'Serotonin increase'}]),
+ ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.setTokenProperties(collection, token, [{key: key, value: 'Serotonin stable'}]),
+ ), `on changing property ${i} by ${signer.address}`).to.not.be.rejected;
+ }
+
+ i++;
+ }
+
+ const properties = (await api.rpc.unique.tokenProperties(collection, token, propertyKeys)).toJSON() as any[];
+ const tokensData = (await api.rpc.unique.tokenData(collection, token, propertyKeys)).toJSON().properties as any[];
+ for (let i = 0; i < properties.length; i++) {
+ expect(properties[i].value).to.be.equal(`0x${Buffer.from('Serotonin stable').toString('hex')}`);
+ expect(tokensData[i].value).to.be.equal(`0x${Buffer.from('Serotonin stable').toString('hex')}`);
+ }
+ });
+ });
+
+ it('Deletes properties of a token according to permissions', async () => {
+ await usingApi(async api => {
+ const propertyKeys: string[] = [];
+ let i = 0;
+
+ for (const permission of permissions) {
+ if (!permission.permission.mutable) continue;
+
+ for (const signer of permission.signers) {
+ const key = i + ' ' + signer.address;
+ propertyKeys.push(key);
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: key, permission: permission.permission}]),
+ ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.setTokenProperties(collection, token, [{key: key, value: 'Serotonin increase'}]),
+ ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.deleteTokenProperties(collection, token, [key]),
+ ), `on deleting property ${i} by ${signer.address}`).to.not.be.rejected;
+ }
+
+ i++;
+ }
+
+ const properties = (await api.rpc.unique.tokenProperties(collection, token, propertyKeys)).toJSON() as any[];
+ expect(properties).to.be.empty;
+ const tokensData = (await api.rpc.unique.tokenData(collection, token, propertyKeys)).toJSON().properties as any[];
+ expect(tokensData).to.be.empty;
+ expect((await api.query.nonfungible.tokenProperties(collection, token)).toJSON().consumedSpace).to.be.equal(0);
+ });
+ });
+});
+
+describe('Negative Integration Test: Token Properties', () => {
+ let collection: number;
+ let token: number;
+ let originalSpace: number;
+ let constitution: {permission: any, signers: IKeyringPair[], sinner: IKeyringPair}[];
+
+ before(async () => {
+ alice = privateKey('//Alice');
+ bob = privateKey('//Bob');
+ charlie = privateKey('//Charlie');
+ const dave = privateKey('//Dave');
+
+ constitution = [
+ {permission: {mutable: true, collectionAdmin: true}, signers: [alice, bob], sinner: charlie},
+ {permission: {mutable: false, collectionAdmin: true}, signers: [alice, bob], sinner: charlie},
+ {permission: {mutable: true, tokenOwner: true}, signers: [charlie], sinner: alice},
+ {permission: {mutable: false, tokenOwner: true}, signers: [charlie], sinner: alice},
+ {permission: {mutable: true, collectionAdmin: true, tokenOwner: true}, signers: [alice, bob, charlie], sinner: dave},
+ {permission: {mutable: false, collectionAdmin: true, tokenOwner: true}, signers: [alice, bob, charlie], sinner: dave},
+ ];
+ });
+
+ beforeEach(async () => {
+ collection = await createCollectionExpectSuccess();
+ token = await createItemExpectSuccess(alice, collection, 'NFT');
+ await addCollectionAdminExpectSuccess(alice, collection, bob.address);
+ await transferExpectSuccess(collection, token, alice, charlie);
+
+ await usingApi(async api => {
+ let i = 0;
+ for (const passage of constitution) {
+ const signer = passage.signers[0];
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: i, permission: passage.permission}]),
+ ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ signer,
+ api.tx.unique.setTokenProperties(collection, token, [{key: i, value: 'Serotonin increase'}]),
+ ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;
+
+ i++;
+ }
+
+ originalSpace = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON().consumedSpace as number;
+ });
+ });
+
+ it('Forbids changing/deleting properties of a token if the user is outside of permissions', async () => {
+ await usingApi(async api => {
+ let i = -1;
+ for (const forbiddance of constitution) {
+ i++;
+ if (!forbiddance.permission.mutable) continue;
+
+ await expect(executeTransaction(
+ api,
+ forbiddance.sinner,
+ api.tx.unique.setTokenProperties(collection, token, [{key: i, value: 'Serotonin down'}]),
+ ), `on failing to change property ${i} by ${forbiddance.sinner.address}`).to.be.rejectedWith(/common\.NoPermission/);
+
+ await expect(executeTransaction(
+ api,
+ forbiddance.sinner,
+ api.tx.unique.deleteTokenProperties(collection, token, [forbiddance.permission]),
+ ), `on failing to delete property ${i} by ${forbiddance.sinner.address}`).to.be.rejectedWith(/common\.NoPermission/);
+ }
+
+ // todo RPC?
+ const properties = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON();
+ expect(properties.consumedSpace).to.be.equal(originalSpace);
+ });
+ });
+
+ it('Forbids changing/deleting properties of a token if the property is permanent (constant)', async () => {
+ await usingApi(async api => {
+ let i = -1;
+ for (const permission of constitution) {
+ i++;
+ if (permission.permission.mutable) continue;
+
+ await expect(executeTransaction(
+ api,
+ permission.signers[0],
+ api.tx.unique.setTokenProperties(collection, token, [{key: i, value: 'Serotonin down'}]),
+ ), `on failing to change property ${i} by ${permission.signers[0].address}`).to.be.rejectedWith(/common\.NoPermission/);
+
+ await expect(executeTransaction(
+ api,
+ permission.signers[0],
+ api.tx.unique.deleteTokenProperties(collection, token, [i.toString()]),
+ ), `on failing to delete property ${i} by ${permission.signers[0].address}`).to.be.rejectedWith(/common\.NoPermission/);
+ }
+
+ // todo RPC?
+ const properties = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON();
+ expect(properties.consumedSpace).to.be.equal(originalSpace);
+ });
+ });
+
+ it('Forbids adding properties to a token if the property is not declared / forbidden with the \'None\' permission', async () => {
+ await usingApi(async api => {
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setTokenProperties(collection, token, [{key: 'non-existent', value: 'I exist!'}]),
+ ), 'on failing to add a previously non-existent property').to.be.rejectedWith(/common\.NoPermission/);
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [{key: 'now-existent', permission: {}}]),
+ ), 'on setting a new non-permitted property').to.not.be.rejected;
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setTokenProperties(collection, token, [{key: 'now-existent', value: 'I exist!'}]),
+ ), 'on failing to add a property forbidden by the \'None\' permission').to.be.rejectedWith(/common\.NoPermission/);
+
+ expect((await api.rpc.unique.tokenProperties(collection, token, ['non-existent', 'now-existent'])).toJSON()).to.be.empty;
+ const properties = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON();
+ expect(properties.consumedSpace).to.be.equal(originalSpace);
+ });
+ });
+
+ it('Forbids adding too many properties to a token', async () => {
+ await usingApi(async api => {
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setPropertyPermissions(collection, [
+ {key: 'a holy book', permission: {collectionAdmin: true, tokenOwner: true}},
+ {key: 'young years', permission: {collectionAdmin: true, tokenOwner: true}},
+ ]),
+ ), 'on setting a new non-permitted property').to.not.be.rejected;
+
+ // Mute the general tx parsing error
+ {
+ console.error = () => {};
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setCollectionProperties(collection, [{key: 'a holy book', value: 'word '.repeat(6554)}]),
+ )).to.be.rejected;
+ }
+
+ await expect(executeTransaction(
+ api,
+ alice,
+ api.tx.unique.setTokenProperties(collection, token, [
+ {key: 'a holy book', value: 'word '.repeat(3277)},
+ {key: 'young years', value: 'neverending'.repeat(1490)},
+ ]),
+ )).to.be.rejectedWith(/common\.NoSpaceForProperty/);
+
+ expect((await api.rpc.unique.tokenProperties(collection, token, ['a holy book', 'young years'])).toJSON()).to.be.empty;
+ const propertiesMap = (await api.query.nonfungible.tokenProperties(collection, token)).toJSON();
+ expect(propertiesMap.consumedSpace).to.be.equal(originalSpace);
+ });
+ });
+});
\ No newline at end of file
tests/src/nesting/unnest.test.tsdiffbeforeafterboth--- a/tests/src/nesting/unnest.test.ts
+++ b/tests/src/nesting/unnest.test.ts
@@ -10,7 +10,6 @@
getTopmostTokenOwner,
normalizeAccountId,
setCollectionLimitsExpectSuccess,
- transferExpectFailure,
transferExpectSuccess,
} from '../util/helpers';
import {IKeyringPair} from '@polkadot/types/types';