git.delta.rocks / unique-network / refs/commits / 68b26b95f7a0

difftreelog

CORE-238 add effective_collection_limits

Trubnikov Sergey2022-03-24parent: #c8aac15.patch.diff
in: master

13 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9360,6 +9360,42 @@
 ]
 
 [[package]]
+name = "sc-consensus-manual-seal"
+version = "0.10.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17#22d40c761a985482f93bbbea5ba4199bdba74f8e"
+dependencies = [
+ "assert_matches",
+ "async-trait",
+ "futures 0.3.21",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "log",
+ "parity-scale-codec",
+ "sc-client-api",
+ "sc-consensus",
+ "sc-consensus-aura",
+ "sc-consensus-babe",
+ "sc-consensus-epochs",
+ "sc-transaction-pool",
+ "sc-transaction-pool-api",
+ "serde",
+ "sp-api",
+ "sp-blockchain",
+ "sp-consensus",
+ "sp-consensus-aura",
+ "sp-consensus-babe",
+ "sp-consensus-slots",
+ "sp-core",
+ "sp-inherents",
+ "sp-keystore",
+ "sp-runtime",
+ "sp-timestamp",
+ "substrate-prometheus-endpoint",
+ "thiserror",
+]
+
+[[package]]
 name = "sc-consensus-slots"
 version = "0.10.0-dev"
 source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.17#22d40c761a985482f93bbbea5ba4199bdba74f8e"
@@ -11697,7 +11733,7 @@
  "chrono",
  "lazy_static",
  "matchers",
- "parking_lot 0.11.2",
+ "parking_lot 0.10.2",
  "regex",
  "serde",
  "serde_json",
@@ -11957,6 +11993,7 @@
  "sc-client-api",
  "sc-consensus",
  "sc-consensus-aura",
+ "sc-consensus-manual-seal",
  "sc-executor",
  "sc-finality-grandpa",
  "sc-keystore",
modifiedclient/rpc/src/lib.rsdiffbeforeafterboth
--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -19,7 +19,7 @@
 use codec::Decode;
 use jsonrpc_core::{Error as RpcError, ErrorCode, Result};
 use jsonrpc_derive::rpc;
-use up_data_structs::{Collection, CollectionId, CollectionStats, TokenId};
+use up_data_structs::{Collection, CollectionId, CollectionStats, CollectionLimits, TokenId};
 use sp_api::{BlockId, BlockT, ProvideRuntimeApi, ApiExt};
 use sp_blockchain::HeaderBackend;
 use up_rpc::UniqueApi as UniqueRuntimeApi;
@@ -119,6 +119,12 @@
 	) -> Result<Option<Collection<AccountId>>>;
 	#[rpc(name = "unique_collectionStats")]
 	fn collection_stats(&self, at: Option<BlockHash>) -> Result<CollectionStats>;
+	#[rpc(name = "unique_effectiveCollectionLimits")]
+	fn effective_collection_limits(
+		&self,
+		collection_id: CollectionId,
+		at: Option<BlockHash>
+	) -> Result<Option<CollectionLimits>>;
 }
 
 pub struct Unique<C, P> {
@@ -222,4 +228,5 @@
 	pass_method!(last_token_id(collection: CollectionId) -> TokenId);
 	pass_method!(collection_by_id(collection: CollectionId) -> Option<Collection<AccountId>>);
 	pass_method!(collection_stats() -> CollectionStats);
+	pass_method!(effective_collection_limits(collection_id: CollectionId) -> Option<CollectionLimits>);
 }
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -33,7 +33,7 @@
 	TokenId, Weight, WithdrawReasons, CollectionStats, MAX_TOKEN_OWNERSHIP, CollectionMode,
 	NFT_SPONSOR_TRANSFER_TIMEOUT, FUNGIBLE_SPONSOR_TRANSFER_TIMEOUT,
 	REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, MAX_SPONSOR_TIMEOUT, CUSTOM_DATA_LIMIT, CollectionLimits,
-	CustomDataLimit, CreateCollectionData, SponsorshipState, CreateItemExData,
+	CustomDataLimit, CreateCollectionData, SponsorshipState, CreateItemExData, SponsoringRateLimit
 };
 pub use pallet::*;
 use sp_core::H160;
@@ -421,6 +421,30 @@
 			alive: created.0 - destroyed.0,
 		}
 	}
+
+	pub fn effective_collection_limits(collection: CollectionId) -> Option<CollectionLimits> {
+		let collection = <CollectionById<T>>::get(collection);
+		if collection.is_none() {
+			return None;
+		}
+		
+		let limits = collection.unwrap().limits;
+		let effective_limits = CollectionLimits {
+			account_token_ownership_limit: Some(limits.account_token_ownership_limit()),
+			sponsored_data_size: Some(limits.sponsored_data_size()),
+			sponsored_data_rate_limit: Some(
+				limits.sponsored_data_rate_limit
+				.unwrap_or(SponsoringRateLimit::SponsoringDisabled)),
+			token_limit: Some(limits.token_limit()),
+			sponsor_transfer_timeout: Some(limits.sponsor_transfer_timeout(MAX_SPONSOR_TIMEOUT)),
+			sponsor_approve_timeout: Some(limits.sponsor_approve_timeout()),
+			owner_can_transfer: Some(limits.owner_can_transfer()),
+			owner_can_destroy: Some(limits.owner_can_destroy()),
+			transfers_enabled: Some(limits.transfers_enabled()),
+		};
+
+		Some(effective_limits)
+	}
 }
 
 impl<T: Config> Pallet<T> {
modifiedprimitives/rpc/src/lib.rsdiffbeforeafterboth
--- a/primitives/rpc/src/lib.rs
+++ b/primitives/rpc/src/lib.rs
@@ -16,7 +16,7 @@
 
 #![cfg_attr(not(feature = "std"), no_std)]
 
-use up_data_structs::{CollectionId, TokenId, Collection, CollectionStats};
+use up_data_structs::{CollectionId, TokenId, Collection, CollectionStats, CollectionLimits};
 use sp_std::vec::Vec;
 use sp_core::H160;
 use codec::Decode;
@@ -59,5 +59,6 @@
 		fn last_token_id(collection: CollectionId) -> Result<TokenId>;
 		fn collection_by_id(collection: CollectionId) -> Result<Option<Collection<AccountId>>>;
 		fn collection_stats() -> Result<CollectionStats>;
+		fn effective_collection_limits(collection_id: CollectionId) -> Result<Option<CollectionLimits>>;
 	}
 }
modifiedruntime/common/src/runtime_apis.rsdiffbeforeafterboth
--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -69,6 +69,10 @@
                 fn collection_stats() -> Result<CollectionStats, DispatchError> {
                     Ok(<pallet_common::Pallet<Runtime>>::collection_stats())
                 }
+
+                fn effective_collection_limits(collection: CollectionId) -> Result<Option<CollectionLimits>, DispatchError> {
+                    Ok(<pallet_common::Pallet<Runtime>>::effective_collection_limits(collection))
+                }
             }
 
             impl sp_api::Core<Block> for Runtime {
modifiedtests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -105,6 +105,10 @@
        **/
       NoPermission: AugmentedError<ApiType>;
       /**
+       * Not sufficient founds to perform action
+       **/
+      NotSufficientFounds: AugmentedError<ApiType>;
+      /**
        * Tried to enable permissions which are only permitted to be disabled
        **/
       OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;
modifiedtests/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 { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionStats } from './unique';
+import type { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionStats } 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';
@@ -604,6 +604,10 @@
        **/
       constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;
       /**
+       * Get effective collection limits
+       **/
+      effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;
+      /**
        * Get last token id
        **/
       lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
modifiedtests/src/interfaces/augment-types.tsdiffbeforeafterboth
--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -1,7 +1,7 @@
 // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
 /* eslint-disable */
 
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UniqueRuntimeRuntime, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './unique';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, 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, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './unique';
 import type { 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';
@@ -18,7 +18,7 @@
 import type { StatementKind } from '@polkadot/types/interfaces/claims';
 import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
 import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
-import type { AliveContractInfo, CodeHash, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateReturnValue, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
+import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
 import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
 import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
 import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
@@ -198,6 +198,7 @@
     ClassMetadata: ClassMetadata;
     CodecHash: CodecHash;
     CodeHash: CodeHash;
+    CodeSource: CodeSource;
     CodeUploadRequest: CodeUploadRequest;
     CodeUploadResult: CodeUploadResult;
     CodeUploadResultValue: CodeUploadResultValue;
@@ -250,6 +251,7 @@
     ContractInfo: ContractInfo;
     ContractInstantiateResult: ContractInstantiateResult;
     ContractInstantiateResultTo267: ContractInstantiateResultTo267;
+    ContractInstantiateResultTo299: ContractInstantiateResultTo299;
     ContractLayoutArray: ContractLayoutArray;
     ContractLayoutCell: ContractLayoutCell;
     ContractLayoutEnum: ContractLayoutEnum;
@@ -591,7 +593,10 @@
     InstanceId: InstanceId;
     InstanceMetadata: InstanceMetadata;
     InstantiateRequest: InstantiateRequest;
+    InstantiateRequestV1: InstantiateRequestV1;
+    InstantiateRequestV2: InstantiateRequestV2;
     InstantiateReturnValue: InstantiateReturnValue;
+    InstantiateReturnValueOk: InstantiateReturnValueOk;
     InstantiateReturnValueTo267: InstantiateReturnValueTo267;
     InstructionV2: InstructionV2;
     InstructionWeights: InstructionWeights;
@@ -707,6 +712,7 @@
     OffchainAccuracyCompact: OffchainAccuracyCompact;
     OffenceDetails: OffenceDetails;
     Offender: Offender;
+    OpalRuntimeRuntime: OpalRuntimeRuntime;
     OpaqueCall: OpaqueCall;
     OpaqueMultiaddr: OpaqueMultiaddr;
     OpaqueNetworkState: OpaqueNetworkState;
@@ -1146,7 +1152,6 @@
     UnappliedSlash: UnappliedSlash;
     UnappliedSlashOther: UnappliedSlashOther;
     UncleEntryItem: UncleEntryItem;
-    UniqueRuntimeRuntime: UniqueRuntimeRuntime;
     UnknownTransaction: UnknownTransaction;
     UnlockChunk: UnlockChunk;
     UnrewardedRelayer: UnrewardedRelayer;
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1756,7 +1756,7 @@
     }
   },
   /**
-   * Lookup225: frame_system::EventRecord<unique_runtime::Event, primitive_types::H256>
+   * Lookup225: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>
    **/
   FrameSystemEventRecord: {
     phase: 'FrameSystemPhase',
@@ -2240,7 +2240,7 @@
    * Lookup297: 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']
+    _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']
   },
   /**
    * Lookup299: pallet_fungible::pallet::Error<T>
@@ -2417,11 +2417,11 @@
    **/
   FrameSystemExtensionsCheckWeight: 'Null',
   /**
-   * Lookup345: pallet_template_transaction_payment::ChargeTransactionPayment<unique_runtime::Runtime>
+   * Lookup345: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
    **/
   PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
   /**
-   * Lookup346: unique_runtime::Runtime
+   * Lookup346: opal_runtime::Runtime
    **/
-  UniqueRuntimeRuntime: 'Null'
+  OpalRuntimeRuntime: 'Null'
 };
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -2462,7 +2462,8 @@
     readonly isCantApproveMoreThanOwned: boolean;
     readonly isAddressIsZero: boolean;
     readonly isUnsupportedOperation: boolean;
-    readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation';
+    readonly isNotSufficientFounds: boolean;
+    readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds';
   }
 
   /** @name PalletFungibleError (299) */
@@ -2643,7 +2644,7 @@
   /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (345) */
   export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
 
-  /** @name UniqueRuntimeRuntime (346) */
-  export type UniqueRuntimeRuntime = Null;
+  /** @name OpalRuntimeRuntime (346) */
+  export type OpalRuntimeRuntime = Null;
 
 } // declare module
modifiedtests/src/interfaces/unique/definitions.tsdiffbeforeafterboth
--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -55,5 +55,6 @@
     collectionById: fun('Get collection by specified id', [collectionParam], 'Option<UpDataStructsCollection>'),
     collectionStats: fun('Get collection stats', [], 'UpDataStructsCollectionStats'),
     allowed: fun('Check if user is allowed to use collection', [collectionParam, crossAccountParam()], 'bool'),
+    effectiveCollectionLimits: fun('Get effective collection limits', [collectionParam], 'Option<UpDataStructsCollectionLimits>'),
   },
 };
