From 5772df77891cfd3897df23f8c9316bb98b9d3f80 Mon Sep 17 00:00:00 2001 From: Fahrrader Date: Wed, 08 Jun 2022 13:48:50 +0000 Subject: [PATCH] fix(tests): update rmrk type definitions + regenerate types --- --- a/tests/src/interfaces/augment-api-errors.ts +++ b/tests/src/interfaces/augment-api-errors.ts @@ -81,6 +81,14 @@ **/ CollectionFieldSizeExceeded: AugmentedError; /** + * Tried to access an external collection with an internal API + **/ + CollectionIsExternal: AugmentedError; + /** + * Tried to access an internal collection with an external API + **/ + CollectionIsInternal: AugmentedError; + /** * Collection limit bounds per collection exceeded **/ CollectionLimitBoundsExceeded: AugmentedError; @@ -438,6 +446,9 @@ [key: string]: AugmentedError; }; rmrkCore: { + CannotAcceptNonOwnedNft: AugmentedError; + CannotRejectNonOwnedNft: AugmentedError; + CannotSendToDescendentOrSelf: AugmentedError; CollectionFullOrLocked: AugmentedError; CollectionNotEmpty: AugmentedError; CollectionUnknown: AugmentedError; @@ -445,7 +456,10 @@ NftTypeEncodeError: AugmentedError; NoAvailableCollectionId: AugmentedError; NoAvailableNftId: AugmentedError; + NonTransferable: AugmentedError; NoPermission: AugmentedError; + ResourceDoesntExist: AugmentedError; + ResourceNotPending: AugmentedError; RmrkPropertyKeyIsTooLong: AugmentedError; RmrkPropertyValueIsTooLong: AugmentedError; /** --- a/tests/src/interfaces/augment-api-events.ts +++ b/tests/src/interfaces/augment-api-events.ts @@ -2,9 +2,9 @@ /* eslint-disable */ import type { ApiTypes } from '@polkadot/api-base/types'; -import type { Bytes, Null, Option, Result, U256, U8aFixed, u128, u32, u64, u8 } from '@polkadot/types-codec'; +import type { Bytes, Null, Option, Result, U256, U8aFixed, bool, u128, u32, u64, u8 } from '@polkadot/types-codec'; import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime'; -import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; +import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; declare module '@polkadot/api-base/types/events' { export interface AugmentedEvents { @@ -401,10 +401,17 @@ CollectionDestroyed: AugmentedEvent; CollectionLocked: AugmentedEvent; IssuerChanged: AugmentedEvent; + NFTAccepted: AugmentedEvent; NFTBurned: AugmentedEvent; NftMinted: AugmentedEvent; + NFTRejected: AugmentedEvent; + NFTSent: AugmentedEvent; + PrioritySet: AugmentedEvent; PropertySet: AugmentedEvent, Bytes, Bytes]>; + ResourceAccepted: AugmentedEvent; ResourceAdded: AugmentedEvent; + ResourceRemoval: AugmentedEvent; + ResourceRemovalAccepted: AugmentedEvent; /** * Generic event **/ --- a/tests/src/interfaces/augment-api-query.ts +++ b/tests/src/interfaces/augment-api-query.ts @@ -417,7 +417,8 @@ }; rmrkCore: { collectionIndex: AugmentedQuery Observable, []> & QueryableStorageEntry; - collectionIndexMap: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + rmrkInernalCollectionId: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + uniqueCollectionId: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; /** * Generic query **/ --- a/tests/src/interfaces/augment-api-rpc.ts +++ b/tests/src/interfaces/augment-api-rpc.ts @@ -18,7 +18,7 @@ import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth'; import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa'; -import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; +import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; import type { RpcMethods } from '@polkadot/types/interfaces/rpc'; @@ -355,9 +355,13 @@ }; mmr: { /** + * Generate MMR proof for the given leaf indices. + **/ + generateBatchProof: AugmentedRpc<(leafIndices: Vec | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable>; + /** * Generate MMR proof for given leaf index. **/ - generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable>; + generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable>; }; net: { /** @@ -401,19 +405,19 @@ /** * Get base info **/ - base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get all Base's parts **/ - baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get collection by id **/ - collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get collection properties **/ - collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec | (Text | string)[], at?: Hash | string | Uint8Array) => Observable>>; + collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec | (Text | string)[], at?: Hash | string | Uint8Array) => Observable>>; /** * Get the latest created collection id **/ @@ -421,15 +425,15 @@ /** * Get NFT by collection id and NFT id **/ - nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get NFT children **/ - nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get NFT properties **/ - nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec | (Text | string)[], at?: Hash | string | Uint8Array) => Observable>>; + nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec | (Text | string)[], at?: Hash | string | Uint8Array) => Observable>>; /** * Get NFT resource priorities **/ @@ -437,7 +441,7 @@ /** * Get NFT resources **/ - nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; /** * Get Base's theme names **/ @@ -445,7 +449,7 @@ /** * Get Theme's keys values **/ - themes: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, themeName: Text | string, keys: Option> | null | object | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; + themes: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, themeName: Text | string, keys: Option> | null | object | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable>>; }; rpc: { /** --- a/tests/src/interfaces/augment-api-tx.ts +++ b/tests/src/interfaces/augment-api-tx.ts @@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime'; -import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRmrkBasicResource, UpDataStructsRmrkComposableResource, UpDataStructsRmrkPartType, UpDataStructsRmrkSlotResource, UpDataStructsRmrkTheme, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; declare module '@polkadot/api-base/types/submittable' { export interface AugmentedSubmittables { @@ -347,15 +347,22 @@ [key: string]: SubmittableExtrinsicFunction; }; rmrkCore: { - addBasicResource: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: UpDataStructsRmrkBasicResource | { src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, UpDataStructsRmrkBasicResource]>; - addComposableResource: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: Bytes | string | Uint8Array, resource: UpDataStructsRmrkComposableResource | { parts?: any; base?: any; src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes, UpDataStructsRmrkComposableResource]>; - addSlotResource: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: UpDataStructsRmrkSlotResource | { base?: any; src?: any; metadata?: any; slot?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, UpDataStructsRmrkSlotResource]>; + acceptNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>; + acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32]>; + acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32]>; + addBasicResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceBasicResource | { src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, RmrkTraitsResourceBasicResource]>; + addComposableResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: Bytes | string | Uint8Array, resource: RmrkTraitsResourceComposableResource | { parts?: any; base?: any; src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Bytes, RmrkTraitsResourceComposableResource]>; + addSlotResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceSlotResource | { base?: any; src?: any; metadata?: any; slot?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, RmrkTraitsResourceSlotResource]>; burnNft: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; changeCollectionIssuer: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newIssuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, MultiAddress]>; createCollection: AugmentedSubmittable<(metadata: Bytes | string | Uint8Array, max: Option | null | object | string | Uint8Array, symbol: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes, Option, Bytes]>; destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; lockCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; - mintNft: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option | null | object | string | Uint8Array, royaltyAmount: Option | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, u32, Option, Option, Bytes]>; + mintNft: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option | null | object | string | Uint8Array, royaltyAmount: Option | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array) => SubmittableExtrinsic, [AccountId32, u32, Option, Option, Bytes, bool]>; + rejectNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; + removeResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u32]>; + send: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>; + setPriority: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, priorities: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [u32, u32, Vec]>; setProperty: AugmentedSubmittable<(rmrkCollectionId: Compact | AnyNumber | Uint8Array, maybeNftId: Option | null | object | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Compact, Option, Bytes, Bytes]>; /** * Generic tx @@ -363,8 +370,8 @@ [key: string]: SubmittableExtrinsicFunction; }; rmrkEquip: { - createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec | (UpDataStructsRmrkPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Bytes, Bytes, Vec]>; - themeAdd: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, theme: UpDataStructsRmrkTheme | { name?: any; properties?: any; inherit?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, UpDataStructsRmrkTheme]>; + createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec | (RmrkTraitsPartPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Bytes, Bytes, Vec]>; + themeAdd: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, theme: RmrkTraitsTheme | { name?: any; properties?: any; inherit?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, RmrkTraitsTheme]>; /** * Generic tx **/ --- a/tests/src/interfaces/augment-types.ts +++ b/tests/src/interfaces/augment-types.ts @@ -3,7 +3,7 @@ import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingRule, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRmrkAccountIdOrCollectionNftTuple, UpDataStructsRmrkBaseInfo, UpDataStructsRmrkBasicResource, UpDataStructsRmrkCollectionInfo, UpDataStructsRmrkComposableResource, UpDataStructsRmrkEquippableList, UpDataStructsRmrkFixedPart, UpDataStructsRmrkNftChild, UpDataStructsRmrkNftInfo, UpDataStructsRmrkPartType, UpDataStructsRmrkPropertyInfo, UpDataStructsRmrkResourceInfo, UpDataStructsRmrkResourceTypes, UpDataStructsRmrkRoyaltyInfo, UpDataStructsRmrkSlotPart, UpDataStructsRmrkSlotResource, UpDataStructsRmrkTheme, UpDataStructsRmrkThemeProperty, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default'; import type { Data, StorageKey } from '@polkadot/types'; -import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, 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 { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec'; import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets'; import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; @@ -36,7 +36,7 @@ import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery'; import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; -import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr'; +import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr'; import type { StorageKind } from '@polkadot/types/interfaces/offchain'; import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; @@ -661,6 +661,7 @@ MetadataV14: MetadataV14; MetadataV9: MetadataV9; MigrationStatusResult: MigrationStatusResult; + MmrLeafBatchProof: MmrLeafBatchProof; MmrLeafProof: MmrLeafProof; MmrRootHash: MmrRootHash; ModuleConstantMetadataV10: ModuleConstantMetadataV10; @@ -727,6 +728,7 @@ OpenTipTip: OpenTipTip; OpenTipTo225: OpenTipTo225; OperatingMode: OperatingMode; + OptionBool: OptionBool; Origin: Origin; OriginCaller: OriginCaller; OriginKindV0: OriginKindV0; @@ -947,6 +949,24 @@ Retriable: Retriable; RewardDestination: RewardDestination; RewardPoint: RewardPoint; + RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo; + RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo; + RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple; + RmrkTraitsNftNftChild: RmrkTraitsNftNftChild; + RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo; + RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo; + RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList; + RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart; + RmrkTraitsPartPartType: RmrkTraitsPartPartType; + RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart; + RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo; + RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource; + RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource; + RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo; + RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes; + RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource; + RmrkTraitsTheme: RmrkTraitsTheme; + RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty; RoundSnapshot: RoundSnapshot; RoundState: RoundState; RpcMethods: RpcMethods; @@ -1193,24 +1213,6 @@ UpDataStructsProperty: UpDataStructsProperty; UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission; UpDataStructsPropertyPermission: UpDataStructsPropertyPermission; - UpDataStructsRmrkAccountIdOrCollectionNftTuple: UpDataStructsRmrkAccountIdOrCollectionNftTuple; - UpDataStructsRmrkBaseInfo: UpDataStructsRmrkBaseInfo; - UpDataStructsRmrkBasicResource: UpDataStructsRmrkBasicResource; - UpDataStructsRmrkCollectionInfo: UpDataStructsRmrkCollectionInfo; - UpDataStructsRmrkComposableResource: UpDataStructsRmrkComposableResource; - UpDataStructsRmrkEquippableList: UpDataStructsRmrkEquippableList; - UpDataStructsRmrkFixedPart: UpDataStructsRmrkFixedPart; - UpDataStructsRmrkNftChild: UpDataStructsRmrkNftChild; - UpDataStructsRmrkNftInfo: UpDataStructsRmrkNftInfo; - UpDataStructsRmrkPartType: UpDataStructsRmrkPartType; - UpDataStructsRmrkPropertyInfo: UpDataStructsRmrkPropertyInfo; - UpDataStructsRmrkResourceInfo: UpDataStructsRmrkResourceInfo; - UpDataStructsRmrkResourceTypes: UpDataStructsRmrkResourceTypes; - UpDataStructsRmrkRoyaltyInfo: UpDataStructsRmrkRoyaltyInfo; - UpDataStructsRmrkSlotPart: UpDataStructsRmrkSlotPart; - UpDataStructsRmrkSlotResource: UpDataStructsRmrkSlotResource; - UpDataStructsRmrkTheme: UpDataStructsRmrkTheme; - UpDataStructsRmrkThemeProperty: UpDataStructsRmrkThemeProperty; UpDataStructsRpcCollection: UpDataStructsRpcCollection; UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit; UpDataStructsSponsorshipState: UpDataStructsSponsorshipState; --- a/tests/src/interfaces/default/types.ts +++ b/tests/src/interfaces/default/types.ts @@ -896,7 +896,9 @@ readonly isPropertyKeyIsTooLong: boolean; readonly isInvalidCharacterInPropertyKey: boolean; readonly isEmptyPropertyKey: boolean; - readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey'; + readonly isCollectionIsExternal: boolean; + readonly isCollectionIsInternal: boolean; + readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal'; } /** @name PalletCommonEvent */ @@ -1157,12 +1159,42 @@ readonly recipient: Option; readonly royaltyAmount: Option; readonly metadata: Bytes; + readonly transferable: bool; } & Struct; readonly isBurnNft: boolean; readonly asBurnNft: { readonly collectionId: u32; readonly nftId: u32; } & Struct; + readonly isSend: boolean; + readonly asSend: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple; + } & Struct; + readonly isAcceptNft: boolean; + readonly asAcceptNft: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple; + } & Struct; + readonly isRejectNft: boolean; + readonly asRejectNft: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + } & Struct; + readonly isAcceptResource: boolean; + readonly asAcceptResource: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly rmrkResourceId: u32; + } & Struct; + readonly isAcceptResourceRemoval: boolean; + readonly asAcceptResourceRemoval: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly rmrkResourceId: u32; + } & Struct; readonly isSetProperty: boolean; readonly asSetProperty: { readonly rmrkCollectionId: Compact; @@ -1170,26 +1202,38 @@ readonly key: Bytes; readonly value: Bytes; } & Struct; + readonly isSetPriority: boolean; + readonly asSetPriority: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly priorities: Vec; + } & Struct; readonly isAddBasicResource: boolean; readonly asAddBasicResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; readonly nftId: u32; - readonly resource: UpDataStructsRmrkBasicResource; + readonly resource: RmrkTraitsResourceBasicResource; } & Struct; readonly isAddComposableResource: boolean; readonly asAddComposableResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; readonly nftId: u32; readonly resourceId: Bytes; - readonly resource: UpDataStructsRmrkComposableResource; + readonly resource: RmrkTraitsResourceComposableResource; } & Struct; readonly isAddSlotResource: boolean; readonly asAddSlotResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; readonly nftId: u32; - readonly resource: UpDataStructsRmrkSlotResource; + readonly resource: RmrkTraitsResourceSlotResource; } & Struct; - readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'SetProperty' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource'; + readonly isRemoveResource: boolean; + readonly asRemoveResource: { + readonly rmrkCollectionId: u32; + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource'; } /** @name PalletRmrkCoreError */ @@ -1203,8 +1247,14 @@ readonly isNoAvailableNftId: boolean; readonly isCollectionUnknown: boolean; readonly isNoPermission: boolean; + readonly isNonTransferable: boolean; readonly isCollectionFullOrLocked: boolean; - readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'CollectionFullOrLocked'; + readonly isResourceDoesntExist: boolean; + readonly isCannotSendToDescendentOrSelf: boolean; + readonly isCannotAcceptNonOwnedNft: boolean; + readonly isCannotRejectNonOwnedNft: boolean; + readonly isResourceNotPending: boolean; + readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending'; } /** @name PalletRmrkCoreEvent */ @@ -1241,6 +1291,27 @@ readonly owner: AccountId32; readonly nftId: u32; } & Struct; + readonly isNftSent: boolean; + readonly asNftSent: { + readonly sender: AccountId32; + readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple; + readonly collectionId: u32; + readonly nftId: u32; + readonly approvalRequired: bool; + } & Struct; + readonly isNftAccepted: boolean; + readonly asNftAccepted: { + readonly sender: AccountId32; + readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple; + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; + readonly isNftRejected: boolean; + readonly asNftRejected: { + readonly sender: AccountId32; + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; readonly isPropertySet: boolean; readonly asPropertySet: { readonly collectionId: u32; @@ -1253,7 +1324,27 @@ readonly nftId: u32; readonly resourceId: u32; } & Struct; - readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'PropertySet' | 'ResourceAdded'; + readonly isResourceRemoval: boolean; + readonly asResourceRemoval: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isResourceAccepted: boolean; + readonly asResourceAccepted: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isResourceRemovalAccepted: boolean; + readonly asResourceRemovalAccepted: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isPrioritySet: boolean; + readonly asPrioritySet: { + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; + readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet'; } /** @name PalletRmrkEquipCall */ @@ -1262,12 +1353,12 @@ readonly asCreateBase: { readonly baseType: Bytes; readonly symbol: Bytes; - readonly parts: Vec; + readonly parts: Vec; } & Struct; readonly isThemeAdd: boolean; readonly asThemeAdd: { readonly baseId: u32; - readonly theme: UpDataStructsRmrkTheme; + readonly theme: RmrkTraitsTheme; } & Struct; readonly type: 'CreateBase' | 'ThemeAdd'; } @@ -1751,7 +1842,7 @@ } /** @name PhantomTypeUpDataStructs */ -export interface PhantomTypeUpDataStructs extends Vec> {} +export interface PhantomTypeUpDataStructs extends Vec> {} /** @name PolkadotCorePrimitivesInboundDownwardMessage */ export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { @@ -1816,6 +1907,151 @@ readonly type: 'Present'; } +/** @name RmrkTraitsBaseBaseInfo */ +export interface RmrkTraitsBaseBaseInfo extends Struct { + readonly issuer: AccountId32; + readonly baseType: Bytes; + readonly symbol: Bytes; +} + +/** @name RmrkTraitsCollectionCollectionInfo */ +export interface RmrkTraitsCollectionCollectionInfo extends Struct { + readonly issuer: AccountId32; + readonly metadata: Bytes; + readonly max: Option; + readonly symbol: Bytes; + readonly nftsCount: u32; +} + +/** @name RmrkTraitsNftAccountIdOrCollectionNftTuple */ +export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum { + readonly isAccountId: boolean; + readonly asAccountId: AccountId32; + readonly isCollectionAndNftTuple: boolean; + readonly asCollectionAndNftTuple: ITuple<[u32, u32]>; + readonly type: 'AccountId' | 'CollectionAndNftTuple'; +} + +/** @name RmrkTraitsNftNftChild */ +export interface RmrkTraitsNftNftChild extends Struct { + readonly collectionId: u32; + readonly nftId: u32; +} + +/** @name RmrkTraitsNftNftInfo */ +export interface RmrkTraitsNftNftInfo extends Struct { + readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple; + readonly royalty: Option; + readonly metadata: Bytes; + readonly equipped: bool; + readonly pending: bool; +} + +/** @name RmrkTraitsNftRoyaltyInfo */ +export interface RmrkTraitsNftRoyaltyInfo extends Struct { + readonly recipient: AccountId32; + readonly amount: Permill; +} + +/** @name RmrkTraitsPartEquippableList */ +export interface RmrkTraitsPartEquippableList extends Enum { + readonly isAll: boolean; + readonly isEmpty: boolean; + readonly isCustom: boolean; + readonly asCustom: Vec; + readonly type: 'All' | 'Empty' | 'Custom'; +} + +/** @name RmrkTraitsPartFixedPart */ +export interface RmrkTraitsPartFixedPart extends Struct { + readonly id: u32; + readonly z: u32; + readonly src: Bytes; +} + +/** @name RmrkTraitsPartPartType */ +export interface RmrkTraitsPartPartType extends Enum { + readonly isFixedPart: boolean; + readonly asFixedPart: RmrkTraitsPartFixedPart; + readonly isSlotPart: boolean; + readonly asSlotPart: RmrkTraitsPartSlotPart; + readonly type: 'FixedPart' | 'SlotPart'; +} + +/** @name RmrkTraitsPartSlotPart */ +export interface RmrkTraitsPartSlotPart extends Struct { + readonly id: u32; + readonly equippable: RmrkTraitsPartEquippableList; + readonly src: Bytes; + readonly z: u32; +} + +/** @name RmrkTraitsPropertyPropertyInfo */ +export interface RmrkTraitsPropertyPropertyInfo extends Struct { + readonly key: Bytes; + readonly value: Bytes; +} + +/** @name RmrkTraitsResourceBasicResource */ +export interface RmrkTraitsResourceBasicResource extends Struct { + readonly src: Option; + readonly metadata: Option; + readonly license: Option; + readonly thumb: Option; +} + +/** @name RmrkTraitsResourceComposableResource */ +export interface RmrkTraitsResourceComposableResource extends Struct { + readonly parts: Vec; + readonly base: u32; + readonly src: Option; + readonly metadata: Option; + readonly license: Option; + readonly thumb: Option; +} + +/** @name RmrkTraitsResourceResourceInfo */ +export interface RmrkTraitsResourceResourceInfo extends Struct { + readonly id: u32; + readonly resource: RmrkTraitsResourceResourceTypes; + readonly pending: bool; + readonly pendingRemoval: bool; +} + +/** @name RmrkTraitsResourceResourceTypes */ +export interface RmrkTraitsResourceResourceTypes extends Enum { + readonly isBasic: boolean; + readonly asBasic: RmrkTraitsResourceBasicResource; + readonly isComposable: boolean; + readonly asComposable: RmrkTraitsResourceComposableResource; + readonly isSlot: boolean; + readonly asSlot: RmrkTraitsResourceSlotResource; + readonly type: 'Basic' | 'Composable' | 'Slot'; +} + +/** @name RmrkTraitsResourceSlotResource */ +export interface RmrkTraitsResourceSlotResource extends Struct { + readonly base: u32; + readonly src: Option; + readonly metadata: Option; + readonly slot: u32; + readonly license: Option; + readonly thumb: Option; +} + +/** @name RmrkTraitsTheme */ +export interface RmrkTraitsTheme extends Struct { + readonly name: Bytes; + readonly properties: Vec; + readonly inherit: bool; +} + +/** @name RmrkTraitsThemeThemeProperty */ +export interface RmrkTraitsThemeThemeProperty extends Struct { + readonly key: Bytes; + readonly value: Bytes; +} + /** @name SpCoreEcdsaSignature */ export interface SpCoreEcdsaSignature extends U8aFixed {} @@ -1941,6 +2177,7 @@ readonly sponsorship: UpDataStructsSponsorshipState; readonly limits: UpDataStructsCollectionLimits; readonly permissions: UpDataStructsCollectionPermissions; + readonly externalCollection: bool; } /** @name UpDataStructsCollectionLimits */ @@ -2084,153 +2321,8 @@ readonly mutable: bool; readonly collectionAdmin: bool; readonly tokenOwner: bool; -} - -/** @name UpDataStructsRmrkAccountIdOrCollectionNftTuple */ -export interface UpDataStructsRmrkAccountIdOrCollectionNftTuple extends Enum { - readonly isAccountId: boolean; - readonly asAccountId: AccountId32; - readonly isCollectionAndNftTuple: boolean; - readonly asCollectionAndNftTuple: ITuple<[u32, u32]>; - readonly type: 'AccountId' | 'CollectionAndNftTuple'; -} - -/** @name UpDataStructsRmrkBaseInfo */ -export interface UpDataStructsRmrkBaseInfo extends Struct { - readonly issuer: AccountId32; - readonly baseType: Bytes; - readonly symbol: Bytes; -} - -/** @name UpDataStructsRmrkBasicResource */ -export interface UpDataStructsRmrkBasicResource extends Struct { - readonly src: Option; - readonly metadata: Option; - readonly license: Option; - readonly thumb: Option; -} - -/** @name UpDataStructsRmrkCollectionInfo */ -export interface UpDataStructsRmrkCollectionInfo extends Struct { - readonly issuer: AccountId32; - readonly metadata: Bytes; - readonly max: Option; - readonly symbol: Bytes; - readonly nftsCount: u32; -} - -/** @name UpDataStructsRmrkComposableResource */ -export interface UpDataStructsRmrkComposableResource extends Struct { - readonly parts: Vec; - readonly base: u32; - readonly src: Option; - readonly metadata: Option; - readonly license: Option; - readonly thumb: Option; -} - -/** @name UpDataStructsRmrkEquippableList */ -export interface UpDataStructsRmrkEquippableList extends Enum { - readonly isAll: boolean; - readonly isEmpty: boolean; - readonly isCustom: boolean; - readonly asCustom: Vec; - readonly type: 'All' | 'Empty' | 'Custom'; -} - -/** @name UpDataStructsRmrkFixedPart */ -export interface UpDataStructsRmrkFixedPart extends Struct { - readonly id: u32; - readonly z: u32; - readonly src: Bytes; -} - -/** @name UpDataStructsRmrkNftChild */ -export interface UpDataStructsRmrkNftChild extends Struct { - readonly collectionId: u32; - readonly nftId: u32; -} - -/** @name UpDataStructsRmrkNftInfo */ -export interface UpDataStructsRmrkNftInfo extends Struct { - readonly owner: UpDataStructsRmrkAccountIdOrCollectionNftTuple; - readonly royalty: Option; - readonly metadata: Bytes; - readonly equipped: bool; - readonly pending: bool; -} - -/** @name UpDataStructsRmrkPartType */ -export interface UpDataStructsRmrkPartType extends Enum { - readonly isFixedPart: boolean; - readonly asFixedPart: UpDataStructsRmrkFixedPart; - readonly isSlotPart: boolean; - readonly asSlotPart: UpDataStructsRmrkSlotPart; - readonly type: 'FixedPart' | 'SlotPart'; -} - -/** @name UpDataStructsRmrkPropertyInfo */ -export interface UpDataStructsRmrkPropertyInfo extends Struct { - readonly key: Bytes; - readonly value: Bytes; -} - -/** @name UpDataStructsRmrkResourceInfo */ -export interface UpDataStructsRmrkResourceInfo extends Struct { - readonly id: u32; - readonly resource: UpDataStructsRmrkResourceTypes; - readonly pending: bool; - readonly pendingRemoval: bool; -} - -/** @name UpDataStructsRmrkResourceTypes */ -export interface UpDataStructsRmrkResourceTypes extends Enum { - readonly isBasic: boolean; - readonly asBasic: UpDataStructsRmrkBasicResource; - readonly isComposable: boolean; - readonly asComposable: UpDataStructsRmrkComposableResource; - readonly isSlot: boolean; - readonly asSlot: UpDataStructsRmrkSlotResource; - readonly type: 'Basic' | 'Composable' | 'Slot'; } -/** @name UpDataStructsRmrkRoyaltyInfo */ -export interface UpDataStructsRmrkRoyaltyInfo extends Struct { - readonly recipient: AccountId32; - readonly amount: Permill; -} - -/** @name UpDataStructsRmrkSlotPart */ -export interface UpDataStructsRmrkSlotPart extends Struct { - readonly id: u32; - readonly equippable: UpDataStructsRmrkEquippableList; - readonly src: Bytes; - readonly z: u32; -} - -/** @name UpDataStructsRmrkSlotResource */ -export interface UpDataStructsRmrkSlotResource extends Struct { - readonly base: u32; - readonly src: Option; - readonly metadata: Option; - readonly slot: u32; - readonly license: Option; - readonly thumb: Option; -} - -/** @name UpDataStructsRmrkTheme */ -export interface UpDataStructsRmrkTheme extends Struct { - readonly name: Bytes; - readonly properties: Vec; - readonly inherit: bool; -} - -/** @name UpDataStructsRmrkThemeProperty */ -export interface UpDataStructsRmrkThemeProperty extends Struct { - readonly key: Bytes; - readonly value: Bytes; -} - /** @name UpDataStructsRpcCollection */ export interface UpDataStructsRpcCollection extends Struct { readonly owner: AccountId32; @@ -2243,6 +2335,7 @@ readonly permissions: UpDataStructsCollectionPermissions; readonly tokenPropertyPermissions: Vec; readonly properties: Vec; + readonly readOnly: bool; } /** @name UpDataStructsSponsoringRateLimit */ --- a/tests/src/interfaces/lookup.ts +++ b/tests/src/interfaces/lookup.ts @@ -1553,48 +1553,92 @@ recipient: 'Option', royaltyAmount: 'Option', metadata: 'Bytes', + transferable: 'bool', }, burn_nft: { collectionId: 'u32', nftId: 'u32', }, + send: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple', + }, + accept_nft: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple', + }, + reject_nft: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + }, + accept_resource: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + rmrkResourceId: 'u32', + }, + accept_resource_removal: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + rmrkResourceId: 'u32', + }, set_property: { rmrkCollectionId: 'Compact', maybeNftId: 'Option', key: 'Bytes', value: 'Bytes', }, + set_priority: { + rmrkCollectionId: 'u32', + rmrkNftId: 'u32', + priorities: 'Vec', + }, add_basic_resource: { - collectionId: 'u32', + rmrkCollectionId: 'u32', nftId: 'u32', - resource: 'UpDataStructsRmrkBasicResource', + resource: 'RmrkTraitsResourceBasicResource', }, add_composable_resource: { - collectionId: 'u32', + rmrkCollectionId: 'u32', nftId: 'u32', resourceId: 'Bytes', - resource: 'UpDataStructsRmrkComposableResource', + resource: 'RmrkTraitsResourceComposableResource', }, add_slot_resource: { - collectionId: 'u32', + rmrkCollectionId: 'u32', nftId: 'u32', - resource: 'UpDataStructsRmrkSlotResource' + resource: 'RmrkTraitsResourceSlotResource', + }, + remove_resource: { + rmrkCollectionId: 'u32', + nftId: 'u32', + resourceId: 'u32' } } }, /** - * Lookup212: up_data_structs::rmrk::BasicResource> + * Lookup210: rmrk_traits::nft::AccountIdOrCollectionNftTuple **/ - UpDataStructsRmrkBasicResource: { + RmrkTraitsNftAccountIdOrCollectionNftTuple: { + _enum: { + AccountId: 'AccountId32', + CollectionAndNftTuple: '(u32,u32)' + } + }, + /** + * Lookup214: rmrk_traits::resource::BasicResource> + **/ + RmrkTraitsResourceBasicResource: { src: 'Option', metadata: 'Option', license: 'Option', thumb: 'Option' }, /** - * Lookup215: up_data_structs::rmrk::ComposableResource, frame_support::storage::bounded_vec::BoundedVec> + * Lookup217: rmrk_traits::resource::ComposableResource, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkComposableResource: { + RmrkTraitsResourceComposableResource: { parts: 'Vec', base: 'u32', src: 'Option', @@ -1603,9 +1647,9 @@ thumb: 'Option' }, /** - * Lookup217: up_data_structs::rmrk::SlotResource> + * Lookup219: rmrk_traits::resource::SlotResource> **/ - UpDataStructsRmrkSlotResource: { + RmrkTraitsResourceSlotResource: { base: 'u32', src: 'Option', metadata: 'Option', @@ -1614,51 +1658,51 @@ thumb: 'Option' }, /** - * Lookup218: pallet_rmrk_equip::pallet::Call + * Lookup220: pallet_rmrk_equip::pallet::Call **/ PalletRmrkEquipCall: { _enum: { create_base: { baseType: 'Bytes', symbol: 'Bytes', - parts: 'Vec', + parts: 'Vec', }, theme_add: { baseId: 'u32', - theme: 'UpDataStructsRmrkTheme' + theme: 'RmrkTraitsTheme' } } }, /** - * Lookup220: up_data_structs::rmrk::PartType, frame_support::storage::bounded_vec::BoundedVec> + * Lookup222: rmrk_traits::part::PartType, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkPartType: { + RmrkTraitsPartPartType: { _enum: { - FixedPart: 'UpDataStructsRmrkFixedPart', - SlotPart: 'UpDataStructsRmrkSlotPart' + FixedPart: 'RmrkTraitsPartFixedPart', + SlotPart: 'RmrkTraitsPartSlotPart' } }, /** - * Lookup222: up_data_structs::rmrk::FixedPart> + * Lookup224: rmrk_traits::part::FixedPart> **/ - UpDataStructsRmrkFixedPart: { + RmrkTraitsPartFixedPart: { id: 'u32', z: 'u32', src: 'Bytes' }, /** - * Lookup223: up_data_structs::rmrk::SlotPart, frame_support::storage::bounded_vec::BoundedVec> + * Lookup225: rmrk_traits::part::SlotPart, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkSlotPart: { + RmrkTraitsPartSlotPart: { id: 'u32', - equippable: 'UpDataStructsRmrkEquippableList', + equippable: 'RmrkTraitsPartEquippableList', src: 'Bytes', z: 'u32' }, /** - * Lookup224: up_data_structs::rmrk::EquippableList> + * Lookup226: rmrk_traits::part::EquippableList> **/ - UpDataStructsRmrkEquippableList: { + RmrkTraitsPartEquippableList: { _enum: { All: 'Null', Empty: 'Null', @@ -1666,22 +1710,22 @@ } }, /** - * Lookup226: up_data_structs::rmrk::Theme, PropertyList> + * Lookup228: rmrk_traits::theme::Theme, PropertyList> **/ - UpDataStructsRmrkTheme: { + RmrkTraitsTheme: { name: 'Bytes', - properties: 'Vec', + properties: 'Vec', inherit: 'bool' }, /** - * Lookup228: up_data_structs::rmrk::ThemeProperty> + * Lookup230: rmrk_traits::theme::ThemeProperty> **/ - UpDataStructsRmrkThemeProperty: { + RmrkTraitsThemeThemeProperty: { key: 'Bytes', value: 'Bytes' }, /** - * Lookup229: pallet_evm::pallet::Call + * Lookup231: pallet_evm::pallet::Call **/ PalletEvmCall: { _enum: { @@ -1724,7 +1768,7 @@ } }, /** - * Lookup235: pallet_ethereum::pallet::Call + * Lookup237: pallet_ethereum::pallet::Call **/ PalletEthereumCall: { _enum: { @@ -1734,7 +1778,7 @@ } }, /** - * Lookup236: ethereum::transaction::TransactionV2 + * Lookup238: ethereum::transaction::TransactionV2 **/ EthereumTransactionTransactionV2: { _enum: { @@ -1744,7 +1788,7 @@ } }, /** - * Lookup237: ethereum::transaction::LegacyTransaction + * Lookup239: ethereum::transaction::LegacyTransaction **/ EthereumTransactionLegacyTransaction: { nonce: 'U256', @@ -1756,7 +1800,7 @@ signature: 'EthereumTransactionTransactionSignature' }, /** - * Lookup238: ethereum::transaction::TransactionAction + * Lookup240: ethereum::transaction::TransactionAction **/ EthereumTransactionTransactionAction: { _enum: { @@ -1765,7 +1809,7 @@ } }, /** - * Lookup239: ethereum::transaction::TransactionSignature + * Lookup241: ethereum::transaction::TransactionSignature **/ EthereumTransactionTransactionSignature: { v: 'u64', @@ -1773,7 +1817,7 @@ s: 'H256' }, /** - * Lookup241: ethereum::transaction::EIP2930Transaction + * Lookup243: ethereum::transaction::EIP2930Transaction **/ EthereumTransactionEip2930Transaction: { chainId: 'u64', @@ -1789,14 +1833,14 @@ s: 'H256' }, /** - * Lookup243: ethereum::transaction::AccessListItem + * Lookup245: ethereum::transaction::AccessListItem **/ EthereumTransactionAccessListItem: { address: 'H160', storageKeys: 'Vec' }, /** - * Lookup244: ethereum::transaction::EIP1559Transaction + * Lookup246: ethereum::transaction::EIP1559Transaction **/ EthereumTransactionEip1559Transaction: { chainId: 'u64', @@ -1813,7 +1857,7 @@ s: 'H256' }, /** - * Lookup245: pallet_evm_migration::pallet::Call + * Lookup247: pallet_evm_migration::pallet::Call **/ PalletEvmMigrationCall: { _enum: { @@ -1831,7 +1875,7 @@ } }, /** - * Lookup248: pallet_sudo::pallet::Event + * Lookup250: pallet_sudo::pallet::Event **/ PalletSudoEvent: { _enum: { @@ -1847,7 +1891,7 @@ } }, /** - * Lookup250: sp_runtime::DispatchError + * Lookup252: sp_runtime::DispatchError **/ SpRuntimeDispatchError: { _enum: { @@ -1864,38 +1908,38 @@ } }, /** - * Lookup251: sp_runtime::ModuleError + * Lookup253: sp_runtime::ModuleError **/ SpRuntimeModuleError: { index: 'u8', error: '[u8;4]' }, /** - * Lookup252: sp_runtime::TokenError + * Lookup254: sp_runtime::TokenError **/ SpRuntimeTokenError: { _enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported'] }, /** - * Lookup253: sp_runtime::ArithmeticError + * Lookup255: sp_runtime::ArithmeticError **/ SpRuntimeArithmeticError: { _enum: ['Underflow', 'Overflow', 'DivisionByZero'] }, /** - * Lookup254: sp_runtime::TransactionalError + * Lookup256: sp_runtime::TransactionalError **/ SpRuntimeTransactionalError: { _enum: ['LimitReached', 'NoLayer'] }, /** - * Lookup255: pallet_sudo::pallet::Error + * Lookup257: pallet_sudo::pallet::Error **/ PalletSudoError: { _enum: ['RequireSudo'] }, /** - * Lookup256: frame_system::AccountInfo> + * Lookup258: frame_system::AccountInfo> **/ FrameSystemAccountInfo: { nonce: 'u32', @@ -1905,7 +1949,7 @@ data: 'PalletBalancesAccountData' }, /** - * Lookup257: frame_support::weights::PerDispatchClass + * Lookup259: frame_support::weights::PerDispatchClass **/ FrameSupportWeightsPerDispatchClassU64: { normal: 'u64', @@ -1913,13 +1957,13 @@ mandatory: 'u64' }, /** - * Lookup258: sp_runtime::generic::digest::Digest + * Lookup260: sp_runtime::generic::digest::Digest **/ SpRuntimeDigest: { logs: 'Vec' }, /** - * Lookup260: sp_runtime::generic::digest::DigestItem + * Lookup262: sp_runtime::generic::digest::DigestItem **/ SpRuntimeDigestDigestItem: { _enum: { @@ -1935,7 +1979,7 @@ } }, /** - * Lookup262: frame_system::EventRecord + * Lookup264: frame_system::EventRecord **/ FrameSystemEventRecord: { phase: 'FrameSystemPhase', @@ -1943,7 +1987,7 @@ topics: 'Vec' }, /** - * Lookup264: frame_system::pallet::Event + * Lookup266: frame_system::pallet::Event **/ FrameSystemEvent: { _enum: { @@ -1971,7 +2015,7 @@ } }, /** - * Lookup265: frame_support::weights::DispatchInfo + * Lookup267: frame_support::weights::DispatchInfo **/ FrameSupportWeightsDispatchInfo: { weight: 'u64', @@ -1979,19 +2023,19 @@ paysFee: 'FrameSupportWeightsPays' }, /** - * Lookup266: frame_support::weights::DispatchClass + * Lookup268: frame_support::weights::DispatchClass **/ FrameSupportWeightsDispatchClass: { _enum: ['Normal', 'Operational', 'Mandatory'] }, /** - * Lookup267: frame_support::weights::Pays + * Lookup269: frame_support::weights::Pays **/ FrameSupportWeightsPays: { _enum: ['Yes', 'No'] }, /** - * Lookup268: orml_vesting::module::Event + * Lookup270: orml_vesting::module::Event **/ OrmlVestingModuleEvent: { _enum: { @@ -2010,7 +2054,7 @@ } }, /** - * Lookup269: cumulus_pallet_xcmp_queue::pallet::Event + * Lookup271: cumulus_pallet_xcmp_queue::pallet::Event **/ CumulusPalletXcmpQueueEvent: { _enum: { @@ -2025,7 +2069,7 @@ } }, /** - * Lookup270: pallet_xcm::pallet::Event + * Lookup272: pallet_xcm::pallet::Event **/ PalletXcmEvent: { _enum: { @@ -2048,7 +2092,7 @@ } }, /** - * Lookup271: xcm::v2::traits::Outcome + * Lookup273: xcm::v2::traits::Outcome **/ XcmV2TraitsOutcome: { _enum: { @@ -2058,7 +2102,7 @@ } }, /** - * Lookup273: cumulus_pallet_xcm::pallet::Event + * Lookup275: cumulus_pallet_xcm::pallet::Event **/ CumulusPalletXcmEvent: { _enum: { @@ -2068,7 +2112,7 @@ } }, /** - * Lookup274: cumulus_pallet_dmp_queue::pallet::Event + * Lookup276: cumulus_pallet_dmp_queue::pallet::Event **/ CumulusPalletDmpQueueEvent: { _enum: { @@ -2081,7 +2125,7 @@ } }, /** - * Lookup275: pallet_unique::RawEvent> + * Lookup277: pallet_unique::RawEvent> **/ PalletUniqueRawEvent: { _enum: { @@ -2098,7 +2142,7 @@ } }, /** - * Lookup276: pallet_common::pallet::Event + * Lookup278: pallet_common::pallet::Event **/ PalletCommonEvent: { _enum: { @@ -2116,7 +2160,7 @@ } }, /** - * Lookup277: pallet_structure::pallet::Event + * Lookup279: pallet_structure::pallet::Event **/ PalletStructureEvent: { _enum: { @@ -2124,7 +2168,7 @@ } }, /** - * Lookup278: pallet_rmrk_core::pallet::Event + * Lookup280: pallet_rmrk_core::pallet::Event **/ PalletRmrkCoreEvent: { _enum: { @@ -2154,6 +2198,24 @@ owner: 'AccountId32', nftId: 'u32', }, + NFTSent: { + sender: 'AccountId32', + recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple', + collectionId: 'u32', + nftId: 'u32', + approvalRequired: 'bool', + }, + NFTAccepted: { + sender: 'AccountId32', + recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple', + collectionId: 'u32', + nftId: 'u32', + }, + NFTRejected: { + sender: 'AccountId32', + collectionId: 'u32', + nftId: 'u32', + }, PropertySet: { collectionId: 'u32', maybeNftId: 'Option', @@ -2162,12 +2224,28 @@ }, ResourceAdded: { nftId: 'u32', - resourceId: 'u32' + resourceId: 'u32', + }, + ResourceRemoval: { + nftId: 'u32', + resourceId: 'u32', + }, + ResourceAccepted: { + nftId: 'u32', + resourceId: 'u32', + }, + ResourceRemovalAccepted: { + nftId: 'u32', + resourceId: 'u32', + }, + PrioritySet: { + collectionId: 'u32', + nftId: 'u32' } } }, /** - * Lookup279: pallet_rmrk_equip::pallet::Event + * Lookup281: pallet_rmrk_equip::pallet::Event **/ PalletRmrkEquipEvent: { _enum: { @@ -2178,7 +2256,7 @@ } }, /** - * Lookup280: pallet_evm::pallet::Event + * Lookup282: pallet_evm::pallet::Event **/ PalletEvmEvent: { _enum: { @@ -2192,7 +2270,7 @@ } }, /** - * Lookup281: ethereum::log::Log + * Lookup283: ethereum::log::Log **/ EthereumLog: { address: 'H160', @@ -2200,7 +2278,7 @@ data: 'Bytes' }, /** - * Lookup282: pallet_ethereum::pallet::Event + * Lookup284: pallet_ethereum::pallet::Event **/ PalletEthereumEvent: { _enum: { @@ -2208,7 +2286,7 @@ } }, /** - * Lookup283: evm_core::error::ExitReason + * Lookup285: evm_core::error::ExitReason **/ EvmCoreErrorExitReason: { _enum: { @@ -2219,13 +2297,13 @@ } }, /** - * Lookup284: evm_core::error::ExitSucceed + * Lookup286: evm_core::error::ExitSucceed **/ EvmCoreErrorExitSucceed: { _enum: ['Stopped', 'Returned', 'Suicided'] }, /** - * Lookup285: evm_core::error::ExitError + * Lookup287: evm_core::error::ExitError **/ EvmCoreErrorExitError: { _enum: { @@ -2247,13 +2325,13 @@ } }, /** - * Lookup288: evm_core::error::ExitRevert + * Lookup290: evm_core::error::ExitRevert **/ EvmCoreErrorExitRevert: { _enum: ['Reverted'] }, /** - * Lookup289: evm_core::error::ExitFatal + * Lookup291: evm_core::error::ExitFatal **/ EvmCoreErrorExitFatal: { _enum: { @@ -2264,7 +2342,7 @@ } }, /** - * Lookup290: frame_system::Phase + * Lookup292: frame_system::Phase **/ FrameSystemPhase: { _enum: { @@ -2274,14 +2352,14 @@ } }, /** - * Lookup292: frame_system::LastRuntimeUpgradeInfo + * Lookup294: frame_system::LastRuntimeUpgradeInfo **/ FrameSystemLastRuntimeUpgradeInfo: { specVersion: 'Compact', specName: 'Text' }, /** - * Lookup293: frame_system::limits::BlockWeights + * Lookup295: frame_system::limits::BlockWeights **/ FrameSystemLimitsBlockWeights: { baseBlock: 'u64', @@ -2289,7 +2367,7 @@ perClass: 'FrameSupportWeightsPerDispatchClassWeightsPerClass' }, /** - * Lookup294: frame_support::weights::PerDispatchClass + * Lookup296: frame_support::weights::PerDispatchClass **/ FrameSupportWeightsPerDispatchClassWeightsPerClass: { normal: 'FrameSystemLimitsWeightsPerClass', @@ -2297,7 +2375,7 @@ mandatory: 'FrameSystemLimitsWeightsPerClass' }, /** - * Lookup295: frame_system::limits::WeightsPerClass + * Lookup297: frame_system::limits::WeightsPerClass **/ FrameSystemLimitsWeightsPerClass: { baseExtrinsic: 'u64', @@ -2306,13 +2384,13 @@ reserved: 'Option' }, /** - * Lookup297: frame_system::limits::BlockLength + * Lookup299: frame_system::limits::BlockLength **/ FrameSystemLimitsBlockLength: { max: 'FrameSupportWeightsPerDispatchClassU32' }, /** - * Lookup298: frame_support::weights::PerDispatchClass + * Lookup300: frame_support::weights::PerDispatchClass **/ FrameSupportWeightsPerDispatchClassU32: { normal: 'u32', @@ -2320,14 +2398,14 @@ mandatory: 'u32' }, /** - * Lookup299: frame_support::weights::RuntimeDbWeight + * Lookup301: frame_support::weights::RuntimeDbWeight **/ FrameSupportWeightsRuntimeDbWeight: { read: 'u64', write: 'u64' }, /** - * Lookup300: sp_version::RuntimeVersion + * Lookup302: sp_version::RuntimeVersion **/ SpVersionRuntimeVersion: { specName: 'Text', @@ -2340,19 +2418,19 @@ stateVersion: 'u8' }, /** - * Lookup304: frame_system::pallet::Error + * Lookup306: frame_system::pallet::Error **/ FrameSystemError: { _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered'] }, /** - * Lookup306: orml_vesting::module::Error + * Lookup308: orml_vesting::module::Error **/ OrmlVestingModuleError: { _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded'] }, /** - * Lookup308: cumulus_pallet_xcmp_queue::InboundChannelDetails + * Lookup310: cumulus_pallet_xcmp_queue::InboundChannelDetails **/ CumulusPalletXcmpQueueInboundChannelDetails: { sender: 'u32', @@ -2360,19 +2438,19 @@ messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>' }, /** - * Lookup309: cumulus_pallet_xcmp_queue::InboundState + * Lookup311: cumulus_pallet_xcmp_queue::InboundState **/ CumulusPalletXcmpQueueInboundState: { _enum: ['Ok', 'Suspended'] }, /** - * Lookup312: polkadot_parachain::primitives::XcmpMessageFormat + * Lookup314: polkadot_parachain::primitives::XcmpMessageFormat **/ PolkadotParachainPrimitivesXcmpMessageFormat: { _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals'] }, /** - * Lookup315: cumulus_pallet_xcmp_queue::OutboundChannelDetails + * Lookup317: cumulus_pallet_xcmp_queue::OutboundChannelDetails **/ CumulusPalletXcmpQueueOutboundChannelDetails: { recipient: 'u32', @@ -2382,13 +2460,13 @@ lastIndex: 'u16' }, /** - * Lookup316: cumulus_pallet_xcmp_queue::OutboundState + * Lookup318: cumulus_pallet_xcmp_queue::OutboundState **/ CumulusPalletXcmpQueueOutboundState: { _enum: ['Ok', 'Suspended'] }, /** - * Lookup318: cumulus_pallet_xcmp_queue::QueueConfigData + * Lookup320: cumulus_pallet_xcmp_queue::QueueConfigData **/ CumulusPalletXcmpQueueQueueConfigData: { suspendThreshold: 'u32', @@ -2399,29 +2477,29 @@ xcmpMaxIndividualWeight: 'u64' }, /** - * Lookup320: cumulus_pallet_xcmp_queue::pallet::Error + * Lookup322: cumulus_pallet_xcmp_queue::pallet::Error **/ CumulusPalletXcmpQueueError: { _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit'] }, /** - * Lookup321: pallet_xcm::pallet::Error + * Lookup323: pallet_xcm::pallet::Error **/ PalletXcmError: { _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed'] }, /** - * Lookup322: cumulus_pallet_xcm::pallet::Error + * Lookup324: cumulus_pallet_xcm::pallet::Error **/ CumulusPalletXcmError: 'Null', /** - * Lookup323: cumulus_pallet_dmp_queue::ConfigData + * Lookup325: cumulus_pallet_dmp_queue::ConfigData **/ CumulusPalletDmpQueueConfigData: { maxIndividual: 'u64' }, /** - * Lookup324: cumulus_pallet_dmp_queue::PageIndexData + * Lookup326: cumulus_pallet_dmp_queue::PageIndexData **/ CumulusPalletDmpQueuePageIndexData: { beginUsed: 'u32', @@ -2429,19 +2507,19 @@ overweightCount: 'u64' }, /** - * Lookup327: cumulus_pallet_dmp_queue::pallet::Error + * Lookup329: cumulus_pallet_dmp_queue::pallet::Error **/ CumulusPalletDmpQueueError: { _enum: ['Unknown', 'OverLimit'] }, /** - * Lookup331: pallet_unique::Error + * Lookup333: pallet_unique::Error **/ PalletUniqueError: { _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument'] }, /** - * Lookup332: up_data_structs::Collection + * Lookup334: up_data_structs::Collection **/ UpDataStructsCollection: { owner: 'AccountId32', @@ -2451,10 +2529,11 @@ tokenPrefix: 'Bytes', sponsorship: 'UpDataStructsSponsorshipState', limits: 'UpDataStructsCollectionLimits', - permissions: 'UpDataStructsCollectionPermissions' + permissions: 'UpDataStructsCollectionPermissions', + externalCollection: 'bool' }, /** - * Lookup333: up_data_structs::SponsorshipState + * Lookup335: up_data_structs::SponsorshipState **/ UpDataStructsSponsorshipState: { _enum: { @@ -2464,7 +2543,7 @@ } }, /** - * Lookup334: up_data_structs::Properties + * Lookup336: up_data_structs::Properties **/ UpDataStructsProperties: { map: 'UpDataStructsPropertiesMapBoundedVec', @@ -2472,15 +2551,15 @@ spaceLimit: 'u32' }, /** - * Lookup335: up_data_structs::PropertiesMap> + * Lookup337: up_data_structs::PropertiesMap> **/ UpDataStructsPropertiesMapBoundedVec: 'BTreeMap', /** - * Lookup340: up_data_structs::PropertiesMap + * Lookup342: up_data_structs::PropertiesMap **/ UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap', /** - * Lookup347: up_data_structs::CollectionStats + * Lookup349: up_data_structs::CollectionStats **/ UpDataStructsCollectionStats: { created: 'u32', @@ -2497,7 +2576,7 @@ /** * Lookup324: PhantomType::up_data_structs **/ - PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,UpDataStructsRmrkCollectionInfo,UpDataStructsRmrkNftInfo,UpDataStructsRmrkResourceInfo,UpDataStructsRmrkPropertyInfo,UpDataStructsRmrkBaseInfo,UpDataStructsRmrkPartType,UpDataStructsRmrkTheme,UpDataStructsRmrkNftChild);0]', + PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]', /** * Lookup326: up_data_structs::TokenData> **/ @@ -2518,12 +2597,13 @@ limits: 'UpDataStructsCollectionLimits', permissions: 'UpDataStructsCollectionPermissions', tokenPropertyPermissions: 'Vec', - properties: 'Vec' + properties: 'Vec', + readOnly: 'bool' }, /** * Lookup329: up_data_structs::rmrk::CollectionInfo, frame_support::storage::bounded_vec::BoundedVec, sp_core::crypto::AccountId32> **/ - UpDataStructsRmrkCollectionInfo: { + RmrkTraitsCollectionCollectionInfo: { issuer: 'AccountId32', metadata: 'Bytes', max: 'Option', @@ -2533,9 +2613,9 @@ /** * Lookup332: up_data_structs::rmrk::NftInfo> **/ - UpDataStructsRmrkNftInfo: { - owner: 'UpDataStructsRmrkAccountIdOrCollectionNftTuple', - royalty: 'Option', + RmrkTraitsNftNftInfo: { + owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple', + royalty: 'Option', metadata: 'Bytes', equipped: 'bool', pending: 'bool' @@ -2552,27 +2632,27 @@ /** * Lookup335: up_data_structs::rmrk::RoyaltyInfo **/ - UpDataStructsRmrkRoyaltyInfo: { + RmrkTraitsNftRoyaltyInfo: { recipient: 'AccountId32', amount: 'Permill' }, /** * Lookup336: up_data_structs::rmrk::ResourceInfo, frame_support::storage::bounded_vec::BoundedVec, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkResourceInfo: { + RmrkTraitsResourceResourceInfo: { id: 'u32', - resource: 'UpDataStructsRmrkResourceTypes', + resource: 'RmrkTraitsResourceResourceTypes', pending: 'bool', pendingRemoval: 'bool' }, /** * Lookup339: up_data_structs::rmrk::ResourceTypes, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkResourceTypes: { + RmrkTraitsResourceResourceTypes: { _enum: { - Basic: 'UpDataStructsRmrkBasicResource', - Composable: 'UpDataStructsRmrkComposableResource', - Slot: 'UpDataStructsRmrkSlotResource' + Basic: 'RmrkTraitsResourceBasicResource', + Composable: 'RmrkTraitsResourceComposableResource', + Slot: 'RmrkTraitsResourceSlotResource' } }, /** @@ -2609,14 +2689,14 @@ /** * Lookup344: up_data_structs::rmrk::PropertyInfo, frame_support::storage::bounded_vec::BoundedVec> **/ - UpDataStructsRmrkPropertyInfo: { + RmrkTraitsPropertyPropertyInfo: { key: 'Bytes', value: 'Bytes' }, /** * Lookup347: up_data_structs::rmrk::BaseInfo> **/ - UpDataStructsRmrkBaseInfo: { + RmrkTraitsBaseBaseInfo: { issuer: 'AccountId32', baseType: 'Bytes', symbol: 'Bytes' @@ -2675,7 +2755,7 @@ /** * Lookup356: up_data_structs::rmrk::NftChild **/ - UpDataStructsRmrkNftChild: { + RmrkTraitsNftNftChild: { collectionId: 'u32', nftId: 'u32' }, @@ -2683,7 +2763,7 @@ * Lookup358: pallet_common::pallet::Error **/ PalletCommonError: { - _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'NestingIsDisabled', 'OnlyOwnerAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey'] + _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'NestingIsDisabled', 'OnlyOwnerAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal'] }, /** * Lookup360: pallet_fungible::pallet::Error --- a/tests/src/interfaces/registry.ts +++ b/tests/src/interfaces/registry.ts @@ -139,6 +139,24 @@ PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel; PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData; PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction; + RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo; + RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo; + RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple; + RmrkTraitsNftNftChild: RmrkTraitsNftNftChild; + RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo; + RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo; + RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList; + RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart; + RmrkTraitsPartPartType: RmrkTraitsPartPartType; + RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart; + RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo; + RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource; + RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource; + RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo; + RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes; + RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource; + RmrkTraitsTheme: RmrkTraitsTheme; + RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty; SpCoreEcdsaSignature: SpCoreEcdsaSignature; SpCoreEd25519Signature: SpCoreEd25519Signature; SpCoreSr25519Signature: SpCoreSr25519Signature; @@ -173,24 +191,6 @@ UpDataStructsProperty: UpDataStructsProperty; UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission; UpDataStructsPropertyPermission: UpDataStructsPropertyPermission; - UpDataStructsRmrkAccountIdOrCollectionNftTuple: UpDataStructsRmrkAccountIdOrCollectionNftTuple; - UpDataStructsRmrkBaseInfo: UpDataStructsRmrkBaseInfo; - UpDataStructsRmrkBasicResource: UpDataStructsRmrkBasicResource; - UpDataStructsRmrkCollectionInfo: UpDataStructsRmrkCollectionInfo; - UpDataStructsRmrkComposableResource: UpDataStructsRmrkComposableResource; - UpDataStructsRmrkEquippableList: UpDataStructsRmrkEquippableList; - UpDataStructsRmrkFixedPart: UpDataStructsRmrkFixedPart; - UpDataStructsRmrkNftChild: UpDataStructsRmrkNftChild; - UpDataStructsRmrkNftInfo: UpDataStructsRmrkNftInfo; - UpDataStructsRmrkPartType: UpDataStructsRmrkPartType; - UpDataStructsRmrkPropertyInfo: UpDataStructsRmrkPropertyInfo; - UpDataStructsRmrkResourceInfo: UpDataStructsRmrkResourceInfo; - UpDataStructsRmrkResourceTypes: UpDataStructsRmrkResourceTypes; - UpDataStructsRmrkRoyaltyInfo: UpDataStructsRmrkRoyaltyInfo; - UpDataStructsRmrkSlotPart: UpDataStructsRmrkSlotPart; - UpDataStructsRmrkSlotResource: UpDataStructsRmrkSlotResource; - UpDataStructsRmrkTheme: UpDataStructsRmrkTheme; - UpDataStructsRmrkThemeProperty: UpDataStructsRmrkThemeProperty; UpDataStructsRpcCollection: UpDataStructsRpcCollection; UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit; UpDataStructsSponsorshipState: UpDataStructsSponsorshipState; --- a/tests/src/interfaces/rmrk/definitions.ts +++ b/tests/src/interfaces/rmrk/definitions.ts @@ -31,14 +31,14 @@ types: {}, rpc: { lastCollectionIdx: fn('Get the latest created collection id', [], 'u32'), - collectionById: fn('Get collection by id', [{name: 'id', type: 'u32'}], 'Option'), + collectionById: fn('Get collection by id', [{name: 'id', type: 'u32'}], 'Option'), nftById: fn( 'Get NFT by collection id and NFT id', [ {name: 'collectionId', type: 'u32'}, {name: 'nftId', type: 'u32'}, ], - 'Option', + 'Option', ), accountTokens: fn( 'Get tokens owned by an account in a collection', @@ -54,7 +54,7 @@ {name: 'collectionId', type: 'u32'}, {name: 'nftId', type: 'u32'}, ], - 'Vec', + 'Vec', ), collectionProperties: fn( 'Get collection properties', @@ -62,7 +62,7 @@ {name: 'collectionId', type: 'u32'}, {name: 'filterKeys', type: 'Vec', isOptional: true}, ], - 'Vec', + 'Vec', ), nftProperties: fn( 'Get NFT properties', @@ -71,7 +71,7 @@ {name: 'nftId', type: 'u32'}, {name: 'filterKeys', type: 'Vec', isOptional: true}, ], - 'Vec', + 'Vec', ), nftResources: fn( 'Get NFT resources', @@ -79,7 +79,7 @@ {name: 'collectionId', type: 'u32'}, {name: 'nftId', type: 'u32'}, ], - 'Vec', + 'Vec', ), nftResourcePriorities: fn( 'Get NFT resource priorities', @@ -92,12 +92,12 @@ base: fn( 'Get base info', [{name: 'baseId', type: 'u32'}], - 'Option', + 'Option', ), baseParts: fn( 'Get all Base\'s parts', [{name: 'baseId', type: 'u32'}], - 'Vec', + 'Vec', ), themeNames: fn( 'Get Base\'s theme names', @@ -111,7 +111,7 @@ {name: 'themeName', type: 'String'}, {name: 'keys', type: 'Option>'}, ], - 'Option', + 'Option', ), }, }; --- a/tests/src/interfaces/types-lookup.ts +++ b/tests/src/interfaces/types-lookup.ts @@ -1677,12 +1677,42 @@ readonly recipient: Option; readonly royaltyAmount: Option; readonly metadata: Bytes; + readonly transferable: bool; } & Struct; readonly isBurnNft: boolean; readonly asBurnNft: { readonly collectionId: u32; readonly nftId: u32; } & Struct; + readonly isSend: boolean; + readonly asSend: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple; + } & Struct; + readonly isAcceptNft: boolean; + readonly asAcceptNft: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple; + } & Struct; + readonly isRejectNft: boolean; + readonly asRejectNft: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + } & Struct; + readonly isAcceptResource: boolean; + readonly asAcceptResource: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly rmrkResourceId: u32; + } & Struct; + readonly isAcceptResourceRemoval: boolean; + readonly asAcceptResourceRemoval: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly rmrkResourceId: u32; + } & Struct; readonly isSetProperty: boolean; readonly asSetProperty: { readonly rmrkCollectionId: Compact; @@ -1690,38 +1720,59 @@ readonly key: Bytes; readonly value: Bytes; } & Struct; + readonly isSetPriority: boolean; + readonly asSetPriority: { + readonly rmrkCollectionId: u32; + readonly rmrkNftId: u32; + readonly priorities: Vec; + } & Struct; readonly isAddBasicResource: boolean; readonly asAddBasicResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; readonly nftId: u32; - readonly resource: UpDataStructsRmrkBasicResource; + readonly resource: RmrkTraitsResourceBasicResource; } & Struct; readonly isAddComposableResource: boolean; readonly asAddComposableResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; readonly nftId: u32; readonly resourceId: Bytes; - readonly resource: UpDataStructsRmrkComposableResource; + readonly resource: RmrkTraitsResourceComposableResource; } & Struct; readonly isAddSlotResource: boolean; readonly asAddSlotResource: { - readonly collectionId: u32; + readonly rmrkCollectionId: u32; + readonly nftId: u32; + readonly resource: RmrkTraitsResourceSlotResource; + } & Struct; + readonly isRemoveResource: boolean; + readonly asRemoveResource: { + readonly rmrkCollectionId: u32; readonly nftId: u32; - readonly resource: UpDataStructsRmrkSlotResource; + readonly resourceId: u32; } & Struct; - readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'SetProperty' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource'; + readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource'; + } + + /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (210) */ + export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum { + readonly isAccountId: boolean; + readonly asAccountId: AccountId32; + readonly isCollectionAndNftTuple: boolean; + readonly asCollectionAndNftTuple: ITuple<[u32, u32]>; + readonly type: 'AccountId' | 'CollectionAndNftTuple'; } - /** @name UpDataStructsRmrkBasicResource (212) */ - export interface UpDataStructsRmrkBasicResource extends Struct { + /** @name RmrkTraitsResourceBasicResource (214) */ + export interface RmrkTraitsResourceBasicResource extends Struct { readonly src: Option; readonly metadata: Option; readonly license: Option; readonly thumb: Option; } - /** @name UpDataStructsRmrkComposableResource (215) */ - export interface UpDataStructsRmrkComposableResource extends Struct { + /** @name RmrkTraitsResourceComposableResource (217) */ + export interface RmrkTraitsResourceComposableResource extends Struct { readonly parts: Vec; readonly base: u32; readonly src: Option; @@ -1730,8 +1781,8 @@ readonly thumb: Option; } - /** @name UpDataStructsRmrkSlotResource (217) */ - export interface UpDataStructsRmrkSlotResource extends Struct { + /** @name RmrkTraitsResourceSlotResource (219) */ + export interface RmrkTraitsResourceSlotResource extends Struct { readonly base: u32; readonly src: Option; readonly metadata: Option; @@ -1740,48 +1791,48 @@ readonly thumb: Option; } - /** @name PalletRmrkEquipCall (218) */ + /** @name PalletRmrkEquipCall (220) */ export interface PalletRmrkEquipCall extends Enum { readonly isCreateBase: boolean; readonly asCreateBase: { readonly baseType: Bytes; readonly symbol: Bytes; - readonly parts: Vec; + readonly parts: Vec; } & Struct; readonly isThemeAdd: boolean; readonly asThemeAdd: { readonly baseId: u32; - readonly theme: UpDataStructsRmrkTheme; + readonly theme: RmrkTraitsTheme; } & Struct; readonly type: 'CreateBase' | 'ThemeAdd'; } - /** @name UpDataStructsRmrkPartType (220) */ - export interface UpDataStructsRmrkPartType extends Enum { + /** @name RmrkTraitsPartPartType (222) */ + export interface RmrkTraitsPartPartType extends Enum { readonly isFixedPart: boolean; - readonly asFixedPart: UpDataStructsRmrkFixedPart; + readonly asFixedPart: RmrkTraitsPartFixedPart; readonly isSlotPart: boolean; - readonly asSlotPart: UpDataStructsRmrkSlotPart; + readonly asSlotPart: RmrkTraitsPartSlotPart; readonly type: 'FixedPart' | 'SlotPart'; } - /** @name UpDataStructsRmrkFixedPart (222) */ - export interface UpDataStructsRmrkFixedPart extends Struct { + /** @name RmrkTraitsPartFixedPart (224) */ + export interface RmrkTraitsPartFixedPart extends Struct { readonly id: u32; readonly z: u32; readonly src: Bytes; } - /** @name UpDataStructsRmrkSlotPart (223) */ - export interface UpDataStructsRmrkSlotPart extends Struct { + /** @name RmrkTraitsPartSlotPart (225) */ + export interface RmrkTraitsPartSlotPart extends Struct { readonly id: u32; - readonly equippable: UpDataStructsRmrkEquippableList; + readonly equippable: RmrkTraitsPartEquippableList; readonly src: Bytes; readonly z: u32; } - /** @name UpDataStructsRmrkEquippableList (224) */ - export interface UpDataStructsRmrkEquippableList extends Enum { + /** @name RmrkTraitsPartEquippableList (226) */ + export interface RmrkTraitsPartEquippableList extends Enum { readonly isAll: boolean; readonly isEmpty: boolean; readonly isCustom: boolean; @@ -1789,20 +1840,20 @@ readonly type: 'All' | 'Empty' | 'Custom'; } - /** @name UpDataStructsRmrkTheme (226) */ - export interface UpDataStructsRmrkTheme extends Struct { + /** @name RmrkTraitsTheme (228) */ + export interface RmrkTraitsTheme extends Struct { readonly name: Bytes; - readonly properties: Vec; + readonly properties: Vec; readonly inherit: bool; } - /** @name UpDataStructsRmrkThemeProperty (228) */ - export interface UpDataStructsRmrkThemeProperty extends Struct { + /** @name RmrkTraitsThemeThemeProperty (230) */ + export interface RmrkTraitsThemeThemeProperty extends Struct { readonly key: Bytes; readonly value: Bytes; } - /** @name PalletEvmCall (229) */ + /** @name PalletEvmCall (231) */ export interface PalletEvmCall extends Enum { readonly isWithdraw: boolean; readonly asWithdraw: { @@ -1847,7 +1898,7 @@ readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2'; } - /** @name PalletEthereumCall (235) */ + /** @name PalletEthereumCall (237) */ export interface PalletEthereumCall extends Enum { readonly isTransact: boolean; readonly asTransact: { @@ -1856,7 +1907,7 @@ readonly type: 'Transact'; } - /** @name EthereumTransactionTransactionV2 (236) */ + /** @name EthereumTransactionTransactionV2 (238) */ export interface EthereumTransactionTransactionV2 extends Enum { readonly isLegacy: boolean; readonly asLegacy: EthereumTransactionLegacyTransaction; @@ -1867,7 +1918,7 @@ readonly type: 'Legacy' | 'Eip2930' | 'Eip1559'; } - /** @name EthereumTransactionLegacyTransaction (237) */ + /** @name EthereumTransactionLegacyTransaction (239) */ export interface EthereumTransactionLegacyTransaction extends Struct { readonly nonce: U256; readonly gasPrice: U256; @@ -1878,7 +1929,7 @@ readonly signature: EthereumTransactionTransactionSignature; } - /** @name EthereumTransactionTransactionAction (238) */ + /** @name EthereumTransactionTransactionAction (240) */ export interface EthereumTransactionTransactionAction extends Enum { readonly isCall: boolean; readonly asCall: H160; @@ -1886,14 +1937,14 @@ readonly type: 'Call' | 'Create'; } - /** @name EthereumTransactionTransactionSignature (239) */ + /** @name EthereumTransactionTransactionSignature (241) */ export interface EthereumTransactionTransactionSignature extends Struct { readonly v: u64; readonly r: H256; readonly s: H256; } - /** @name EthereumTransactionEip2930Transaction (241) */ + /** @name EthereumTransactionEip2930Transaction (243) */ export interface EthereumTransactionEip2930Transaction extends Struct { readonly chainId: u64; readonly nonce: U256; @@ -1908,13 +1959,13 @@ readonly s: H256; } - /** @name EthereumTransactionAccessListItem (243) */ + /** @name EthereumTransactionAccessListItem (245) */ export interface EthereumTransactionAccessListItem extends Struct { readonly address: H160; readonly storageKeys: Vec; } - /** @name EthereumTransactionEip1559Transaction (244) */ + /** @name EthereumTransactionEip1559Transaction (246) */ export interface EthereumTransactionEip1559Transaction extends Struct { readonly chainId: u64; readonly nonce: U256; @@ -1930,7 +1981,7 @@ readonly s: H256; } - /** @name PalletEvmMigrationCall (245) */ + /** @name PalletEvmMigrationCall (247) */ export interface PalletEvmMigrationCall extends Enum { readonly isBegin: boolean; readonly asBegin: { @@ -1949,7 +2000,7 @@ readonly type: 'Begin' | 'SetData' | 'Finish'; } - /** @name PalletSudoEvent (248) */ + /** @name PalletSudoEvent (250) */ export interface PalletSudoEvent extends Enum { readonly isSudid: boolean; readonly asSudid: { @@ -1966,7 +2017,7 @@ readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone'; } - /** @name SpRuntimeDispatchError (250) */ + /** @name SpRuntimeDispatchError (252) */ export interface SpRuntimeDispatchError extends Enum { readonly isOther: boolean; readonly isCannotLookup: boolean; @@ -1985,13 +2036,13 @@ readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional'; } - /** @name SpRuntimeModuleError (251) */ + /** @name SpRuntimeModuleError (253) */ export interface SpRuntimeModuleError extends Struct { readonly index: u8; readonly error: U8aFixed; } - /** @name SpRuntimeTokenError (252) */ + /** @name SpRuntimeTokenError (254) */ export interface SpRuntimeTokenError extends Enum { readonly isNoFunds: boolean; readonly isWouldDie: boolean; @@ -2003,7 +2054,7 @@ readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported'; } - /** @name SpRuntimeArithmeticError (253) */ + /** @name SpRuntimeArithmeticError (255) */ export interface SpRuntimeArithmeticError extends Enum { readonly isUnderflow: boolean; readonly isOverflow: boolean; @@ -2011,20 +2062,20 @@ readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero'; } - /** @name SpRuntimeTransactionalError (254) */ + /** @name SpRuntimeTransactionalError (256) */ export interface SpRuntimeTransactionalError extends Enum { readonly isLimitReached: boolean; readonly isNoLayer: boolean; readonly type: 'LimitReached' | 'NoLayer'; } - /** @name PalletSudoError (255) */ + /** @name PalletSudoError (257) */ export interface PalletSudoError extends Enum { readonly isRequireSudo: boolean; readonly type: 'RequireSudo'; } - /** @name FrameSystemAccountInfo (256) */ + /** @name FrameSystemAccountInfo (258) */ export interface FrameSystemAccountInfo extends Struct { readonly nonce: u32; readonly consumers: u32; @@ -2033,19 +2084,19 @@ readonly data: PalletBalancesAccountData; } - /** @name FrameSupportWeightsPerDispatchClassU64 (257) */ + /** @name FrameSupportWeightsPerDispatchClassU64 (259) */ export interface FrameSupportWeightsPerDispatchClassU64 extends Struct { readonly normal: u64; readonly operational: u64; readonly mandatory: u64; } - /** @name SpRuntimeDigest (258) */ + /** @name SpRuntimeDigest (260) */ export interface SpRuntimeDigest extends Struct { readonly logs: Vec; } - /** @name SpRuntimeDigestDigestItem (260) */ + /** @name SpRuntimeDigestDigestItem (262) */ export interface SpRuntimeDigestDigestItem extends Enum { readonly isOther: boolean; readonly asOther: Bytes; @@ -2059,14 +2110,14 @@ readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated'; } - /** @name FrameSystemEventRecord (262) */ + /** @name FrameSystemEventRecord (264) */ export interface FrameSystemEventRecord extends Struct { readonly phase: FrameSystemPhase; readonly event: Event; readonly topics: Vec; } - /** @name FrameSystemEvent (264) */ + /** @name FrameSystemEvent (266) */ export interface FrameSystemEvent extends Enum { readonly isExtrinsicSuccess: boolean; readonly asExtrinsicSuccess: { @@ -2094,14 +2145,14 @@ readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked'; } - /** @name FrameSupportWeightsDispatchInfo (265) */ + /** @name FrameSupportWeightsDispatchInfo (267) */ export interface FrameSupportWeightsDispatchInfo extends Struct { readonly weight: u64; readonly class: FrameSupportWeightsDispatchClass; readonly paysFee: FrameSupportWeightsPays; } - /** @name FrameSupportWeightsDispatchClass (266) */ + /** @name FrameSupportWeightsDispatchClass (268) */ export interface FrameSupportWeightsDispatchClass extends Enum { readonly isNormal: boolean; readonly isOperational: boolean; @@ -2109,14 +2160,14 @@ readonly type: 'Normal' | 'Operational' | 'Mandatory'; } - /** @name FrameSupportWeightsPays (267) */ + /** @name FrameSupportWeightsPays (269) */ export interface FrameSupportWeightsPays extends Enum { readonly isYes: boolean; readonly isNo: boolean; readonly type: 'Yes' | 'No'; } - /** @name OrmlVestingModuleEvent (268) */ + /** @name OrmlVestingModuleEvent (270) */ export interface OrmlVestingModuleEvent extends Enum { readonly isVestingScheduleAdded: boolean; readonly asVestingScheduleAdded: { @@ -2136,7 +2187,7 @@ readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated'; } - /** @name CumulusPalletXcmpQueueEvent (269) */ + /** @name CumulusPalletXcmpQueueEvent (271) */ export interface CumulusPalletXcmpQueueEvent extends Enum { readonly isSuccess: boolean; readonly asSuccess: Option; @@ -2157,7 +2208,7 @@ readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced'; } - /** @name PalletXcmEvent (270) */ + /** @name PalletXcmEvent (272) */ export interface PalletXcmEvent extends Enum { readonly isAttempted: boolean; readonly asAttempted: XcmV2TraitsOutcome; @@ -2194,7 +2245,7 @@ readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail'; } - /** @name XcmV2TraitsOutcome (271) */ + /** @name XcmV2TraitsOutcome (273) */ export interface XcmV2TraitsOutcome extends Enum { readonly isComplete: boolean; readonly asComplete: u64; @@ -2205,7 +2256,7 @@ readonly type: 'Complete' | 'Incomplete' | 'Error'; } - /** @name CumulusPalletXcmEvent (273) */ + /** @name CumulusPalletXcmEvent (275) */ export interface CumulusPalletXcmEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: U8aFixed; @@ -2216,7 +2267,7 @@ readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; } - /** @name CumulusPalletDmpQueueEvent (274) */ + /** @name CumulusPalletDmpQueueEvent (276) */ export interface CumulusPalletDmpQueueEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: U8aFixed; @@ -2233,7 +2284,7 @@ readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced'; } - /** @name PalletUniqueRawEvent (275) */ + /** @name PalletUniqueRawEvent (277) */ export interface PalletUniqueRawEvent extends Enum { readonly isCollectionSponsorRemoved: boolean; readonly asCollectionSponsorRemoved: u32; @@ -2258,7 +2309,7 @@ readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet'; } - /** @name PalletCommonEvent (276) */ + /** @name PalletCommonEvent (278) */ export interface PalletCommonEvent extends Enum { readonly isCollectionCreated: boolean; readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>; @@ -2285,14 +2336,14 @@ readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet'; } - /** @name PalletStructureEvent (277) */ + /** @name PalletStructureEvent (279) */ export interface PalletStructureEvent extends Enum { readonly isExecuted: boolean; readonly asExecuted: Result; readonly type: 'Executed'; } - /** @name PalletRmrkCoreEvent (278) */ + /** @name PalletRmrkCoreEvent (280) */ export interface PalletRmrkCoreEvent extends Enum { readonly isCollectionCreated: boolean; readonly asCollectionCreated: { @@ -2326,6 +2377,27 @@ readonly owner: AccountId32; readonly nftId: u32; } & Struct; + readonly isNftSent: boolean; + readonly asNftSent: { + readonly sender: AccountId32; + readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple; + readonly collectionId: u32; + readonly nftId: u32; + readonly approvalRequired: bool; + } & Struct; + readonly isNftAccepted: boolean; + readonly asNftAccepted: { + readonly sender: AccountId32; + readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple; + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; + readonly isNftRejected: boolean; + readonly asNftRejected: { + readonly sender: AccountId32; + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; readonly isPropertySet: boolean; readonly asPropertySet: { readonly collectionId: u32; @@ -2338,10 +2410,30 @@ readonly nftId: u32; readonly resourceId: u32; } & Struct; - readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'PropertySet' | 'ResourceAdded'; + readonly isResourceRemoval: boolean; + readonly asResourceRemoval: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isResourceAccepted: boolean; + readonly asResourceAccepted: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isResourceRemovalAccepted: boolean; + readonly asResourceRemovalAccepted: { + readonly nftId: u32; + readonly resourceId: u32; + } & Struct; + readonly isPrioritySet: boolean; + readonly asPrioritySet: { + readonly collectionId: u32; + readonly nftId: u32; + } & Struct; + readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet'; } - /** @name PalletRmrkEquipEvent (279) */ + /** @name PalletRmrkEquipEvent (281) */ export interface PalletRmrkEquipEvent extends Enum { readonly isBaseCreated: boolean; readonly asBaseCreated: { @@ -2351,7 +2443,7 @@ readonly type: 'BaseCreated'; } - /** @name PalletEvmEvent (280) */ + /** @name PalletEvmEvent (282) */ export interface PalletEvmEvent extends Enum { readonly isLog: boolean; readonly asLog: EthereumLog; @@ -2370,21 +2462,21 @@ readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw'; } - /** @name EthereumLog (281) */ + /** @name EthereumLog (283) */ export interface EthereumLog extends Struct { readonly address: H160; readonly topics: Vec; readonly data: Bytes; } - /** @name PalletEthereumEvent (282) */ + /** @name PalletEthereumEvent (284) */ export interface PalletEthereumEvent extends Enum { readonly isExecuted: boolean; readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>; readonly type: 'Executed'; } - /** @name EvmCoreErrorExitReason (283) */ + /** @name EvmCoreErrorExitReason (285) */ export interface EvmCoreErrorExitReason extends Enum { readonly isSucceed: boolean; readonly asSucceed: EvmCoreErrorExitSucceed; @@ -2397,7 +2489,7 @@ readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal'; } - /** @name EvmCoreErrorExitSucceed (284) */ + /** @name EvmCoreErrorExitSucceed (286) */ export interface EvmCoreErrorExitSucceed extends Enum { readonly isStopped: boolean; readonly isReturned: boolean; @@ -2405,7 +2497,7 @@ readonly type: 'Stopped' | 'Returned' | 'Suicided'; } - /** @name EvmCoreErrorExitError (285) */ + /** @name EvmCoreErrorExitError (287) */ export interface EvmCoreErrorExitError extends Enum { readonly isStackUnderflow: boolean; readonly isStackOverflow: boolean; @@ -2426,13 +2518,13 @@ readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode'; } - /** @name EvmCoreErrorExitRevert (288) */ + /** @name EvmCoreErrorExitRevert (290) */ export interface EvmCoreErrorExitRevert extends Enum { readonly isReverted: boolean; readonly type: 'Reverted'; } - /** @name EvmCoreErrorExitFatal (289) */ + /** @name EvmCoreErrorExitFatal (291) */ export interface EvmCoreErrorExitFatal extends Enum { readonly isNotSupported: boolean; readonly isUnhandledInterrupt: boolean; @@ -2443,7 +2535,7 @@ readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other'; } - /** @name FrameSystemPhase (290) */ + /** @name FrameSystemPhase (292) */ export interface FrameSystemPhase extends Enum { readonly isApplyExtrinsic: boolean; readonly asApplyExtrinsic: u32; @@ -2452,27 +2544,27 @@ readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; } - /** @name FrameSystemLastRuntimeUpgradeInfo (292) */ + /** @name FrameSystemLastRuntimeUpgradeInfo (294) */ export interface FrameSystemLastRuntimeUpgradeInfo extends Struct { readonly specVersion: Compact; readonly specName: Text; } - /** @name FrameSystemLimitsBlockWeights (293) */ + /** @name FrameSystemLimitsBlockWeights (295) */ export interface FrameSystemLimitsBlockWeights extends Struct { readonly baseBlock: u64; readonly maxBlock: u64; readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass; } - /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (294) */ + /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (296) */ export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct { readonly normal: FrameSystemLimitsWeightsPerClass; readonly operational: FrameSystemLimitsWeightsPerClass; readonly mandatory: FrameSystemLimitsWeightsPerClass; } - /** @name FrameSystemLimitsWeightsPerClass (295) */ + /** @name FrameSystemLimitsWeightsPerClass (297) */ export interface FrameSystemLimitsWeightsPerClass extends Struct { readonly baseExtrinsic: u64; readonly maxExtrinsic: Option; @@ -2480,25 +2572,25 @@ readonly reserved: Option; } - /** @name FrameSystemLimitsBlockLength (297) */ + /** @name FrameSystemLimitsBlockLength (299) */ export interface FrameSystemLimitsBlockLength extends Struct { readonly max: FrameSupportWeightsPerDispatchClassU32; } - /** @name FrameSupportWeightsPerDispatchClassU32 (298) */ + /** @name FrameSupportWeightsPerDispatchClassU32 (300) */ export interface FrameSupportWeightsPerDispatchClassU32 extends Struct { readonly normal: u32; readonly operational: u32; readonly mandatory: u32; } - /** @name FrameSupportWeightsRuntimeDbWeight (299) */ + /** @name FrameSupportWeightsRuntimeDbWeight (301) */ export interface FrameSupportWeightsRuntimeDbWeight extends Struct { readonly read: u64; readonly write: u64; } - /** @name SpVersionRuntimeVersion (300) */ + /** @name SpVersionRuntimeVersion (302) */ export interface SpVersionRuntimeVersion extends Struct { readonly specName: Text; readonly implName: Text; @@ -2510,7 +2602,7 @@ readonly stateVersion: u8; } - /** @name FrameSystemError (304) */ + /** @name FrameSystemError (306) */ export interface FrameSystemError extends Enum { readonly isInvalidSpecName: boolean; readonly isSpecVersionNeedsToIncrease: boolean; @@ -2521,7 +2613,7 @@ readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered'; } - /** @name OrmlVestingModuleError (306) */ + /** @name OrmlVestingModuleError (308) */ export interface OrmlVestingModuleError extends Enum { readonly isZeroVestingPeriod: boolean; readonly isZeroVestingPeriodCount: boolean; @@ -2532,21 +2624,21 @@ readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded'; } - /** @name CumulusPalletXcmpQueueInboundChannelDetails (308) */ + /** @name CumulusPalletXcmpQueueInboundChannelDetails (310) */ export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { readonly sender: u32; readonly state: CumulusPalletXcmpQueueInboundState; readonly messageMetadata: Vec>; } - /** @name CumulusPalletXcmpQueueInboundState (309) */ + /** @name CumulusPalletXcmpQueueInboundState (311) */ export interface CumulusPalletXcmpQueueInboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: 'Ok' | 'Suspended'; } - /** @name PolkadotParachainPrimitivesXcmpMessageFormat (312) */ + /** @name PolkadotParachainPrimitivesXcmpMessageFormat (314) */ export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum { readonly isConcatenatedVersionedXcm: boolean; readonly isConcatenatedEncodedBlob: boolean; @@ -2554,7 +2646,7 @@ readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; } - /** @name CumulusPalletXcmpQueueOutboundChannelDetails (315) */ + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (317) */ export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { readonly recipient: u32; readonly state: CumulusPalletXcmpQueueOutboundState; @@ -2563,14 +2655,14 @@ readonly lastIndex: u16; } - /** @name CumulusPalletXcmpQueueOutboundState (316) */ + /** @name CumulusPalletXcmpQueueOutboundState (318) */ export interface CumulusPalletXcmpQueueOutboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: 'Ok' | 'Suspended'; } - /** @name CumulusPalletXcmpQueueQueueConfigData (318) */ + /** @name CumulusPalletXcmpQueueQueueConfigData (320) */ export interface CumulusPalletXcmpQueueQueueConfigData extends Struct { readonly suspendThreshold: u32; readonly dropThreshold: u32; @@ -2580,7 +2672,7 @@ readonly xcmpMaxIndividualWeight: u64; } - /** @name CumulusPalletXcmpQueueError (320) */ + /** @name CumulusPalletXcmpQueueError (322) */ export interface CumulusPalletXcmpQueueError extends Enum { readonly isFailedToSend: boolean; readonly isBadXcmOrigin: boolean; @@ -2590,7 +2682,7 @@ readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit'; } - /** @name PalletXcmError (321) */ + /** @name PalletXcmError (323) */ export interface PalletXcmError extends Enum { readonly isUnreachable: boolean; readonly isSendFailure: boolean; @@ -2608,29 +2700,29 @@ readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed'; } - /** @name CumulusPalletXcmError (322) */ + /** @name CumulusPalletXcmError (324) */ export type CumulusPalletXcmError = Null; - /** @name CumulusPalletDmpQueueConfigData (323) */ + /** @name CumulusPalletDmpQueueConfigData (325) */ export interface CumulusPalletDmpQueueConfigData extends Struct { readonly maxIndividual: u64; } - /** @name CumulusPalletDmpQueuePageIndexData (324) */ + /** @name CumulusPalletDmpQueuePageIndexData (326) */ export interface CumulusPalletDmpQueuePageIndexData extends Struct { readonly beginUsed: u32; readonly endUsed: u32; readonly overweightCount: u64; } - /** @name CumulusPalletDmpQueueError (327) */ + /** @name CumulusPalletDmpQueueError (329) */ export interface CumulusPalletDmpQueueError extends Enum { readonly isUnknown: boolean; readonly isOverLimit: boolean; readonly type: 'Unknown' | 'OverLimit'; } - /** @name PalletUniqueError (331) */ + /** @name PalletUniqueError (333) */ export interface PalletUniqueError extends Enum { readonly isCollectionDecimalPointLimitExceeded: boolean; readonly isConfirmUnsetSponsorFail: boolean; @@ -2638,7 +2730,7 @@ readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument'; } - /** @name UpDataStructsCollection (332) */ + /** @name UpDataStructsCollection (334) */ export interface UpDataStructsCollection extends Struct { readonly owner: AccountId32; readonly mode: UpDataStructsCollectionMode; @@ -2648,9 +2740,10 @@ readonly sponsorship: UpDataStructsSponsorshipState; readonly limits: UpDataStructsCollectionLimits; readonly permissions: UpDataStructsCollectionPermissions; + readonly externalCollection: bool; } - /** @name UpDataStructsSponsorshipState (333) */ + /** @name UpDataStructsSponsorshipState (335) */ export interface UpDataStructsSponsorshipState extends Enum { readonly isDisabled: boolean; readonly isUnconfirmed: boolean; @@ -2660,20 +2753,20 @@ readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; } - /** @name UpDataStructsProperties (334) */ + /** @name UpDataStructsProperties (336) */ export interface UpDataStructsProperties extends Struct { readonly map: UpDataStructsPropertiesMapBoundedVec; readonly consumedSpace: u32; readonly spaceLimit: u32; } - /** @name UpDataStructsPropertiesMapBoundedVec (335) */ + /** @name UpDataStructsPropertiesMapBoundedVec (337) */ export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap {} - /** @name UpDataStructsPropertiesMapPropertyPermission (340) */ + /** @name UpDataStructsPropertiesMapPropertyPermission (342) */ export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap {} - /** @name UpDataStructsCollectionStats (347) */ + /** @name UpDataStructsCollectionStats (349) */ export interface UpDataStructsCollectionStats extends Struct { readonly created: u32; readonly destroyed: u32; @@ -2707,6 +2800,7 @@ readonly permissions: UpDataStructsCollectionPermissions; readonly tokenPropertyPermissions: Vec; readonly properties: Vec; + readonly readOnly: bool; } /** @name UpDataStructsRmrkCollectionInfo (329) */ @@ -2745,7 +2839,7 @@ /** @name UpDataStructsRmrkResourceInfo (336) */ export interface UpDataStructsRmrkResourceInfo extends Struct { readonly id: u32; - readonly resource: UpDataStructsRmrkResourceTypes; + readonly resource: RmrkTraitsResourceResourceTypes; readonly pending: bool; readonly pendingRemoval: bool; } @@ -2753,11 +2847,11 @@ /** @name UpDataStructsRmrkResourceTypes (339) */ export interface UpDataStructsRmrkResourceTypes extends Enum { readonly isBasic: boolean; - readonly asBasic: UpDataStructsRmrkBasicResource; + readonly asBasic: RmrkTraitsResourceBasicResource; readonly isComposable: boolean; - readonly asComposable: UpDataStructsRmrkComposableResource; + readonly asComposable: RmrkTraitsResourceComposableResource; readonly isSlot: boolean; - readonly asSlot: UpDataStructsRmrkSlotResource; + readonly asSlot: RmrkTraitsResourceSlotResource; readonly type: 'Basic' | 'Composable' | 'Slot'; } @@ -2889,7 +2983,9 @@ readonly isPropertyKeyIsTooLong: boolean; readonly isInvalidCharacterInPropertyKey: boolean; readonly isEmptyPropertyKey: boolean; - readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey'; + readonly isCollectionIsExternal: boolean; + readonly isCollectionIsInternal: boolean; + readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal'; } /** @name PalletFungibleError (360) */ -- gitstuff