git.delta.rocks / unique-network / refs/commits / 7f8cc7f16d35

difftreelog

Merge pull request #294 from UniqueNetwork/feature/create-collection-ex

kozyrevdev2022-02-24parents: #b4099fe #1141b20.patch.diff
in: master
Remove double option limit

6 files changed

modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -27,6 +27,8 @@
 use derivative::Derivative;
 use scale_info::TypeInfo;
 
+mod migration;
+
 pub const MAX_DECIMAL_POINTS: DecimalPoints = 30;
 pub const MAX_REFUNGIBLE_PIECES: u128 = 1_000_000_000_000_000_000_000;
 pub const MAX_SPONSOR_TIMEOUT: u32 = 10_368_000;
@@ -319,7 +321,7 @@
 	/// None - setVariableMetadata is not sponsored
 	/// Some(v) - setVariableMetadata is sponsored
 	///           if there is v block between txs
-	pub sponsored_data_rate_limit: Option<(Option<u32>,)>,
+	pub sponsored_data_rate_limit: Option<SponsoringRateLimit>,
 	pub token_limit: Option<u32>,
 
 	// Timeouts for item types in passed blocks
@@ -366,13 +368,23 @@
 		self.transfers_enabled.unwrap_or(true)
 	}
 	pub fn sponsored_data_rate_limit(&self) -> Option<u32> {
-		self.sponsored_data_rate_limit
-			.unwrap_or((None,))
-			.0
-			.map(|v| v.min(MAX_SPONSOR_TIMEOUT))
+		match self
+			.sponsored_data_rate_limit
+			.unwrap_or(SponsoringRateLimit::SponsoringDisabled)
+		{
+			SponsoringRateLimit::SponsoringDisabled => None,
+			SponsoringRateLimit::Blocks(v) => Some(v.min(MAX_SPONSOR_TIMEOUT)),
+		}
 	}
 }
 
+#[derive(Encode, Decode, Debug, Clone, Copy, PartialEq, TypeInfo, MaxEncodedLen)]
+#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
+pub enum SponsoringRateLimit {
+	SponsoringDisabled,
+	Blocks(u32),
+}
+
 /// BoundedVec doesn't supports serde
 #[cfg(feature = "serde1")]
 mod bounded_serde {
addedprimitives/data-structs/src/migration.rsdiffbeforeafterboth
--- /dev/null
+++ b/primitives/data-structs/src/migration.rs
@@ -0,0 +1,24 @@
+/// Storage migration is not required for this change, as SponsoringRateLimit has same encoding as Option<u32>
+#[test]
+fn sponsoring_rate_limit_has_same_encoding_as_option_u32() {
+	use crate::SponsoringRateLimit;
+	use codec::Encode;
+
+	fn limit_to_option(limit: SponsoringRateLimit) -> Option<u32> {
+		match limit {
+			SponsoringRateLimit::SponsoringDisabled => None,
+			SponsoringRateLimit::Blocks(v) => Some(v),
+		}
+	}
+
+	fn test_to_option(limit: SponsoringRateLimit) {
+		let encoded = limit.encode();
+		let option = limit_to_option(limit);
+		let encoded_option = option.encode();
+
+		assert_eq!(encoded, encoded_option);
+	}
+
+	test_to_option(SponsoringRateLimit::SponsoringDisabled);
+	test_to_option(SponsoringRateLimit::Blocks(10));
+}
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, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UniqueRuntimeRuntime, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateNftData, UpDataStructsCreateReFungibleData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, 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, 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, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UniqueRuntimeRuntime, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateNftData, UpDataStructsCreateReFungibleData, 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';
@@ -1167,6 +1167,7 @@
     UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;
     UpDataStructsMetaUpdatePermission: UpDataStructsMetaUpdatePermission;
     UpDataStructsSchemaVersion: UpDataStructsSchemaVersion;
+    UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;
     UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;
     UpgradeGoAhead: UpgradeGoAhead;
     UpgradeRestriction: UpgradeRestriction;
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -1513,11 +1513,19 @@
     readonly type: 'ImageURL' | 'Unique';
   }
 