modifiedtests/src/interfaces/unique/types.tsdiffbeforeafterboth
after · tests/src/interfaces/unique/types.ts
1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34import type { BTreeMap, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';5import type { ITuple } from '@polkadot/types-codec/types';6import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';7import type { Event } from '@polkadot/types/interfaces/system';89/** @name CumulusPalletDmpQueueCall */10export interface CumulusPalletDmpQueueCall extends Enum {11  readonly isServiceOverweight: boolean;12  readonly asServiceOverweight: {13    readonly index: u64;14    readonly weightLimit: u64;15  } & Struct;16  readonly type: 'ServiceOverweight';17}1819/** @name CumulusPalletDmpQueueConfigData */20export interface CumulusPalletDmpQueueConfigData extends Struct {21  readonly maxIndividual: u64;22}2324/** @name CumulusPalletDmpQueueError */25export interface CumulusPalletDmpQueueError extends Enum {26  readonly isUnknown: boolean;27  readonly isOverLimit: boolean;28  readonly type: 'Unknown' | 'OverLimit';29}3031/** @name CumulusPalletDmpQueueEvent */32export interface CumulusPalletDmpQueueEvent extends Enum {33  readonly isInvalidFormat: boolean;34  readonly asInvalidFormat: U8aFixed;35  readonly isUnsupportedVersion: boolean;36  readonly asUnsupportedVersion: U8aFixed;37  readonly isExecutedDownward: boolean;38  readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;39  readonly isWeightExhausted: boolean;40  readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;41  readonly isOverweightEnqueued: boolean;42  readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;43  readonly isOverweightServiced: boolean;44  readonly asOverweightServiced: ITuple<[u64, u64]>;45  readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';46}4748/** @name CumulusPalletDmpQueuePageIndexData */49export interface CumulusPalletDmpQueuePageIndexData extends Struct {50  readonly beginUsed: u32;51  readonly endUsed: u32;52  readonly overweightCount: u64;53}5455/** @name CumulusPalletParachainSystemCall */56export interface CumulusPalletParachainSystemCall extends Enum {57  readonly isSetValidationData: boolean;58  readonly asSetValidationData: {59    readonly data: CumulusPrimitivesParachainInherentParachainInherentData;60  } & Struct;61  readonly isSudoSendUpwardMessage: boolean;62  readonly asSudoSendUpwardMessage: {63    readonly message: Bytes;64  } & Struct;65  readonly isAuthorizeUpgrade: boolean;66  readonly asAuthorizeUpgrade: {67    readonly codeHash: H256;68  } & Struct;69  readonly isEnactAuthorizedUpgrade: boolean;70  readonly asEnactAuthorizedUpgrade: {71    readonly code: Bytes;72  } & Struct;73  readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';74}7576/** @name CumulusPalletParachainSystemError */77export interface CumulusPalletParachainSystemError extends Enum {78  readonly isOverlappingUpgrades: boolean;79  readonly isProhibitedByPolkadot: boolean;80  readonly isTooBig: boolean;81  readonly isValidationDataNotAvailable: boolean;82  readonly isHostConfigurationNotAvailable: boolean;83  readonly isNotScheduled: boolean;84  readonly isNothingAuthorized: boolean;85  readonly isUnauthorized: boolean;86  readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';87}8889/** @name CumulusPalletParachainSystemEvent */90export interface CumulusPalletParachainSystemEvent extends Enum {91  readonly isValidationFunctionStored: boolean;92  readonly isValidationFunctionApplied: boolean;93  readonly asValidationFunctionApplied: u32;94  readonly isValidationFunctionDiscarded: boolean;95  readonly isUpgradeAuthorized: boolean;96  readonly asUpgradeAuthorized: H256;97  readonly isDownwardMessagesReceived: boolean;98  readonly asDownwardMessagesReceived: u32;99  readonly isDownwardMessagesProcessed: boolean;100  readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;101  readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';102}103104/** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot */105export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {106  readonly dmqMqcHead: H256;107  readonly relayDispatchQueueSize: ITuple<[u32, u32]>;108  readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;109  readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV1AbridgedHrmpChannel]>>;110}111112/** @name CumulusPalletXcmCall */113export interface CumulusPalletXcmCall extends Null {}114115/** @name CumulusPalletXcmError */116export interface CumulusPalletXcmError extends Null {}117118/** @name CumulusPalletXcmEvent */119export interface CumulusPalletXcmEvent extends Enum {120  readonly isInvalidFormat: boolean;121  readonly asInvalidFormat: U8aFixed;122  readonly isUnsupportedVersion: boolean;123  readonly asUnsupportedVersion: U8aFixed;124  readonly isExecutedDownward: boolean;125  readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;126  readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';127}128129/** @name CumulusPalletXcmpQueueCall */130export interface CumulusPalletXcmpQueueCall extends Enum {131  readonly isServiceOverweight: boolean;132  readonly asServiceOverweight: {133    readonly index: u64;134    readonly weightLimit: u64;135  } & Struct;136  readonly isSuspendXcmExecution: boolean;137  readonly isResumeXcmExecution: boolean;138  readonly isUpdateSuspendThreshold: boolean;139  readonly asUpdateSuspendThreshold: {140    readonly new_: u32;141  } & Struct;142  readonly isUpdateDropThreshold: boolean;143  readonly asUpdateDropThreshold: {144    readonly new_: u32;145  } & Struct;146  readonly isUpdateResumeThreshold: boolean;147  readonly asUpdateResumeThreshold: {148    readonly new_: u32;149  } & Struct;150  readonly isUpdateThresholdWeight: boolean;151  readonly asUpdateThresholdWeight: {152    readonly new_: u64;153  } & Struct;154  readonly isUpdateWeightRestrictDecay: boolean;155  readonly asUpdateWeightRestrictDecay: {156    readonly new_: u64;157  } & Struct;158  readonly isUpdateXcmpMaxIndividualWeight: boolean;159  readonly asUpdateXcmpMaxIndividualWeight: {160    readonly new_: u64;161  } & Struct;162  readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';163}164165/** @name CumulusPalletXcmpQueueError */166export interface CumulusPalletXcmpQueueError extends Enum {167  readonly isFailedToSend: boolean;168  readonly isBadXcmOrigin: boolean;169  readonly isBadXcm: boolean;170  readonly isBadOverweightIndex: boolean;171  readonly isWeightOverLimit: boolean;172  readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';173}174175/** @name CumulusPalletXcmpQueueEvent */176export interface CumulusPalletXcmpQueueEvent extends Enum {177  readonly isSuccess: boolean;178  readonly asSuccess: Option<H256>;179  readonly isFail: boolean;180  readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;181  readonly isBadVersion: boolean;182  readonly asBadVersion: Option<H256>;183  readonly isBadFormat: boolean;184  readonly asBadFormat: Option<H256>;185  readonly isUpwardMessageSent: boolean;186  readonly asUpwardMessageSent: Option<H256>;187  readonly isXcmpMessageSent: boolean;188  readonly asXcmpMessageSent: Option<H256>;189  readonly isOverweightEnqueued: boolean;190  readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;191  readonly isOverweightServiced: boolean;192  readonly asOverweightServiced: ITuple<[u64, u64]>;193  readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';194}195196/** @name CumulusPalletXcmpQueueInboundChannelDetails */197export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {198  readonly sender: u32;199  readonly state: CumulusPalletXcmpQueueInboundState;200  readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;201}202203/** @name CumulusPalletXcmpQueueInboundState */204export interface CumulusPalletXcmpQueueInboundState extends Enum {205  readonly isOk: boolean;206  readonly isSuspended: boolean;207  readonly type: 'Ok' | 'Suspended';208}209210/** @name CumulusPalletXcmpQueueOutboundChannelDetails */211export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {212  readonly recipient: u32;213  readonly state: CumulusPalletXcmpQueueOutboundState;214  readonly signalsExist: bool;215  readonly firstIndex: u16;216  readonly lastIndex: u16;217}218219/** @name CumulusPalletXcmpQueueOutboundState */220export interface CumulusPalletXcmpQueueOutboundState extends Enum {221  readonly isOk: boolean;222  readonly isSuspended: boolean;223  readonly type: 'Ok' | 'Suspended';224}225226/** @name CumulusPalletXcmpQueueQueueConfigData */227export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {228  readonly suspendThreshold: u32;229  readonly dropThreshold: u32;230  readonly resumeThreshold: u32;231  readonly thresholdWeight: u64;232  readonly weightRestrictDecay: u64;233  readonly xcmpMaxIndividualWeight: u64;234}235236/** @name CumulusPrimitivesParachainInherentParachainInherentData */237export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {238  readonly validationData: PolkadotPrimitivesV1PersistedValidationData;239  readonly relayChainState: SpTrieStorageProof;240  readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;241  readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;242}243244/** @name EthbloomBloom */245export interface EthbloomBloom extends U8aFixed {}246247/** @name EthereumBlock */248export interface EthereumBlock extends Struct {249  readonly header: EthereumHeader;250  readonly transactions: Vec<EthereumTransactionTransactionV2>;251  readonly ommers: Vec<EthereumHeader>;252}253254/** @name EthereumHeader */255export interface EthereumHeader extends Struct {256  readonly parentHash: H256;257  readonly ommersHash: H256;258  readonly beneficiary: H160;259  readonly stateRoot: H256;260  readonly transactionsRoot: H256;261  readonly receiptsRoot: H256;262  readonly logsBloom: EthbloomBloom;263  readonly difficulty: U256;264  readonly number: U256;265  readonly gasLimit: U256;266  readonly gasUsed: U256;267  readonly timestamp: u64;268  readonly extraData: Bytes;269  readonly mixHash: H256;270  readonly nonce: EthereumTypesHashH64;271}272273/** @name EthereumLog */274export interface EthereumLog extends Struct {275  readonly address: H160;276  readonly topics: Vec<H256>;277  readonly data: Bytes;278}279280/** @name EthereumReceiptEip658ReceiptData */281export interface EthereumReceiptEip658ReceiptData extends Struct {282  readonly statusCode: u8;283  readonly usedGas: U256;284  readonly logsBloom: EthbloomBloom;285  readonly logs: Vec<EthereumLog>;286}287288/** @name EthereumReceiptReceiptV3 */289export interface EthereumReceiptReceiptV3 extends Enum {290  readonly isLegacy: boolean;291  readonly asLegacy: EthereumReceiptEip658ReceiptData;292  readonly isEip2930: boolean;293  readonly asEip2930: EthereumReceiptEip658ReceiptData;294  readonly isEip1559: boolean;295  readonly asEip1559: EthereumReceiptEip658ReceiptData;296  readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';297}298299/** @name EthereumTransactionAccessListItem */300export interface EthereumTransactionAccessListItem extends Struct {301  readonly address: H160;302  readonly slots: Vec<H256>;303}304305/** @name EthereumTransactionEip1559Transaction */306export interface EthereumTransactionEip1559Transaction extends Struct {307  readonly chainId: u64;308  readonly nonce: U256;309  readonly maxPriorityFeePerGas: U256;310  readonly maxFeePerGas: U256;311  readonly gasLimit: U256;312  readonly action: EthereumTransactionTransactionAction;313  readonly value: U256;314  readonly input: Bytes;315  readonly accessList: Vec<EthereumTransactionAccessListItem>;316  readonly oddYParity: bool;317  readonly r: H256;318  readonly s: H256;319}320321/** @name EthereumTransactionEip2930Transaction */322export interface EthereumTransactionEip2930Transaction extends Struct {323  readonly chainId: u64;324  readonly nonce: U256;325  readonly gasPrice: U256;326  readonly gasLimit: U256;327  readonly action: EthereumTransactionTransactionAction;328  readonly value: U256;329  readonly input: Bytes;330  readonly accessList: Vec<EthereumTransactionAccessListItem>;331  readonly oddYParity: bool;332  readonly r: H256;333  readonly s: H256;334}335336/** @name EthereumTransactionLegacyTransaction */337export interface EthereumTransactionLegacyTransaction extends Struct {338  readonly nonce: U256;339  readonly gasPrice: U256;340  readonly gasLimit: U256;341  readonly action: EthereumTransactionTransactionAction;342  readonly value: U256;343  readonly input: Bytes;344  readonly signature: EthereumTransactionTransactionSignature;345}346347/** @name EthereumTransactionTransactionAction */348export interface EthereumTransactionTransactionAction extends Enum {349  readonly isCall: boolean;350  readonly asCall: H160;351  readonly isCreate: boolean;352  readonly type: 'Call' | 'Create';353}354355/** @name EthereumTransactionTransactionSignature */356export interface EthereumTransactionTransactionSignature extends Struct {357  readonly v: u64;358  readonly r: H256;359  readonly s: H256;360}361362/** @name EthereumTransactionTransactionV2 */363export interface EthereumTransactionTransactionV2 extends Enum {364  readonly isLegacy: boolean;365  readonly asLegacy: EthereumTransactionLegacyTransaction;366  readonly isEip2930: boolean;367  readonly asEip2930: EthereumTransactionEip2930Transaction;368  readonly isEip1559: boolean;369  readonly asEip1559: EthereumTransactionEip1559Transaction;370  readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';371}372373/** @name EthereumTypesHashH64 */374export interface EthereumTypesHashH64 extends U8aFixed {}375376/** @name EvmCoreErrorExitError */377export interface EvmCoreErrorExitError extends Enum {378  readonly isStackUnderflow: boolean;379  readonly isStackOverflow: boolean;380  readonly isInvalidJump: boolean;381  readonly isInvalidRange: boolean;382  readonly isDesignatedInvalid: boolean;383  readonly isCallTooDeep: boolean;384  readonly isCreateCollision: boolean;385  readonly isCreateContractLimit: boolean;386  readonly isInvalidCode: boolean;387  readonly isOutOfOffset: boolean;388  readonly isOutOfGas: boolean;389  readonly isOutOfFund: boolean;390  readonly isPcUnderflow: boolean;391  readonly isCreateEmpty: boolean;392  readonly isOther: boolean;393  readonly asOther: Text;394  readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'InvalidCode' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other';395}396397/** @name EvmCoreErrorExitFatal */398export interface EvmCoreErrorExitFatal extends Enum {399  readonly isNotSupported: boolean;400  readonly isUnhandledInterrupt: boolean;401  readonly isCallErrorAsFatal: boolean;402  readonly asCallErrorAsFatal: EvmCoreErrorExitError;403  readonly isOther: boolean;404  readonly asOther: Text;405  readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';406}407408/** @name EvmCoreErrorExitReason */409export interface EvmCoreErrorExitReason extends Enum {410  readonly isSucceed: boolean;411  readonly asSucceed: EvmCoreErrorExitSucceed;412  readonly isError: boolean;413  readonly asError: EvmCoreErrorExitError;414  readonly isRevert: boolean;415  readonly asRevert: EvmCoreErrorExitRevert;416  readonly isFatal: boolean;417  readonly asFatal: EvmCoreErrorExitFatal;418  readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';419}420421/** @name EvmCoreErrorExitRevert */422export interface EvmCoreErrorExitRevert extends Enum {423  readonly isReverted: boolean;424  readonly type: 'Reverted';425}426427/** @name EvmCoreErrorExitSucceed */428export interface EvmCoreErrorExitSucceed extends Enum {429  readonly isStopped: boolean;430  readonly isReturned: boolean;431  readonly isSuicided: boolean;432  readonly type: 'Stopped' | 'Returned' | 'Suicided';433}434435/** @name FpRpcTransactionStatus */436export interface FpRpcTransactionStatus extends Struct {437  readonly transactionHash: H256;438  readonly transactionIndex: u32;439  readonly from: H160;440  readonly to: Option<H160>;441  readonly contractAddress: Option<H160>;442  readonly logs: Vec<EthereumLog>;443  readonly logsBloom: EthbloomBloom;444}445446/** @name FrameSupportPalletId */447export interface FrameSupportPalletId extends U8aFixed {}448449/** @name FrameSupportTokensMiscBalanceStatus */450export interface FrameSupportTokensMiscBalanceStatus extends Enum {451  readonly isFree: boolean;452  readonly isReserved: boolean;453  readonly type: 'Free' | 'Reserved';454}455456/** @name FrameSupportWeightsDispatchClass */457export interface FrameSupportWeightsDispatchClass extends Enum {458  readonly isNormal: boolean;459  readonly isOperational: boolean;460  readonly isMandatory: boolean;461  readonly type: 'Normal' | 'Operational' | 'Mandatory';462}463464/** @name FrameSupportWeightsDispatchInfo */465export interface FrameSupportWeightsDispatchInfo extends Struct {466  readonly weight: u64;467  readonly class: FrameSupportWeightsDispatchClass;468  readonly paysFee: FrameSupportWeightsPays;469}470471/** @name FrameSupportWeightsPays */472export interface FrameSupportWeightsPays extends Enum {473  readonly isYes: boolean;474  readonly isNo: boolean;475  readonly type: 'Yes' | 'No';476}477478/** @name FrameSupportWeightsPerDispatchClassU32 */479export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {480  readonly normal: u32;481  readonly operational: u32;482  readonly mandatory: u32;483}484485/** @name FrameSupportWeightsPerDispatchClassU64 */486export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {487  readonly normal: u64;488  readonly operational: u64;489  readonly mandatory: u64;490}491492/** @name FrameSupportWeightsPerDispatchClassWeightsPerClass */493export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {494  readonly normal: FrameSystemLimitsWeightsPerClass;495  readonly operational: FrameSystemLimitsWeightsPerClass;496  readonly mandatory: FrameSystemLimitsWeightsPerClass;497}498499/** @name FrameSupportWeightsRuntimeDbWeight */500export interface FrameSupportWeightsRuntimeDbWeight extends Struct {501  readonly read: u64;502  readonly write: u64;503}504505/** @name FrameSupportWeightsWeightToFeeCoefficient */506export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {507  readonly coeffInteger: u128;508  readonly coeffFrac: Perbill;509  readonly negative: bool;510  readonly degree: u8;511}512513/** @name FrameSystemAccountInfo */514export interface FrameSystemAccountInfo extends Struct {515  readonly nonce: u32;516  readonly consumers: u32;517  readonly providers: u32;518  readonly sufficients: u32;519  readonly data: PalletBalancesAccountData;520}521522/** @name FrameSystemCall */523export interface FrameSystemCall extends Enum {524  readonly isFillBlock: boolean;525  readonly asFillBlock: {526    readonly ratio: Perbill;527  } & Struct;528  readonly isRemark: boolean;529  readonly asRemark: {530    readonly remark: Bytes;531  } & Struct;532  readonly isSetHeapPages: boolean;533  readonly asSetHeapPages: {534    readonly pages: u64;535  } & Struct;536  readonly isSetCode: boolean;537  readonly asSetCode: {538    readonly code: Bytes;539  } & Struct;540  readonly isSetCodeWithoutChecks: boolean;541  readonly asSetCodeWithoutChecks: {542    readonly code: Bytes;543  } & Struct;544  readonly isSetStorage: boolean;545  readonly asSetStorage: {546    readonly items: Vec<ITuple<[Bytes, Bytes]>>;547  } & Struct;548  readonly isKillStorage: boolean;549  readonly asKillStorage: {550    readonly keys_: Vec<Bytes>;551  } & Struct;552  readonly isKillPrefix: boolean;553  readonly asKillPrefix: {554    readonly prefix: Bytes;555    readonly subkeys: u32;556  } & Struct;557  readonly isRemarkWithEvent: boolean;558  readonly asRemarkWithEvent: {559    readonly remark: Bytes;560  } & Struct;561  readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';562}563564/** @name FrameSystemError */565export interface FrameSystemError extends Enum {566  readonly isInvalidSpecName: boolean;567  readonly isSpecVersionNeedsToIncrease: boolean;568  readonly isFailedToExtractRuntimeVersion: boolean;569  readonly isNonDefaultComposite: boolean;570  readonly isNonZeroRefCount: boolean;571  readonly isCallFiltered: boolean;572  readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';573}574575/** @name FrameSystemEvent */576export interface FrameSystemEvent extends Enum {577  readonly isExtrinsicSuccess: boolean;578  readonly asExtrinsicSuccess: {579    readonly dispatchInfo: FrameSupportWeightsDispatchInfo;580  } & Struct;581  readonly isExtrinsicFailed: boolean;582  readonly asExtrinsicFailed: {583    readonly dispatchError: SpRuntimeDispatchError;584    readonly dispatchInfo: FrameSupportWeightsDispatchInfo;585  } & Struct;586  readonly isCodeUpdated: boolean;587  readonly isNewAccount: boolean;588  readonly asNewAccount: {589    readonly account: AccountId32;590  } & Struct;591  readonly isKilledAccount: boolean;592  readonly asKilledAccount: {593    readonly account: AccountId32;594  } & Struct;595  readonly isRemarked: boolean;596  readonly asRemarked: {597    readonly sender: AccountId32;598    readonly hash_: H256;599  } & Struct;600  readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';601}602603/** @name FrameSystemEventRecord */604export interface FrameSystemEventRecord extends Struct {605  readonly phase: FrameSystemPhase;606  readonly event: Event;607  readonly topics: Vec<H256>;608}609610/** @name FrameSystemExtensionsCheckGenesis */611export interface FrameSystemExtensionsCheckGenesis extends Null {}612613/** @name FrameSystemExtensionsCheckNonce */614export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}615616/** @name FrameSystemExtensionsCheckSpecVersion */617export interface FrameSystemExtensionsCheckSpecVersion extends Null {}618619/** @name FrameSystemExtensionsCheckWeight */620export interface FrameSystemExtensionsCheckWeight extends Null {}621622/** @name FrameSystemLastRuntimeUpgradeInfo */623export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {624  readonly specVersion: Compact<u32>;625  readonly specName: Text;626}627628/** @name FrameSystemLimitsBlockLength */629export interface FrameSystemLimitsBlockLength extends Struct {630  readonly max: FrameSupportWeightsPerDispatchClassU32;631}632633/** @name FrameSystemLimitsBlockWeights */634export interface FrameSystemLimitsBlockWeights extends Struct {635  readonly baseBlock: u64;636  readonly maxBlock: u64;637  readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;638}639640/** @name FrameSystemLimitsWeightsPerClass */641export interface FrameSystemLimitsWeightsPerClass extends Struct {642  readonly baseExtrinsic: u64;643  readonly maxExtrinsic: Option<u64>;644  readonly maxTotal: Option<u64>;645  readonly reserved: Option<u64>;646}647648/** @name FrameSystemPhase */649export interface FrameSystemPhase extends Enum {650  readonly isApplyExtrinsic: boolean;651  readonly asApplyExtrinsic: u32;652  readonly isFinalization: boolean;653  readonly isInitialization: boolean;654  readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';655}656657/** @name OpalRuntimeRuntime */658export interface OpalRuntimeRuntime extends Null {}659660/** @name OrmlVestingModuleCall */661export interface OrmlVestingModuleCall extends Enum {662  readonly isClaim: boolean;663  readonly isVestedTransfer: boolean;664  readonly asVestedTransfer: {665    readonly dest: MultiAddress;666    readonly schedule: OrmlVestingVestingSchedule;667  } & Struct;668  readonly isUpdateVestingSchedules: boolean;669  readonly asUpdateVestingSchedules: {670    readonly who: MultiAddress;671    readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;672  } & Struct;673  readonly isClaimFor: boolean;674  readonly asClaimFor: {675    readonly dest: MultiAddress;676  } & Struct;677  readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';678}679680/** @name OrmlVestingModuleError */681export interface OrmlVestingModuleError extends Enum {682  readonly isZeroVestingPeriod: boolean;683  readonly isZeroVestingPeriodCount: boolean;684  readonly isInsufficientBalanceToLock: boolean;685  readonly isTooManyVestingSchedules: boolean;686  readonly isAmountLow: boolean;687  readonly isMaxVestingSchedulesExceeded: boolean;688  readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';689}690691/** @name OrmlVestingModuleEvent */692export interface OrmlVestingModuleEvent extends Enum {693  readonly isVestingScheduleAdded: boolean;694  readonly asVestingScheduleAdded: {695    readonly from: AccountId32;696    readonly to: AccountId32;697    readonly vestingSchedule: OrmlVestingVestingSchedule;698  } & Struct;699  readonly isClaimed: boolean;700  readonly asClaimed: {701    readonly who: AccountId32;702    readonly amount: u128;703  } & Struct;704  readonly isVestingSchedulesUpdated: boolean;705  readonly asVestingSchedulesUpdated: {706    readonly who: AccountId32;707  } & Struct;708  readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';709}710711/** @name OrmlVestingVestingSchedule */712export interface OrmlVestingVestingSchedule extends Struct {713  readonly start: u32;714  readonly period: u32;715  readonly periodCount: u32;716  readonly perPeriod: Compact<u128>;717}718719/** @name PalletBalancesAccountData */720export interface PalletBalancesAccountData extends Struct {721  readonly free: u128;722  readonly reserved: u128;723  readonly miscFrozen: u128;724  readonly feeFrozen: u128;725}726727/** @name PalletBalancesBalanceLock */728export interface PalletBalancesBalanceLock extends Struct {729  readonly id: U8aFixed;730  readonly amount: u128;731  readonly reasons: PalletBalancesReasons;732}733734/** @name PalletBalancesCall */735export interface PalletBalancesCall extends Enum {736  readonly isTransfer: boolean;737  readonly asTransfer: {738    readonly dest: MultiAddress;739    readonly value: Compact<u128>;740  } & Struct;741  readonly isSetBalance: boolean;742  readonly asSetBalance: {743    readonly who: MultiAddress;744    readonly newFree: Compact<u128>;745    readonly newReserved: Compact<u128>;746  } & Struct;747  readonly isForceTransfer: boolean;748  readonly asForceTransfer: {749    readonly source: MultiAddress;750    readonly dest: MultiAddress;751    readonly value: Compact<u128>;752  } & Struct;753  readonly isTransferKeepAlive: boolean;754  readonly asTransferKeepAlive: {755    readonly dest: MultiAddress;756    readonly value: Compact<u128>;757  } & Struct;758  readonly isTransferAll: boolean;759  readonly asTransferAll: {760    readonly dest: MultiAddress;761    readonly keepAlive: bool;762  } & Struct;763  readonly isForceUnreserve: boolean;764  readonly asForceUnreserve: {765    readonly who: MultiAddress;766    readonly amount: u128;767  } & Struct;768  readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';769}770771/** @name PalletBalancesError */772export interface PalletBalancesError extends Enum {773  readonly isVestingBalance: boolean;774  readonly isLiquidityRestrictions: boolean;775  readonly isInsufficientBalance: boolean;776  readonly isExistentialDeposit: boolean;777  readonly isKeepAlive: boolean;778  readonly isExistingVestingSchedule: boolean;779  readonly isDeadAccount: boolean;780  readonly isTooManyReserves: boolean;781  readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';782}783784/** @name PalletBalancesEvent */785export interface PalletBalancesEvent extends Enum {786  readonly isEndowed: boolean;787  readonly asEndowed: {788    readonly account: AccountId32;789    readonly freeBalance: u128;790  } & Struct;791  readonly isDustLost: boolean;792  readonly asDustLost: {793    readonly account: AccountId32;794    readonly amount: u128;795  } & Struct;796  readonly isTransfer: boolean;797  readonly asTransfer: {798    readonly from: AccountId32;799    readonly to: AccountId32;800    readonly amount: u128;801  } & Struct;802  readonly isBalanceSet: boolean;803  readonly asBalanceSet: {804    readonly who: AccountId32;805    readonly free: u128;806    readonly reserved: u128;807  } & Struct;808  readonly isReserved: boolean;809  readonly asReserved: {810    readonly who: AccountId32;811    readonly amount: u128;812  } & Struct;813  readonly isUnreserved: boolean;814  readonly asUnreserved: {815    readonly who: AccountId32;816    readonly amount: u128;817  } & Struct;818  readonly isReserveRepatriated: boolean;819  readonly asReserveRepatriated: {820    readonly from: AccountId32;821    readonly to: AccountId32;822    readonly amount: u128;823    readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;824  } & Struct;825  readonly isDeposit: boolean;826  readonly asDeposit: {827    readonly who: AccountId32;828    readonly amount: u128;829  } & Struct;830  readonly isWithdraw: boolean;831  readonly asWithdraw: {832    readonly who: AccountId32;833    readonly amount: u128;834  } & Struct;835  readonly isSlashed: boolean;836  readonly asSlashed: {837    readonly who: AccountId32;838    readonly amount: u128;839  } & Struct;840  readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';841}842843/** @name PalletBalancesReasons */844export interface PalletBalancesReasons extends Enum {845  readonly isFee: boolean;846  readonly isMisc: boolean;847  readonly isAll: boolean;848  readonly type: 'Fee' | 'Misc' | 'All';849}850851/** @name PalletBalancesReleases */852export interface PalletBalancesReleases extends Enum {853  readonly isV100: boolean;854  readonly isV200: boolean;855  readonly type: 'V100' | 'V200';856}857858/** @name PalletBalancesReserveData */859export interface PalletBalancesReserveData extends Struct {860  readonly id: U8aFixed;861  readonly amount: u128;862}863864/** @name PalletCommonAccountBasicCrossAccountIdRepr */865export interface PalletCommonAccountBasicCrossAccountIdRepr extends Enum {866  readonly isSubstrate: boolean;867  readonly asSubstrate: AccountId32;868  readonly isEthereum: boolean;869  readonly asEthereum: H160;870  readonly type: 'Substrate' | 'Ethereum';871}872873/** @name PalletCommonError */874export interface PalletCommonError extends Enum {875  readonly isCollectionNotFound: boolean;876  readonly isMustBeTokenOwner: boolean;877  readonly isNoPermission: boolean;878  readonly isPublicMintingNotAllowed: boolean;879  readonly isAddressNotInAllowlist: boolean;880  readonly isCollectionNameLimitExceeded: boolean;881  readonly isCollectionDescriptionLimitExceeded: boolean;882  readonly isCollectionTokenPrefixLimitExceeded: boolean;883  readonly isTotalCollectionsLimitExceeded: boolean;884  readonly isTokenVariableDataLimitExceeded: boolean;885  readonly isCollectionAdminCountExceeded: boolean;886  readonly isCollectionLimitBoundsExceeded: boolean;887  readonly isOwnerPermissionsCantBeReverted: boolean;888  readonly isTransferNotAllowed: boolean;889  readonly isAccountTokenLimitExceeded: boolean;890  readonly isCollectionTokenLimitExceeded: boolean;891  readonly isMetadataFlagFrozen: boolean;892  readonly isTokenNotFound: boolean;893  readonly isTokenValueTooLow: boolean;894  readonly isApprovedValueTooLow: boolean;895  readonly isCantApproveMoreThanOwned: boolean;896  readonly isAddressIsZero: boolean;897  readonly isUnsupportedOperation: boolean;898  readonly isNotSufficientFounds: boolean;899  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';900}901902/** @name PalletCommonEvent */903export interface PalletCommonEvent extends Enum {904  readonly isCollectionCreated: boolean;905  readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;906  readonly isCollectionDestroyed: boolean;907  readonly asCollectionDestroyed: u32;908  readonly isItemCreated: boolean;909  readonly asItemCreated: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;910  readonly isItemDestroyed: boolean;911  readonly asItemDestroyed: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;912  readonly isTransfer: boolean;913  readonly asTransfer: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;914  readonly isApproved: boolean;915  readonly asApproved: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;916  readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved';917}918919/** @name PalletEthereumCall */920export interface PalletEthereumCall extends Enum {921  readonly isTransact: boolean;922  readonly asTransact: {923    readonly transaction: EthereumTransactionTransactionV2;924  } & Struct;925  readonly type: 'Transact';926}927928/** @name PalletEthereumError */929export interface PalletEthereumError extends Enum {930  readonly isInvalidSignature: boolean;931  readonly isPreLogExists: boolean;932  readonly type: 'InvalidSignature' | 'PreLogExists';933}934935/** @name PalletEthereumEvent */936export interface PalletEthereumEvent extends Enum {937  readonly isExecuted: boolean;938  readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;939  readonly type: 'Executed';940}941942/** @name PalletEvmCall */943export interface PalletEvmCall extends Enum {944  readonly isWithdraw: boolean;945  readonly asWithdraw: {946    readonly address: H160;947    readonly value: u128;948  } & Struct;949  readonly isCall: boolean;950  readonly asCall: {951    readonly source: H160;952    readonly target: H160;953    readonly input: Bytes;954    readonly value: U256;955    readonly gasLimit: u64;956    readonly maxFeePerGas: U256;957    readonly maxPriorityFeePerGas: Option<U256>;958    readonly nonce: Option<U256>;959    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;960  } & Struct;961  readonly isCreate: boolean;962  readonly asCreate: {963    readonly source: H160;964    readonly init: Bytes;965    readonly value: U256;966    readonly gasLimit: u64;967    readonly maxFeePerGas: U256;968    readonly maxPriorityFeePerGas: Option<U256>;969    readonly nonce: Option<U256>;970    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;971  } & Struct;972  readonly isCreate2: boolean;973  readonly asCreate2: {974    readonly source: H160;975    readonly init: Bytes;976    readonly salt: H256;977    readonly value: U256;978    readonly gasLimit: u64;979    readonly maxFeePerGas: U256;980    readonly maxPriorityFeePerGas: Option<U256>;981    readonly nonce: Option<U256>;982    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;983  } & Struct;984  readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';985}986987/** @name PalletEvmCoderSubstrateError */988export interface PalletEvmCoderSubstrateError extends Enum {989  readonly isOutOfGas: boolean;990  readonly isOutOfFund: boolean;991  readonly type: 'OutOfGas' | 'OutOfFund';992}993994/** @name PalletEvmContractHelpersError */995export interface PalletEvmContractHelpersError extends Enum {996  readonly isNoPermission: boolean;997  readonly type: 'NoPermission';998}9991000/** @name PalletEvmContractHelpersSponsoringModeT */1001export interface PalletEvmContractHelpersSponsoringModeT extends Enum {1002  readonly isDisabled: boolean;1003  readonly isAllowlisted: boolean;1004  readonly isGenerous: boolean;1005  readonly type: 'Disabled' | 'Allowlisted' | 'Generous';1006}10071008/** @name PalletEvmError */1009export interface PalletEvmError extends Enum {1010  readonly isBalanceLow: boolean;1011  readonly isFeeOverflow: boolean;1012  readonly isPaymentOverflow: boolean;1013  readonly isWithdrawFailed: boolean;1014  readonly isGasPriceTooLow: boolean;1015  readonly isInvalidNonce: boolean;1016  readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';1017}10181019/** @name PalletEvmEvent */1020export interface PalletEvmEvent extends Enum {1021  readonly isLog: boolean;1022  readonly asLog: EthereumLog;1023  readonly isCreated: boolean;1024  readonly asCreated: H160;1025  readonly isCreatedFailed: boolean;1026  readonly asCreatedFailed: H160;1027  readonly isExecuted: boolean;1028  readonly asExecuted: H160;1029  readonly isExecutedFailed: boolean;1030  readonly asExecutedFailed: H160;1031  readonly isBalanceDeposit: boolean;1032  readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;1033  readonly isBalanceWithdraw: boolean;1034  readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;1035  readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';1036}10371038/** @name PalletEvmMigrationCall */1039export interface PalletEvmMigrationCall extends Enum {1040  readonly isBegin: boolean;1041  readonly asBegin: {1042    readonly address: H160;1043  } & Struct;1044  readonly isSetData: boolean;1045  readonly asSetData: {1046    readonly address: H160;1047    readonly data: Vec<ITuple<[H256, H256]>>;1048  } & Struct;1049  readonly isFinish: boolean;1050  readonly asFinish: {1051    readonly address: H160;1052    readonly code: Bytes;1053  } & Struct;1054  readonly type: 'Begin' | 'SetData' | 'Finish';1055}10561057/** @name PalletEvmMigrationError */1058export interface PalletEvmMigrationError extends Enum {1059  readonly isAccountNotEmpty: boolean;1060  readonly isAccountIsNotMigrating: boolean;1061  readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';1062}10631064/** @name PalletFungibleError */1065export interface PalletFungibleError extends Enum {1066  readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;1067  readonly isFungibleItemsHaveNoId: boolean;1068  readonly isFungibleItemsDontHaveData: boolean;1069  readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData';1070}10711072/** @name PalletInflationCall */1073export interface PalletInflationCall extends Enum {1074  readonly isStartInflation: boolean;1075  readonly asStartInflation: {1076    readonly inflationStartRelayBlock: u32;1077  } & Struct;1078  readonly type: 'StartInflation';1079}10801081/** @name PalletNonfungibleError */1082export interface PalletNonfungibleError extends Enum {1083  readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;1084  readonly isNonfungibleItemsHaveNoAmount: boolean;1085  readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount';1086}10871088/** @name PalletNonfungibleItemData */1089export interface PalletNonfungibleItemData extends Struct {1090  readonly constData: Bytes;1091  readonly variableData: Bytes;1092  readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1093}10941095/** @name PalletRefungibleError */1096export interface PalletRefungibleError extends Enum {1097  readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;1098  readonly isWrongRefungiblePieces: boolean;1099  readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces';1100}11011102/** @name PalletRefungibleItemData */1103export interface PalletRefungibleItemData extends Struct {1104  readonly constData: Bytes;1105  readonly variableData: Bytes;1106}11071108/** @name PalletSudoCall */1109export interface PalletSudoCall extends Enum {1110  readonly isSudo: boolean;1111  readonly asSudo: {1112    readonly call: Call;1113  } & Struct;1114  readonly isSudoUncheckedWeight: boolean;1115  readonly asSudoUncheckedWeight: {1116    readonly call: Call;1117    readonly weight: u64;1118  } & Struct;1119  readonly isSetKey: boolean;1120  readonly asSetKey: {1121    readonly new_: MultiAddress;1122  } & Struct;1123  readonly isSudoAs: boolean;1124  readonly asSudoAs: {1125    readonly who: MultiAddress;1126    readonly call: Call;1127  } & Struct;1128  readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1129}11301131/** @name PalletSudoError */1132export interface PalletSudoError extends Enum {1133  readonly isRequireSudo: boolean;1134  readonly type: 'RequireSudo';1135}11361137/** @name PalletSudoEvent */1138export interface PalletSudoEvent extends Enum {1139  readonly isSudid: boolean;1140  readonly asSudid: {1141    readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1142  } & Struct;1143  readonly isKeyChanged: boolean;1144  readonly asKeyChanged: {1145    readonly oldSudoer: Option<AccountId32>;1146  } & Struct;1147  readonly isSudoAsDone: boolean;1148  readonly asSudoAsDone: {1149    readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1150  } & Struct;1151  readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';1152}11531154/** @name PalletTemplateTransactionPaymentCall */1155export interface PalletTemplateTransactionPaymentCall extends Null {}11561157/** @name PalletTemplateTransactionPaymentChargeTransactionPayment */1158export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}11591160/** @name PalletTimestampCall */1161export interface PalletTimestampCall extends Enum {1162  readonly isSet: boolean;1163  readonly asSet: {1164    readonly now: Compact<u64>;1165  } & Struct;1166  readonly type: 'Set';1167}11681169/** @name PalletTransactionPaymentReleases */1170export interface PalletTransactionPaymentReleases extends Enum {1171  readonly isV1Ancient: boolean;1172  readonly isV2: boolean;1173  readonly type: 'V1Ancient' | 'V2';1174}11751176/** @name PalletTreasuryCall */1177export interface PalletTreasuryCall extends Enum {1178  readonly isProposeSpend: boolean;1179  readonly asProposeSpend: {1180    readonly value: Compact<u128>;1181    readonly beneficiary: MultiAddress;1182  } & Struct;1183  readonly isRejectProposal: boolean;1184  readonly asRejectProposal: {1185    readonly proposalId: Compact<u32>;1186  } & Struct;1187  readonly isApproveProposal: boolean;1188  readonly asApproveProposal: {1189    readonly proposalId: Compact<u32>;1190  } & Struct;1191  readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';1192}11931194/** @name PalletTreasuryError */1195export interface PalletTreasuryError extends Enum {1196  readonly isInsufficientProposersBalance: boolean;1197  readonly isInvalidIndex: boolean;1198  readonly isTooManyApprovals: boolean;1199  readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';1200}12011202/** @name PalletTreasuryEvent */1203export interface PalletTreasuryEvent extends Enum {1204  readonly isProposed: boolean;1205  readonly asProposed: {1206    readonly proposalIndex: u32;1207  } & Struct;1208  readonly isSpending: boolean;1209  readonly asSpending: {1210    readonly budgetRemaining: u128;1211  } & Struct;1212  readonly isAwarded: boolean;1213  readonly asAwarded: {1214    readonly proposalIndex: u32;1215    readonly award: u128;1216    readonly account: AccountId32;1217  } & Struct;1218  readonly isRejected: boolean;1219  readonly asRejected: {1220    readonly proposalIndex: u32;1221    readonly slashed: u128;1222  } & Struct;1223  readonly isBurnt: boolean;1224  readonly asBurnt: {1225    readonly burntFunds: u128;1226  } & Struct;1227  readonly isRollover: boolean;1228  readonly asRollover: {1229    readonly rolloverBalance: u128;1230  } & Struct;1231  readonly isDeposit: boolean;1232  readonly asDeposit: {1233    readonly value: u128;1234  } & Struct;1235  readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';1236}12371238/** @name PalletTreasuryProposal */1239export interface PalletTreasuryProposal extends Struct {1240  readonly proposer: AccountId32;1241  readonly value: u128;1242  readonly beneficiary: AccountId32;1243  readonly bond: u128;1244}12451246/** @name PalletUniqueCall */1247export interface PalletUniqueCall extends Enum {1248  readonly isCreateCollection: boolean;1249  readonly asCreateCollection: {1250    readonly collectionName: Vec<u16>;1251    readonly collectionDescription: Vec<u16>;1252    readonly tokenPrefix: Bytes;1253    readonly mode: UpDataStructsCollectionMode;1254  } & Struct;1255  readonly isCreateCollectionEx: boolean;1256  readonly asCreateCollectionEx: {1257    readonly data: UpDataStructsCreateCollectionData;1258  } & Struct;1259  readonly isDestroyCollection: boolean;1260  readonly asDestroyCollection: {1261    readonly collectionId: u32;1262  } & Struct;1263  readonly isAddToAllowList: boolean;1264  readonly asAddToAllowList: {1265    readonly collectionId: u32;1266    readonly address: PalletCommonAccountBasicCrossAccountIdRepr;1267  } & Struct;1268  readonly isRemoveFromAllowList: boolean;1269  readonly asRemoveFromAllowList: {1270    readonly collectionId: u32;1271    readonly address: PalletCommonAccountBasicCrossAccountIdRepr;1272  } & Struct;1273  readonly isSetPublicAccessMode: boolean;1274  readonly asSetPublicAccessMode: {1275    readonly collectionId: u32;1276    readonly mode: UpDataStructsAccessMode;1277  } & Struct;1278  readonly isSetMintPermission: boolean;1279  readonly asSetMintPermission: {1280    readonly collectionId: u32;1281    readonly mintPermission: bool;1282  } & Struct;1283  readonly isChangeCollectionOwner: boolean;1284  readonly asChangeCollectionOwner: {1285    readonly collectionId: u32;1286    readonly newOwner: AccountId32;1287  } & Struct;1288  readonly isAddCollectionAdmin: boolean;1289  readonly asAddCollectionAdmin: {1290    readonly collectionId: u32;1291    readonly newAdminId: PalletCommonAccountBasicCrossAccountIdRepr;1292  } & Struct;1293  readonly isRemoveCollectionAdmin: boolean;1294  readonly asRemoveCollectionAdmin: {1295    readonly collectionId: u32;1296    readonly accountId: PalletCommonAccountBasicCrossAccountIdRepr;1297  } & Struct;1298  readonly isSetCollectionSponsor: boolean;1299  readonly asSetCollectionSponsor: {1300    readonly collectionId: u32;1301    readonly newSponsor: AccountId32;1302  } & Struct;1303  readonly isConfirmSponsorship: boolean;1304  readonly asConfirmSponsorship: {1305    readonly collectionId: u32;1306  } & Struct;1307  readonly isRemoveCollectionSponsor: boolean;1308  readonly asRemoveCollectionSponsor: {1309    readonly collectionId: u32;1310  } & Struct;1311  readonly isCreateItem: boolean;1312  readonly asCreateItem: {1313    readonly collectionId: u32;1314    readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1315    readonly data: UpDataStructsCreateItemData;1316  } & Struct;1317  readonly isCreateMultipleItems: boolean;1318  readonly asCreateMultipleItems: {1319    readonly collectionId: u32;1320    readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1321    readonly itemsData: Vec<UpDataStructsCreateItemData>;1322  } & Struct;1323  readonly isCreateMultipleItemsEx: boolean;1324  readonly asCreateMultipleItemsEx: {1325    readonly collectionId: u32;1326    readonly data: UpDataStructsCreateItemExData;1327  } & Struct;1328  readonly isSetTransfersEnabledFlag: boolean;1329  readonly asSetTransfersEnabledFlag: {1330    readonly collectionId: u32;1331    readonly value: bool;1332  } & Struct;1333  readonly isBurnItem: boolean;1334  readonly asBurnItem: {1335    readonly collectionId: u32;1336    readonly itemId: u32;1337    readonly value: u128;1338  } & Struct;1339  readonly isBurnFrom: boolean;1340  readonly asBurnFrom: {1341    readonly collectionId: u32;1342    readonly from: PalletCommonAccountBasicCrossAccountIdRepr;1343    readonly itemId: u32;1344    readonly value: u128;1345  } & Struct;1346  readonly isTransfer: boolean;1347  readonly asTransfer: {1348    readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;1349    readonly collectionId: u32;1350    readonly itemId: u32;1351    readonly value: u128;1352  } & Struct;1353  readonly isApprove: boolean;1354  readonly asApprove: {1355    readonly spender: PalletCommonAccountBasicCrossAccountIdRepr;1356    readonly collectionId: u32;1357    readonly itemId: u32;1358    readonly amount: u128;1359  } & Struct;1360  readonly isTransferFrom: boolean;1361  readonly asTransferFrom: {1362    readonly from: PalletCommonAccountBasicCrossAccountIdRepr;1363    readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;1364    readonly collectionId: u32;1365    readonly itemId: u32;1366    readonly value: u128;1367  } & Struct;1368  readonly isSetVariableMetaData: boolean;1369  readonly asSetVariableMetaData: {1370    readonly collectionId: u32;1371    readonly itemId: u32;1372    readonly data: Bytes;1373  } & Struct;1374  readonly isSetMetaUpdatePermissionFlag: boolean;1375  readonly asSetMetaUpdatePermissionFlag: {1376    readonly collectionId: u32;1377    readonly value: UpDataStructsMetaUpdatePermission;1378  } & Struct;1379  readonly isSetSchemaVersion: boolean;1380  readonly asSetSchemaVersion: {1381    readonly collectionId: u32;1382    readonly version: UpDataStructsSchemaVersion;1383  } & Struct;1384  readonly isSetOffchainSchema: boolean;1385  readonly asSetOffchainSchema: {1386    readonly collectionId: u32;1387    readonly schema: Bytes;1388  } & Struct;1389  readonly isSetConstOnChainSchema: boolean;1390  readonly asSetConstOnChainSchema: {1391    readonly collectionId: u32;1392    readonly schema: Bytes;1393  } & Struct;1394  readonly isSetVariableOnChainSchema: boolean;1395  readonly asSetVariableOnChainSchema: {1396    readonly collectionId: u32;1397    readonly schema: Bytes;1398  } & Struct;1399  readonly isSetCollectionLimits: boolean;1400  readonly asSetCollectionLimits: {1401    readonly collectionId: u32;1402    readonly newLimit: UpDataStructsCollectionLimits;1403  } & Struct;1404  readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';1405}14061407/** @name PalletUniqueError */1408export interface PalletUniqueError extends Enum {1409  readonly isCollectionDecimalPointLimitExceeded: boolean;1410  readonly isConfirmUnsetSponsorFail: boolean;1411  readonly isEmptyArgument: boolean;1412  readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';1413}14141415/** @name PalletUniqueRawEvent */1416export interface PalletUniqueRawEvent extends Enum {1417  readonly isCollectionSponsorRemoved: boolean;1418  readonly asCollectionSponsorRemoved: u32;1419  readonly isCollectionAdminAdded: boolean;1420  readonly asCollectionAdminAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1421  readonly isCollectionOwnedChanged: boolean;1422  readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;1423  readonly isCollectionSponsorSet: boolean;1424  readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1425  readonly isConstOnChainSchemaSet: boolean;1426  readonly asConstOnChainSchemaSet: u32;1427  readonly isSponsorshipConfirmed: boolean;1428  readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1429  readonly isCollectionAdminRemoved: boolean;1430  readonly asCollectionAdminRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1431  readonly isAllowListAddressRemoved: boolean;1432  readonly asAllowListAddressRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1433  readonly isAllowListAddressAdded: boolean;1434  readonly asAllowListAddressAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1435  readonly isCollectionLimitSet: boolean;1436  readonly asCollectionLimitSet: u32;1437  readonly isMintPermissionSet: boolean;1438  readonly asMintPermissionSet: u32;1439  readonly isOffchainSchemaSet: boolean;1440  readonly asOffchainSchemaSet: u32;1441  readonly isPublicAccessModeSet: boolean;1442  readonly asPublicAccessModeSet: ITuple<[u32, UpDataStructsAccessMode]>;1443  readonly isSchemaVersionSet: boolean;1444  readonly asSchemaVersionSet: u32;1445  readonly isVariableOnChainSchemaSet: boolean;1446  readonly asVariableOnChainSchemaSet: u32;1447  readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'ConstOnChainSchemaSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'MintPermissionSet' | 'OffchainSchemaSet' | 'PublicAccessModeSet' | 'SchemaVersionSet' | 'VariableOnChainSchemaSet';1448}14491450/** @name PalletXcmCall */1451export interface PalletXcmCall extends Enum {1452  readonly isSend: boolean;1453  readonly asSend: {1454    readonly dest: XcmVersionedMultiLocation;1455    readonly message: XcmVersionedXcm;1456  } & Struct;1457  readonly isTeleportAssets: boolean;1458  readonly asTeleportAssets: {1459    readonly dest: XcmVersionedMultiLocation;1460    readonly beneficiary: XcmVersionedMultiLocation;1461    readonly assets: XcmVersionedMultiAssets;1462    readonly feeAssetItem: u32;1463  } & Struct;1464  readonly isReserveTransferAssets: boolean;1465  readonly asReserveTransferAssets: {1466    readonly dest: XcmVersionedMultiLocation;1467    readonly beneficiary: XcmVersionedMultiLocation;1468    readonly assets: XcmVersionedMultiAssets;1469    readonly feeAssetItem: u32;1470  } & Struct;1471  readonly isExecute: boolean;1472  readonly asExecute: {1473    readonly message: XcmVersionedXcm;1474    readonly maxWeight: u64;1475  } & Struct;1476  readonly isForceXcmVersion: boolean;1477  readonly asForceXcmVersion: {1478    readonly location: XcmV1MultiLocation;1479    readonly xcmVersion: u32;1480  } & Struct;1481  readonly isForceDefaultXcmVersion: boolean;1482  readonly asForceDefaultXcmVersion: {1483    readonly maybeXcmVersion: Option<u32>;1484  } & Struct;1485  readonly isForceSubscribeVersionNotify: boolean;1486  readonly asForceSubscribeVersionNotify: {1487    readonly location: XcmVersionedMultiLocation;1488  } & Struct;1489  readonly isForceUnsubscribeVersionNotify: boolean;1490  readonly asForceUnsubscribeVersionNotify: {1491    readonly location: XcmVersionedMultiLocation;1492  } & Struct;1493  readonly isLimitedReserveTransferAssets: boolean;1494  readonly asLimitedReserveTransferAssets: {1495    readonly dest: XcmVersionedMultiLocation;1496    readonly beneficiary: XcmVersionedMultiLocation;1497    readonly assets: XcmVersionedMultiAssets;1498    readonly feeAssetItem: u32;1499    readonly weightLimit: XcmV2WeightLimit;1500  } & Struct;1501  readonly isLimitedTeleportAssets: boolean;1502  readonly asLimitedTeleportAssets: {1503    readonly dest: XcmVersionedMultiLocation;1504    readonly beneficiary: XcmVersionedMultiLocation;1505    readonly assets: XcmVersionedMultiAssets;1506    readonly feeAssetItem: u32;1507    readonly weightLimit: XcmV2WeightLimit;1508  } & Struct;1509  readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';1510}15111512/** @name PalletXcmError */1513export interface PalletXcmError extends Enum {1514  readonly isUnreachable: boolean;1515  readonly isSendFailure: boolean;1516  readonly isFiltered: boolean;1517  readonly isUnweighableMessage: boolean;1518  readonly isDestinationNotInvertible: boolean;1519  readonly isEmpty: boolean;1520  readonly isCannotReanchor: boolean;1521  readonly isTooManyAssets: boolean;1522  readonly isInvalidOrigin: boolean;1523  readonly isBadVersion: boolean;1524  readonly isBadLocation: boolean;1525  readonly isNoSubscription: boolean;1526  readonly isAlreadySubscribed: boolean;1527  readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';1528}15291530/** @name PalletXcmEvent */1531export interface PalletXcmEvent extends Enum {1532  readonly isAttempted: boolean;1533  readonly asAttempted: XcmV2TraitsOutcome;1534  readonly isSent: boolean;1535  readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;1536  readonly isUnexpectedResponse: boolean;1537  readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;1538  readonly isResponseReady: boolean;1539  readonly asResponseReady: ITuple<[u64, XcmV2Response]>;1540  readonly isNotified: boolean;1541  readonly asNotified: ITuple<[u64, u8, u8]>;1542  readonly isNotifyOverweight: boolean;1543  readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;1544  readonly isNotifyDispatchError: boolean;1545  readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;1546  readonly isNotifyDecodeFailed: boolean;1547  readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;1548  readonly isInvalidResponder: boolean;1549  readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;1550  readonly isInvalidResponderVersion: boolean;1551  readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;1552  readonly isResponseTaken: boolean;1553  readonly asResponseTaken: u64;1554  readonly isAssetsTrapped: boolean;1555  readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;1556  readonly isVersionChangeNotified: boolean;1557  readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;1558  readonly isSupportedVersionChanged: boolean;1559  readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;1560  readonly isNotifyTargetSendFail: boolean;1561  readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;1562  readonly isNotifyTargetMigrationFail: boolean;1563  readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;1564  readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';1565}15661567/** @name PolkadotCorePrimitivesInboundDownwardMessage */1568export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1569  readonly sentAt: u32;1570  readonly msg: Bytes;1571}15721573/** @name PolkadotCorePrimitivesInboundHrmpMessage */1574export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1575  readonly sentAt: u32;1576  readonly data: Bytes;1577}15781579/** @name PolkadotCorePrimitivesOutboundHrmpMessage */1580export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1581  readonly recipient: u32;1582  readonly data: Bytes;1583}15841585/** @name PolkadotParachainPrimitivesXcmpMessageFormat */1586export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {1587  readonly isConcatenatedVersionedXcm: boolean;1588  readonly isConcatenatedEncodedBlob: boolean;1589  readonly isSignals: boolean;1590  readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';1591}15921593/** @name PolkadotPrimitivesV1AbridgedHostConfiguration */1594export interface PolkadotPrimitivesV1AbridgedHostConfiguration extends Struct {1595  readonly maxCodeSize: u32;1596  readonly maxHeadDataSize: u32;1597  readonly maxUpwardQueueCount: u32;1598  readonly maxUpwardQueueSize: u32;1599  readonly maxUpwardMessageSize: u32;1600  readonly maxUpwardMessageNumPerCandidate: u32;1601  readonly hrmpMaxMessageNumPerCandidate: u32;1602  readonly validationUpgradeCooldown: u32;1603  readonly validationUpgradeDelay: u32;1604}16051606/** @name PolkadotPrimitivesV1AbridgedHrmpChannel */1607export interface PolkadotPrimitivesV1AbridgedHrmpChannel extends Struct {1608  readonly maxCapacity: u32;1609  readonly maxTotalSize: u32;1610  readonly maxMessageSize: u32;1611  readonly msgCount: u32;1612  readonly totalSize: u32;1613  readonly mqcHead: Option<H256>;1614}16151616/** @name PolkadotPrimitivesV1PersistedValidationData */1617export interface PolkadotPrimitivesV1PersistedValidationData extends Struct {1618  readonly parentHead: Bytes;1619  readonly relayParentNumber: u32;1620  readonly relayParentStorageRoot: H256;1621  readonly maxPovSize: u32;1622}16231624/** @name PolkadotPrimitivesV1UpgradeRestriction */1625export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {1626  readonly isPresent: boolean;1627  readonly type: 'Present';1628}16291630/** @name SpCoreEcdsaSignature */1631export interface SpCoreEcdsaSignature extends U8aFixed {}16321633/** @name SpCoreEd25519Signature */1634export interface SpCoreEd25519Signature extends U8aFixed {}16351636/** @name SpCoreSr25519Signature */1637export interface SpCoreSr25519Signature extends U8aFixed {}16381639/** @name SpRuntimeArithmeticError */1640export interface SpRuntimeArithmeticError extends Enum {1641  readonly isUnderflow: boolean;1642  readonly isOverflow: boolean;1643  readonly isDivisionByZero: boolean;1644  readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';1645}16461647/** @name SpRuntimeDigest */1648export interface SpRuntimeDigest extends Struct {1649  readonly logs: Vec<SpRuntimeDigestDigestItem>;1650}16511652/** @name SpRuntimeDigestDigestItem */1653export interface SpRuntimeDigestDigestItem extends Enum {1654  readonly isOther: boolean;1655  readonly asOther: Bytes;1656  readonly isConsensus: boolean;1657  readonly asConsensus: ITuple<[U8aFixed, Bytes]>;1658  readonly isSeal: boolean;1659  readonly asSeal: ITuple<[U8aFixed, Bytes]>;1660  readonly isPreRuntime: boolean;1661  readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;1662  readonly isRuntimeEnvironmentUpdated: boolean;1663  readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';1664}16651666/** @name SpRuntimeDispatchError */1667export interface SpRuntimeDispatchError extends Enum {1668  readonly isOther: boolean;1669  readonly isCannotLookup: boolean;1670  readonly isBadOrigin: boolean;1671  readonly isModule: boolean;1672  readonly asModule: SpRuntimeModuleError;1673  readonly isConsumerRemaining: boolean;1674  readonly isNoProviders: boolean;1675  readonly isTooManyConsumers: boolean;1676  readonly isToken: boolean;1677  readonly asToken: SpRuntimeTokenError;1678  readonly isArithmetic: boolean;1679  readonly asArithmetic: SpRuntimeArithmeticError;1680  readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic';1681}16821683/** @name SpRuntimeModuleError */1684export interface SpRuntimeModuleError extends Struct {1685  readonly index: u8;1686  readonly error: u8;1687}16881689/** @name SpRuntimeMultiSignature */1690export interface SpRuntimeMultiSignature extends Enum {1691  readonly isEd25519: boolean;1692  readonly asEd25519: SpCoreEd25519Signature;1693  readonly isSr25519: boolean;1694  readonly asSr25519: SpCoreSr25519Signature;1695  readonly isEcdsa: boolean;1696  readonly asEcdsa: SpCoreEcdsaSignature;1697  readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';1698}16991700/** @name SpRuntimeTokenError */1701export interface SpRuntimeTokenError extends Enum {1702  readonly isNoFunds: boolean;1703  readonly isWouldDie: boolean;1704  readonly isBelowMinimum: boolean;1705  readonly isCannotCreate: boolean;1706  readonly isUnknownAsset: boolean;1707  readonly isFrozen: boolean;1708  readonly isUnsupported: boolean;1709  readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';1710}17111712/** @name SpTrieStorageProof */1713export interface SpTrieStorageProof extends Struct {1714  readonly trieNodes: Vec<Bytes>;1715}17161717/** @name SpVersionRuntimeVersion */1718export interface SpVersionRuntimeVersion extends Struct {1719  readonly specName: Text;1720  readonly implName: Text;1721  readonly authoringVersion: u32;1722  readonly specVersion: u32;1723  readonly implVersion: u32;1724  readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1725  readonly transactionVersion: u32;1726  readonly stateVersion: u8;1727}17281729/** @name UpDataStructsAccessMode */1730export interface UpDataStructsAccessMode extends Enum {1731  readonly isNormal: boolean;1732  readonly isAllowList: boolean;1733  readonly type: 'Normal' | 'AllowList';1734}17351736/** @name UpDataStructsCollection */1737export interface UpDataStructsCollection extends Struct {1738  readonly owner: AccountId32;1739  readonly mode: UpDataStructsCollectionMode;1740  readonly access: UpDataStructsAccessMode;1741  readonly name: Vec<u16>;1742  readonly description: Vec<u16>;1743  readonly tokenPrefix: Bytes;1744  readonly mintMode: bool;1745  readonly offchainSchema: Bytes;1746  readonly schemaVersion: UpDataStructsSchemaVersion;1747  readonly sponsorship: UpDataStructsSponsorshipState;1748  readonly limits: UpDataStructsCollectionLimits;1749  readonly variableOnChainSchema: Bytes;1750  readonly constOnChainSchema: Bytes;1751  readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;1752}17531754/** @name UpDataStructsCollectionLimits */1755export interface UpDataStructsCollectionLimits extends Struct {1756  readonly accountTokenOwnershipLimit: Option<u32>;1757  readonly sponsoredDataSize: Option<u32>;1758  readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;1759  readonly tokenLimit: Option<u32>;1760  readonly sponsorTransferTimeout: Option<u32>;1761  readonly sponsorApproveTimeout: Option<u32>;1762  readonly ownerCanTransfer: Option<bool>;1763  readonly ownerCanDestroy: Option<bool>;1764  readonly transfersEnabled: Option<bool>;1765}17661767/** @name UpDataStructsCollectionMode */1768export interface UpDataStructsCollectionMode extends Enum {1769  readonly isNft: boolean;1770  readonly isFungible: boolean;1771  readonly asFungible: u8;1772  readonly isReFungible: boolean;1773  readonly type: 'Nft' | 'Fungible' | 'ReFungible';1774}17751776/** @name UpDataStructsCollectionStats */1777export interface UpDataStructsCollectionStats extends Struct {1778  readonly created: u32;1779  readonly destroyed: u32;1780  readonly alive: u32;1781}17821783/** @name UpDataStructsCreateCollectionData */1784export interface UpDataStructsCreateCollectionData extends Struct {1785  readonly mode: UpDataStructsCollectionMode;1786  readonly access: Option<UpDataStructsAccessMode>;1787  readonly name: Vec<u16>;1788  readonly description: Vec<u16>;1789  readonly tokenPrefix: Bytes;1790  readonly offchainSchema: Bytes;1791  readonly schemaVersion: Option<UpDataStructsSchemaVersion>;1792  readonly pendingSponsor: Option<AccountId32>;1793  readonly limits: Option<UpDataStructsCollectionLimits>;1794  readonly variableOnChainSchema: Bytes;1795  readonly constOnChainSchema: Bytes;1796  readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;1797}17981799/** @name UpDataStructsCreateFungibleData */1800export interface UpDataStructsCreateFungibleData extends Struct {1801  readonly value: u128;1802}18031804/** @name UpDataStructsCreateItemData */1805export interface UpDataStructsCreateItemData extends Enum {1806  readonly isNft: boolean;1807  readonly asNft: UpDataStructsCreateNftData;1808  readonly isFungible: boolean;1809  readonly asFungible: UpDataStructsCreateFungibleData;1810  readonly isReFungible: boolean;1811  readonly asReFungible: UpDataStructsCreateReFungibleData;1812  readonly type: 'Nft' | 'Fungible' | 'ReFungible';1813}18141815/** @name UpDataStructsCreateItemExData */1816export interface UpDataStructsCreateItemExData extends Enum {1817  readonly isNft: boolean;1818  readonly asNft: Vec<UpDataStructsCreateNftExData>;1819  readonly isFungible: boolean;1820  readonly asFungible: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr,u128>;1821  readonly isRefungibleMultipleItems: boolean;1822  readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;1823  readonly isRefungibleMultipleOwners: boolean;1824  readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExData;1825  readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1826}18271828/** @name UpDataStructsCreateNftData */1829export interface UpDataStructsCreateNftData extends Struct {1830  readonly constData: Bytes;1831  readonly variableData: Bytes;1832}18331834/** @name UpDataStructsCreateNftExData */1835export interface UpDataStructsCreateNftExData extends Struct {1836  readonly constData: Bytes;1837  readonly variableData: Bytes;1838  readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1839}18401841/** @name UpDataStructsCreateReFungibleData */1842export interface UpDataStructsCreateReFungibleData extends Struct {1843  readonly constData: Bytes;1844  readonly variableData: Bytes;1845  readonly pieces: u128;1846}18471848/** @name UpDataStructsCreateRefungibleExData */1849export interface UpDataStructsCreateRefungibleExData extends Struct {1850  readonly constData: Bytes;1851  readonly variableData: Bytes;1852  readonly users: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>;1853}18541855/** @name UpDataStructsMetaUpdatePermission */1856export interface UpDataStructsMetaUpdatePermission extends Enum {1857  readonly isItemOwner: boolean;1858  readonly isAdmin: boolean;1859  readonly isNone: boolean;1860  readonly type: 'ItemOwner' | 'Admin' | 'None';1861}18621863/** @name UpDataStructsSchemaVersion */1864export interface UpDataStructsSchemaVersion extends Enum {1865  readonly isImageURL: boolean;1866  readonly isUnique: boolean;1867  readonly type: 'ImageURL' | 'Unique';1868}18691870/** @name UpDataStructsSponsoringRateLimit */1871export interface UpDataStructsSponsoringRateLimit extends Enum {1872  readonly isSponsoringDisabled: boolean;1873  readonly isBlocks: boolean;1874  readonly asBlocks: u32;1875  readonly type: 'SponsoringDisabled' | 'Blocks';1876}18771878/** @name UpDataStructsSponsorshipState */1879export interface UpDataStructsSponsorshipState extends Enum {1880  readonly isDisabled: boolean;1881  readonly isUnconfirmed: boolean;1882  readonly asUnconfirmed: AccountId32;1883  readonly isConfirmed: boolean;1884  readonly asConfirmed: AccountId32;1885  readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';1886}18871888/** @name XcmDoubleEncoded */1889export interface XcmDoubleEncoded extends Struct {1890  readonly encoded: Bytes;1891}18921893/** @name XcmV0Junction */1894export interface XcmV0Junction extends Enum {1895  readonly isParent: boolean;1896  readonly isParachain: boolean;1897  readonly asParachain: Compact<u32>;1898  readonly isAccountId32: boolean;1899  readonly asAccountId32: {1900    readonly network: XcmV0JunctionNetworkId;1901    readonly id: U8aFixed;1902  } & Struct;1903  readonly isAccountIndex64: boolean;1904  readonly asAccountIndex64: {1905    readonly network: XcmV0JunctionNetworkId;1906    readonly index: Compact<u64>;1907  } & Struct;1908  readonly isAccountKey20: boolean;1909  readonly asAccountKey20: {1910    readonly network: XcmV0JunctionNetworkId;1911    readonly key: U8aFixed;1912  } & Struct;1913  readonly isPalletInstance: boolean;1914  readonly asPalletInstance: u8;1915  readonly isGeneralIndex: boolean;1916  readonly asGeneralIndex: Compact<u128>;1917  readonly isGeneralKey: boolean;1918  readonly asGeneralKey: Bytes;1919  readonly isOnlyChild: boolean;1920  readonly isPlurality: boolean;1921  readonly asPlurality: {1922    readonly id: XcmV0JunctionBodyId;1923    readonly part: XcmV0JunctionBodyPart;1924  } & Struct;1925  readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1926}19271928/** @name XcmV0JunctionBodyId */1929export interface XcmV0JunctionBodyId extends Enum {1930  readonly isUnit: boolean;1931  readonly isNamed: boolean;1932  readonly asNamed: Bytes;1933  readonly isIndex: boolean;1934  readonly asIndex: Compact<u32>;1935  readonly isExecutive: boolean;1936  readonly isTechnical: boolean;1937  readonly isLegislative: boolean;1938  readonly isJudicial: boolean;1939  readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';1940}19411942/** @name XcmV0JunctionBodyPart */1943export interface XcmV0JunctionBodyPart extends Enum {1944  readonly isVoice: boolean;1945  readonly isMembers: boolean;1946  readonly asMembers: {1947    readonly count: Compact<u32>;1948  } & Struct;1949  readonly isFraction: boolean;1950  readonly asFraction: {1951    readonly nom: Compact<u32>;1952    readonly denom: Compact<u32>;1953  } & Struct;1954  readonly isAtLeastProportion: boolean;1955  readonly asAtLeastProportion: {1956    readonly nom: Compact<u32>;1957    readonly denom: Compact<u32>;1958  } & Struct;1959  readonly isMoreThanProportion: boolean;1960  readonly asMoreThanProportion: {1961    readonly nom: Compact<u32>;1962    readonly denom: Compact<u32>;1963  } & Struct;1964  readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';1965}19661967/** @name XcmV0JunctionNetworkId */1968export interface XcmV0JunctionNetworkId extends Enum {1969  readonly isAny: boolean;1970  readonly isNamed: boolean;1971  readonly asNamed: Bytes;1972  readonly isPolkadot: boolean;1973  readonly isKusama: boolean;1974  readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';1975}19761977/** @name XcmV0MultiAsset */1978export interface XcmV0MultiAsset extends Enum {1979  readonly isNone: boolean;1980  readonly isAll: boolean;1981  readonly isAllFungible: boolean;1982  readonly isAllNonFungible: boolean;1983  readonly isAllAbstractFungible: boolean;1984  readonly asAllAbstractFungible: {1985    readonly id: Bytes;1986  } & Struct;1987  readonly isAllAbstractNonFungible: boolean;1988  readonly asAllAbstractNonFungible: {1989    readonly class: Bytes;1990  } & Struct;1991  readonly isAllConcreteFungible: boolean;1992  readonly asAllConcreteFungible: {1993    readonly id: XcmV0MultiLocation;1994  } & Struct;1995  readonly isAllConcreteNonFungible: boolean;1996  readonly asAllConcreteNonFungible: {1997    readonly class: XcmV0MultiLocation;1998  } & Struct;1999  readonly isAbstractFungible: boolean;2000  readonly asAbstractFungible: {2001    readonly id: Bytes;2002    readonly amount: Compact<u128>;2003  } & Struct;2004  readonly isAbstractNonFungible: boolean;2005  readonly asAbstractNonFungible: {2006    readonly class: Bytes;2007    readonly instance: XcmV1MultiassetAssetInstance;2008  } & Struct;2009  readonly isConcreteFungible: boolean;2010  readonly asConcreteFungible: {2011    readonly id: XcmV0MultiLocation;2012    readonly amount: Compact<u128>;2013  } & Struct;2014  readonly isConcreteNonFungible: boolean;2015  readonly asConcreteNonFungible: {2016    readonly class: XcmV0MultiLocation;2017    readonly instance: XcmV1MultiassetAssetInstance;2018  } & Struct;2019  readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';2020}20212022/** @name XcmV0MultiLocation */2023export interface XcmV0MultiLocation extends Enum {2024  readonly isNull: boolean;2025  readonly isX1: boolean;2026  readonly asX1: XcmV0Junction;2027  readonly isX2: boolean;2028  readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;2029  readonly isX3: boolean;2030  readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2031  readonly isX4: boolean;2032  readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2033  readonly isX5: boolean;2034  readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2035  readonly isX6: boolean;2036  readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2037  readonly isX7: boolean;2038  readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2039  readonly isX8: boolean;2040  readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;2041  readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';2042}20432044/** @name XcmV0Order */2045export interface XcmV0Order extends Enum {2046  readonly isNull: boolean;2047  readonly isDepositAsset: boolean;2048  readonly asDepositAsset: {2049    readonly assets: Vec<XcmV0MultiAsset>;2050    readonly dest: XcmV0MultiLocation;2051  } & Struct;2052  readonly isDepositReserveAsset: boolean;2053  readonly asDepositReserveAsset: {2054    readonly assets: Vec<XcmV0MultiAsset>;2055    readonly dest: XcmV0MultiLocation;2056    readonly effects: Vec<XcmV0Order>;2057  } & Struct;2058  readonly isExchangeAsset: boolean;2059  readonly asExchangeAsset: {2060    readonly give: Vec<XcmV0MultiAsset>;2061    readonly receive: Vec<XcmV0MultiAsset>;2062  } & Struct;2063  readonly isInitiateReserveWithdraw: boolean;2064  readonly asInitiateReserveWithdraw: {2065    readonly assets: Vec<XcmV0MultiAsset>;2066    readonly reserve: XcmV0MultiLocation;2067    readonly effects: Vec<XcmV0Order>;2068  } & Struct;2069  readonly isInitiateTeleport: boolean;2070  readonly asInitiateTeleport: {2071    readonly assets: Vec<XcmV0MultiAsset>;2072    readonly dest: XcmV0MultiLocation;2073    readonly effects: Vec<XcmV0Order>;2074  } & Struct;2075  readonly isQueryHolding: boolean;2076  readonly asQueryHolding: {2077    readonly queryId: Compact<u64>;2078    readonly dest: XcmV0MultiLocation;2079    readonly assets: Vec<XcmV0MultiAsset>;2080  } & Struct;2081  readonly isBuyExecution: boolean;2082  readonly asBuyExecution: {2083    readonly fees: XcmV0MultiAsset;2084    readonly weight: u64;2085    readonly debt: u64;2086    readonly haltOnError: bool;2087    readonly xcm: Vec<XcmV0Xcm>;2088  } & Struct;2089  readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2090}20912092/** @name XcmV0OriginKind */2093export interface XcmV0OriginKind extends Enum {2094  readonly isNative: boolean;2095  readonly isSovereignAccount: boolean;2096  readonly isSuperuser: boolean;2097  readonly isXcm: boolean;2098  readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';2099}21002101/** @name XcmV0Response */2102export interface XcmV0Response extends Enum {2103  readonly isAssets: boolean;2104  readonly asAssets: Vec<XcmV0MultiAsset>;2105  readonly type: 'Assets';2106}21072108/** @name XcmV0Xcm */2109export interface XcmV0Xcm extends Enum {2110  readonly isWithdrawAsset: boolean;2111  readonly asWithdrawAsset: {2112    readonly assets: Vec<XcmV0MultiAsset>;2113    readonly effects: Vec<XcmV0Order>;2114  } & Struct;2115  readonly isReserveAssetDeposit: boolean;2116  readonly asReserveAssetDeposit: {2117    readonly assets: Vec<XcmV0MultiAsset>;2118    readonly effects: Vec<XcmV0Order>;2119  } & Struct;2120  readonly isTeleportAsset: boolean;2121  readonly asTeleportAsset: {2122    readonly assets: Vec<XcmV0MultiAsset>;2123    readonly effects: Vec<XcmV0Order>;2124  } & Struct;2125  readonly isQueryResponse: boolean;2126  readonly asQueryResponse: {2127    readonly queryId: Compact<u64>;2128    readonly response: XcmV0Response;2129  } & Struct;2130  readonly isTransferAsset: boolean;2131  readonly asTransferAsset: {2132    readonly assets: Vec<XcmV0MultiAsset>;2133    readonly dest: XcmV0MultiLocation;2134  } & Struct;2135  readonly isTransferReserveAsset: boolean;2136  readonly asTransferReserveAsset: {2137    readonly assets: Vec<XcmV0MultiAsset>;2138    readonly dest: XcmV0MultiLocation;2139    readonly effects: Vec<XcmV0Order>;2140  } & Struct;2141  readonly isTransact: boolean;2142  readonly asTransact: {2143    readonly originType: XcmV0OriginKind;2144    readonly requireWeightAtMost: u64;2145    readonly call: XcmDoubleEncoded;2146  } & Struct;2147  readonly isHrmpNewChannelOpenRequest: boolean;2148  readonly asHrmpNewChannelOpenRequest: {2149    readonly sender: Compact<u32>;2150    readonly maxMessageSize: Compact<u32>;2151    readonly maxCapacity: Compact<u32>;2152  } & Struct;2153  readonly isHrmpChannelAccepted: boolean;2154  readonly asHrmpChannelAccepted: {2155    readonly recipient: Compact<u32>;2156  } & Struct;2157  readonly isHrmpChannelClosing: boolean;2158  readonly asHrmpChannelClosing: {2159    readonly initiator: Compact<u32>;2160    readonly sender: Compact<u32>;2161    readonly recipient: Compact<u32>;2162  } & Struct;2163  readonly isRelayedFrom: boolean;2164  readonly asRelayedFrom: {2165    readonly who: XcmV0MultiLocation;2166    readonly message: XcmV0Xcm;2167  } & Struct;2168  readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2169}21702171/** @name XcmV1Junction */2172export interface XcmV1Junction extends Enum {2173  readonly isParachain: boolean;2174  readonly asParachain: Compact<u32>;2175  readonly isAccountId32: boolean;2176  readonly asAccountId32: {2177    readonly network: XcmV0JunctionNetworkId;2178    readonly id: U8aFixed;2179  } & Struct;2180  readonly isAccountIndex64: boolean;2181  readonly asAccountIndex64: {2182    readonly network: XcmV0JunctionNetworkId;2183    readonly index: Compact<u64>;2184  } & Struct;2185  readonly isAccountKey20: boolean;2186  readonly asAccountKey20: {2187    readonly network: XcmV0JunctionNetworkId;2188    readonly key: U8aFixed;2189  } & Struct;2190  readonly isPalletInstance: boolean;2191  readonly asPalletInstance: u8;2192  readonly isGeneralIndex: boolean;2193  readonly asGeneralIndex: Compact<u128>;2194  readonly isGeneralKey: boolean;2195  readonly asGeneralKey: Bytes;2196  readonly isOnlyChild: boolean;2197  readonly isPlurality: boolean;2198  readonly asPlurality: {2199    readonly id: XcmV0JunctionBodyId;2200    readonly part: XcmV0JunctionBodyPart;2201  } & Struct;2202  readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';2203}22042205/** @name XcmV1MultiAsset */2206export interface XcmV1MultiAsset extends Struct {2207  readonly id: XcmV1MultiassetAssetId;2208  readonly fun: XcmV1MultiassetFungibility;2209}22102211/** @name XcmV1MultiassetAssetId */2212export interface XcmV1MultiassetAssetId extends Enum {2213  readonly isConcrete: boolean;2214  readonly asConcrete: XcmV1MultiLocation;2215  readonly isAbstract: boolean;2216  readonly asAbstract: Bytes;2217  readonly type: 'Concrete' | 'Abstract';2218}22192220/** @name XcmV1MultiassetAssetInstance */2221export interface XcmV1MultiassetAssetInstance extends Enum {2222  readonly isUndefined: boolean;2223  readonly isIndex: boolean;2224  readonly asIndex: Compact<u128>;2225  readonly isArray4: boolean;2226  readonly asArray4: U8aFixed;2227  readonly isArray8: boolean;2228  readonly asArray8: U8aFixed;2229  readonly isArray16: boolean;2230  readonly asArray16: U8aFixed;2231  readonly isArray32: boolean;2232  readonly asArray32: U8aFixed;2233  readonly isBlob: boolean;2234  readonly asBlob: Bytes;2235  readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';2236}22372238/** @name XcmV1MultiassetFungibility */2239export interface XcmV1MultiassetFungibility extends Enum {2240  readonly isFungible: boolean;2241  readonly asFungible: Compact<u128>;2242  readonly isNonFungible: boolean;2243  readonly asNonFungible: XcmV1MultiassetAssetInstance;2244  readonly type: 'Fungible' | 'NonFungible';2245}22462247/** @name XcmV1MultiassetMultiAssetFilter */2248export interface XcmV1MultiassetMultiAssetFilter extends Enum {2249  readonly isDefinite: boolean;2250  readonly asDefinite: XcmV1MultiassetMultiAssets;2251  readonly isWild: boolean;2252  readonly asWild: XcmV1MultiassetWildMultiAsset;2253  readonly type: 'Definite' | 'Wild';2254}22552256/** @name XcmV1MultiassetMultiAssets */2257export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}22582259/** @name XcmV1MultiassetWildFungibility */2260export interface XcmV1MultiassetWildFungibility extends Enum {2261  readonly isFungible: boolean;2262  readonly isNonFungible: boolean;2263  readonly type: 'Fungible' | 'NonFungible';2264}22652266/** @name XcmV1MultiassetWildMultiAsset */2267export interface XcmV1MultiassetWildMultiAsset extends Enum {2268  readonly isAll: boolean;2269  readonly isAllOf: boolean;2270  readonly asAllOf: {2271    readonly id: XcmV1MultiassetAssetId;2272    readonly fun: XcmV1MultiassetWildFungibility;2273  } & Struct;2274  readonly type: 'All' | 'AllOf';2275}22762277/** @name XcmV1MultiLocation */2278export interface XcmV1MultiLocation extends Struct {2279  readonly parents: u8;2280  readonly interior: XcmV1MultilocationJunctions;2281}22822283/** @name XcmV1MultilocationJunctions */2284export interface XcmV1MultilocationJunctions extends Enum {2285  readonly isHere: boolean;2286  readonly isX1: boolean;2287  readonly asX1: XcmV1Junction;2288  readonly isX2: boolean;2289  readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;2290  readonly isX3: boolean;2291  readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2292  readonly isX4: boolean;2293  readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2294  readonly isX5: boolean;2295  readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2296  readonly isX6: boolean;2297  readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2298  readonly isX7: boolean;2299  readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2300  readonly isX8: boolean;2301  readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2302  readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';2303}23042305/** @name XcmV1Order */2306export interface XcmV1Order extends Enum {2307  readonly isNoop: boolean;2308  readonly isDepositAsset: boolean;2309  readonly asDepositAsset: {2310    readonly assets: XcmV1MultiassetMultiAssetFilter;2311    readonly maxAssets: u32;2312    readonly beneficiary: XcmV1MultiLocation;2313  } & Struct;2314  readonly isDepositReserveAsset: boolean;2315  readonly asDepositReserveAsset: {2316    readonly assets: XcmV1MultiassetMultiAssetFilter;2317    readonly maxAssets: u32;2318    readonly dest: XcmV1MultiLocation;2319    readonly effects: Vec<XcmV1Order>;2320  } & Struct;2321  readonly isExchangeAsset: boolean;2322  readonly asExchangeAsset: {2323    readonly give: XcmV1MultiassetMultiAssetFilter;2324    readonly receive: XcmV1MultiassetMultiAssets;2325  } & Struct;2326  readonly isInitiateReserveWithdraw: boolean;2327  readonly asInitiateReserveWithdraw: {2328    readonly assets: XcmV1MultiassetMultiAssetFilter;2329    readonly reserve: XcmV1MultiLocation;2330    readonly effects: Vec<XcmV1Order>;2331  } & Struct;2332  readonly isInitiateTeleport: boolean;2333  readonly asInitiateTeleport: {2334    readonly assets: XcmV1MultiassetMultiAssetFilter;2335    readonly dest: XcmV1MultiLocation;2336    readonly effects: Vec<XcmV1Order>;2337  } & Struct;2338  readonly isQueryHolding: boolean;2339  readonly asQueryHolding: {2340    readonly queryId: Compact<u64>;2341    readonly dest: XcmV1MultiLocation;2342    readonly assets: XcmV1MultiassetMultiAssetFilter;2343  } & Struct;2344  readonly isBuyExecution: boolean;2345  readonly asBuyExecution: {2346    readonly fees: XcmV1MultiAsset;2347    readonly weight: u64;2348    readonly debt: u64;2349    readonly haltOnError: bool;2350    readonly instructions: Vec<XcmV1Xcm>;2351  } & Struct;2352  readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2353}23542355/** @name XcmV1Response */2356export interface XcmV1Response extends Enum {2357  readonly isAssets: boolean;2358  readonly asAssets: XcmV1MultiassetMultiAssets;2359  readonly isVersion: boolean;2360  readonly asVersion: u32;2361  readonly type: 'Assets' | 'Version';2362}23632364/** @name XcmV1Xcm */2365export interface XcmV1Xcm extends Enum {2366  readonly isWithdrawAsset: boolean;2367  readonly asWithdrawAsset: {2368    readonly assets: XcmV1MultiassetMultiAssets;2369    readonly effects: Vec<XcmV1Order>;2370  } & Struct;2371  readonly isReserveAssetDeposited: boolean;2372  readonly asReserveAssetDeposited: {2373    readonly assets: XcmV1MultiassetMultiAssets;2374    readonly effects: Vec<XcmV1Order>;2375  } & Struct;2376  readonly isReceiveTeleportedAsset: boolean;2377  readonly asReceiveTeleportedAsset: {2378    readonly assets: XcmV1MultiassetMultiAssets;2379    readonly effects: Vec<XcmV1Order>;2380  } & Struct;2381  readonly isQueryResponse: boolean;2382  readonly asQueryResponse: {2383    readonly queryId: Compact<u64>;2384    readonly response: XcmV1Response;2385  } & Struct;2386  readonly isTransferAsset: boolean;2387  readonly asTransferAsset: {2388    readonly assets: XcmV1MultiassetMultiAssets;2389    readonly beneficiary: XcmV1MultiLocation;2390  } & Struct;2391  readonly isTransferReserveAsset: boolean;2392  readonly asTransferReserveAsset: {2393    readonly assets: XcmV1MultiassetMultiAssets;2394    readonly dest: XcmV1MultiLocation;2395    readonly effects: Vec<XcmV1Order>;2396  } & Struct;2397  readonly isTransact: boolean;2398  readonly asTransact: {2399    readonly originType: XcmV0OriginKind;2400    readonly requireWeightAtMost: u64;2401    readonly call: XcmDoubleEncoded;2402  } & Struct;2403  readonly isHrmpNewChannelOpenRequest: boolean;2404  readonly asHrmpNewChannelOpenRequest: {2405    readonly sender: Compact<u32>;2406    readonly maxMessageSize: Compact<u32>;2407    readonly maxCapacity: Compact<u32>;2408  } & Struct;2409  readonly isHrmpChannelAccepted: boolean;2410  readonly asHrmpChannelAccepted: {2411    readonly recipient: Compact<u32>;2412  } & Struct;2413  readonly isHrmpChannelClosing: boolean;2414  readonly asHrmpChannelClosing: {2415    readonly initiator: Compact<u32>;2416    readonly sender: Compact<u32>;2417    readonly recipient: Compact<u32>;2418  } & Struct;2419  readonly isRelayedFrom: boolean;2420  readonly asRelayedFrom: {2421    readonly who: XcmV1MultilocationJunctions;2422    readonly message: XcmV1Xcm;2423  } & Struct;2424  readonly isSubscribeVersion: boolean;2425  readonly asSubscribeVersion: {2426    readonly queryId: Compact<u64>;2427    readonly maxResponseWeight: Compact<u64>;2428  } & Struct;2429  readonly isUnsubscribeVersion: boolean;2430  readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2431}24322433/** @name XcmV2Instruction */2434export interface XcmV2Instruction extends Enum {2435  readonly isWithdrawAsset: boolean;2436  readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;2437  readonly isReserveAssetDeposited: boolean;2438  readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;2439  readonly isReceiveTeleportedAsset: boolean;2440  readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;2441  readonly isQueryResponse: boolean;2442  readonly asQueryResponse: {2443    readonly queryId: Compact<u64>;2444    readonly response: XcmV2Response;2445    readonly maxWeight: Compact<u64>;2446  } & Struct;2447  readonly isTransferAsset: boolean;2448  readonly asTransferAsset: {2449    readonly assets: XcmV1MultiassetMultiAssets;2450    readonly beneficiary: XcmV1MultiLocation;2451  } & Struct;2452  readonly isTransferReserveAsset: boolean;2453  readonly asTransferReserveAsset: {2454    readonly assets: XcmV1MultiassetMultiAssets;2455    readonly dest: XcmV1MultiLocation;2456    readonly xcm: XcmV2Xcm;2457  } & Struct;2458  readonly isTransact: boolean;2459  readonly asTransact: {2460    readonly originType: XcmV0OriginKind;2461    readonly requireWeightAtMost: Compact<u64>;2462    readonly call: XcmDoubleEncoded;2463  } & Struct;2464  readonly isHrmpNewChannelOpenRequest: boolean;2465  readonly asHrmpNewChannelOpenRequest: {2466    readonly sender: Compact<u32>;2467    readonly maxMessageSize: Compact<u32>;2468    readonly maxCapacity: Compact<u32>;2469  } & Struct;2470  readonly isHrmpChannelAccepted: boolean;2471  readonly asHrmpChannelAccepted: {2472    readonly recipient: Compact<u32>;2473  } & Struct;2474  readonly isHrmpChannelClosing: boolean;2475  readonly asHrmpChannelClosing: {2476    readonly initiator: Compact<u32>;2477    readonly sender: Compact<u32>;2478    readonly recipient: Compact<u32>;2479  } & Struct;2480  readonly isClearOrigin: boolean;2481  readonly isDescendOrigin: boolean;2482  readonly asDescendOrigin: XcmV1MultilocationJunctions;2483  readonly isReportError: boolean;2484  readonly asReportError: {2485    readonly queryId: Compact<u64>;2486    readonly dest: XcmV1MultiLocation;2487    readonly maxResponseWeight: Compact<u64>;2488  } & Struct;2489  readonly isDepositAsset: boolean;2490  readonly asDepositAsset: {2491    readonly assets: XcmV1MultiassetMultiAssetFilter;2492    readonly maxAssets: Compact<u32>;2493    readonly beneficiary: XcmV1MultiLocation;2494  } & Struct;2495  readonly isDepositReserveAsset: boolean;2496  readonly asDepositReserveAsset: {2497    readonly assets: XcmV1MultiassetMultiAssetFilter;2498    readonly maxAssets: Compact<u32>;2499    readonly dest: XcmV1MultiLocation;2500    readonly xcm: XcmV2Xcm;2501  } & Struct;2502  readonly isExchangeAsset: boolean;2503  readonly asExchangeAsset: {2504    readonly give: XcmV1MultiassetMultiAssetFilter;2505    readonly receive: XcmV1MultiassetMultiAssets;2506  } & Struct;2507  readonly isInitiateReserveWithdraw: boolean;2508  readonly asInitiateReserveWithdraw: {2509    readonly assets: XcmV1MultiassetMultiAssetFilter;2510    readonly reserve: XcmV1MultiLocation;2511    readonly xcm: XcmV2Xcm;2512  } & Struct;2513  readonly isInitiateTeleport: boolean;2514  readonly asInitiateTeleport: {2515    readonly assets: XcmV1MultiassetMultiAssetFilter;2516    readonly dest: XcmV1MultiLocation;2517    readonly xcm: XcmV2Xcm;2518  } & Struct;2519  readonly isQueryHolding: boolean;2520  readonly asQueryHolding: {2521    readonly queryId: Compact<u64>;2522    readonly dest: XcmV1MultiLocation;2523    readonly assets: XcmV1MultiassetMultiAssetFilter;2524    readonly maxResponseWeight: Compact<u64>;2525  } & Struct;2526  readonly isBuyExecution: boolean;2527  readonly asBuyExecution: {2528    readonly fees: XcmV1MultiAsset;2529    readonly weightLimit: XcmV2WeightLimit;2530  } & Struct;2531  readonly isRefundSurplus: boolean;2532  readonly isSetErrorHandler: boolean;2533  readonly asSetErrorHandler: XcmV2Xcm;2534  readonly isSetAppendix: boolean;2535  readonly asSetAppendix: XcmV2Xcm;2536  readonly isClearError: boolean;2537  readonly isClaimAsset: boolean;2538  readonly asClaimAsset: {2539    readonly assets: XcmV1MultiassetMultiAssets;2540    readonly ticket: XcmV1MultiLocation;2541  } & Struct;2542  readonly isTrap: boolean;2543  readonly asTrap: Compact<u64>;2544  readonly isSubscribeVersion: boolean;2545  readonly asSubscribeVersion: {2546    readonly queryId: Compact<u64>;2547    readonly maxResponseWeight: Compact<u64>;2548  } & Struct;2549  readonly isUnsubscribeVersion: boolean;2550  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';2551}25522553/** @name XcmV2Response */2554export interface XcmV2Response extends Enum {2555  readonly isNull: boolean;2556  readonly isAssets: boolean;2557  readonly asAssets: XcmV1MultiassetMultiAssets;2558  readonly isExecutionResult: boolean;2559  readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;2560  readonly isVersion: boolean;2561  readonly asVersion: u32;2562  readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';2563}25642565/** @name XcmV2TraitsError */2566export interface XcmV2TraitsError extends Enum {2567  readonly isOverflow: boolean;2568  readonly isUnimplemented: boolean;2569  readonly isUntrustedReserveLocation: boolean;2570  readonly isUntrustedTeleportLocation: boolean;2571  readonly isMultiLocationFull: boolean;2572  readonly isMultiLocationNotInvertible: boolean;2573  readonly isBadOrigin: boolean;2574  readonly isInvalidLocation: boolean;2575  readonly isAssetNotFound: boolean;2576  readonly isFailedToTransactAsset: boolean;2577  readonly isNotWithdrawable: boolean;2578  readonly isLocationCannotHold: boolean;2579  readonly isExceedsMaxMessageSize: boolean;2580  readonly isDestinationUnsupported: boolean;2581  readonly isTransport: boolean;2582  readonly isUnroutable: boolean;2583  readonly isUnknownClaim: boolean;2584  readonly isFailedToDecode: boolean;2585  readonly isMaxWeightInvalid: boolean;2586  readonly isNotHoldingFees: boolean;2587  readonly isTooExpensive: boolean;2588  readonly isTrap: boolean;2589  readonly asTrap: u64;2590  readonly isUnhandledXcmVersion: boolean;2591  readonly isWeightLimitReached: boolean;2592  readonly asWeightLimitReached: u64;2593  readonly isBarrier: boolean;2594  readonly isWeightNotComputable: boolean;2595  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';2596}25972598/** @name XcmV2TraitsOutcome */2599export interface XcmV2TraitsOutcome extends Enum {2600  readonly isComplete: boolean;2601  readonly asComplete: u64;2602  readonly isIncomplete: boolean;2603  readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;2604  readonly isError: boolean;2605  readonly asError: XcmV2TraitsError;2606  readonly type: 'Complete' | 'Incomplete' | 'Error';2607}26082609/** @name XcmV2WeightLimit */2610export interface XcmV2WeightLimit extends Enum {2611  readonly isUnlimited: boolean;2612  readonly isLimited: boolean;2613  readonly asLimited: Compact<u64>;2614  readonly type: 'Unlimited' | 'Limited';2615}26162617/** @name XcmV2Xcm */2618export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}26192620/** @name XcmVersionedMultiAssets */2621export interface XcmVersionedMultiAssets extends Enum {2622  readonly isV0: boolean;2623  readonly asV0: Vec<XcmV0MultiAsset>;2624  readonly isV1: boolean;2625  readonly asV1: XcmV1MultiassetMultiAssets;2626  readonly type: 'V0' | 'V1';2627}26282629/** @name XcmVersionedMultiLocation */2630export interface XcmVersionedMultiLocation extends Enum {2631  readonly isV0: boolean;2632  readonly asV0: XcmV0MultiLocation;2633  readonly isV1: boolean;2634  readonly asV1: XcmV1MultiLocation;2635  readonly type: 'V0' | 'V1';2636}26372638/** @name XcmVersionedXcm */2639export interface XcmVersionedXcm extends Enum {2640  readonly isV0: boolean;2641  readonly asV0: XcmV0Xcm;2642  readonly isV1: boolean;2643  readonly asV1: XcmV1Xcm;2644  readonly isV2: boolean;2645  readonly asV2: XcmV2Xcm;2646  readonly type: 'V0' | 'V1' | 'V2';2647}26482649export type PHANTOM_UNIQUE = 'unique';
modifiedtests/src/limits.test.tsdiffbeforeafterboth
--- a/tests/src/limits.test.ts
+++ b/tests/src/limits.test.ts
@@ -396,3 +396,51 @@
     //expect(aliceBalanceAfterSponsoredTransaction1).to.be.lessThan(aliceBalanceBefore);
   });
 });
