difftreelog
Merge pull request #609 from UniqueNetwork/fix/properties-rpc
in: master
Fix/properties rpc
10 files changed
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -38,7 +38,7 @@
"testNesting": "mocha --timeout 9999999 -r ts-node/register ./**/nest.test.ts",
"testUnnesting": "mocha --timeout 9999999 -r ts-node/register ./**/unnest.test.ts",
"testStructure": "mocha --timeout 9999999 -r ts-node/register ./**/nesting/**.test.ts",
- "testProperties": "mocha --timeout 9999999 -r ts-node/register ./**/properties.test.ts",
+ "testProperties": "mocha --timeout 9999999 -r ts-node/register ./**/properties.test.ts ./**/getPropertiesRpc.test.ts",
"testMigration": "mocha --timeout 9999999 -r ts-node/register ./**/nesting/migration-check.test.ts",
"testRmrk": "mocha --timeout 9999999 -r ts-node/register ./**/rmrk/**.test.ts",
"testAddCollectionAdmin": "mocha --timeout 9999999 -r ts-node/register ./**/addCollectionAdmin.test.ts",
tests/src/getPropertiesRpc.test.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/getPropertiesRpc.test.ts
@@ -0,0 +1,126 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+import {IKeyringPair} from '@polkadot/types/types';
+import {itSub, usingPlaygrounds, expect} from './util/playgrounds';
+import {UniqueHelper, UniqueNFTCollection} from './util/playgrounds/unique';
+
+const collectionProps = [
+ {key: 'col-0', value: 'col-0-value'},
+ {key: 'col-1', value: 'col-1-value'},
+];
+
+const tokenProps = [
+ {key: 'tok-0', value: 'tok-0-value'},
+ {key: 'tok-1', value: 'tok-1-value'},
+];
+
+const tokPropPermission = {
+ mutable: false,
+ tokenOwner: true,
+ collectionAdmin: false,
+};
+
+const tokenPropPermissions = [
+ {
+ key: 'tok-0',
+ permission: tokPropPermission,
+ },
+ {
+ key: 'tok-1',
+ permission: tokPropPermission,
+ },
+];
+
+describe('query properties RPC', () => {
+ let alice: IKeyringPair;
+
+ const mintCollection = async (helper: UniqueHelper) => {
+ return await helper.nft.mintCollection(alice, {
+ tokenPrefix: 'prps',
+ properties: collectionProps,
+ tokenPropertyPermissions: tokenPropPermissions,
+ });
+ };
+
+ const mintToken = async (collection: UniqueNFTCollection) => {
+ return await collection.mintToken(alice, {Substrate: alice.address}, tokenProps);
+ };
+
+
+ before(async () => {
+ await usingPlaygrounds(async (_, privateKey) => {
+ alice = privateKey('//Alice');
+ });
+ });
+
+ itSub('query empty collection key set', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const props = await collection.getProperties([]);
+ expect(props).to.be.empty;
+ });
+
+ itSub('query empty token key set', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const token = await mintToken(collection);
+ const props = await token.getProperties([]);
+ expect(props).to.be.empty;
+ });
+
+ itSub('query empty token key permissions set', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const propPermissions = await collection.getPropertyPermissions([]);
+ expect(propPermissions).to.be.empty;
+ });
+
+ itSub('query all collection props by null arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const props = await collection.getProperties(null);
+ expect(props).to.be.deep.equal(collectionProps);
+ });
+
+ itSub('query all token props by null arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const token = await mintToken(collection);
+ const props = await token.getProperties(null);
+ expect(props).to.be.deep.equal(tokenProps);
+ });
+
+ itSub('query empty token key permissions by null arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const propPermissions = await collection.getPropertyPermissions(null);
+ expect(propPermissions).to.be.deep.equal(tokenPropPermissions);
+ });
+
+ itSub('query all collection props by undefined arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const props = await collection.getProperties();
+ expect(props).to.be.deep.equal(collectionProps);
+ });
+
+ itSub('query all token props by undefined arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const token = await mintToken(collection);
+ const props = await token.getProperties();
+ expect(props).to.be.deep.equal(tokenProps);
+ });
+
+ itSub('query empty token key permissions by undefined arg', async ({helper}) => {
+ const collection = await mintCollection(helper);
+ const propPermissions = await collection.getPropertyPermissions();
+ expect(propPermissions).to.be.deep.equal(tokenPropPermissions);
+ });
+});
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -695,7 +695,7 @@
/**
* Get collection properties, optionally limited to the provided keys
**/
- collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
+ collectionProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
/**
* Get chain stats about collections
**/
@@ -723,7 +723,7 @@
/**
* Get property permissions, optionally limited to the provided keys
**/
- propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;
+ propertyPermissions: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsPropertyKeyPermission>>>;
/**
* Get tokens nested directly into the token
**/
@@ -731,7 +731,7 @@
/**
* Get token data, including properties, optionally limited to the provided keys, and total pieces for an RFT
**/
- tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;
+ tokenData: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<UpDataStructsTokenData>>;
/**
* Check if the token exists
**/
@@ -747,7 +747,7 @@
/**
* Get token properties, optionally limited to the provided keys
**/
- tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
+ tokenProperties: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys?: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<UpDataStructsProperty>>>;
/**
* Get the topmost token owner in the hierarchy of a possibly nested token
**/
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, 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, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, 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, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
import type { Data, StorageKey } from '@polkadot/types';
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, 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';
@@ -535,6 +535,7 @@
FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis;
FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce;
FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion;
+ FrameSystemExtensionsCheckTxVersion: FrameSystemExtensionsCheckTxVersion;
FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight;
FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo;
FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -691,6 +691,9 @@
/** @name FrameSystemExtensionsCheckSpecVersion */
export interface FrameSystemExtensionsCheckSpecVersion extends Null {}
+/** @name FrameSystemExtensionsCheckTxVersion */
+export interface FrameSystemExtensionsCheckTxVersion extends Null {}
+
/** @name FrameSystemExtensionsCheckWeight */
export interface FrameSystemExtensionsCheckWeight extends Null {}
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -3540,27 +3540,31 @@
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup479: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup479: frame_system::extensions::check_tx_version::CheckTxVersion<T>
+ **/
+ FrameSystemExtensionsCheckTxVersion: 'Null',
+ /**
+ * Lookup480: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup482: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup483: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup483: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup484: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup484: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup485: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup485: opal_runtime::Runtime
+ * Lookup486: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup486: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup487: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/registry.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/types/types/registry';78import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, 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, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';910declare module '@polkadot/types/types/registry' {11 interface InterfaceTypes {12 CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall;13 CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData;14 CumulusPalletDmpQueueError: CumulusPalletDmpQueueError;15 CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent;16 CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData;17 CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall;18 CumulusPalletParachainSystemError: CumulusPalletParachainSystemError;19 CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent;20 CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot;21 CumulusPalletXcmCall: CumulusPalletXcmCall;22 CumulusPalletXcmError: CumulusPalletXcmError;23 CumulusPalletXcmEvent: CumulusPalletXcmEvent;24 CumulusPalletXcmOrigin: CumulusPalletXcmOrigin;25 CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall;26 CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError;27 CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent;28 CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails;29 CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState;30 CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails;31 CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState;32 CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData;33 CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData;34 EthbloomBloom: EthbloomBloom;35 EthereumBlock: EthereumBlock;36 EthereumHeader: EthereumHeader;37 EthereumLog: EthereumLog;38 EthereumReceiptEip658ReceiptData: EthereumReceiptEip658ReceiptData;39 EthereumReceiptReceiptV3: EthereumReceiptReceiptV3;40 EthereumTransactionAccessListItem: EthereumTransactionAccessListItem;41 EthereumTransactionEip1559Transaction: EthereumTransactionEip1559Transaction;42 EthereumTransactionEip2930Transaction: EthereumTransactionEip2930Transaction;43 EthereumTransactionLegacyTransaction: EthereumTransactionLegacyTransaction;44 EthereumTransactionTransactionAction: EthereumTransactionTransactionAction;45 EthereumTransactionTransactionSignature: EthereumTransactionTransactionSignature;46 EthereumTransactionTransactionV2: EthereumTransactionTransactionV2;47 EthereumTypesHashH64: EthereumTypesHashH64;48 EvmCoreErrorExitError: EvmCoreErrorExitError;49 EvmCoreErrorExitFatal: EvmCoreErrorExitFatal;50 EvmCoreErrorExitReason: EvmCoreErrorExitReason;51 EvmCoreErrorExitRevert: EvmCoreErrorExitRevert;52 EvmCoreErrorExitSucceed: EvmCoreErrorExitSucceed;53 FpRpcTransactionStatus: FpRpcTransactionStatus;54 FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin;55 FrameSupportPalletId: FrameSupportPalletId;56 FrameSupportScheduleLookupError: FrameSupportScheduleLookupError;57 FrameSupportScheduleMaybeHashed: FrameSupportScheduleMaybeHashed;58 FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus;59 FrameSupportWeightsDispatchClass: FrameSupportWeightsDispatchClass;60 FrameSupportWeightsDispatchInfo: FrameSupportWeightsDispatchInfo;61 FrameSupportWeightsPays: FrameSupportWeightsPays;62 FrameSupportWeightsPerDispatchClassU32: FrameSupportWeightsPerDispatchClassU32;63 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;64 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;65 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;66 FrameSystemAccountInfo: FrameSystemAccountInfo;67 FrameSystemCall: FrameSystemCall;68 FrameSystemError: FrameSystemError;69 FrameSystemEvent: FrameSystemEvent;70 FrameSystemEventRecord: FrameSystemEventRecord;71 FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis;72 FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce;73 FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion;74 FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight;75 FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo;76 FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength;77 FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights;78 FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass;79 FrameSystemPhase: FrameSystemPhase;80 OpalRuntimeOriginCaller: OpalRuntimeOriginCaller;81 OpalRuntimeRuntime: OpalRuntimeRuntime;82 OrmlTokensAccountData: OrmlTokensAccountData;83 OrmlTokensBalanceLock: OrmlTokensBalanceLock;84 OrmlTokensModuleCall: OrmlTokensModuleCall;85 OrmlTokensModuleError: OrmlTokensModuleError;86 OrmlTokensModuleEvent: OrmlTokensModuleEvent;87 OrmlTokensReserveData: OrmlTokensReserveData;88 OrmlVestingModuleCall: OrmlVestingModuleCall;89 OrmlVestingModuleError: OrmlVestingModuleError;90 OrmlVestingModuleEvent: OrmlVestingModuleEvent;91 OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;92 OrmlXtokensModuleCall: OrmlXtokensModuleCall;93 OrmlXtokensModuleError: OrmlXtokensModuleError;94 OrmlXtokensModuleEvent: OrmlXtokensModuleEvent;95 PalletAppPromotionCall: PalletAppPromotionCall;96 PalletAppPromotionError: PalletAppPromotionError;97 PalletAppPromotionEvent: PalletAppPromotionEvent;98 PalletBalancesAccountData: PalletBalancesAccountData;99 PalletBalancesBalanceLock: PalletBalancesBalanceLock;100 PalletBalancesCall: PalletBalancesCall;101 PalletBalancesError: PalletBalancesError;102 PalletBalancesEvent: PalletBalancesEvent;103 PalletBalancesReasons: PalletBalancesReasons;104 PalletBalancesReleases: PalletBalancesReleases;105 PalletBalancesReserveData: PalletBalancesReserveData;106 PalletCommonError: PalletCommonError;107 PalletCommonEvent: PalletCommonEvent;108 PalletConfigurationCall: PalletConfigurationCall;109 PalletEthereumCall: PalletEthereumCall;110 PalletEthereumError: PalletEthereumError;111 PalletEthereumEvent: PalletEthereumEvent;112 PalletEthereumFakeTransactionFinalizer: PalletEthereumFakeTransactionFinalizer;113 PalletEthereumRawOrigin: PalletEthereumRawOrigin;114 PalletEvmAccountBasicCrossAccountIdRepr: PalletEvmAccountBasicCrossAccountIdRepr;115 PalletEvmCall: PalletEvmCall;116 PalletEvmCoderSubstrateError: PalletEvmCoderSubstrateError;117 PalletEvmContractHelpersError: PalletEvmContractHelpersError;118 PalletEvmContractHelpersEvent: PalletEvmContractHelpersEvent;119 PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;120 PalletEvmError: PalletEvmError;121 PalletEvmEvent: PalletEvmEvent;122 PalletEvmMigrationCall: PalletEvmMigrationCall;123 PalletEvmMigrationError: PalletEvmMigrationError;124 PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds;125 PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata;126 PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall;127 PalletForeignAssetsModuleError: PalletForeignAssetsModuleError;128 PalletForeignAssetsModuleEvent: PalletForeignAssetsModuleEvent;129 PalletForeignAssetsNativeCurrency: PalletForeignAssetsNativeCurrency;130 PalletFungibleError: PalletFungibleError;131 PalletInflationCall: PalletInflationCall;132 PalletNonfungibleError: PalletNonfungibleError;133 PalletNonfungibleItemData: PalletNonfungibleItemData;134 PalletRefungibleError: PalletRefungibleError;135 PalletRefungibleItemData: PalletRefungibleItemData;136 PalletRmrkCoreCall: PalletRmrkCoreCall;137 PalletRmrkCoreError: PalletRmrkCoreError;138 PalletRmrkCoreEvent: PalletRmrkCoreEvent;139 PalletRmrkEquipCall: PalletRmrkEquipCall;140 PalletRmrkEquipError: PalletRmrkEquipError;141 PalletRmrkEquipEvent: PalletRmrkEquipEvent;142 PalletStructureCall: PalletStructureCall;143 PalletStructureError: PalletStructureError;144 PalletStructureEvent: PalletStructureEvent;145 PalletSudoCall: PalletSudoCall;146 PalletSudoError: PalletSudoError;147 PalletSudoEvent: PalletSudoEvent;148 PalletTemplateTransactionPaymentCall: PalletTemplateTransactionPaymentCall;149 PalletTemplateTransactionPaymentChargeTransactionPayment: PalletTemplateTransactionPaymentChargeTransactionPayment;150 PalletTimestampCall: PalletTimestampCall;151 PalletTransactionPaymentEvent: PalletTransactionPaymentEvent;152 PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;153 PalletTreasuryCall: PalletTreasuryCall;154 PalletTreasuryError: PalletTreasuryError;155 PalletTreasuryEvent: PalletTreasuryEvent;156 PalletTreasuryProposal: PalletTreasuryProposal;157 PalletUniqueCall: PalletUniqueCall;158 PalletUniqueError: PalletUniqueError;159 PalletUniqueRawEvent: PalletUniqueRawEvent;160 PalletUniqueSchedulerCall: PalletUniqueSchedulerCall;161 PalletUniqueSchedulerError: PalletUniqueSchedulerError;162 PalletUniqueSchedulerEvent: PalletUniqueSchedulerEvent;163 PalletUniqueSchedulerScheduledV3: PalletUniqueSchedulerScheduledV3;164 PalletXcmCall: PalletXcmCall;165 PalletXcmError: PalletXcmError;166 PalletXcmEvent: PalletXcmEvent;167 PalletXcmOrigin: PalletXcmOrigin;168 PhantomTypeUpDataStructs: PhantomTypeUpDataStructs;169 PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;170 PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;171 PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;172 PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat;173 PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration;174 PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel;175 PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData;176 PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction;177 RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo;178 RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo;179 RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple;180 RmrkTraitsNftNftChild: RmrkTraitsNftNftChild;181 RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo;182 RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo;183 RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList;184 RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart;185 RmrkTraitsPartPartType: RmrkTraitsPartPartType;186 RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart;187 RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo;188 RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource;189 RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource;190 RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo;191 RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes;192 RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource;193 RmrkTraitsTheme: RmrkTraitsTheme;194 RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty;195 SpCoreEcdsaSignature: SpCoreEcdsaSignature;196 SpCoreEd25519Signature: SpCoreEd25519Signature;197 SpCoreSr25519Signature: SpCoreSr25519Signature;198 SpCoreVoid: SpCoreVoid;199 SpRuntimeArithmeticError: SpRuntimeArithmeticError;200 SpRuntimeDigest: SpRuntimeDigest;201 SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;202 SpRuntimeDispatchError: SpRuntimeDispatchError;203 SpRuntimeModuleError: SpRuntimeModuleError;204 SpRuntimeMultiSignature: SpRuntimeMultiSignature;205 SpRuntimeTokenError: SpRuntimeTokenError;206 SpRuntimeTransactionalError: SpRuntimeTransactionalError;207 SpTrieStorageProof: SpTrieStorageProof;208 SpVersionRuntimeVersion: SpVersionRuntimeVersion;209 UpDataStructsAccessMode: UpDataStructsAccessMode;210 UpDataStructsCollection: UpDataStructsCollection;211 UpDataStructsCollectionLimits: UpDataStructsCollectionLimits;212 UpDataStructsCollectionMode: UpDataStructsCollectionMode;213 UpDataStructsCollectionPermissions: UpDataStructsCollectionPermissions;214 UpDataStructsCollectionStats: UpDataStructsCollectionStats;215 UpDataStructsCreateCollectionData: UpDataStructsCreateCollectionData;216 UpDataStructsCreateFungibleData: UpDataStructsCreateFungibleData;217 UpDataStructsCreateItemData: UpDataStructsCreateItemData;218 UpDataStructsCreateItemExData: UpDataStructsCreateItemExData;219 UpDataStructsCreateNftData: UpDataStructsCreateNftData;220 UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;221 UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;222 UpDataStructsCreateRefungibleExMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;223 UpDataStructsCreateRefungibleExSingleOwner: UpDataStructsCreateRefungibleExSingleOwner;224 UpDataStructsNestingPermissions: UpDataStructsNestingPermissions;225 UpDataStructsOwnerRestrictedSet: UpDataStructsOwnerRestrictedSet;226 UpDataStructsProperties: UpDataStructsProperties;227 UpDataStructsPropertiesMapBoundedVec: UpDataStructsPropertiesMapBoundedVec;228 UpDataStructsPropertiesMapPropertyPermission: UpDataStructsPropertiesMapPropertyPermission;229 UpDataStructsProperty: UpDataStructsProperty;230 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;231 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;232 UpDataStructsPropertyScope: UpDataStructsPropertyScope;233 UpDataStructsRpcCollection: UpDataStructsRpcCollection;234 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;235 UpDataStructsSponsorshipStateAccountId32: UpDataStructsSponsorshipStateAccountId32;236 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: UpDataStructsSponsorshipStateBasicCrossAccountIdRepr;237 UpDataStructsTokenChild: UpDataStructsTokenChild;238 UpDataStructsTokenData: UpDataStructsTokenData;239 XcmDoubleEncoded: XcmDoubleEncoded;240 XcmV0Junction: XcmV0Junction;241 XcmV0JunctionBodyId: XcmV0JunctionBodyId;242 XcmV0JunctionBodyPart: XcmV0JunctionBodyPart;243 XcmV0JunctionNetworkId: XcmV0JunctionNetworkId;244 XcmV0MultiAsset: XcmV0MultiAsset;245 XcmV0MultiLocation: XcmV0MultiLocation;246 XcmV0Order: XcmV0Order;247 XcmV0OriginKind: XcmV0OriginKind;248 XcmV0Response: XcmV0Response;249 XcmV0Xcm: XcmV0Xcm;250 XcmV1Junction: XcmV1Junction;251 XcmV1MultiAsset: XcmV1MultiAsset;252 XcmV1MultiLocation: XcmV1MultiLocation;253 XcmV1MultiassetAssetId: XcmV1MultiassetAssetId;254 XcmV1MultiassetAssetInstance: XcmV1MultiassetAssetInstance;255 XcmV1MultiassetFungibility: XcmV1MultiassetFungibility;256 XcmV1MultiassetMultiAssetFilter: XcmV1MultiassetMultiAssetFilter;257 XcmV1MultiassetMultiAssets: XcmV1MultiassetMultiAssets;258 XcmV1MultiassetWildFungibility: XcmV1MultiassetWildFungibility;259 XcmV1MultiassetWildMultiAsset: XcmV1MultiassetWildMultiAsset;260 XcmV1MultilocationJunctions: XcmV1MultilocationJunctions;261 XcmV1Order: XcmV1Order;262 XcmV1Response: XcmV1Response;263 XcmV1Xcm: XcmV1Xcm;264 XcmV2Instruction: XcmV2Instruction;265 XcmV2Response: XcmV2Response;266 XcmV2TraitsError: XcmV2TraitsError;267 XcmV2TraitsOutcome: XcmV2TraitsOutcome;268 XcmV2WeightLimit: XcmV2WeightLimit;269 XcmV2Xcm: XcmV2Xcm;270 XcmVersionedMultiAsset: XcmVersionedMultiAsset;271 XcmVersionedMultiAssets: XcmVersionedMultiAssets;272 XcmVersionedMultiLocation: XcmVersionedMultiLocation;273 XcmVersionedXcm: XcmVersionedXcm;274 } // InterfaceTypes275} // declare moduletests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -3784,22 +3784,25 @@
/** @name FrameSystemExtensionsCheckSpecVersion (478) */
type FrameSystemExtensionsCheckSpecVersion = Null;
- /** @name FrameSystemExtensionsCheckGenesis (479) */
+ /** @name FrameSystemExtensionsCheckTxVersion (479) */
+ type FrameSystemExtensionsCheckTxVersion = Null;
+
+ /** @name FrameSystemExtensionsCheckGenesis (480) */
type FrameSystemExtensionsCheckGenesis = Null;
- /** @name FrameSystemExtensionsCheckNonce (482) */
+ /** @name FrameSystemExtensionsCheckNonce (483) */
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
- /** @name FrameSystemExtensionsCheckWeight (483) */
+ /** @name FrameSystemExtensionsCheckWeight (484) */
type FrameSystemExtensionsCheckWeight = Null;
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (484) */
+ /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (485) */
interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name OpalRuntimeRuntime (485) */
+ /** @name OpalRuntimeRuntime (486) */
type OpalRuntimeRuntime = Null;
- /** @name PalletEthereumFakeTransactionFinalizer (486) */
+ /** @name PalletEthereumFakeTransactionFinalizer (487) */
type PalletEthereumFakeTransactionFinalizer = Null;
} // declare module
tests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -24,7 +24,7 @@
const collectionParam = {name: 'collection', type: 'u32'};
const tokenParam = {name: 'tokenId', type: 'u32'};
-const propertyKeysParam = {name: 'propertyKeys', type: 'Vec<String>', isOptional: true};
+const propertyKeysParam = {name: 'propertyKeys', type: 'Option<Vec<String>>', isOptional: true};
const crossAccountParam = (name = 'account') => ({name, type: CROSS_ACCOUNT_ID_TYPE});
const atParam = {name: 'at', type: 'Hash', isOptional: true};
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -926,8 +926,8 @@
* @example getProperties(1219, ['location', 'date', 'time', 'isParadise']);
* @returns array of key-value pairs
*/
- async getProperties(collectionId: number, propertyKeys: string[] | null = null): Promise<IProperty[]> {
- return (await this.helper.callRpc('api.rpc.unique.collectionProperties', [collectionId, ...(propertyKeys === null ? [] : [propertyKeys])])).toHuman();
+ async getProperties(collectionId: number, propertyKeys?: string[] | null): Promise<IProperty[]> {
+ return (await this.helper.callRpc('api.rpc.unique.collectionProperties', [collectionId, propertyKeys])).toHuman();
}
/**
@@ -1208,8 +1208,8 @@
* @example getTokenProperties(1219, ['location', 'date', 'time', 'isParadise']);
* @returns array of key-value pairs
*/
- async getTokenProperties(collectionId: number, tokenId: number, propertyKeys: string[] | null = null): Promise<IProperty[]> {
- return (await this.helper.callRpc('api.rpc.unique.tokenProperties', [collectionId, tokenId, ...(propertyKeys === null ? [] : [propertyKeys])])).toHuman();
+ async getTokenProperties(collectionId: number, tokenId: number, propertyKeys?: string[] | null): Promise<IProperty[]> {
+ return (await this.helper.callRpc('api.rpc.unique.tokenProperties', [collectionId, tokenId, propertyKeys])).toHuman();
}
/**
@@ -2265,7 +2265,7 @@
return await this.helper.collection.getEffectiveLimits(this.collectionId);
}
- async getProperties(propertyKeys: string[] | null = null) {
+ async getProperties(propertyKeys?: string[] | null) {
return await this.helper.collection.getProperties(this.collectionId, propertyKeys);
}
@@ -2364,7 +2364,7 @@
return await this.helper.nft.getPropertyPermissions(this.collectionId, propertyKeys);
}
- async getTokenProperties(tokenId: number, propertyKeys: string[] | null = null) {
+ async getTokenProperties(tokenId: number, propertyKeys?: string[] | null) {
return await this.helper.nft.getTokenProperties(this.collectionId, tokenId, propertyKeys);
}
@@ -2455,7 +2455,7 @@
return await this.helper.rft.getPropertyPermissions(this.collectionId, propertyKeys);
}
- async getTokenProperties(tokenId: number, propertyKeys: string[] | null = null) {
+ async getTokenProperties(tokenId: number, propertyKeys?: string[] | null) {
return await this.helper.rft.getTokenProperties(this.collectionId, tokenId, propertyKeys);
}
@@ -2567,7 +2567,7 @@
return await this.collection.getTokenNextSponsored(this.tokenId, addressObj);
}
- async getProperties(propertyKeys: string[] | null = null) {
+ async getProperties(propertyKeys?: string[] | null) {
return await this.collection.getTokenProperties(this.tokenId, propertyKeys);
}