+  /** @name UpDataStructsSponsoringRateLimit */
+  export interface UpDataStructsSponsoringRateLimit extends Enum {
+    readonly isSponsoringDisabled: boolean;
+    readonly isBlocks: boolean;
+    readonly asBlocks: u32;
+    readonly type: 'SponsoringDisabled' | 'Blocks';
+  }
+
   /** @name UpDataStructsCollectionLimits (163) */
   export interface UpDataStructsCollectionLimits extends Struct {
     readonly accountTokenOwnershipLimit: Option<u32>;
     readonly sponsoredDataSize: Option<u32>;
-    readonly sponsoredDataRateLimit: Option<Option<u32>>;
+    readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;
     readonly tokenLimit: Option<u32>;
     readonly sponsorTransferTimeout: Option<u32>;
     readonly sponsorApproveTimeout: Option<u32>;
modifiedtests/src/interfaces/unique/types.tsdiffbeforeafterboth
before · 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 type: 'ServiceOverweight';137}138139/** @name CumulusPalletXcmpQueueError */140export interface CumulusPalletXcmpQueueError extends Enum {141  readonly isFailedToSend: boolean;142  readonly isBadXcmOrigin: boolean;143  readonly isBadXcm: boolean;144  readonly isBadOverweightIndex: boolean;145  readonly isWeightOverLimit: boolean;146  readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';147}148149/** @name CumulusPalletXcmpQueueEvent */150export interface CumulusPalletXcmpQueueEvent extends Enum {151  readonly isSuccess: boolean;152  readonly asSuccess: Option<H256>;153  readonly isFail: boolean;154  readonly asFail: ITuple<[Option<H256>, XcmV2TraitsError]>;155  readonly isBadVersion: boolean;156  readonly asBadVersion: Option<H256>;157  readonly isBadFormat: boolean;158  readonly asBadFormat: Option<H256>;159  readonly isUpwardMessageSent: boolean;160  readonly asUpwardMessageSent: Option<H256>;161  readonly isXcmpMessageSent: boolean;162  readonly asXcmpMessageSent: Option<H256>;163  readonly isOverweightEnqueued: boolean;164  readonly asOverweightEnqueued: ITuple<[u32, u32, u64, u64]>;165  readonly isOverweightServiced: boolean;166  readonly asOverweightServiced: ITuple<[u64, u64]>;167  readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';168}169170/** @name CumulusPalletXcmpQueueInboundChannelDetails */171export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {172  readonly sender: u32;173  readonly state: CumulusPalletXcmpQueueInboundState;174  readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;175}176177/** @name CumulusPalletXcmpQueueInboundState */178export interface CumulusPalletXcmpQueueInboundState extends Enum {179  readonly isOk: boolean;180  readonly isSuspended: boolean;181  readonly type: 'Ok' | 'Suspended';182}183184/** @name CumulusPalletXcmpQueueOutboundChannelDetails */185export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {186  readonly recipient: u32;187  readonly state: CumulusPalletXcmpQueueOutboundState;188  readonly signalsExist: bool;189  readonly firstIndex: u16;190  readonly lastIndex: u16;191}192193/** @name CumulusPalletXcmpQueueOutboundState */194export interface CumulusPalletXcmpQueueOutboundState extends Enum {195  readonly isOk: boolean;196  readonly isSuspended: boolean;197  readonly type: 'Ok' | 'Suspended';198}199200/** @name CumulusPalletXcmpQueueQueueConfigData */201export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {202  readonly suspendThreshold: u32;203  readonly dropThreshold: u32;204  readonly resumeThreshold: u32;205  readonly thresholdWeight: u64;206  readonly weightRestrictDecay: u64;207  readonly xcmpMaxIndividualWeight: u64;208}209210/** @name CumulusPrimitivesParachainInherentParachainInherentData */211export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {212  readonly validationData: PolkadotPrimitivesV1PersistedValidationData;213  readonly relayChainState: SpTrieStorageProof;214  readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;215  readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;216}217218/** @name EthbloomBloom */219export interface EthbloomBloom extends U8aFixed {}220221/** @name EthereumBlock */222export interface EthereumBlock extends Struct {223  readonly header: EthereumHeader;224  readonly transactions: Vec<EthereumTransactionTransactionV2>;225  readonly ommers: Vec<EthereumHeader>;226}227228/** @name EthereumHeader */229export interface EthereumHeader extends Struct {230  readonly parentHash: H256;231  readonly ommersHash: H256;232  readonly beneficiary: H160;233  readonly stateRoot: H256;234  readonly transactionsRoot: H256;235  readonly receiptsRoot: H256;236  readonly logsBloom: EthbloomBloom;237  readonly difficulty: U256;238  readonly number: U256;239  readonly gasLimit: U256;240  readonly gasUsed: U256;241  readonly timestamp: u64;242  readonly extraData: Bytes;243  readonly mixHash: H256;244  readonly nonce: EthereumTypesHashH64;245}246247/** @name EthereumLog */248export interface EthereumLog extends Struct {249  readonly address: H160;250  readonly topics: Vec<H256>;251  readonly data: Bytes;252}253254/** @name EthereumReceiptEip658ReceiptData */255export interface EthereumReceiptEip658ReceiptData extends Struct {256  readonly statusCode: u8;257  readonly usedGas: U256;258  readonly logsBloom: EthbloomBloom;259  readonly logs: Vec<EthereumLog>;260}261262/** @name EthereumReceiptReceiptV3 */263export interface EthereumReceiptReceiptV3 extends Enum {264  readonly isLegacy: boolean;265  readonly asLegacy: EthereumReceiptEip658ReceiptData;266  readonly isEip2930: boolean;267  readonly asEip2930: EthereumReceiptEip658ReceiptData;268  readonly isEip1559: boolean;269  readonly asEip1559: EthereumReceiptEip658ReceiptData;270  readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';271}272273/** @name EthereumTransactionAccessListItem */274export interface EthereumTransactionAccessListItem extends Struct {275  readonly address: H160;276  readonly slots: Vec<H256>;277}278279/** @name EthereumTransactionEip1559Transaction */280export interface EthereumTransactionEip1559Transaction extends Struct {281  readonly chainId: u64;282  readonly nonce: U256;283  readonly maxPriorityFeePerGas: U256;284  readonly maxFeePerGas: U256;285  readonly gasLimit: U256;286  readonly action: EthereumTransactionTransactionAction;287  readonly value: U256;288  readonly input: Bytes;289  readonly accessList: Vec<EthereumTransactionAccessListItem>;290  readonly oddYParity: bool;291  readonly r: H256;292  readonly s: H256;293}294295/** @name EthereumTransactionEip2930Transaction */296export interface EthereumTransactionEip2930Transaction extends Struct {297  readonly chainId: u64;298  readonly nonce: U256;299  readonly gasPrice: U256;300  readonly gasLimit: U256;301  readonly action: EthereumTransactionTransactionAction;302  readonly value: U256;303  readonly input: Bytes;304  readonly accessList: Vec<EthereumTransactionAccessListItem>;305  readonly oddYParity: bool;306  readonly r: H256;307  readonly s: H256;308}309310/** @name EthereumTransactionLegacyTransaction */311export interface EthereumTransactionLegacyTransaction extends Struct {312  readonly nonce: U256;313  readonly gasPrice: U256;314  readonly gasLimit: U256;315  readonly action: EthereumTransactionTransactionAction;316  readonly value: U256;317  readonly input: Bytes;318  readonly signature: EthereumTransactionTransactionSignature;319}320321/** @name EthereumTransactionTransactionAction */322export interface EthereumTransactionTransactionAction extends Enum {323  readonly isCall: boolean;324  readonly asCall: H160;325  readonly isCreate: boolean;326  readonly type: 'Call' | 'Create';327}328329/** @name EthereumTransactionTransactionSignature */330export interface EthereumTransactionTransactionSignature extends Struct {331  readonly v: u64;332  readonly r: H256;333  readonly s: H256;334}335336/** @name EthereumTransactionTransactionV2 */337export interface EthereumTransactionTransactionV2 extends Enum {338  readonly isLegacy: boolean;339  readonly asLegacy: EthereumTransactionLegacyTransaction;340  readonly isEip2930: boolean;341  readonly asEip2930: EthereumTransactionEip2930Transaction;342  readonly isEip1559: boolean;343  readonly asEip1559: EthereumTransactionEip1559Transaction;344  readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';345}346347/** @name EthereumTypesHashH64 */348export interface EthereumTypesHashH64 extends U8aFixed {}349350/** @name EvmCoreErrorExitError */351export interface EvmCoreErrorExitError extends Enum {352  readonly isStackUnderflow: boolean;353  readonly isStackOverflow: boolean;354  readonly isInvalidJump: boolean;355  readonly isInvalidRange: boolean;356  readonly isDesignatedInvalid: boolean;357  readonly isCallTooDeep: boolean;358  readonly isCreateCollision: boolean;359  readonly isCreateContractLimit: boolean;360  readonly isInvalidCode: boolean;361  readonly isOutOfOffset: boolean;362  readonly isOutOfGas: boolean;363  readonly isOutOfFund: boolean;364  readonly isPcUnderflow: boolean;365  readonly isCreateEmpty: boolean;366  readonly isOther: boolean;367  readonly asOther: Text;368  readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'InvalidCode' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other';369}370371/** @name EvmCoreErrorExitFatal */372export interface EvmCoreErrorExitFatal extends Enum {373  readonly isNotSupported: boolean;374  readonly isUnhandledInterrupt: boolean;375  readonly isCallErrorAsFatal: boolean;376  readonly asCallErrorAsFatal: EvmCoreErrorExitError;377  readonly isOther: boolean;378  readonly asOther: Text;379  readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';380}381382/** @name EvmCoreErrorExitReason */383export interface EvmCoreErrorExitReason extends Enum {384  readonly isSucceed: boolean;385  readonly asSucceed: EvmCoreErrorExitSucceed;386  readonly isError: boolean;387  readonly asError: EvmCoreErrorExitError;388  readonly isRevert: boolean;389  readonly asRevert: EvmCoreErrorExitRevert;390  readonly isFatal: boolean;391  readonly asFatal: EvmCoreErrorExitFatal;392  readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';393}394395/** @name EvmCoreErrorExitRevert */396export interface EvmCoreErrorExitRevert extends Enum {397  readonly isReverted: boolean;398  readonly type: 'Reverted';399}400401/** @name EvmCoreErrorExitSucceed */402export interface EvmCoreErrorExitSucceed extends Enum {403  readonly isStopped: boolean;404  readonly isReturned: boolean;405  readonly isSuicided: boolean;406  readonly type: 'Stopped' | 'Returned' | 'Suicided';407}408409/** @name FpRpcTransactionStatus */410export interface FpRpcTransactionStatus extends Struct {411  readonly transactionHash: H256;412  readonly transactionIndex: u32;413  readonly from: H160;414  readonly to: Option<H160>;415  readonly contractAddress: Option<H160>;416  readonly logs: Vec<EthereumLog>;417  readonly logsBloom: EthbloomBloom;418}419420/** @name FrameSupportPalletId */421export interface FrameSupportPalletId extends U8aFixed {}422423/** @name FrameSupportTokensMiscBalanceStatus */424export interface FrameSupportTokensMiscBalanceStatus extends Enum {425  readonly isFree: boolean;426  readonly isReserved: boolean;427  readonly type: 'Free' | 'Reserved';428}429430/** @name FrameSupportWeightsDispatchClass */431export interface FrameSupportWeightsDispatchClass extends Enum {432  readonly isNormal: boolean;433  readonly isOperational: boolean;434  readonly isMandatory: boolean;435  readonly type: 'Normal' | 'Operational' | 'Mandatory';436}437438/** @name FrameSupportWeightsDispatchInfo */439export interface FrameSupportWeightsDispatchInfo extends Struct {440  readonly weight: u64;441  readonly class: FrameSupportWeightsDispatchClass;442  readonly paysFee: FrameSupportWeightsPays;443}444445/** @name FrameSupportWeightsPays */446export interface FrameSupportWeightsPays extends Enum {447  readonly isYes: boolean;448  readonly isNo: boolean;449  readonly type: 'Yes' | 'No';450}451452/** @name FrameSupportWeightsPerDispatchClassU32 */453export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {454  readonly normal: u32;455  readonly operational: u32;456  readonly mandatory: u32;457}458459/** @name FrameSupportWeightsPerDispatchClassU64 */460export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {461  readonly normal: u64;462  readonly operational: u64;463  readonly mandatory: u64;464}465466/** @name FrameSupportWeightsPerDispatchClassWeightsPerClass */467export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {468  readonly normal: FrameSystemLimitsWeightsPerClass;469  readonly operational: FrameSystemLimitsWeightsPerClass;470  readonly mandatory: FrameSystemLimitsWeightsPerClass;471}472473/** @name FrameSupportWeightsRuntimeDbWeight */474export interface FrameSupportWeightsRuntimeDbWeight extends Struct {475  readonly read: u64;476  readonly write: u64;477}478479/** @name FrameSupportWeightsWeightToFeeCoefficient */480export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {481  readonly coeffInteger: u128;482  readonly coeffFrac: Perbill;483  readonly negative: bool;484  readonly degree: u8;485}486487/** @name FrameSystemAccountInfo */488export interface FrameSystemAccountInfo extends Struct {489  readonly nonce: u32;490  readonly consumers: u32;491  readonly providers: u32;492  readonly sufficients: u32;493  readonly data: PalletBalancesAccountData;494}495496/** @name FrameSystemCall */497export interface FrameSystemCall extends Enum {498  readonly isFillBlock: boolean;499  readonly asFillBlock: {500    readonly ratio: Perbill;501  } & Struct;502  readonly isRemark: boolean;503  readonly asRemark: {504    readonly remark: Bytes;505  } & Struct;506  readonly isSetHeapPages: boolean;507  readonly asSetHeapPages: {508    readonly pages: u64;509  } & Struct;510  readonly isSetCode: boolean;511  readonly asSetCode: {512    readonly code: Bytes;513  } & Struct;514  readonly isSetCodeWithoutChecks: boolean;515  readonly asSetCodeWithoutChecks: {516    readonly code: Bytes;517  } & Struct;518  readonly isSetStorage: boolean;519  readonly asSetStorage: {520    readonly items: Vec<ITuple<[Bytes, Bytes]>>;521  } & Struct;522  readonly isKillStorage: boolean;523  readonly asKillStorage: {524    readonly keys_: Vec<Bytes>;525  } & Struct;526  readonly isKillPrefix: boolean;527  readonly asKillPrefix: {528    readonly prefix: Bytes;529    readonly subkeys: u32;530  } & Struct;531  readonly isRemarkWithEvent: boolean;532  readonly asRemarkWithEvent: {533    readonly remark: Bytes;534  } & Struct;535  readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';536}537538/** @name FrameSystemError */539export interface FrameSystemError extends Enum {540  readonly isInvalidSpecName: boolean;541  readonly isSpecVersionNeedsToIncrease: boolean;542  readonly isFailedToExtractRuntimeVersion: boolean;543  readonly isNonDefaultComposite: boolean;544  readonly isNonZeroRefCount: boolean;545  readonly isCallFiltered: boolean;546  readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';547}548549/** @name FrameSystemEvent */550export interface FrameSystemEvent extends Enum {551  readonly isExtrinsicSuccess: boolean;552  readonly asExtrinsicSuccess: {553    readonly dispatchInfo: FrameSupportWeightsDispatchInfo;554  } & Struct;555  readonly isExtrinsicFailed: boolean;556  readonly asExtrinsicFailed: {557    readonly dispatchError: SpRuntimeDispatchError;558    readonly dispatchInfo: FrameSupportWeightsDispatchInfo;559  } & Struct;560  readonly isCodeUpdated: boolean;561  readonly isNewAccount: boolean;562  readonly asNewAccount: {563    readonly account: AccountId32;564  } & Struct;565  readonly isKilledAccount: boolean;566  readonly asKilledAccount: {567    readonly account: AccountId32;568  } & Struct;569  readonly isRemarked: boolean;570  readonly asRemarked: {571    readonly sender: AccountId32;572    readonly hash_: H256;573  } & Struct;574  readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';575}576577/** @name FrameSystemEventRecord */578export interface FrameSystemEventRecord extends Struct {579  readonly phase: FrameSystemPhase;580  readonly event: Event;581  readonly topics: Vec<H256>;582}583584/** @name FrameSystemExtensionsCheckGenesis */585export interface FrameSystemExtensionsCheckGenesis extends Null {}586587/** @name FrameSystemExtensionsCheckNonce */588export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}589590/** @name FrameSystemExtensionsCheckSpecVersion */591export interface FrameSystemExtensionsCheckSpecVersion extends Null {}592593/** @name FrameSystemExtensionsCheckWeight */594export interface FrameSystemExtensionsCheckWeight extends Null {}595596/** @name FrameSystemLastRuntimeUpgradeInfo */597export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {598  readonly specVersion: Compact<u32>;599  readonly specName: Text;600}601602/** @name FrameSystemLimitsBlockLength */603export interface FrameSystemLimitsBlockLength extends Struct {604  readonly max: FrameSupportWeightsPerDispatchClassU32;605}606607/** @name FrameSystemLimitsBlockWeights */608export interface FrameSystemLimitsBlockWeights extends Struct {609  readonly baseBlock: u64;610  readonly maxBlock: u64;611  readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;612}613614/** @name FrameSystemLimitsWeightsPerClass */615export interface FrameSystemLimitsWeightsPerClass extends Struct {616  readonly baseExtrinsic: u64;617  readonly maxExtrinsic: Option<u64>;618  readonly maxTotal: Option<u64>;619  readonly reserved: Option<u64>;620}621622/** @name FrameSystemPhase */623export interface FrameSystemPhase extends Enum {624  readonly isApplyExtrinsic: boolean;625  readonly asApplyExtrinsic: u32;626  readonly isFinalization: boolean;627  readonly isInitialization: boolean;628  readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';629}630631/** @name OrmlVestingModuleCall */632export interface OrmlVestingModuleCall extends Enum {633  readonly isClaim: boolean;634  readonly isVestedTransfer: boolean;635  readonly asVestedTransfer: {636    readonly dest: MultiAddress;637    readonly schedule: OrmlVestingVestingSchedule;638  } & Struct;639  readonly isUpdateVestingSchedules: boolean;640  readonly asUpdateVestingSchedules: {641    readonly who: MultiAddress;642    readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;643  } & Struct;644  readonly isClaimFor: boolean;645  readonly asClaimFor: {646    readonly dest: MultiAddress;647  } & Struct;648  readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';649}650651/** @name OrmlVestingModuleError */652export interface OrmlVestingModuleError extends Enum {653  readonly isZeroVestingPeriod: boolean;654  readonly isZeroVestingPeriodCount: boolean;655  readonly isInsufficientBalanceToLock: boolean;656  readonly isTooManyVestingSchedules: boolean;657  readonly isAmountLow: boolean;658  readonly isMaxVestingSchedulesExceeded: boolean;659  readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';660}661662/** @name OrmlVestingModuleEvent */663export interface OrmlVestingModuleEvent extends Enum {664  readonly isVestingScheduleAdded: boolean;665  readonly asVestingScheduleAdded: {666    readonly from: AccountId32;667    readonly to: AccountId32;668    readonly vestingSchedule: OrmlVestingVestingSchedule;669  } & Struct;670  readonly isClaimed: boolean;671  readonly asClaimed: {672    readonly who: AccountId32;673    readonly amount: u128;674  } & Struct;675  readonly isVestingSchedulesUpdated: boolean;676  readonly asVestingSchedulesUpdated: {677    readonly who: AccountId32;678  } & Struct;679  readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';680}681682/** @name OrmlVestingVestingSchedule */683export interface OrmlVestingVestingSchedule extends Struct {684  readonly start: u32;685  readonly period: u32;686  readonly periodCount: u32;687  readonly perPeriod: Compact<u128>;688}689690/** @name PalletBalancesAccountData */691export interface PalletBalancesAccountData extends Struct {692  readonly free: u128;693  readonly reserved: u128;694  readonly miscFrozen: u128;695  readonly feeFrozen: u128;696}697698/** @name PalletBalancesBalanceLock */699export interface PalletBalancesBalanceLock extends Struct {700  readonly id: U8aFixed;701  readonly amount: u128;702  readonly reasons: PalletBalancesReasons;703}704705/** @name PalletBalancesCall */706export interface PalletBalancesCall extends Enum {707  readonly isTransfer: boolean;708  readonly asTransfer: {709    readonly dest: MultiAddress;710    readonly value: Compact<u128>;711  } & Struct;712  readonly isSetBalance: boolean;713  readonly asSetBalance: {714    readonly who: MultiAddress;715    readonly newFree: Compact<u128>;716    readonly newReserved: Compact<u128>;717  } & Struct;718  readonly isForceTransfer: boolean;719  readonly asForceTransfer: {720    readonly source: MultiAddress;721    readonly dest: MultiAddress;722    readonly value: Compact<u128>;723  } & Struct;724  readonly isTransferKeepAlive: boolean;725  readonly asTransferKeepAlive: {726    readonly dest: MultiAddress;727    readonly value: Compact<u128>;728  } & Struct;729  readonly isTransferAll: boolean;730  readonly asTransferAll: {731    readonly dest: MultiAddress;732    readonly keepAlive: bool;733  } & Struct;734  readonly isForceUnreserve: boolean;735  readonly asForceUnreserve: {736    readonly who: MultiAddress;737    readonly amount: u128;738  } & Struct;739  readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';740}741742/** @name PalletBalancesError */743export interface PalletBalancesError extends Enum {744  readonly isVestingBalance: boolean;745  readonly isLiquidityRestrictions: boolean;746  readonly isInsufficientBalance: boolean;747  readonly isExistentialDeposit: boolean;748  readonly isKeepAlive: boolean;749  readonly isExistingVestingSchedule: boolean;750  readonly isDeadAccount: boolean;751  readonly isTooManyReserves: boolean;752  readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';753}754755/** @name PalletBalancesEvent */756export interface PalletBalancesEvent extends Enum {757  readonly isEndowed: boolean;758  readonly asEndowed: {759    readonly account: AccountId32;760    readonly freeBalance: u128;761  } & Struct;762  readonly isDustLost: boolean;763  readonly asDustLost: {764    readonly account: AccountId32;765    readonly amount: u128;766  } & Struct;767  readonly isTransfer: boolean;768  readonly asTransfer: {769    readonly from: AccountId32;770    readonly to: AccountId32;771    readonly amount: u128;772  } & Struct;773  readonly isBalanceSet: boolean;774  readonly asBalanceSet: {775    readonly who: AccountId32;776    readonly free: u128;777    readonly reserved: u128;778  } & Struct;779  readonly isReserved: boolean;780  readonly asReserved: {781    readonly who: AccountId32;782    readonly amount: u128;783  } & Struct;784  readonly isUnreserved: boolean;785  readonly asUnreserved: {786    readonly who: AccountId32;787    readonly amount: u128;788  } & Struct;789  readonly isReserveRepatriated: boolean;790  readonly asReserveRepatriated: {791    readonly from: AccountId32;792    readonly to: AccountId32;793    readonly amount: u128;794    readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;795  } & Struct;796  readonly isDeposit: boolean;797  readonly asDeposit: {798    readonly who: AccountId32;799    readonly amount: u128;800  } & Struct;801  readonly isWithdraw: boolean;802  readonly asWithdraw: {803    readonly who: AccountId32;804    readonly amount: u128;805  } & Struct;806  readonly isSlashed: boolean;807  readonly asSlashed: {808    readonly who: AccountId32;809    readonly amount: u128;810  } & Struct;811  readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';812}813814/** @name PalletBalancesReasons */815export interface PalletBalancesReasons extends Enum {816  readonly isFee: boolean;817  readonly isMisc: boolean;818  readonly isAll: boolean;819  readonly type: 'Fee' | 'Misc' | 'All';820}821822/** @name PalletBalancesReleases */823export interface PalletBalancesReleases extends Enum {824  readonly isV100: boolean;825  readonly isV200: boolean;826  readonly type: 'V100' | 'V200';827}828829/** @name PalletBalancesReserveData */830export interface PalletBalancesReserveData extends Struct {831  readonly id: U8aFixed;832  readonly amount: u128;833}834835/** @name PalletCommonAccountBasicCrossAccountIdRepr */836export interface PalletCommonAccountBasicCrossAccountIdRepr extends Enum {837  readonly isSubstrate: boolean;838  readonly asSubstrate: AccountId32;839  readonly isEthereum: boolean;840  readonly asEthereum: H160;841  readonly type: 'Substrate' | 'Ethereum';842}843844/** @name PalletCommonError */845export interface PalletCommonError extends Enum {846  readonly isCollectionNotFound: boolean;847  readonly isMustBeTokenOwner: boolean;848  readonly isNoPermission: boolean;849  readonly isPublicMintingNotAllowed: boolean;850  readonly isAddressNotInAllowlist: boolean;851  readonly isCollectionNameLimitExceeded: boolean;852  readonly isCollectionDescriptionLimitExceeded: boolean;853  readonly isCollectionTokenPrefixLimitExceeded: boolean;854  readonly isTotalCollectionsLimitExceeded: boolean;855  readonly isTokenVariableDataLimitExceeded: boolean;856  readonly isCollectionAdminCountExceeded: boolean;857  readonly isCollectionLimitBoundsExceeded: boolean;858  readonly isOwnerPermissionsCantBeReverted: boolean;859  readonly isTransferNotAllowed: boolean;860  readonly isAccountTokenLimitExceeded: boolean;861  readonly isCollectionTokenLimitExceeded: boolean;862  readonly isMetadataFlagFrozen: boolean;863  readonly isTokenNotFound: boolean;864  readonly isTokenValueTooLow: boolean;865  readonly isApprovedValueTooLow: boolean;866  readonly isCantApproveMoreThanOwned: boolean;867  readonly isAddressIsZero: boolean;868  readonly isUnsupportedOperation: boolean;869  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';870}871872/** @name PalletCommonEvent */873export interface PalletCommonEvent extends Enum {874  readonly isCollectionCreated: boolean;875  readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;876  readonly isCollectionDestroyed: boolean;877  readonly asCollectionDestroyed: u32;878  readonly isItemCreated: boolean;879  readonly asItemCreated: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;880  readonly isItemDestroyed: boolean;881  readonly asItemDestroyed: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;882  readonly isTransfer: boolean;883  readonly asTransfer: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;884  readonly isApproved: boolean;885  readonly asApproved: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;886  readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved';887}888889/** @name PalletEthereumCall */890export interface PalletEthereumCall extends Enum {891  readonly isTransact: boolean;892  readonly asTransact: {893    readonly transaction: EthereumTransactionTransactionV2;894  } & Struct;895  readonly type: 'Transact';896}897898/** @name PalletEthereumError */899export interface PalletEthereumError extends Enum {900  readonly isInvalidSignature: boolean;901  readonly isPreLogExists: boolean;902  readonly type: 'InvalidSignature' | 'PreLogExists';903}904905/** @name PalletEthereumEvent */906export interface PalletEthereumEvent extends Enum {907  readonly isExecuted: boolean;908  readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;909  readonly type: 'Executed';910}911912/** @name PalletEvmCall */913export interface PalletEvmCall extends Enum {914  readonly isWithdraw: boolean;915  readonly asWithdraw: {916    readonly address: H160;917    readonly value: u128;918  } & Struct;919  readonly isCall: boolean;920  readonly asCall: {921    readonly source: H160;922    readonly target: H160;923    readonly input: Bytes;924    readonly value: U256;925    readonly gasLimit: u64;926    readonly maxFeePerGas: U256;927    readonly maxPriorityFeePerGas: Option<U256>;928    readonly nonce: Option<U256>;929    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;930  } & Struct;931  readonly isCreate: boolean;932  readonly asCreate: {933    readonly source: H160;934    readonly init: Bytes;935    readonly value: U256;936    readonly gasLimit: u64;937    readonly maxFeePerGas: U256;938    readonly maxPriorityFeePerGas: Option<U256>;939    readonly nonce: Option<U256>;940    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;941  } & Struct;942  readonly isCreate2: boolean;943  readonly asCreate2: {944    readonly source: H160;945    readonly init: Bytes;946    readonly salt: H256;947    readonly value: U256;948    readonly gasLimit: u64;949    readonly maxFeePerGas: U256;950    readonly maxPriorityFeePerGas: Option<U256>;951    readonly nonce: Option<U256>;952    readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;953  } & Struct;954  readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';955}956957/** @name PalletEvmCoderSubstrateError */958export interface PalletEvmCoderSubstrateError extends Enum {959  readonly isOutOfGas: boolean;960  readonly isOutOfFund: boolean;961  readonly type: 'OutOfGas' | 'OutOfFund';962}963964/** @name PalletEvmContractHelpersError */965export interface PalletEvmContractHelpersError extends Enum {966  readonly isNoPermission: boolean;967  readonly type: 'NoPermission';968}969970/** @name PalletEvmContractHelpersSponsoringModeT */971export interface PalletEvmContractHelpersSponsoringModeT extends Enum {972  readonly isDisabled: boolean;973  readonly isAllowlisted: boolean;974  readonly isGenerous: boolean;975  readonly type: 'Disabled' | 'Allowlisted' | 'Generous';976}977978/** @name PalletEvmError */979export interface PalletEvmError extends Enum {980  readonly isBalanceLow: boolean;981  readonly isFeeOverflow: boolean;982  readonly isPaymentOverflow: boolean;983  readonly isWithdrawFailed: boolean;984  readonly isGasPriceTooLow: boolean;985  readonly isInvalidNonce: boolean;986  readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';987}988989/** @name PalletEvmEvent */990export interface PalletEvmEvent extends Enum {991  readonly isLog: boolean;992  readonly asLog: EthereumLog;993  readonly isCreated: boolean;994  readonly asCreated: H160;995  readonly isCreatedFailed: boolean;996  readonly asCreatedFailed: H160;997  readonly isExecuted: boolean;998  readonly asExecuted: H160;999  readonly isExecutedFailed: boolean;1000  readonly asExecutedFailed: H160;1001  readonly isBalanceDeposit: boolean;1002  readonly asBalanceDeposit: ITuple<[AccountId32, H160, U256]>;1003  readonly isBalanceWithdraw: boolean;1004  readonly asBalanceWithdraw: ITuple<[AccountId32, H160, U256]>;1005  readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';1006}10071008/** @name PalletEvmMigrationCall */1009export interface PalletEvmMigrationCall extends Enum {1010  readonly isBegin: boolean;1011  readonly asBegin: {1012    readonly address: H160;1013  } & Struct;1014  readonly isSetData: boolean;1015  readonly asSetData: {1016    readonly address: H160;1017    readonly data: Vec<ITuple<[H256, H256]>>;1018  } & Struct;1019  readonly isFinish: boolean;1020  readonly asFinish: {1021    readonly address: H160;1022    readonly code: Bytes;1023  } & Struct;1024  readonly type: 'Begin' | 'SetData' | 'Finish';1025}10261027/** @name PalletEvmMigrationError */1028export interface PalletEvmMigrationError extends Enum {1029  readonly isAccountNotEmpty: boolean;1030  readonly isAccountIsNotMigrating: boolean;1031  readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';1032}10331034/** @name PalletFungibleError */1035export interface PalletFungibleError extends Enum {1036  readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;1037  readonly isFungibleItemsHaveNoId: boolean;1038  readonly isFungibleItemsDontHaveData: boolean;1039  readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData';1040}10411042/** @name PalletInflationCall */1043export interface PalletInflationCall extends Enum {1044  readonly isStartInflation: boolean;1045  readonly asStartInflation: {1046    readonly inflationStartRelayBlock: u32;1047  } & Struct;1048  readonly type: 'StartInflation';1049}10501051/** @name PalletNonfungibleError */1052export interface PalletNonfungibleError extends Enum {1053  readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;1054  readonly isNonfungibleItemsHaveNoAmount: boolean;1055  readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount';1056}10571058/** @name PalletNonfungibleItemData */1059export interface PalletNonfungibleItemData extends Struct {1060  readonly constData: Bytes;1061  readonly variableData: Bytes;1062  readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1063}10641065/** @name PalletRefungibleError */1066export interface PalletRefungibleError extends Enum {1067  readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;1068  readonly isWrongRefungiblePieces: boolean;1069  readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces';1070}10711072/** @name PalletRefungibleItemData */1073export interface PalletRefungibleItemData extends Struct {1074  readonly constData: Bytes;1075  readonly variableData: Bytes;1076}10771078/** @name PalletSudoCall */1079export interface PalletSudoCall extends Enum {1080  readonly isSudo: boolean;1081  readonly asSudo: {1082    readonly call: Call;1083  } & Struct;1084  readonly isSudoUncheckedWeight: boolean;1085  readonly asSudoUncheckedWeight: {1086    readonly call: Call;1087    readonly weight: u64;1088  } & Struct;1089  readonly isSetKey: boolean;1090  readonly asSetKey: {1091    readonly new_: MultiAddress;1092  } & Struct;1093  readonly isSudoAs: boolean;1094  readonly asSudoAs: {1095    readonly who: MultiAddress;1096    readonly call: Call;1097  } & Struct;1098  readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1099}11001101/** @name PalletSudoError */1102export interface PalletSudoError extends Enum {1103  readonly isRequireSudo: boolean;1104  readonly type: 'RequireSudo';1105}11061107/** @name PalletSudoEvent */1108export interface PalletSudoEvent extends Enum {1109  readonly isSudid: boolean;1110  readonly asSudid: {1111    readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1112  } & Struct;1113  readonly isKeyChanged: boolean;1114  readonly asKeyChanged: {1115    readonly oldSudoer: Option<AccountId32>;1116  } & Struct;1117  readonly isSudoAsDone: boolean;1118  readonly asSudoAsDone: {1119    readonly sudoResult: Result<Null, SpRuntimeDispatchError>;1120  } & Struct;1121  readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';1122}11231124/** @name PalletTemplateTransactionPaymentCall */1125export interface PalletTemplateTransactionPaymentCall extends Null {}11261127/** @name PalletTemplateTransactionPaymentChargeTransactionPayment */1128export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}11291130/** @name PalletTimestampCall */1131export interface PalletTimestampCall extends Enum {1132  readonly isSet: boolean;1133  readonly asSet: {1134    readonly now: Compact<u64>;1135  } & Struct;1136  readonly type: 'Set';1137}11381139/** @name PalletTransactionPaymentReleases */1140export interface PalletTransactionPaymentReleases extends Enum {1141  readonly isV1Ancient: boolean;1142  readonly isV2: boolean;1143  readonly type: 'V1Ancient' | 'V2';1144}11451146/** @name PalletTreasuryCall */1147export interface PalletTreasuryCall extends Enum {1148  readonly isProposeSpend: boolean;1149  readonly asProposeSpend: {1150    readonly value: Compact<u128>;1151    readonly beneficiary: MultiAddress;1152  } & Struct;1153  readonly isRejectProposal: boolean;1154  readonly asRejectProposal: {1155    readonly proposalId: Compact<u32>;1156  } & Struct;1157  readonly isApproveProposal: boolean;1158  readonly asApproveProposal: {1159    readonly proposalId: Compact<u32>;1160  } & Struct;1161  readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';1162}11631164/** @name PalletTreasuryError */1165export interface PalletTreasuryError extends Enum {1166  readonly isInsufficientProposersBalance: boolean;1167  readonly isInvalidIndex: boolean;1168  readonly isTooManyApprovals: boolean;1169  readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';1170}11711172/** @name PalletTreasuryEvent */1173export interface PalletTreasuryEvent extends Enum {1174  readonly isProposed: boolean;1175  readonly asProposed: {1176    readonly proposalIndex: u32;1177  } & Struct;1178  readonly isSpending: boolean;1179  readonly asSpending: {1180    readonly budgetRemaining: u128;1181  } & Struct;1182  readonly isAwarded: boolean;1183  readonly asAwarded: {1184    readonly proposalIndex: u32;1185    readonly award: u128;1186    readonly account: AccountId32;1187  } & Struct;1188  readonly isRejected: boolean;1189  readonly asRejected: {1190    readonly proposalIndex: u32;1191    readonly slashed: u128;1192  } & Struct;1193  readonly isBurnt: boolean;1194  readonly asBurnt: {1195    readonly burntFunds: u128;1196  } & Struct;1197  readonly isRollover: boolean;1198  readonly asRollover: {1199    readonly rolloverBalance: u128;1200  } & Struct;1201  readonly isDeposit: boolean;1202  readonly asDeposit: {1203    readonly value: u128;1204  } & Struct;1205  readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';1206}12071208/** @name PalletTreasuryProposal */1209export interface PalletTreasuryProposal extends Struct {1210  readonly proposer: AccountId32;1211  readonly value: u128;1212  readonly beneficiary: AccountId32;1213  readonly bond: u128;1214}12151216/** @name PalletUniqueCall */1217export interface PalletUniqueCall extends Enum {1218  readonly isCreateCollection: boolean;1219  readonly asCreateCollection: {1220    readonly collectionName: Vec<u16>;1221    readonly collectionDescription: Vec<u16>;1222    readonly tokenPrefix: Bytes;1223    readonly mode: UpDataStructsCollectionMode;1224  } & Struct;1225  readonly isCreateCollectionEx: boolean;1226  readonly asCreateCollectionEx: {1227    readonly data: UpDataStructsCreateCollectionData;1228  } & Struct;1229  readonly isDestroyCollection: boolean;1230  readonly asDestroyCollection: {1231    readonly collectionId: u32;1232  } & Struct;1233  readonly isAddToAllowList: boolean;1234  readonly asAddToAllowList: {1235    readonly collectionId: u32;1236    readonly address: PalletCommonAccountBasicCrossAccountIdRepr;1237  } & Struct;1238  readonly isRemoveFromAllowList: boolean;1239  readonly asRemoveFromAllowList: {1240    readonly collectionId: u32;1241    readonly address: PalletCommonAccountBasicCrossAccountIdRepr;1242  } & Struct;1243  readonly isSetPublicAccessMode: boolean;1244  readonly asSetPublicAccessMode: {1245    readonly collectionId: u32;1246    readonly mode: UpDataStructsAccessMode;1247  } & Struct;1248  readonly isSetMintPermission: boolean;1249  readonly asSetMintPermission: {1250    readonly collectionId: u32;1251    readonly mintPermission: bool;1252  } & Struct;1253  readonly isChangeCollectionOwner: boolean;1254  readonly asChangeCollectionOwner: {1255    readonly collectionId: u32;1256    readonly newOwner: AccountId32;1257  } & Struct;1258  readonly isAddCollectionAdmin: boolean;1259  readonly asAddCollectionAdmin: {1260    readonly collectionId: u32;1261    readonly newAdminId: PalletCommonAccountBasicCrossAccountIdRepr;1262  } & Struct;1263  readonly isRemoveCollectionAdmin: boolean;1264  readonly asRemoveCollectionAdmin: {1265    readonly collectionId: u32;1266    readonly accountId: PalletCommonAccountBasicCrossAccountIdRepr;1267  } & Struct;1268  readonly isSetCollectionSponsor: boolean;1269  readonly asSetCollectionSponsor: {1270    readonly collectionId: u32;1271    readonly newSponsor: AccountId32;1272  } & Struct;1273  readonly isConfirmSponsorship: boolean;1274  readonly asConfirmSponsorship: {1275    readonly collectionId: u32;1276  } & Struct;1277  readonly isRemoveCollectionSponsor: boolean;1278  readonly asRemoveCollectionSponsor: {1279    readonly collectionId: u32;1280  } & Struct;1281  readonly isCreateItem: boolean;1282  readonly asCreateItem: {1283    readonly collectionId: u32;1284    readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1285    readonly data: UpDataStructsCreateItemData;1286  } & Struct;1287  readonly isCreateMultipleItems: boolean;1288  readonly asCreateMultipleItems: {1289    readonly collectionId: u32;1290    readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;1291    readonly itemsData: Vec<UpDataStructsCreateItemData>;1292  } & Struct;1293  readonly isSetTransfersEnabledFlag: boolean;1294  readonly asSetTransfersEnabledFlag: {1295    readonly collectionId: u32;1296    readonly value: bool;1297  } & Struct;1298  readonly isBurnItem: boolean;1299  readonly asBurnItem: {1300    readonly collectionId: u32;1301    readonly itemId: u32;1302    readonly value: u128;1303  } & Struct;1304  readonly isBurnFrom: boolean;1305  readonly asBurnFrom: {1306    readonly collectionId: u32;1307    readonly from: PalletCommonAccountBasicCrossAccountIdRepr;1308    readonly itemId: u32;1309    readonly value: u128;1310  } & Struct;1311  readonly isTransfer: boolean;1312  readonly asTransfer: {1313    readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;1314    readonly collectionId: u32;1315    readonly itemId: u32;1316    readonly value: u128;1317  } & Struct;1318  readonly isApprove: boolean;1319  readonly asApprove: {1320    readonly spender: PalletCommonAccountBasicCrossAccountIdRepr;1321    readonly collectionId: u32;1322    readonly itemId: u32;1323    readonly amount: u128;1324  } & Struct;1325  readonly isTransferFrom: boolean;1326  readonly asTransferFrom: {1327    readonly from: PalletCommonAccountBasicCrossAccountIdRepr;1328    readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;1329    readonly collectionId: u32;1330    readonly itemId: u32;1331    readonly value: u128;1332  } & Struct;1333  readonly isSetVariableMetaData: boolean;1334  readonly asSetVariableMetaData: {1335    readonly collectionId: u32;1336    readonly itemId: u32;1337    readonly data: Bytes;1338  } & Struct;1339  readonly isSetMetaUpdatePermissionFlag: boolean;1340  readonly asSetMetaUpdatePermissionFlag: {1341    readonly collectionId: u32;1342    readonly value: UpDataStructsMetaUpdatePermission;1343  } & Struct;1344  readonly isSetSchemaVersion: boolean;1345  readonly asSetSchemaVersion: {1346    readonly collectionId: u32;1347    readonly version: UpDataStructsSchemaVersion;1348  } & Struct;1349  readonly isSetOffchainSchema: boolean;1350  readonly asSetOffchainSchema: {1351    readonly collectionId: u32;1352    readonly schema: Bytes;1353  } & Struct;1354  readonly isSetConstOnChainSchema: boolean;1355  readonly asSetConstOnChainSchema: {1356    readonly collectionId: u32;1357    readonly schema: Bytes;1358  } & Struct;1359  readonly isSetVariableOnChainSchema: boolean;1360  readonly asSetVariableOnChainSchema: {1361    readonly collectionId: u32;1362    readonly schema: Bytes;1363  } & Struct;1364  readonly isSetCollectionLimits: boolean;1365  readonly asSetCollectionLimits: {1366    readonly collectionId: u32;1367    readonly newLimit: UpDataStructsCollectionLimits;1368  } & Struct;1369  readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'SetPublicAccessMode' | 'SetMintPermission' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetVariableMetaData' | 'SetMetaUpdatePermissionFlag' | 'SetSchemaVersion' | 'SetOffchainSchema' | 'SetConstOnChainSchema' | 'SetVariableOnChainSchema' | 'SetCollectionLimits';1370}13711372/** @name PalletUniqueError */1373export interface PalletUniqueError extends Enum {1374  readonly isCollectionDecimalPointLimitExceeded: boolean;1375  readonly isConfirmUnsetSponsorFail: boolean;1376  readonly isEmptyArgument: boolean;1377  readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';1378}13791380/** @name PalletUniqueRawEvent */1381export interface PalletUniqueRawEvent extends Enum {1382  readonly isCollectionSponsorRemoved: boolean;1383  readonly asCollectionSponsorRemoved: u32;1384  readonly isCollectionAdminAdded: boolean;1385  readonly asCollectionAdminAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1386  readonly isCollectionOwnedChanged: boolean;1387  readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;1388  readonly isCollectionSponsorSet: boolean;1389  readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1390  readonly isConstOnChainSchemaSet: boolean;1391  readonly asConstOnChainSchemaSet: u32;1392  readonly isSponsorshipConfirmed: boolean;1393  readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1394  readonly isCollectionAdminRemoved: boolean;1395  readonly asCollectionAdminRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1396  readonly isAllowListAddressRemoved: boolean;1397  readonly asAllowListAddressRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1398  readonly isAllowListAddressAdded: boolean;1399  readonly asAllowListAddressAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;1400  readonly isCollectionLimitSet: boolean;1401  readonly asCollectionLimitSet: u32;1402  readonly isMintPermissionSet: boolean;1403  readonly asMintPermissionSet: u32;1404  readonly isOffchainSchemaSet: boolean;1405  readonly asOffchainSchemaSet: u32;1406  readonly isPublicAccessModeSet: boolean;1407  readonly asPublicAccessModeSet: ITuple<[u32, UpDataStructsAccessMode]>;1408  readonly isSchemaVersionSet: boolean;1409  readonly asSchemaVersionSet: u32;1410  readonly isVariableOnChainSchemaSet: boolean;1411  readonly asVariableOnChainSchemaSet: u32;1412  readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'ConstOnChainSchemaSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'MintPermissionSet' | 'OffchainSchemaSet' | 'PublicAccessModeSet' | 'SchemaVersionSet' | 'VariableOnChainSchemaSet';1413}14141415/** @name PalletXcmCall */1416export interface PalletXcmCall extends Enum {1417  readonly isSend: boolean;1418  readonly asSend: {1419    readonly dest: XcmVersionedMultiLocation;1420    readonly message: XcmVersionedXcm;1421  } & Struct;1422  readonly isTeleportAssets: boolean;1423  readonly asTeleportAssets: {1424    readonly dest: XcmVersionedMultiLocation;1425    readonly beneficiary: XcmVersionedMultiLocation;1426    readonly assets: XcmVersionedMultiAssets;1427    readonly feeAssetItem: u32;1428  } & Struct;1429  readonly isReserveTransferAssets: boolean;1430  readonly asReserveTransferAssets: {1431    readonly dest: XcmVersionedMultiLocation;1432    readonly beneficiary: XcmVersionedMultiLocation;1433    readonly assets: XcmVersionedMultiAssets;1434    readonly feeAssetItem: u32;1435  } & Struct;1436  readonly isExecute: boolean;1437  readonly asExecute: {1438    readonly message: XcmVersionedXcm;1439    readonly maxWeight: u64;1440  } & Struct;1441  readonly isForceXcmVersion: boolean;1442  readonly asForceXcmVersion: {1443    readonly location: XcmV1MultiLocation;1444    readonly xcmVersion: u32;1445  } & Struct;1446  readonly isForceDefaultXcmVersion: boolean;1447  readonly asForceDefaultXcmVersion: {1448    readonly maybeXcmVersion: Option<u32>;1449  } & Struct;1450  readonly isForceSubscribeVersionNotify: boolean;1451  readonly asForceSubscribeVersionNotify: {1452    readonly location: XcmVersionedMultiLocation;1453  } & Struct;1454  readonly isForceUnsubscribeVersionNotify: boolean;1455  readonly asForceUnsubscribeVersionNotify: {1456    readonly location: XcmVersionedMultiLocation;1457  } & Struct;1458  readonly isLimitedReserveTransferAssets: boolean;1459  readonly asLimitedReserveTransferAssets: {1460    readonly dest: XcmVersionedMultiLocation;1461    readonly beneficiary: XcmVersionedMultiLocation;1462    readonly assets: XcmVersionedMultiAssets;1463    readonly feeAssetItem: u32;1464    readonly weightLimit: XcmV2WeightLimit;1465  } & Struct;1466  readonly isLimitedTeleportAssets: boolean;1467  readonly asLimitedTeleportAssets: {1468    readonly dest: XcmVersionedMultiLocation;1469    readonly beneficiary: XcmVersionedMultiLocation;1470    readonly assets: XcmVersionedMultiAssets;1471    readonly feeAssetItem: u32;1472    readonly weightLimit: XcmV2WeightLimit;1473  } & Struct;1474  readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';1475}14761477/** @name PalletXcmError */1478export interface PalletXcmError extends Enum {1479  readonly isUnreachable: boolean;1480  readonly isSendFailure: boolean;1481  readonly isFiltered: boolean;1482  readonly isUnweighableMessage: boolean;1483  readonly isDestinationNotInvertible: boolean;1484  readonly isEmpty: boolean;1485  readonly isCannotReanchor: boolean;1486  readonly isTooManyAssets: boolean;1487  readonly isInvalidOrigin: boolean;1488  readonly isBadVersion: boolean;1489  readonly isBadLocation: boolean;1490  readonly isNoSubscription: boolean;1491  readonly isAlreadySubscribed: boolean;1492  readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';1493}14941495/** @name PalletXcmEvent */1496export interface PalletXcmEvent extends Enum {1497  readonly isAttempted: boolean;1498  readonly asAttempted: XcmV2TraitsOutcome;1499  readonly isSent: boolean;1500  readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;1501  readonly isUnexpectedResponse: boolean;1502  readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;1503  readonly isResponseReady: boolean;1504  readonly asResponseReady: ITuple<[u64, XcmV2Response]>;1505  readonly isNotified: boolean;1506  readonly asNotified: ITuple<[u64, u8, u8]>;1507  readonly isNotifyOverweight: boolean;1508  readonly asNotifyOverweight: ITuple<[u64, u8, u8, u64, u64]>;1509  readonly isNotifyDispatchError: boolean;1510  readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;1511  readonly isNotifyDecodeFailed: boolean;1512  readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;1513  readonly isInvalidResponder: boolean;1514  readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;1515  readonly isInvalidResponderVersion: boolean;1516  readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;1517  readonly isResponseTaken: boolean;1518  readonly asResponseTaken: u64;1519  readonly isAssetsTrapped: boolean;1520  readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;1521  readonly isVersionChangeNotified: boolean;1522  readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;1523  readonly isSupportedVersionChanged: boolean;1524  readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;1525  readonly isNotifyTargetSendFail: boolean;1526  readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;1527  readonly isNotifyTargetMigrationFail: boolean;1528  readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;1529  readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';1530}15311532/** @name PolkadotCorePrimitivesInboundDownwardMessage */1533export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1534  readonly sentAt: u32;1535  readonly msg: Bytes;1536}15371538/** @name PolkadotCorePrimitivesInboundHrmpMessage */1539export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1540  readonly sentAt: u32;1541  readonly data: Bytes;1542}15431544/** @name PolkadotCorePrimitivesOutboundHrmpMessage */1545export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1546  readonly recipient: u32;1547  readonly data: Bytes;1548}15491550/** @name PolkadotParachainPrimitivesXcmpMessageFormat */1551export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {1552  readonly isConcatenatedVersionedXcm: boolean;1553  readonly isConcatenatedEncodedBlob: boolean;1554  readonly isSignals: boolean;1555  readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';1556}15571558/** @name PolkadotPrimitivesV1AbridgedHostConfiguration */1559export interface PolkadotPrimitivesV1AbridgedHostConfiguration extends Struct {1560  readonly maxCodeSize: u32;1561  readonly maxHeadDataSize: u32;1562  readonly maxUpwardQueueCount: u32;1563  readonly maxUpwardQueueSize: u32;1564  readonly maxUpwardMessageSize: u32;1565  readonly maxUpwardMessageNumPerCandidate: u32;1566  readonly hrmpMaxMessageNumPerCandidate: u32;1567  readonly validationUpgradeCooldown: u32;1568  readonly validationUpgradeDelay: u32;1569}15701571/** @name PolkadotPrimitivesV1AbridgedHrmpChannel */1572export interface PolkadotPrimitivesV1AbridgedHrmpChannel extends Struct {1573  readonly maxCapacity: u32;1574  readonly maxTotalSize: u32;1575  readonly maxMessageSize: u32;1576  readonly msgCount: u32;1577  readonly totalSize: u32;1578  readonly mqcHead: Option<H256>;1579}15801581/** @name PolkadotPrimitivesV1PersistedValidationData */1582export interface PolkadotPrimitivesV1PersistedValidationData extends Struct {1583  readonly parentHead: Bytes;1584  readonly relayParentNumber: u32;1585  readonly relayParentStorageRoot: H256;1586  readonly maxPovSize: u32;1587}15881589/** @name PolkadotPrimitivesV1UpgradeRestriction */1590export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {1591  readonly isPresent: boolean;1592  readonly type: 'Present';1593}15941595/** @name SpCoreEcdsaSignature */1596export interface SpCoreEcdsaSignature extends U8aFixed {}15971598/** @name SpCoreEd25519Signature */1599export interface SpCoreEd25519Signature extends U8aFixed {}16001601/** @name SpCoreSr25519Signature */1602export interface SpCoreSr25519Signature extends U8aFixed {}16031604/** @name SpRuntimeArithmeticError */1605export interface SpRuntimeArithmeticError extends Enum {1606  readonly isUnderflow: boolean;1607  readonly isOverflow: boolean;1608  readonly isDivisionByZero: boolean;1609  readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';1610}16111612/** @name SpRuntimeDigest */1613export interface SpRuntimeDigest extends Struct {1614  readonly logs: Vec<SpRuntimeDigestDigestItem>;1615}16161617/** @name SpRuntimeDigestDigestItem */1618export interface SpRuntimeDigestDigestItem extends Enum {1619  readonly isOther: boolean;1620  readonly asOther: Bytes;1621  readonly isConsensus: boolean;1622  readonly asConsensus: ITuple<[U8aFixed, Bytes]>;1623  readonly isSeal: boolean;1624  readonly asSeal: ITuple<[U8aFixed, Bytes]>;1625  readonly isPreRuntime: boolean;1626  readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;1627  readonly isRuntimeEnvironmentUpdated: boolean;1628  readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';1629}16301631/** @name SpRuntimeDispatchError */1632export interface SpRuntimeDispatchError extends Enum {1633  readonly isOther: boolean;1634  readonly isCannotLookup: boolean;1635  readonly isBadOrigin: boolean;1636  readonly isModule: boolean;1637  readonly asModule: {1638    readonly index: u8;1639    readonly error: u8;1640  } & Struct;1641  readonly isConsumerRemaining: boolean;1642  readonly isNoProviders: boolean;1643  readonly isTooManyConsumers: boolean;1644  readonly isToken: boolean;1645  readonly asToken: SpRuntimeTokenError;1646  readonly isArithmetic: boolean;1647  readonly asArithmetic: SpRuntimeArithmeticError;1648  readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic';1649}16501651/** @name SpRuntimeMultiSignature */1652export interface SpRuntimeMultiSignature extends Enum {1653  readonly isEd25519: boolean;1654  readonly asEd25519: SpCoreEd25519Signature;1655  readonly isSr25519: boolean;1656  readonly asSr25519: SpCoreSr25519Signature;1657  readonly isEcdsa: boolean;1658  readonly asEcdsa: SpCoreEcdsaSignature;1659  readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';1660}16611662/** @name SpRuntimeTokenError */1663export interface SpRuntimeTokenError extends Enum {1664  readonly isNoFunds: boolean;1665  readonly isWouldDie: boolean;1666  readonly isBelowMinimum: boolean;1667  readonly isCannotCreate: boolean;1668  readonly isUnknownAsset: boolean;1669  readonly isFrozen: boolean;1670  readonly isUnsupported: boolean;1671  readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';1672}16731674/** @name SpTrieStorageProof */1675export interface SpTrieStorageProof extends Struct {1676  readonly trieNodes: Vec<Bytes>;1677}16781679/** @name SpVersionRuntimeVersion */1680export interface SpVersionRuntimeVersion extends Struct {1681  readonly specName: Text;1682  readonly implName: Text;1683  readonly authoringVersion: u32;1684  readonly specVersion: u32;1685  readonly implVersion: u32;1686  readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1687  readonly transactionVersion: u32;1688  readonly stateVersion: u8;1689}16901691/** @name UniqueRuntimeRuntime */1692export interface UniqueRuntimeRuntime extends Null {}16931694/** @name UpDataStructsAccessMode */1695export interface UpDataStructsAccessMode extends Enum {1696  readonly isNormal: boolean;1697  readonly isAllowList: boolean;1698  readonly type: 'Normal' | 'AllowList';1699}17001701/** @name UpDataStructsCollection */1702export interface UpDataStructsCollection extends Struct {1703  readonly owner: AccountId32;1704  readonly mode: UpDataStructsCollectionMode;1705  readonly access: UpDataStructsAccessMode;1706  readonly name: Vec<u16>;1707  readonly description: Vec<u16>;1708  readonly tokenPrefix: Bytes;1709  readonly mintMode: bool;1710  readonly offchainSchema: Bytes;1711  readonly schemaVersion: UpDataStructsSchemaVersion;1712  readonly sponsorship: UpDataStructsSponsorshipState;1713  readonly limits: UpDataStructsCollectionLimits;1714  readonly variableOnChainSchema: Bytes;1715  readonly constOnChainSchema: Bytes;1716  readonly metaUpdatePermission: UpDataStructsMetaUpdatePermission;1717}17181719/** @name UpDataStructsCollectionLimits */1720export interface UpDataStructsCollectionLimits extends Struct {1721  readonly accountTokenOwnershipLimit: Option<u32>;1722  readonly sponsoredDataSize: Option<u32>;1723  readonly sponsoredDataRateLimit: Option<Option<u32>>;1724  readonly tokenLimit: Option<u32>;1725  readonly sponsorTransferTimeout: Option<u32>;1726  readonly sponsorApproveTimeout: Option<u32>;1727  readonly ownerCanTransfer: Option<bool>;1728  readonly ownerCanDestroy: Option<bool>;1729  readonly transfersEnabled: Option<bool>;1730}17311732/** @name UpDataStructsCollectionMode */1733export interface UpDataStructsCollectionMode extends Enum {1734  readonly isNft: boolean;1735  readonly isFungible: boolean;1736  readonly asFungible: u8;1737  readonly isReFungible: boolean;1738  readonly type: 'Nft' | 'Fungible' | 'ReFungible';1739}17401741/** @name UpDataStructsCollectionStats */1742export interface UpDataStructsCollectionStats extends Struct {1743  readonly created: u32;1744  readonly destroyed: u32;1745  readonly alive: u32;1746}17471748/** @name UpDataStructsCreateCollectionData */1749export interface UpDataStructsCreateCollectionData extends Struct {1750  readonly mode: UpDataStructsCollectionMode;1751  readonly access: Option<UpDataStructsAccessMode>;1752  readonly name: Vec<u16>;1753  readonly description: Vec<u16>;1754  readonly tokenPrefix: Bytes;1755  readonly offchainSchema: Bytes;1756  readonly schemaVersion: Option<UpDataStructsSchemaVersion>;1757  readonly pendingSponsor: Option<AccountId32>;1758  readonly limits: Option<UpDataStructsCollectionLimits>;1759  readonly variableOnChainSchema: Bytes;1760  readonly constOnChainSchema: Bytes;1761  readonly metaUpdatePermission: Option<UpDataStructsMetaUpdatePermission>;1762}17631764/** @name UpDataStructsCreateFungibleData */1765export interface UpDataStructsCreateFungibleData extends Struct {1766  readonly value: u128;1767}17681769/** @name UpDataStructsCreateItemData */1770export interface UpDataStructsCreateItemData extends Enum {1771  readonly isNft: boolean;1772  readonly asNft: UpDataStructsCreateNftData;1773  readonly isFungible: boolean;1774  readonly asFungible: UpDataStructsCreateFungibleData;1775  readonly isReFungible: boolean;1776  readonly asReFungible: UpDataStructsCreateReFungibleData;1777  readonly type: 'Nft' | 'Fungible' | 'ReFungible';1778}17791780/** @name UpDataStructsCreateNftData */1781export interface UpDataStructsCreateNftData extends Struct {1782  readonly constData: Bytes;1783  readonly variableData: Bytes;1784}17851786/** @name UpDataStructsCreateReFungibleData */1787export interface UpDataStructsCreateReFungibleData extends Struct {1788  readonly constData: Bytes;1789  readonly variableData: Bytes;1790  readonly pieces: u128;1791}17921793/** @name UpDataStructsMetaUpdatePermission */1794export interface UpDataStructsMetaUpdatePermission extends Enum {1795  readonly isItemOwner: boolean;1796  readonly isAdmin: boolean;1797  readonly isNone: boolean;1798  readonly type: 'ItemOwner' | 'Admin' | 'None';1799}18001801/** @name UpDataStructsSchemaVersion */1802export interface UpDataStructsSchemaVersion extends Enum {1803  readonly isImageURL: boolean;1804  readonly isUnique: boolean;1805  readonly type: 'ImageURL' | 'Unique';1806}18071808/** @name UpDataStructsSponsorshipState */1809export interface UpDataStructsSponsorshipState extends Enum {1810  readonly isDisabled: boolean;1811  readonly isUnconfirmed: boolean;1812  readonly asUnconfirmed: AccountId32;1813  readonly isConfirmed: boolean;1814  readonly asConfirmed: AccountId32;1815  readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';1816}18171818/** @name XcmDoubleEncoded */1819export interface XcmDoubleEncoded extends Struct {1820  readonly encoded: Bytes;1821}18221823/** @name XcmV0Junction */1824export interface XcmV0Junction extends Enum {1825  readonly isParent: boolean;1826  readonly isParachain: boolean;1827  readonly asParachain: Compact<u32>;1828  readonly isAccountId32: boolean;1829  readonly asAccountId32: {1830    readonly network: XcmV0JunctionNetworkId;1831    readonly id: U8aFixed;1832  } & Struct;1833  readonly isAccountIndex64: boolean;1834  readonly asAccountIndex64: {1835    readonly network: XcmV0JunctionNetworkId;1836    readonly index: Compact<u64>;1837  } & Struct;1838  readonly isAccountKey20: boolean;1839  readonly asAccountKey20: {1840    readonly network: XcmV0JunctionNetworkId;1841    readonly key: U8aFixed;1842  } & Struct;1843  readonly isPalletInstance: boolean;1844  readonly asPalletInstance: u8;1845  readonly isGeneralIndex: boolean;1846  readonly asGeneralIndex: Compact<u128>;1847  readonly isGeneralKey: boolean;1848  readonly asGeneralKey: Bytes;1849  readonly isOnlyChild: boolean;1850  readonly isPlurality: boolean;1851  readonly asPlurality: {1852    readonly id: XcmV0JunctionBodyId;1853    readonly part: XcmV0JunctionBodyPart;1854  } & Struct;1855  readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1856}18571858/** @name XcmV0JunctionBodyId */1859export interface XcmV0JunctionBodyId extends Enum {1860  readonly isUnit: boolean;1861  readonly isNamed: boolean;1862  readonly asNamed: Bytes;1863  readonly isIndex: boolean;1864  readonly asIndex: Compact<u32>;1865  readonly isExecutive: boolean;1866  readonly isTechnical: boolean;1867  readonly isLegislative: boolean;1868  readonly isJudicial: boolean;1869  readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';1870}18711872/** @name XcmV0JunctionBodyPart */1873export interface XcmV0JunctionBodyPart extends Enum {1874  readonly isVoice: boolean;1875  readonly isMembers: boolean;1876  readonly asMembers: {1877    readonly count: Compact<u32>;1878  } & Struct;1879  readonly isFraction: boolean;1880  readonly asFraction: {1881    readonly nom: Compact<u32>;1882    readonly denom: Compact<u32>;1883  } & Struct;1884  readonly isAtLeastProportion: boolean;1885  readonly asAtLeastProportion: {1886    readonly nom: Compact<u32>;1887    readonly denom: Compact<u32>;1888  } & Struct;1889  readonly isMoreThanProportion: boolean;1890  readonly asMoreThanProportion: {1891    readonly nom: Compact<u32>;1892    readonly denom: Compact<u32>;1893  } & Struct;1894  readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';1895}18961897/** @name XcmV0JunctionNetworkId */1898export interface XcmV0JunctionNetworkId extends Enum {1899  readonly isAny: boolean;1900  readonly isNamed: boolean;1901  readonly asNamed: Bytes;1902  readonly isPolkadot: boolean;1903  readonly isKusama: boolean;1904  readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';1905}19061907/** @name XcmV0MultiAsset */1908export interface XcmV0MultiAsset extends Enum {1909  readonly isNone: boolean;1910  readonly isAll: boolean;1911  readonly isAllFungible: boolean;1912  readonly isAllNonFungible: boolean;1913  readonly isAllAbstractFungible: boolean;1914  readonly asAllAbstractFungible: {1915    readonly id: Bytes;1916  } & Struct;1917  readonly isAllAbstractNonFungible: boolean;1918  readonly asAllAbstractNonFungible: {1919    readonly class: Bytes;1920  } & Struct;1921  readonly isAllConcreteFungible: boolean;1922  readonly asAllConcreteFungible: {1923    readonly id: XcmV0MultiLocation;1924  } & Struct;1925  readonly isAllConcreteNonFungible: boolean;1926  readonly asAllConcreteNonFungible: {1927    readonly class: XcmV0MultiLocation;1928  } & Struct;1929  readonly isAbstractFungible: boolean;1930  readonly asAbstractFungible: {1931    readonly id: Bytes;1932    readonly amount: Compact<u128>;1933  } & Struct;1934  readonly isAbstractNonFungible: boolean;1935  readonly asAbstractNonFungible: {1936    readonly class: Bytes;1937    readonly instance: XcmV1MultiassetAssetInstance;1938  } & Struct;1939  readonly isConcreteFungible: boolean;1940  readonly asConcreteFungible: {1941    readonly id: XcmV0MultiLocation;1942    readonly amount: Compact<u128>;1943  } & Struct;1944  readonly isConcreteNonFungible: boolean;1945  readonly asConcreteNonFungible: {1946    readonly class: XcmV0MultiLocation;1947    readonly instance: XcmV1MultiassetAssetInstance;1948  } & Struct;1949  readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';1950}19511952/** @name XcmV0MultiLocation */1953export interface XcmV0MultiLocation extends Enum {1954  readonly isNull: boolean;1955  readonly isX1: boolean;1956  readonly asX1: XcmV0Junction;1957  readonly isX2: boolean;1958  readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;1959  readonly isX3: boolean;1960  readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1961  readonly isX4: boolean;1962  readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1963  readonly isX5: boolean;1964  readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1965  readonly isX6: boolean;1966  readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1967  readonly isX7: boolean;1968  readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1969  readonly isX8: boolean;1970  readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1971  readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1972}19731974/** @name XcmV0Order */1975export interface XcmV0Order extends Enum {1976  readonly isNull: boolean;1977  readonly isDepositAsset: boolean;1978  readonly asDepositAsset: {1979    readonly assets: Vec<XcmV0MultiAsset>;1980    readonly dest: XcmV0MultiLocation;1981  } & Struct;1982  readonly isDepositReserveAsset: boolean;1983  readonly asDepositReserveAsset: {1984    readonly assets: Vec<XcmV0MultiAsset>;1985    readonly dest: XcmV0MultiLocation;1986    readonly effects: Vec<XcmV0Order>;1987  } & Struct;1988  readonly isExchangeAsset: boolean;1989  readonly asExchangeAsset: {1990    readonly give: Vec<XcmV0MultiAsset>;1991    readonly receive: Vec<XcmV0MultiAsset>;1992  } & Struct;1993  readonly isInitiateReserveWithdraw: boolean;1994  readonly asInitiateReserveWithdraw: {1995    readonly assets: Vec<XcmV0MultiAsset>;1996    readonly reserve: XcmV0MultiLocation;1997    readonly effects: Vec<XcmV0Order>;1998  } & Struct;1999  readonly isInitiateTeleport: boolean;2000  readonly asInitiateTeleport: {2001    readonly assets: Vec<XcmV0MultiAsset>;2002    readonly dest: XcmV0MultiLocation;2003    readonly effects: Vec<XcmV0Order>;2004  } & Struct;2005  readonly isQueryHolding: boolean;2006  readonly asQueryHolding: {2007    readonly queryId: Compact<u64>;2008    readonly dest: XcmV0MultiLocation;2009    readonly assets: Vec<XcmV0MultiAsset>;2010  } & Struct;2011  readonly isBuyExecution: boolean;2012  readonly asBuyExecution: {2013    readonly fees: XcmV0MultiAsset;2014    readonly weight: u64;2015    readonly debt: u64;2016    readonly haltOnError: bool;2017    readonly xcm: Vec<XcmV0Xcm>;2018  } & Struct;2019  readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2020}20212022/** @name XcmV0OriginKind */2023export interface XcmV0OriginKind extends Enum {2024  readonly isNative: boolean;2025  readonly isSovereignAccount: boolean;2026  readonly isSuperuser: boolean;2027  readonly isXcm: boolean;2028  readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';2029}20302031/** @name XcmV0Response */2032export interface XcmV0Response extends Enum {2033  readonly isAssets: boolean;2034  readonly asAssets: Vec<XcmV0MultiAsset>;2035  readonly type: 'Assets';2036}20372038/** @name XcmV0Xcm */2039export interface XcmV0Xcm extends Enum {2040  readonly isWithdrawAsset: boolean;2041  readonly asWithdrawAsset: {2042    readonly assets: Vec<XcmV0MultiAsset>;2043    readonly effects: Vec<XcmV0Order>;2044  } & Struct;2045  readonly isReserveAssetDeposit: boolean;2046  readonly asReserveAssetDeposit: {2047    readonly assets: Vec<XcmV0MultiAsset>;2048    readonly effects: Vec<XcmV0Order>;2049  } & Struct;2050  readonly isTeleportAsset: boolean;2051  readonly asTeleportAsset: {2052    readonly assets: Vec<XcmV0MultiAsset>;2053    readonly effects: Vec<XcmV0Order>;2054  } & Struct;2055  readonly isQueryResponse: boolean;2056  readonly asQueryResponse: {2057    readonly queryId: Compact<u64>;2058    readonly response: XcmV0Response;2059  } & Struct;2060  readonly isTransferAsset: boolean;2061  readonly asTransferAsset: {2062    readonly assets: Vec<XcmV0MultiAsset>;2063    readonly dest: XcmV0MultiLocation;2064  } & Struct;2065  readonly isTransferReserveAsset: boolean;2066  readonly asTransferReserveAsset: {2067    readonly assets: Vec<XcmV0MultiAsset>;2068    readonly dest: XcmV0MultiLocation;2069    readonly effects: Vec<XcmV0Order>;2070  } & Struct;2071  readonly isTransact: boolean;2072  readonly asTransact: {2073    readonly originType: XcmV0OriginKind;2074    readonly requireWeightAtMost: u64;2075    readonly call: XcmDoubleEncoded;2076  } & Struct;2077  readonly isHrmpNewChannelOpenRequest: boolean;2078  readonly asHrmpNewChannelOpenRequest: {2079    readonly sender: Compact<u32>;2080    readonly maxMessageSize: Compact<u32>;2081    readonly maxCapacity: Compact<u32>;2082  } & Struct;2083  readonly isHrmpChannelAccepted: boolean;2084  readonly asHrmpChannelAccepted: {2085    readonly recipient: Compact<u32>;2086  } & Struct;2087  readonly isHrmpChannelClosing: boolean;2088  readonly asHrmpChannelClosing: {2089    readonly initiator: Compact<u32>;2090    readonly sender: Compact<u32>;2091    readonly recipient: Compact<u32>;2092  } & Struct;2093  readonly isRelayedFrom: boolean;2094  readonly asRelayedFrom: {2095    readonly who: XcmV0MultiLocation;2096    readonly message: XcmV0Xcm;2097  } & Struct;2098  readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2099}21002101/** @name XcmV1Junction */2102export interface XcmV1Junction extends Enum {2103  readonly isParachain: boolean;2104  readonly asParachain: Compact<u32>;2105  readonly isAccountId32: boolean;2106  readonly asAccountId32: {2107    readonly network: XcmV0JunctionNetworkId;2108    readonly id: U8aFixed;2109  } & Struct;2110  readonly isAccountIndex64: boolean;2111  readonly asAccountIndex64: {2112    readonly network: XcmV0JunctionNetworkId;2113    readonly index: Compact<u64>;2114  } & Struct;2115  readonly isAccountKey20: boolean;2116  readonly asAccountKey20: {2117    readonly network: XcmV0JunctionNetworkId;2118    readonly key: U8aFixed;2119  } & Struct;2120  readonly isPalletInstance: boolean;2121  readonly asPalletInstance: u8;2122  readonly isGeneralIndex: boolean;2123  readonly asGeneralIndex: Compact<u128>;2124  readonly isGeneralKey: boolean;2125  readonly asGeneralKey: Bytes;2126  readonly isOnlyChild: boolean;2127  readonly isPlurality: boolean;2128  readonly asPlurality: {2129    readonly id: XcmV0JunctionBodyId;2130    readonly part: XcmV0JunctionBodyPart;2131  } & Struct;2132  readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';2133}21342135/** @name XcmV1MultiAsset */2136export interface XcmV1MultiAsset extends Struct {2137  readonly id: XcmV1MultiassetAssetId;2138  readonly fun: XcmV1MultiassetFungibility;2139}21402141/** @name XcmV1MultiassetAssetId */2142export interface XcmV1MultiassetAssetId extends Enum {2143  readonly isConcrete: boolean;2144  readonly asConcrete: XcmV1MultiLocation;2145  readonly isAbstract: boolean;2146  readonly asAbstract: Bytes;2147  readonly type: 'Concrete' | 'Abstract';2148}21492150/** @name XcmV1MultiassetAssetInstance */2151export interface XcmV1MultiassetAssetInstance extends Enum {2152  readonly isUndefined: boolean;2153  readonly isIndex: boolean;2154  readonly asIndex: Compact<u128>;2155  readonly isArray4: boolean;2156  readonly asArray4: U8aFixed;2157  readonly isArray8: boolean;2158  readonly asArray8: U8aFixed;2159  readonly isArray16: boolean;2160  readonly asArray16: U8aFixed;2161  readonly isArray32: boolean;2162  readonly asArray32: U8aFixed;2163  readonly isBlob: boolean;2164  readonly asBlob: Bytes;2165  readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';2166}21672168/** @name XcmV1MultiassetFungibility */2169export interface XcmV1MultiassetFungibility extends Enum {2170  readonly isFungible: boolean;2171  readonly asFungible: Compact<u128>;2172  readonly isNonFungible: boolean;2173  readonly asNonFungible: XcmV1MultiassetAssetInstance;2174  readonly type: 'Fungible' | 'NonFungible';2175}21762177/** @name XcmV1MultiassetMultiAssetFilter */2178export interface XcmV1MultiassetMultiAssetFilter extends Enum {2179  readonly isDefinite: boolean;2180  readonly asDefinite: XcmV1MultiassetMultiAssets;2181  readonly isWild: boolean;2182  readonly asWild: XcmV1MultiassetWildMultiAsset;2183  readonly type: 'Definite' | 'Wild';2184}21852186/** @name XcmV1MultiassetMultiAssets */2187export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}21882189/** @name XcmV1MultiassetWildFungibility */2190export interface XcmV1MultiassetWildFungibility extends Enum {2191  readonly isFungible: boolean;2192  readonly isNonFungible: boolean;2193  readonly type: 'Fungible' | 'NonFungible';2194}21952196/** @name XcmV1MultiassetWildMultiAsset */2197export interface XcmV1MultiassetWildMultiAsset extends Enum {2198  readonly isAll: boolean;2199  readonly isAllOf: boolean;2200  readonly asAllOf: {2201    readonly id: XcmV1MultiassetAssetId;2202    readonly fun: XcmV1MultiassetWildFungibility;2203  } & Struct;2204  readonly type: 'All' | 'AllOf';2205}22062207/** @name XcmV1MultiLocation */2208export interface XcmV1MultiLocation extends Struct {2209  readonly parents: u8;2210  readonly interior: XcmV1MultilocationJunctions;2211}22122213/** @name XcmV1MultilocationJunctions */2214export interface XcmV1MultilocationJunctions extends Enum {2215  readonly isHere: boolean;2216  readonly isX1: boolean;2217  readonly asX1: XcmV1Junction;2218  readonly isX2: boolean;2219  readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;2220  readonly isX3: boolean;2221  readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2222  readonly isX4: boolean;2223  readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2224  readonly isX5: boolean;2225  readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2226  readonly isX6: boolean;2227  readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2228  readonly isX7: boolean;2229  readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2230  readonly isX8: boolean;2231  readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;2232  readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';2233}22342235/** @name XcmV1Order */2236export interface XcmV1Order extends Enum {2237  readonly isNoop: boolean;2238  readonly isDepositAsset: boolean;2239  readonly asDepositAsset: {2240    readonly assets: XcmV1MultiassetMultiAssetFilter;2241    readonly maxAssets: u32;2242    readonly beneficiary: XcmV1MultiLocation;2243  } & Struct;2244  readonly isDepositReserveAsset: boolean;2245  readonly asDepositReserveAsset: {2246    readonly assets: XcmV1MultiassetMultiAssetFilter;2247    readonly maxAssets: u32;2248    readonly dest: XcmV1MultiLocation;2249    readonly effects: Vec<XcmV1Order>;2250  } & Struct;2251  readonly isExchangeAsset: boolean;2252  readonly asExchangeAsset: {2253    readonly give: XcmV1MultiassetMultiAssetFilter;2254    readonly receive: XcmV1MultiassetMultiAssets;2255  } & Struct;2256  readonly isInitiateReserveWithdraw: boolean;2257  readonly asInitiateReserveWithdraw: {2258    readonly assets: XcmV1MultiassetMultiAssetFilter;2259    readonly reserve: XcmV1MultiLocation;2260    readonly effects: Vec<XcmV1Order>;2261  } & Struct;2262  readonly isInitiateTeleport: boolean;2263  readonly asInitiateTeleport: {2264    readonly assets: XcmV1MultiassetMultiAssetFilter;2265    readonly dest: XcmV1MultiLocation;2266    readonly effects: Vec<XcmV1Order>;2267  } & Struct;2268  readonly isQueryHolding: boolean;2269  readonly asQueryHolding: {2270    readonly queryId: Compact<u64>;2271    readonly dest: XcmV1MultiLocation;2272    readonly assets: XcmV1MultiassetMultiAssetFilter;2273  } & Struct;2274  readonly isBuyExecution: boolean;2275  readonly asBuyExecution: {2276    readonly fees: XcmV1MultiAsset;2277    readonly weight: u64;2278    readonly debt: u64;2279    readonly haltOnError: bool;2280    readonly instructions: Vec<XcmV1Xcm>;2281  } & Struct;2282  readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2283}22842285/** @name XcmV1Response */2286export interface XcmV1Response extends Enum {2287  readonly isAssets: boolean;2288  readonly asAssets: XcmV1MultiassetMultiAssets;2289  readonly isVersion: boolean;2290  readonly asVersion: u32;2291  readonly type: 'Assets' | 'Version';2292}22932294/** @name XcmV1Xcm */2295export interface XcmV1Xcm extends Enum {2296  readonly isWithdrawAsset: boolean;2297  readonly asWithdrawAsset: {2298    readonly assets: XcmV1MultiassetMultiAssets;2299    readonly effects: Vec<XcmV1Order>;2300  } & Struct;2301  readonly isReserveAssetDeposited: boolean;2302  readonly asReserveAssetDeposited: {2303    readonly assets: XcmV1MultiassetMultiAssets;2304    readonly effects: Vec<XcmV1Order>;2305  } & Struct;2306  readonly isReceiveTeleportedAsset: boolean;2307  readonly asReceiveTeleportedAsset: {2308    readonly assets: XcmV1MultiassetMultiAssets;2309    readonly effects: Vec<XcmV1Order>;2310  } & Struct;2311  readonly isQueryResponse: boolean;2312  readonly asQueryResponse: {2313    readonly queryId: Compact<u64>;2314    readonly response: XcmV1Response;2315  } & Struct;2316  readonly isTransferAsset: boolean;2317  readonly asTransferAsset: {2318    readonly assets: XcmV1MultiassetMultiAssets;2319    readonly beneficiary: XcmV1MultiLocation;2320  } & Struct;2321  readonly isTransferReserveAsset: boolean;2322  readonly asTransferReserveAsset: {2323    readonly assets: XcmV1MultiassetMultiAssets;2324    readonly dest: XcmV1MultiLocation;2325    readonly effects: Vec<XcmV1Order>;2326  } & Struct;2327  readonly isTransact: boolean;2328  readonly asTransact: {2329    readonly originType: XcmV0OriginKind;2330    readonly requireWeightAtMost: u64;2331    readonly call: XcmDoubleEncoded;2332  } & Struct;2333  readonly isHrmpNewChannelOpenRequest: boolean;2334  readonly asHrmpNewChannelOpenRequest: {2335    readonly sender: Compact<u32>;2336    readonly maxMessageSize: Compact<u32>;2337    readonly maxCapacity: Compact<u32>;2338  } & Struct;2339  readonly isHrmpChannelAccepted: boolean;2340  readonly asHrmpChannelAccepted: {2341    readonly recipient: Compact<u32>;2342  } & Struct;2343  readonly isHrmpChannelClosing: boolean;2344  readonly asHrmpChannelClosing: {2345    readonly initiator: Compact<u32>;2346    readonly sender: Compact<u32>;2347    readonly recipient: Compact<u32>;2348  } & Struct;2349  readonly isRelayedFrom: boolean;2350  readonly asRelayedFrom: {2351    readonly who: XcmV1MultilocationJunctions;2352    readonly message: XcmV1Xcm;2353  } & Struct;2354  readonly isSubscribeVersion: boolean;2355  readonly asSubscribeVersion: {2356    readonly queryId: Compact<u64>;2357    readonly maxResponseWeight: Compact<u64>;2358  } & Struct;2359  readonly isUnsubscribeVersion: boolean;2360  readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2361}23622363/** @name XcmV2Instruction */2364export interface XcmV2Instruction extends Enum {2365  readonly isWithdrawAsset: boolean;2366  readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;2367  readonly isReserveAssetDeposited: boolean;2368  readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;2369  readonly isReceiveTeleportedAsset: boolean;2370  readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;2371  readonly isQueryResponse: boolean;2372  readonly asQueryResponse: {2373    readonly queryId: Compact<u64>;2374    readonly response: XcmV2Response;2375    readonly maxWeight: Compact<u64>;2376  } & Struct;2377  readonly isTransferAsset: boolean;2378  readonly asTransferAsset: {2379    readonly assets: XcmV1MultiassetMultiAssets;2380    readonly beneficiary: XcmV1MultiLocation;2381  } & Struct;2382  readonly isTransferReserveAsset: boolean;2383  readonly asTransferReserveAsset: {2384    readonly assets: XcmV1MultiassetMultiAssets;2385    readonly dest: XcmV1MultiLocation;2386    readonly xcm: XcmV2Xcm;2387  } & Struct;2388  readonly isTransact: boolean;2389  readonly asTransact: {2390    readonly originType: XcmV0OriginKind;2391    readonly requireWeightAtMost: Compact<u64>;2392    readonly call: XcmDoubleEncoded;2393  } & Struct;2394  readonly isHrmpNewChannelOpenRequest: boolean;2395  readonly asHrmpNewChannelOpenRequest: {2396    readonly sender: Compact<u32>;2397    readonly maxMessageSize: Compact<u32>;2398    readonly maxCapacity: Compact<u32>;2399  } & Struct;2400  readonly isHrmpChannelAccepted: boolean;2401  readonly asHrmpChannelAccepted: {2402    readonly recipient: Compact<u32>;2403  } & Struct;2404  readonly isHrmpChannelClosing: boolean;2405  readonly asHrmpChannelClosing: {2406    readonly initiator: Compact<u32>;2407    readonly sender: Compact<u32>;2408    readonly recipient: Compact<u32>;2409  } & Struct;2410  readonly isClearOrigin: boolean;2411  readonly isDescendOrigin: boolean;2412  readonly asDescendOrigin: XcmV1MultilocationJunctions;2413  readonly isReportError: boolean;2414  readonly asReportError: {2415    readonly queryId: Compact<u64>;2416    readonly dest: XcmV1MultiLocation;2417    readonly maxResponseWeight: Compact<u64>;2418  } & Struct;2419  readonly isDepositAsset: boolean;2420  readonly asDepositAsset: {2421    readonly assets: XcmV1MultiassetMultiAssetFilter;2422    readonly maxAssets: Compact<u32>;2423    readonly beneficiary: XcmV1MultiLocation;2424  } & Struct;2425  readonly isDepositReserveAsset: boolean;2426  readonly asDepositReserveAsset: {2427    readonly assets: XcmV1MultiassetMultiAssetFilter;2428    readonly maxAssets: Compact<u32>;2429    readonly dest: XcmV1MultiLocation;2430    readonly xcm: XcmV2Xcm;2431  } & Struct;2432  readonly isExchangeAsset: boolean;2433  readonly asExchangeAsset: {2434    readonly give: XcmV1MultiassetMultiAssetFilter;2435    readonly receive: XcmV1MultiassetMultiAssets;2436  } & Struct;2437  readonly isInitiateReserveWithdraw: boolean;2438  readonly asInitiateReserveWithdraw: {2439    readonly assets: XcmV1MultiassetMultiAssetFilter;2440    readonly reserve: XcmV1MultiLocation;2441    readonly xcm: XcmV2Xcm;2442  } & Struct;2443  readonly isInitiateTeleport: boolean;2444  readonly asInitiateTeleport: {2445    readonly assets: XcmV1MultiassetMultiAssetFilter;2446    readonly dest: XcmV1MultiLocation;2447    readonly xcm: XcmV2Xcm;2448  } & Struct;2449  readonly isQueryHolding: boolean;2450  readonly asQueryHolding: {2451    readonly queryId: Compact<u64>;2452    readonly dest: XcmV1MultiLocation;2453    readonly assets: XcmV1MultiassetMultiAssetFilter;2454    readonly maxResponseWeight: Compact<u64>;2455  } & Struct;2456  readonly isBuyExecution: boolean;2457  readonly asBuyExecution: {2458    readonly fees: XcmV1MultiAsset;2459    readonly weightLimit: XcmV2WeightLimit;2460  } & Struct;2461  readonly isRefundSurplus: boolean;2462  readonly isSetErrorHandler: boolean;2463  readonly asSetErrorHandler: XcmV2Xcm;2464  readonly isSetAppendix: boolean;2465  readonly asSetAppendix: XcmV2Xcm;2466  readonly isClearError: boolean;2467  readonly isClaimAsset: boolean;2468  readonly asClaimAsset: {2469    readonly assets: XcmV1MultiassetMultiAssets;2470    readonly ticket: XcmV1MultiLocation;2471  } & Struct;2472  readonly isTrap: boolean;2473  readonly asTrap: Compact<u64>;2474  readonly isSubscribeVersion: boolean;2475  readonly asSubscribeVersion: {2476    readonly queryId: Compact<u64>;2477    readonly maxResponseWeight: Compact<u64>;2478  } & Struct;2479  readonly isUnsubscribeVersion: boolean;2480  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';2481}24822483/** @name XcmV2Response */2484export interface XcmV2Response extends Enum {2485  readonly isNull: boolean;2486  readonly isAssets: boolean;2487  readonly asAssets: XcmV1MultiassetMultiAssets;2488  readonly isExecutionResult: boolean;2489  readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;2490  readonly isVersion: boolean;2491  readonly asVersion: u32;2492  readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';2493}24942495/** @name XcmV2TraitsError */2496export interface XcmV2TraitsError extends Enum {2497  readonly isOverflow: boolean;2498  readonly isUnimplemented: boolean;2499  readonly isUntrustedReserveLocation: boolean;2500  readonly isUntrustedTeleportLocation: boolean;2501  readonly isMultiLocationFull: boolean;2502  readonly isMultiLocationNotInvertible: boolean;2503  readonly isBadOrigin: boolean;2504  readonly isInvalidLocation: boolean;2505  readonly isAssetNotFound: boolean;2506  readonly isFailedToTransactAsset: boolean;2507  readonly isNotWithdrawable: boolean;2508  readonly isLocationCannotHold: boolean;2509  readonly isExceedsMaxMessageSize: boolean;2510  readonly isDestinationUnsupported: boolean;2511  readonly isTransport: boolean;2512  readonly isUnroutable: boolean;2513  readonly isUnknownClaim: boolean;2514  readonly isFailedToDecode: boolean;2515  readonly isMaxWeightInvalid: boolean;2516  readonly isNotHoldingFees: boolean;2517  readonly isTooExpensive: boolean;2518  readonly isTrap: boolean;2519  readonly asTrap: u64;2520  readonly isUnhandledXcmVersion: boolean;2521  readonly isWeightLimitReached: boolean;2522  readonly asWeightLimitReached: u64;2523  readonly isBarrier: boolean;2524  readonly isWeightNotComputable: boolean;2525  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';2526}25272528/** @name XcmV2TraitsOutcome */2529export interface XcmV2TraitsOutcome extends Enum {2530  readonly isComplete: boolean;2531  readonly asComplete: u64;2532  readonly isIncomplete: boolean;2533  readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;2534  readonly isError: boolean;2535  readonly asError: XcmV2TraitsError;2536  readonly type: 'Complete' | 'Incomplete' | 'Error';2537}25382539/** @name XcmV2WeightLimit */2540export interface XcmV2WeightLimit extends Enum {2541  readonly isUnlimited: boolean;2542  readonly isLimited: boolean;2543  readonly asLimited: Compact<u64>;2544  readonly type: 'Unlimited' | 'Limited';2545}25462547/** @name XcmV2Xcm */2548export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}25492550/** @name XcmVersionedMultiAssets */2551export interface XcmVersionedMultiAssets extends Enum {2552  readonly isV0: boolean;2553  readonly asV0: Vec<XcmV0MultiAsset>;2554  readonly isV1: boolean;2555  readonly asV1: XcmV1MultiassetMultiAssets;2556  readonly type: 'V0' | 'V1';2557}25582559/** @name XcmVersionedMultiLocation */2560export interface XcmVersionedMultiLocation extends Enum {2561  readonly isV0: boolean;2562  readonly asV0: XcmV0MultiLocation;2563  readonly isV1: boolean;2564  readonly asV1: XcmV1MultiLocation;2565  readonly type: 'V0' | 'V1';2566}25672568/** @name XcmVersionedXcm */2569export interface XcmVersionedXcm extends Enum {2570  readonly isV0: boolean;2571  readonly asV0: XcmV0Xcm;2572  readonly isV1: boolean;2573  readonly asV1: XcmV1Xcm;2574  readonly isV2: boolean;2575  readonly asV2: XcmV2Xcm;2576  readonly type: 'V0' | 'V1' | 'V2';2577}25782579export type PHANTOM_UNIQUE = 'unique';
modifiedtests/src/setVariableMetadataSponsoringRateLimit.test.tsdiffbeforeafterboth
--- a/tests/src/setVariableMetadataSponsoringRateLimit.test.ts
+++ b/tests/src/setVariableMetadataSponsoringRateLimit.test.ts
@@ -4,6 +4,7 @@
 //
 
 import {IKeyringPair} from '@polkadot/types/types';