+
+describe.only('Effective collection limits', () => {
+  it('Test1', async () => {
+    await usingApi(async (api) => {
+      const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
+      
+      {
+        const collection = await api.rpc.unique.collectionById(collectionId);
+        expect(collection.isSome).to.be.true;
+        const limits = collection.unwrap().limits;
+        expect(limits).to.be.any;
+        
+        // Check that limits is undefined
+        expect(limits.accountTokenOwnershipLimit.isNone).to.be.true;
+        expect(limits.sponsoredDataSize.isNone).to.be.true;
+        expect(limits.sponsoredDataRateLimit.isNone).to.be.true;
+        expect(limits.tokenLimit.isNone).to.be.true;
+        expect(limits.sponsorTransferTimeout.isNone).to.be.true;
+        expect(limits.sponsorApproveTimeout.isNone).to.be.true;
+        expect(limits.ownerCanTransfer.isNone).to.be.true;
+        expect(limits.ownerCanDestroy.isNone).to.be.true;
+        expect(limits.transfersEnabled.isNone).to.be.true;
+      }
+
+      {
+        const limits = await api.rpc.unique.effectiveCollectionLimits(11111);
+        expect(limits.isNone).to.be.true;
+      }
+
+      {
+        const limitsOpt = await api.rpc.unique.effectiveCollectionLimits(collectionId);
+        expect(limitsOpt.isNone).to.be.false;
+        const limits = limitsOpt.unwrap();
+
+        console.log(limits);
+        expect(limits.accountTokenOwnershipLimit.isSome).to.be.true;
+        expect(limits.sponsoredDataSize.isSome).to.be.true;
+        expect(limits.sponsoredDataRateLimit.isSome).to.be.true;
+        expect(limits.tokenLimit.isSome).to.be.true;
+        expect(limits.sponsorTransferTimeout.isSome).to.be.true;
+        expect(limits.sponsorApproveTimeout.isSome).to.be.true;
+        expect(limits.ownerCanTransfer.isSome).to.be.true;
+        expect(limits.ownerCanDestroy.isSome).to.be.true;
+        expect(limits.transfersEnabled.isSome).to.be.true;
+      }
+    });
+  });
+});
\ No newline at end of file