+import {expect} from 'chai';
 import privateKey from './substrate/privateKey';
 import usingApi from './substrate/substrate-api';
 import {
@@ -11,6 +12,7 @@
   createCollectionExpectSuccess,
   createItemExpectSuccess,
   findUnusedAddress,
+  getDetailedCollectionInfo,
   setCollectionLimitsExpectSuccess,
   setCollectionSponsorExpectSuccess,
   setVariableMetaDataExpectFailure,
@@ -33,7 +35,7 @@
     await setCollectionSponsorExpectSuccess(collectionId, alice.address);
     await confirmSponsorshipExpectSuccess(collectionId);
     await setCollectionLimitsExpectSuccess(alice, collectionId, {
-      sponsoredDataRateLimit: 0,
+      sponsoredDataRateLimit: {Blocks: 0},
     });
 
     const itemId = await createItemExpectSuccess(alice, collectionId, 'NFT', userWithNoBalance.address);
@@ -46,7 +48,7 @@
     await setCollectionSponsorExpectSuccess(collectionId, alice.address);
     await confirmSponsorshipExpectSuccess(collectionId);
     await setCollectionLimitsExpectSuccess(alice, collectionId, {
-      sponsoredDataRateLimit: 10,
+      sponsoredDataRateLimit: {Blocks: 10},
     });
 
     const itemId = await createItemExpectSuccess(alice, collectionId, 'NFT', userWithNoBalance.address);
@@ -59,7 +61,7 @@
     await setCollectionSponsorExpectSuccess(collectionId, alice.address);
     await confirmSponsorshipExpectSuccess(collectionId);
     await setCollectionLimitsExpectSuccess(alice, collectionId, {
-      sponsoredDataRateLimit: 0,
+      sponsoredDataRateLimit: {Blocks: 0},
       sponsoredDataSize: 1,
     });
     const itemId = await createItemExpectSuccess(alice, collectionId, 'NFT', userWithNoBalance.address);
@@ -77,4 +79,32 @@
     await setVariableMetaDataExpectFailure(userWithNoBalance, collectionId, itemId, [1]);
   });
 
+  it('sponsoring of data is disabled by default', async () => {
+    await usingApi(async api => {
+      const collectionId = await createCollectionExpectSuccess();
+
+      const collection = (await getDetailedCollectionInfo(api, collectionId))!;
+      // limit is none = default is used
+      expect(collection?.limits.sponsoredDataRateLimit.isNone);
+    });
+  });
+
+  it('sponsoring can be disabled explicitly', async () => {
+    await usingApi(async api => {
+      const collectionId = await createCollectionExpectSuccess();
+
+      await setCollectionLimitsExpectSuccess(alice, collectionId, {sponsoredDataRateLimit: {Blocks: 6}});
+      {
+        const collection = (await getDetailedCollectionInfo(api, collectionId))!;
+        expect(collection?.limits.sponsoredDataRateLimit.unwrap().asBlocks.toNumber()).to.equal(6);
+      }
+
+      await setCollectionLimitsExpectSuccess(alice, collectionId, {sponsoredDataRateLimit: 'SponsoringDisabled'});
+      {
+        const collection = (await getDetailedCollectionInfo(api, collectionId))!;
+        // disabled sponsoring = default value
+        expect(collection?.limits.sponsoredDataRateLimit.unwrap().isNone).to.true;
+      }
+    });
+  });
 });