From d50ff3fa40b7fd6b41d7c7b889c5ff6919620950 Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Fri, 20 Oct 2023 08:15:47 +0000 Subject: [PATCH] feat: compile playgrounds --- tests/package.json | 4 +- .../enableContractSponsoring.test.ts | 2 +- tests/src/.outdated/overflow.test.ts | 2 +- .../removeFromContractAllowList.test.ts | 2 +- tests/src/.outdated/setChainLimits.test.ts | 2 +- .../setContractSponsoringRateLimit.test.ts | 2 +- tests/src/.outdated/substrate/get-balance.ts | 4 +- tests/src/.outdated/substrate/privateKey.ts | 2 +- .../src/.outdated/substrate/substrate-api.ts | 18 +- tests/src/.outdated/xcmTransfer.test.ts | 2 +- tests/src/addCollectionAdmin.test.ts | 6 +- tests/src/adminTransferAndBurn.test.ts | 4 +- tests/src/allowLists.test.ts | 7 +- tests/src/apiConsts.test.ts | 2 +- tests/src/approve.test.ts | 6 +- tests/src/benchmarks/mintFee/index.ts | 17 +- .../nesting/ABIGEN/RMRKNestableMintable.ts | 3 +- tests/src/benchmarks/nesting/ABIGEN/index.ts | 2 +- tests/src/benchmarks/nesting/index.ts | 13 +- tests/src/benchmarks/opsFee/index.ts | 16 +- tests/src/benchmarks/utils/common.ts | 8 +- tests/src/burnItem.test.ts | 4 +- tests/src/calibrate.ts | 19 +- tests/src/calibrateApply.ts | 4 +- tests/src/change-collection-owner.test.ts | 6 +- tests/src/check-event/burnItemEvent.test.ts | 6 +- .../check-event/createCollectionEvent.test.ts | 6 +- tests/src/check-event/createItemEvent.test.ts | 6 +- .../createMultipleItemsEvent.test.ts | 6 +- .../destroyCollectionEvent.test.ts | 6 +- tests/src/check-event/transferEvent.test.ts | 6 +- .../src/check-event/transferFromEvent.test.ts | 6 +- .../collatorSelection.seqtest.ts | 12 +- .../collator-selection/identity.seqtest.ts | 6 +- tests/src/confirmSponsorship.test.ts | 6 +- tests/src/connection.test.ts | 2 +- tests/src/createCollection.test.ts | 9 +- tests/src/createItem.test.ts | 8 +- tests/src/createMultipleItems.test.ts | 4 +- tests/src/createMultipleItemsEx.test.ts | 6 +- tests/src/creditFeesToTreasury.seqtest.ts | 4 +- tests/src/destroyCollection.test.ts | 4 +- tests/src/enableDisableTransfer.test.ts | 4 +- tests/src/eth/allowlist.test.ts | 8 +- tests/src/eth/base.test.ts | 5 +- tests/src/eth/collectionAdmin.test.ts | 12 +- tests/src/eth/collectionHelperAddress.test.ts | 8 +- tests/src/eth/collectionLimits.test.ts | 8 +- tests/src/eth/collectionProperties.test.ts | 8 +- tests/src/eth/collectionSponsoring.test.ts | 8 +- tests/src/eth/contractSponsoring.test.ts | 12 +- tests/src/eth/createCollection.test.ts | 11 +- tests/src/eth/createFTCollection.seqtest.ts | 6 +- tests/src/eth/createFTCollection.test.ts | 8 +- tests/src/eth/createNFTCollection.seqtest.ts | 4 +- tests/src/eth/createNFTCollection.test.ts | 7 +- tests/src/eth/createRFTCollection.test.ts | 8 +- tests/src/eth/crossTransfer.test.ts | 6 +- tests/src/eth/destroyCollection.test.ts | 10 +- tests/src/eth/ethFeesAreCorrect.test.ts | 6 +- tests/src/eth/events.test.ts | 14 +- tests/src/eth/evmCoder.test.ts | 4 +- .../eth/fractionalizer/fractionalizer.test.ts | 9 +- tests/src/eth/fungible.test.ts | 4 +- tests/src/eth/getCode.test.ts | 8 +- tests/src/eth/helpersSmoke.test.ts | 4 +- .../eth/marketplace-v2/marketplace.test.ts | 12 +- tests/src/eth/marketplace/marketplace.test.ts | 6 +- tests/src/eth/migration.seqtest.ts | 6 +- tests/src/eth/nativeFungible.test.ts | 10 +- tests/src/eth/nativeRpc/estimateGas.test.ts | 6 +- tests/src/eth/nesting/nest.test.ts | 5 +- tests/src/eth/nonFungible.test.ts | 9 +- tests/src/eth/payable.test.ts | 7 +- tests/src/eth/precompile.test.ts | 4 +- tests/src/eth/proxy/fungibleProxy.test.ts | 7 +- tests/src/eth/proxy/nonFungibleProxy.test.ts | 7 +- tests/src/eth/proxyContract.test.ts | 5 +- tests/src/eth/reFungible.test.ts | 10 +- tests/src/eth/reFungibleToken.test.ts | 7 +- tests/src/eth/scheduling.test.ts | 5 +- tests/src/eth/sponsoring.test.ts | 6 +- tests/src/eth/tokenProperties.test.ts | 12 +- tests/src/eth/tokens/callMethodsERC20.test.ts | 8 +- .../src/eth/tokens/callMethodsERC721.test.ts | 10 +- tests/src/eth/tokens/minting.test.ts | 8 +- tests/src/eth/transferValue.test.ts | 4 +- tests/src/eth/util/index.ts | 15 +- tests/src/eth/util/playgrounds/types.ts | 3 +- tests/src/eth/util/playgrounds/unique.dev.ts | 32 +- tests/src/fungible.test.ts | 4 +- tests/src/generateEnv.ts | 2 +- tests/src/getPropertiesRpc.test.ts | 6 +- tests/src/governance/council.test.ts | 9 +- tests/src/governance/democracy.test.ts | 8 +- tests/src/governance/fellowship.test.ts | 9 +- tests/src/governance/init.test.ts | 9 +- .../src/governance/technicalCommittee.test.ts | 15 +- tests/src/governance/util.ts | 11 +- tests/src/inflation.seqtest.ts | 4 +- tests/src/interfaces/augment-api-consts.ts | 21 +- tests/src/interfaces/augment-api-errors.ts | 22 +- tests/src/interfaces/augment-api-events.ts | 202 +- tests/src/interfaces/augment-api-query.ts | 92 +- tests/src/interfaces/augment-api-rpc.ts | 2 +- tests/src/interfaces/augment-api-tx.ts | 2375 +++-------------- tests/src/interfaces/augment-types.ts | 128 +- tests/src/interfaces/default/definitions.ts | 2 +- tests/src/interfaces/default/types.ts | 2306 ++++++++-------- tests/src/interfaces/definitions.ts | 8 +- tests/src/interfaces/lookup.ts | 1341 ++++++---- tests/src/interfaces/registry.ts | 127 +- tests/src/interfaces/types-lookup.ts | 1304 +++++---- tests/src/limits.test.ts | 4 +- tests/src/maintenance.seqtest.ts | 8 +- .../942057-appPromotion/executeMigration.ts | 2 +- .../migrations/942057-appPromotion/index.ts | 6 +- .../942057-appPromotion/lockedToFreeze.ts | 4 +- .../correctStateAfterMaintenance.ts | 4 +- tests/src/migrations/runCheckState.ts | 2 +- tests/src/nativeFungible.test.ts | 4 +- .../nesting/collectionProperties.seqtest.ts | 4 +- .../src/nesting/collectionProperties.test.ts | 4 +- tests/src/nesting/graphs.test.ts | 6 +- tests/src/nesting/propertyPermissions.test.ts | 6 +- tests/src/nesting/tokenProperties.seqtest.ts | 4 +- tests/src/nesting/tokenProperties.test.ts | 6 +- tests/src/nesting/unnest.test.ts | 6 +- tests/src/nextSponsoring.test.ts | 4 +- tests/src/pallet-presence.test.ts | 2 +- tests/src/performance.seq.test.ts | 8 +- tests/src/refungible.test.ts | 4 +- tests/src/removeCollectionAdmin.test.ts | 6 +- tests/src/removeCollectionSponsor.test.ts | 6 +- tests/src/rpc.test.ts | 6 +- tests/src/scheduler.seqtest.ts | 6 +- tests/src/setCollectionLimits.test.ts | 6 +- tests/src/setCollectionSponsor.test.ts | 6 +- tests/src/setPermissions.test.ts | 6 +- .../sub/appPromotion/appPromotion.seqtest.ts | 6 +- .../src/sub/appPromotion/appPromotion.test.ts | 8 +- tests/src/sub/nesting/admin.test.ts | 4 +- tests/src/sub/nesting/common.test.ts | 8 +- tests/src/sub/nesting/e2e.test.ts | 4 +- .../src/sub/nesting/nesting.negative.test.ts | 12 +- tests/src/sub/nesting/refungible.test.ts | 4 +- .../sub/nesting/unnesting.negative.test.ts | 4 +- tests/src/sub/refungible/burn.test.ts | 4 +- tests/src/sub/refungible/nesting.test.ts | 4 +- tests/src/sub/refungible/repartition.test.ts | 4 +- tests/src/sub/refungible/transfer.test.ts | 4 +- tests/src/transfer.nload.ts | 6 +- tests/src/transfer.test.ts | 8 +- tests/src/transferFrom.test.ts | 6 +- tests/src/tx-version-presence.test.ts | 2 +- tests/src/util/authorizeEnactUpgrade.ts | 2 +- tests/src/util/frankensteinMigrate.ts | 2 +- tests/src/util/globalSetup.ts | 4 +- tests/src/util/identitySetter.ts | 6 +- tests/src/util/index.ts | 10 +- tests/src/util/playgrounds/types.ts | 2 +- tests/src/util/playgrounds/unique.dev.ts | 37 +- .../src/util/playgrounds/unique.governance.ts | 6 +- tests/src/util/playgrounds/unique.ts | 114 +- tests/src/util/playgrounds/unique.xcm.ts | 10 +- tests/src/util/relayIdentitiesChecker.ts | 4 +- tests/src/util/setCode.ts | 2 +- tests/src/vesting.test.ts | 4 +- tests/src/xcm/lowLevelXcmQuartz.test.ts | 6 +- tests/src/xcm/lowLevelXcmUnique.test.ts | 8 +- tests/src/xcm/xcm.types.ts | 8 +- tests/src/xcm/xcmOpal.test.ts | 6 +- tests/src/xcm/xcmQuartz.test.ts | 8 +- tests/src/xcm/xcmUnique.test.ts | 10 +- tests/tsconfig.json | 39 +- tests/yarn.lock | 854 +++++- 176 files changed, 4986 insertions(+), 5027 deletions(-) diff --git a/tests/package.json b/tests/package.json index c669f54d63..277b22902a 100644 --- a/tests/package.json +++ b/tests/package.json @@ -20,7 +20,9 @@ "mocha": "^10.1.0", "mochawesome": "^7.1.3", "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "typescript": "^5.1.6", + "webpack": "^5.89.0", + "webpack-cli": "^5.1.4" }, "mocha": { "timeout": 9999999, diff --git a/tests/src/.outdated/enableContractSponsoring.test.ts b/tests/src/.outdated/enableContractSponsoring.test.ts index d8df57e80e..a6057c548f 100644 --- a/tests/src/.outdated/enableContractSponsoring.test.ts +++ b/tests/src/.outdated/enableContractSponsoring.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import usingApi from '../substrate/substrate-api'; diff --git a/tests/src/.outdated/overflow.test.ts b/tests/src/.outdated/overflow.test.ts index a413b3bc14..37bfd07565 100644 --- a/tests/src/.outdated/overflow.test.ts +++ b/tests/src/.outdated/overflow.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import usingApi from '../substrate/substrate-api'; diff --git a/tests/src/.outdated/removeFromContractAllowList.test.ts b/tests/src/.outdated/removeFromContractAllowList.test.ts index d23e668a83..4221bea7c6 100644 --- a/tests/src/.outdated/removeFromContractAllowList.test.ts +++ b/tests/src/.outdated/removeFromContractAllowList.test.ts @@ -17,7 +17,7 @@ import usingApi from '../substrate/substrate-api'; import {deployFlipper, toggleFlipValueExpectFailure, toggleFlipValueExpectSuccess} from '../deprecated-helpers/contracthelpers'; import {addToContractAllowListExpectSuccess, isAllowlistedInContract, removeFromContractAllowListExpectFailure, removeFromContractAllowListExpectSuccess, toggleContractAllowlistExpectSuccess} from '../deprecated-helpers/helpers'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {expect} from 'chai'; // todo:playgrounds skipped again diff --git a/tests/src/.outdated/setChainLimits.test.ts b/tests/src/.outdated/setChainLimits.test.ts index 54531d2296..78be3b8979 100644 --- a/tests/src/.outdated/setChainLimits.test.ts +++ b/tests/src/.outdated/setChainLimits.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import usingApi from '../substrate/substrate-api'; import { createCollectionExpectSuccess, diff --git a/tests/src/.outdated/setContractSponsoringRateLimit.test.ts b/tests/src/.outdated/setContractSponsoringRateLimit.test.ts index 48dcf907dd..25270d2755 100644 --- a/tests/src/.outdated/setContractSponsoringRateLimit.test.ts +++ b/tests/src/.outdated/setContractSponsoringRateLimit.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import usingApi from '../substrate/substrate-api'; import waitNewBlocks from '../substrate/wait-new-blocks'; import {deployFlipper, toggleFlipValueExpectFailure, toggleFlipValueExpectSuccess} from '../deprecated-helpers/contracthelpers'; diff --git a/tests/src/.outdated/substrate/get-balance.ts b/tests/src/.outdated/substrate/get-balance.ts index 733dede57e..80d8e612d7 100644 --- a/tests/src/.outdated/substrate/get-balance.ts +++ b/tests/src/.outdated/substrate/get-balance.ts @@ -16,8 +16,8 @@ import {ApiPromise} from '@polkadot/api'; import {AccountInfo} from '@polkadot/types/interfaces/system'; -import promisifySubstrate from './promisify-substrate'; -import {IKeyringPair} from '@polkadot/types/types'; +import promisifySubstrate from './promisify-substrate.js'; +import type {IKeyringPair} from '@polkadot/types/types'; import {submitTransactionAsync} from './substrate-api'; import {getGenericResult} from '../deprecated-helpers/helpers'; import {expect} from 'chai'; diff --git a/tests/src/.outdated/substrate/privateKey.ts b/tests/src/.outdated/substrate/privateKey.ts index 2265323727..b15f9820f7 100644 --- a/tests/src/.outdated/substrate/privateKey.ts +++ b/tests/src/.outdated/substrate/privateKey.ts @@ -15,7 +15,7 @@ // along with Unique Network. If not, see . import {Keyring} from '@polkadot/api'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; // WARNING: the WASM interface must be initialized before this function is called. // Use either `usingApi`, or `cryptoWaitReady` for consistency. diff --git a/tests/src/.outdated/substrate/substrate-api.ts b/tests/src/.outdated/substrate/substrate-api.ts index 59794f9f13..0136120021 100644 --- a/tests/src/.outdated/substrate/substrate-api.ts +++ b/tests/src/.outdated/substrate/substrate-api.ts @@ -15,17 +15,17 @@ // along with Unique Network. If not, see . import {ApiPromise, WsProvider} from '@polkadot/api'; -import {ApiOptions, ApiTypes, SubmittableExtrinsic} from '@polkadot/api/types'; -import {ExtrinsicStatus} from '@polkadot/types/interfaces/author/types'; -import {EventRecord} from '@polkadot/types/interfaces/system/types'; -import {IKeyringPair} from '@polkadot/types/types'; -import config from '../../config'; +import type {ApiOptions, ApiTypes, SubmittableExtrinsic} from '@polkadot/api/types'; +import type {ExtrinsicStatus} from '@polkadot/types/interfaces/author/types'; +import type {EventRecord} from '@polkadot/types/interfaces/system/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import config from '../../config.js'; import '../../interfaces/augment-api-events'; -import * as defs from '../../interfaces/definitions'; -import privateKey from './privateKey'; -import promisifySubstrate from './promisify-substrate'; +import * as defs from '../../interfaces/definitions.js'; +import privateKey from './privateKey.js'; +import promisifySubstrate from './promisify-substrate.js'; -import {SilentConsole} from '../../util/playgrounds/unique.dev'; +import {SilentConsole} from '../../util/playgrounds/unique.dev.js'; diff --git a/tests/src/.outdated/xcmTransfer.test.ts b/tests/src/.outdated/xcmTransfer.test.ts index 37e6ddfc5b..7a970f461e 100644 --- a/tests/src/.outdated/xcmTransfer.test.ts +++ b/tests/src/.outdated/xcmTransfer.test.ts @@ -19,7 +19,7 @@ import chaiAsPromised from 'chai-as-promised'; import {WsProvider} from '@polkadot/api'; import {ApiOptions} from '@polkadot/api/types'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import usingApi, {submitTransactionAsync} from '../substrate/substrate-api'; import {getGenericResult} from '../deprecated-helpers/helpers'; import waitNewBlocks from '../substrate/wait-new-blocks'; diff --git a/tests/src/addCollectionAdmin.test.ts b/tests/src/addCollectionAdmin.test.ts index 488261b54c..311afd8a18 100644 --- a/tests/src/addCollectionAdmin.test.ts +++ b/tests/src/addCollectionAdmin.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test addCollectionAdmin(collection_id, new_admin_id):', () => { let donor: IKeyringPair; diff --git a/tests/src/adminTransferAndBurn.test.ts b/tests/src/adminTransferAndBurn.test.ts index 5f966ab5be..4932248d0d 100644 --- a/tests/src/adminTransferAndBurn.test.ts +++ b/tests/src/adminTransferAndBurn.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from './util/index.js'; describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => { let alice: IKeyringPair; diff --git a/tests/src/allowLists.test.ts b/tests/src/allowLists.test.ts index f6030ebafb..008f6910c7 100644 --- a/tests/src/allowLists.test.ts +++ b/tests/src/allowLists.test.ts @@ -14,9 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from './util'; -import {ICollectionPermissions, NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from './util/index.js'; +import type {ICollectionPermissions} from './util/playgrounds/types.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test ext. Allow list tests', () => { let alice: IKeyringPair; diff --git a/tests/src/apiConsts.test.ts b/tests/src/apiConsts.test.ts index 0132eea1f9..1208e5e05d 100644 --- a/tests/src/apiConsts.test.ts +++ b/tests/src/apiConsts.test.ts @@ -15,7 +15,7 @@ // along with Unique Network. If not, see . import {ApiPromise} from '@polkadot/api'; -import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from './util'; +import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from './util/index.js'; const MAX_COLLECTION_DESCRIPTION_LENGTH = 256n; diff --git a/tests/src/approve.test.ts b/tests/src/approve.test.ts index fe01f2701e..f26049763a 100644 --- a/tests/src/approve.test.ts +++ b/tests/src/approve.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from './util'; -import {CrossAccountId} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from './util/index.js'; +import {CrossAccountId} from './util/playgrounds/unique.js'; diff --git a/tests/src/benchmarks/mintFee/index.ts b/tests/src/benchmarks/mintFee/index.ts index c125b62f97..23dd19402f 100644 --- a/tests/src/benchmarks/mintFee/index.ts +++ b/tests/src/benchmarks/mintFee/index.ts @@ -1,15 +1,14 @@ -import {EthUniqueHelper, usingEthPlaygrounds} from '../../eth/util'; +import {usingEthPlaygrounds} from '../../eth/util/index.js'; +import {EthUniqueHelper} from '../../eth/util/playgrounds/unique.dev.js'; import {readFile} from 'fs/promises'; -import { - ICrossAccountId, -} from '../../util/playgrounds/types'; -import {IKeyringPair} from '@polkadot/types/types'; -import {UniqueNFTCollection} from '../../util/playgrounds/unique'; +import type {ICrossAccountId} from '../../util/playgrounds/types.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {UniqueNFTCollection} from '../../util/playgrounds/unique.js'; import {Contract} from 'web3-eth-contract'; import {createObjectCsvWriter} from 'csv-writer'; -import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common'; -import {makeNames} from '../../util'; -import {ContractImports} from '../../eth/util/playgrounds/types'; +import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common.js'; +import {makeNames} from '../../util/index.js'; +import type {ContractImports} from '../../eth/util/playgrounds/types.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/benchmarks/nesting/ABIGEN/RMRKNestableMintable.ts b/tests/src/benchmarks/nesting/ABIGEN/RMRKNestableMintable.ts index 0eb397b03e..47e37dce1b 100644 --- a/tests/src/benchmarks/nesting/ABIGEN/RMRKNestableMintable.ts +++ b/tests/src/benchmarks/nesting/ABIGEN/RMRKNestableMintable.ts @@ -8,12 +8,11 @@ import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, - PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, -} from "./types"; +} from "./types.js"; export interface EventOptions { filter?: object; diff --git a/tests/src/benchmarks/nesting/ABIGEN/index.ts b/tests/src/benchmarks/nesting/ABIGEN/index.ts index 47dbbb90da..32737e7d50 100644 --- a/tests/src/benchmarks/nesting/ABIGEN/index.ts +++ b/tests/src/benchmarks/nesting/ABIGEN/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export type { RMRKNestableMintable } from "./RMRKNestableMintable"; +export type { RMRKNestableMintable } from "./RMRKNestableMintable.js"; diff --git a/tests/src/benchmarks/nesting/index.ts b/tests/src/benchmarks/nesting/index.ts index 8679faf65d..b11b6690f3 100644 --- a/tests/src/benchmarks/nesting/index.ts +++ b/tests/src/benchmarks/nesting/index.ts @@ -1,11 +1,12 @@ -import {EthUniqueHelper, usingEthPlaygrounds} from '../../eth/util'; +import {usingEthPlaygrounds} from '../../eth/util/index.js'; +import {EthUniqueHelper} from '../../eth/util/playgrounds/unique.dev.js'; import {readFile} from 'fs/promises'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Contract} from 'web3-eth-contract'; -import {convertToTokens} from '../utils/common'; -import {makeNames} from '../../util'; -import {ContractImports} from '../../eth/util/playgrounds/types'; -import {RMRKNestableMintable} from './ABIGEN'; +import {convertToTokens} from '../utils/common.js'; +import {makeNames} from '../../util/index.js'; +import type {ContractImports} from '../../eth/util/playgrounds/types.js'; +import type {RMRKNestableMintable} from './ABIGEN/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/benchmarks/opsFee/index.ts b/tests/src/benchmarks/opsFee/index.ts index 5edd034bbc..0baa653548 100644 --- a/tests/src/benchmarks/opsFee/index.ts +++ b/tests/src/benchmarks/opsFee/index.ts @@ -1,13 +1,15 @@ -import {EthUniqueHelper, usingEthPlaygrounds} from '../../eth/util'; +import {usingEthPlaygrounds} from '../../eth/util/index.js'; +import {EthUniqueHelper} from '../../eth/util/playgrounds/unique.dev.js'; import {readFile} from 'fs/promises'; -import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '../../eth/util/playgrounds/types'; -import {IKeyringPair} from '@polkadot/types/types'; -import {UniqueFTCollection, UniqueNFTCollection} from '../../util/playgrounds/unique'; +import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '../../eth/util/playgrounds/types.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {UniqueFTCollection, UniqueNFTCollection} from '../../util/playgrounds/unique.js'; import {Contract} from 'web3-eth-contract'; import {createObjectCsvWriter} from 'csv-writer'; -import {FunctionFeeVM, IFunctionFee} from '../utils/types'; -import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common'; -import {makeNames} from '../../util'; +import {FunctionFeeVM} from '../utils/types.js'; +import type {IFunctionFee} from '../utils/types.js'; +import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common.js'; +import {makeNames} from '../../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/benchmarks/utils/common.ts b/tests/src/benchmarks/utils/common.ts index 9041d4df59..b8795ce84e 100644 --- a/tests/src/benchmarks/utils/common.ts +++ b/tests/src/benchmarks/utils/common.ts @@ -1,7 +1,7 @@ -import {EthUniqueHelper} from '../../eth/util'; -import {ITokenPropertyPermission, TCollectionMode} from '../../util/playgrounds/types'; -import {UniqueNFTCollection, UniqueRFTCollection} from '../../util/playgrounds/unique'; -import {IKeyringPair} from '@polkadot/types/types'; +import {EthUniqueHelper} from '../../eth/util/playgrounds/unique.dev.js'; +import {UniqueNFTCollection, UniqueRFTCollection} from '../../util/playgrounds/unique.js'; +import type {ITokenPropertyPermission, TCollectionMode} from '../../util/playgrounds/types.js'; +import type {IKeyringPair} from '@polkadot/types/types'; export const PROPERTIES = Array(40) .fill(0) diff --git a/tests/src/burnItem.test.ts b/tests/src/burnItem.test.ts index be087a347a..82551d06e2 100644 --- a/tests/src/burnItem.test.ts +++ b/tests/src/burnItem.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from './util/index.js'; describe('integration test: ext. burnItem():', () => { diff --git a/tests/src/calibrate.ts b/tests/src/calibrate.ts index ecfcb47ed9..346086d3f8 100644 --- a/tests/src/calibrate.ts +++ b/tests/src/calibrate.ts @@ -1,5 +1,6 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingEthPlaygrounds, EthUniqueHelper} from './eth/util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingEthPlaygrounds} from './eth/util/index.js'; +import {EthUniqueHelper} from './eth/util/playgrounds/unique.dev.js'; class Fract { static ZERO = new Fract(0n); @@ -174,14 +175,14 @@ function linearRegression(points: { x: Fract, y: Fract }[]) { const hypothesisLinear = (a: Fract, b: Fract) => (x: Fract) => rpn(x, a, '*', b, '+'); -function _error(points: { x: Fract, y: Fract }[], hypothesis: (a: Fract) => Fract) { - return points.map(p => { - const v = hypothesis(p.x); - const vv = p.y; +// function error(points: { x: Fract, y: Fract }[], hypothesis: (a: Fract) => Fract) { +// return points.map(p => { +// const v = hypothesis(p.x); +// const vv = p.y; - return rpn(v, vv, '-', 'dup', '*'); - }).reduce((a, b) => a.plus(b), Fract.ZERO).sqrt().div(new Fract(BigInt(points.length))); -} +// return rpn(v, vv, '-', 'dup', '*'); +// }).reduce((a, b) => a.plus(b), Fract.ZERO).sqrt().div(new Fract(BigInt(points.length))); +// } async function calibrateWeightToFee(helper: EthUniqueHelper, privateKey: (account: string) => Promise) { const alice = await privateKey('//Alice'); diff --git a/tests/src/calibrateApply.ts b/tests/src/calibrateApply.ts index c1ff2af09c..d4687213e6 100644 --- a/tests/src/calibrateApply.ts +++ b/tests/src/calibrateApply.ts @@ -1,7 +1,7 @@ import {readFile, writeFile} from 'fs/promises'; import path from 'path'; -import usingApi from './.outdated/substrate/substrate-api'; -import {makeNames} from './util'; +import usingApi from './.outdated/substrate/substrate-api.js'; +import {makeNames} from './util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/change-collection-owner.test.ts b/tests/src/change-collection-owner.test.ts index fb7a446be1..fda741b2b3 100644 --- a/tests/src/change-collection-owner.test.ts +++ b/tests/src/change-collection-owner.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test changeCollectionOwner(collection_id, new_owner):', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/burnItemEvent.test.ts b/tests/src/check-event/burnItemEvent.test.ts index 7da1c5978e..d6d4263626 100644 --- a/tests/src/check-event/burnItemEvent.test.ts +++ b/tests/src/check-event/burnItemEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Burn Item event ', () => { diff --git a/tests/src/check-event/createCollectionEvent.test.ts b/tests/src/check-event/createCollectionEvent.test.ts index 7b73115a7b..c5a83934dd 100644 --- a/tests/src/check-event/createCollectionEvent.test.ts +++ b/tests/src/check-event/createCollectionEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Create collection event ', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/createItemEvent.test.ts b/tests/src/check-event/createItemEvent.test.ts index 70ebfab1a4..6447de9c7b 100644 --- a/tests/src/check-event/createItemEvent.test.ts +++ b/tests/src/check-event/createItemEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Create Item event ', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/createMultipleItemsEvent.test.ts b/tests/src/check-event/createMultipleItemsEvent.test.ts index 8203bd77b0..605f435cbe 100644 --- a/tests/src/check-event/createMultipleItemsEvent.test.ts +++ b/tests/src/check-event/createMultipleItemsEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Create Multiple Items Event event ', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/destroyCollectionEvent.test.ts b/tests/src/check-event/destroyCollectionEvent.test.ts index 5cf3c198ec..bb2320e97e 100644 --- a/tests/src/check-event/destroyCollectionEvent.test.ts +++ b/tests/src/check-event/destroyCollectionEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Destroy collection event ', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/transferEvent.test.ts b/tests/src/check-event/transferEvent.test.ts index 59044503e1..fb8e1e1b49 100644 --- a/tests/src/check-event/transferEvent.test.ts +++ b/tests/src/check-event/transferEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Transfer event ', () => { let alice: IKeyringPair; diff --git a/tests/src/check-event/transferFromEvent.test.ts b/tests/src/check-event/transferFromEvent.test.ts index 53a7eceea4..c4bd026117 100644 --- a/tests/src/check-event/transferFromEvent.test.ts +++ b/tests/src/check-event/transferFromEvent.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub} from '../util'; -import {IEvent} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub} from '../util/index.js'; +import type {IEvent} from '../util/playgrounds/types.js'; describe('Transfer event ', () => { let alice: IKeyringPair; diff --git a/tests/src/collator-selection/collatorSelection.seqtest.ts b/tests/src/collator-selection/collatorSelection.seqtest.ts index 51deb6319b..561984a544 100644 --- a/tests/src/collator-selection/collatorSelection.seqtest.ts +++ b/tests/src/collator-selection/collatorSelection.seqtest.ts @@ -14,12 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../util/index.js'; async function nodeAddress(name: string) { // eslint-disable-next-line require-await - return await usingPlaygrounds(async (helper, _) => { + return await usingPlaygrounds(async (helper) => { const envNodeStash = `RELAY_UNIQUE_NODE_${name.toUpperCase()}_STASH`; const nodeStash = process.env[envNodeStash]; @@ -91,7 +91,7 @@ describe('Integration Test: Collator Selection', () => { let deltaNode: string; before(async function() { - await usingPlaygrounds(async (helper, privateKey) => { + await usingPlaygrounds(async (helper) => { // todo:collator see again if blocks start to be finalized in dev mode // Skip the collator block production in dev mode, since the blocks are sealed automatically. if(await helper.arrange.isDevNode()) this.skip(); @@ -137,7 +137,7 @@ describe('Integration Test: Collator Selection', () => { let crowd: IKeyringPair[]; before(async function() { - await usingPlaygrounds(async (helper, privateKey) => { + await usingPlaygrounds(async (helper) => { crowd = await helper.arrange.createCrowd(20, 100n, superuser); // set session keys for everyone @@ -219,7 +219,7 @@ describe('Integration Test: Collator Selection', () => { let crowd: IKeyringPair[]; before(async function() { - await usingPlaygrounds(async (helper, privateKey) => { + await usingPlaygrounds(async (helper) => { crowd = await helper.arrange.createCrowd(20, 100n, superuser); // set session keys for everyone diff --git a/tests/src/collator-selection/identity.seqtest.ts b/tests/src/collator-selection/identity.seqtest.ts index 89f13a675c..a8a27b069b 100644 --- a/tests/src/collator-selection/identity.seqtest.ts +++ b/tests/src/collator-selection/identity.seqtest.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../util'; -import {UniqueHelper} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {UniqueHelper} from '../util/playgrounds/unique.js'; async function getIdentities(helper: UniqueHelper) { const identities: [string, any][] = []; diff --git a/tests/src/confirmSponsorship.test.ts b/tests/src/confirmSponsorship.test.ts index 70d4d7d6ac..cbc3db6103 100644 --- a/tests/src/confirmSponsorship.test.ts +++ b/tests/src/confirmSponsorship.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub, Pallets} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; async function setSponsorHelper(collection: any, signer: IKeyringPair, sponsorAddress: string) { await collection.setSponsor(signer, sponsorAddress); diff --git a/tests/src/connection.test.ts b/tests/src/connection.test.ts index 07a5f0a7aa..48ee110ed9 100644 --- a/tests/src/connection.test.ts +++ b/tests/src/connection.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itSub, expect, usingPlaygrounds} from './util'; +import {itSub, expect, usingPlaygrounds} from './util/index.js'; describe('Connection smoke test', () => { itSub('Connection can be established', async ({helper}) => { diff --git a/tests/src/createCollection.test.ts b/tests/src/createCollection.test.ts index ec4c71a0f7..0d0c92f1e2 100644 --- a/tests/src/createCollection.test.ts +++ b/tests/src/createCollection.test.ts @@ -14,10 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub, Pallets} from './util'; -import {CollectionFlag, ICollectionCreationOptions, IProperty} from './util/playgrounds/types'; -import {UniqueHelper} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js'; +import {CollectionFlag} from './util/playgrounds/types.js'; +import type {ICollectionCreationOptions, IProperty} from './util/playgrounds/types.js'; +import {UniqueHelper} from './util/playgrounds/unique.js'; async function mintCollectionHelper(helper: UniqueHelper, signer: IKeyringPair, options: ICollectionCreationOptions, type?: 'nft' | 'fungible' | 'refungible') { let collection; diff --git a/tests/src/createItem.test.ts b/tests/src/createItem.test.ts index af49c169a4..49cef6950e 100644 --- a/tests/src/createItem.test.ts +++ b/tests/src/createItem.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, itSub, Pallets} from './util'; -import {IProperty, ICrossAccountId} from './util/playgrounds/types'; -import {UniqueHelper} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js'; +import type {IProperty, ICrossAccountId} from './util/playgrounds/types.js'; +import {UniqueHelper} from './util/playgrounds/unique.js'; async function mintTokenHelper(helper: UniqueHelper, collection: any, signer: IKeyringPair, owner: ICrossAccountId, type: 'nft' | 'fungible' | 'refungible'='nft', properties?: IProperty[]) { let token; diff --git a/tests/src/createMultipleItems.test.ts b/tests/src/createMultipleItems.test.ts index 1eb4561e64..af8ff14576 100644 --- a/tests/src/createMultipleItems.test.ts +++ b/tests/src/createMultipleItems.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, Pallets, itSub} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, Pallets, itSub} from './util/index.js'; describe('Integration Test createMultipleItems(collection_id, owner, items_data):', () => { let alice: IKeyringPair; diff --git a/tests/src/createMultipleItemsEx.test.ts b/tests/src/createMultipleItemsEx.test.ts index 23e1e17fc4..598231ca06 100644 --- a/tests/src/createMultipleItemsEx.test.ts +++ b/tests/src/createMultipleItemsEx.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, expect, Pallets, itSub} from './util'; -import {IProperty} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, expect, Pallets, itSub} from './util/index.js'; +import type {IProperty} from './util/playgrounds/types.js'; describe('Integration Test: createMultipleItemsEx', () => { let alice: IKeyringPair; diff --git a/tests/src/creditFeesToTreasury.seqtest.ts b/tests/src/creditFeesToTreasury.seqtest.ts index 0361ae52cd..e67d648aee 100644 --- a/tests/src/creditFeesToTreasury.seqtest.ts +++ b/tests/src/creditFeesToTreasury.seqtest.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . import './interfaces/augment-api-consts'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {ApiPromise} from '@polkadot/api'; -import {usingPlaygrounds, expect, itSub} from './util'; +import {usingPlaygrounds, expect, itSub} from './util/index.js'; const TREASURY = '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z'; const saneMinimumFee = 0.05; diff --git a/tests/src/destroyCollection.test.ts b/tests/src/destroyCollection.test.ts index 544761ac65..06ad8a7e0a 100644 --- a/tests/src/destroyCollection.test.ts +++ b/tests/src/destroyCollection.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, expect, usingPlaygrounds, Pallets} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, expect, usingPlaygrounds, Pallets} from './util/index.js'; describe('integration test: ext. destroyCollection():', () => { let alice: IKeyringPair; diff --git a/tests/src/enableDisableTransfer.test.ts b/tests/src/enableDisableTransfer.test.ts index 1868519c80..325269a95a 100644 --- a/tests/src/enableDisableTransfer.test.ts +++ b/tests/src/enableDisableTransfer.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; describe('Enable/Disable Transfers', () => { let alice: IKeyringPair; diff --git a/tests/src/eth/allowlist.test.ts b/tests/src/eth/allowlist.test.ts index 9f3af801c1..b21367e5a8 100644 --- a/tests/src/eth/allowlist.test.ts +++ b/tests/src/eth/allowlist.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets} from '../util'; -import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util'; -import {CreateCollectionData} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets} from '../util/index.js'; +import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util/index.js'; +import {CreateCollectionData} from './util/playgrounds/types.js'; describe('EVM contract allowlist', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/base.test.ts b/tests/src/eth/base.test.ts index 0a7c575f45..67ace6ff04 100644 --- a/tests/src/eth/base.test.ts +++ b/tests/src/eth/base.test.ts @@ -14,8 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {EthUniqueHelper, itEth, usingEthPlaygrounds, expect} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; describe('Contract calls', () => { diff --git a/tests/src/eth/collectionAdmin.test.ts b/tests/src/eth/collectionAdmin.test.ts index 3c0e37e693..fdcd02b84e 100644 --- a/tests/src/eth/collectionAdmin.test.ts +++ b/tests/src/eth/collectionAdmin.test.ts @@ -13,13 +13,13 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {expect} from 'chai'; -import {Pallets} from '../util'; -import {IEthCrossAccountId} from '../util/playgrounds/types'; -import {usingEthPlaygrounds, itEth} from './util'; -import {EthUniqueHelper} from './util/playgrounds/unique.dev'; -import {CreateCollectionData} from './util/playgrounds/types'; +import {Pallets} from '../util/index.js'; +import type {IEthCrossAccountId} from '../util/playgrounds/types.js'; +import {usingEthPlaygrounds, itEth} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import {CreateCollectionData} from './util/playgrounds/types.js'; async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise) { const before = await helper.balance.getSubstrate(helper.address.ethToSubstrate(userAddress)); diff --git a/tests/src/eth/collectionHelperAddress.test.ts b/tests/src/eth/collectionHelperAddress.test.ts index fe6ab80669..899d6d1e36 100644 --- a/tests/src/eth/collectionHelperAddress.test.ts +++ b/tests/src/eth/collectionHelperAddress.test.ts @@ -14,15 +14,15 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itEth, usingEthPlaygrounds, expect} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {COLLECTION_HELPER, Pallets} from '../util'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {COLLECTION_HELPER, Pallets} from '../util/index.js'; describe('[eth]CollectionHelperAddress test: ERC20/ERC721 ', () => { let donor: IKeyringPair; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/collectionLimits.test.ts b/tests/src/eth/collectionLimits.test.ts index 4e9cfb663c..d1e69e35b0 100644 --- a/tests/src/eth/collectionLimits.test.ts +++ b/tests/src/eth/collectionLimits.test.ts @@ -1,7 +1,7 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types.js'; describe('Can set collection limits', () => { diff --git a/tests/src/eth/collectionProperties.test.ts b/tests/src/eth/collectionProperties.test.ts index 5acaf20b9f..8b952b5544 100644 --- a/tests/src/eth/collectionProperties.test.ts +++ b/tests/src/eth/collectionProperties.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itEth, usingEthPlaygrounds, expect} from './util'; -import {Pallets} from '../util'; -import {IProperty, ITokenPropertyPermission} from '../util/playgrounds/types'; -import {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; +import {Pallets} from '../util/index.js'; +import type {IProperty, ITokenPropertyPermission} from '../util/playgrounds/types.js'; +import type {IKeyringPair} from '@polkadot/types/types'; describe('EVM collection properties', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/collectionSponsoring.test.ts b/tests/src/eth/collectionSponsoring.test.ts index 48317b43ee..8f1b653c69 100644 --- a/tests/src/eth/collectionSponsoring.test.ts +++ b/tests/src/eth/collectionSponsoring.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../util/index'; -import {itEth, expect} from './util'; -import {CollectionLimitField, TokenPermissionField} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../util/index.js'; +import {itEth, expect} from './util/index.js'; +import {CollectionLimitField, TokenPermissionField} from './util/playgrounds/types.js'; describe('evm nft collection sponsoring', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/contractSponsoring.test.ts b/tests/src/eth/contractSponsoring.test.ts index 55d073c56b..ea3b3daae2 100644 --- a/tests/src/eth/contractSponsoring.test.ts +++ b/tests/src/eth/contractSponsoring.test.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {EthUniqueHelper} from './util/playgrounds/unique.dev'; -import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from './util'; -import {usingPlaygrounds} from '../util'; -import {CompiledContract} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from './util/index.js'; +import {usingPlaygrounds} from '../util/index.js'; +import type {CompiledContract} from './util/playgrounds/types.js'; describe('Sponsoring EVM contracts', () => { let donor: IKeyringPair; @@ -433,7 +433,7 @@ describe('Sponsoring EVM contracts', () => { callerBalanceBefore = callerBalanceAfter; }; - const gasPrice = BigInt(await helper.eth.getGasPrice()); + const gasPrice = BigInt((await helper.eth.getGasPrice())!); await flip(gasPrice); await flip(gasPrice * 2n); await flip(gasPrice * 21n / 10n); diff --git a/tests/src/eth/createCollection.test.ts b/tests/src/eth/createCollection.test.ts index 6108e1e06a..cba90e593a 100644 --- a/tests/src/eth/createCollection.test.ts +++ b/tests/src/eth/createCollection.test.ts @@ -14,12 +14,13 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {evmToAddress} from '@polkadot/util-crypto'; -import {Pallets, requirePalletsOrSkip} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types'; -import {CollectionFlag, IEthCrossAccountId, TCollectionMode} from '../util/playgrounds/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types.js'; +import {CollectionFlag} from '../util/playgrounds/types.js'; +import type {IEthCrossAccountId, TCollectionMode} from '../util/playgrounds/types.js'; const DECIMALS = 18; const CREATE_COLLECTION_DATA_DEFAULTS_ARRAY = [ diff --git a/tests/src/eth/createFTCollection.seqtest.ts b/tests/src/eth/createFTCollection.seqtest.ts index 41bbdb571a..edf9969928 100644 --- a/tests/src/eth/createFTCollection.seqtest.ts +++ b/tests/src/eth/createFTCollection.seqtest.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets, requirePalletsOrSkip} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; const DECIMALS = 18; diff --git a/tests/src/eth/createFTCollection.test.ts b/tests/src/eth/createFTCollection.test.ts index 77e36e565a..e758856e11 100644 --- a/tests/src/eth/createFTCollection.test.ts +++ b/tests/src/eth/createFTCollection.test.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {evmToAddress} from '@polkadot/util-crypto'; -import {Pallets, requirePalletsOrSkip} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {CollectionLimitField} from './util/playgrounds/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {CollectionLimitField} from './util/playgrounds/types.js'; const DECIMALS = 18; diff --git a/tests/src/eth/createNFTCollection.seqtest.ts b/tests/src/eth/createNFTCollection.seqtest.ts index d81817a44c..868e68d17d 100644 --- a/tests/src/eth/createNFTCollection.seqtest.ts +++ b/tests/src/eth/createNFTCollection.seqtest.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itEth, usingEthPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; describe('Create NFT collection from EVM', () => { diff --git a/tests/src/eth/createNFTCollection.test.ts b/tests/src/eth/createNFTCollection.test.ts index 9f6a19f9c1..93e0cf22f7 100644 --- a/tests/src/eth/createNFTCollection.test.ts +++ b/tests/src/eth/createNFTCollection.test.ts @@ -15,10 +15,9 @@ // along with Unique Network. If not, see . import {evmToAddress} from '@polkadot/util-crypto'; -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {CollectionLimitField} from './util/playgrounds/types'; -import {COLLECTION_HELPER} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {CollectionLimitField} from './util/playgrounds/types.js'; describe('Create NFT collection from EVM', () => { diff --git a/tests/src/eth/createRFTCollection.test.ts b/tests/src/eth/createRFTCollection.test.ts index 96df90878c..c8ec871f80 100644 --- a/tests/src/eth/createRFTCollection.test.ts +++ b/tests/src/eth/createRFTCollection.test.ts @@ -15,10 +15,10 @@ // along with Unique Network. If not, see . import {evmToAddress} from '@polkadot/util-crypto'; -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets, requirePalletsOrSkip} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {CollectionLimitField} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {CollectionLimitField} from './util/playgrounds/types.js'; describe('Create RFT collection from EVM', () => { diff --git a/tests/src/eth/crossTransfer.test.ts b/tests/src/eth/crossTransfer.test.ts index 99dace7d17..da1b7cd6aa 100644 --- a/tests/src/eth/crossTransfer.test.ts +++ b/tests/src/eth/crossTransfer.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itEth, usingEthPlaygrounds} from './util'; -import {CrossAccountId} from '../util/playgrounds/unique'; -import {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds} from './util/index.js'; +import {CrossAccountId} from '../util/playgrounds/unique.js'; +import type {IKeyringPair} from '@polkadot/types/types'; describe('Token transfer between substrate address and EVM address. Fungible', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/destroyCollection.test.ts b/tests/src/eth/destroyCollection.test.ts index 20897425a3..aa2cdeb1d3 100644 --- a/tests/src/eth/destroyCollection.test.ts +++ b/tests/src/eth/destroyCollection.test.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {TCollectionMode} from '../util/playgrounds/types'; -import {CreateCollectionData} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {TCollectionMode} from '../util/playgrounds/types.js'; +import {CreateCollectionData} from './util/playgrounds/types.js'; describe('Destroy Collection from EVM', function() { let donor: IKeyringPair; diff --git a/tests/src/eth/ethFeesAreCorrect.test.ts b/tests/src/eth/ethFeesAreCorrect.test.ts index 9dc5e667db..b4c92cb879 100644 --- a/tests/src/eth/ethFeesAreCorrect.test.ts +++ b/tests/src/eth/ethFeesAreCorrect.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itEth, usingEthPlaygrounds, expect} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; describe('Eth fees are correct', () => { let donor: IKeyringPair; @@ -44,7 +44,7 @@ describe('Eth fees are correct', () => { const contract = helper.ethNativeContract.collection(collectionAddress, 'nft', owner); const balanceBeforeWeb3Transfer = await helper.balance.getEthereum(owner); - await contract.methods.transfer(receiver, tokenA).send({from: owner, maxFeePerGas: (await helper.eth.getGasPrice()).toString()}); + await contract.methods.transfer(receiver, tokenA).send({from: owner, maxFeePerGas: ((await helper.eth.getGasPrice())!).toString()}); const balanceAfterWeb3Transfer = await helper.balance.getEthereum(owner); const web3Diff = balanceBeforeWeb3Transfer - balanceAfterWeb3Transfer; diff --git a/tests/src/eth/events.test.ts b/tests/src/eth/events.test.ts index fd55aafbb7..90f8a087f5 100644 --- a/tests/src/eth/events.test.ts +++ b/tests/src/eth/events.test.ts @@ -15,11 +15,13 @@ // along with Unique Network. If not, see . import {expect} from 'chai'; -import {IKeyringPair} from '@polkadot/types/types'; -import {EthUniqueHelper, itEth, usingEthPlaygrounds} from './util'; -import {IEvent, TCollectionMode} from '../util/playgrounds/types'; -import {Pallets, requirePalletsOrSkip} from '../util'; -import {CollectionLimitField, TokenPermissionField, NormalizedEvent, CreateCollectionData} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import type {IEvent, TCollectionMode} from '../util/playgrounds/types.js'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {CollectionLimitField, TokenPermissionField, CreateCollectionData} from './util/playgrounds/types.js'; +import type {NormalizedEvent} from './util/playgrounds/types.js'; let donor: IKeyringPair; @@ -500,7 +502,7 @@ describe('[RFT] Sync sub & eth events', () => { before(async function() { await usingEthPlaygrounds(async (helper, privateKey) => { requirePalletsOrSkip(this, helper, [Pallets.ReFungible]); - const _donor = await privateKey({url: import.meta.url}); + await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/evmCoder.test.ts b/tests/src/eth/evmCoder.test.ts index ba07c3b6cd..00ff7a8e5e 100644 --- a/tests/src/eth/evmCoder.test.ts +++ b/tests/src/eth/evmCoder.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itEth, expect, usingEthPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, expect, usingEthPlaygrounds} from './util/index.js'; const getContractSource = (collectionAddress: string, contractAddress: string): string => ` // SPDX-License-Identifier: MIT diff --git a/tests/src/eth/fractionalizer/fractionalizer.test.ts b/tests/src/eth/fractionalizer/fractionalizer.test.ts index bc39b98706..84024daa3e 100644 --- a/tests/src/eth/fractionalizer/fractionalizer.test.ts +++ b/tests/src/eth/fractionalizer/fractionalizer.test.ts @@ -17,14 +17,15 @@ import {readFile} from 'fs/promises'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {evmToAddress} from '@polkadot/util-crypto'; import {Contract} from 'web3-eth-contract'; -import {usingEthPlaygrounds, expect, itEth, EthUniqueHelper} from '../util'; -import {CompiledContract} from '../util/playgrounds/types'; -import {requirePalletsOrSkip, Pallets, makeNames} from '../../util'; +import {usingEthPlaygrounds, expect, itEth} from '../util/index.js'; +import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js'; +import type {CompiledContract} from '../util/playgrounds/types.js'; +import {requirePalletsOrSkip, Pallets, makeNames} from '../../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/eth/fungible.test.ts b/tests/src/eth/fungible.test.ts index 674d713864..03e03a23fd 100644 --- a/tests/src/eth/fungible.test.ts +++ b/tests/src/eth/fungible.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; describe('Fungible: Plain calls', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/getCode.test.ts b/tests/src/eth/getCode.test.ts index 5de91a732c..61fdb1f8e8 100644 --- a/tests/src/eth/getCode.test.ts +++ b/tests/src/eth/getCode.test.ts @@ -14,15 +14,15 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {COLLECTION_HELPER, CONTRACT_HELPER} from '../util'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {COLLECTION_HELPER, CONTRACT_HELPER} from '../util/index.js'; describe('RPC eth_getCode', () => { let donor: IKeyringPair; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/helpersSmoke.test.ts b/tests/src/eth/helpersSmoke.test.ts index 14992ad8d0..11ecbf3a1f 100644 --- a/tests/src/eth/helpersSmoke.test.ts +++ b/tests/src/eth/helpersSmoke.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; describe('Helpers sanity check', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/marketplace-v2/marketplace.test.ts b/tests/src/eth/marketplace-v2/marketplace.test.ts index 3bac499fa0..f606785582 100644 --- a/tests/src/eth/marketplace-v2/marketplace.test.ts +++ b/tests/src/eth/marketplace-v2/marketplace.test.ts @@ -14,12 +14,13 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type Web3 from 'web3/types/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; import {readFile} from 'fs/promises'; -import {EthUniqueHelper, SponsoringMode, itEth, usingEthPlaygrounds} from '../util'; -import {makeNames} from '../../util'; +import {SponsoringMode, itEth, usingEthPlaygrounds} from '../util/index.js'; +import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js'; +import {makeNames} from '../../util/index.js'; import {expect} from 'chai'; -import Web3 from 'web3'; const {dirname} = makeNames(import.meta.url); @@ -98,11 +99,12 @@ describe('Market V2 Contract', () => { ); } - function substrateAddressToHex(sub: Uint8Array| string, web3: Web3) { + function substrateAddressToHex(sub: Uint8Array| string, web3: Web3.default) { if(typeof sub === 'string') return web3.utils.padLeft(web3.utils.toHex(web3.utils.toBN(sub)), 64); else if(sub instanceof Uint8Array) return web3.utils.padLeft(web3.utils.bytesToHex(Array.from(sub)), 64); + throw Error('Infallible'); } itEth('Put + Buy [eth]', async ({helper}) => { diff --git a/tests/src/eth/marketplace/marketplace.test.ts b/tests/src/eth/marketplace/marketplace.test.ts index 4c3c48bcad..65ff90af53 100644 --- a/tests/src/eth/marketplace/marketplace.test.ts +++ b/tests/src/eth/marketplace/marketplace.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {readFile} from 'fs/promises'; -import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from '../util'; -import {makeNames} from '../../util'; +import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from '../util/index.js'; +import {makeNames} from '../../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/eth/migration.seqtest.ts b/tests/src/eth/migration.seqtest.ts index a539cbd6e0..e3ae4bce8a 100644 --- a/tests/src/eth/migration.seqtest.ts +++ b/tests/src/eth/migration.seqtest.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Struct} from '@polkadot/types'; -import {IEvent} from '../util/playgrounds/types'; +import type {IEvent} from '../util/playgrounds/types.js'; import {ApiPromise} from '@polkadot/api'; const encodeEvent = (api: ApiPromise, pallet: string, palletEvents: string, event: string, fields: any) => { diff --git a/tests/src/eth/nativeFungible.test.ts b/tests/src/eth/nativeFungible.test.ts index 0c8e953daa..b75f0b9d55 100644 --- a/tests/src/eth/nativeFungible.test.ts +++ b/tests/src/eth/nativeFungible.test.ts @@ -14,15 +14,15 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {UniqueHelper} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {UniqueHelper} from '../util/playgrounds/unique.js'; describe('NativeFungible: ERC20 calls', () => { let donor: IKeyringPair; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); @@ -128,7 +128,7 @@ describe('NativeFungible: ERC20UniqueExtensions calls', () => { let donor: IKeyringPair; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/nativeRpc/estimateGas.test.ts b/tests/src/eth/nativeRpc/estimateGas.test.ts index 31d323c948..f0760506c1 100644 --- a/tests/src/eth/nativeRpc/estimateGas.test.ts +++ b/tests/src/eth/nativeRpc/estimateGas.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itEth, usingEthPlaygrounds} from '../util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {expect, itEth, usingEthPlaygrounds} from '../util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; describe('Ethereum native RPC calls', () => { @@ -23,7 +23,7 @@ describe('Ethereum native RPC calls', () => { const NATIVE_TOKEN_ADDRESS = '0x17c4e6453cc49aaaaeaca894e6d9683e00000000'; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/nesting/nest.test.ts b/tests/src/eth/nesting/nest.test.ts index 153205fb28..a518c78e6a 100644 --- a/tests/src/eth/nesting/nest.test.ts +++ b/tests/src/eth/nesting/nest.test.ts @@ -1,7 +1,8 @@ -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Contract} from 'web3-eth-contract'; -import {itEth, EthUniqueHelper, usingEthPlaygrounds, expect} from '../util'; +import {itEth, usingEthPlaygrounds, expect} from '../util/index.js'; +import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js'; const createNestingCollection = async ( helper: EthUniqueHelper, diff --git a/tests/src/eth/nonFungible.test.ts b/tests/src/eth/nonFungible.test.ts index 2d7b3a75f9..25fe4fcdd3 100644 --- a/tests/src/eth/nonFungible.test.ts +++ b/tests/src/eth/nonFungible.test.ts @@ -14,11 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itEth, usingEthPlaygrounds, expect, EthUniqueHelper} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Contract} from 'web3-eth-contract'; -import {ITokenPropertyPermission} from '../util/playgrounds/types'; -import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionMode, CreateCollectionData, TokenPermissionField} from './util/playgrounds/types'; +import type {ITokenPropertyPermission} from '../util/playgrounds/types.js'; +import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js'; describe('Check ERC721 token URI for NFT', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/payable.test.ts b/tests/src/eth/payable.test.ts index 0f20836e41..6dbf0ecc4e 100644 --- a/tests/src/eth/payable.test.ts +++ b/tests/src/eth/payable.test.ts @@ -14,10 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; -import {itEth, expect, usingEthPlaygrounds, EthUniqueHelper} from './util'; -import {makeNames} from '../util'; +import {itEth, expect, usingEthPlaygrounds} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import {makeNames} from '../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/eth/precompile.test.ts b/tests/src/eth/precompile.test.ts index 42410f4fb0..a4d04a7de2 100644 --- a/tests/src/eth/precompile.test.ts +++ b/tests/src/eth/precompile.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; -import {expect, itEth, usingEthPlaygrounds} from './util'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; describe('Precompiles', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/proxy/fungibleProxy.test.ts b/tests/src/eth/proxy/fungibleProxy.test.ts index 741ccfab81..bcf7d37889 100644 --- a/tests/src/eth/proxy/fungibleProxy.test.ts +++ b/tests/src/eth/proxy/fungibleProxy.test.ts @@ -16,9 +16,10 @@ import {expect} from 'chai'; import {readFile} from 'fs/promises'; -import {IKeyringPair} from '@polkadot/types/types'; -import {EthUniqueHelper, itEth, usingEthPlaygrounds} from '../util'; -import {makeNames} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds} from '../util/index.js'; +import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js'; +import {makeNames} from '../../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/eth/proxy/nonFungibleProxy.test.ts b/tests/src/eth/proxy/nonFungibleProxy.test.ts index a4e79e9476..3acc0dfdd9 100644 --- a/tests/src/eth/proxy/nonFungibleProxy.test.ts +++ b/tests/src/eth/proxy/nonFungibleProxy.test.ts @@ -15,9 +15,10 @@ // along with Unique Network. If not, see . import {readFile} from 'fs/promises'; -import {IKeyringPair} from '@polkadot/types/types'; -import {EthUniqueHelper, itEth, usingEthPlaygrounds, expect} from '../util'; -import {makeNames} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds, expect} from '../util/index.js'; +import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js'; +import {makeNames} from '../../util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/eth/proxyContract.test.ts b/tests/src/eth/proxyContract.test.ts index 034571a1e4..083cfa3847 100644 --- a/tests/src/eth/proxyContract.test.ts +++ b/tests/src/eth/proxyContract.test.ts @@ -14,9 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; -import {itEth, expect, usingEthPlaygrounds, EthUniqueHelper} from './util'; +import {itEth, expect, usingEthPlaygrounds} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; describe('EVM payable contracts', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/reFungible.test.ts b/tests/src/eth/reFungible.test.ts index 5ed86047a9..e5441929c3 100644 --- a/tests/src/eth/reFungible.test.ts +++ b/tests/src/eth/reFungible.test.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {Pallets, requirePalletsOrSkip} from '../util'; -import {expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {ITokenPropertyPermission} from '../util/playgrounds/types'; -import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import type {ITokenPropertyPermission} from '../util/playgrounds/types.js'; +import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js'; describe('Refungible: Plain calls', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/reFungibleToken.test.ts b/tests/src/eth/reFungibleToken.test.ts index 7574777ba9..d30113189b 100644 --- a/tests/src/eth/reFungibleToken.test.ts +++ b/tests/src/eth/reFungibleToken.test.ts @@ -14,9 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {Pallets, requirePalletsOrSkip} from '../util'; -import {EthUniqueHelper, expect, itEth, usingEthPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; +import {Pallets, requirePalletsOrSkip} from '../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Contract} from 'web3-eth-contract'; // FIXME: Need erc721 for ReFubgible. diff --git a/tests/src/eth/scheduling.test.ts b/tests/src/eth/scheduling.test.ts index e24d3dee4b..0cff2534ca 100644 --- a/tests/src/eth/scheduling.test.ts +++ b/tests/src/eth/scheduling.test.ts @@ -15,8 +15,9 @@ // along with Unique Network. If not, see . import {expect} from 'chai'; -import {EthUniqueHelper, itSchedEth} from './util'; -import {Pallets, usingPlaygrounds} from '../util'; +import {itSchedEth} from './util/index.js'; +import {EthUniqueHelper} from './util/playgrounds/unique.dev.js'; +import {Pallets, usingPlaygrounds} from '../util/index.js'; describe('Scheduing EVM smart contracts', () => { diff --git a/tests/src/eth/sponsoring.test.ts b/tests/src/eth/sponsoring.test.ts index 267651be01..8c0b79ec1e 100644 --- a/tests/src/eth/sponsoring.test.ts +++ b/tests/src/eth/sponsoring.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itEth, expect, SponsoringMode} from './util'; -import {usingPlaygrounds} from '../util/index'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, expect, SponsoringMode} from './util/index.js'; +import {usingPlaygrounds} from '../util/index.js'; describe('EVM sponsoring', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/tokenProperties.test.ts b/tests/src/eth/tokenProperties.test.ts index 517152ca54..16890a9a20 100644 --- a/tests/src/eth/tokenProperties.test.ts +++ b/tests/src/eth/tokenProperties.test.ts @@ -14,13 +14,13 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {Contract} from 'web3-eth-contract'; -import {itEth, usingEthPlaygrounds, expect} from './util'; -import {ITokenPropertyPermission} from '../util/playgrounds/types'; -import {Pallets} from '../util'; -import {UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection} from '../util/playgrounds/unique'; -import {CreateCollectionData, TokenPermissionField} from './util/playgrounds/types'; +import {itEth, usingEthPlaygrounds, expect} from './util/index.js'; +import type {ITokenPropertyPermission} from '../util/playgrounds/types.js'; +import {Pallets} from '../util/index.js'; +import {UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection} from '../util/playgrounds/unique.js'; +import {CreateCollectionData, TokenPermissionField} from './util/playgrounds/types.js'; describe('EVM token properties', () => { let donor: IKeyringPair; diff --git a/tests/src/eth/tokens/callMethodsERC20.test.ts b/tests/src/eth/tokens/callMethodsERC20.test.ts index 1d4492279f..ca048efd50 100644 --- a/tests/src/eth/tokens/callMethodsERC20.test.ts +++ b/tests/src/eth/tokens/callMethodsERC20.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {Pallets, requirePalletsOrSkip} from '../../util'; -import {expect, itEth, usingEthPlaygrounds} from '../util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {CreateCollectionData} from '../util/playgrounds/types'; +import {Pallets, requirePalletsOrSkip} from '../../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from '../util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {CreateCollectionData} from '../util/playgrounds/types.js'; [ {mode: 'ft' as const, requiredPallets: []}, diff --git a/tests/src/eth/tokens/callMethodsERC721.test.ts b/tests/src/eth/tokens/callMethodsERC721.test.ts index 2662169b49..37055be284 100644 --- a/tests/src/eth/tokens/callMethodsERC721.test.ts +++ b/tests/src/eth/tokens/callMethodsERC721.test.ts @@ -14,17 +14,17 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {Pallets} from '../../util'; -import {expect, itEth, usingEthPlaygrounds} from '../util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {CreateCollectionData} from '../util/playgrounds/types'; +import {Pallets} from '../../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from '../util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {CreateCollectionData} from '../util/playgrounds/types.js'; describe('ERC-721 call methods', () => { let donor: IKeyringPair; before(async function() { - await usingEthPlaygrounds(async (helper, privateKey) => { + await usingEthPlaygrounds(async (_, privateKey) => { donor = await privateKey({url: import.meta.url}); }); }); diff --git a/tests/src/eth/tokens/minting.test.ts b/tests/src/eth/tokens/minting.test.ts index d0e1fd5fff..faaf2be39e 100644 --- a/tests/src/eth/tokens/minting.test.ts +++ b/tests/src/eth/tokens/minting.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {Pallets} from '../../util'; -import {expect, itEth, usingEthPlaygrounds} from '../util'; -import {CreateCollectionData} from '../util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {Pallets} from '../../util/index.js'; +import {expect, itEth, usingEthPlaygrounds} from '../util/index.js'; +import {CreateCollectionData} from '../util/playgrounds/types.js'; describe('Minting tokens', () => { diff --git a/tests/src/eth/transferValue.test.ts b/tests/src/eth/transferValue.test.ts index cfb2a0659f..cffd781bd0 100644 --- a/tests/src/eth/transferValue.test.ts +++ b/tests/src/eth/transferValue.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itEth, usingEthPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds} from './util/index.js'; import {expect} from 'chai'; describe('Send value to contract', () => { diff --git a/tests/src/eth/util/index.ts b/tests/src/eth/util/index.ts index 1173ed3fde..685b76f8cc 100644 --- a/tests/src/eth/util/index.ts +++ b/tests/src/eth/util/index.ts @@ -2,20 +2,19 @@ // SPDX-License-Identifier: Apache-2.0 import * as path from 'path'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; -import config from '../../config'; +import config from '../../config.js'; -import {EthUniqueHelper} from './playgrounds/unique.dev'; -import {SilentLogger, SilentConsole} from '../../util/playgrounds/unique.dev'; -import {SchedKind, makeNames} from '../../util'; - -export {EthUniqueHelper} from './playgrounds/unique.dev'; +import {EthUniqueHelper} from './playgrounds/unique.dev.js'; +import {SilentLogger, SilentConsole} from '../../util/playgrounds/unique.dev.js'; +import {makeNames} from '../../util/index.js'; +import type {SchedKind} from '../../util/index.js'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiLike from 'chai-like'; -import {getTestSeed, MINIMUM_DONOR_FUND, requirePalletsOrSkip} from '../../util'; +import {getTestSeed, MINIMUM_DONOR_FUND, requirePalletsOrSkip} from '../../util/index.js'; chai.use(chaiAsPromised); chai.use(chaiLike); diff --git a/tests/src/eth/util/playgrounds/types.ts b/tests/src/eth/util/playgrounds/types.ts index 5af3e6660e..fac4bf927a 100644 --- a/tests/src/eth/util/playgrounds/types.ts +++ b/tests/src/eth/util/playgrounds/types.ts @@ -1,4 +1,5 @@ -import {CollectionFlag, TCollectionMode} from '../../../util/playgrounds/types'; +import {CollectionFlag} from '../../../util/playgrounds/types.js'; +import type {TCollectionMode} from '../../../util/playgrounds/types.js'; export interface ContractImports { solPath: string; diff --git a/tests/src/eth/util/playgrounds/unique.dev.ts b/tests/src/eth/util/playgrounds/unique.dev.ts index 7d98f696e0..aad1bdeb4c 100644 --- a/tests/src/eth/util/playgrounds/unique.dev.ts +++ b/tests/src/eth/util/playgrounds/unique.dev.ts @@ -14,11 +14,12 @@ import {Contract} from 'web3-eth-contract'; import solc from 'solc'; import {evmToAddress} from '@polkadot/util-crypto'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; -import {ArrangeGroup, DevUniqueHelper} from '../../../util/playgrounds/unique.dev'; +import {ArrangeGroup, DevUniqueHelper} from '../../../util/playgrounds/unique.dev.js'; -import {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty, CollectionMode, CreateCollectionData} from './types'; +import type {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty} from './types.js'; +import {CollectionMode, CreateCollectionData} from './types.js'; // Native contracts ABI import collectionHelpersAbi from '../../abi/collectionHelpers.json' assert {type: 'json'}; @@ -32,8 +33,7 @@ import refungibleDeprecatedAbi from '../../abi/reFungibleDeprecated.json' assert import refungibleTokenAbi from '../../abi/reFungibleToken.json' assert {type: 'json'}; import refungibleTokenDeprecatedAbi from '../../abi/reFungibleTokenDeprecated.json' assert {type: 'json'}; import contractHelpersAbi from '../../abi/contractHelpers.json' assert {type: 'json'}; -import {ICrossAccountId, TEthereumAccount} from '../../../util/playgrounds/types'; -import {TCollectionMode} from '../../../util/playgrounds/types'; +import type {ICrossAccountId, TEthereumAccount, TCollectionMode} from '../../../util/playgrounds/types.js'; class EthGroupBase { helper: EthUniqueHelper; @@ -345,7 +345,7 @@ class EthGroup extends EthGroupBase { return this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'rft')).send(); } - createFungibleCollection(signer: string, name: string, decimals: number, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> { + createFungibleCollection(signer: string, name: string, _decimals: number, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> { return this.createCollection(signer, new CreateCollectionData(name, description, tokenPrefix, 'ft')).send(); } @@ -459,7 +459,7 @@ class EthAddressGroup extends EthGroupBase { fromCollectionId(collectionId: number): string { if(collectionId >= 0xffffffff || collectionId < 0) throw new Error('collectionId overflow'); - return Web3.utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`); + return Web3.default.utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`); } extractTokenId(address: string): { collectionId: number, tokenId: number } { @@ -545,7 +545,7 @@ export class FeeGas { } class EthArrangeGroup extends ArrangeGroup { - helper: EthUniqueHelper; + override helper: EthUniqueHelper; constructor(helper: EthUniqueHelper) { super(helper); @@ -558,7 +558,7 @@ class EthArrangeGroup extends ArrangeGroup { } } export class EthUniqueHelper extends DevUniqueHelper { - web3: Web3 | null = null; + web3: Web3.default | null = null; web3Provider: WebsocketProvider | null = null; eth: EthGroup; @@ -567,7 +567,7 @@ export class EthUniqueHelper extends DevUniqueHelper { ethNativeContract: NativeContractGroup; ethContract: ContractGroup; ethProperty: EthPropertyGroup; - arrange: EthArrangeGroup; + override arrange: EthArrangeGroup; constructor(logger: { log: (msg: any, level: any) => void, level: any }, options: { [key: string]: any } = {}) { options.helperBase = options.helperBase ?? EthUniqueHelper; @@ -582,30 +582,30 @@ export class EthUniqueHelper extends DevUniqueHelper { super.arrange = this.arrange; } - getWeb3(): Web3 { + getWeb3(): Web3.default { if(this.web3 === null) throw Error('Web3 not connected'); return this.web3; } connectWeb3(wsEndpoint: string) { if(this.web3 !== null) return; - this.web3Provider = new Web3.providers.WebsocketProvider(wsEndpoint); - this.web3 = new Web3(this.web3Provider); + this.web3Provider = new Web3.default.providers.WebsocketProvider(wsEndpoint); + this.web3 = new Web3.default(this.web3Provider); } - async disconnect() { + override async disconnect() { if(this.web3 === null) return; this.web3Provider?.connection.close(); await super.disconnect(); } - clearApi() { + override clearApi() { super.clearApi(); this.web3 = null; } - clone(helperCls: EthUniqueHelperConstructor, options?: { [key: string]: any; }): EthUniqueHelper { + override clone(helperCls: EthUniqueHelperConstructor, options?: { [key: string]: any; }): EthUniqueHelper { const newHelper = super.clone(helperCls, options) as EthUniqueHelper; newHelper.web3 = this.web3; newHelper.web3Provider = this.web3Provider; diff --git a/tests/src/fungible.test.ts b/tests/src/fungible.test.ts index 668d5202a1..cf4d92e419 100644 --- a/tests/src/fungible.test.ts +++ b/tests/src/fungible.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect, requirePalletsOrSkip, Pallets} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect, requirePalletsOrSkip, Pallets} from './util/index.js'; const U128_MAX = (1n << 128n) - 1n; diff --git a/tests/src/generateEnv.ts b/tests/src/generateEnv.ts index b938c5650c..d306a2d018 100644 --- a/tests/src/generateEnv.ts +++ b/tests/src/generateEnv.ts @@ -1,7 +1,7 @@ import {ApiPromise, WsProvider} from '@polkadot/api'; import {readFile} from 'fs/promises'; import {join} from 'path'; -import {makeNames} from './util'; +import {makeNames} from './util/index.js'; const {dirname} = makeNames(import.meta.url); diff --git a/tests/src/getPropertiesRpc.test.ts b/tests/src/getPropertiesRpc.test.ts index f9ad43a8de..da64e96f7b 100644 --- a/tests/src/getPropertiesRpc.test.ts +++ b/tests/src/getPropertiesRpc.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {UniqueHelper, UniqueNFTCollection} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {UniqueHelper, UniqueNFTCollection} from './util/playgrounds/unique.js'; const collectionProps = [ {key: 'col-0', value: 'col-0-value'}, diff --git a/tests/src/governance/council.test.ts b/tests/src/governance/council.test.ts index 952eaae6c0..0477135f09 100644 --- a/tests/src/governance/council.test.ts +++ b/tests/src/governance/council.test.ts @@ -1,8 +1,9 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util'; -import {Event} from '../util/playgrounds/unique.dev'; -import {ICounselors, initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, councilMotionDuration, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, initTechComm, clearFellowship, dummyProposal, dummyProposalCall, initFellowship, defaultEnactmentMoment, fellowshipPropositionOrigin} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util/index.js'; +import {Event} from '../util/playgrounds/unique.dev.js'; +import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, councilMotionDuration, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, initTechComm, clearFellowship, dummyProposal, dummyProposalCall, initFellowship, defaultEnactmentMoment, fellowshipPropositionOrigin} from './util.js'; +import type {ICounselors} from './util.js'; describeGov('Governance: Council tests', () => { let donor: IKeyringPair; diff --git a/tests/src/governance/democracy.test.ts b/tests/src/governance/democracy.test.ts index bf822bbaf5..719a4acdcf 100644 --- a/tests/src/governance/democracy.test.ts +++ b/tests/src/governance/democracy.test.ts @@ -1,7 +1,7 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util'; -import {clearFellowship, democracyLaunchPeriod, democracyTrackMinRank, dummyProposalCall, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, fellowshipPreparePeriod, fellowshipPropositionOrigin, initFellowship, voteUnanimouslyInFellowship} from './util'; -import {Event} from '../util/playgrounds/unique.dev'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util/index.js'; +import {clearFellowship, democracyLaunchPeriod, democracyTrackMinRank, dummyProposalCall, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, fellowshipPreparePeriod, fellowshipPropositionOrigin, initFellowship, voteUnanimouslyInFellowship} from './util.js'; +import {Event} from '../util/playgrounds/unique.dev.js'; describeGov('Governance: Democracy tests', () => { let regularUser: IKeyringPair; diff --git a/tests/src/governance/fellowship.test.ts b/tests/src/governance/fellowship.test.ts index ed3f4e241a..16abe61f0a 100644 --- a/tests/src/governance/fellowship.test.ts +++ b/tests/src/governance/fellowship.test.ts @@ -1,7 +1,8 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util'; -import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev'; -import {ICounselors, initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, ITechComms, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, voteUnanimouslyInFellowship, democracyTrackMinRank, fellowshipPreparePeriod, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, democracyTrackId, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util/index.js'; +import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev.js'; +import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, voteUnanimouslyInFellowship, democracyTrackMinRank, fellowshipPreparePeriod, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, democracyTrackId, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js'; +import type {ICounselors, ITechComms} from './util.js'; describeGov('Governance: Fellowship tests', () => { let members: IKeyringPair[][]; diff --git a/tests/src/governance/init.test.ts b/tests/src/governance/init.test.ts index 7d2a944745..11457e4fc6 100644 --- a/tests/src/governance/init.test.ts +++ b/tests/src/governance/init.test.ts @@ -1,7 +1,8 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util'; -import {Event} from '../util/playgrounds/unique.dev'; -import {ICounselors, democracyLaunchPeriod, democracyVotingPeriod, ITechComms, democracyEnactmentPeriod, clearCouncil, clearTechComm, clearFellowship} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util/index.js'; +import {Event} from '../util/playgrounds/unique.dev.js'; +import {democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, clearCouncil, clearTechComm, clearFellowship} from './util.js'; +import type {ICounselors, ITechComms} from './util.js'; describeGov('Governance: Initialization', () => { let donor: IKeyringPair; diff --git a/tests/src/governance/technicalCommittee.test.ts b/tests/src/governance/technicalCommittee.test.ts index 84d7ade6ef..f8a69c94c7 100644 --- a/tests/src/governance/technicalCommittee.test.ts +++ b/tests/src/governance/technicalCommittee.test.ts @@ -1,7 +1,8 @@ -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util'; -import {Event} from '../util/playgrounds/unique.dev'; -import {initCouncil, democracyLaunchPeriod, democracyFastTrackVotingPeriod, clearCouncil, clearTechComm, ITechComms, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../util/index.js'; +import {Event} from '../util/playgrounds/unique.dev.js'; +import {initCouncil, democracyLaunchPeriod, democracyFastTrackVotingPeriod, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js'; +import type {ITechComms} from './util.js'; describeGov('Governance: Technical Committee tests', () => { let sudoer: IKeyringPair; @@ -190,11 +191,11 @@ describeGov('Governance: Technical Committee tests', () => { }); - itSub.skip('[Negative] TechComm cannot promote/demote Fellowship member', async ({helper}) => { + itSub.skip('[Negative] TechComm cannot promote/demote Fellowship member', async () => { }); - itSub.skip('[Negative] TechComm member cannot promote/demote Fellowship member', async ({helper}) => { + itSub.skip('[Negative] TechComm member cannot promote/demote Fellowship member', async () => { }); @@ -338,7 +339,7 @@ describeGov('Governance: Technical Committee tests', () => { )).to.be.rejectedWith('BadOrigin'); }); - itSub.skip('[Negative] TechComm member cannot veto external Democracy proposals until the cool-off period pass', async ({helper}) => { + itSub.skip('[Negative] TechComm member cannot veto external Democracy proposals until the cool-off period pass', async () => { }); diff --git a/tests/src/governance/util.ts b/tests/src/governance/util.ts index 3b213445bb..e86144f8b7 100644 --- a/tests/src/governance/util.ts +++ b/tests/src/governance/util.ts @@ -1,8 +1,9 @@ -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {xxhashAsHex} from '@polkadot/util-crypto'; -import {usingPlaygrounds, expect} from '../util'; -import {UniqueHelper} from '../util/playgrounds/unique'; -import {DevUniqueHelper} from '../util/playgrounds/unique.dev'; +import type {u32} from '@polkadot/types-codec'; +import {usingPlaygrounds, expect} from '../util/index.js'; +import {UniqueHelper} from '../util/playgrounds/unique.js'; +import {DevUniqueHelper} from '../util/playgrounds/unique.dev.js'; export const democracyLaunchPeriod = 35; export const democracyVotingPeriod = 35; @@ -173,7 +174,7 @@ export async function clearFellowship(sudoer: IKeyringPair) { export async function clearFellowshipReferenda(sudoer: IKeyringPair) { await usingPlaygrounds(async (helper) => { - const proposalsCount = (await helper.getApi().query.fellowshipReferenda.referendumCount()); + const proposalsCount = (await helper.getApi().query.fellowshipReferenda.referendumCount()) as u32; for(let i = 0; i < proposalsCount.toNumber(); i++) { await helper.getSudo().fellowship.referenda.cancel(sudoer, i); } diff --git a/tests/src/inflation.seqtest.ts b/tests/src/inflation.seqtest.ts index 661490d00d..1dae08096f 100644 --- a/tests/src/inflation.seqtest.ts +++ b/tests/src/inflation.seqtest.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from './util/index.js'; // todo:playgrounds requires sudo, look into on the later stage describe('integration test: Inflation', () => { diff --git a/tests/src/interfaces/augment-api-consts.ts b/tests/src/interfaces/augment-api-consts.ts index 165d7a4d2e..46fd606d94 100644 --- a/tests/src/interfaces/augment-api-consts.ts +++ b/tests/src/interfaces/augment-api-consts.ts @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types'; import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Codec, ITuple } from '@polkadot/types-codec/types'; import type { H160, Perbill, Permill } from '@polkadot/types/interfaces/runtime'; -import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, XcmV3MultiLocation } from '@polkadot/types/lookup'; +import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, UpDataStructsCollectionLimits } from '@polkadot/types/lookup'; export type __AugmentedConst = AugmentedConst; @@ -79,13 +79,6 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; - collatorSelection: { - licenceBondIdentifier: U8aFixed & AugmentedConst; - /** - * Generic const - **/ - [key: string]: Codec; - }; common: { /** * Maximum admins per collection. @@ -518,6 +511,16 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; + utility: { + /** + * The limit on the number of batched calls. + **/ + batchedCallsLimit: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; vesting: { /** * The minimum amount transferred to call `vested_transfer`. @@ -539,7 +542,7 @@ declare module '@polkadot/api-base/types/consts' { /** * Self chain location. **/ - selfLocation: XcmV3MultiLocation & AugmentedConst; + selfLocation: StagingXcmV3MultiLocation & AugmentedConst; /** * Generic const **/ diff --git a/tests/src/interfaces/augment-api-errors.ts b/tests/src/interfaces/augment-api-errors.ts index d829173e58..ab09fd74fa 100644 --- a/tests/src/interfaces/augment-api-errors.ts +++ b/tests/src/interfaces/augment-api-errors.ts @@ -327,6 +327,10 @@ declare module '@polkadot/api-base/types/errors' { * Account is not a member **/ NotMember: AugmentedError; + /** + * Prime account is not a member + **/ + PrimeAccountNotMember: AugmentedError; /** * Proposal must exist **/ @@ -966,8 +970,8 @@ declare module '@polkadot/api-base/types/errors' { **/ NoSubscription: AugmentedError; /** - * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps - * a lack of space for buffering the message. + * There was some other issue (i.e. not to do with routing) in sending the message. + * Perhaps a lack of space for buffering the message. **/ SendFailure: AugmentedError; /** @@ -1223,6 +1227,10 @@ declare module '@polkadot/api-base/types/errors' { * Account is not a member **/ NotMember: AugmentedError; + /** + * Prime account is not a member + **/ + PrimeAccountNotMember: AugmentedError; /** * Proposal must exist **/ @@ -1358,6 +1366,16 @@ declare module '@polkadot/api-base/types/errors' { **/ [key: string]: AugmentedError; }; + utility: { + /** + * Too many calls batched. + **/ + TooManyCalls: AugmentedError; + /** + * Generic error + **/ + [key: string]: AugmentedError; + }; vesting: { /** * The vested transfer amount is too low diff --git a/tests/src/interfaces/augment-api-events.ts b/tests/src/interfaces/augment-api-events.ts index 014760cf80..1ce8ce7ce7 100644 --- a/tests/src/interfaces/augment-api-events.ts +++ b/tests/src/interfaces/augment-api-events.ts @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; import type { Bytes, Null, Option, Result, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime'; -import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, OrmlVestingVestingSchedule, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiAsset, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; +import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, OrmlVestingVestingSchedule, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetId, PalletForeignAssetsModuleAssetMetadata, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV3MultiAsset, StagingXcmV3MultiLocation, StagingXcmV3MultiassetMultiAssets, StagingXcmV3Response, StagingXcmV3TraitsError, StagingXcmV3TraitsOutcome, StagingXcmV3Xcm, StagingXcmVersionedMultiAssets, StagingXcmVersionedMultiLocation } from '@polkadot/types/lookup'; export type __AugmentedEvent = AugmentedEvent; @@ -331,7 +331,7 @@ declare module '@polkadot/api-base/types/events' { * Downward message executed with the given outcome. * \[ id, outcome \] **/ - ExecutedDownward: AugmentedEvent; + ExecutedDownward: AugmentedEvent; /** * Downward message is invalid XCM. * \[ id \] @@ -425,19 +425,19 @@ declare module '@polkadot/api-base/types/events' { /** * Downward message executed with the given outcome. **/ - ExecutedDownward: AugmentedEvent; + ExecutedDownward: AugmentedEvent; /** * Downward message is invalid XCM. **/ - InvalidFormat: AugmentedEvent; + InvalidFormat: AugmentedEvent; /** - * The maximum number of downward messages was. + * The maximum number of downward messages was reached. **/ - MaxMessagesExhausted: AugmentedEvent; + MaxMessagesExhausted: AugmentedEvent; /** * Downward message is overweight and was placed in the overweight queue. **/ - OverweightEnqueued: AugmentedEvent; + OverweightEnqueued: AugmentedEvent; /** * Downward message from the overweight queue was executed. **/ @@ -445,11 +445,11 @@ declare module '@polkadot/api-base/types/events' { /** * Downward message is unsupported version of XCM. **/ - UnsupportedVersion: AugmentedEvent; + UnsupportedVersion: AugmentedEvent; /** * The weight limit for handling downward messages was reached. **/ - WeightExhausted: AugmentedEvent; + WeightExhausted: AugmentedEvent; /** * Generic event **/ @@ -610,19 +610,19 @@ declare module '@polkadot/api-base/types/events' { /** * The asset registered. **/ - AssetRegistered: AugmentedEvent; + AssetRegistered: AugmentedEvent; /** * The asset updated. **/ - AssetUpdated: AugmentedEvent; + AssetUpdated: AugmentedEvent; /** * The foreign asset registered. **/ - ForeignAssetRegistered: AugmentedEvent; + ForeignAssetRegistered: AugmentedEvent; /** * The foreign asset updated. **/ - ForeignAssetUpdated: AugmentedEvent; + ForeignAssetUpdated: AugmentedEvent; /** * Generic event **/ @@ -732,36 +732,26 @@ declare module '@polkadot/api-base/types/events' { polkadotXcm: { /** * Some assets have been claimed from an asset trap - * - * \[ hash, origin, assets \] **/ - AssetsClaimed: AugmentedEvent; + AssetsClaimed: AugmentedEvent; /** * Some assets have been placed in an asset trap. - * - * \[ hash, origin, assets \] **/ - AssetsTrapped: AugmentedEvent; + AssetsTrapped: AugmentedEvent; /** * Execution of an XCM message was attempted. - * - * \[ outcome \] **/ - Attempted: AugmentedEvent; + Attempted: AugmentedEvent; /** * Fees were paid from a location for an operation (often for using `SendXcm`). - * - * \[ paying location, fees \] **/ - FeesPaid: AugmentedEvent; + FeesPaid: AugmentedEvent; /** * Expected query response has been received but the querier location of the response does * not match the expected. The query remains registered for a later, valid, response to * be received and acted upon. - * - * \[ origin location, id, expected querier, maybe actual querier \] **/ - InvalidQuerier: AugmentedEvent]>; + InvalidQuerier: AugmentedEvent], { origin: StagingXcmV3MultiLocation, queryId: u64, expectedQuerier: StagingXcmV3MultiLocation, maybeActualQuerier: Option }>; /** * Expected query response has been received but the expected querier location placed in * storage by this runtime previously cannot be decoded. The query remains registered. @@ -770,18 +760,14 @@ declare module '@polkadot/api-base/types/events' { * runtime should be readable prior to query timeout) and dangerous since the possibly * valid response will be dropped. Manual governance intervention is probably going to be * needed. - * - * \[ origin location, id \] **/ - InvalidQuerierVersion: AugmentedEvent; + InvalidQuerierVersion: AugmentedEvent; /** * Expected query response has been received but the origin location of the response does * not match that expected. The query remains registered for a later, valid, response to * be received and acted upon. - * - * \[ origin location, id, expected location \] **/ - InvalidResponder: AugmentedEvent]>; + InvalidResponder: AugmentedEvent], { origin: StagingXcmV3MultiLocation, queryId: u64, expectedLocation: Option }>; /** * Expected query response has been received but the expected origin location placed in * storage by this runtime previously cannot be decoded. The query remains registered. @@ -790,115 +776,84 @@ declare module '@polkadot/api-base/types/events' { * runtime should be readable prior to query timeout) and dangerous since the possibly * valid response will be dropped. Manual governance intervention is probably going to be * needed. - * - * \[ origin location, id \] **/ - InvalidResponderVersion: AugmentedEvent; + InvalidResponderVersion: AugmentedEvent; /** * Query response has been received and query is removed. The registered notification has * been dispatched and executed successfully. - * - * \[ id, pallet index, call index \] **/ - Notified: AugmentedEvent; + Notified: AugmentedEvent; /** * Query response has been received and query is removed. The dispatch was unable to be * decoded into a `Call`; this might be due to dispatch function having a signature which * is not `(origin, QueryId, Response)`. - * - * \[ id, pallet index, call index \] **/ - NotifyDecodeFailed: AugmentedEvent; + NotifyDecodeFailed: AugmentedEvent; /** * Query response has been received and query is removed. There was a general error with * dispatching the notification call. - * - * \[ id, pallet index, call index \] **/ - NotifyDispatchError: AugmentedEvent; + NotifyDispatchError: AugmentedEvent; /** - * Query response has been received and query is removed. The registered notification could - * not be dispatched because the dispatch weight is greater than the maximum weight + * Query response has been received and query is removed. The registered notification + * could not be dispatched because the dispatch weight is greater than the maximum weight * originally budgeted by this runtime for the query result. - * - * \[ id, pallet index, call index, actual weight, max budgeted weight \] **/ - NotifyOverweight: AugmentedEvent; + NotifyOverweight: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * migrating the location to our new XCM format. - * - * \[ location, query ID \] **/ - NotifyTargetMigrationFail: AugmentedEvent; + NotifyTargetMigrationFail: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * sending the notification to it. - * - * \[ location, query ID, error \] **/ - NotifyTargetSendFail: AugmentedEvent; + NotifyTargetSendFail: AugmentedEvent; /** * Query response has been received and is ready for taking with `take_response`. There is * no registered notification call. - * - * \[ id, response \] **/ - ResponseReady: AugmentedEvent; + ResponseReady: AugmentedEvent; /** * Received query response has been read and removed. - * - * \[ id \] **/ - ResponseTaken: AugmentedEvent; + ResponseTaken: AugmentedEvent; /** * A XCM message was sent. - * - * \[ origin, destination, message \] **/ - Sent: AugmentedEvent; + Sent: AugmentedEvent; /** * The supported version of a location has been changed. This might be through an * automatic notification or a manual intervention. - * - * \[ location, XCM version \] **/ - SupportedVersionChanged: AugmentedEvent; + SupportedVersionChanged: AugmentedEvent; /** * Query response received which does not match a registered query. This may be because a * matching query was never registered, it may be because it is a duplicate response, or * because the query timed out. - * - * \[ origin location, id \] **/ - UnexpectedResponse: AugmentedEvent; + UnexpectedResponse: AugmentedEvent; /** * An XCM version change notification message has been attempted to be sent. * * The cost of sending it (borne by the chain) is included. - * - * \[ destination, result, cost \] **/ - VersionChangeNotified: AugmentedEvent; + VersionChangeNotified: AugmentedEvent; /** - * We have requested that a remote chain sends us XCM version change notifications. - * - * \[ destination location, cost \] + * We have requested that a remote chain send us XCM version change notifications. **/ - VersionNotifyRequested: AugmentedEvent; + VersionNotifyRequested: AugmentedEvent; /** * A remote has requested XCM version change notification from us and we have honored it. * A version information message is sent to them and its cost is included. - * - * \[ destination location, cost \] **/ - VersionNotifyStarted: AugmentedEvent; + VersionNotifyStarted: AugmentedEvent; /** - * We have requested that a remote chain stops sending us XCM version change notifications. - * - * \[ destination location, cost \] + * We have requested that a remote chain stops sending us XCM version change + * notifications. **/ - VersionNotifyUnrequested: AugmentedEvent; + VersionNotifyUnrequested: AugmentedEvent; /** * Generic event **/ @@ -1123,65 +1078,67 @@ declare module '@polkadot/api-base/types/events' { /** * A balance was set by root. **/ - BalanceSet: AugmentedEvent; + BalanceSet: AugmentedEvent; /** * Deposited some balance into an account **/ - Deposited: AugmentedEvent; + Deposited: AugmentedEvent; /** * An account was removed whose balance was non-zero but below * ExistentialDeposit, resulting in an outright loss. **/ - DustLost: AugmentedEvent; + DustLost: AugmentedEvent; /** * An account was created with some free balance. **/ - Endowed: AugmentedEvent; + Endowed: AugmentedEvent; + Issued: AugmentedEvent; /** * Some free balance was locked. **/ - Locked: AugmentedEvent; + Locked: AugmentedEvent; /** * Some locked funds were unlocked **/ - LockRemoved: AugmentedEvent; + LockRemoved: AugmentedEvent; /** * Some funds are locked **/ - LockSet: AugmentedEvent; + LockSet: AugmentedEvent; + Rescinded: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Some reserved balance was repatriated (moved from reserved to * another account). **/ - ReserveRepatriated: AugmentedEvent; + ReserveRepatriated: AugmentedEvent; /** * Some balances were slashed (e.g. due to mis-behavior) **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * The total issuance of an currency has been set **/ - TotalIssuanceSet: AugmentedEvent; + TotalIssuanceSet: AugmentedEvent; /** * Transfer succeeded. **/ - Transfer: AugmentedEvent; + Transfer: AugmentedEvent; /** * Some locked balance was freed. **/ - Unlocked: AugmentedEvent; + Unlocked: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * Some balances were withdrawn (e.g. pay for transaction fee) **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -1240,6 +1197,37 @@ declare module '@polkadot/api-base/types/events' { **/ [key: string]: AugmentedEvent; }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches completed but has errors. + **/ + BatchCompletedWithErrors: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. + **/ + BatchInterrupted: AugmentedEvent; + /** + * A call was dispatched. + **/ + DispatchedAs: AugmentedEvent], { result: Result }>; + /** + * A single item within a Batch of dispatches has completed with no error. + **/ + ItemCompleted: AugmentedEvent; + /** + * A single item within a Batch of dispatches has completed with error. + **/ + ItemFailed: AugmentedEvent; + /** + * Generic event + **/ + [key: string]: AugmentedEvent; + }; vesting: { /** * Claimed vesting. @@ -1262,15 +1250,15 @@ declare module '@polkadot/api-base/types/events' { /** * Bad XCM format used. **/ - BadFormat: AugmentedEvent], { messageHash: Option }>; + BadFormat: AugmentedEvent; /** * Bad XCM version used. **/ - BadVersion: AugmentedEvent], { messageHash: Option }>; + BadVersion: AugmentedEvent; /** * Some XCM failed. **/ - Fail: AugmentedEvent, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight], { messageHash: Option, error: XcmV3TraitsError, weight: SpWeightsWeightV2Weight }>; + Fail: AugmentedEvent; /** * An XCM exceeded the individual message weight budget. **/ @@ -1282,11 +1270,11 @@ declare module '@polkadot/api-base/types/events' { /** * Some XCM was executed ok. **/ - Success: AugmentedEvent, weight: SpWeightsWeightV2Weight], { messageHash: Option, weight: SpWeightsWeightV2Weight }>; + Success: AugmentedEvent; /** * An HRMP message was sent to a sibling parachain. **/ - XcmpMessageSent: AugmentedEvent], { messageHash: Option }>; + XcmpMessageSent: AugmentedEvent; /** * Generic event **/ @@ -1296,7 +1284,7 @@ declare module '@polkadot/api-base/types/events' { /** * Transferred `MultiAsset` with fee. **/ - TransferredMultiAssets: AugmentedEvent; + TransferredMultiAssets: AugmentedEvent; /** * Generic event **/ diff --git a/tests/src/interfaces/augment-api-query.ts b/tests/src/interfaces/augment-api-query.ts index 5958dbe424..48dc53f49c 100644 --- a/tests/src/interfaces/augment-api-query.ts +++ b/tests/src/interfaces/augment-api-query.ts @@ -7,10 +7,10 @@ import '@polkadot/api-base/types/storage'; import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types'; import type { Data } from '@polkadot/types'; -import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; +import type { BTreeMap, Bytes, Option, Struct, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H160, H256 } from '@polkadot/types/interfaces/runtime'; -import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensReserveData, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollectiveVotes, PalletConfigurationAppPromotionConfiguration, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCodeMetadata, PalletEvmContractHelpersSponsoringModeT, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletNonfungibleItemData, PalletPreimageRequestStatus, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV4AbridgedHostConfiguration, PolkadotPrimitivesV4PersistedValidationData, PolkadotPrimitivesV4UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyScope, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, XcmV3MultiLocation, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; +import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OpalRuntimeRuntimeCommonSessionKeys, OpalRuntimeRuntimeHoldReason, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensReserveData, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollectiveVotes, PalletConfigurationAppPromotionConfiguration, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCodeMetadata, PalletEvmContractHelpersSponsoringModeT, PalletForeignAssetsAssetId, PalletForeignAssetsModuleAssetMetadata, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletNonfungibleItemData, PalletPreimageRequestStatus, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV5AbridgedHostConfiguration, PolkadotPrimitivesV5PersistedValidationData, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmVersionedAssetId, StagingXcmVersionedMultiLocation, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyScope, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild } from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; export type __AugmentedQuery = AugmentedQuery unknown>; @@ -81,10 +81,16 @@ declare module '@polkadot/api-base/types/storage' { * Serves as cache for the authorities. * * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session, - * but we require the old authorities to verify the seal when validating a PoV. This will always - * be updated to the latest AuRa authorities in `on_finalize`. + * but we require the old authorities to verify the seal when validating a PoV. This will + * always be updated to the latest AuRa authorities in `on_finalize`. **/ authorities: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Current slot paired with a number of authored blocks. + * + * Updated on each block initialization. + **/ + slotInfo: AugmentedQuery Observable>>, []> & QueryableStorageEntry; /** * Generic query **/ @@ -135,7 +141,10 @@ declare module '@polkadot/api-base/types/storage' { /** * Holds on account balances. **/ - holds: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; + holds: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; /** * The total units of outstanding deactivated balance in the system. **/ @@ -569,19 +578,19 @@ declare module '@polkadot/api-base/types/storage' { * * AssetMetadatas: map AssetIds => Option **/ - assetMetadatas: AugmentedQuery Observable>, [PalletForeignAssetsAssetIds]> & QueryableStorageEntry; + assetMetadatas: AugmentedQuery Observable>, [PalletForeignAssetsAssetId]> & QueryableStorageEntry; /** * The storages for MultiLocations. * * ForeignAssetLocations: map ForeignAssetId => Option **/ - foreignAssetLocations: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; + foreignAssetLocations: AugmentedQuery Observable>, [u32]> & QueryableStorageEntry; /** * The storages for CurrencyIds. * * LocationToCurrencyIds: map MultiLocation => Option **/ - locationToCurrencyIds: AugmentedQuery Observable>, [XcmV3MultiLocation]> & QueryableStorageEntry; + locationToCurrencyIds: AugmentedQuery Observable>, [StagingXcmV3MultiLocation]> & QueryableStorageEntry; /** * Next available Foreign AssetId ID. * @@ -716,7 +725,7 @@ declare module '@polkadot/api-base/types/storage' { /** * Map of key-value pairs, describing the metadata of a token. **/ - tokenProperties: AugmentedQuery Observable, [u32, u32]> & QueryableStorageEntry; + tokenProperties: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; /** * Amount of burnt tokens in a collection. **/ @@ -738,6 +747,12 @@ declare module '@polkadot/api-base/types/storage' { [key: string]: QueryableStorageEntry; }; parachainSystem: { + /** + * Storage field that keeps track of bandwidth used by the unincluded segment along with the + * latest the latest HRMP watermark. Used for limiting the acceptance of new blocks with + * respect to relay chain constraints. + **/ + aggregatedUnincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * The number of HRMP messages we observed in `on_initialize` and thus used that number for * announcing the weight of `on_initialize` and `on_finalize`. @@ -750,7 +765,7 @@ declare module '@polkadot/api-base/types/storage' { /** * A custom head data that should be returned as result of `validate_block`. * - * See [`Pallet::set_custom_validation_head_data`] for more information. + * See `Pallet::set_custom_validation_head_data` for more information. **/ customValidationHeadData: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** @@ -765,7 +780,7 @@ declare module '@polkadot/api-base/types/storage' { * * This data is also absent from the genesis. **/ - hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * HRMP messages that were sent in a block. * @@ -809,12 +824,12 @@ declare module '@polkadot/api-base/types/storage' { **/ pendingUpwardMessages: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** - * In case of a scheduled upgrade, this storage field contains the validation code to be applied. - * - * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE] - * which will result the next block process with the new validation code. This concludes the upgrade process. + * In case of a scheduled upgrade, this storage field contains the validation code to be + * applied. * - * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE + * As soon as the relay chain gives us the go-ahead signal, we will overwrite the + * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process + * with the new validation code. This concludes the upgrade process. **/ pendingValidationCode: AugmentedQuery Observable, []> & QueryableStorageEntry; /** @@ -852,6 +867,23 @@ declare module '@polkadot/api-base/types/storage' { * overrides the amount set in the Config trait. **/ reservedXcmpWeightOverride: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Latest included block descendants the runtime accepted. In other words, these are + * ancestors of the currently executing block which have not been included in the observed + * relay-chain state. + * + * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured + * in the pallet. + **/ + unincludedSegment: AugmentedQuery Observable>, []> & QueryableStorageEntry; + /** + * Optional upgrade go-ahead signal from the relay-chain. + * + * This storage item is a mirror of the corresponding value for the current parachain from the + * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is + * set after the inherent. + **/ + upgradeGoAhead: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * An option which indicates if the relay-chain restricts signalling a validation code upgrade. * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced @@ -861,7 +893,7 @@ declare module '@polkadot/api-base/types/storage' { * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is * set after the inherent. **/ - upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; + upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * Upward messages that were sent in a block. * @@ -873,7 +905,7 @@ declare module '@polkadot/api-base/types/storage' { * This value is expected to be set only once per block and it's never stored * in the trie. **/ - validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * Generic query **/ @@ -894,7 +926,7 @@ declare module '@polkadot/api-base/types/storage' { /** * Fungible assets which we know are locked on this chain. **/ - lockedFungibles: AugmentedQuery Observable>>>, [AccountId32]> & QueryableStorageEntry; + lockedFungibles: AugmentedQuery Observable>>>, [AccountId32]> & QueryableStorageEntry; /** * The ongoing queries. **/ @@ -906,7 +938,7 @@ declare module '@polkadot/api-base/types/storage' { /** * Fungible assets which we know are locked on a remote chain. **/ - remoteLockedFungibles: AugmentedQuery Observable>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry; + remoteLockedFungibles: AugmentedQuery Observable>, [u32, AccountId32, StagingXcmVersionedAssetId]> & QueryableStorageEntry; /** * Default version to encode XCM when latest version of destination is unknown. If `None`, * then the destinations whose XCM version is unknown are considered unreachable. @@ -915,22 +947,22 @@ declare module '@polkadot/api-base/types/storage' { /** * The Latest versions that we know various locations support. **/ - supportedVersion: AugmentedQuery Observable>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry; + supportedVersion: AugmentedQuery Observable>, [u32, StagingXcmVersionedMultiLocation]> & QueryableStorageEntry; /** * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and * the `u32` counter is the number of times that a send to the destination has been attempted, * which is used as a prioritization. **/ - versionDiscoveryQueue: AugmentedQuery Observable>>, []> & QueryableStorageEntry; + versionDiscoveryQueue: AugmentedQuery Observable>>, []> & QueryableStorageEntry; /** * All locations that we have requested version notifications from. **/ - versionNotifiers: AugmentedQuery Observable>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry; + versionNotifiers: AugmentedQuery Observable>, [u32, StagingXcmVersionedMultiLocation]> & QueryableStorageEntry; /** * The target locations that are subscribed to our version changes, as well as the most recent * of our versions we informed them of. **/ - versionNotifyTargets: AugmentedQuery Observable>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry; + versionNotifyTargets: AugmentedQuery Observable>>, [u32, StagingXcmVersionedMultiLocation]> & QueryableStorageEntry; /** * Global suspension state of the XCM executor. **/ @@ -975,7 +1007,7 @@ declare module '@polkadot/api-base/types/storage' { /** * Amount of pieces a refungible token is split into. **/ - tokenProperties: AugmentedQuery Observable, [u32, u32]> & QueryableStorageEntry; + tokenProperties: AugmentedQuery Observable>, [u32, u32]> & QueryableStorageEntry; /** * Amount of tokens burnt in a collection. **/ @@ -1129,7 +1161,7 @@ declare module '@polkadot/api-base/types/storage' { * allows light-clients to leverage the changes trie storage tracking mechanism and * in case of changes fetch the list of events of interest. * - * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + * The value has the type `(BlockNumberFor, EventIndex)` because if we used only just * the `EventIndex` then in case if the topic has the same contents on the next block * no notification will be triggered thus the event might be lost. **/ @@ -1247,20 +1279,20 @@ declare module '@polkadot/api-base/types/storage' { * NOTE: This is only used in the case that this module is used to store * balances. **/ - accounts: AugmentedQuery Observable, [AccountId32, PalletForeignAssetsAssetIds]> & QueryableStorageEntry; + accounts: AugmentedQuery Observable, [AccountId32, PalletForeignAssetsAssetId]> & QueryableStorageEntry; /** * Any liquidity locks of a token type under an account. * NOTE: Should only be accessed when setting, changing and freeing a lock. **/ - locks: AugmentedQuery Observable>, [AccountId32, PalletForeignAssetsAssetIds]> & QueryableStorageEntry; + locks: AugmentedQuery Observable>, [AccountId32, PalletForeignAssetsAssetId]> & QueryableStorageEntry; /** * Named reserves on some account balances. **/ - reserves: AugmentedQuery Observable>, [AccountId32, PalletForeignAssetsAssetIds]> & QueryableStorageEntry; + reserves: AugmentedQuery Observable>, [AccountId32, PalletForeignAssetsAssetId]> & QueryableStorageEntry; /** * The total issuance of a token type. **/ - totalIssuance: AugmentedQuery Observable, [PalletForeignAssetsAssetIds]> & QueryableStorageEntry; + totalIssuance: AugmentedQuery Observable, [PalletForeignAssetsAssetId]> & QueryableStorageEntry; /** * Generic query **/ diff --git a/tests/src/interfaces/augment-api-rpc.ts b/tests/src/interfaces/augment-api-rpc.ts index 3d9c5365a6..7ccb7b85da 100644 --- a/tests/src/interfaces/augment-api-rpc.ts +++ b/tests/src/interfaces/augment-api-rpc.ts @@ -5,7 +5,7 @@ // this is required to allow for ambient/previous definitions import '@polkadot/rpc-core/types/jsonrpc'; -import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo } from './default'; +import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo } from './default/index.js'; import type { AugmentedRpc } from '@polkadot/rpc-core/types'; import type { Metadata, StorageKey } from '@polkadot/types'; import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec'; diff --git a/tests/src/interfaces/augment-api-tx.ts b/tests/src/interfaces/augment-api-tx.ts index 1b2c36bfb6..e7890eafd3 100644 --- a/tests/src/interfaces/augment-api-tx.ts +++ b/tests/src/interfaces/augment-api-tx.ts @@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types'; import type { Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, Call, H160, H256, MultiAddress } from '@polkadot/types/interfaces/runtime'; -import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, OpalRuntimeOriginCaller, OpalRuntimeRuntimeCommonSessionKeys, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistration, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, OpalRuntimeOriginCaller, OpalRuntimeRuntimeCommonSessionKeys, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetId, PalletForeignAssetsModuleAssetMetadata, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistration, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, SpWeightsWeightV2Weight, StagingXcmV3MultiLocation, StagingXcmV3WeightLimit, StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiAssets, StagingXcmVersionedMultiLocation, StagingXcmVersionedXcm, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission } from '@polkadot/types/lookup'; export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>; export type __SubmittableExtrinsic = SubmittableExtrinsic; @@ -20,122 +20,43 @@ declare module '@polkadot/api-base/types/submittable' { interface AugmentedSubmittables { appPromotion: { /** - * Called for blocks that, for some reason, have not been unstacked - * - * # Permissions - * - * * Sudo - * - * # Arguments - * - * * `origin`: Must be `Root`. - * * `pending_blocks`: Block numbers that will be processed. + * See [`Pallet::force_unstake`]. **/ forceUnstake: AugmentedSubmittable<(pendingBlocks: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Recalculates interest for the specified number of stakers. - * If all stakers are not recalculated, the next call of the extrinsic - * will continue the recalculation, from those stakers for whom this - * was not perform in last call. - * - * # Permissions - * - * * Pallet admin - * - * # Arguments - * - * * `stakers_number`: the number of stakers for which recalculation will be performed + * See [`Pallet::payout_stakers`]. **/ payoutStakers: AugmentedSubmittable<(stakersNumber: Option | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic, [Option]>; /** - * Sets an address as the the admin. - * - * # Permissions - * - * * Sudo - * - * # Arguments - * - * * `admin`: account of the new admin. + * See [`Pallet::set_admin_address`]. **/ setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletEvmAccountBasicCrossAccountIdRepr]>; /** - * Sets the pallet to be the sponsor for the collection. - * - * # Permissions - * - * * Pallet admin - * - * # Arguments - * - * * `collection_id`: ID of the collection that will be sponsored by `pallet_id` + * See [`Pallet::sponsor_collection`]. **/ sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Sets the pallet to be the sponsor for the contract. - * - * # Permissions - * - * * Pallet admin - * - * # Arguments - * - * * `contract_id`: the contract address that will be sponsored by `pallet_id` + * See [`Pallet::sponsor_contract`]. **/ sponsorContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic, [H160]>; /** - * Stakes the amount of native tokens. - * Sets `amount` to the locked state. - * The maximum number of stakes for a staker is 10. - * - * # Arguments - * - * * `amount`: in native tokens. + * See [`Pallet::stake`]. **/ stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; /** - * Removes the pallet as the sponsor for the collection. - * Returns [`NoPermission`][`Error::NoPermission`] - * if the pallet wasn't the sponsor. - * - * # Permissions - * - * * Pallet admin - * - * # Arguments - * - * * `collection_id`: ID of the collection that is sponsored by `pallet_id` + * See [`Pallet::stop_sponsoring_collection`]. **/ stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Removes the pallet as the sponsor for the contract. - * Returns [`NoPermission`][`Error::NoPermission`] - * if the pallet wasn't the sponsor. - * - * # Permissions - * - * * Pallet admin - * - * # Arguments - * - * * `contract_id`: the contract address that is sponsored by `pallet_id` + * See [`Pallet::stop_sponsoring_contract`]. **/ stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic, [H160]>; /** - * Unstakes all stakes. - * After the end of `PendingInterval` this sum becomes completely - * free for further use. + * See [`Pallet::unstake_all`]. **/ unstakeAll: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Unstakes the amount of balance for the staker. - * After the end of `PendingInterval` this sum becomes completely - * free for further use. - * - * # Arguments - * - * * `staker`: staker account. - * * `amount`: amount of unstaked funds. + * See [`Pallet::unstake_partial`]. **/ unstakePartial: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; /** @@ -145,83 +66,39 @@ declare module '@polkadot/api-base/types/submittable' { }; balances: { /** - * Set the regular balance of a given account. - * - * The dispatch origin for this call is `root`. + * See [`Pallet::force_set_balance`]. **/ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * Exactly as `transfer_allow_death`, except the origin must be root and the source account - * may be specified. + * See [`Pallet::force_transfer`]. **/ forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Compact]>; /** - * Unreserve some balance from a user by force. - * - * Can only be called by ROOT. + * See [`Pallet::force_unreserve`]. **/ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u128]>; /** - * Set the regular balance of a given account; it also takes a reserved balance but this - * must be the same as the account's current reserved balance. - * - * The dispatch origin for this call is `root`. - * - * WARNING: This call is DEPRECATED! Use `force_set_balance` instead. + * See [`Pallet::set_balance_deprecated`]. **/ setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array, oldReserved: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact, Compact]>; /** - * Alias for `transfer_allow_death`, provided only for name-wise compatibility. - * - * WARNING: DEPRECATED! Will be released in approximately 3 months. + * See [`Pallet::transfer`]. **/ transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * Transfer the entire transferable balance from the caller account. - * - * NOTE: This function only attempts to transfer _transferable_ balances. This means that - * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be - * transferred by this function. To ensure that this function results in a killed account, - * you might need to prepare the account by removing any reference counters, storage - * deposits, etc... - * - * The dispatch origin of this call must be Signed. - * - * - `dest`: The recipient of the transfer. - * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all - * of the funds the account has, causing the sender account to be killed (false), or - * transfer everything except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). + * See [`Pallet::transfer_all`]. **/ transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, bool]>; /** - * Transfer some liquid free balance to another account. - * - * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. - * If the sender's account is below the existential deposit as a result - * of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the transactor. + * See [`Pallet::transfer_allow_death`]. **/ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not - * kill the origin account. - * - * 99% of the time you want [`transfer_allow_death`] instead. - * - * [`transfer_allow_death`]: struct.Pallet.html#method.transfer + * See [`Pallet::transfer_keep_alive`]. **/ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * Upgrade a specified account. - * - * - `origin`: Must be `Signed`. - * - `who`: The account to be upgraded. - * - * This will waive the transaction fee if at least all but 10% of the accounts needed to - * be upgraded. (We let some not have to be upgraded just in order to allow for the - * possibililty of churn). + * See [`Pallet::upgrade_accounts`]. **/ upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** @@ -231,45 +108,31 @@ declare module '@polkadot/api-base/types/submittable' { }; collatorSelection: { /** - * Add a collator to the list of invulnerable (fixed) collators. + * See [`Pallet::add_invulnerable`]. **/ addInvulnerable: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * Force deregister `origin` as a collator candidate as a governing authority, and revoke its license. - * Note that the collator can only leave on session change. - * The `LicenseBond` will be unreserved and returned immediately. - * - * This call is, of course, not applicable to `Invulnerable` collators. + * See [`Pallet::force_release_license`]. **/ forceReleaseLicense: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * Purchase a license on block collation for this account. - * It does not make it a collator candidate, use `onboard` afterward. The account must - * (a) already have registered session keys and (b) be able to reserve the `LicenseBond`. - * - * This call is not available to `Invulnerable` collators. + * See [`Pallet::get_license`]. **/ getLicense: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Deregister `origin` as a collator candidate. Note that the collator can only leave on - * session change. The license to `onboard` later at any other time will remain. + * See [`Pallet::offboard`]. **/ offboard: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Register this account as a candidate for collators for next sessions. - * The account must already hold a license, and cannot offboard immediately during a session. - * - * This call is not available to `Invulnerable` collators. + * See [`Pallet::onboard`]. **/ onboard: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Forfeit `origin`'s own license. The `LicenseBond` will be unreserved immediately. - * - * This call is not available to `Invulnerable` collators. + * See [`Pallet::release_license`]. **/ releaseLicense: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Remove a collator from the list of invulnerable (fixed) collators. + * See [`Pallet::remove_invulnerable`]. **/ removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** @@ -278,11 +141,29 @@ declare module '@polkadot/api-base/types/submittable' { [key: string]: SubmittableExtrinsicFunction; }; configuration: { + /** + * See [`Pallet::set_app_promotion_configuration_override`]. + **/ setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletConfigurationAppPromotionConfiguration]>; + /** + * See [`Pallet::set_collator_selection_desired_collators`]. + **/ setCollatorSelectionDesiredCollators: AugmentedSubmittable<(max: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * See [`Pallet::set_collator_selection_kick_threshold`]. + **/ setCollatorSelectionKickThreshold: AugmentedSubmittable<(threshold: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * See [`Pallet::set_collator_selection_license_bond`]. + **/ setCollatorSelectionLicenseBond: AugmentedSubmittable<(amount: Option | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * See [`Pallet::set_min_gas_price_override`]. + **/ setMinGasPriceOverride: AugmentedSubmittable<(coeff: Option | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic, [Option]>; + /** + * See [`Pallet::set_weight_to_fee_coefficient_override`]. + **/ setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic, [Option]>; /** * Generic tx @@ -291,111 +172,27 @@ declare module '@polkadot/api-base/types/submittable' { }; council: { /** - * Close a vote that is either approved, disapproved or whose voting period has ended. - * - * May be called by any signed account in order to finish voting and close the proposal. - * - * If called before the end of the voting period it will only close the vote if it is - * has enough votes to be approved or disapproved. - * - * If called after the end of the voting period abstentions are counted as rejections - * unless there is a prime member set and the prime member cast an approval. - * - * If the close operation completes successfully with disapproval, the transaction fee will - * be waived. Otherwise execution of the approved operation will be charged to the caller. - * - * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed - * proposal. - * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via - * `storage::read` so it is `size_of::() == 4` larger than the pure length. - * - * ## Complexity - * - `O(B + M + P1 + P2)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` is members-count (code- and governance-bounded) - * - `P1` is the complexity of `proposal` preimage. - * - `P2` is proposal-count (code-bounded) + * See [`Pallet::close`]. **/ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [H256, Compact, SpWeightsWeightV2Weight, Compact]>; /** - * Disapprove a proposal, close, and remove it from the system, regardless of its current - * state. - * - * Must be called by the Root origin. - * - * Parameters: - * * `proposal_hash`: The hash of the proposal that should be disapproved. - * - * ## Complexity - * O(P) where P is the number of max proposals + * See [`Pallet::disapprove_proposal`]. **/ disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * Dispatch a proposal from a member using the `Member` origin. - * - * Origin must be a member of the collective. - * - * ## Complexity: - * - `O(B + M + P)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` members-count (code-bounded) - * - `P` complexity of dispatching `proposal` + * See [`Pallet::execute`]. **/ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Call, Compact]>; /** - * Add a new proposal to either be voted on or executed directly. - * - * Requires the sender to be member. - * - * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) - * or put up for voting. - * - * ## Complexity - * - `O(B + M + P1)` or `O(B + M + P2)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` is members-count (code- and governance-bounded) - * - branching is influenced by `threshold` where: - * - `P1` is proposal execution complexity (`threshold < 2`) - * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) + * See [`Pallet::propose`]. **/ propose: AugmentedSubmittable<(threshold: Compact | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Call, Compact]>; /** - * Set the collective's membership. - * - * - `new_members`: The new member list. Be nice to the chain and provide it sorted. - * - `prime`: The prime member whose vote sets the default. - * - `old_count`: The upper bound for the previous number of members in storage. Used for - * weight estimation. - * - * The dispatch of this call must be `SetMembersOrigin`. - * - * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but - * the weight estimations rely on it to estimate dispatchable weight. - * - * # WARNING: - * - * The `pallet-collective` can also be managed by logic outside of the pallet through the - * implementation of the trait [`ChangeMembers`]. - * Any call to `set_members` must be careful that the member set doesn't get out of sync - * with other logic managing the member set. - * - * ## Complexity: - * - `O(MP + N)` where: - * - `M` old-members-count (code- and governance-bounded) - * - `N` new-members-count (code- and governance-bounded) - * - `P` proposals-count (code-bounded) + * See [`Pallet::set_members`]. **/ setMembers: AugmentedSubmittable<(newMembers: Vec | (AccountId32 | string | Uint8Array)[], prime: Option | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, u32]>; /** - * Add an aye or nay vote for the sender to the given proposal. - * - * Requires the sender to be a member. - * - * Transaction fees will be waived if the member is voting on any particular proposal - * for the first time and the call is successful. Subsequent vote changes will charge a - * fee. - * ## Complexity - * - `O(M)` where `M` is members-count (code- and governance-bounded) + * See [`Pallet::vote`]. **/ vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, Compact, bool]>; /** @@ -405,50 +202,31 @@ declare module '@polkadot/api-base/types/submittable' { }; councilMembership: { /** - * Add a member `who` to the set. - * - * May only be called from `T::AddOrigin`. + * See [`Pallet::add_member`]. **/ addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Swap out the sending member for some other key `new`. - * - * May only be called from `Signed` origin of a current member. - * - * Prime membership is passed from the origin account to `new`, if extant. + * See [`Pallet::change_key`]. **/ changeKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Remove the prime member if it exists. - * - * May only be called from `T::PrimeOrigin`. + * See [`Pallet::clear_prime`]. **/ clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Remove a member `who` from the set. - * - * May only be called from `T::RemoveOrigin`. + * See [`Pallet::remove_member`]. **/ removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Change the membership to a new set, disregarding the existing membership. Be nice and - * pass `members` pre-sorted. - * - * May only be called from `T::ResetOrigin`. + * See [`Pallet::reset_members`]. **/ resetMembers: AugmentedSubmittable<(members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Set the prime member. Must be a current member. - * - * May only be called from `T::PrimeOrigin`. + * See [`Pallet::set_prime`]. **/ setPrime: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Swap out one member `remove` for another `add`. - * - * May only be called from `T::SwapOrigin`. - * - * Prime membership is *not* passed from `remove` to `add`, if extant. + * See [`Pallet::swap_member`]. **/ swapMember: AugmentedSubmittable<(remove: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, add: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress]>; /** @@ -464,273 +242,79 @@ declare module '@polkadot/api-base/types/submittable' { }; democracy: { /** - * Permanently place a proposal into the blacklist. This prevents it from ever being - * proposed again. - * - * If called on a queued public or external proposal, then this will result in it being - * removed. If the `ref_index` supplied is an active referendum with the proposal hash, - * then it will be cancelled. - * - * The dispatch origin of this call must be `BlacklistOrigin`. - * - * - `proposal_hash`: The proposal hash to blacklist permanently. - * - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be - * cancelled. - * - * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a - * reasonable value). + * See [`Pallet::blacklist`]. **/ blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [H256, Option]>; /** - * Remove a proposal. - * - * The dispatch origin of this call must be `CancelProposalOrigin`. - * - * - `prop_index`: The index of the proposal to cancel. - * - * Weight: `O(p)` where `p = PublicProps::::decode_len()` + * See [`Pallet::cancel_proposal`]. **/ cancelProposal: AugmentedSubmittable<(propIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Remove a referendum. - * - * The dispatch origin of this call must be _Root_. - * - * - `ref_index`: The index of the referendum to cancel. - * - * # Weight: `O(1)`. + * See [`Pallet::cancel_referendum`]. **/ cancelReferendum: AugmentedSubmittable<(refIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Clears all public proposals. - * - * The dispatch origin of this call must be _Root_. - * - * Weight: `O(1)`. + * See [`Pallet::clear_public_proposals`]. **/ clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Delegate the voting power (with some given conviction) of the sending account. - * - * The balance delegated is locked for as long as it's delegated, and thereafter for the - * time appropriate for the conviction's lock period. - * - * The dispatch origin of this call must be _Signed_, and the signing account must either: - * - be delegating already; or - * - have no voting activity (if there is, then it will need to be removed/consolidated - * through `reap_vote` or `unvote`). - * - * - `to`: The account whose voting the `target` account's voting power will follow. - * - `conviction`: The conviction that will be attached to the delegated votes. When the - * account is undelegated, the funds will be locked for the corresponding period. - * - `balance`: The amount of the account's balance to be used in delegating. This must not - * be more than the account's current balance. - * - * Emits `Delegated`. - * - * Weight: `O(R)` where R is the number of referendums the voter delegating to has - * voted on. Weight is charged as if maximum votes. + * See [`Pallet::delegate`]. **/ delegate: AugmentedSubmittable<(to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletDemocracyConviction, u128]>; /** - * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same - * referendum. - * - * The dispatch origin of this call must be `CancellationOrigin`. - * - * -`ref_index`: The index of the referendum to cancel. - * - * Weight: `O(1)`. + * See [`Pallet::emergency_cancel`]. **/ emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Schedule a referendum to be tabled once it is legal to schedule an external - * referendum. - * - * The dispatch origin of this call must be `ExternalOrigin`. - * - * - `proposal_hash`: The preimage hash of the proposal. + * See [`Pallet::external_propose`]. **/ externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic, [FrameSupportPreimagesBounded]>; /** - * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to - * schedule an external referendum. - * - * The dispatch of this call must be `ExternalDefaultOrigin`. - * - * - `proposal_hash`: The preimage hash of the proposal. - * - * Unlike `external_propose`, blacklisting has no effect on this and it may replace a - * pre-scheduled `external_propose` call. - * - * Weight: `O(1)` + * See [`Pallet::external_propose_default`]. **/ externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic, [FrameSupportPreimagesBounded]>; /** - * Schedule a majority-carries referendum to be tabled next once it is legal to schedule - * an external referendum. - * - * The dispatch of this call must be `ExternalMajorityOrigin`. - * - * - `proposal_hash`: The preimage hash of the proposal. - * - * Unlike `external_propose`, blacklisting has no effect on this and it may replace a - * pre-scheduled `external_propose` call. - * - * Weight: `O(1)` + * See [`Pallet::external_propose_majority`]. **/ externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic, [FrameSupportPreimagesBounded]>; /** - * Schedule the currently externally-proposed majority-carries referendum to be tabled - * immediately. If there is no externally-proposed referendum currently, or if there is one - * but it is not a majority-carries referendum then it fails. - * - * The dispatch of this call must be `FastTrackOrigin`. - * - * - `proposal_hash`: The hash of the current external proposal. - * - `voting_period`: The period that is allowed for voting on this proposal. Increased to - * Must be always greater than zero. - * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`. - * - `delay`: The number of block after voting has ended in approval and this should be - * enacted. This doesn't have a minimum amount. - * - * Emits `Started`. - * - * Weight: `O(1)` + * See [`Pallet::fast_track`]. **/ fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [H256, u32, u32]>; /** - * Propose a sensitive action to be taken. - * - * The dispatch origin of this call must be _Signed_ and the sender must - * have funds to cover the deposit. - * - * - `proposal_hash`: The hash of the proposal preimage. - * - `value`: The amount of deposit (must be at least `MinimumDeposit`). - * - * Emits `Proposed`. + * See [`Pallet::propose`]. **/ propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [FrameSupportPreimagesBounded, Compact]>; /** - * Remove a vote for a referendum. - * - * If the `target` is equal to the signer, then this function is exactly equivalent to - * `remove_vote`. If not equal to the signer, then the vote must have expired, - * either because the referendum was cancelled, because the voter lost the referendum or - * because the conviction period is over. - * - * The dispatch origin of this call must be _Signed_. - * - * - `target`: The account of the vote to be removed; this account must have voted for - * referendum `index`. - * - `index`: The index of referendum of the vote to be removed. - * - * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. - * Weight is calculated for the maximum number of vote. + * See [`Pallet::remove_other_vote`]. **/ removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u32]>; /** - * Remove a vote for a referendum. - * - * If: - * - the referendum was cancelled, or - * - the referendum is ongoing, or - * - the referendum has ended such that - * - the vote of the account was in opposition to the result; or - * - there was no conviction to the account's vote; or - * - the account made a split vote - * ...then the vote is removed cleanly and a following call to `unlock` may result in more - * funds being available. - * - * If, however, the referendum has ended and: - * - it finished corresponding to the vote of the account, and - * - the account made a standard vote with conviction, and - * - the lock period of the conviction is not over - * ...then the lock will be aggregated into the overall account's lock, which may involve - * *overlocking* (where the two locks are combined into a single lock that is the maximum - * of both the amount locked and the time is it locked for). - * - * The dispatch origin of this call must be _Signed_, and the signer must have a vote - * registered for referendum `index`. - * - * - `index`: The index of referendum of the vote to be removed. - * - * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. - * Weight is calculated for the maximum number of vote. + * See [`Pallet::remove_vote`]. **/ removeVote: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Signals agreement with a particular proposal. - * - * The dispatch origin of this call must be _Signed_ and the sender - * must have funds to cover the deposit, equal to the original deposit. - * - * - `proposal`: The index of the proposal to second. + * See [`Pallet::second`]. **/ second: AugmentedSubmittable<(proposal: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Set or clear a metadata of a proposal or a referendum. - * - * Parameters: - * - `origin`: Must correspond to the `MetadataOwner`. - * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove` - * threshold. - * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst` - * threshold. - * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority` - * threshold. - * - `Signed` by a creator for a public proposal. - * - `Signed` to clear a metadata for a finished referendum. - * - `Root` to set a metadata for an ongoing referendum. - * - `owner`: an identifier of a metadata owner. - * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. + * See [`Pallet::set_metadata`]. **/ setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array, maybeHash: Option | null | Uint8Array | H256 | string) => SubmittableExtrinsic, [PalletDemocracyMetadataOwner, Option]>; /** - * Undelegate the voting power of the sending account. - * - * Tokens may be unlocked following once an amount of time consistent with the lock period - * of the conviction with which the delegation was issued. - * - * The dispatch origin of this call must be _Signed_ and the signing account must be - * currently delegating. - * - * Emits `Undelegated`. - * - * Weight: `O(R)` where R is the number of referendums the voter delegating to has - * voted on. Weight is charged as if maximum votes. + * See [`Pallet::undelegate`]. **/ undelegate: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Unlock tokens that have an expired lock. - * - * The dispatch origin of this call must be _Signed_. - * - * - `target`: The account to remove the lock on. - * - * Weight: `O(R)` with R number of vote of target. + * See [`Pallet::unlock`]. **/ unlock: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Veto and blacklist the external proposal hash. - * - * The dispatch origin of this call must be `VetoOrigin`. - * - * - `proposal_hash`: The preimage hash of the proposal to veto and blacklist. - * - * Emits `Vetoed`. - * - * Weight: `O(V + log(V))` where V is number of `existing vetoers` + * See [`Pallet::veto_external`]. **/ vetoExternal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; - * otherwise it is a vote to keep the status quo. - * - * The dispatch origin of this call must be _Signed_. - * - * - `ref_index`: The index of the referendum to vote for. - * - `vote`: The vote configuration. + * See [`Pallet::vote`]. **/ vote: AugmentedSubmittable<(refIndex: Compact | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, PalletDemocracyVoteAccountVote]>; /** @@ -740,7 +324,7 @@ declare module '@polkadot/api-base/types/submittable' { }; dmpQueue: { /** - * Service a single overweight message. + * See [`Pallet::service_overweight`]. **/ serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u64, SpWeightsWeightV2Weight]>; /** @@ -750,7 +334,7 @@ declare module '@polkadot/api-base/types/submittable' { }; ethereum: { /** - * Transact an Ethereum transaction. + * See [`Pallet::transact`]. **/ transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic, [EthereumTransactionTransactionV2]>; /** @@ -760,20 +344,19 @@ declare module '@polkadot/api-base/types/submittable' { }; evm: { /** - * Issue an EVM call operation. This is similar to a message call transaction in Ethereum. + * See [`Pallet::call`]. **/ call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option | null | Uint8Array | U256 | AnyNumber, nonce: Option | null | Uint8Array | U256 | AnyNumber, accessList: Vec]>> | ([H160 | string | Uint8Array, Vec | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic, [H160, H160, Bytes, U256, u64, U256, Option, Option, Vec]>>]>; /** - * Issue an EVM create operation. This is similar to a contract creation transaction in - * Ethereum. + * See [`Pallet::create`]. **/ create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option | null | Uint8Array | U256 | AnyNumber, nonce: Option | null | Uint8Array | U256 | AnyNumber, accessList: Vec]>> | ([H160 | string | Uint8Array, Vec | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic, [H160, Bytes, U256, u64, U256, Option, Option, Vec]>>]>; /** - * Issue an EVM create2 operation. + * See [`Pallet::create2`]. **/ create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option | null | Uint8Array | U256 | AnyNumber, nonce: Option | null | Uint8Array | U256 | AnyNumber, accessList: Vec]>> | ([H160 | string | Uint8Array, Vec | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic, [H160, Bytes, H256, U256, u64, U256, Option, Option, Vec]>>]>; /** - * Withdraw balance from EVM into currency/balances pallet. + * See [`Pallet::withdraw`]. **/ withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [H160, u128]>; /** @@ -783,7 +366,7 @@ declare module '@polkadot/api-base/types/submittable' { }; evmContractHelpers: { /** - * Migrate contract to use `SponsoringMode` storage instead of `SelfSponsoring` + * See [`Pallet::migrate_from_self_sponsoring`]. **/ migrateFromSelfSponsoring: AugmentedSubmittable<(addresses: Vec | (H160 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** @@ -793,31 +376,27 @@ declare module '@polkadot/api-base/types/submittable' { }; evmMigration: { /** - * Start contract migration, inserts contract stub at target address, - * and marks account as pending, allowing to insert storage + * See [`Pallet::begin`]. **/ begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic, [H160]>; /** - * Finish contract migration, allows it to be called. - * It is not possible to alter contract storage via [`Self::set_data`] - * after this call. + * See [`Pallet::finish`]. **/ finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [H160, Bytes]>; /** - * Create ethereum events attached to the fake transaction + * See [`Pallet::insert_eth_logs`]. **/ insertEthLogs: AugmentedSubmittable<(logs: Vec | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Create substrate events + * See [`Pallet::insert_events`]. **/ insertEvents: AugmentedSubmittable<(events: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Remove remark compatibility data leftovers + * See [`Pallet::remove_rmrk_data`]. **/ removeRmrkData: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Insert items into contract storage, this method can be called - * multiple times + * See [`Pallet::set_data`]. **/ setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic, [H160, Vec>]>; /** @@ -827,69 +406,27 @@ declare module '@polkadot/api-base/types/submittable' { }; fellowshipCollective: { /** - * Introduce a new member. - * - * - `origin`: Must be the `AdminOrigin`. - * - `who`: Account of non-member which will become a member. - * - `rank`: The rank to give the new member. - * - * Weight: `O(1)` + * See [`Pallet::add_member`]. **/ addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Remove votes from the given poll. It must have ended. - * - * - `origin`: Must be `Signed` by any account. - * - `poll_index`: Index of a poll which is completed and for which votes continue to - * exist. - * - `max`: Maximum number of vote items from remove in this call. - * - * Transaction fees are waived if the operation is successful. - * - * Weight `O(max)` (less if there are fewer items to remove than `max`). + * See [`Pallet::cleanup_poll`]. **/ cleanupPoll: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array, max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; /** - * Decrement the rank of an existing member by one. If the member is already at rank zero, - * then they are removed entirely. - * - * - `origin`: Must be the `AdminOrigin`. - * - `who`: Account of existing member of rank greater than zero. - * - * Weight: `O(1)`, less if the member's index is highest in its rank. + * See [`Pallet::demote_member`]. **/ demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Increment the rank of an existing member by one. - * - * - `origin`: Must be the `AdminOrigin`. - * - `who`: Account of existing member. - * - * Weight: `O(1)` + * See [`Pallet::promote_member`]. **/ promoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Remove the member entirely. - * - * - `origin`: Must be the `AdminOrigin`. - * - `who`: Account of existing member of rank greater than zero. - * - `min_rank`: The rank of the member or greater. - * - * Weight: `O(min_rank)`. + * See [`Pallet::remove_member`]. **/ removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u16]>; /** - * Add an aye or nay vote for the sender to the given proposal. - * - * - `origin`: Must be `Signed` by a member account. - * - `poll`: Index of a poll which is ongoing. - * - `aye`: `true` if the vote is to approve the proposal, `false` otherwise. - * - * Transaction fees are be waived if the member is voting on any particular proposal - * for the first time and the call is successful. Subsequent vote changes will charge a - * fee. - * - * Weight: `O(1)`, less if there was no previous vote on the poll by the member. + * See [`Pallet::vote`]. **/ vote: AugmentedSubmittable<(poll: u32 | AnyNumber | Uint8Array, aye: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, bool]>; /** @@ -899,93 +436,39 @@ declare module '@polkadot/api-base/types/submittable' { }; fellowshipReferenda: { /** - * Cancel an ongoing referendum. - * - * - `origin`: must be the `CancelOrigin`. - * - `index`: The index of the referendum to be cancelled. - * - * Emits `Cancelled`. + * See [`Pallet::cancel`]. **/ cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Cancel an ongoing referendum and slash the deposits. - * - * - `origin`: must be the `KillOrigin`. - * - `index`: The index of the referendum to be cancelled. - * - * Emits `Killed` and `DepositSlashed`. + * See [`Pallet::kill`]. **/ kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Advance a referendum onto its next logical state. Only used internally. - * - * - `origin`: must be `Root`. - * - `index`: the referendum to be advanced. + * See [`Pallet::nudge_referendum`]. **/ nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Advance a track onto its next logical state. Only used internally. - * - * - `origin`: must be `Root`. - * - `track`: the track to be advanced. - * - * Action item for when there is now one fewer referendum in the deciding phase and the - * `DecidingCount` is not yet updated. This means that we should either: - * - begin deciding another referendum (and leave `DecidingCount` alone); or - * - decrement `DecidingCount`. + * See [`Pallet::one_fewer_deciding`]. **/ oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u16]>; /** - * Post the Decision Deposit for a referendum. - * - * - `origin`: must be `Signed` and the account must have funds available for the - * referendum's track's Decision Deposit. - * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be - * posted. - * - * Emits `DecisionDepositPlaced`. + * See [`Pallet::place_decision_deposit`]. **/ placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Refund the Decision Deposit for a closed referendum back to the depositor. - * - * - `origin`: must be `Signed` or `Root`. - * - `index`: The index of a closed referendum whose Decision Deposit has not yet been - * refunded. - * - * Emits `DecisionDepositRefunded`. + * See [`Pallet::refund_decision_deposit`]. **/ refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Refund the Submission Deposit for a closed referendum back to the depositor. - * - * - `origin`: must be `Signed` or `Root`. - * - `index`: The index of a closed referendum whose Submission Deposit has not yet been - * refunded. - * - * Emits `SubmissionDepositRefunded`. + * See [`Pallet::refund_submission_deposit`]. **/ refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Set or clear metadata of a referendum. - * - * Parameters: - * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a - * metadata of a finished referendum. - * - `index`: The index of a referendum to set or clear metadata for. - * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata. + * See [`Pallet::set_metadata`]. **/ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option | null | Uint8Array | H256 | string) => SubmittableExtrinsic, [u32, Option]>; /** - * Propose a referendum on a privileged action. - * - * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds - * available. - * - `proposal_origin`: The origin from which the proposal should be executed. - * - `proposal`: The proposal. - * - `enactment_moment`: The moment that the proposal should be enacted. - * - * Emits `Submitted`. + * See [`Pallet::submit`]. **/ submit: AugmentedSubmittable<(proposalOrigin: OpalRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { PolkadotXcm: any } | { CumulusXcm: any } | { Origins: any } | { Ethereum: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic, [OpalRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>; /** @@ -994,8 +477,14 @@ declare module '@polkadot/api-base/types/submittable' { [key: string]: SubmittableExtrinsicFunction; }; foreignAssets: { - registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>; - updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>; + /** + * See [`Pallet::register_foreign_asset`]. + **/ + registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, StagingXcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>; + /** + * See [`Pallet::update_foreign_asset`]. + **/ + updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, StagingXcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>; /** * Generic tx **/ @@ -1003,289 +492,75 @@ declare module '@polkadot/api-base/types/submittable' { }; identity: { /** - * Add a registrar to the system. - * - * The dispatch origin for this call must be `T::RegistrarOrigin`. - * - * - `account`: the account of the registrar. - * - * Emits `RegistrarAdded` if successful. - * - * # - * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded). - * - One storage mutation (codec `O(R)`). - * - One event. - * # + * See [`Pallet::add_registrar`]. **/ addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Add the given account to the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. + * See [`Pallet::add_sub`]. **/ addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Data]>; /** - * Cancel a previous request. - * - * Payment: A previously reserved deposit is returned on success. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is no longer requested. - * - * Emits `JudgementUnrequested` if successful. - * - * # - * - `O(R + X)`. - * - One balance-reserve operation. - * - One storage mutation `O(R + X)`. - * - One event - * # + * See [`Pallet::cancel_request`]. **/ cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Clear an account's identity info and all sub-accounts and return all deposits. - * - * Payment: All reserved balances on the account are returned. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * Emits `IdentityCleared` if successful. - * - * # - * - `O(R + S + X)` - * - where `R` registrar-count (governance-bounded). - * - where `S` subs-count (hard- and deposit-bounded). - * - where `X` additional-field-count (deposit-bounded and code-bounded). - * - One balance-unreserve operation. - * - `2` storage reads and `S + 2` storage deletions. - * - One event. - * # + * See [`Pallet::clear_identity`]. **/ clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Set identities to be associated with the provided accounts as force origin. - * - * This is not meant to operate in tandem with the identity pallet as is, - * and be instead used to keep identities made and verified externally, - * forbidden from interacting with an ordinary user, since it ignores any safety mechanism. + * See [`Pallet::force_insert_identities`]. **/ forceInsertIdentities: AugmentedSubmittable<(identities: Vec> | ([AccountId32 | string | Uint8Array, PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; /** - * Remove identities associated with the provided accounts as force origin. - * - * This is not meant to operate in tandem with the identity pallet as is, - * and be instead used to keep identities made and verified externally, - * forbidden from interacting with an ordinary user, since it ignores any safety mechanism. + * See [`Pallet::force_remove_identities`]. **/ forceRemoveIdentities: AugmentedSubmittable<(identities: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Set sub-identities to be associated with the provided accounts as force origin. - * - * This is not meant to operate in tandem with the identity pallet as is, - * and be instead used to keep identities made and verified externally, - * forbidden from interacting with an ordinary user, since it ignores any safety mechanism. + * See [`Pallet::force_set_subs`]. **/ forceSetSubs: AugmentedSubmittable<(subs: Vec>]>]>> | ([AccountId32 | string | Uint8Array, ITuple<[u128, Vec>]> | [u128 | AnyNumber | Uint8Array, Vec> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]]])[]) => SubmittableExtrinsic, [Vec>]>]>>]>; /** - * Remove an account's identity and sub-account information and slash the deposits. - * - * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by - * `Slash`. Verification request deposits are not returned; they should be cancelled - * manually using `cancel_request`. - * - * The dispatch origin for this call must match `T::ForceOrigin`. - * - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - * Emits `IdentityKilled` if successful. - * - * # - * - `O(R + S + X)`. - * - One balance-reserve operation. - * - `S + 2` storage mutations. - * - One event. - * # + * See [`Pallet::kill_identity`]. **/ killIdentity: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Provide a judgement for an account's identity. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `reg_index`. - * - * - `reg_index`: the index of the registrar whose judgement is being made. - * - `target`: the account whose identity the judgement is upon. This must be an account - * with a registered identity. - * - `judgement`: the judgement of the registrar of index `reg_index` about `target`. - * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided. - * - * Emits `JudgementGiven` if successful. - * - * # - * - `O(R + X)`. - * - One balance-transfer operation. - * - Up to one account-lookup operation. - * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`. - * - One event. - * # + * See [`Pallet::provide_judgement`]. **/ provideJudgement: AugmentedSubmittable<(regIndex: Compact | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress, PalletIdentityJudgement, H256]>; /** - * Remove the sender as a sub-account. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender (*not* the original depositor). - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * super-identity. - * - * NOTE: This should not normally be used, but is provided in the case that the non- - * controller of an account is maliciously registered as a sub-account. + * See [`Pallet::quit_sub`]. **/ quitSub: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Remove the given account from the sender's subs. - * - * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated - * to the sender. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. + * See [`Pallet::remove_sub`]. **/ removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Alter the associated name of the given sub-account. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * sub identity of `sub`. + * See [`Pallet::rename_sub`]. **/ renameSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Data]>; /** - * Request a judgement from a registrar. - * - * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement - * given. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a - * registered identity. - * - * - `reg_index`: The index of the registrar whose judgement is requested. - * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as: - * - * ```nocompile - * Self::registrars().get(reg_index).unwrap().fee - * ``` - * - * Emits `JudgementRequested` if successful. - * - * # - * - `O(R + X)`. - * - One balance-reserve operation. - * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`. - * - One event. - * # + * See [`Pallet::request_judgement`]. **/ requestJudgement: AugmentedSubmittable<(regIndex: Compact | AnyNumber | Uint8Array, maxFee: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Compact]>; /** - * Change the account associated with a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `new`: the new account ID. - * - * # - * - `O(R)`. - * - One storage mutation `O(R)`. - * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis) - * # + * See [`Pallet::set_account_id`]. **/ setAccountId: AugmentedSubmittable<(index: Compact | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * Set the fee required for a judgement to be requested from a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fee`: the new fee. - * - * # - * - `O(R)`. - * - One storage mutation `O(R)`. - * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis) - * # + * See [`Pallet::set_fee`]. **/ setFee: AugmentedSubmittable<(index: Compact | AnyNumber | Uint8Array, fee: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Compact]>; /** - * Set the field information for a registrar. - * - * The dispatch origin for this call must be _Signed_ and the sender must be the account - * of the registrar whose index is `index`. - * - * - `index`: the index of the registrar whose fee is to be set. - * - `fields`: the fields that the registrar concerns themselves with. - * - * # - * - `O(R)`. - * - One storage mutation `O(R)`. - * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis) - * # + * See [`Pallet::set_fields`]. **/ setFields: AugmentedSubmittable<(index: Compact | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic, [Compact, PalletIdentityBitFlags]>; /** - * Set an account's identity information and reserve the appropriate deposit. - * - * If the account already has identity information, the deposit is taken as part payment - * for the new deposit. - * - * The dispatch origin for this call must be _Signed_. - * - * - `info`: The identity information. - * - * Emits `IdentitySet` if successful. - * - * # - * - `O(X + X' + R)` - * - where `X` additional-field-count (deposit-bounded and code-bounded) - * - where `R` judgements-count (registrar-count-bounded) - * - One balance reserve operation. - * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`). - * - One event. - * # + * See [`Pallet::set_identity`]. **/ setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletIdentityIdentityInfo]>; /** - * Set the sub-accounts of the sender. - * - * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned - * and an amount `SubAccountDeposit` will be reserved for each item in `subs`. - * - * The dispatch origin for this call must be _Signed_ and the sender must have a registered - * identity. - * - * - `subs`: The identity's (new) sub-accounts. - * - * # - * - `O(P + S)` - * - where `P` old-subs-count (hard- and deposit-bounded). - * - where `S` subs-count (hard- and deposit-bounded). - * - At most one balance operations. - * - DB: - * - `P + S` storage mutations (codec complexity `O(1)`) - * - One storage read (codec complexity `O(P)`). - * - One storage write (codec complexity `O(S)`). - * - One storage-exists (`IdentityOf::contains_key`). - * # + * See [`Pallet::set_subs`]. **/ setSubs: AugmentedSubmittable<(subs: Vec> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; /** @@ -1295,17 +570,7 @@ declare module '@polkadot/api-base/types/submittable' { }; inflation: { /** - * This method sets the inflation start date. Can be only called once. - * Inflation start block can be backdated and will catch up. The method will create Treasury - * account if it does not exist and perform the first inflation deposit. - * - * # Permissions - * - * * Root - * - * # Arguments - * - * * inflation_start_relay_block: The relay chain block at which inflation should start + * See [`Pallet::start_inflation`]. **/ startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** @@ -1314,15 +579,14 @@ declare module '@polkadot/api-base/types/submittable' { [key: string]: SubmittableExtrinsicFunction; }; maintenance: { + /** + * See [`Pallet::disable`]. + **/ disable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; - enable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Execute a runtime call stored as a preimage. - * - * `weight_bound` is the maximum weight that the caller is willing - * to allow the extrinsic to be executed with. + * See [`Pallet::enable`]. **/ - executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array, weightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [H256, SpWeightsWeightV2Weight]>; + enable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** * Generic tx **/ @@ -1336,40 +600,20 @@ declare module '@polkadot/api-base/types/submittable' { }; parachainSystem: { /** - * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied - * later. - * - * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec - * version and name should be verified on upgrade. Since the authorization only has a hash, - * it cannot actually perform the verification. - * - * This call requires Root origin. + * See [`Pallet::authorize_upgrade`]. **/ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; /** - * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. - * - * If the authorization required a version check, this call will ensure the spec name - * remains unchanged and that the spec version has increased. - * - * Note that this function will not apply the new `code`, but only attempt to schedule the - * upgrade with the Relay Chain. - * - * All origins are allowed. + * See [`Pallet::enact_authorized_upgrade`]. **/ enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Set the current validation data. - * - * This should be invoked exactly once per block. It will panic at the finalization - * phase if the call was not invoked. - * - * The dispatch origin for this call must be `Inherent` - * - * As a side effect, this function upgrades the current validation function - * if the appropriate time has come. + * See [`Pallet::set_validation_data`]. **/ setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesParachainInherentParachainInherentData]>; + /** + * See [`Pallet::sudo_send_upward_message`]. + **/ sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** * Generic tx @@ -1378,138 +622,49 @@ declare module '@polkadot/api-base/types/submittable' { }; polkadotXcm: { /** - * Execute an XCM message from a local, signed, origin. - * - * An event is deposited indicating whether `msg` could be executed completely or only - * partially. - * - * No more than `max_weight` will be used in its attempted execution. If this is less than the - * maximum amount of weight that the message could take to be executed, then no execution - * attempt will be made. - * - * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully - * to completion; only that *some* of it was executed. - **/ - execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedXcm, SpWeightsWeightV2Weight]>; - /** - * Set a safe XCM version (the version that XCM should be encoded with if the most recent - * version a destination can accept is unknown). - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. + * See [`Pallet::execute`]. + **/ + execute: AugmentedSubmittable<(message: StagingXcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedXcm, SpWeightsWeightV2Weight]>; + /** + * See [`Pallet::force_default_xcm_version`]. **/ forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; /** - * Ask a location to notify us regarding their XCM version and any changes to it. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we should subscribe for XCM version notifications. + * See [`Pallet::force_subscribe_version_notify`]. **/ - forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation]>; + forceSubscribeVersionNotify: AugmentedSubmittable<(location: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation]>; /** - * Set or unset the global suspension state of the XCM executor. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `suspended`: `true` to suspend, `false` to resume. + * See [`Pallet::force_suspension`]. **/ forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool]>; /** - * Require that a particular destination should no longer notify us regarding any XCM - * version changes. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The location to which we are currently subscribed for XCM version - * notifications which we no longer desire. - **/ - forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation]>; - /** - * Extoll that a particular destination can be communicated with through a particular - * version of XCM. - * - * - `origin`: Must be an origin specified by AdminOrigin. - * - `location`: The destination that is being described. - * - `xcm_version`: The latest version of XCM that `location` supports. - **/ - forceXcmVersion: AugmentedSubmittable<(location: XcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmV3MultiLocation, u32]>; - /** - * Transfer some assets from the local chain to the sovereign account of a destination - * chain and forward a notification XCM. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the assets send may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send - * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be - * an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the - * `dest` side. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>; - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight - * is needed than `weight_limit`, then the operation will fail and the assets send may be - * at risk. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send - * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be - * an `AccountId32` value. - * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the - * `dest` side. May not be empty. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. - **/ - limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV3WeightLimit]>; - /** - * Transfer some assets from the local chain to the sovereign account of a destination - * chain and forward a notification XCM. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send - * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be - * an `AccountId32` value. - * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the - * `dest` side. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>; - send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation, XcmVersionedXcm]>; - /** - * Teleport some assets from the local chain to some destination chain. - * - * Fee payment on the destination side is made from the asset in the `assets` vector of - * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, - * with all fees taken as needed from the asset. - * - * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. - * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send - * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain. - * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be - * an `AccountId32` value. - * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the - * `dest` side. May not be empty. - * - `fee_asset_item`: The index into `assets` of the item which should be used to pay - * fees. - **/ - teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>; + * See [`Pallet::force_unsubscribe_version_notify`]. + **/ + forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation]>; + /** + * See [`Pallet::force_xcm_version`]. + **/ + forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV3MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV3MultiLocation, u32]>; + /** + * See [`Pallet::limited_reserve_transfer_assets`]. + **/ + limitedReserveTransferAssets: AugmentedSubmittable<(dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: StagingXcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiAssets, u32, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::limited_teleport_assets`]. + **/ + limitedTeleportAssets: AugmentedSubmittable<(dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: StagingXcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiAssets, u32, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::reserve_transfer_assets`]. + **/ + reserveTransferAssets: AugmentedSubmittable<(dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: StagingXcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiAssets, u32]>; + /** + * See [`Pallet::send`]. + **/ + send: AugmentedSubmittable<(dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, message: StagingXcmVersionedXcm | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation, StagingXcmVersionedXcm]>; + /** + * See [`Pallet::teleport_assets`]. + **/ + teleportAssets: AugmentedSubmittable<(dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, beneficiary: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, assets: StagingXcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiLocation, StagingXcmVersionedMultiAssets, u32]>; /** * Generic tx **/ @@ -1517,32 +672,19 @@ declare module '@polkadot/api-base/types/submittable' { }; preimage: { /** - * Register a preimage on-chain. - * - * If the preimage was previously requested, no fees or deposits are taken for providing - * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. + * See [`Pallet::note_preimage`]. **/ notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Request a preimage be uploaded to the chain without paying any fees or deposits. - * - * If the preimage requests has already been provided on-chain, we unreserve any deposit - * a user may have paid, and take the control of the preimage out of their hands. + * See [`Pallet::request_preimage`]. **/ requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * Clear an unrequested preimage from the runtime storage. - * - * If `len` is provided, then it will be a much cheaper operation. - * - * - `hash`: The hash of the preimage to be removed from the store. - * - `len`: The length of the preimage of `hash`. + * See [`Pallet::unnote_preimage`]. **/ unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * Clear a previously made request for a preimage. - * - * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. + * See [`Pallet::unrequest_preimage`]. **/ unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** @@ -1552,27 +694,27 @@ declare module '@polkadot/api-base/types/submittable' { }; scheduler: { /** - * Cancel an anonymously scheduled task. + * See [`Pallet::cancel`]. **/ cancel: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; /** - * Cancel a named scheduled task. + * See [`Pallet::cancel_named`]. **/ cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [U8aFixed]>; /** - * Anonymously schedule a task. + * See [`Pallet::schedule`]. **/ schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>, u8, Call]>; /** - * Anonymously schedule a task after a delay. + * See [`Pallet::schedule_after`]. **/ scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>, u8, Call]>; /** - * Schedule a named task. + * See [`Pallet::schedule_named`]. **/ scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [U8aFixed, u32, Option>, u8, Call]>; /** - * Schedule a named task after a delay. + * See [`Pallet::schedule_named_after`]. **/ scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [U8aFixed, u32, Option>, u8, Call]>; /** @@ -1582,30 +724,11 @@ declare module '@polkadot/api-base/types/submittable' { }; session: { /** - * Removes any session key(s) of the function caller. - * - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be Signed and the account must be either be - * convertible to a validator ID using the chain's typical addressing system (this usually - * means being a controller account) or directly convertible into a validator ID (which - * usually means being a stash account). - * - * ## Complexity - * - `O(1)` in number of key types. Actual cost depends on the number of length of - * `T::Keys::key_ids()` which is fixed. + * See [`Pallet::purge_keys`]. **/ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Sets the session key(s) of the function caller to `keys`. - * Allows an account to set its session key prior to becoming a validator. - * This doesn't take effect until the next session. - * - * The dispatch origin of this function must be signed. - * - * ## Complexity - * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is - * fixed. + * See [`Pallet::set_keys`]. **/ setKeys: AugmentedSubmittable<(keys: OpalRuntimeRuntimeCommonSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic, [OpalRuntimeRuntimeCommonSessionKeys, Bytes]>; /** @@ -1615,65 +738,27 @@ declare module '@polkadot/api-base/types/submittable' { }; stateTrieMigration: { /** - * Continue the migration for the given `limits`. - * - * The dispatch origin of this call can be any signed account. - * - * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit, - * Upon successful execution, the transaction fee is returned. - * - * The (potentially over-estimated) of the byte length of all the data read must be - * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing - * that executing the current `MigrationTask` with the given `limits` will not exceed - * `real_size_upper` bytes of read data. - * - * The `witness_task` is merely a helper to prevent the caller from being slashed or - * generally trigger a migration that they do not intend. This parameter is just a message - * from caller, saying that they believed `witness_task` was the last state of the - * migration, and they only wish for their transaction to do anything, if this assumption - * holds. In case `witness_task` does not match, the transaction fails. - * - * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the - * recommended way of doing this is to pass a `limit` that only bounds `count`, as the - * `size` limit can always be overwritten. + * See [`Pallet::continue_migrate`]. **/ continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>; /** - * Control the automatic migration. - * - * The dispatch origin of this call must be [`Config::ControlOrigin`]. + * See [`Pallet::control_auto_migration`]. **/ controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic, [Option]>; /** - * Forcefully set the progress the running migration. - * - * This is only useful in one case: the next key to migrate is too big to be migrated with - * a signed account, in a parachain context, and we simply want to skip it. A reasonable - * example of this would be `:code:`, which is both very expensive to migrate, and commonly - * used, so probably it is already migrated. - * - * In case you mess things up, you can also, in principle, use this to reset the migration - * process. + * See [`Pallet::force_set_progress`]. **/ forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>; /** - * Migrate the list of child keys by iterating each of them one by one. - * - * All of the given child keys must be present under one `child_root`. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. + * See [`Pallet::migrate_custom_child`]. **/ migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Bytes, Vec, u32]>; /** - * Migrate the list of top keys by iterating each of them one by one. - * - * This does not affect the global migration process tracker ([`MigrationProcess`]), and - * should only be used in case any keys are leftover due to a bug. + * See [`Pallet::migrate_custom_top`]. **/ migrateCustomTop: AugmentedSubmittable<(keys: Vec | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, u32]>; /** - * Set the maximum limit of the signed migration. + * See [`Pallet::set_signed_max_limits`]. **/ setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletStateTrieMigrationMigrationLimits]>; /** @@ -1689,43 +774,19 @@ declare module '@polkadot/api-base/types/submittable' { }; sudo: { /** - * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo - * key. - * - * The dispatch origin for this call must be _Signed_. - * - * ## Complexity - * - O(1). + * See [`Pallet::set_key`]. **/ setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. - * - * The dispatch origin for this call must be _Signed_. - * - * ## Complexity - * - O(1). + * See [`Pallet::sudo`]. **/ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Call]>; /** - * Authenticates the sudo key and dispatches a function call with `Signed` origin from - * a given account. - * - * The dispatch origin for this call must be _Signed_. - * - * ## Complexity - * - O(1). + * See [`Pallet::sudo_as`]. **/ sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Call]>; /** - * Authenticates the sudo key and dispatches a function call with `Root` origin. - * This function does not check the weight of the call, and instead allows the - * Sudo user to specify the weight of the call. - * - * The dispatch origin for this call must be _Signed_. - * - * ## Complexity - * - O(1). + * See [`Pallet::sudo_unchecked_weight`]. **/ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; /** @@ -1735,40 +796,35 @@ declare module '@polkadot/api-base/types/submittable' { }; system: { /** - * Kill all storage items with a key that starts with the given prefix. - * - * **NOTE:** We rely on the Root origin to provide us the number of subkeys under - * the prefix we are removing to accurately calculate the weight of this function. + * See [`Pallet::kill_prefix`]. **/ killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Bytes, u32]>; /** - * Kill some items from storage. + * See [`Pallet::kill_storage`]. **/ killStorage: AugmentedSubmittable<(keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Make some on-chain remark. - * - * - `O(1)` + * See [`Pallet::remark`]. **/ remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Make some on-chain remark and emit event. + * See [`Pallet::remark_with_event`]. **/ remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Set the new runtime code. + * See [`Pallet::set_code`]. **/ setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Set the new runtime code without doing any checks of the given `code`. + * See [`Pallet::set_code_without_checks`]. **/ setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * Set the number of pages in the WebAssembly environment's heap. + * See [`Pallet::set_heap_pages`]. **/ setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u64]>; /** - * Set some items of storage. + * See [`Pallet::set_storage`]. **/ setStorage: AugmentedSubmittable<(items: Vec> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; /** @@ -1778,111 +834,27 @@ declare module '@polkadot/api-base/types/submittable' { }; technicalCommittee: { /** - * Close a vote that is either approved, disapproved or whose voting period has ended. - * - * May be called by any signed account in order to finish voting and close the proposal. - * - * If called before the end of the voting period it will only close the vote if it is - * has enough votes to be approved or disapproved. - * - * If called after the end of the voting period abstentions are counted as rejections - * unless there is a prime member set and the prime member cast an approval. - * - * If the close operation completes successfully with disapproval, the transaction fee will - * be waived. Otherwise execution of the approved operation will be charged to the caller. - * - * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed - * proposal. - * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via - * `storage::read` so it is `size_of::() == 4` larger than the pure length. - * - * ## Complexity - * - `O(B + M + P1 + P2)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` is members-count (code- and governance-bounded) - * - `P1` is the complexity of `proposal` preimage. - * - `P2` is proposal-count (code-bounded) + * See [`Pallet::close`]. **/ close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [H256, Compact, SpWeightsWeightV2Weight, Compact]>; /** - * Disapprove a proposal, close, and remove it from the system, regardless of its current - * state. - * - * Must be called by the Root origin. - * - * Parameters: - * * `proposal_hash`: The hash of the proposal that should be disapproved. - * - * ## Complexity - * O(P) where P is the number of max proposals + * See [`Pallet::disapprove_proposal`]. **/ disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * Dispatch a proposal from a member using the `Member` origin. - * - * Origin must be a member of the collective. - * - * ## Complexity: - * - `O(B + M + P)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` members-count (code-bounded) - * - `P` complexity of dispatching `proposal` + * See [`Pallet::execute`]. **/ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Call, Compact]>; /** - * Add a new proposal to either be voted on or executed directly. - * - * Requires the sender to be member. - * - * `threshold` determines whether `proposal` is executed directly (`threshold < 2`) - * or put up for voting. - * - * ## Complexity - * - `O(B + M + P1)` or `O(B + M + P2)` where: - * - `B` is `proposal` size in bytes (length-fee-bounded) - * - `M` is members-count (code- and governance-bounded) - * - branching is influenced by `threshold` where: - * - `P1` is proposal execution complexity (`threshold < 2`) - * - `P2` is proposals-count (code-bounded) (`threshold >= 2`) + * See [`Pallet::propose`]. **/ propose: AugmentedSubmittable<(threshold: Compact | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Call, Compact]>; /** - * Set the collective's membership. - * - * - `new_members`: The new member list. Be nice to the chain and provide it sorted. - * - `prime`: The prime member whose vote sets the default. - * - `old_count`: The upper bound for the previous number of members in storage. Used for - * weight estimation. - * - * The dispatch of this call must be `SetMembersOrigin`. - * - * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but - * the weight estimations rely on it to estimate dispatchable weight. - * - * # WARNING: - * - * The `pallet-collective` can also be managed by logic outside of the pallet through the - * implementation of the trait [`ChangeMembers`]. - * Any call to `set_members` must be careful that the member set doesn't get out of sync - * with other logic managing the member set. - * - * ## Complexity: - * - `O(MP + N)` where: - * - `M` old-members-count (code- and governance-bounded) - * - `N` new-members-count (code- and governance-bounded) - * - `P` proposals-count (code-bounded) + * See [`Pallet::set_members`]. **/ setMembers: AugmentedSubmittable<(newMembers: Vec | (AccountId32 | string | Uint8Array)[], prime: Option | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, u32]>; /** - * Add an aye or nay vote for the sender to the given proposal. - * - * Requires the sender to be a member. - * - * Transaction fees will be waived if the member is voting on any particular proposal - * for the first time and the call is successful. Subsequent vote changes will charge a - * fee. - * ## Complexity - * - `O(M)` where `M` is members-count (code- and governance-bounded) + * See [`Pallet::vote`]. **/ vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, Compact, bool]>; /** @@ -1892,50 +864,31 @@ declare module '@polkadot/api-base/types/submittable' { }; technicalCommitteeMembership: { /** - * Add a member `who` to the set. - * - * May only be called from `T::AddOrigin`. + * See [`Pallet::add_member`]. **/ addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Swap out the sending member for some other key `new`. - * - * May only be called from `Signed` origin of a current member. - * - * Prime membership is passed from the origin account to `new`, if extant. + * See [`Pallet::change_key`]. **/ changeKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Remove the prime member if it exists. - * - * May only be called from `T::PrimeOrigin`. + * See [`Pallet::clear_prime`]. **/ clearPrime: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Remove a member `who` from the set. - * - * May only be called from `T::RemoveOrigin`. + * See [`Pallet::remove_member`]. **/ removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Change the membership to a new set, disregarding the existing membership. Be nice and - * pass `members` pre-sorted. - * - * May only be called from `T::ResetOrigin`. + * See [`Pallet::reset_members`]. **/ resetMembers: AugmentedSubmittable<(members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * Set the prime member. Must be a current member. - * - * May only be called from `T::PrimeOrigin`. + * See [`Pallet::set_prime`]. **/ setPrime: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * Swap out one member `remove` for another `add`. - * - * May only be called from `T::SwapOrigin`. - * - * Prime membership is *not* passed from `remove` to `add`, if extant. + * See [`Pallet::swap_member`]. **/ swapMember: AugmentedSubmittable<(remove: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, add: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress]>; /** @@ -1944,11 +897,29 @@ declare module '@polkadot/api-base/types/submittable' { [key: string]: SubmittableExtrinsicFunction; }; testUtils: { + /** + * See `Pallet::batch_all`. + **/ batchAll: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * See `Pallet::enable`. + **/ enable: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * See `Pallet::inc_test_value`. + **/ incTestValue: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * See `Pallet::just_take_fee`. + **/ justTakeFee: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * See `Pallet::set_test_value`. + **/ setTestValue: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; + /** + * See `Pallet::set_test_value_and_rollback`. + **/ setTestValueAndRollback: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** * Generic tx @@ -1957,21 +928,7 @@ declare module '@polkadot/api-base/types/submittable' { }; timestamp: { /** - * Set the current time. - * - * This call should be invoked exactly once per block. It will panic at the finalization - * phase, if this call hasn't been invoked by that time. - * - * The timestamp should be greater than the previous one by the amount specified by - * `MinimumPeriod`. - * - * The dispatch origin for this call must be `Inherent`. - * - * ## Complexity - * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) - * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in - * `on_finalize`) - * - 1 event handler `on_timestamp_set`. Must be `O(1)`. + * See [`Pallet::set`]. **/ set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** @@ -1981,80 +938,25 @@ declare module '@polkadot/api-base/types/submittable' { }; tokens: { /** - * Exactly as `transfer`, except the origin must be root and the source - * account may be specified. - * - * The dispatch origin for this call must be _Root_. - * - * - `source`: The sender of the transfer. - * - `dest`: The recipient of the transfer. - * - `currency_id`: currency type. - * - `amount`: free balance amount to tranfer. - **/ - forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, PalletForeignAssetsAssetIds, Compact]>; - /** - * Set the balances of a given account. - * - * This will alter `FreeBalance` and `ReservedBalance` in storage. it - * will also decrease the total issuance of the system - * (`TotalIssuance`). If the new free or reserved balance is below the - * existential deposit, it will reap the `AccountInfo`. - * - * The dispatch origin for this call is `root`. - **/ - setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array, newReserved: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetIds, Compact, Compact]>; - /** - * Transfer some liquid free balance to another account. - * - * `transfer` will set the `FreeBalance` of the sender and receiver. - * It will decrease the total issuance of the system by the - * `TransferFee`. If the sender's account is below the existential - * deposit as a result of the transfer, the account will be reaped. - * - * The dispatch origin for this call must be `Signed` by the - * transactor. - * - * - `dest`: The recipient of the transfer. - * - `currency_id`: currency type. - * - `amount`: free balance amount to tranfer. - **/ - transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetIds, Compact]>; - /** - * Transfer all remaining balance to the given account. - * - * NOTE: This function only attempts to transfer _transferable_ - * balances. This means that any locked, reserved, or existential - * deposits (when `keep_alive` is `true`), will not be transferred by - * this function. To ensure that this function results in a killed - * account, you might need to prepare the account by removing any - * reference counters, storage deposits, etc... - * - * The dispatch origin for this call must be `Signed` by the - * transactor. - * - * - `dest`: The recipient of the transfer. - * - `currency_id`: currency type. - * - `keep_alive`: A boolean to determine if the `transfer_all` - * operation should send all of the funds the account has, causing - * the sender account to be killed (false), or transfer everything - * except at least the existential deposit, which will guarantee to - * keep the sender account alive (true). - **/ - transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetIds, bool]>; - /** - * Same as the [`transfer`] call, but with a check that the transfer - * will not kill the origin account. - * - * 99% of the time you want [`transfer`] instead. - * - * The dispatch origin for this call must be `Signed` by the - * transactor. - * - * - `dest`: The recipient of the transfer. - * - `currency_id`: currency type. - * - `amount`: free balance amount to tranfer. - **/ - transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetIds, Compact]>; + * See [`Pallet::force_transfer`]. + **/ + forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, PalletForeignAssetsAssetId, Compact]>; + /** + * See [`Pallet::set_balance`]. + **/ + setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array, newReserved: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetId, Compact, Compact]>; + /** + * See [`Pallet::transfer`]. + **/ + transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetId, Compact]>; + /** + * See [`Pallet::transfer_all`]. + **/ + transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetId, bool]>; + /** + * See [`Pallet::transfer_keep_alive`]. + **/ + transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletForeignAssetsAssetId, Compact]>; /** * Generic tx **/ @@ -2062,58 +964,23 @@ declare module '@polkadot/api-base/types/submittable' { }; treasury: { /** - * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary - * and the original deposit will be returned. - * - * May only be called from `T::ApproveOrigin`. - * - * ## Complexity - * - O(1). + * See [`Pallet::approve_proposal`]. **/ approveProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Put forward a suggestion for spending. A deposit proportional to the value - * is reserved and slashed if the proposal is rejected. It is returned once the - * proposal is awarded. - * - * ## Complexity - * - O(1) + * See [`Pallet::propose_spend`]. **/ proposeSpend: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * Reject a proposed spend. The original deposit will be slashed. - * - * May only be called from `T::RejectOrigin`. - * - * ## Complexity - * - O(1) + * See [`Pallet::reject_proposal`]. **/ rejectProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Force a previously approved proposal to be removed from the approval queue. - * The original deposit will no longer be returned. - * - * May only be called from `T::RejectOrigin`. - * - `proposal_id`: The index of a proposal - * - * ## Complexity - * - O(A) where `A` is the number of approvals - * - * Errors: - * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue, - * i.e., the proposal has not been approved. This could also mean the proposal does not - * exist altogether, thus there is no way it would have been approved in the first place. + * See [`Pallet::remove_approval`]. **/ removeApproval: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * Propose and approve a spend of treasury funds. - * - * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`. - * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. - * - `beneficiary`: The destination account for the transfer. - * - * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the - * beneficiary. + * See [`Pallet::spend`]. **/ spend: AugmentedSubmittable<(amount: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** @@ -2123,544 +990,131 @@ declare module '@polkadot/api-base/types/submittable' { }; unique: { /** - * Add an admin to a collection. - * - * NFT Collection can be controlled by multiple admin addresses - * (some which can also be servers, for example). Admins can issue - * and burn NFTs, as well as add and remove other admins, - * but cannot change NFT or Collection ownership. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the Collection to add an admin for. - * * `new_admin`: Address of new admin to add. + * See [`Pallet::add_collection_admin`]. **/ addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>; /** - * Add an address to allow list. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `address`: ID of the address to be added to the allowlist. + * See [`Pallet::add_to_allow_list`]. **/ addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>; /** - * Allow a non-permissioned address to transfer or burn an item. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current item owner - * - * # Arguments - * - * * `spender`: Account to be approved to make specific transactions on non-owned tokens. - * * `collection_id`: ID of the collection the item belongs to. - * * `item_id`: ID of the item transactions on which are now approved. - * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs). - * Set to 0 to revoke the approval. + * See [`Pallet::approve`]. **/ approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>; /** - * Allow a non-permissioned address to transfer or burn an item from owner's eth mirror. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current item owner - * - * # Arguments - * - * * `from`: Owner's account eth mirror - * * `to`: Account to be approved to make specific transactions on non-owned tokens. - * * `collection_id`: ID of the collection the item belongs to. - * * `item_id`: ID of the item transactions on which are now approved. - * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs). - * Set to 0 to revoke the approval. + * See [`Pallet::approve_from`]. **/ approveFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, to: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>; /** - * Destroy a token on behalf of the owner as a non-owner account. - * - * See also: [`approve`][`Pallet::approve`]. - * - * After this method executes, one approval is removed from the total so that - * the approved address will not be able to transfer this item again from this owner. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current token owner - * * Address approved by current item owner - * - * # Arguments - * - * * `from`: The owner of the burning item. - * * `collection_id`: ID of the collection to which the item belongs. - * * `item_id`: ID of item to burn. - * * `value`: Number of pieces to burn. - * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID. - * * Fungible Mode: The desired number of pieces to burn. - * * Re-Fungible Mode: The desired number of pieces to burn. + * See [`Pallet::burn_from`]. **/ burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>; /** - * Destroy an item. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current item owner - * - * # Arguments - * - * * `collection_id`: ID of the collection to which the item belongs. - * * `item_id`: ID of item to burn. - * * `value`: Number of pieces of the item to destroy. - * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID. - * * Fungible Mode: The desired number of pieces to burn. - * * Re-Fungible Mode: The desired number of pieces to burn. + * See [`Pallet::burn_item`]. **/ burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; /** - * Change the owner of the collection. - * - * # Permissions - * - * * Collection owner - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `new_owner`: ID of the account that will become the owner. + * See [`Pallet::change_collection_owner`]. **/ changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [u32, AccountId32]>; /** - * Confirm own sponsorship of a collection, becoming the sponsor. - * - * An invitation must be pending, see [`set_collection_sponsor`][`Pallet::set_collection_sponsor`]. - * Sponsor can pay the fees of a transaction instead of the sender, - * but only within specified limits. - * - * # Permissions - * - * * Sponsor-to-be - * - * # Arguments - * - * * `collection_id`: ID of the collection with the pending sponsor. + * See [`Pallet::confirm_sponsorship`]. **/ confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Create a collection of tokens. - * - * Each Token may have multiple properties encoded as an array of bytes - * of certain length. The initial owner of the collection is set - * to the address that signed the transaction and can be changed later. - * - * Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead. - * - * # Permissions - * - * * Anyone - becomes the owner of the new collection. - * - * # Arguments - * - * * `collection_name`: Wide-character string with collection name - * (limit [`MAX_COLLECTION_NAME_LENGTH`]). - * * `collection_description`: Wide-character string with collection description - * (limit [`MAX_COLLECTION_DESCRIPTION_LENGTH`]). - * * `token_prefix`: Byte string containing the token prefix to mark a collection - * to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]). - * * `mode`: Type of items stored in the collection and type dependent data. - * - * returns collection ID - * - * Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead. + * See [`Pallet::create_collection`]. **/ createCollection: AugmentedSubmittable<(collectionName: Vec | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic, [Vec, Vec, Bytes, UpDataStructsCollectionMode]>; /** - * Create a collection with explicit parameters. - * - * Prefer it to the deprecated [`create_collection`][`Pallet::create_collection`] method. - * - * # Permissions - * - * * Anyone - becomes the owner of the new collection. - * - * # Arguments - * - * * `data`: Explicit data of a collection used for its creation. + * See [`Pallet::create_collection_ex`]. **/ createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; limits?: any; permissions?: any; tokenPropertyPermissions?: any; properties?: any; adminList?: any; pendingSponsor?: any; flags?: any } | string | Uint8Array) => SubmittableExtrinsic, [UpDataStructsCreateCollectionData]>; /** - * Mint an item within a collection. - * - * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`]. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Anyone if - * * Allow List is enabled, and - * * Address is added to allow list, and - * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`]) - * - * # Arguments - * - * * `collection_id`: ID of the collection to which an item would belong. - * * `owner`: Address of the initial owner of the item. - * * `data`: Token data describing the item to store on chain. + * See [`Pallet::create_item`]. **/ createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>; /** - * Create multiple items within a collection. - * - * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`]. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Anyone if - * * Allow List is enabled, and - * * Address is added to the allow list, and - * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`]) - * - * # Arguments - * - * * `collection_id`: ID of the collection to which the tokens would belong. - * * `owner`: Address of the initial owner of the tokens. - * * `items_data`: Vector of data describing each item to be created. + * See [`Pallet::create_multiple_items`]. **/ createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec]>; /** - * Create multiple items within a collection with explicitly specified initial parameters. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Anyone if - * * Allow List is enabled, and - * * Address is added to allow list, and - * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`]) - * - * # Arguments - * - * * `collection_id`: ID of the collection to which the tokens would belong. - * * `data`: Explicit item creation data. + * See [`Pallet::create_multiple_items_ex`]. **/ createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, UpDataStructsCreateItemExData]>; /** - * Delete specified collection properties. - * - * # Permissions - * - * * Collection Owner - * * Collection Admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `property_keys`: Vector of keys of the properties to be deleted. - * Keys support Latin letters, `-`, `_`, and `.` as symbols. + * See [`Pallet::delete_collection_properties`]. **/ deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** - * Delete specified token properties. Currently properties only work with NFTs. - * - * # Permissions - * - * * Depends on collection's token property permissions and specified property mutability: - * * Collection owner - * * Collection admin - * * Token owner - * - * # Arguments - * - * * `collection_id`: ID of the collection to which the token belongs. - * * `token_id`: ID of the modified token. - * * `property_keys`: Vector of keys of the properties to be deleted. - * Keys support Latin letters, `-`, `_`, and `.` as symbols. + * See [`Pallet::delete_token_properties`]. **/ deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, u32, Vec]>; /** - * Destroy a collection if no tokens exist within. - * - * # Permissions - * - * * Collection owner - * - * # Arguments - * - * * `collection_id`: Collection to destroy. + * See [`Pallet::destroy_collection`]. **/ destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Repairs a collection if the data was somehow corrupted. - * - * # Arguments - * - * * `collection_id`: ID of the collection to repair. + * See [`Pallet::force_repair_collection`]. **/ forceRepairCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Repairs a token if the data was somehow corrupted. - * - * # Arguments - * - * * `collection_id`: ID of the collection the item belongs to. - * * `item_id`: ID of the item. + * See [`Pallet::force_repair_item`]. **/ forceRepairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; /** - * Remove admin of a collection. - * - * An admin address can remove itself. List of admins may become empty, - * in which case only Collection Owner will be able to add an Admin. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the collection to remove the admin for. - * * `account_id`: Address of the admin to remove. + * See [`Pallet::remove_collection_admin`]. **/ removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>; /** - * Remove a collection's a sponsor, making everyone pay for their own transactions. - * - * # Permissions - * - * * Collection owner - * - * # Arguments - * - * * `collection_id`: ID of the collection with the sponsor to remove. + * See [`Pallet::remove_collection_sponsor`]. **/ removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Remove an address from allow list. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `address`: ID of the address to be removed from the allowlist. + * See [`Pallet::remove_from_allow_list`]. **/ removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>; /** - * Re-partition a refungible token, while owning all of its parts/pieces. - * - * # Permissions - * - * * Token owner (must own every part) - * - * # Arguments - * - * * `collection_id`: ID of the collection the RFT belongs to. - * * `token_id`: ID of the RFT. - * * `amount`: New number of parts/pieces into which the token shall be partitioned. + * See [`Pallet::repartition`]. **/ repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32, u128]>; /** - * Sets or unsets the approval of a given operator. - * - * The `operator` is allowed to transfer all tokens of the `owner` on their behalf. - * - * # Arguments - * - * * `owner`: Token owner - * * `operator`: Operator - * * `approve`: Should operator status be granted or revoked? + * See [`Pallet::set_allowance_for_all`]. **/ setAllowanceForAll: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, PalletEvmAccountBasicCrossAccountIdRepr, bool]>; /** - * Set specific limits of a collection. Empty, or None fields mean chain default. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `new_limit`: New limits of the collection. Fields that are not set (None) - * will not overwrite the old ones. + * See [`Pallet::set_collection_limits`]. **/ setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, UpDataStructsCollectionLimits]>; /** - * Set specific permissions of a collection. Empty, or None fields mean chain default. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `new_permission`: New permissions of the collection. Fields that are not set (None) - * will not overwrite the old ones. + * See [`Pallet::set_collection_permissions`]. **/ setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newPermission: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic, [u32, UpDataStructsCollectionPermissions]>; /** - * Add or change collection properties. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `properties`: Vector of key-value pairs stored as the collection's metadata. - * Keys support Latin letters, `-`, `_`, and `.` as symbols. + * See [`Pallet::set_collection_properties`]. **/ setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** - * Set (invite) a new collection sponsor. - * - * If successful, confirmation from the sponsor-to-be will be pending. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `new_sponsor`: ID of the account of the sponsor-to-be. + * See [`Pallet::set_collection_sponsor`]. **/ setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [u32, AccountId32]>; /** - * Add or change token properties according to collection's permissions. - * Currently properties only work with NFTs. - * - * # Permissions - * - * * Depends on collection's token property permissions and specified property mutability: - * * Collection owner - * * Collection admin - * * Token owner - * - * See [`set_token_property_permissions`][`Pallet::set_token_property_permissions`]. - * - * # Arguments - * - * * `collection_id: ID of the collection to which the token belongs. - * * `token_id`: ID of the modified token. - * * `properties`: Vector of key-value pairs stored as the token's metadata. - * Keys support Latin letters, `-`, `_`, and `.` as symbols. + * See [`Pallet::set_token_properties`]. **/ setTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, properties: Vec | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, u32, Vec]>; /** - * Add or change token property permissions of a collection. - * - * Without a permission for a particular key, a property with that key - * cannot be created in a token. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * - * # Arguments - * - * * `collection_id`: ID of the modified collection. - * * `property_permissions`: Vector of permissions for property keys. - * Keys support Latin letters, `-`, `_`, and `.` as symbols. + * See [`Pallet::set_token_property_permissions`]. **/ setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** - * Completely allow or disallow transfers for a particular collection. - * - * # Permissions - * - * * Collection owner - * - * # Arguments - * - * * `collection_id`: ID of the collection. - * * `value`: New value of the flag, are transfers allowed? + * See [`Pallet::set_transfers_enabled_flag`]. **/ setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic, [u32, bool]>; /** - * Change ownership of the token. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current token owner - * - * # Arguments - * - * * `recipient`: Address of token recipient. - * * `collection_id`: ID of the collection the item belongs to. - * * `item_id`: ID of the item. - * * Non-Fungible Mode: Required. - * * Fungible Mode: Ignored. - * * Re-Fungible Mode: Required. - * - * * `value`: Amount to transfer. - * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID. - * * Fungible Mode: The desired number of pieces to transfer. - * * Re-Fungible Mode: The desired number of pieces to transfer. + * See [`Pallet::transfer`]. **/ transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>; /** - * Change ownership of an item on behalf of the owner as a non-owner account. - * - * See the [`approve`][`Pallet::approve`] method for additional information. - * - * After this method executes, one approval is removed from the total so that - * the approved address will not be able to transfer this item again from this owner. - * - * # Permissions - * - * * Collection owner - * * Collection admin - * * Current item owner - * * Address approved by current item owner - * - * # Arguments - * - * * `from`: Address that currently owns the token. - * * `recipient`: Address of the new token-owner-to-be. - * * `collection_id`: ID of the collection the item. - * * `item_id`: ID of the item to be transferred. - * * `value`: Amount to transfer. - * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID. - * * Fungible Mode: The desired number of pieces to transfer. - * * Re-Fungible Mode: The desired number of pieces to transfer. + * See [`Pallet::transfer_from`]. **/ transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>; /** @@ -2668,10 +1122,52 @@ declare module '@polkadot/api-base/types/submittable' { **/ [key: string]: SubmittableExtrinsicFunction; }; + utility: { + /** + * See [`Pallet::as_derivative`]. + **/ + asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u16, Call]>; + /** + * See [`Pallet::batch`]. + **/ + batch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * See [`Pallet::batch_all`]. + **/ + batchAll: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * See [`Pallet::dispatch_as`]. + **/ + dispatchAs: AugmentedSubmittable<(asOrigin: OpalRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { PolkadotXcm: any } | { CumulusXcm: any } | { Origins: any } | { Ethereum: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [OpalRuntimeOriginCaller, Call]>; + /** + * See [`Pallet::force_batch`]. + **/ + forceBatch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; + /** + * See [`Pallet::with_weight`]. + **/ + withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; + /** + * Generic tx + **/ + [key: string]: SubmittableExtrinsicFunction; + }; vesting: { + /** + * See [`Pallet::claim`]. + **/ claim: AugmentedSubmittable<() => SubmittableExtrinsic, []>; + /** + * See [`Pallet::claim_for`]. + **/ claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; + /** + * See [`Pallet::update_vesting_schedules`]. + **/ updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [MultiAddress, Vec]>; + /** + * See [`Pallet::vested_transfer`]. + **/ vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, OrmlVestingVestingSchedule]>; /** * Generic tx @@ -2680,80 +1176,39 @@ declare module '@polkadot/api-base/types/submittable' { }; xcmpQueue: { /** - * Resumes all XCM executions for the XCMP queue. - * - * Note that this function doesn't change the status of the in/out bound channels. - * - * - `origin`: Must pass `ControllerOrigin`. + * See [`Pallet::resume_xcm_execution`]. **/ resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Services a single overweight XCM. - * - * - `origin`: Must pass `ExecuteOverweightOrigin`. - * - `index`: The index of the overweight XCM to service - * - `weight_limit`: The amount of weight that XCM execution may take. - * - * Errors: - * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map. - * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format. - * - `WeightOverLimit`: XCM execution may use greater `weight_limit`. - * - * Events: - * - `OverweightServiced`: On success. + * See [`Pallet::service_overweight`]. **/ serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u64, SpWeightsWeightV2Weight]>; /** - * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. - * - * - `origin`: Must pass `ControllerOrigin`. + * See [`Pallet::suspend_xcm_execution`]. **/ suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * Overwrites the number of pages of messages which must be in the queue after which we drop any further - * messages from the channel. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.drop_threshold` + * See [`Pallet::update_drop_threshold`]. **/ updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Overwrites the number of pages of messages which the queue must be reduced to before it signals that - * message sending may recommence after it has been suspended. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.resume_threshold` + * See [`Pallet::update_resume_threshold`]. **/ updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Overwrites the number of pages of messages which must be in the queue for the other side to be told to - * suspend their sending. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.suspend_value` + * See [`Pallet::update_suspend_threshold`]. **/ updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * Overwrites the amount of remaining weight under which we stop processing messages. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.threshold_weight` + * See [`Pallet::update_threshold_weight`]. **/ updateThresholdWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [SpWeightsWeightV2Weight]>; /** - * Overwrites the speed to which the available weight approaches the maximum weight. - * A lower number results in a faster progression. A value of 1 makes the entire weight available initially. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`. + * See [`Pallet::update_weight_restrict_decay`]. **/ updateWeightRestrictDecay: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [SpWeightsWeightV2Weight]>; /** - * Overwrite the maximum amount of weight any individual message may consume. - * Messages above this weight go into the overweight queue and may only be serviced explicitly. - * - * - `origin`: Must pass `Root`. - * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`. + * See [`Pallet::update_xcmp_max_individual_weight`]. **/ updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [SpWeightsWeightV2Weight]>; /** @@ -2763,119 +1218,29 @@ declare module '@polkadot/api-base/types/submittable' { }; xTokens: { /** - * Transfer native currencies. - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transfer: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletForeignAssetsAssetIds, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>; - /** - * Transfer `MultiAsset`. - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transferMultiasset: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>; - /** - * Transfer several `MultiAsset` specifying the item to be used as fee - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * `fee_item` is index of the MultiAssets that we want to use for - * payment - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transferMultiassets: AugmentedSubmittable<(assets: XcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>; - /** - * Transfer `MultiAsset` specifying the fee and amount as separate. - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * `fee` is the multiasset to be spent to pay for execution in - * destination chain. Both fee and amount will be subtracted form the - * callers balance For now we only accept fee and asset having the same - * `MultiLocation` id. - * - * If `fee` is not high enough to cover for the execution costs in the - * destination chain, then the assets will be trapped in the - * destination chain - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transferMultiassetWithFee: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, fee: XcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV3WeightLimit]>; - /** - * Transfer several currencies specifying the item to be used as fee - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * `fee_item` is index of the currencies tuple that we want to use for - * payment - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transferMulticurrencies: AugmentedSubmittable<(currencies: Vec> | ([PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, u128 | AnyNumber | Uint8Array])[], feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [Vec>, u32, XcmVersionedMultiLocation, XcmV3WeightLimit]>; - /** - * Transfer native currencies specifying the fee and amount as - * separate. - * - * `dest_weight_limit` is the weight for XCM execution on the dest - * chain, and it would be charged from the transferred assets. If set - * below requirements, the execution may fail and assets wouldn't be - * received. - * - * `fee` is the amount to be spent to pay for execution in destination - * chain. Both fee and amount will be subtracted form the callers - * balance. - * - * If `fee` is not high enough to cover for the execution costs in the - * destination chain, then the assets will be trapped in the - * destination chain - * - * It's a no-op if any error on local XCM execution or message sending. - * Note sending assets out per se doesn't guarantee they would be - * received. Receiving depends on if the XCM message could be delivered - * by the network, and if the receiving chain would handle - * messages correctly. - **/ - transferWithFee: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, fee: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletForeignAssetsAssetIds, u128, u128, XcmVersionedMultiLocation, XcmV3WeightLimit]>; + * See [`Pallet::transfer`]. + **/ + transfer: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletForeignAssetsAssetId, u128, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::transfer_multiasset`]. + **/ + transferMultiasset: AugmentedSubmittable<(asset: StagingXcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::transfer_multiassets`]. + **/ + transferMultiassets: AugmentedSubmittable<(assets: StagingXcmVersionedMultiAssets | { V2: any } | { V3: any } | string | Uint8Array, feeItem: u32 | AnyNumber | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiAssets, u32, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::transfer_multiasset_with_fee`]. + **/ + transferMultiassetWithFee: AugmentedSubmittable<(asset: StagingXcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, fee: StagingXcmVersionedMultiAsset | { V2: any } | { V3: any } | string | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::transfer_multicurrencies`]. + **/ + transferMulticurrencies: AugmentedSubmittable<(currencies: Vec> | ([PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, u128 | AnyNumber | Uint8Array])[], feeItem: u32 | AnyNumber | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [Vec>, u32, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; + /** + * See [`Pallet::transfer_with_fee`]. + **/ + transferWithFee: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetId | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, fee: u128 | AnyNumber | Uint8Array, dest: StagingXcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array, destWeightLimit: StagingXcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [PalletForeignAssetsAssetId, u128, u128, StagingXcmVersionedMultiLocation, StagingXcmV3WeightLimit]>; /** * Generic tx **/ diff --git a/tests/src/interfaces/augment-types.ts b/tests/src/interfaces/augment-types.ts index 49e7ba869e..dad6943ca7 100644 --- a/tests/src/interfaces/augment-types.ts +++ b/tests/src/interfaces/augment-types.ts @@ -5,7 +5,8 @@ // this is required to allow for ambient/previous definitions import '@polkadot/types/types/registry'; -import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmCoderSubstrateError, PalletEvmContractHelpersCall, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletGovOriginsOrigin, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletMembershipCall, PalletMembershipError, PalletMembershipEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRankedCollectiveCall, PalletRankedCollectiveError, PalletRankedCollectiveEvent, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReferendaCall, PalletReferendaCurve, PalletReferendaDecidingStatus, PalletReferendaDeposit, PalletReferendaError, PalletReferendaEvent, PalletReferendaReferendumInfo, PalletReferendaReferendumStatus, PalletReferendaTrackInfo, PalletRefungibleError, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduled, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStateTrieMigrationCall, PalletStateTrieMigrationError, PalletStateTrieMigrationEvent, PalletStateTrieMigrationMigrationCompute, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, ParachainInfoCall, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV4AbridgedHostConfiguration, PolkadotPrimitivesV4AbridgedHrmpChannel, PolkadotPrimitivesV4PersistedValidationData, PolkadotPrimitivesV4UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV2BodyId, XcmV2BodyPart, XcmV2Instruction, XcmV2Junction, XcmV2MultiAsset, XcmV2MultiLocation, XcmV2MultiassetAssetId, XcmV2MultiassetAssetInstance, XcmV2MultiassetFungibility, XcmV2MultiassetMultiAssetFilter, XcmV2MultiassetMultiAssets, XcmV2MultiassetWildFungibility, XcmV2MultiassetWildMultiAsset, XcmV2MultilocationJunctions, XcmV2NetworkId, XcmV2OriginKind, XcmV2Response, XcmV2TraitsError, XcmV2WeightLimit, XcmV2Xcm, XcmV3Instruction, XcmV3Junction, XcmV3JunctionBodyId, XcmV3JunctionBodyPart, XcmV3JunctionNetworkId, XcmV3Junctions, XcmV3MaybeErrorCode, XcmV3MultiAsset, XcmV3MultiLocation, XcmV3MultiassetAssetId, XcmV3MultiassetAssetInstance, XcmV3MultiassetFungibility, XcmV3MultiassetMultiAssetFilter, XcmV3MultiassetMultiAssets, XcmV3MultiassetWildFungibility, XcmV3MultiassetWildMultiAsset, XcmV3PalletInfo, XcmV3QueryResponseInfo, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3WeightLimit, XcmV3Xcm, XcmVersionedAssetId, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedResponse, XcmVersionedXcm } from './default'; +import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OpalRuntimeRuntimeHoldReason, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollatorSelectionHoldReason, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmCoderSubstrateError, PalletEvmContractHelpersCall, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetId, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletGovOriginsOrigin, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletMembershipCall, PalletMembershipError, PalletMembershipEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRankedCollectiveCall, PalletRankedCollectiveError, PalletRankedCollectiveEvent, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReferendaCall, PalletReferendaCurve, PalletReferendaDecidingStatus, PalletReferendaDeposit, PalletReferendaError, PalletReferendaEvent, PalletReferendaReferendumInfo, PalletReferendaReferendumStatus, PalletReferendaTrackInfo, PalletRefungibleError, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduled, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStateTrieMigrationCall, PalletStateTrieMigrationError, PalletStateTrieMigrationEvent, PalletStateTrieMigrationMigrationCompute, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, ParachainInfoCall, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat, PolkadotPrimitivesV5AbridgedHostConfiguration, PolkadotPrimitivesV5AbridgedHrmpChannel, PolkadotPrimitivesV5PersistedValidationData, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesVstagingAsyncBackingParams, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmDoubleEncoded, StagingXcmV2BodyId, StagingXcmV2BodyPart, StagingXcmV2Instruction, StagingXcmV2Junction, StagingXcmV2MultiAsset, StagingXcmV2MultiLocation, StagingXcmV2MultiassetAssetId, StagingXcmV2MultiassetAssetInstance, StagingXcmV2MultiassetFungibility, StagingXcmV2MultiassetMultiAssetFilter, StagingXcmV2MultiassetMultiAssets, StagingXcmV2MultiassetWildFungibility, StagingXcmV2MultiassetWildMultiAsset, StagingXcmV2MultilocationJunctions, StagingXcmV2NetworkId, StagingXcmV2OriginKind, StagingXcmV2Response, StagingXcmV2TraitsError, StagingXcmV2WeightLimit, StagingXcmV2Xcm, StagingXcmV3Instruction, StagingXcmV3Junction, StagingXcmV3JunctionBodyId, StagingXcmV3JunctionBodyPart, StagingXcmV3JunctionNetworkId, StagingXcmV3Junctions, StagingXcmV3MaybeErrorCode, StagingXcmV3MultiAsset, StagingXcmV3MultiLocation, StagingXcmV3MultiassetAssetId, StagingXcmV3MultiassetAssetInstance, StagingXcmV3MultiassetFungibility, StagingXcmV3MultiassetMultiAssetFilter, StagingXcmV3MultiassetMultiAssets, StagingXcmV3MultiassetWildFungibility, StagingXcmV3MultiassetWildMultiAsset, StagingXcmV3PalletInfo, StagingXcmV3QueryResponseInfo, StagingXcmV3Response, StagingXcmV3TraitsError, StagingXcmV3TraitsOutcome, StagingXcmV3WeightLimit, StagingXcmV3Xcm, StagingXcmVersionedAssetId, StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiAssets, StagingXcmVersionedMultiLocation, StagingXcmVersionedResponse, StagingXcmVersionedXcm, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue } from './default/index.js'; import type { Data, StorageKey } from '@polkadot/types'; import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, 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'; @@ -335,7 +336,11 @@ declare module '@polkadot/types/types/registry' { CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; - CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize; + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + CumulusPalletParachainSystemUnincludedSegmentAncestor: CumulusPalletParachainSystemUnincludedSegmentAncestor; + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate; + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: CumulusPalletParachainSystemUnincludedSegmentSegmentTracker; + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; CumulusPalletXcmCall: CumulusPalletXcmCall; CumulusPalletXcmError: CumulusPalletXcmError; CumulusPalletXcmEvent: CumulusPalletXcmEvent; @@ -800,6 +805,7 @@ declare module '@polkadot/types/types/registry' { OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls; OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance; OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys; + OpalRuntimeRuntimeHoldReason: OpalRuntimeRuntimeHoldReason; OpaqueCall: OpaqueCall; OpaqueKeyOwnershipProof: OpaqueKeyOwnershipProof; OpaqueMetadata: OpaqueMetadata; @@ -857,6 +863,7 @@ declare module '@polkadot/types/types/registry' { PalletCollatorSelectionCall: PalletCollatorSelectionCall; PalletCollatorSelectionError: PalletCollatorSelectionError; PalletCollatorSelectionEvent: PalletCollatorSelectionEvent; + PalletCollatorSelectionHoldReason: PalletCollatorSelectionHoldReason; PalletCollectiveCall: PalletCollectiveCall; PalletCollectiveError: PalletCollectiveError; PalletCollectiveEvent: PalletCollectiveEvent; @@ -905,7 +912,7 @@ declare module '@polkadot/types/types/registry' { PalletEvmMigrationCall: PalletEvmMigrationCall; PalletEvmMigrationError: PalletEvmMigrationError; PalletEvmMigrationEvent: PalletEvmMigrationEvent; - PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds; + PalletForeignAssetsAssetId: PalletForeignAssetsAssetId; PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata; PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall; PalletForeignAssetsModuleError: PalletForeignAssetsModuleError; @@ -991,6 +998,9 @@ declare module '@polkadot/types/types/registry' { PalletTreasuryProposal: PalletTreasuryProposal; PalletUniqueCall: PalletUniqueCall; PalletUniqueError: PalletUniqueError; + PalletUtilityCall: PalletUtilityCall; + PalletUtilityError: PalletUtilityError; + PalletUtilityEvent: PalletUtilityEvent; PalletVersion: PalletVersion; PalletXcmCall: PalletXcmCall; PalletXcmError: PalletXcmError; @@ -1046,11 +1056,13 @@ declare module '@polkadot/types/types/registry' { PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; - PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat; - PolkadotPrimitivesV4AbridgedHostConfiguration: PolkadotPrimitivesV4AbridgedHostConfiguration; - PolkadotPrimitivesV4AbridgedHrmpChannel: PolkadotPrimitivesV4AbridgedHrmpChannel; - PolkadotPrimitivesV4PersistedValidationData: PolkadotPrimitivesV4PersistedValidationData; - PolkadotPrimitivesV4UpgradeRestriction: PolkadotPrimitivesV4UpgradeRestriction; + PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat; + PolkadotPrimitivesV5AbridgedHostConfiguration: PolkadotPrimitivesV5AbridgedHostConfiguration; + PolkadotPrimitivesV5AbridgedHrmpChannel: PolkadotPrimitivesV5AbridgedHrmpChannel; + PolkadotPrimitivesV5PersistedValidationData: PolkadotPrimitivesV5PersistedValidationData; + PolkadotPrimitivesV5UpgradeGoAhead: PolkadotPrimitivesV5UpgradeGoAhead; + PolkadotPrimitivesV5UpgradeRestriction: PolkadotPrimitivesV5UpgradeRestriction; + PolkadotPrimitivesVstagingAsyncBackingParams: PolkadotPrimitivesVstagingAsyncBackingParams; PortableType: PortableType; PortableTypeV14: PortableTypeV14; Precommits: Precommits; @@ -1286,6 +1298,56 @@ declare module '@polkadot/types/types/registry' { SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight; SpWeightsWeightV2Weight: SpWeightsWeightV2Weight; Sr25519Signature: Sr25519Signature; + StagingXcmDoubleEncoded: StagingXcmDoubleEncoded; + StagingXcmV2BodyId: StagingXcmV2BodyId; + StagingXcmV2BodyPart: StagingXcmV2BodyPart; + StagingXcmV2Instruction: StagingXcmV2Instruction; + StagingXcmV2Junction: StagingXcmV2Junction; + StagingXcmV2MultiAsset: StagingXcmV2MultiAsset; + StagingXcmV2MultiassetAssetId: StagingXcmV2MultiassetAssetId; + StagingXcmV2MultiassetAssetInstance: StagingXcmV2MultiassetAssetInstance; + StagingXcmV2MultiassetFungibility: StagingXcmV2MultiassetFungibility; + StagingXcmV2MultiassetMultiAssetFilter: StagingXcmV2MultiassetMultiAssetFilter; + StagingXcmV2MultiassetMultiAssets: StagingXcmV2MultiassetMultiAssets; + StagingXcmV2MultiassetWildFungibility: StagingXcmV2MultiassetWildFungibility; + StagingXcmV2MultiassetWildMultiAsset: StagingXcmV2MultiassetWildMultiAsset; + StagingXcmV2MultiLocation: StagingXcmV2MultiLocation; + StagingXcmV2MultilocationJunctions: StagingXcmV2MultilocationJunctions; + StagingXcmV2NetworkId: StagingXcmV2NetworkId; + StagingXcmV2OriginKind: StagingXcmV2OriginKind; + StagingXcmV2Response: StagingXcmV2Response; + StagingXcmV2TraitsError: StagingXcmV2TraitsError; + StagingXcmV2WeightLimit: StagingXcmV2WeightLimit; + StagingXcmV2Xcm: StagingXcmV2Xcm; + StagingXcmV3Instruction: StagingXcmV3Instruction; + StagingXcmV3Junction: StagingXcmV3Junction; + StagingXcmV3JunctionBodyId: StagingXcmV3JunctionBodyId; + StagingXcmV3JunctionBodyPart: StagingXcmV3JunctionBodyPart; + StagingXcmV3JunctionNetworkId: StagingXcmV3JunctionNetworkId; + StagingXcmV3Junctions: StagingXcmV3Junctions; + StagingXcmV3MaybeErrorCode: StagingXcmV3MaybeErrorCode; + StagingXcmV3MultiAsset: StagingXcmV3MultiAsset; + StagingXcmV3MultiassetAssetId: StagingXcmV3MultiassetAssetId; + StagingXcmV3MultiassetAssetInstance: StagingXcmV3MultiassetAssetInstance; + StagingXcmV3MultiassetFungibility: StagingXcmV3MultiassetFungibility; + StagingXcmV3MultiassetMultiAssetFilter: StagingXcmV3MultiassetMultiAssetFilter; + StagingXcmV3MultiassetMultiAssets: StagingXcmV3MultiassetMultiAssets; + StagingXcmV3MultiassetWildFungibility: StagingXcmV3MultiassetWildFungibility; + StagingXcmV3MultiassetWildMultiAsset: StagingXcmV3MultiassetWildMultiAsset; + StagingXcmV3MultiLocation: StagingXcmV3MultiLocation; + StagingXcmV3PalletInfo: StagingXcmV3PalletInfo; + StagingXcmV3QueryResponseInfo: StagingXcmV3QueryResponseInfo; + StagingXcmV3Response: StagingXcmV3Response; + StagingXcmV3TraitsError: StagingXcmV3TraitsError; + StagingXcmV3TraitsOutcome: StagingXcmV3TraitsOutcome; + StagingXcmV3WeightLimit: StagingXcmV3WeightLimit; + StagingXcmV3Xcm: StagingXcmV3Xcm; + StagingXcmVersionedAssetId: StagingXcmVersionedAssetId; + StagingXcmVersionedMultiAsset: StagingXcmVersionedMultiAsset; + StagingXcmVersionedMultiAssets: StagingXcmVersionedMultiAssets; + StagingXcmVersionedMultiLocation: StagingXcmVersionedMultiLocation; + StagingXcmVersionedResponse: StagingXcmVersionedResponse; + StagingXcmVersionedXcm: StagingXcmVersionedXcm; StakingLedger: StakingLedger; StakingLedgerTo223: StakingLedgerTo223; StakingLedgerTo240: StakingLedgerTo240; @@ -1496,7 +1558,6 @@ declare module '@polkadot/types/types/registry' { WithdrawReasons: WithdrawReasons; Xcm: Xcm; XcmAssetId: XcmAssetId; - XcmDoubleEncoded: XcmDoubleEncoded; XcmError: XcmError; XcmErrorV0: XcmErrorV0; XcmErrorV1: XcmErrorV1; @@ -1511,55 +1572,6 @@ declare module '@polkadot/types/types/registry' { XcmV0: XcmV0; XcmV1: XcmV1; XcmV2: XcmV2; - XcmV2BodyId: XcmV2BodyId; - XcmV2BodyPart: XcmV2BodyPart; - XcmV2Instruction: XcmV2Instruction; - XcmV2Junction: XcmV2Junction; - XcmV2MultiAsset: XcmV2MultiAsset; - XcmV2MultiassetAssetId: XcmV2MultiassetAssetId; - XcmV2MultiassetAssetInstance: XcmV2MultiassetAssetInstance; - XcmV2MultiassetFungibility: XcmV2MultiassetFungibility; - XcmV2MultiassetMultiAssetFilter: XcmV2MultiassetMultiAssetFilter; - XcmV2MultiassetMultiAssets: XcmV2MultiassetMultiAssets; - XcmV2MultiassetWildFungibility: XcmV2MultiassetWildFungibility; - XcmV2MultiassetWildMultiAsset: XcmV2MultiassetWildMultiAsset; - XcmV2MultiLocation: XcmV2MultiLocation; - XcmV2MultilocationJunctions: XcmV2MultilocationJunctions; - XcmV2NetworkId: XcmV2NetworkId; - XcmV2OriginKind: XcmV2OriginKind; - XcmV2Response: XcmV2Response; - XcmV2TraitsError: XcmV2TraitsError; - XcmV2WeightLimit: XcmV2WeightLimit; - XcmV2Xcm: XcmV2Xcm; - XcmV3Instruction: XcmV3Instruction; - XcmV3Junction: XcmV3Junction; - XcmV3JunctionBodyId: XcmV3JunctionBodyId; - XcmV3JunctionBodyPart: XcmV3JunctionBodyPart; - XcmV3JunctionNetworkId: XcmV3JunctionNetworkId; - XcmV3Junctions: XcmV3Junctions; - XcmV3MaybeErrorCode: XcmV3MaybeErrorCode; - XcmV3MultiAsset: XcmV3MultiAsset; - XcmV3MultiassetAssetId: XcmV3MultiassetAssetId; - XcmV3MultiassetAssetInstance: XcmV3MultiassetAssetInstance; - XcmV3MultiassetFungibility: XcmV3MultiassetFungibility; - XcmV3MultiassetMultiAssetFilter: XcmV3MultiassetMultiAssetFilter; - XcmV3MultiassetMultiAssets: XcmV3MultiassetMultiAssets; - XcmV3MultiassetWildFungibility: XcmV3MultiassetWildFungibility; - XcmV3MultiassetWildMultiAsset: XcmV3MultiassetWildMultiAsset; - XcmV3MultiLocation: XcmV3MultiLocation; - XcmV3PalletInfo: XcmV3PalletInfo; - XcmV3QueryResponseInfo: XcmV3QueryResponseInfo; - XcmV3Response: XcmV3Response; - XcmV3TraitsError: XcmV3TraitsError; - XcmV3TraitsOutcome: XcmV3TraitsOutcome; - XcmV3WeightLimit: XcmV3WeightLimit; - XcmV3Xcm: XcmV3Xcm; XcmVersion: XcmVersion; - XcmVersionedAssetId: XcmVersionedAssetId; - XcmVersionedMultiAsset: XcmVersionedMultiAsset; - XcmVersionedMultiAssets: XcmVersionedMultiAssets; - XcmVersionedMultiLocation: XcmVersionedMultiLocation; - XcmVersionedResponse: XcmVersionedResponse; - XcmVersionedXcm: XcmVersionedXcm; } // InterfaceTypes } // declare module diff --git a/tests/src/interfaces/default/definitions.ts b/tests/src/interfaces/default/definitions.ts index 922291fe50..3bd94db299 100644 --- a/tests/src/interfaces/default/definitions.ts +++ b/tests/src/interfaces/default/definitions.ts @@ -1,4 +1,4 @@ -import types from '../lookup'; +import types from '../lookup.js'; export default { types, diff --git a/tests/src/interfaces/default/types.ts b/tests/src/interfaces/default/types.ts index 74014675fd..e6aa0deab1 100644 --- a/tests/src/interfaces/default/types.ts +++ b/tests/src/interfaces/default/types.ts @@ -34,25 +34,28 @@ export interface CumulusPalletDmpQueueError extends Enum { export interface CumulusPalletDmpQueueEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly isUnsupportedVersion: boolean; readonly asUnsupportedVersion: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly isExecutedDownward: boolean; readonly asExecutedDownward: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; - readonly outcome: XcmV3TraitsOutcome; + readonly outcome: StagingXcmV3TraitsOutcome; } & Struct; readonly isWeightExhausted: boolean; readonly asWeightExhausted: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; readonly remainingWeight: SpWeightsWeightV2Weight; readonly requiredWeight: SpWeightsWeightV2Weight; } & Struct; readonly isOverweightEnqueued: boolean; readonly asOverweightEnqueued: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; readonly overweightIndex: u64; readonly requiredWeight: SpWeightsWeightV2Weight; @@ -64,7 +67,7 @@ export interface CumulusPalletDmpQueueEvent extends Enum { } & Struct; readonly isMaxMessagesExhausted: boolean; readonly asMaxMessagesExhausted: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced' | 'MaxMessagesExhausted'; } @@ -148,17 +151,44 @@ export interface CumulusPalletParachainSystemEvent extends Enum { /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot */ export interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { readonly dmqMqcHead: H256; - readonly relayDispatchQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize; - readonly ingressChannels: Vec>; - readonly egressChannels: Vec>; + readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; } -/** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize */ -export interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize extends Struct { +/** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity */ +export interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { readonly remainingCount: u32; readonly remainingSize: u32; } +/** @name CumulusPalletParachainSystemUnincludedSegmentAncestor */ +export interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly paraHeadHash: Option; + readonly consumedGoAheadSignal: Option; +} + +/** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate */ +export interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { + readonly msgCount: u32; + readonly totalBytes: u32; +} + +/** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker */ +export interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly hrmpWatermark: Option; + readonly consumedGoAheadSignal: Option; +} + +/** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth */ +export interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { + readonly umpMsgCount: u32; + readonly umpTotalBytes: u32; + readonly hrmpOutgoing: BTreeMap; +} + /** @name CumulusPalletXcmCall */ export interface CumulusPalletXcmCall extends Null {} @@ -172,7 +202,7 @@ export interface CumulusPalletXcmEvent extends Enum { readonly isUnsupportedVersion: boolean; readonly asUnsupportedVersion: U8aFixed; readonly isExecutedDownward: boolean; - readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>; + readonly asExecutedDownward: ITuple<[U8aFixed, StagingXcmV3TraitsOutcome]>; readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; } @@ -234,26 +264,28 @@ export interface CumulusPalletXcmpQueueError extends Enum { export interface CumulusPalletXcmpQueueEvent extends Enum { readonly isSuccess: boolean; readonly asSuccess: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; readonly weight: SpWeightsWeightV2Weight; } & Struct; readonly isFail: boolean; readonly asFail: { - readonly messageHash: Option; - readonly error: XcmV3TraitsError; + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly error: StagingXcmV3TraitsError; readonly weight: SpWeightsWeightV2Weight; } & Struct; readonly isBadVersion: boolean; readonly asBadVersion: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isBadFormat: boolean; readonly asBadFormat: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isXcmpMessageSent: boolean; readonly asXcmpMessageSent: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isOverweightEnqueued: boolean; readonly asOverweightEnqueued: { @@ -274,7 +306,7 @@ export interface CumulusPalletXcmpQueueEvent extends Enum { export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { readonly sender: u32; readonly state: CumulusPalletXcmpQueueInboundState; - readonly messageMetadata: Vec>; + readonly messageMetadata: Vec>; } /** @name CumulusPalletXcmpQueueInboundState */ @@ -312,7 +344,7 @@ export interface CumulusPalletXcmpQueueQueueConfigData extends Struct { /** @name CumulusPrimitivesParachainInherentParachainInherentData */ export interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { - readonly validationData: PolkadotPrimitivesV4PersistedValidationData; + readonly validationData: PolkadotPrimitivesV5PersistedValidationData; readonly relayChainState: SpTrieStorageProof; readonly downwardMessages: Vec; readonly horizontalMessages: BTreeMap>; @@ -787,6 +819,13 @@ export interface OpalRuntimeRuntimeCommonSessionKeys extends Struct { readonly aura: SpConsensusAuraSr25519AppSr25519Public; } +/** @name OpalRuntimeRuntimeHoldReason */ +export interface OpalRuntimeRuntimeHoldReason extends Enum { + readonly isCollatorSelection: boolean; + readonly asCollatorSelection: PalletCollatorSelectionHoldReason; + readonly type: 'CollatorSelection'; +} + /** @name OrmlTokensAccountData */ export interface OrmlTokensAccountData extends Struct { readonly free: u128; @@ -805,32 +844,32 @@ export interface OrmlTokensModuleCall extends Enum { readonly isTransfer: boolean; readonly asTransfer: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isTransferAll: boolean; readonly asTransferAll: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly keepAlive: bool; } & Struct; readonly isTransferKeepAlive: boolean; readonly asTransferKeepAlive: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isForceTransfer: boolean; readonly asForceTransfer: { readonly source: MultiAddress; readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isSetBalance: boolean; readonly asSetBalance: { readonly who: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly newFree: Compact; readonly newReserved: Compact; } & Struct; @@ -854,38 +893,38 @@ export interface OrmlTokensModuleError extends Enum { export interface OrmlTokensModuleEvent extends Enum { readonly isEndowed: boolean; readonly asEndowed: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isDustLost: boolean; readonly asDustLost: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isTransfer: boolean; readonly asTransfer: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; } & Struct; readonly isReserved: boolean; readonly asReserved: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnreserved: boolean; readonly asUnreserved: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isReserveRepatriated: boolean; readonly asReserveRepatriated: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; @@ -893,61 +932,71 @@ export interface OrmlTokensModuleEvent extends Enum { } & Struct; readonly isBalanceSet: boolean; readonly asBalanceSet: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly free: u128; readonly reserved: u128; } & Struct; readonly isTotalIssuanceSet: boolean; readonly asTotalIssuanceSet: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; } & Struct; readonly isWithdrawn: boolean; readonly asWithdrawn: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isSlashed: boolean; readonly asSlashed: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly freeAmount: u128; readonly reservedAmount: u128; } & Struct; readonly isDeposited: boolean; readonly asDeposited: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockSet: boolean; readonly asLockSet: { readonly lockId: U8aFixed; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockRemoved: boolean; readonly asLockRemoved: { readonly lockId: U8aFixed; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; } & Struct; readonly isLocked: boolean; readonly asLocked: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnlocked: boolean; readonly asUnlocked: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; - readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked'; + readonly isIssued: boolean; + readonly asIssued: { + readonly currencyId: PalletForeignAssetsAssetId; + readonly amount: u128; + } & Struct; + readonly isRescinded: boolean; + readonly asRescinded: { + readonly currencyId: PalletForeignAssetsAssetId; + readonly amount: u128; + } & Struct; + readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked' | 'Issued' | 'Rescinded'; } /** @name OrmlTokensReserveData */ @@ -1019,45 +1068,45 @@ export interface OrmlVestingVestingSchedule extends Struct { export interface OrmlXtokensModuleCall extends Enum { readonly isTransfer: boolean; readonly asTransfer: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiasset: boolean; readonly asTransferMultiasset: { - readonly asset: XcmVersionedMultiAsset; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly asset: StagingXcmVersionedMultiAsset; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferWithFee: boolean; readonly asTransferWithFee: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; readonly fee: u128; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiassetWithFee: boolean; readonly asTransferMultiassetWithFee: { - readonly asset: XcmVersionedMultiAsset; - readonly fee: XcmVersionedMultiAsset; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly asset: StagingXcmVersionedMultiAsset; + readonly fee: StagingXcmVersionedMultiAsset; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMulticurrencies: boolean; readonly asTransferMulticurrencies: { - readonly currencies: Vec>; + readonly currencies: Vec>; readonly feeItem: u32; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiassets: boolean; readonly asTransferMultiassets: { - readonly assets: XcmVersionedMultiAssets; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeItem: u32; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets'; } @@ -1091,9 +1140,9 @@ export interface OrmlXtokensModuleEvent extends Enum { readonly isTransferredMultiAssets: boolean; readonly asTransferredMultiAssets: { readonly sender: AccountId32; - readonly assets: XcmV3MultiassetMultiAssets; - readonly fee: XcmV3MultiAsset; - readonly dest: XcmV3MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly fee: StagingXcmV3MultiAsset; + readonly dest: StagingXcmV3MultiLocation; } & Struct; readonly type: 'TransferredMultiAssets'; } @@ -1446,6 +1495,12 @@ export interface PalletCollatorSelectionEvent extends Enum { readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved'; } +/** @name PalletCollatorSelectionHoldReason */ +export interface PalletCollatorSelectionHoldReason extends Enum { + readonly isLicenseBond: boolean; + readonly type: 'LicenseBond'; +} + /** @name PalletCollectiveCall */ export interface PalletCollectiveCall extends Enum { readonly isSetMembers: boolean; @@ -1497,7 +1552,8 @@ export interface PalletCollectiveError extends Enum { readonly isTooManyProposals: boolean; readonly isWrongProposalWeight: boolean; readonly isWrongProposalLength: boolean; - readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength'; + readonly isPrimeAccountNotMember: boolean; + readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength' | 'PrimeAccountNotMember'; } /** @name PalletCollectiveEvent */ @@ -2236,8 +2292,8 @@ export interface PalletEvmMigrationEvent extends Enum { readonly type: 'TestEvent'; } -/** @name PalletForeignAssetsAssetIds */ -export interface PalletForeignAssetsAssetIds extends Enum { +/** @name PalletForeignAssetsAssetId */ +export interface PalletForeignAssetsAssetId extends Enum { readonly isForeignAssetId: boolean; readonly asForeignAssetId: u32; readonly isNativeAssetId: boolean; @@ -2258,13 +2314,13 @@ export interface PalletForeignAssetsModuleCall extends Enum { readonly isRegisterForeignAsset: boolean; readonly asRegisterForeignAsset: { readonly owner: AccountId32; - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isUpdateForeignAsset: boolean; readonly asUpdateForeignAsset: { readonly foreignAssetId: u32; - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset'; @@ -2284,23 +2340,23 @@ export interface PalletForeignAssetsModuleEvent extends Enum { readonly isForeignAssetRegistered: boolean; readonly asForeignAssetRegistered: { readonly assetId: u32; - readonly assetAddress: XcmV3MultiLocation; + readonly assetAddress: StagingXcmV3MultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isForeignAssetUpdated: boolean; readonly asForeignAssetUpdated: { readonly assetId: u32; - readonly assetAddress: XcmV3MultiLocation; + readonly assetAddress: StagingXcmV3MultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isAssetRegistered: boolean; readonly asAssetRegistered: { - readonly assetId: PalletForeignAssetsAssetIds; + readonly assetId: PalletForeignAssetsAssetId; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isAssetUpdated: boolean; readonly asAssetUpdated: { - readonly assetId: PalletForeignAssetsAssetIds; + readonly assetId: PalletForeignAssetsAssetId; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated'; @@ -2581,12 +2637,7 @@ export interface PalletInflationCall extends Enum { export interface PalletMaintenanceCall extends Enum { readonly isEnable: boolean; readonly isDisable: boolean; - readonly isExecutePreimage: boolean; - readonly asExecutePreimage: { - readonly hash_: H256; - readonly weightBound: SpWeightsWeightV2Weight; - } & Struct; - readonly type: 'Enable' | 'Disable' | 'ExecutePreimage'; + readonly type: 'Enable' | 'Disable'; } /** @name PalletMaintenanceError */ @@ -3700,36 +3751,95 @@ export interface PalletUniqueError extends Enum { readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection'; } +/** @name PalletUtilityCall */ +export interface PalletUtilityCall extends Enum { + readonly isBatch: boolean; + readonly asBatch: { + readonly calls: Vec; + } & Struct; + readonly isAsDerivative: boolean; + readonly asAsDerivative: { + readonly index: u16; + readonly call: Call; + } & Struct; + readonly isBatchAll: boolean; + readonly asBatchAll: { + readonly calls: Vec; + } & Struct; + readonly isDispatchAs: boolean; + readonly asDispatchAs: { + readonly asOrigin: OpalRuntimeOriginCaller; + readonly call: Call; + } & Struct; + readonly isForceBatch: boolean; + readonly asForceBatch: { + readonly calls: Vec; + } & Struct; + readonly isWithWeight: boolean; + readonly asWithWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; + } & Struct; + readonly type: 'Batch' | 'AsDerivative' | 'BatchAll' | 'DispatchAs' | 'ForceBatch' | 'WithWeight'; +} + +/** @name PalletUtilityError */ +export interface PalletUtilityError extends Enum { + readonly isTooManyCalls: boolean; + readonly type: 'TooManyCalls'; +} + +/** @name PalletUtilityEvent */ +export interface PalletUtilityEvent extends Enum { + readonly isBatchInterrupted: boolean; + readonly asBatchInterrupted: { + readonly index: u32; + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isBatchCompleted: boolean; + readonly isBatchCompletedWithErrors: boolean; + readonly isItemCompleted: boolean; + readonly isItemFailed: boolean; + readonly asItemFailed: { + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isDispatchedAs: boolean; + readonly asDispatchedAs: { + readonly result: Result; + } & Struct; + readonly type: 'BatchInterrupted' | 'BatchCompleted' | 'BatchCompletedWithErrors' | 'ItemCompleted' | 'ItemFailed' | 'DispatchedAs'; +} + /** @name PalletXcmCall */ export interface PalletXcmCall extends Enum { readonly isSend: boolean; readonly asSend: { - readonly dest: XcmVersionedMultiLocation; - readonly message: XcmVersionedXcm; + readonly dest: StagingXcmVersionedMultiLocation; + readonly message: StagingXcmVersionedXcm; } & Struct; readonly isTeleportAssets: boolean; readonly asTeleportAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; } & Struct; readonly isReserveTransferAssets: boolean; readonly asReserveTransferAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; } & Struct; readonly isExecute: boolean; readonly asExecute: { - readonly message: XcmVersionedXcm; + readonly message: StagingXcmVersionedXcm; readonly maxWeight: SpWeightsWeightV2Weight; } & Struct; readonly isForceXcmVersion: boolean; readonly asForceXcmVersion: { - readonly location: XcmV3MultiLocation; - readonly xcmVersion: u32; + readonly location: StagingXcmV3MultiLocation; + readonly version: u32; } & Struct; readonly isForceDefaultXcmVersion: boolean; readonly asForceDefaultXcmVersion: { @@ -3737,27 +3847,27 @@ export interface PalletXcmCall extends Enum { } & Struct; readonly isForceSubscribeVersionNotify: boolean; readonly asForceSubscribeVersionNotify: { - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; } & Struct; readonly isForceUnsubscribeVersionNotify: boolean; readonly asForceUnsubscribeVersionNotify: { - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; } & Struct; readonly isLimitedReserveTransferAssets: boolean; readonly asLimitedReserveTransferAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; - readonly weightLimit: XcmV3WeightLimit; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isLimitedTeleportAssets: boolean; readonly asLimitedTeleportAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; - readonly weightLimit: XcmV3WeightLimit; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isForceSuspension: boolean; readonly asForceSuspension: { @@ -3794,60 +3904,146 @@ export interface PalletXcmError extends Enum { /** @name PalletXcmEvent */ export interface PalletXcmEvent extends Enum { readonly isAttempted: boolean; - readonly asAttempted: XcmV3TraitsOutcome; + readonly asAttempted: { + readonly outcome: StagingXcmV3TraitsOutcome; + } & Struct; readonly isSent: boolean; - readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>; + readonly asSent: { + readonly origin: StagingXcmV3MultiLocation; + readonly destination: StagingXcmV3MultiLocation; + readonly message: StagingXcmV3Xcm; + readonly messageId: U8aFixed; + } & Struct; readonly isUnexpectedResponse: boolean; - readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>; + readonly asUnexpectedResponse: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isResponseReady: boolean; - readonly asResponseReady: ITuple<[u64, XcmV3Response]>; + readonly asResponseReady: { + readonly queryId: u64; + readonly response: StagingXcmV3Response; + } & Struct; readonly isNotified: boolean; - readonly asNotified: ITuple<[u64, u8, u8]>; + readonly asNotified: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isNotifyOverweight: boolean; - readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>; + readonly asNotifyOverweight: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + readonly actualWeight: SpWeightsWeightV2Weight; + readonly maxBudgetedWeight: SpWeightsWeightV2Weight; + } & Struct; readonly isNotifyDispatchError: boolean; - readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>; + readonly asNotifyDispatchError: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isNotifyDecodeFailed: boolean; - readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>; + readonly asNotifyDecodeFailed: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isInvalidResponder: boolean; - readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option]>; + readonly asInvalidResponder: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly expectedLocation: Option; + } & Struct; readonly isInvalidResponderVersion: boolean; - readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly asInvalidResponderVersion: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isResponseTaken: boolean; - readonly asResponseTaken: u64; + readonly asResponseTaken: { + readonly queryId: u64; + } & Struct; readonly isAssetsTrapped: boolean; - readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly asAssetsTrapped: { + readonly hash_: H256; + readonly origin: StagingXcmV3MultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; + } & Struct; readonly isVersionChangeNotified: boolean; - readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>; + readonly asVersionChangeNotified: { + readonly destination: StagingXcmV3MultiLocation; + readonly result: u32; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isSupportedVersionChanged: boolean; - readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>; + readonly asSupportedVersionChanged: { + readonly location: StagingXcmV3MultiLocation; + readonly version: u32; + } & Struct; readonly isNotifyTargetSendFail: boolean; - readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>; + readonly asNotifyTargetSendFail: { + readonly location: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly error: StagingXcmV3TraitsError; + } & Struct; readonly isNotifyTargetMigrationFail: boolean; - readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>; + readonly asNotifyTargetMigrationFail: { + readonly location: StagingXcmVersionedMultiLocation; + readonly queryId: u64; + } & Struct; readonly isInvalidQuerierVersion: boolean; - readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly asInvalidQuerierVersion: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isInvalidQuerier: boolean; - readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option]>; + readonly asInvalidQuerier: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly expectedQuerier: StagingXcmV3MultiLocation; + readonly maybeActualQuerier: Option; + } & Struct; readonly isVersionNotifyStarted: boolean; - readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyStarted: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isVersionNotifyRequested: boolean; - readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyRequested: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isVersionNotifyUnrequested: boolean; - readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyUnrequested: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isFeesPaid: boolean; - readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asFeesPaid: { + readonly paying: StagingXcmV3MultiLocation; + readonly fees: StagingXcmV3MultiassetMultiAssets; + } & Struct; readonly isAssetsClaimed: boolean; - readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly asAssetsClaimed: { + readonly hash_: H256; + readonly origin: StagingXcmV3MultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; + } & Struct; readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed'; } /** @name PalletXcmOrigin */ export interface PalletXcmOrigin extends Enum { readonly isXcm: boolean; - readonly asXcm: XcmV3MultiLocation; + readonly asXcm: StagingXcmV3MultiLocation; readonly isResponse: boolean; - readonly asResponse: XcmV3MultiLocation; + readonly asResponse: StagingXcmV3MultiLocation; readonly type: 'Xcm' | 'Response'; } @@ -3855,19 +4051,19 @@ export interface PalletXcmOrigin extends Enum { export interface PalletXcmQueryStatus extends Enum { readonly isPending: boolean; readonly asPending: { - readonly responder: XcmVersionedMultiLocation; - readonly maybeMatchQuerier: Option; + readonly responder: StagingXcmVersionedMultiLocation; + readonly maybeMatchQuerier: Option; readonly maybeNotify: Option>; readonly timeout: u32; } & Struct; readonly isVersionNotifier: boolean; readonly asVersionNotifier: { - readonly origin: XcmVersionedMultiLocation; + readonly origin: StagingXcmVersionedMultiLocation; readonly isActive: bool; } & Struct; readonly isReady: boolean; readonly asReady: { - readonly response: XcmVersionedResponse; + readonly response: StagingXcmVersionedResponse; readonly at: u32; } & Struct; readonly type: 'Pending' | 'VersionNotifier' | 'Ready'; @@ -3876,8 +4072,8 @@ export interface PalletXcmQueryStatus extends Enum { /** @name PalletXcmRemoteLockedFungibleRecord */ export interface PalletXcmRemoteLockedFungibleRecord extends Struct { readonly amount: u128; - readonly owner: XcmVersionedMultiLocation; - readonly locker: XcmVersionedMultiLocation; + readonly owner: StagingXcmVersionedMultiLocation; + readonly locker: StagingXcmVersionedMultiLocation; readonly consumers: Vec>; } @@ -3915,16 +4111,16 @@ export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { readonly data: Bytes; } -/** @name PolkadotParachainPrimitivesXcmpMessageFormat */ -export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum { +/** @name PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat */ +export interface PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat extends Enum { readonly isConcatenatedVersionedXcm: boolean; readonly isConcatenatedEncodedBlob: boolean; readonly isSignals: boolean; readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; } -/** @name PolkadotPrimitivesV4AbridgedHostConfiguration */ -export interface PolkadotPrimitivesV4AbridgedHostConfiguration extends Struct { +/** @name PolkadotPrimitivesV5AbridgedHostConfiguration */ +export interface PolkadotPrimitivesV5AbridgedHostConfiguration extends Struct { readonly maxCodeSize: u32; readonly maxHeadDataSize: u32; readonly maxUpwardQueueCount: u32; @@ -3934,10 +4130,11 @@ export interface PolkadotPrimitivesV4AbridgedHostConfiguration extends Struct { readonly hrmpMaxMessageNumPerCandidate: u32; readonly validationUpgradeCooldown: u32; readonly validationUpgradeDelay: u32; + readonly asyncBackingParams: PolkadotPrimitivesVstagingAsyncBackingParams; } -/** @name PolkadotPrimitivesV4AbridgedHrmpChannel */ -export interface PolkadotPrimitivesV4AbridgedHrmpChannel extends Struct { +/** @name PolkadotPrimitivesV5AbridgedHrmpChannel */ +export interface PolkadotPrimitivesV5AbridgedHrmpChannel extends Struct { readonly maxCapacity: u32; readonly maxTotalSize: u32; readonly maxMessageSize: u32; @@ -3946,20 +4143,33 @@ export interface PolkadotPrimitivesV4AbridgedHrmpChannel extends Struct { readonly mqcHead: Option; } -/** @name PolkadotPrimitivesV4PersistedValidationData */ -export interface PolkadotPrimitivesV4PersistedValidationData extends Struct { +/** @name PolkadotPrimitivesV5PersistedValidationData */ +export interface PolkadotPrimitivesV5PersistedValidationData extends Struct { readonly parentHead: Bytes; readonly relayParentNumber: u32; readonly relayParentStorageRoot: H256; readonly maxPovSize: u32; } -/** @name PolkadotPrimitivesV4UpgradeRestriction */ -export interface PolkadotPrimitivesV4UpgradeRestriction extends Enum { +/** @name PolkadotPrimitivesV5UpgradeGoAhead */ +export interface PolkadotPrimitivesV5UpgradeGoAhead extends Enum { + readonly isAbort: boolean; + readonly isGoAhead: boolean; + readonly type: 'Abort' | 'GoAhead'; +} + +/** @name PolkadotPrimitivesV5UpgradeRestriction */ +export interface PolkadotPrimitivesV5UpgradeRestriction extends Enum { readonly isPresent: boolean; readonly type: 'Present'; } +/** @name PolkadotPrimitivesVstagingAsyncBackingParams */ +export interface PolkadotPrimitivesVstagingAsyncBackingParams extends Struct { + readonly maxCandidateDepth: u32; + readonly allowedAncestryLen: u32; +} + /** @name SpArithmeticArithmeticError */ export interface SpArithmeticArithmeticError extends Enum { readonly isUnderflow: boolean; @@ -4134,341 +4344,413 @@ export interface SpWeightsWeightV2Weight extends Struct { readonly proofSize: Compact; } -/** @name UpDataStructsAccessMode */ -export interface UpDataStructsAccessMode extends Enum { - readonly isNormal: boolean; - readonly isAllowList: boolean; - readonly type: 'Normal' | 'AllowList'; -} - -/** @name UpDataStructsCollection */ -export interface UpDataStructsCollection extends Struct { - readonly owner: AccountId32; - readonly mode: UpDataStructsCollectionMode; - readonly name: Vec; - readonly description: Vec; - readonly tokenPrefix: Bytes; - readonly sponsorship: UpDataStructsSponsorshipStateAccountId32; - readonly limits: UpDataStructsCollectionLimits; - readonly permissions: UpDataStructsCollectionPermissions; - readonly flags: U8aFixed; +/** @name StagingXcmDoubleEncoded */ +export interface StagingXcmDoubleEncoded extends Struct { + readonly encoded: Bytes; } -/** @name UpDataStructsCollectionLimits */ -export interface UpDataStructsCollectionLimits extends Struct { - readonly accountTokenOwnershipLimit: Option; - readonly sponsoredDataSize: Option; - readonly sponsoredDataRateLimit: Option; - readonly tokenLimit: Option; - readonly sponsorTransferTimeout: Option; - readonly sponsorApproveTimeout: Option; - readonly ownerCanTransfer: Option; - readonly ownerCanDestroy: Option; - readonly transfersEnabled: Option; +/** @name StagingXcmV2BodyId */ +export interface StagingXcmV2BodyId extends Enum { + readonly isUnit: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; } -/** @name UpDataStructsCollectionMode */ -export interface UpDataStructsCollectionMode extends Enum { - readonly isNft: boolean; - readonly isFungible: boolean; - readonly asFungible: u8; - readonly isReFungible: boolean; - readonly type: 'Nft' | 'Fungible' | 'ReFungible'; +/** @name StagingXcmV2BodyPart */ +export interface StagingXcmV2BodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; } -/** @name UpDataStructsCollectionPermissions */ -export interface UpDataStructsCollectionPermissions extends Struct { - readonly access: Option; - readonly mintMode: Option; - readonly nesting: Option; +/** @name StagingXcmV2Instruction */ +export interface StagingXcmV2Instruction extends Enum { + readonly isWithdrawAsset: boolean; + readonly asWithdrawAsset: StagingXcmV2MultiassetMultiAssets; + readonly isReserveAssetDeposited: boolean; + readonly asReserveAssetDeposited: StagingXcmV2MultiassetMultiAssets; + readonly isReceiveTeleportedAsset: boolean; + readonly asReceiveTeleportedAsset: StagingXcmV2MultiassetMultiAssets; + readonly isQueryResponse: boolean; + readonly asQueryResponse: { + readonly queryId: Compact; + readonly response: StagingXcmV2Response; + readonly maxWeight: Compact; + } & Struct; + readonly isTransferAsset: boolean; + readonly asTransferAsset: { + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly beneficiary: StagingXcmV2MultiLocation; + } & Struct; + readonly isTransferReserveAsset: boolean; + readonly asTransferReserveAsset: { + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; + } & Struct; + readonly isTransact: boolean; + readonly asTransact: { + readonly originType: StagingXcmV2OriginKind; + readonly requireWeightAtMost: Compact; + readonly call: StagingXcmDoubleEncoded; + } & Struct; + readonly isHrmpNewChannelOpenRequest: boolean; + readonly asHrmpNewChannelOpenRequest: { + readonly sender: Compact; + readonly maxMessageSize: Compact; + readonly maxCapacity: Compact; + } & Struct; + readonly isHrmpChannelAccepted: boolean; + readonly asHrmpChannelAccepted: { + readonly recipient: Compact; + } & Struct; + readonly isHrmpChannelClosing: boolean; + readonly asHrmpChannelClosing: { + readonly initiator: Compact; + readonly sender: Compact; + readonly recipient: Compact; + } & Struct; + readonly isClearOrigin: boolean; + readonly isDescendOrigin: boolean; + readonly asDescendOrigin: StagingXcmV2MultilocationJunctions; + readonly isReportError: boolean; + readonly asReportError: { + readonly queryId: Compact; + readonly dest: StagingXcmV2MultiLocation; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isDepositAsset: boolean; + readonly asDepositAsset: { + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly beneficiary: StagingXcmV2MultiLocation; + } & Struct; + readonly isDepositReserveAsset: boolean; + readonly asDepositReserveAsset: { + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly maxAssets: Compact; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; + } & Struct; + readonly isExchangeAsset: boolean; + readonly asExchangeAsset: { + readonly give: StagingXcmV2MultiassetMultiAssetFilter; + readonly receive: StagingXcmV2MultiassetMultiAssets; + } & Struct; + readonly isInitiateReserveWithdraw: boolean; + readonly asInitiateReserveWithdraw: { + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly reserve: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; + } & Struct; + readonly isInitiateTeleport: boolean; + readonly asInitiateTeleport: { + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; + } & Struct; + readonly isQueryHolding: boolean; + readonly asQueryHolding: { + readonly queryId: Compact; + readonly dest: StagingXcmV2MultiLocation; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isBuyExecution: boolean; + readonly asBuyExecution: { + readonly fees: StagingXcmV2MultiAsset; + readonly weightLimit: StagingXcmV2WeightLimit; + } & Struct; + readonly isRefundSurplus: boolean; + readonly isSetErrorHandler: boolean; + readonly asSetErrorHandler: StagingXcmV2Xcm; + readonly isSetAppendix: boolean; + readonly asSetAppendix: StagingXcmV2Xcm; + readonly isClearError: boolean; + readonly isClaimAsset: boolean; + readonly asClaimAsset: { + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly ticket: StagingXcmV2MultiLocation; + } & Struct; + readonly isTrap: boolean; + readonly asTrap: Compact; + readonly isSubscribeVersion: boolean; + readonly asSubscribeVersion: { + readonly queryId: Compact; + readonly maxResponseWeight: Compact; + } & Struct; + readonly isUnsubscribeVersion: boolean; + readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion'; } -/** @name UpDataStructsCollectionStats */ -export interface UpDataStructsCollectionStats extends Struct { - readonly created: u32; - readonly destroyed: u32; - readonly alive: u32; +/** @name StagingXcmV2Junction */ +export interface StagingXcmV2Junction extends Enum { + readonly isParachain: boolean; + readonly asParachain: Compact; + readonly isAccountId32: boolean; + readonly asAccountId32: { + readonly network: StagingXcmV2NetworkId; + readonly id: U8aFixed; + } & Struct; + readonly isAccountIndex64: boolean; + readonly asAccountIndex64: { + readonly network: StagingXcmV2NetworkId; + readonly index: Compact; + } & Struct; + readonly isAccountKey20: boolean; + readonly asAccountKey20: { + readonly network: StagingXcmV2NetworkId; + readonly key: U8aFixed; + } & Struct; + readonly isPalletInstance: boolean; + readonly asPalletInstance: u8; + readonly isGeneralIndex: boolean; + readonly asGeneralIndex: Compact; + readonly isGeneralKey: boolean; + readonly asGeneralKey: Bytes; + readonly isOnlyChild: boolean; + readonly isPlurality: boolean; + readonly asPlurality: { + readonly id: StagingXcmV2BodyId; + readonly part: StagingXcmV2BodyPart; + } & Struct; + readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality'; } -/** @name UpDataStructsCreateCollectionData */ -export interface UpDataStructsCreateCollectionData extends Struct { - readonly mode: UpDataStructsCollectionMode; - readonly access: Option; - readonly name: Vec; - readonly description: Vec; - readonly tokenPrefix: Bytes; - readonly limits: Option; - readonly permissions: Option; - readonly tokenPropertyPermissions: Vec; - readonly properties: Vec; - readonly adminList: Vec; - readonly pendingSponsor: Option; - readonly flags: U8aFixed; +/** @name StagingXcmV2MultiAsset */ +export interface StagingXcmV2MultiAsset extends Struct { + readonly id: StagingXcmV2MultiassetAssetId; + readonly fun: StagingXcmV2MultiassetFungibility; } -/** @name UpDataStructsCreateFungibleData */ -export interface UpDataStructsCreateFungibleData extends Struct { - readonly value: u128; +/** @name StagingXcmV2MultiassetAssetId */ +export interface StagingXcmV2MultiassetAssetId extends Enum { + readonly isConcrete: boolean; + readonly asConcrete: StagingXcmV2MultiLocation; + readonly isAbstract: boolean; + readonly asAbstract: Bytes; + readonly type: 'Concrete' | 'Abstract'; } -/** @name UpDataStructsCreateItemData */ -export interface UpDataStructsCreateItemData extends Enum { - readonly isNft: boolean; - readonly asNft: UpDataStructsCreateNftData; - readonly isFungible: boolean; - readonly asFungible: UpDataStructsCreateFungibleData; - readonly isReFungible: boolean; - readonly asReFungible: UpDataStructsCreateReFungibleData; - readonly type: 'Nft' | 'Fungible' | 'ReFungible'; +/** @name StagingXcmV2MultiassetAssetInstance */ +export interface StagingXcmV2MultiassetAssetInstance extends Enum { + readonly isUndefined: boolean; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isArray4: boolean; + readonly asArray4: U8aFixed; + readonly isArray8: boolean; + readonly asArray8: U8aFixed; + readonly isArray16: boolean; + readonly asArray16: U8aFixed; + readonly isArray32: boolean; + readonly asArray32: U8aFixed; + readonly isBlob: boolean; + readonly asBlob: Bytes; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; } -/** @name UpDataStructsCreateItemExData */ -export interface UpDataStructsCreateItemExData extends Enum { - readonly isNft: boolean; - readonly asNft: Vec; +/** @name StagingXcmV2MultiassetFungibility */ +export interface StagingXcmV2MultiassetFungibility extends Enum { readonly isFungible: boolean; - readonly asFungible: BTreeMap; - readonly isRefungibleMultipleItems: boolean; - readonly asRefungibleMultipleItems: Vec; - readonly isRefungibleMultipleOwners: boolean; - readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners; - readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners'; -} - -/** @name UpDataStructsCreateNftData */ -export interface UpDataStructsCreateNftData extends Struct { - readonly properties: Vec; -} - -/** @name UpDataStructsCreateNftExData */ -export interface UpDataStructsCreateNftExData extends Struct { - readonly properties: Vec; - readonly owner: PalletEvmAccountBasicCrossAccountIdRepr; -} - -/** @name UpDataStructsCreateReFungibleData */ -export interface UpDataStructsCreateReFungibleData extends Struct { - readonly pieces: u128; - readonly properties: Vec; + readonly asFungible: Compact; + readonly isNonFungible: boolean; + readonly asNonFungible: StagingXcmV2MultiassetAssetInstance; + readonly type: 'Fungible' | 'NonFungible'; } -/** @name UpDataStructsCreateRefungibleExMultipleOwners */ -export interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct { - readonly users: BTreeMap; - readonly properties: Vec; +/** @name StagingXcmV2MultiassetMultiAssetFilter */ +export interface StagingXcmV2MultiassetMultiAssetFilter extends Enum { + readonly isDefinite: boolean; + readonly asDefinite: StagingXcmV2MultiassetMultiAssets; + readonly isWild: boolean; + readonly asWild: StagingXcmV2MultiassetWildMultiAsset; + readonly type: 'Definite' | 'Wild'; } -/** @name UpDataStructsCreateRefungibleExSingleOwner */ -export interface UpDataStructsCreateRefungibleExSingleOwner extends Struct { - readonly user: PalletEvmAccountBasicCrossAccountIdRepr; - readonly pieces: u128; - readonly properties: Vec; -} +/** @name StagingXcmV2MultiassetMultiAssets */ +export interface StagingXcmV2MultiassetMultiAssets extends Vec {} -/** @name UpDataStructsNestingPermissions */ -export interface UpDataStructsNestingPermissions extends Struct { - readonly tokenOwner: bool; - readonly collectionAdmin: bool; - readonly restricted: Option; +/** @name StagingXcmV2MultiassetWildFungibility */ +export interface StagingXcmV2MultiassetWildFungibility extends Enum { + readonly isFungible: boolean; + readonly isNonFungible: boolean; + readonly type: 'Fungible' | 'NonFungible'; } -/** @name UpDataStructsOwnerRestrictedSet */ -export interface UpDataStructsOwnerRestrictedSet extends BTreeSet {} - -/** @name UpDataStructsProperties */ -export interface UpDataStructsProperties extends Struct { - readonly map: UpDataStructsPropertiesMapBoundedVec; - readonly consumedSpace: u32; - readonly reserved: u32; +/** @name StagingXcmV2MultiassetWildMultiAsset */ +export interface StagingXcmV2MultiassetWildMultiAsset extends Enum { + readonly isAll: boolean; + readonly isAllOf: boolean; + readonly asAllOf: { + readonly id: StagingXcmV2MultiassetAssetId; + readonly fun: StagingXcmV2MultiassetWildFungibility; + } & Struct; + readonly type: 'All' | 'AllOf'; } -/** @name UpDataStructsPropertiesMapBoundedVec */ -export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap {} - -/** @name UpDataStructsPropertiesMapPropertyPermission */ -export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap {} - -/** @name UpDataStructsProperty */ -export interface UpDataStructsProperty extends Struct { - readonly key: Bytes; - readonly value: Bytes; +/** @name StagingXcmV2MultiLocation */ +export interface StagingXcmV2MultiLocation extends Struct { + readonly parents: u8; + readonly interior: StagingXcmV2MultilocationJunctions; } -/** @name UpDataStructsPropertyKeyPermission */ -export interface UpDataStructsPropertyKeyPermission extends Struct { - readonly key: Bytes; - readonly permission: UpDataStructsPropertyPermission; +/** @name StagingXcmV2MultilocationJunctions */ +export interface StagingXcmV2MultilocationJunctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: StagingXcmV2Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX7: boolean; + readonly asX7: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly isX8: boolean; + readonly asX8: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; } -/** @name UpDataStructsPropertyPermission */ -export interface UpDataStructsPropertyPermission extends Struct { - readonly mutable: bool; - readonly collectionAdmin: bool; - readonly tokenOwner: bool; +/** @name StagingXcmV2NetworkId */ +export interface StagingXcmV2NetworkId extends Enum { + readonly isAny: boolean; + readonly isNamed: boolean; + readonly asNamed: Bytes; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; } -/** @name UpDataStructsPropertyScope */ -export interface UpDataStructsPropertyScope extends Enum { - readonly isNone: boolean; - readonly isRmrk: boolean; - readonly type: 'None' | 'Rmrk'; +/** @name StagingXcmV2OriginKind */ +export interface StagingXcmV2OriginKind extends Enum { + readonly isNative: boolean; + readonly isSovereignAccount: boolean; + readonly isSuperuser: boolean; + readonly isXcm: boolean; + readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; } -/** @name UpDataStructsRpcCollection */ -export interface UpDataStructsRpcCollection extends Struct { - readonly owner: AccountId32; - readonly mode: UpDataStructsCollectionMode; - readonly name: Vec; - readonly description: Vec; - readonly tokenPrefix: Bytes; - readonly sponsorship: UpDataStructsSponsorshipStateAccountId32; - readonly limits: UpDataStructsCollectionLimits; - readonly permissions: UpDataStructsCollectionPermissions; - readonly tokenPropertyPermissions: Vec; - readonly properties: Vec; - readonly readOnly: bool; - readonly flags: UpDataStructsRpcCollectionFlags; +/** @name StagingXcmV2Response */ +export interface StagingXcmV2Response extends Enum { + readonly isNull: boolean; + readonly isAssets: boolean; + readonly asAssets: StagingXcmV2MultiassetMultiAssets; + readonly isExecutionResult: boolean; + readonly asExecutionResult: Option>; + readonly isVersion: boolean; + readonly asVersion: u32; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; } -/** @name UpDataStructsRpcCollectionFlags */ -export interface UpDataStructsRpcCollectionFlags extends Struct { - readonly foreign: bool; - readonly erc721metadata: bool; +/** @name StagingXcmV2TraitsError */ +export interface StagingXcmV2TraitsError extends Enum { + readonly isOverflow: boolean; + readonly isUnimplemented: boolean; + readonly isUntrustedReserveLocation: boolean; + readonly isUntrustedTeleportLocation: boolean; + readonly isMultiLocationFull: boolean; + readonly isMultiLocationNotInvertible: boolean; + readonly isBadOrigin: boolean; + readonly isInvalidLocation: boolean; + readonly isAssetNotFound: boolean; + readonly isFailedToTransactAsset: boolean; + readonly isNotWithdrawable: boolean; + readonly isLocationCannotHold: boolean; + readonly isExceedsMaxMessageSize: boolean; + readonly isDestinationUnsupported: boolean; + readonly isTransport: boolean; + readonly isUnroutable: boolean; + readonly isUnknownClaim: boolean; + readonly isFailedToDecode: boolean; + readonly isMaxWeightInvalid: boolean; + readonly isNotHoldingFees: boolean; + readonly isTooExpensive: boolean; + readonly isTrap: boolean; + readonly asTrap: u64; + readonly isUnhandledXcmVersion: boolean; + readonly isWeightLimitReached: boolean; + readonly asWeightLimitReached: u64; + readonly isBarrier: boolean; + readonly isWeightNotComputable: boolean; + readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable'; } -/** @name UpDataStructsSponsoringRateLimit */ -export interface UpDataStructsSponsoringRateLimit extends Enum { - readonly isSponsoringDisabled: boolean; - readonly isBlocks: boolean; - readonly asBlocks: u32; - readonly type: 'SponsoringDisabled' | 'Blocks'; +/** @name StagingXcmV2WeightLimit */ +export interface StagingXcmV2WeightLimit extends Enum { + readonly isUnlimited: boolean; + readonly isLimited: boolean; + readonly asLimited: Compact; + readonly type: 'Unlimited' | 'Limited'; } -/** @name UpDataStructsSponsorshipStateAccountId32 */ -export interface UpDataStructsSponsorshipStateAccountId32 extends Enum { - readonly isDisabled: boolean; - readonly isUnconfirmed: boolean; - readonly asUnconfirmed: AccountId32; - readonly isConfirmed: boolean; - readonly asConfirmed: AccountId32; - readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; -} +/** @name StagingXcmV2Xcm */ +export interface StagingXcmV2Xcm extends Vec {} -/** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr */ -export interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum { - readonly isDisabled: boolean; - readonly isUnconfirmed: boolean; - readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr; - readonly isConfirmed: boolean; - readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr; - readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; -} - -/** @name UpDataStructsTokenChild */ -export interface UpDataStructsTokenChild extends Struct { - readonly token: u32; - readonly collection: u32; -} - -/** @name UpDataStructsTokenData */ -export interface UpDataStructsTokenData extends Struct { - readonly properties: Vec; - readonly owner: Option; - readonly pieces: u128; -} - -/** @name UpPovEstimateRpcPovInfo */ -export interface UpPovEstimateRpcPovInfo extends Struct { - readonly proofSize: u64; - readonly compactProofSize: u64; - readonly compressedProofSize: u64; - readonly results: Vec, SpRuntimeTransactionValidityTransactionValidityError>>; - readonly keyValues: Vec; -} - -/** @name UpPovEstimateRpcTrieKeyValue */ -export interface UpPovEstimateRpcTrieKeyValue extends Struct { - readonly key: Bytes; - readonly value: Bytes; -} - -/** @name XcmDoubleEncoded */ -export interface XcmDoubleEncoded extends Struct { - readonly encoded: Bytes; -} - -/** @name XcmV2BodyId */ -export interface XcmV2BodyId extends Enum { - readonly isUnit: boolean; - readonly isNamed: boolean; - readonly asNamed: Bytes; - readonly isIndex: boolean; - readonly asIndex: Compact; - readonly isExecutive: boolean; - readonly isTechnical: boolean; - readonly isLegislative: boolean; - readonly isJudicial: boolean; - readonly isDefense: boolean; - readonly isAdministration: boolean; - readonly isTreasury: boolean; - readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; -} - -/** @name XcmV2BodyPart */ -export interface XcmV2BodyPart extends Enum { - readonly isVoice: boolean; - readonly isMembers: boolean; - readonly asMembers: { - readonly count: Compact; - } & Struct; - readonly isFraction: boolean; - readonly asFraction: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly isAtLeastProportion: boolean; - readonly asAtLeastProportion: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly isMoreThanProportion: boolean; - readonly asMoreThanProportion: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; -} - -/** @name XcmV2Instruction */ -export interface XcmV2Instruction extends Enum { +/** @name StagingXcmV3Instruction */ +export interface StagingXcmV3Instruction extends Enum { readonly isWithdrawAsset: boolean; - readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; + readonly asWithdrawAsset: StagingXcmV3MultiassetMultiAssets; readonly isReserveAssetDeposited: boolean; - readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets; + readonly asReserveAssetDeposited: StagingXcmV3MultiassetMultiAssets; readonly isReceiveTeleportedAsset: boolean; - readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets; + readonly asReceiveTeleportedAsset: StagingXcmV3MultiassetMultiAssets; readonly isQueryResponse: boolean; readonly asQueryResponse: { readonly queryId: Compact; - readonly response: XcmV2Response; - readonly maxWeight: Compact; + readonly response: StagingXcmV3Response; + readonly maxWeight: SpWeightsWeightV2Weight; + readonly querier: Option; } & Struct; readonly isTransferAsset: boolean; readonly asTransferAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly beneficiary: XcmV2MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly beneficiary: StagingXcmV3MultiLocation; } & Struct; readonly isTransferReserveAsset: boolean; readonly asTransferReserveAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isTransact: boolean; readonly asTransact: { - readonly originType: XcmV2OriginKind; - readonly requireWeightAtMost: Compact; - readonly call: XcmDoubleEncoded; + readonly originKind: StagingXcmV2OriginKind; + readonly requireWeightAtMost: SpWeightsWeightV2Weight; + readonly call: StagingXcmDoubleEncoded; } & Struct; readonly isHrmpNewChannelOpenRequest: boolean; readonly asHrmpNewChannelOpenRequest: { @@ -4488,94 +4770,155 @@ export interface XcmV2Instruction extends Enum { } & Struct; readonly isClearOrigin: boolean; readonly isDescendOrigin: boolean; - readonly asDescendOrigin: XcmV2MultilocationJunctions; + readonly asDescendOrigin: StagingXcmV3Junctions; readonly isReportError: boolean; - readonly asReportError: { - readonly queryId: Compact; - readonly dest: XcmV2MultiLocation; - readonly maxResponseWeight: Compact; - } & Struct; + readonly asReportError: StagingXcmV3QueryResponseInfo; readonly isDepositAsset: boolean; readonly asDepositAsset: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly maxAssets: Compact; - readonly beneficiary: XcmV2MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly beneficiary: StagingXcmV3MultiLocation; } & Struct; readonly isDepositReserveAsset: boolean; readonly asDepositReserveAsset: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly maxAssets: Compact; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isExchangeAsset: boolean; readonly asExchangeAsset: { - readonly give: XcmV2MultiassetMultiAssetFilter; - readonly receive: XcmV2MultiassetMultiAssets; + readonly give: StagingXcmV3MultiassetMultiAssetFilter; + readonly want: StagingXcmV3MultiassetMultiAssets; + readonly maximal: bool; } & Struct; readonly isInitiateReserveWithdraw: boolean; readonly asInitiateReserveWithdraw: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly reserve: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly reserve: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isInitiateTeleport: boolean; readonly asInitiateTeleport: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; - readonly isQueryHolding: boolean; - readonly asQueryHolding: { - readonly queryId: Compact; - readonly dest: XcmV2MultiLocation; - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly maxResponseWeight: Compact; + readonly isReportHolding: boolean; + readonly asReportHolding: { + readonly responseInfo: StagingXcmV3QueryResponseInfo; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; } & Struct; readonly isBuyExecution: boolean; readonly asBuyExecution: { - readonly fees: XcmV2MultiAsset; - readonly weightLimit: XcmV2WeightLimit; + readonly fees: StagingXcmV3MultiAsset; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isRefundSurplus: boolean; readonly isSetErrorHandler: boolean; - readonly asSetErrorHandler: XcmV2Xcm; + readonly asSetErrorHandler: StagingXcmV3Xcm; readonly isSetAppendix: boolean; - readonly asSetAppendix: XcmV2Xcm; + readonly asSetAppendix: StagingXcmV3Xcm; readonly isClearError: boolean; readonly isClaimAsset: boolean; readonly asClaimAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly ticket: XcmV2MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly ticket: StagingXcmV3MultiLocation; } & Struct; readonly isTrap: boolean; readonly asTrap: Compact; readonly isSubscribeVersion: boolean; readonly asSubscribeVersion: { readonly queryId: Compact; - readonly maxResponseWeight: Compact; + readonly maxResponseWeight: SpWeightsWeightV2Weight; } & Struct; readonly isUnsubscribeVersion: boolean; - readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion'; + readonly isBurnAsset: boolean; + readonly asBurnAsset: StagingXcmV3MultiassetMultiAssets; + readonly isExpectAsset: boolean; + readonly asExpectAsset: StagingXcmV3MultiassetMultiAssets; + readonly isExpectOrigin: boolean; + readonly asExpectOrigin: Option; + readonly isExpectError: boolean; + readonly asExpectError: Option>; + readonly isExpectTransactStatus: boolean; + readonly asExpectTransactStatus: StagingXcmV3MaybeErrorCode; + readonly isQueryPallet: boolean; + readonly asQueryPallet: { + readonly moduleName: Bytes; + readonly responseInfo: StagingXcmV3QueryResponseInfo; + } & Struct; + readonly isExpectPallet: boolean; + readonly asExpectPallet: { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly crateMajor: Compact; + readonly minCrateMinor: Compact; + } & Struct; + readonly isReportTransactStatus: boolean; + readonly asReportTransactStatus: StagingXcmV3QueryResponseInfo; + readonly isClearTransactStatus: boolean; + readonly isUniversalOrigin: boolean; + readonly asUniversalOrigin: StagingXcmV3Junction; + readonly isExportMessage: boolean; + readonly asExportMessage: { + readonly network: StagingXcmV3JunctionNetworkId; + readonly destination: StagingXcmV3Junctions; + readonly xcm: StagingXcmV3Xcm; + } & Struct; + readonly isLockAsset: boolean; + readonly asLockAsset: { + readonly asset: StagingXcmV3MultiAsset; + readonly unlocker: StagingXcmV3MultiLocation; + } & Struct; + readonly isUnlockAsset: boolean; + readonly asUnlockAsset: { + readonly asset: StagingXcmV3MultiAsset; + readonly target: StagingXcmV3MultiLocation; + } & Struct; + readonly isNoteUnlockable: boolean; + readonly asNoteUnlockable: { + readonly asset: StagingXcmV3MultiAsset; + readonly owner: StagingXcmV3MultiLocation; + } & Struct; + readonly isRequestUnlock: boolean; + readonly asRequestUnlock: { + readonly asset: StagingXcmV3MultiAsset; + readonly locker: StagingXcmV3MultiLocation; + } & Struct; + readonly isSetFeesMode: boolean; + readonly asSetFeesMode: { + readonly jitWithdraw: bool; + } & Struct; + readonly isSetTopic: boolean; + readonly asSetTopic: U8aFixed; + readonly isClearTopic: boolean; + readonly isAliasOrigin: boolean; + readonly asAliasOrigin: StagingXcmV3MultiLocation; + readonly isUnpaidExecution: boolean; + readonly asUnpaidExecution: { + readonly weightLimit: StagingXcmV3WeightLimit; + readonly checkOrigin: Option; + } & Struct; + readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution'; } -/** @name XcmV2Junction */ -export interface XcmV2Junction extends Enum { +/** @name StagingXcmV3Junction */ +export interface StagingXcmV3Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact; readonly isAccountId32: boolean; readonly asAccountId32: { - readonly network: XcmV2NetworkId; + readonly network: Option; readonly id: U8aFixed; } & Struct; readonly isAccountIndex64: boolean; readonly asAccountIndex64: { - readonly network: XcmV2NetworkId; + readonly network: Option; readonly index: Compact; } & Struct; readonly isAccountKey20: boolean; readonly asAccountKey20: { - readonly network: XcmV2NetworkId; + readonly network: Option; readonly key: U8aFixed; } & Struct; readonly isPalletInstance: boolean; @@ -4583,33 +4926,135 @@ export interface XcmV2Junction extends Enum { readonly isGeneralIndex: boolean; readonly asGeneralIndex: Compact; readonly isGeneralKey: boolean; - readonly asGeneralKey: Bytes; + readonly asGeneralKey: { + readonly length: u8; + readonly data: U8aFixed; + } & Struct; readonly isOnlyChild: boolean; readonly isPlurality: boolean; readonly asPlurality: { - readonly id: XcmV2BodyId; - readonly part: XcmV2BodyPart; + readonly id: StagingXcmV3JunctionBodyId; + readonly part: StagingXcmV3JunctionBodyPart; } & Struct; - readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality'; + readonly isGlobalConsensus: boolean; + readonly asGlobalConsensus: StagingXcmV3JunctionNetworkId; + readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus'; +} + +/** @name StagingXcmV3JunctionBodyId */ +export interface StagingXcmV3JunctionBodyId extends Enum { + readonly isUnit: boolean; + readonly isMoniker: boolean; + readonly asMoniker: U8aFixed; + readonly isIndex: boolean; + readonly asIndex: Compact; + readonly isExecutive: boolean; + readonly isTechnical: boolean; + readonly isLegislative: boolean; + readonly isJudicial: boolean; + readonly isDefense: boolean; + readonly isAdministration: boolean; + readonly isTreasury: boolean; + readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; +} + +/** @name StagingXcmV3JunctionBodyPart */ +export interface StagingXcmV3JunctionBodyPart extends Enum { + readonly isVoice: boolean; + readonly isMembers: boolean; + readonly asMembers: { + readonly count: Compact; + } & Struct; + readonly isFraction: boolean; + readonly asFraction: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isAtLeastProportion: boolean; + readonly asAtLeastProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly isMoreThanProportion: boolean; + readonly asMoreThanProportion: { + readonly nom: Compact; + readonly denom: Compact; + } & Struct; + readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; +} + +/** @name StagingXcmV3JunctionNetworkId */ +export interface StagingXcmV3JunctionNetworkId extends Enum { + readonly isByGenesis: boolean; + readonly asByGenesis: U8aFixed; + readonly isByFork: boolean; + readonly asByFork: { + readonly blockNumber: u64; + readonly blockHash: U8aFixed; + } & Struct; + readonly isPolkadot: boolean; + readonly isKusama: boolean; + readonly isWestend: boolean; + readonly isRococo: boolean; + readonly isWococo: boolean; + readonly isEthereum: boolean; + readonly asEthereum: { + readonly chainId: Compact; + } & Struct; + readonly isBitcoinCore: boolean; + readonly isBitcoinCash: boolean; + readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash'; +} + +/** @name StagingXcmV3Junctions */ +export interface StagingXcmV3Junctions extends Enum { + readonly isHere: boolean; + readonly isX1: boolean; + readonly asX1: StagingXcmV3Junction; + readonly isX2: boolean; + readonly asX2: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX3: boolean; + readonly asX3: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX4: boolean; + readonly asX4: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX5: boolean; + readonly asX5: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX6: boolean; + readonly asX6: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX7: boolean; + readonly asX7: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly isX8: boolean; + readonly asX8: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; + readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; +} + +/** @name StagingXcmV3MaybeErrorCode */ +export interface StagingXcmV3MaybeErrorCode extends Enum { + readonly isSuccess: boolean; + readonly isError: boolean; + readonly asError: Bytes; + readonly isTruncatedError: boolean; + readonly asTruncatedError: Bytes; + readonly type: 'Success' | 'Error' | 'TruncatedError'; } -/** @name XcmV2MultiAsset */ -export interface XcmV2MultiAsset extends Struct { - readonly id: XcmV2MultiassetAssetId; - readonly fun: XcmV2MultiassetFungibility; +/** @name StagingXcmV3MultiAsset */ +export interface StagingXcmV3MultiAsset extends Struct { + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetFungibility; } -/** @name XcmV2MultiassetAssetId */ -export interface XcmV2MultiassetAssetId extends Enum { +/** @name StagingXcmV3MultiassetAssetId */ +export interface StagingXcmV3MultiassetAssetId extends Enum { readonly isConcrete: boolean; - readonly asConcrete: XcmV2MultiLocation; + readonly asConcrete: StagingXcmV3MultiLocation; readonly isAbstract: boolean; - readonly asAbstract: Bytes; + readonly asAbstract: U8aFixed; readonly type: 'Concrete' | 'Abstract'; } -/** @name XcmV2MultiassetAssetInstance */ -export interface XcmV2MultiassetAssetInstance extends Enum { +/** @name StagingXcmV3MultiassetAssetInstance */ +export interface StagingXcmV3MultiassetAssetInstance extends Enum { readonly isUndefined: boolean; readonly isIndex: boolean; readonly asIndex: Compact; @@ -4621,117 +5066,103 @@ export interface XcmV2MultiassetAssetInstance extends Enum { readonly asArray16: U8aFixed; readonly isArray32: boolean; readonly asArray32: U8aFixed; - readonly isBlob: boolean; - readonly asBlob: Bytes; - readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; + readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32'; } -/** @name XcmV2MultiassetFungibility */ -export interface XcmV2MultiassetFungibility extends Enum { +/** @name StagingXcmV3MultiassetFungibility */ +export interface StagingXcmV3MultiassetFungibility extends Enum { readonly isFungible: boolean; readonly asFungible: Compact; readonly isNonFungible: boolean; - readonly asNonFungible: XcmV2MultiassetAssetInstance; + readonly asNonFungible: StagingXcmV3MultiassetAssetInstance; readonly type: 'Fungible' | 'NonFungible'; } -/** @name XcmV2MultiassetMultiAssetFilter */ -export interface XcmV2MultiassetMultiAssetFilter extends Enum { +/** @name StagingXcmV3MultiassetMultiAssetFilter */ +export interface StagingXcmV3MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; - readonly asDefinite: XcmV2MultiassetMultiAssets; + readonly asDefinite: StagingXcmV3MultiassetMultiAssets; readonly isWild: boolean; - readonly asWild: XcmV2MultiassetWildMultiAsset; + readonly asWild: StagingXcmV3MultiassetWildMultiAsset; readonly type: 'Definite' | 'Wild'; } -/** @name XcmV2MultiassetMultiAssets */ -export interface XcmV2MultiassetMultiAssets extends Vec {} +/** @name StagingXcmV3MultiassetMultiAssets */ +export interface StagingXcmV3MultiassetMultiAssets extends Vec {} -/** @name XcmV2MultiassetWildFungibility */ -export interface XcmV2MultiassetWildFungibility extends Enum { +/** @name StagingXcmV3MultiassetWildFungibility */ +export interface StagingXcmV3MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: 'Fungible' | 'NonFungible'; } -/** @name XcmV2MultiassetWildMultiAsset */ -export interface XcmV2MultiassetWildMultiAsset extends Enum { +/** @name StagingXcmV3MultiassetWildMultiAsset */ +export interface StagingXcmV3MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; readonly asAllOf: { - readonly id: XcmV2MultiassetAssetId; - readonly fun: XcmV2MultiassetWildFungibility; + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetWildFungibility; } & Struct; - readonly type: 'All' | 'AllOf'; + readonly isAllCounted: boolean; + readonly asAllCounted: Compact; + readonly isAllOfCounted: boolean; + readonly asAllOfCounted: { + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetWildFungibility; + readonly count: Compact; + } & Struct; + readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; } -/** @name XcmV2MultiLocation */ -export interface XcmV2MultiLocation extends Struct { +/** @name StagingXcmV3MultiLocation */ +export interface StagingXcmV3MultiLocation extends Struct { readonly parents: u8; - readonly interior: XcmV2MultilocationJunctions; -} - -/** @name XcmV2MultilocationJunctions */ -export interface XcmV2MultilocationJunctions extends Enum { - readonly isHere: boolean; - readonly isX1: boolean; - readonly asX1: XcmV2Junction; - readonly isX2: boolean; - readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>; - readonly isX3: boolean; - readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly isX4: boolean; - readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly isX5: boolean; - readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly isX6: boolean; - readonly asX6: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly isX7: boolean; - readonly asX7: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly isX8: boolean; - readonly asX8: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; - readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; + readonly interior: StagingXcmV3Junctions; } -/** @name XcmV2NetworkId */ -export interface XcmV2NetworkId extends Enum { - readonly isAny: boolean; - readonly isNamed: boolean; - readonly asNamed: Bytes; - readonly isPolkadot: boolean; - readonly isKusama: boolean; - readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; +/** @name StagingXcmV3PalletInfo */ +export interface StagingXcmV3PalletInfo extends Struct { + readonly index: Compact; + readonly name: Bytes; + readonly moduleName: Bytes; + readonly major: Compact; + readonly minor: Compact; + readonly patch: Compact; } -/** @name XcmV2OriginKind */ -export interface XcmV2OriginKind extends Enum { - readonly isNative: boolean; - readonly isSovereignAccount: boolean; - readonly isSuperuser: boolean; - readonly isXcm: boolean; - readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; +/** @name StagingXcmV3QueryResponseInfo */ +export interface StagingXcmV3QueryResponseInfo extends Struct { + readonly destination: StagingXcmV3MultiLocation; + readonly queryId: Compact; + readonly maxWeight: SpWeightsWeightV2Weight; } -/** @name XcmV2Response */ -export interface XcmV2Response extends Enum { +/** @name StagingXcmV3Response */ +export interface StagingXcmV3Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; - readonly asAssets: XcmV2MultiassetMultiAssets; + readonly asAssets: StagingXcmV3MultiassetMultiAssets; readonly isExecutionResult: boolean; - readonly asExecutionResult: Option>; + readonly asExecutionResult: Option>; readonly isVersion: boolean; readonly asVersion: u32; - readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; + readonly isPalletsInfo: boolean; + readonly asPalletsInfo: Vec; + readonly isDispatchResult: boolean; + readonly asDispatchResult: StagingXcmV3MaybeErrorCode; + readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; } -/** @name XcmV2TraitsError */ -export interface XcmV2TraitsError extends Enum { +/** @name StagingXcmV3TraitsError */ +export interface StagingXcmV3TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; readonly isUntrustedReserveLocation: boolean; readonly isUntrustedTeleportLocation: boolean; - readonly isMultiLocationFull: boolean; - readonly isMultiLocationNotInvertible: boolean; + readonly isLocationFull: boolean; + readonly isLocationNotInvertible: boolean; readonly isBadOrigin: boolean; readonly isInvalidLocation: boolean; readonly isAssetNotFound: boolean; @@ -4749,579 +5180,358 @@ export interface XcmV2TraitsError extends Enum { readonly isTooExpensive: boolean; readonly isTrap: boolean; readonly asTrap: u64; + readonly isExpectationFalse: boolean; + readonly isPalletNotFound: boolean; + readonly isNameMismatch: boolean; + readonly isVersionIncompatible: boolean; + readonly isHoldingWouldOverflow: boolean; + readonly isExportError: boolean; + readonly isReanchorFailed: boolean; + readonly isNoDeal: boolean; + readonly isFeesNotMet: boolean; + readonly isLockError: boolean; + readonly isNoPermission: boolean; + readonly isUnanchored: boolean; + readonly isNotDepositable: boolean; readonly isUnhandledXcmVersion: boolean; readonly isWeightLimitReached: boolean; - readonly asWeightLimitReached: u64; + readonly asWeightLimitReached: SpWeightsWeightV2Weight; readonly isBarrier: boolean; readonly isWeightNotComputable: boolean; - readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable'; + readonly isExceedsStackLimit: boolean; + readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit'; +} + +/** @name StagingXcmV3TraitsOutcome */ +export interface StagingXcmV3TraitsOutcome extends Enum { + readonly isComplete: boolean; + readonly asComplete: SpWeightsWeightV2Weight; + readonly isIncomplete: boolean; + readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, StagingXcmV3TraitsError]>; + readonly isError: boolean; + readonly asError: StagingXcmV3TraitsError; + readonly type: 'Complete' | 'Incomplete' | 'Error'; } -/** @name XcmV2WeightLimit */ -export interface XcmV2WeightLimit extends Enum { +/** @name StagingXcmV3WeightLimit */ +export interface StagingXcmV3WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; - readonly asLimited: Compact; + readonly asLimited: SpWeightsWeightV2Weight; readonly type: 'Unlimited' | 'Limited'; } -/** @name XcmV2Xcm */ -export interface XcmV2Xcm extends Vec {} +/** @name StagingXcmV3Xcm */ +export interface StagingXcmV3Xcm extends Vec {} -/** @name XcmV3Instruction */ -export interface XcmV3Instruction extends Enum { - readonly isWithdrawAsset: boolean; - readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; - readonly isReserveAssetDeposited: boolean; - readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets; - readonly isReceiveTeleportedAsset: boolean; - readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets; - readonly isQueryResponse: boolean; - readonly asQueryResponse: { - readonly queryId: Compact; - readonly response: XcmV3Response; - readonly maxWeight: SpWeightsWeightV2Weight; - readonly querier: Option; - } & Struct; - readonly isTransferAsset: boolean; - readonly asTransferAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly beneficiary: XcmV3MultiLocation; - } & Struct; - readonly isTransferReserveAsset: boolean; - readonly asTransferReserveAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; - } & Struct; - readonly isTransact: boolean; - readonly asTransact: { - readonly originKind: XcmV2OriginKind; - readonly requireWeightAtMost: SpWeightsWeightV2Weight; - readonly call: XcmDoubleEncoded; - } & Struct; - readonly isHrmpNewChannelOpenRequest: boolean; - readonly asHrmpNewChannelOpenRequest: { - readonly sender: Compact; - readonly maxMessageSize: Compact; - readonly maxCapacity: Compact; - } & Struct; - readonly isHrmpChannelAccepted: boolean; - readonly asHrmpChannelAccepted: { - readonly recipient: Compact; - } & Struct; - readonly isHrmpChannelClosing: boolean; - readonly asHrmpChannelClosing: { - readonly initiator: Compact; - readonly sender: Compact; - readonly recipient: Compact; - } & Struct; - readonly isClearOrigin: boolean; - readonly isDescendOrigin: boolean; - readonly asDescendOrigin: XcmV3Junctions; - readonly isReportError: boolean; - readonly asReportError: XcmV3QueryResponseInfo; - readonly isDepositAsset: boolean; - readonly asDepositAsset: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly beneficiary: XcmV3MultiLocation; - } & Struct; - readonly isDepositReserveAsset: boolean; - readonly asDepositReserveAsset: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; - } & Struct; - readonly isExchangeAsset: boolean; - readonly asExchangeAsset: { - readonly give: XcmV3MultiassetMultiAssetFilter; - readonly want: XcmV3MultiassetMultiAssets; - readonly maximal: bool; - } & Struct; - readonly isInitiateReserveWithdraw: boolean; - readonly asInitiateReserveWithdraw: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly reserve: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; - } & Struct; - readonly isInitiateTeleport: boolean; - readonly asInitiateTeleport: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; - } & Struct; - readonly isReportHolding: boolean; - readonly asReportHolding: { - readonly responseInfo: XcmV3QueryResponseInfo; - readonly assets: XcmV3MultiassetMultiAssetFilter; - } & Struct; - readonly isBuyExecution: boolean; - readonly asBuyExecution: { - readonly fees: XcmV3MultiAsset; - readonly weightLimit: XcmV3WeightLimit; - } & Struct; - readonly isRefundSurplus: boolean; - readonly isSetErrorHandler: boolean; - readonly asSetErrorHandler: XcmV3Xcm; - readonly isSetAppendix: boolean; - readonly asSetAppendix: XcmV3Xcm; - readonly isClearError: boolean; - readonly isClaimAsset: boolean; - readonly asClaimAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly ticket: XcmV3MultiLocation; - } & Struct; - readonly isTrap: boolean; - readonly asTrap: Compact; - readonly isSubscribeVersion: boolean; - readonly asSubscribeVersion: { - readonly queryId: Compact; - readonly maxResponseWeight: SpWeightsWeightV2Weight; - } & Struct; - readonly isUnsubscribeVersion: boolean; - readonly isBurnAsset: boolean; - readonly asBurnAsset: XcmV3MultiassetMultiAssets; - readonly isExpectAsset: boolean; - readonly asExpectAsset: XcmV3MultiassetMultiAssets; - readonly isExpectOrigin: boolean; - readonly asExpectOrigin: Option; - readonly isExpectError: boolean; - readonly asExpectError: Option>; - readonly isExpectTransactStatus: boolean; - readonly asExpectTransactStatus: XcmV3MaybeErrorCode; - readonly isQueryPallet: boolean; - readonly asQueryPallet: { - readonly moduleName: Bytes; - readonly responseInfo: XcmV3QueryResponseInfo; - } & Struct; - readonly isExpectPallet: boolean; - readonly asExpectPallet: { - readonly index: Compact; - readonly name: Bytes; - readonly moduleName: Bytes; - readonly crateMajor: Compact; - readonly minCrateMinor: Compact; - } & Struct; - readonly isReportTransactStatus: boolean; - readonly asReportTransactStatus: XcmV3QueryResponseInfo; - readonly isClearTransactStatus: boolean; - readonly isUniversalOrigin: boolean; - readonly asUniversalOrigin: XcmV3Junction; - readonly isExportMessage: boolean; - readonly asExportMessage: { - readonly network: XcmV3JunctionNetworkId; - readonly destination: XcmV3Junctions; - readonly xcm: XcmV3Xcm; - } & Struct; - readonly isLockAsset: boolean; - readonly asLockAsset: { - readonly asset: XcmV3MultiAsset; - readonly unlocker: XcmV3MultiLocation; - } & Struct; - readonly isUnlockAsset: boolean; - readonly asUnlockAsset: { - readonly asset: XcmV3MultiAsset; - readonly target: XcmV3MultiLocation; - } & Struct; - readonly isNoteUnlockable: boolean; - readonly asNoteUnlockable: { - readonly asset: XcmV3MultiAsset; - readonly owner: XcmV3MultiLocation; - } & Struct; - readonly isRequestUnlock: boolean; - readonly asRequestUnlock: { - readonly asset: XcmV3MultiAsset; - readonly locker: XcmV3MultiLocation; - } & Struct; - readonly isSetFeesMode: boolean; - readonly asSetFeesMode: { - readonly jitWithdraw: bool; - } & Struct; - readonly isSetTopic: boolean; - readonly asSetTopic: U8aFixed; - readonly isClearTopic: boolean; - readonly isAliasOrigin: boolean; - readonly asAliasOrigin: XcmV3MultiLocation; - readonly isUnpaidExecution: boolean; - readonly asUnpaidExecution: { - readonly weightLimit: XcmV3WeightLimit; - readonly checkOrigin: Option; - } & Struct; - readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution'; +/** @name StagingXcmVersionedAssetId */ +export interface StagingXcmVersionedAssetId extends Enum { + readonly isV3: boolean; + readonly asV3: StagingXcmV3MultiassetAssetId; + readonly type: 'V3'; } -/** @name XcmV3Junction */ -export interface XcmV3Junction extends Enum { - readonly isParachain: boolean; - readonly asParachain: Compact; - readonly isAccountId32: boolean; - readonly asAccountId32: { - readonly network: Option; - readonly id: U8aFixed; - } & Struct; - readonly isAccountIndex64: boolean; - readonly asAccountIndex64: { - readonly network: Option; - readonly index: Compact; - } & Struct; - readonly isAccountKey20: boolean; - readonly asAccountKey20: { - readonly network: Option; - readonly key: U8aFixed; - } & Struct; - readonly isPalletInstance: boolean; - readonly asPalletInstance: u8; - readonly isGeneralIndex: boolean; - readonly asGeneralIndex: Compact; - readonly isGeneralKey: boolean; - readonly asGeneralKey: { - readonly length: u8; - readonly data: U8aFixed; - } & Struct; - readonly isOnlyChild: boolean; - readonly isPlurality: boolean; - readonly asPlurality: { - readonly id: XcmV3JunctionBodyId; - readonly part: XcmV3JunctionBodyPart; - } & Struct; - readonly isGlobalConsensus: boolean; - readonly asGlobalConsensus: XcmV3JunctionNetworkId; - readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus'; +/** @name StagingXcmVersionedMultiAsset */ +export interface StagingXcmVersionedMultiAsset extends Enum { + readonly isV2: boolean; + readonly asV2: StagingXcmV2MultiAsset; + readonly isV3: boolean; + readonly asV3: StagingXcmV3MultiAsset; + readonly type: 'V2' | 'V3'; } -/** @name XcmV3JunctionBodyId */ -export interface XcmV3JunctionBodyId extends Enum { - readonly isUnit: boolean; - readonly isMoniker: boolean; - readonly asMoniker: U8aFixed; - readonly isIndex: boolean; - readonly asIndex: Compact; - readonly isExecutive: boolean; - readonly isTechnical: boolean; - readonly isLegislative: boolean; - readonly isJudicial: boolean; - readonly isDefense: boolean; - readonly isAdministration: boolean; - readonly isTreasury: boolean; - readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; +/** @name StagingXcmVersionedMultiAssets */ +export interface StagingXcmVersionedMultiAssets extends Enum { + readonly isV2: boolean; + readonly asV2: StagingXcmV2MultiassetMultiAssets; + readonly isV3: boolean; + readonly asV3: StagingXcmV3MultiassetMultiAssets; + readonly type: 'V2' | 'V3'; } -/** @name XcmV3JunctionBodyPart */ -export interface XcmV3JunctionBodyPart extends Enum { - readonly isVoice: boolean; - readonly isMembers: boolean; - readonly asMembers: { - readonly count: Compact; - } & Struct; - readonly isFraction: boolean; - readonly asFraction: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly isAtLeastProportion: boolean; - readonly asAtLeastProportion: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly isMoreThanProportion: boolean; - readonly asMoreThanProportion: { - readonly nom: Compact; - readonly denom: Compact; - } & Struct; - readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; +/** @name StagingXcmVersionedMultiLocation */ +export interface StagingXcmVersionedMultiLocation extends Enum { + readonly isV2: boolean; + readonly asV2: StagingXcmV2MultiLocation; + readonly isV3: boolean; + readonly asV3: StagingXcmV3MultiLocation; + readonly type: 'V2' | 'V3'; } -/** @name XcmV3JunctionNetworkId */ -export interface XcmV3JunctionNetworkId extends Enum { - readonly isByGenesis: boolean; - readonly asByGenesis: U8aFixed; - readonly isByFork: boolean; - readonly asByFork: { - readonly blockNumber: u64; - readonly blockHash: U8aFixed; - } & Struct; - readonly isPolkadot: boolean; - readonly isKusama: boolean; - readonly isWestend: boolean; - readonly isRococo: boolean; - readonly isWococo: boolean; - readonly isEthereum: boolean; - readonly asEthereum: { - readonly chainId: Compact; - } & Struct; - readonly isBitcoinCore: boolean; - readonly isBitcoinCash: boolean; - readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash'; +/** @name StagingXcmVersionedResponse */ +export interface StagingXcmVersionedResponse extends Enum { + readonly isV2: boolean; + readonly asV2: StagingXcmV2Response; + readonly isV3: boolean; + readonly asV3: StagingXcmV3Response; + readonly type: 'V2' | 'V3'; } -/** @name XcmV3Junctions */ -export interface XcmV3Junctions extends Enum { - readonly isHere: boolean; - readonly isX1: boolean; - readonly asX1: XcmV3Junction; - readonly isX2: boolean; - readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>; - readonly isX3: boolean; - readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly isX4: boolean; - readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly isX5: boolean; - readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly isX6: boolean; - readonly asX6: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly isX7: boolean; - readonly asX7: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly isX8: boolean; - readonly asX8: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; - readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; +/** @name StagingXcmVersionedXcm */ +export interface StagingXcmVersionedXcm extends Enum { + readonly isV2: boolean; + readonly asV2: StagingXcmV2Xcm; + readonly isV3: boolean; + readonly asV3: StagingXcmV3Xcm; + readonly type: 'V2' | 'V3'; +} + +/** @name UpDataStructsAccessMode */ +export interface UpDataStructsAccessMode extends Enum { + readonly isNormal: boolean; + readonly isAllowList: boolean; + readonly type: 'Normal' | 'AllowList'; +} + +/** @name UpDataStructsCollection */ +export interface UpDataStructsCollection extends Struct { + readonly owner: AccountId32; + readonly mode: UpDataStructsCollectionMode; + readonly name: Vec; + readonly description: Vec; + readonly tokenPrefix: Bytes; + readonly sponsorship: UpDataStructsSponsorshipStateAccountId32; + readonly limits: UpDataStructsCollectionLimits; + readonly permissions: UpDataStructsCollectionPermissions; + readonly flags: U8aFixed; +} + +/** @name UpDataStructsCollectionLimits */ +export interface UpDataStructsCollectionLimits extends Struct { + readonly accountTokenOwnershipLimit: Option; + readonly sponsoredDataSize: Option; + readonly sponsoredDataRateLimit: Option; + readonly tokenLimit: Option; + readonly sponsorTransferTimeout: Option; + readonly sponsorApproveTimeout: Option; + readonly ownerCanTransfer: Option; + readonly ownerCanDestroy: Option; + readonly transfersEnabled: Option; +} + +/** @name UpDataStructsCollectionMode */ +export interface UpDataStructsCollectionMode extends Enum { + readonly isNft: boolean; + readonly isFungible: boolean; + readonly asFungible: u8; + readonly isReFungible: boolean; + readonly type: 'Nft' | 'Fungible' | 'ReFungible'; +} + +/** @name UpDataStructsCollectionPermissions */ +export interface UpDataStructsCollectionPermissions extends Struct { + readonly access: Option; + readonly mintMode: Option; + readonly nesting: Option; +} + +/** @name UpDataStructsCollectionStats */ +export interface UpDataStructsCollectionStats extends Struct { + readonly created: u32; + readonly destroyed: u32; + readonly alive: u32; +} + +/** @name UpDataStructsCreateCollectionData */ +export interface UpDataStructsCreateCollectionData extends Struct { + readonly mode: UpDataStructsCollectionMode; + readonly access: Option; + readonly name: Vec; + readonly description: Vec; + readonly tokenPrefix: Bytes; + readonly limits: Option; + readonly permissions: Option; + readonly tokenPropertyPermissions: Vec; + readonly properties: Vec; + readonly adminList: Vec; + readonly pendingSponsor: Option; + readonly flags: U8aFixed; +} + +/** @name UpDataStructsCreateFungibleData */ +export interface UpDataStructsCreateFungibleData extends Struct { + readonly value: u128; +} + +/** @name UpDataStructsCreateItemData */ +export interface UpDataStructsCreateItemData extends Enum { + readonly isNft: boolean; + readonly asNft: UpDataStructsCreateNftData; + readonly isFungible: boolean; + readonly asFungible: UpDataStructsCreateFungibleData; + readonly isReFungible: boolean; + readonly asReFungible: UpDataStructsCreateReFungibleData; + readonly type: 'Nft' | 'Fungible' | 'ReFungible'; +} + +/** @name UpDataStructsCreateItemExData */ +export interface UpDataStructsCreateItemExData extends Enum { + readonly isNft: boolean; + readonly asNft: Vec; + readonly isFungible: boolean; + readonly asFungible: BTreeMap; + readonly isRefungibleMultipleItems: boolean; + readonly asRefungibleMultipleItems: Vec; + readonly isRefungibleMultipleOwners: boolean; + readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners; + readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners'; } -/** @name XcmV3MaybeErrorCode */ -export interface XcmV3MaybeErrorCode extends Enum { - readonly isSuccess: boolean; - readonly isError: boolean; - readonly asError: Bytes; - readonly isTruncatedError: boolean; - readonly asTruncatedError: Bytes; - readonly type: 'Success' | 'Error' | 'TruncatedError'; +/** @name UpDataStructsCreateNftData */ +export interface UpDataStructsCreateNftData extends Struct { + readonly properties: Vec; } -/** @name XcmV3MultiAsset */ -export interface XcmV3MultiAsset extends Struct { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetFungibility; +/** @name UpDataStructsCreateNftExData */ +export interface UpDataStructsCreateNftExData extends Struct { + readonly properties: Vec; + readonly owner: PalletEvmAccountBasicCrossAccountIdRepr; } -/** @name XcmV3MultiassetAssetId */ -export interface XcmV3MultiassetAssetId extends Enum { - readonly isConcrete: boolean; - readonly asConcrete: XcmV3MultiLocation; - readonly isAbstract: boolean; - readonly asAbstract: U8aFixed; - readonly type: 'Concrete' | 'Abstract'; +/** @name UpDataStructsCreateReFungibleData */ +export interface UpDataStructsCreateReFungibleData extends Struct { + readonly pieces: u128; + readonly properties: Vec; } -/** @name XcmV3MultiassetAssetInstance */ -export interface XcmV3MultiassetAssetInstance extends Enum { - readonly isUndefined: boolean; - readonly isIndex: boolean; - readonly asIndex: Compact; - readonly isArray4: boolean; - readonly asArray4: U8aFixed; - readonly isArray8: boolean; - readonly asArray8: U8aFixed; - readonly isArray16: boolean; - readonly asArray16: U8aFixed; - readonly isArray32: boolean; - readonly asArray32: U8aFixed; - readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32'; +/** @name UpDataStructsCreateRefungibleExMultipleOwners */ +export interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct { + readonly users: BTreeMap; + readonly properties: Vec; } -/** @name XcmV3MultiassetFungibility */ -export interface XcmV3MultiassetFungibility extends Enum { - readonly isFungible: boolean; - readonly asFungible: Compact; - readonly isNonFungible: boolean; - readonly asNonFungible: XcmV3MultiassetAssetInstance; - readonly type: 'Fungible' | 'NonFungible'; +/** @name UpDataStructsCreateRefungibleExSingleOwner */ +export interface UpDataStructsCreateRefungibleExSingleOwner extends Struct { + readonly user: PalletEvmAccountBasicCrossAccountIdRepr; + readonly pieces: u128; + readonly properties: Vec; } -/** @name XcmV3MultiassetMultiAssetFilter */ -export interface XcmV3MultiassetMultiAssetFilter extends Enum { - readonly isDefinite: boolean; - readonly asDefinite: XcmV3MultiassetMultiAssets; - readonly isWild: boolean; - readonly asWild: XcmV3MultiassetWildMultiAsset; - readonly type: 'Definite' | 'Wild'; +/** @name UpDataStructsNestingPermissions */ +export interface UpDataStructsNestingPermissions extends Struct { + readonly tokenOwner: bool; + readonly collectionAdmin: bool; + readonly restricted: Option; } -/** @name XcmV3MultiassetMultiAssets */ -export interface XcmV3MultiassetMultiAssets extends Vec {} +/** @name UpDataStructsOwnerRestrictedSet */ +export interface UpDataStructsOwnerRestrictedSet extends BTreeSet {} -/** @name XcmV3MultiassetWildFungibility */ -export interface XcmV3MultiassetWildFungibility extends Enum { - readonly isFungible: boolean; - readonly isNonFungible: boolean; - readonly type: 'Fungible' | 'NonFungible'; +/** @name UpDataStructsProperties */ +export interface UpDataStructsProperties extends Struct { + readonly map: UpDataStructsPropertiesMapBoundedVec; + readonly consumedSpace: u32; + readonly reserved: u32; } -/** @name XcmV3MultiassetWildMultiAsset */ -export interface XcmV3MultiassetWildMultiAsset extends Enum { - readonly isAll: boolean; - readonly isAllOf: boolean; - readonly asAllOf: { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetWildFungibility; - } & Struct; - readonly isAllCounted: boolean; - readonly asAllCounted: Compact; - readonly isAllOfCounted: boolean; - readonly asAllOfCounted: { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetWildFungibility; - readonly count: Compact; - } & Struct; - readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; -} +/** @name UpDataStructsPropertiesMapBoundedVec */ +export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap {} -/** @name XcmV3MultiLocation */ -export interface XcmV3MultiLocation extends Struct { - readonly parents: u8; - readonly interior: XcmV3Junctions; -} +/** @name UpDataStructsPropertiesMapPropertyPermission */ +export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap {} -/** @name XcmV3PalletInfo */ -export interface XcmV3PalletInfo extends Struct { - readonly index: Compact; - readonly name: Bytes; - readonly moduleName: Bytes; - readonly major: Compact; - readonly minor: Compact; - readonly patch: Compact; +/** @name UpDataStructsProperty */ +export interface UpDataStructsProperty extends Struct { + readonly key: Bytes; + readonly value: Bytes; } -/** @name XcmV3QueryResponseInfo */ -export interface XcmV3QueryResponseInfo extends Struct { - readonly destination: XcmV3MultiLocation; - readonly queryId: Compact; - readonly maxWeight: SpWeightsWeightV2Weight; +/** @name UpDataStructsPropertyKeyPermission */ +export interface UpDataStructsPropertyKeyPermission extends Struct { + readonly key: Bytes; + readonly permission: UpDataStructsPropertyPermission; } -/** @name XcmV3Response */ -export interface XcmV3Response extends Enum { - readonly isNull: boolean; - readonly isAssets: boolean; - readonly asAssets: XcmV3MultiassetMultiAssets; - readonly isExecutionResult: boolean; - readonly asExecutionResult: Option>; - readonly isVersion: boolean; - readonly asVersion: u32; - readonly isPalletsInfo: boolean; - readonly asPalletsInfo: Vec; - readonly isDispatchResult: boolean; - readonly asDispatchResult: XcmV3MaybeErrorCode; - readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; +/** @name UpDataStructsPropertyPermission */ +export interface UpDataStructsPropertyPermission extends Struct { + readonly mutable: bool; + readonly collectionAdmin: bool; + readonly tokenOwner: bool; } -/** @name XcmV3TraitsError */ -export interface XcmV3TraitsError extends Enum { - readonly isOverflow: boolean; - readonly isUnimplemented: boolean; - readonly isUntrustedReserveLocation: boolean; - readonly isUntrustedTeleportLocation: boolean; - readonly isLocationFull: boolean; - readonly isLocationNotInvertible: boolean; - readonly isBadOrigin: boolean; - readonly isInvalidLocation: boolean; - readonly isAssetNotFound: boolean; - readonly isFailedToTransactAsset: boolean; - readonly isNotWithdrawable: boolean; - readonly isLocationCannotHold: boolean; - readonly isExceedsMaxMessageSize: boolean; - readonly isDestinationUnsupported: boolean; - readonly isTransport: boolean; - readonly isUnroutable: boolean; - readonly isUnknownClaim: boolean; - readonly isFailedToDecode: boolean; - readonly isMaxWeightInvalid: boolean; - readonly isNotHoldingFees: boolean; - readonly isTooExpensive: boolean; - readonly isTrap: boolean; - readonly asTrap: u64; - readonly isExpectationFalse: boolean; - readonly isPalletNotFound: boolean; - readonly isNameMismatch: boolean; - readonly isVersionIncompatible: boolean; - readonly isHoldingWouldOverflow: boolean; - readonly isExportError: boolean; - readonly isReanchorFailed: boolean; - readonly isNoDeal: boolean; - readonly isFeesNotMet: boolean; - readonly isLockError: boolean; - readonly isNoPermission: boolean; - readonly isUnanchored: boolean; - readonly isNotDepositable: boolean; - readonly isUnhandledXcmVersion: boolean; - readonly isWeightLimitReached: boolean; - readonly asWeightLimitReached: SpWeightsWeightV2Weight; - readonly isBarrier: boolean; - readonly isWeightNotComputable: boolean; - readonly isExceedsStackLimit: boolean; - readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit'; +/** @name UpDataStructsPropertyScope */ +export interface UpDataStructsPropertyScope extends Enum { + readonly isNone: boolean; + readonly isRmrk: boolean; + readonly type: 'None' | 'Rmrk'; } -/** @name XcmV3TraitsOutcome */ -export interface XcmV3TraitsOutcome extends Enum { - readonly isComplete: boolean; - readonly asComplete: SpWeightsWeightV2Weight; - readonly isIncomplete: boolean; - readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>; - readonly isError: boolean; - readonly asError: XcmV3TraitsError; - readonly type: 'Complete' | 'Incomplete' | 'Error'; +/** @name UpDataStructsRpcCollection */ +export interface UpDataStructsRpcCollection extends Struct { + readonly owner: AccountId32; + readonly mode: UpDataStructsCollectionMode; + readonly name: Vec; + readonly description: Vec; + readonly tokenPrefix: Bytes; + readonly sponsorship: UpDataStructsSponsorshipStateAccountId32; + readonly limits: UpDataStructsCollectionLimits; + readonly permissions: UpDataStructsCollectionPermissions; + readonly tokenPropertyPermissions: Vec; + readonly properties: Vec; + readonly readOnly: bool; + readonly flags: UpDataStructsRpcCollectionFlags; } -/** @name XcmV3WeightLimit */ -export interface XcmV3WeightLimit extends Enum { - readonly isUnlimited: boolean; - readonly isLimited: boolean; - readonly asLimited: SpWeightsWeightV2Weight; - readonly type: 'Unlimited' | 'Limited'; +/** @name UpDataStructsRpcCollectionFlags */ +export interface UpDataStructsRpcCollectionFlags extends Struct { + readonly foreign: bool; + readonly erc721metadata: bool; } -/** @name XcmV3Xcm */ -export interface XcmV3Xcm extends Vec {} +/** @name UpDataStructsSponsoringRateLimit */ +export interface UpDataStructsSponsoringRateLimit extends Enum { + readonly isSponsoringDisabled: boolean; + readonly isBlocks: boolean; + readonly asBlocks: u32; + readonly type: 'SponsoringDisabled' | 'Blocks'; +} -/** @name XcmVersionedAssetId */ -export interface XcmVersionedAssetId extends Enum { - readonly isV3: boolean; - readonly asV3: XcmV3MultiassetAssetId; - readonly type: 'V3'; +/** @name UpDataStructsSponsorshipStateAccountId32 */ +export interface UpDataStructsSponsorshipStateAccountId32 extends Enum { + readonly isDisabled: boolean; + readonly isUnconfirmed: boolean; + readonly asUnconfirmed: AccountId32; + readonly isConfirmed: boolean; + readonly asConfirmed: AccountId32; + readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; } -/** @name XcmVersionedMultiAsset */ -export interface XcmVersionedMultiAsset extends Enum { - readonly isV2: boolean; - readonly asV2: XcmV2MultiAsset; - readonly isV3: boolean; - readonly asV3: XcmV3MultiAsset; - readonly type: 'V2' | 'V3'; +/** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr */ +export interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum { + readonly isDisabled: boolean; + readonly isUnconfirmed: boolean; + readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr; + readonly isConfirmed: boolean; + readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr; + readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; } -/** @name XcmVersionedMultiAssets */ -export interface XcmVersionedMultiAssets extends Enum { - readonly isV2: boolean; - readonly asV2: XcmV2MultiassetMultiAssets; - readonly isV3: boolean; - readonly asV3: XcmV3MultiassetMultiAssets; - readonly type: 'V2' | 'V3'; +/** @name UpDataStructsTokenChild */ +export interface UpDataStructsTokenChild extends Struct { + readonly token: u32; + readonly collection: u32; } -/** @name XcmVersionedMultiLocation */ -export interface XcmVersionedMultiLocation extends Enum { - readonly isV2: boolean; - readonly asV2: XcmV2MultiLocation; - readonly isV3: boolean; - readonly asV3: XcmV3MultiLocation; - readonly type: 'V2' | 'V3'; +/** @name UpDataStructsTokenData */ +export interface UpDataStructsTokenData extends Struct { + readonly properties: Vec; + readonly owner: Option; + readonly pieces: u128; } -/** @name XcmVersionedResponse */ -export interface XcmVersionedResponse extends Enum { - readonly isV2: boolean; - readonly asV2: XcmV2Response; - readonly isV3: boolean; - readonly asV3: XcmV3Response; - readonly type: 'V2' | 'V3'; +/** @name UpPovEstimateRpcPovInfo */ +export interface UpPovEstimateRpcPovInfo extends Struct { + readonly proofSize: u64; + readonly compactProofSize: u64; + readonly compressedProofSize: u64; + readonly results: Vec, SpRuntimeTransactionValidityTransactionValidityError>>; + readonly keyValues: Vec; } -/** @name XcmVersionedXcm */ -export interface XcmVersionedXcm extends Enum { - readonly isV2: boolean; - readonly asV2: XcmV2Xcm; - readonly isV3: boolean; - readonly asV3: XcmV3Xcm; - readonly type: 'V2' | 'V3'; +/** @name UpPovEstimateRpcTrieKeyValue */ +export interface UpPovEstimateRpcTrieKeyValue extends Struct { + readonly key: Bytes; + readonly value: Bytes; } export type PHANTOM_DEFAULT = 'default'; diff --git a/tests/src/interfaces/definitions.ts b/tests/src/interfaces/definitions.ts index 6576aea556..97e6efe3ea 100644 --- a/tests/src/interfaces/definitions.ts +++ b/tests/src/interfaces/definitions.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -export {default as unique} from './unique/definitions'; -export {default as appPromotion} from './appPromotion/definitions'; -export {default as povinfo} from './povinfo/definitions'; -export {default as default} from './default/definitions'; +export {default as unique} from './unique/definitions.js'; +export {default as appPromotion} from './appPromotion/definitions.js'; +export {default as povinfo} from './povinfo/definitions.js'; +export {default as default} from './default/definitions.js'; diff --git a/tests/src/interfaces/lookup.ts b/tests/src/interfaces/lookup.ts index 835b9d797e..851ee1284c 100644 --- a/tests/src/interfaces/lookup.ts +++ b/tests/src/interfaces/lookup.ts @@ -5,7 +5,7 @@ export default { /** - * Lookup3: frame_system::AccountInfo> + * Lookup3: frame_system::AccountInfo> **/ FrameSystemAccountInfo: { nonce: 'u32', @@ -456,71 +456,71 @@ export default { _enum: { TransferredMultiAssets: { sender: 'AccountId32', - assets: 'XcmV3MultiassetMultiAssets', - fee: 'XcmV3MultiAsset', - dest: 'XcmV3MultiLocation' + assets: 'StagingXcmV3MultiassetMultiAssets', + fee: 'StagingXcmV3MultiAsset', + dest: 'StagingXcmV3MultiLocation' } } }, /** - * Lookup49: xcm::v3::multiasset::MultiAssets + * Lookup49: staging_xcm::v3::multiasset::MultiAssets **/ - XcmV3MultiassetMultiAssets: 'Vec', + StagingXcmV3MultiassetMultiAssets: 'Vec', /** - * Lookup51: xcm::v3::multiasset::MultiAsset + * Lookup51: staging_xcm::v3::multiasset::MultiAsset **/ - XcmV3MultiAsset: { - id: 'XcmV3MultiassetAssetId', - fun: 'XcmV3MultiassetFungibility' + StagingXcmV3MultiAsset: { + id: 'StagingXcmV3MultiassetAssetId', + fun: 'StagingXcmV3MultiassetFungibility' }, /** - * Lookup52: xcm::v3::multiasset::AssetId + * Lookup52: staging_xcm::v3::multiasset::AssetId **/ - XcmV3MultiassetAssetId: { + StagingXcmV3MultiassetAssetId: { _enum: { - Concrete: 'XcmV3MultiLocation', + Concrete: 'StagingXcmV3MultiLocation', Abstract: '[u8;32]' } }, /** - * Lookup53: xcm::v3::multilocation::MultiLocation + * Lookup53: staging_xcm::v3::multilocation::MultiLocation **/ - XcmV3MultiLocation: { + StagingXcmV3MultiLocation: { parents: 'u8', - interior: 'XcmV3Junctions' + interior: 'StagingXcmV3Junctions' }, /** - * Lookup54: xcm::v3::junctions::Junctions + * Lookup54: staging_xcm::v3::junctions::Junctions **/ - XcmV3Junctions: { + StagingXcmV3Junctions: { _enum: { Here: 'Null', - X1: 'XcmV3Junction', - X2: '(XcmV3Junction,XcmV3Junction)', - X3: '(XcmV3Junction,XcmV3Junction,XcmV3Junction)', - X4: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', - X5: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', - X6: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', - X7: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)', - X8: '(XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction,XcmV3Junction)' + X1: 'StagingXcmV3Junction', + X2: '(StagingXcmV3Junction,StagingXcmV3Junction)', + X3: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)', + X4: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)', + X5: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)', + X6: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)', + X7: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)', + X8: '(StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction,StagingXcmV3Junction)' } }, /** - * Lookup55: xcm::v3::junction::Junction + * Lookup55: staging_xcm::v3::junction::Junction **/ - XcmV3Junction: { + StagingXcmV3Junction: { _enum: { Parachain: 'Compact', AccountId32: { - network: 'Option', + network: 'Option', id: '[u8;32]', }, AccountIndex64: { - network: 'Option', + network: 'Option', index: 'Compact', }, AccountKey20: { - network: 'Option', + network: 'Option', key: '[u8;20]', }, PalletInstance: 'u8', @@ -531,16 +531,16 @@ export default { }, OnlyChild: 'Null', Plurality: { - id: 'XcmV3JunctionBodyId', - part: 'XcmV3JunctionBodyPart', + id: 'StagingXcmV3JunctionBodyId', + part: 'StagingXcmV3JunctionBodyPart', }, - GlobalConsensus: 'XcmV3JunctionNetworkId' + GlobalConsensus: 'StagingXcmV3JunctionNetworkId' } }, /** - * Lookup58: xcm::v3::junction::NetworkId + * Lookup58: staging_xcm::v3::junction::NetworkId **/ - XcmV3JunctionNetworkId: { + StagingXcmV3JunctionNetworkId: { _enum: { ByGenesis: '[u8;32]', ByFork: { @@ -560,9 +560,9 @@ export default { } }, /** - * Lookup60: xcm::v3::junction::BodyId + * Lookup60: staging_xcm::v3::junction::BodyId **/ - XcmV3JunctionBodyId: { + StagingXcmV3JunctionBodyId: { _enum: { Unit: 'Null', Moniker: '[u8;4]', @@ -577,9 +577,9 @@ export default { } }, /** - * Lookup61: xcm::v3::junction::BodyPart + * Lookup61: staging_xcm::v3::junction::BodyPart **/ - XcmV3JunctionBodyPart: { + StagingXcmV3JunctionBodyPart: { _enum: { Voice: 'Null', Members: { @@ -600,18 +600,18 @@ export default { } }, /** - * Lookup62: xcm::v3::multiasset::Fungibility + * Lookup62: staging_xcm::v3::multiasset::Fungibility **/ - XcmV3MultiassetFungibility: { + StagingXcmV3MultiassetFungibility: { _enum: { Fungible: 'Compact', - NonFungible: 'XcmV3MultiassetAssetInstance' + NonFungible: 'StagingXcmV3MultiassetAssetInstance' } }, /** - * Lookup63: xcm::v3::multiasset::AssetInstance + * Lookup63: staging_xcm::v3::multiasset::AssetInstance **/ - XcmV3MultiassetAssetInstance: { + StagingXcmV3MultiassetAssetInstance: { _enum: { Undefined: 'Null', Index: 'Compact', @@ -627,91 +627,99 @@ export default { OrmlTokensModuleEvent: { _enum: { Endowed: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, DustLost: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, Transfer: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', from: 'AccountId32', to: 'AccountId32', amount: 'u128', }, Reserved: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, Unreserved: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, ReserveRepatriated: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', from: 'AccountId32', to: 'AccountId32', amount: 'u128', status: 'FrameSupportTokensMiscBalanceStatus', }, BalanceSet: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', free: 'u128', reserved: 'u128', }, TotalIssuanceSet: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'u128', }, Withdrawn: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, Slashed: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', freeAmount: 'u128', reservedAmount: 'u128', }, Deposited: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, LockSet: { lockId: '[u8;8]', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, LockRemoved: { lockId: '[u8;8]', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', }, Locked: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', amount: 'u128', }, Unlocked: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', who: 'AccountId32', + amount: 'u128', + }, + Issued: { + currencyId: 'PalletForeignAssetsAssetId', + amount: 'u128', + }, + Rescinded: { + currencyId: 'PalletForeignAssetsAssetId', amount: 'u128' } } }, /** - * Lookup67: pallet_foreign_assets::AssetIds + * Lookup67: pallet_foreign_assets::AssetId **/ - PalletForeignAssetsAssetIds: { + PalletForeignAssetsAssetId: { _enum: { ForeignAssetId: 'u32', NativeAssetId: 'PalletForeignAssetsNativeCurrency' @@ -1227,15 +1235,15 @@ export default { * Lookup99: cumulus_primitives_parachain_inherent::ParachainInherentData **/ CumulusPrimitivesParachainInherentParachainInherentData: { - validationData: 'PolkadotPrimitivesV4PersistedValidationData', + validationData: 'PolkadotPrimitivesV5PersistedValidationData', relayChainState: 'SpTrieStorageProof', downwardMessages: 'Vec', horizontalMessages: 'BTreeMap>' }, /** - * Lookup100: polkadot_primitives::v4::PersistedValidationData + * Lookup100: polkadot_primitives::v5::PersistedValidationData **/ - PolkadotPrimitivesV4PersistedValidationData: { + PolkadotPrimitivesV5PersistedValidationData: { parentHead: 'Bytes', relayParentNumber: 'u32', relayParentStorageRoot: 'H256', @@ -1444,93 +1452,93 @@ export default { OrmlXtokensModuleCall: { _enum: { transfer: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'u128', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit', + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit', }, transfer_multiasset: { - asset: 'XcmVersionedMultiAsset', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit', + asset: 'StagingXcmVersionedMultiAsset', + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit', }, transfer_with_fee: { - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'u128', fee: 'u128', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit', + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit', }, transfer_multiasset_with_fee: { - asset: 'XcmVersionedMultiAsset', - fee: 'XcmVersionedMultiAsset', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit', + asset: 'StagingXcmVersionedMultiAsset', + fee: 'StagingXcmVersionedMultiAsset', + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit', }, transfer_multicurrencies: { - currencies: 'Vec<(PalletForeignAssetsAssetIds,u128)>', + currencies: 'Vec<(PalletForeignAssetsAssetId,u128)>', feeItem: 'u32', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit', + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit', }, transfer_multiassets: { - assets: 'XcmVersionedMultiAssets', + assets: 'StagingXcmVersionedMultiAssets', feeItem: 'u32', - dest: 'XcmVersionedMultiLocation', - destWeightLimit: 'XcmV3WeightLimit' + dest: 'StagingXcmVersionedMultiLocation', + destWeightLimit: 'StagingXcmV3WeightLimit' } } }, /** - * Lookup128: xcm::VersionedMultiLocation + * Lookup128: staging_xcm::VersionedMultiLocation **/ - XcmVersionedMultiLocation: { + StagingXcmVersionedMultiLocation: { _enum: { __Unused0: 'Null', - V2: 'XcmV2MultiLocation', + V2: 'StagingXcmV2MultiLocation', __Unused2: 'Null', - V3: 'XcmV3MultiLocation' + V3: 'StagingXcmV3MultiLocation' } }, /** - * Lookup129: xcm::v2::multilocation::MultiLocation + * Lookup129: staging_xcm::v2::multilocation::MultiLocation **/ - XcmV2MultiLocation: { + StagingXcmV2MultiLocation: { parents: 'u8', - interior: 'XcmV2MultilocationJunctions' + interior: 'StagingXcmV2MultilocationJunctions' }, /** - * Lookup130: xcm::v2::multilocation::Junctions + * Lookup130: staging_xcm::v2::multilocation::Junctions **/ - XcmV2MultilocationJunctions: { + StagingXcmV2MultilocationJunctions: { _enum: { Here: 'Null', - X1: 'XcmV2Junction', - X2: '(XcmV2Junction,XcmV2Junction)', - X3: '(XcmV2Junction,XcmV2Junction,XcmV2Junction)', - X4: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', - X5: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', - X6: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', - X7: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)', - X8: '(XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction,XcmV2Junction)' + X1: 'StagingXcmV2Junction', + X2: '(StagingXcmV2Junction,StagingXcmV2Junction)', + X3: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)', + X4: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)', + X5: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)', + X6: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)', + X7: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)', + X8: '(StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction,StagingXcmV2Junction)' } }, /** - * Lookup131: xcm::v2::junction::Junction + * Lookup131: staging_xcm::v2::junction::Junction **/ - XcmV2Junction: { + StagingXcmV2Junction: { _enum: { Parachain: 'Compact', AccountId32: { - network: 'XcmV2NetworkId', + network: 'StagingXcmV2NetworkId', id: '[u8;32]', }, AccountIndex64: { - network: 'XcmV2NetworkId', + network: 'StagingXcmV2NetworkId', index: 'Compact', }, AccountKey20: { - network: 'XcmV2NetworkId', + network: 'StagingXcmV2NetworkId', key: '[u8;20]', }, PalletInstance: 'u8', @@ -1538,15 +1546,15 @@ export default { GeneralKey: 'Bytes', OnlyChild: 'Null', Plurality: { - id: 'XcmV2BodyId', - part: 'XcmV2BodyPart' + id: 'StagingXcmV2BodyId', + part: 'StagingXcmV2BodyPart' } } }, /** - * Lookup132: xcm::v2::NetworkId + * Lookup132: staging_xcm::v2::NetworkId **/ - XcmV2NetworkId: { + StagingXcmV2NetworkId: { _enum: { Any: 'Null', Named: 'Bytes', @@ -1555,9 +1563,9 @@ export default { } }, /** - * Lookup134: xcm::v2::BodyId + * Lookup134: staging_xcm::v2::BodyId **/ - XcmV2BodyId: { + StagingXcmV2BodyId: { _enum: { Unit: 'Null', Named: 'Bytes', @@ -1572,9 +1580,9 @@ export default { } }, /** - * Lookup135: xcm::v2::BodyPart + * Lookup135: staging_xcm::v2::BodyPart **/ - XcmV2BodyPart: { + StagingXcmV2BodyPart: { _enum: { Voice: 'Null', Members: { @@ -1595,54 +1603,54 @@ export default { } }, /** - * Lookup136: xcm::v3::WeightLimit + * Lookup136: staging_xcm::v3::WeightLimit **/ - XcmV3WeightLimit: { + StagingXcmV3WeightLimit: { _enum: { Unlimited: 'Null', Limited: 'SpWeightsWeightV2Weight' } }, /** - * Lookup137: xcm::VersionedMultiAsset + * Lookup137: staging_xcm::VersionedMultiAsset **/ - XcmVersionedMultiAsset: { + StagingXcmVersionedMultiAsset: { _enum: { __Unused0: 'Null', - V2: 'XcmV2MultiAsset', + V2: 'StagingXcmV2MultiAsset', __Unused2: 'Null', - V3: 'XcmV3MultiAsset' + V3: 'StagingXcmV3MultiAsset' } }, /** - * Lookup138: xcm::v2::multiasset::MultiAsset + * Lookup138: staging_xcm::v2::multiasset::MultiAsset **/ - XcmV2MultiAsset: { - id: 'XcmV2MultiassetAssetId', - fun: 'XcmV2MultiassetFungibility' + StagingXcmV2MultiAsset: { + id: 'StagingXcmV2MultiassetAssetId', + fun: 'StagingXcmV2MultiassetFungibility' }, /** - * Lookup139: xcm::v2::multiasset::AssetId + * Lookup139: staging_xcm::v2::multiasset::AssetId **/ - XcmV2MultiassetAssetId: { + StagingXcmV2MultiassetAssetId: { _enum: { - Concrete: 'XcmV2MultiLocation', + Concrete: 'StagingXcmV2MultiLocation', Abstract: 'Bytes' } }, /** - * Lookup140: xcm::v2::multiasset::Fungibility + * Lookup140: staging_xcm::v2::multiasset::Fungibility **/ - XcmV2MultiassetFungibility: { + StagingXcmV2MultiassetFungibility: { _enum: { Fungible: 'Compact', - NonFungible: 'XcmV2MultiassetAssetInstance' + NonFungible: 'StagingXcmV2MultiassetAssetInstance' } }, /** - * Lookup141: xcm::v2::multiasset::AssetInstance + * Lookup141: staging_xcm::v2::multiasset::AssetInstance **/ - XcmV2MultiassetAssetInstance: { + StagingXcmV2MultiassetAssetInstance: { _enum: { Undefined: 'Null', Index: 'Compact', @@ -1654,20 +1662,20 @@ export default { } }, /** - * Lookup144: xcm::VersionedMultiAssets + * Lookup144: staging_xcm::VersionedMultiAssets **/ - XcmVersionedMultiAssets: { + StagingXcmVersionedMultiAssets: { _enum: { __Unused0: 'Null', - V2: 'XcmV2MultiassetMultiAssets', + V2: 'StagingXcmV2MultiassetMultiAssets', __Unused2: 'Null', - V3: 'XcmV3MultiassetMultiAssets' + V3: 'StagingXcmV3MultiassetMultiAssets' } }, /** - * Lookup145: xcm::v2::multiasset::MultiAssets + * Lookup145: staging_xcm::v2::multiasset::MultiAssets **/ - XcmV2MultiassetMultiAssets: 'Vec', + StagingXcmV2MultiassetMultiAssets: 'Vec', /** * Lookup147: orml_tokens::module::Call **/ @@ -1675,28 +1683,28 @@ export default { _enum: { transfer: { dest: 'MultiAddress', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'Compact', }, transfer_all: { dest: 'MultiAddress', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', keepAlive: 'bool', }, transfer_keep_alive: { dest: 'MultiAddress', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'Compact', }, force_transfer: { source: 'MultiAddress', dest: 'MultiAddress', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', amount: 'Compact', }, set_balance: { who: 'MultiAddress', - currencyId: 'PalletForeignAssetsAssetIds', + currencyId: 'PalletForeignAssetsAssetId', newFree: 'Compact', newReserved: 'Compact' } @@ -2201,8 +2209,8 @@ export default { **/ PalletXcmOrigin: { _enum: { - Xcm: 'XcmV3MultiLocation', - Response: 'XcmV3MultiLocation' + Xcm: 'StagingXcmV3MultiLocation', + Response: 'StagingXcmV3MultiLocation' } }, /** @@ -2330,51 +2338,51 @@ export default { PalletXcmCall: { _enum: { send: { - dest: 'XcmVersionedMultiLocation', - message: 'XcmVersionedXcm', + dest: 'StagingXcmVersionedMultiLocation', + message: 'StagingXcmVersionedXcm', }, teleport_assets: { - dest: 'XcmVersionedMultiLocation', - beneficiary: 'XcmVersionedMultiLocation', - assets: 'XcmVersionedMultiAssets', + dest: 'StagingXcmVersionedMultiLocation', + beneficiary: 'StagingXcmVersionedMultiLocation', + assets: 'StagingXcmVersionedMultiAssets', feeAssetItem: 'u32', }, reserve_transfer_assets: { - dest: 'XcmVersionedMultiLocation', - beneficiary: 'XcmVersionedMultiLocation', - assets: 'XcmVersionedMultiAssets', + dest: 'StagingXcmVersionedMultiLocation', + beneficiary: 'StagingXcmVersionedMultiLocation', + assets: 'StagingXcmVersionedMultiAssets', feeAssetItem: 'u32', }, execute: { - message: 'XcmVersionedXcm', + message: 'StagingXcmVersionedXcm', maxWeight: 'SpWeightsWeightV2Weight', }, force_xcm_version: { - location: 'XcmV3MultiLocation', - xcmVersion: 'u32', + location: 'StagingXcmV3MultiLocation', + version: 'u32', }, force_default_xcm_version: { maybeXcmVersion: 'Option', }, force_subscribe_version_notify: { - location: 'XcmVersionedMultiLocation', + location: 'StagingXcmVersionedMultiLocation', }, force_unsubscribe_version_notify: { - location: 'XcmVersionedMultiLocation', + location: 'StagingXcmVersionedMultiLocation', }, limited_reserve_transfer_assets: { - dest: 'XcmVersionedMultiLocation', - beneficiary: 'XcmVersionedMultiLocation', - assets: 'XcmVersionedMultiAssets', + dest: 'StagingXcmVersionedMultiLocation', + beneficiary: 'StagingXcmVersionedMultiLocation', + assets: 'StagingXcmVersionedMultiAssets', feeAssetItem: 'u32', - weightLimit: 'XcmV3WeightLimit', + weightLimit: 'StagingXcmV3WeightLimit', }, limited_teleport_assets: { - dest: 'XcmVersionedMultiLocation', - beneficiary: 'XcmVersionedMultiLocation', - assets: 'XcmVersionedMultiAssets', + dest: 'StagingXcmVersionedMultiLocation', + beneficiary: 'StagingXcmVersionedMultiLocation', + assets: 'StagingXcmVersionedMultiAssets', feeAssetItem: 'u32', - weightLimit: 'XcmV3WeightLimit', + weightLimit: 'StagingXcmV3WeightLimit', }, force_suspension: { suspended: 'bool' @@ -2382,46 +2390,46 @@ export default { } }, /** - * Lookup225: xcm::VersionedXcm + * Lookup225: staging_xcm::VersionedXcm **/ - XcmVersionedXcm: { + StagingXcmVersionedXcm: { _enum: { __Unused0: 'Null', __Unused1: 'Null', - V2: 'XcmV2Xcm', - V3: 'XcmV3Xcm' + V2: 'StagingXcmV2Xcm', + V3: 'StagingXcmV3Xcm' } }, /** - * Lookup226: xcm::v2::Xcm + * Lookup226: staging_xcm::v2::Xcm **/ - XcmV2Xcm: 'Vec', + StagingXcmV2Xcm: 'Vec', /** - * Lookup228: xcm::v2::Instruction + * Lookup228: staging_xcm::v2::Instruction **/ - XcmV2Instruction: { + StagingXcmV2Instruction: { _enum: { - WithdrawAsset: 'XcmV2MultiassetMultiAssets', - ReserveAssetDeposited: 'XcmV2MultiassetMultiAssets', - ReceiveTeleportedAsset: 'XcmV2MultiassetMultiAssets', + WithdrawAsset: 'StagingXcmV2MultiassetMultiAssets', + ReserveAssetDeposited: 'StagingXcmV2MultiassetMultiAssets', + ReceiveTeleportedAsset: 'StagingXcmV2MultiassetMultiAssets', QueryResponse: { queryId: 'Compact', - response: 'XcmV2Response', + response: 'StagingXcmV2Response', maxWeight: 'Compact', }, TransferAsset: { - assets: 'XcmV2MultiassetMultiAssets', - beneficiary: 'XcmV2MultiLocation', + assets: 'StagingXcmV2MultiassetMultiAssets', + beneficiary: 'StagingXcmV2MultiLocation', }, TransferReserveAsset: { - assets: 'XcmV2MultiassetMultiAssets', - dest: 'XcmV2MultiLocation', - xcm: 'XcmV2Xcm', + assets: 'StagingXcmV2MultiassetMultiAssets', + dest: 'StagingXcmV2MultiLocation', + xcm: 'StagingXcmV2Xcm', }, Transact: { - originType: 'XcmV2OriginKind', + originType: 'StagingXcmV2OriginKind', requireWeightAtMost: 'Compact', - call: 'XcmDoubleEncoded', + call: 'StagingXcmDoubleEncoded', }, HrmpNewChannelOpenRequest: { sender: 'Compact', @@ -2437,54 +2445,54 @@ export default { recipient: 'Compact', }, ClearOrigin: 'Null', - DescendOrigin: 'XcmV2MultilocationJunctions', + DescendOrigin: 'StagingXcmV2MultilocationJunctions', ReportError: { queryId: 'Compact', - dest: 'XcmV2MultiLocation', + dest: 'StagingXcmV2MultiLocation', maxResponseWeight: 'Compact', }, DepositAsset: { - assets: 'XcmV2MultiassetMultiAssetFilter', + assets: 'StagingXcmV2MultiassetMultiAssetFilter', maxAssets: 'Compact', - beneficiary: 'XcmV2MultiLocation', + beneficiary: 'StagingXcmV2MultiLocation', }, DepositReserveAsset: { - assets: 'XcmV2MultiassetMultiAssetFilter', + assets: 'StagingXcmV2MultiassetMultiAssetFilter', maxAssets: 'Compact', - dest: 'XcmV2MultiLocation', - xcm: 'XcmV2Xcm', + dest: 'StagingXcmV2MultiLocation', + xcm: 'StagingXcmV2Xcm', }, ExchangeAsset: { - give: 'XcmV2MultiassetMultiAssetFilter', - receive: 'XcmV2MultiassetMultiAssets', + give: 'StagingXcmV2MultiassetMultiAssetFilter', + receive: 'StagingXcmV2MultiassetMultiAssets', }, InitiateReserveWithdraw: { - assets: 'XcmV2MultiassetMultiAssetFilter', - reserve: 'XcmV2MultiLocation', - xcm: 'XcmV2Xcm', + assets: 'StagingXcmV2MultiassetMultiAssetFilter', + reserve: 'StagingXcmV2MultiLocation', + xcm: 'StagingXcmV2Xcm', }, InitiateTeleport: { - assets: 'XcmV2MultiassetMultiAssetFilter', - dest: 'XcmV2MultiLocation', - xcm: 'XcmV2Xcm', + assets: 'StagingXcmV2MultiassetMultiAssetFilter', + dest: 'StagingXcmV2MultiLocation', + xcm: 'StagingXcmV2Xcm', }, QueryHolding: { queryId: 'Compact', - dest: 'XcmV2MultiLocation', - assets: 'XcmV2MultiassetMultiAssetFilter', + dest: 'StagingXcmV2MultiLocation', + assets: 'StagingXcmV2MultiassetMultiAssetFilter', maxResponseWeight: 'Compact', }, BuyExecution: { - fees: 'XcmV2MultiAsset', - weightLimit: 'XcmV2WeightLimit', + fees: 'StagingXcmV2MultiAsset', + weightLimit: 'StagingXcmV2WeightLimit', }, RefundSurplus: 'Null', - SetErrorHandler: 'XcmV2Xcm', - SetAppendix: 'XcmV2Xcm', + SetErrorHandler: 'StagingXcmV2Xcm', + SetAppendix: 'StagingXcmV2Xcm', ClearError: 'Null', ClaimAsset: { - assets: 'XcmV2MultiassetMultiAssets', - ticket: 'XcmV2MultiLocation', + assets: 'StagingXcmV2MultiassetMultiAssets', + ticket: 'StagingXcmV2MultiLocation', }, Trap: 'Compact', SubscribeVersion: { @@ -2495,20 +2503,20 @@ export default { } }, /** - * Lookup229: xcm::v2::Response + * Lookup229: staging_xcm::v2::Response **/ - XcmV2Response: { + StagingXcmV2Response: { _enum: { Null: 'Null', - Assets: 'XcmV2MultiassetMultiAssets', - ExecutionResult: 'Option<(u32,XcmV2TraitsError)>', + Assets: 'StagingXcmV2MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,StagingXcmV2TraitsError)>', Version: 'u32' } }, /** - * Lookup232: xcm::v2::traits::Error + * Lookup232: staging_xcm::v2::traits::Error **/ - XcmV2TraitsError: { + StagingXcmV2TraitsError: { _enum: { Overflow: 'Null', Unimplemented: 'Null', @@ -2539,84 +2547,84 @@ export default { } }, /** - * Lookup233: xcm::v2::OriginKind + * Lookup233: staging_xcm::v2::OriginKind **/ - XcmV2OriginKind: { + StagingXcmV2OriginKind: { _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm'] }, /** - * Lookup234: xcm::double_encoded::DoubleEncoded + * Lookup234: staging_xcm::double_encoded::DoubleEncoded **/ - XcmDoubleEncoded: { + StagingXcmDoubleEncoded: { encoded: 'Bytes' }, /** - * Lookup235: xcm::v2::multiasset::MultiAssetFilter + * Lookup235: staging_xcm::v2::multiasset::MultiAssetFilter **/ - XcmV2MultiassetMultiAssetFilter: { + StagingXcmV2MultiassetMultiAssetFilter: { _enum: { - Definite: 'XcmV2MultiassetMultiAssets', - Wild: 'XcmV2MultiassetWildMultiAsset' + Definite: 'StagingXcmV2MultiassetMultiAssets', + Wild: 'StagingXcmV2MultiassetWildMultiAsset' } }, /** - * Lookup236: xcm::v2::multiasset::WildMultiAsset + * Lookup236: staging_xcm::v2::multiasset::WildMultiAsset **/ - XcmV2MultiassetWildMultiAsset: { + StagingXcmV2MultiassetWildMultiAsset: { _enum: { All: 'Null', AllOf: { - id: 'XcmV2MultiassetAssetId', - fun: 'XcmV2MultiassetWildFungibility' + id: 'StagingXcmV2MultiassetAssetId', + fun: 'StagingXcmV2MultiassetWildFungibility' } } }, /** - * Lookup237: xcm::v2::multiasset::WildFungibility + * Lookup237: staging_xcm::v2::multiasset::WildFungibility **/ - XcmV2MultiassetWildFungibility: { + StagingXcmV2MultiassetWildFungibility: { _enum: ['Fungible', 'NonFungible'] }, /** - * Lookup238: xcm::v2::WeightLimit + * Lookup238: staging_xcm::v2::WeightLimit **/ - XcmV2WeightLimit: { + StagingXcmV2WeightLimit: { _enum: { Unlimited: 'Null', Limited: 'Compact' } }, /** - * Lookup239: xcm::v3::Xcm + * Lookup239: staging_xcm::v3::Xcm **/ - XcmV3Xcm: 'Vec', + StagingXcmV3Xcm: 'Vec', /** - * Lookup241: xcm::v3::Instruction + * Lookup241: staging_xcm::v3::Instruction **/ - XcmV3Instruction: { + StagingXcmV3Instruction: { _enum: { - WithdrawAsset: 'XcmV3MultiassetMultiAssets', - ReserveAssetDeposited: 'XcmV3MultiassetMultiAssets', - ReceiveTeleportedAsset: 'XcmV3MultiassetMultiAssets', + WithdrawAsset: 'StagingXcmV3MultiassetMultiAssets', + ReserveAssetDeposited: 'StagingXcmV3MultiassetMultiAssets', + ReceiveTeleportedAsset: 'StagingXcmV3MultiassetMultiAssets', QueryResponse: { queryId: 'Compact', - response: 'XcmV3Response', + response: 'StagingXcmV3Response', maxWeight: 'SpWeightsWeightV2Weight', - querier: 'Option', + querier: 'Option', }, TransferAsset: { - assets: 'XcmV3MultiassetMultiAssets', - beneficiary: 'XcmV3MultiLocation', + assets: 'StagingXcmV3MultiassetMultiAssets', + beneficiary: 'StagingXcmV3MultiLocation', }, TransferReserveAsset: { - assets: 'XcmV3MultiassetMultiAssets', - dest: 'XcmV3MultiLocation', - xcm: 'XcmV3Xcm', + assets: 'StagingXcmV3MultiassetMultiAssets', + dest: 'StagingXcmV3MultiLocation', + xcm: 'StagingXcmV3Xcm', }, Transact: { - originKind: 'XcmV2OriginKind', + originKind: 'StagingXcmV2OriginKind', requireWeightAtMost: 'SpWeightsWeightV2Weight', - call: 'XcmDoubleEncoded', + call: 'StagingXcmDoubleEncoded', }, HrmpNewChannelOpenRequest: { sender: 'Compact', @@ -2632,47 +2640,47 @@ export default { recipient: 'Compact', }, ClearOrigin: 'Null', - DescendOrigin: 'XcmV3Junctions', - ReportError: 'XcmV3QueryResponseInfo', + DescendOrigin: 'StagingXcmV3Junctions', + ReportError: 'StagingXcmV3QueryResponseInfo', DepositAsset: { - assets: 'XcmV3MultiassetMultiAssetFilter', - beneficiary: 'XcmV3MultiLocation', + assets: 'StagingXcmV3MultiassetMultiAssetFilter', + beneficiary: 'StagingXcmV3MultiLocation', }, DepositReserveAsset: { - assets: 'XcmV3MultiassetMultiAssetFilter', - dest: 'XcmV3MultiLocation', - xcm: 'XcmV3Xcm', + assets: 'StagingXcmV3MultiassetMultiAssetFilter', + dest: 'StagingXcmV3MultiLocation', + xcm: 'StagingXcmV3Xcm', }, ExchangeAsset: { - give: 'XcmV3MultiassetMultiAssetFilter', - want: 'XcmV3MultiassetMultiAssets', + give: 'StagingXcmV3MultiassetMultiAssetFilter', + want: 'StagingXcmV3MultiassetMultiAssets', maximal: 'bool', }, InitiateReserveWithdraw: { - assets: 'XcmV3MultiassetMultiAssetFilter', - reserve: 'XcmV3MultiLocation', - xcm: 'XcmV3Xcm', + assets: 'StagingXcmV3MultiassetMultiAssetFilter', + reserve: 'StagingXcmV3MultiLocation', + xcm: 'StagingXcmV3Xcm', }, InitiateTeleport: { - assets: 'XcmV3MultiassetMultiAssetFilter', - dest: 'XcmV3MultiLocation', - xcm: 'XcmV3Xcm', + assets: 'StagingXcmV3MultiassetMultiAssetFilter', + dest: 'StagingXcmV3MultiLocation', + xcm: 'StagingXcmV3Xcm', }, ReportHolding: { - responseInfo: 'XcmV3QueryResponseInfo', - assets: 'XcmV3MultiassetMultiAssetFilter', + responseInfo: 'StagingXcmV3QueryResponseInfo', + assets: 'StagingXcmV3MultiassetMultiAssetFilter', }, BuyExecution: { - fees: 'XcmV3MultiAsset', - weightLimit: 'XcmV3WeightLimit', + fees: 'StagingXcmV3MultiAsset', + weightLimit: 'StagingXcmV3WeightLimit', }, RefundSurplus: 'Null', - SetErrorHandler: 'XcmV3Xcm', - SetAppendix: 'XcmV3Xcm', + SetErrorHandler: 'StagingXcmV3Xcm', + SetAppendix: 'StagingXcmV3Xcm', ClearError: 'Null', ClaimAsset: { - assets: 'XcmV3MultiassetMultiAssets', - ticket: 'XcmV3MultiLocation', + assets: 'StagingXcmV3MultiassetMultiAssets', + ticket: 'StagingXcmV3MultiLocation', }, Trap: 'Compact', SubscribeVersion: { @@ -2680,14 +2688,14 @@ export default { maxResponseWeight: 'SpWeightsWeightV2Weight', }, UnsubscribeVersion: 'Null', - BurnAsset: 'XcmV3MultiassetMultiAssets', - ExpectAsset: 'XcmV3MultiassetMultiAssets', - ExpectOrigin: 'Option', - ExpectError: 'Option<(u32,XcmV3TraitsError)>', - ExpectTransactStatus: 'XcmV3MaybeErrorCode', + BurnAsset: 'StagingXcmV3MultiassetMultiAssets', + ExpectAsset: 'StagingXcmV3MultiassetMultiAssets', + ExpectOrigin: 'Option', + ExpectError: 'Option<(u32,StagingXcmV3TraitsError)>', + ExpectTransactStatus: 'StagingXcmV3MaybeErrorCode', QueryPallet: { moduleName: 'Bytes', - responseInfo: 'XcmV3QueryResponseInfo', + responseInfo: 'StagingXcmV3QueryResponseInfo', }, ExpectPallet: { index: 'Compact', @@ -2696,59 +2704,59 @@ export default { crateMajor: 'Compact', minCrateMinor: 'Compact', }, - ReportTransactStatus: 'XcmV3QueryResponseInfo', + ReportTransactStatus: 'StagingXcmV3QueryResponseInfo', ClearTransactStatus: 'Null', - UniversalOrigin: 'XcmV3Junction', + UniversalOrigin: 'StagingXcmV3Junction', ExportMessage: { - network: 'XcmV3JunctionNetworkId', - destination: 'XcmV3Junctions', - xcm: 'XcmV3Xcm', + network: 'StagingXcmV3JunctionNetworkId', + destination: 'StagingXcmV3Junctions', + xcm: 'StagingXcmV3Xcm', }, LockAsset: { - asset: 'XcmV3MultiAsset', - unlocker: 'XcmV3MultiLocation', + asset: 'StagingXcmV3MultiAsset', + unlocker: 'StagingXcmV3MultiLocation', }, UnlockAsset: { - asset: 'XcmV3MultiAsset', - target: 'XcmV3MultiLocation', + asset: 'StagingXcmV3MultiAsset', + target: 'StagingXcmV3MultiLocation', }, NoteUnlockable: { - asset: 'XcmV3MultiAsset', - owner: 'XcmV3MultiLocation', + asset: 'StagingXcmV3MultiAsset', + owner: 'StagingXcmV3MultiLocation', }, RequestUnlock: { - asset: 'XcmV3MultiAsset', - locker: 'XcmV3MultiLocation', + asset: 'StagingXcmV3MultiAsset', + locker: 'StagingXcmV3MultiLocation', }, SetFeesMode: { jitWithdraw: 'bool', }, SetTopic: '[u8;32]', ClearTopic: 'Null', - AliasOrigin: 'XcmV3MultiLocation', + AliasOrigin: 'StagingXcmV3MultiLocation', UnpaidExecution: { - weightLimit: 'XcmV3WeightLimit', - checkOrigin: 'Option' + weightLimit: 'StagingXcmV3WeightLimit', + checkOrigin: 'Option' } } }, /** - * Lookup242: xcm::v3::Response + * Lookup242: staging_xcm::v3::Response **/ - XcmV3Response: { + StagingXcmV3Response: { _enum: { Null: 'Null', - Assets: 'XcmV3MultiassetMultiAssets', - ExecutionResult: 'Option<(u32,XcmV3TraitsError)>', + Assets: 'StagingXcmV3MultiassetMultiAssets', + ExecutionResult: 'Option<(u32,StagingXcmV3TraitsError)>', Version: 'u32', - PalletsInfo: 'Vec', - DispatchResult: 'XcmV3MaybeErrorCode' + PalletsInfo: 'Vec', + DispatchResult: 'StagingXcmV3MaybeErrorCode' } }, /** - * Lookup245: xcm::v3::traits::Error + * Lookup245: staging_xcm::v3::traits::Error **/ - XcmV3TraitsError: { + StagingXcmV3TraitsError: { _enum: { Overflow: 'Null', Unimplemented: 'Null', @@ -2793,9 +2801,9 @@ export default { } }, /** - * Lookup247: xcm::v3::PalletInfo + * Lookup247: staging_xcm::v3::PalletInfo **/ - XcmV3PalletInfo: { + StagingXcmV3PalletInfo: { index: 'Compact', name: 'Bytes', moduleName: 'Bytes', @@ -2804,9 +2812,9 @@ export default { patch: 'Compact' }, /** - * Lookup250: xcm::v3::MaybeErrorCode + * Lookup250: staging_xcm::v3::MaybeErrorCode **/ - XcmV3MaybeErrorCode: { + StagingXcmV3MaybeErrorCode: { _enum: { Success: 'Null', Error: 'Bytes', @@ -2814,44 +2822,44 @@ export default { } }, /** - * Lookup253: xcm::v3::QueryResponseInfo + * Lookup253: staging_xcm::v3::QueryResponseInfo **/ - XcmV3QueryResponseInfo: { - destination: 'XcmV3MultiLocation', + StagingXcmV3QueryResponseInfo: { + destination: 'StagingXcmV3MultiLocation', queryId: 'Compact', maxWeight: 'SpWeightsWeightV2Weight' }, /** - * Lookup254: xcm::v3::multiasset::MultiAssetFilter + * Lookup254: staging_xcm::v3::multiasset::MultiAssetFilter **/ - XcmV3MultiassetMultiAssetFilter: { + StagingXcmV3MultiassetMultiAssetFilter: { _enum: { - Definite: 'XcmV3MultiassetMultiAssets', - Wild: 'XcmV3MultiassetWildMultiAsset' + Definite: 'StagingXcmV3MultiassetMultiAssets', + Wild: 'StagingXcmV3MultiassetWildMultiAsset' } }, /** - * Lookup255: xcm::v3::multiasset::WildMultiAsset + * Lookup255: staging_xcm::v3::multiasset::WildMultiAsset **/ - XcmV3MultiassetWildMultiAsset: { + StagingXcmV3MultiassetWildMultiAsset: { _enum: { All: 'Null', AllOf: { - id: 'XcmV3MultiassetAssetId', - fun: 'XcmV3MultiassetWildFungibility', + id: 'StagingXcmV3MultiassetAssetId', + fun: 'StagingXcmV3MultiassetWildFungibility', }, AllCounted: 'Compact', AllOfCounted: { - id: 'XcmV3MultiassetAssetId', - fun: 'XcmV3MultiassetWildFungibility', + id: 'StagingXcmV3MultiassetAssetId', + fun: 'StagingXcmV3MultiassetWildFungibility', count: 'Compact' } } }, /** - * Lookup256: xcm::v3::multiasset::WildFungibility + * Lookup256: staging_xcm::v3::multiasset::WildFungibility **/ - XcmV3MultiassetWildFungibility: { + StagingXcmV3MultiassetWildFungibility: { _enum: ['Fungible', 'NonFungible'] }, /** @@ -3280,12 +3288,12 @@ export default { _enum: { register_foreign_asset: { owner: 'AccountId32', - location: 'XcmVersionedMultiLocation', + location: 'StagingXcmVersionedMultiLocation', metadata: 'PalletForeignAssetsModuleAssetMetadata', }, update_foreign_asset: { foreignAssetId: 'u32', - location: 'XcmVersionedMultiLocation', + location: 'StagingXcmVersionedMultiLocation', metadata: 'PalletForeignAssetsModuleAssetMetadata' } } @@ -3478,20 +3486,38 @@ export default { * Lookup361: pallet_maintenance::pallet::Call **/ PalletMaintenanceCall: { + _enum: ['enable', 'disable'] + }, + /** + * Lookup362: pallet_utility::pallet::Call + **/ + PalletUtilityCall: { _enum: { - enable: 'Null', - disable: 'Null', - execute_preimage: { - _alias: { - hash_: 'hash', - }, - hash_: 'H256', - weightBound: 'SpWeightsWeightV2Weight' + batch: { + calls: 'Vec', + }, + as_derivative: { + index: 'u16', + call: 'Call', + }, + batch_all: { + calls: 'Vec', + }, + dispatch_as: { + asOrigin: 'OpalRuntimeOriginCaller', + call: 'Call', + }, + force_batch: { + calls: 'Vec', + }, + with_weight: { + call: 'Call', + weight: 'SpWeightsWeightV2Weight' } } }, /** - * Lookup362: pallet_test_utils::pallet::Call + * Lookup364: pallet_test_utils::pallet::Call **/ PalletTestUtilsCall: { _enum: { @@ -3510,7 +3536,7 @@ export default { } }, /** - * Lookup365: pallet_scheduler::pallet::Event + * Lookup366: pallet_scheduler::pallet::Event **/ PalletSchedulerEvent: { _enum: { @@ -3542,27 +3568,29 @@ export default { } }, /** - * Lookup366: cumulus_pallet_xcmp_queue::pallet::Event + * Lookup367: cumulus_pallet_xcmp_queue::pallet::Event **/ CumulusPalletXcmpQueueEvent: { _enum: { Success: { - messageHash: 'Option<[u8;32]>', + messageHash: '[u8;32]', + messageId: '[u8;32]', weight: 'SpWeightsWeightV2Weight', }, Fail: { - messageHash: 'Option<[u8;32]>', - error: 'XcmV3TraitsError', + messageHash: '[u8;32]', + messageId: '[u8;32]', + error: 'StagingXcmV3TraitsError', weight: 'SpWeightsWeightV2Weight', }, BadVersion: { - messageHash: 'Option<[u8;32]>', + messageHash: '[u8;32]', }, BadFormat: { - messageHash: 'Option<[u8;32]>', + messageHash: '[u8;32]', }, XcmpMessageSent: { - messageHash: 'Option<[u8;32]>', + messageHash: '[u8;32]', }, OverweightEnqueued: { sender: 'u32', @@ -3577,76 +3605,171 @@ export default { } }, /** - * Lookup367: pallet_xcm::pallet::Event + * Lookup368: pallet_xcm::pallet::Event **/ PalletXcmEvent: { _enum: { - Attempted: 'XcmV3TraitsOutcome', - Sent: '(XcmV3MultiLocation,XcmV3MultiLocation,XcmV3Xcm)', - UnexpectedResponse: '(XcmV3MultiLocation,u64)', - ResponseReady: '(u64,XcmV3Response)', - Notified: '(u64,u8,u8)', - NotifyOverweight: '(u64,u8,u8,SpWeightsWeightV2Weight,SpWeightsWeightV2Weight)', - NotifyDispatchError: '(u64,u8,u8)', - NotifyDecodeFailed: '(u64,u8,u8)', - InvalidResponder: '(XcmV3MultiLocation,u64,Option)', - InvalidResponderVersion: '(XcmV3MultiLocation,u64)', - ResponseTaken: 'u64', - AssetsTrapped: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)', - VersionChangeNotified: '(XcmV3MultiLocation,u32,XcmV3MultiassetMultiAssets)', - SupportedVersionChanged: '(XcmV3MultiLocation,u32)', - NotifyTargetSendFail: '(XcmV3MultiLocation,u64,XcmV3TraitsError)', - NotifyTargetMigrationFail: '(XcmVersionedMultiLocation,u64)', - InvalidQuerierVersion: '(XcmV3MultiLocation,u64)', - InvalidQuerier: '(XcmV3MultiLocation,u64,XcmV3MultiLocation,Option)', - VersionNotifyStarted: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', - VersionNotifyRequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', - VersionNotifyUnrequested: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', - FeesPaid: '(XcmV3MultiLocation,XcmV3MultiassetMultiAssets)', - AssetsClaimed: '(H256,XcmV3MultiLocation,XcmVersionedMultiAssets)' - } - }, - /** - * Lookup368: xcm::v3::traits::Outcome - **/ - XcmV3TraitsOutcome: { + Attempted: { + outcome: 'StagingXcmV3TraitsOutcome', + }, + Sent: { + origin: 'StagingXcmV3MultiLocation', + destination: 'StagingXcmV3MultiLocation', + message: 'StagingXcmV3Xcm', + messageId: '[u8;32]', + }, + UnexpectedResponse: { + origin: 'StagingXcmV3MultiLocation', + queryId: 'u64', + }, + ResponseReady: { + queryId: 'u64', + response: 'StagingXcmV3Response', + }, + Notified: { + queryId: 'u64', + palletIndex: 'u8', + callIndex: 'u8', + }, + NotifyOverweight: { + queryId: 'u64', + palletIndex: 'u8', + callIndex: 'u8', + actualWeight: 'SpWeightsWeightV2Weight', + maxBudgetedWeight: 'SpWeightsWeightV2Weight', + }, + NotifyDispatchError: { + queryId: 'u64', + palletIndex: 'u8', + callIndex: 'u8', + }, + NotifyDecodeFailed: { + queryId: 'u64', + palletIndex: 'u8', + callIndex: 'u8', + }, + InvalidResponder: { + origin: 'StagingXcmV3MultiLocation', + queryId: 'u64', + expectedLocation: 'Option', + }, + InvalidResponderVersion: { + origin: 'StagingXcmV3MultiLocation', + queryId: 'u64', + }, + ResponseTaken: { + queryId: 'u64', + }, + AssetsTrapped: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + origin: 'StagingXcmV3MultiLocation', + assets: 'StagingXcmVersionedMultiAssets', + }, + VersionChangeNotified: { + destination: 'StagingXcmV3MultiLocation', + result: 'u32', + cost: 'StagingXcmV3MultiassetMultiAssets', + messageId: '[u8;32]', + }, + SupportedVersionChanged: { + location: 'StagingXcmV3MultiLocation', + version: 'u32', + }, + NotifyTargetSendFail: { + location: 'StagingXcmV3MultiLocation', + queryId: 'u64', + error: 'StagingXcmV3TraitsError', + }, + NotifyTargetMigrationFail: { + location: 'StagingXcmVersionedMultiLocation', + queryId: 'u64', + }, + InvalidQuerierVersion: { + origin: 'StagingXcmV3MultiLocation', + queryId: 'u64', + }, + InvalidQuerier: { + origin: 'StagingXcmV3MultiLocation', + queryId: 'u64', + expectedQuerier: 'StagingXcmV3MultiLocation', + maybeActualQuerier: 'Option', + }, + VersionNotifyStarted: { + destination: 'StagingXcmV3MultiLocation', + cost: 'StagingXcmV3MultiassetMultiAssets', + messageId: '[u8;32]', + }, + VersionNotifyRequested: { + destination: 'StagingXcmV3MultiLocation', + cost: 'StagingXcmV3MultiassetMultiAssets', + messageId: '[u8;32]', + }, + VersionNotifyUnrequested: { + destination: 'StagingXcmV3MultiLocation', + cost: 'StagingXcmV3MultiassetMultiAssets', + messageId: '[u8;32]', + }, + FeesPaid: { + paying: 'StagingXcmV3MultiLocation', + fees: 'StagingXcmV3MultiassetMultiAssets', + }, + AssetsClaimed: { + _alias: { + hash_: 'hash', + }, + hash_: 'H256', + origin: 'StagingXcmV3MultiLocation', + assets: 'StagingXcmVersionedMultiAssets' + } + } + }, + /** + * Lookup369: staging_xcm::v3::traits::Outcome + **/ + StagingXcmV3TraitsOutcome: { _enum: { Complete: 'SpWeightsWeightV2Weight', - Incomplete: '(SpWeightsWeightV2Weight,XcmV3TraitsError)', - Error: 'XcmV3TraitsError' + Incomplete: '(SpWeightsWeightV2Weight,StagingXcmV3TraitsError)', + Error: 'StagingXcmV3TraitsError' } }, /** - * Lookup369: cumulus_pallet_xcm::pallet::Event + * Lookup370: cumulus_pallet_xcm::pallet::Event **/ CumulusPalletXcmEvent: { _enum: { InvalidFormat: '[u8;32]', UnsupportedVersion: '[u8;32]', - ExecutedDownward: '([u8;32],XcmV3TraitsOutcome)' + ExecutedDownward: '([u8;32],StagingXcmV3TraitsOutcome)' } }, /** - * Lookup370: cumulus_pallet_dmp_queue::pallet::Event + * Lookup371: cumulus_pallet_dmp_queue::pallet::Event **/ CumulusPalletDmpQueueEvent: { _enum: { InvalidFormat: { - messageId: '[u8;32]', + messageHash: '[u8;32]', }, UnsupportedVersion: { - messageId: '[u8;32]', + messageHash: '[u8;32]', }, ExecutedDownward: { + messageHash: '[u8;32]', messageId: '[u8;32]', - outcome: 'XcmV3TraitsOutcome', + outcome: 'StagingXcmV3TraitsOutcome', }, WeightExhausted: { + messageHash: '[u8;32]', messageId: '[u8;32]', remainingWeight: 'SpWeightsWeightV2Weight', requiredWeight: 'SpWeightsWeightV2Weight', }, OverweightEnqueued: { + messageHash: '[u8;32]', messageId: '[u8;32]', overweightIndex: 'u64', requiredWeight: 'SpWeightsWeightV2Weight', @@ -3656,12 +3779,12 @@ export default { weightUsed: 'SpWeightsWeightV2Weight', }, MaxMessagesExhausted: { - messageId: '[u8;32]' + messageHash: '[u8;32]' } } }, /** - * Lookup371: pallet_configuration::pallet::Event + * Lookup372: pallet_configuration::pallet::Event **/ PalletConfigurationEvent: { _enum: { @@ -3677,7 +3800,7 @@ export default { } }, /** - * Lookup372: pallet_common::pallet::Event + * Lookup373: pallet_common::pallet::Event **/ PalletCommonEvent: { _enum: { @@ -3706,7 +3829,7 @@ export default { } }, /** - * Lookup373: pallet_structure::pallet::Event + * Lookup374: pallet_structure::pallet::Event **/ PalletStructureEvent: { _enum: { @@ -3714,7 +3837,7 @@ export default { } }, /** - * Lookup374: pallet_app_promotion::pallet::Event + * Lookup375: pallet_app_promotion::pallet::Event **/ PalletAppPromotionEvent: { _enum: { @@ -3725,32 +3848,32 @@ export default { } }, /** - * Lookup375: pallet_foreign_assets::module::Event + * Lookup376: pallet_foreign_assets::module::Event **/ PalletForeignAssetsModuleEvent: { _enum: { ForeignAssetRegistered: { assetId: 'u32', - assetAddress: 'XcmV3MultiLocation', + assetAddress: 'StagingXcmV3MultiLocation', metadata: 'PalletForeignAssetsModuleAssetMetadata', }, ForeignAssetUpdated: { assetId: 'u32', - assetAddress: 'XcmV3MultiLocation', + assetAddress: 'StagingXcmV3MultiLocation', metadata: 'PalletForeignAssetsModuleAssetMetadata', }, AssetRegistered: { - assetId: 'PalletForeignAssetsAssetIds', + assetId: 'PalletForeignAssetsAssetId', metadata: 'PalletForeignAssetsModuleAssetMetadata', }, AssetUpdated: { - assetId: 'PalletForeignAssetsAssetIds', + assetId: 'PalletForeignAssetsAssetId', metadata: 'PalletForeignAssetsModuleAssetMetadata' } } }, /** - * Lookup376: pallet_evm::pallet::Event + * Lookup377: pallet_evm::pallet::Event **/ PalletEvmEvent: { _enum: { @@ -3772,7 +3895,7 @@ export default { } }, /** - * Lookup377: pallet_ethereum::pallet::Event + * Lookup378: pallet_ethereum::pallet::Event **/ PalletEthereumEvent: { _enum: { @@ -3786,7 +3909,7 @@ export default { } }, /** - * Lookup378: evm_core::error::ExitReason + * Lookup379: evm_core::error::ExitReason **/ EvmCoreErrorExitReason: { _enum: { @@ -3797,13 +3920,13 @@ export default { } }, /** - * Lookup379: evm_core::error::ExitSucceed + * Lookup380: evm_core::error::ExitSucceed **/ EvmCoreErrorExitSucceed: { _enum: ['Stopped', 'Returned', 'Suicided'] }, /** - * Lookup380: evm_core::error::ExitError + * Lookup381: evm_core::error::ExitError **/ EvmCoreErrorExitError: { _enum: { @@ -3826,13 +3949,13 @@ export default { } }, /** - * Lookup384: evm_core::error::ExitRevert + * Lookup385: evm_core::error::ExitRevert **/ EvmCoreErrorExitRevert: { _enum: ['Reverted'] }, /** - * Lookup385: evm_core::error::ExitFatal + * Lookup386: evm_core::error::ExitFatal **/ EvmCoreErrorExitFatal: { _enum: { @@ -3843,7 +3966,7 @@ export default { } }, /** - * Lookup386: pallet_evm_contract_helpers::pallet::Event + * Lookup387: pallet_evm_contract_helpers::pallet::Event **/ PalletEvmContractHelpersEvent: { _enum: { @@ -3853,25 +3976,45 @@ export default { } }, /** - * Lookup387: pallet_evm_migration::pallet::Event + * Lookup388: pallet_evm_migration::pallet::Event **/ PalletEvmMigrationEvent: { _enum: ['TestEvent'] }, /** - * Lookup388: pallet_maintenance::pallet::Event + * Lookup389: pallet_maintenance::pallet::Event **/ PalletMaintenanceEvent: { _enum: ['MaintenanceEnabled', 'MaintenanceDisabled'] }, /** - * Lookup389: pallet_test_utils::pallet::Event + * Lookup390: pallet_utility::pallet::Event + **/ + PalletUtilityEvent: { + _enum: { + BatchInterrupted: { + index: 'u32', + error: 'SpRuntimeDispatchError', + }, + BatchCompleted: 'Null', + BatchCompletedWithErrors: 'Null', + ItemCompleted: 'Null', + ItemFailed: { + error: 'SpRuntimeDispatchError', + }, + DispatchedAs: { + result: 'Result' + } + } + }, + /** + * Lookup391: pallet_test_utils::pallet::Event **/ PalletTestUtilsEvent: { _enum: ['ValueIsSet', 'ShouldRollback', 'BatchCompleted'] }, /** - * Lookup390: frame_system::Phase + * Lookup392: frame_system::Phase **/ FrameSystemPhase: { _enum: { @@ -3881,14 +4024,14 @@ export default { } }, /** - * Lookup392: frame_system::LastRuntimeUpgradeInfo + * Lookup394: frame_system::LastRuntimeUpgradeInfo **/ FrameSystemLastRuntimeUpgradeInfo: { specVersion: 'Compact', specName: 'Text' }, /** - * Lookup393: frame_system::limits::BlockWeights + * Lookup395: frame_system::limits::BlockWeights **/ FrameSystemLimitsBlockWeights: { baseBlock: 'SpWeightsWeightV2Weight', @@ -3896,7 +4039,7 @@ export default { perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass' }, /** - * Lookup394: frame_support::dispatch::PerDispatchClass + * Lookup396: frame_support::dispatch::PerDispatchClass **/ FrameSupportDispatchPerDispatchClassWeightsPerClass: { normal: 'FrameSystemLimitsWeightsPerClass', @@ -3904,7 +4047,7 @@ export default { mandatory: 'FrameSystemLimitsWeightsPerClass' }, /** - * Lookup395: frame_system::limits::WeightsPerClass + * Lookup397: frame_system::limits::WeightsPerClass **/ FrameSystemLimitsWeightsPerClass: { baseExtrinsic: 'SpWeightsWeightV2Weight', @@ -3913,13 +4056,13 @@ export default { reserved: 'Option' }, /** - * Lookup397: frame_system::limits::BlockLength + * Lookup399: frame_system::limits::BlockLength **/ FrameSystemLimitsBlockLength: { max: 'FrameSupportDispatchPerDispatchClassU32' }, /** - * Lookup398: frame_support::dispatch::PerDispatchClass + * Lookup400: frame_support::dispatch::PerDispatchClass **/ FrameSupportDispatchPerDispatchClassU32: { normal: 'u32', @@ -3927,14 +4070,14 @@ export default { mandatory: 'u32' }, /** - * Lookup399: sp_weights::RuntimeDbWeight + * Lookup401: sp_weights::RuntimeDbWeight **/ SpWeightsRuntimeDbWeight: { read: 'u64', write: 'u64' }, /** - * Lookup400: sp_version::RuntimeVersion + * Lookup402: sp_version::RuntimeVersion **/ SpVersionRuntimeVersion: { specName: 'Text', @@ -3947,37 +4090,74 @@ export default { stateVersion: 'u8' }, /** - * Lookup404: frame_system::pallet::Error + * Lookup406: frame_system::pallet::Error **/ FrameSystemError: { _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered'] }, /** - * Lookup406: polkadot_primitives::v4::UpgradeRestriction + * Lookup408: cumulus_pallet_parachain_system::unincluded_segment::Ancestor + **/ + CumulusPalletParachainSystemUnincludedSegmentAncestor: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + paraHeadHash: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup409: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth + **/ + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: { + umpMsgCount: 'u32', + umpTotalBytes: 'u32', + hrmpOutgoing: 'BTreeMap' + }, + /** + * Lookup411: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate + **/ + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: { + msgCount: 'u32', + totalBytes: 'u32' + }, + /** + * Lookup415: polkadot_primitives::v5::UpgradeGoAhead + **/ + PolkadotPrimitivesV5UpgradeGoAhead: { + _enum: ['Abort', 'GoAhead'] + }, + /** + * Lookup416: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker + **/ + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { + usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', + hrmpWatermark: 'Option', + consumedGoAheadSignal: 'Option' + }, + /** + * Lookup418: polkadot_primitives::v5::UpgradeRestriction **/ - PolkadotPrimitivesV4UpgradeRestriction: { + PolkadotPrimitivesV5UpgradeRestriction: { _enum: ['Present'] }, /** - * Lookup407: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot + * Lookup419: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot **/ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { dmqMqcHead: 'H256', - relayDispatchQueueSize: 'CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize', - ingressChannels: 'Vec<(u32,PolkadotPrimitivesV4AbridgedHrmpChannel)>', - egressChannels: 'Vec<(u32,PolkadotPrimitivesV4AbridgedHrmpChannel)>' + relayDispatchQueueRemainingCapacity: 'CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity', + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV5AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV5AbridgedHrmpChannel)>' }, /** - * Lookup408: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispachQueueSize + * Lookup420: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity **/ - CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize: { + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: { remainingCount: 'u32', remainingSize: 'u32' }, /** - * Lookup411: polkadot_primitives::v4::AbridgedHrmpChannel + * Lookup423: polkadot_primitives::v5::AbridgedHrmpChannel **/ - PolkadotPrimitivesV4AbridgedHrmpChannel: { + PolkadotPrimitivesV5AbridgedHrmpChannel: { maxCapacity: 'u32', maxTotalSize: 'u32', maxMessageSize: 'u32', @@ -3986,9 +4166,9 @@ export default { mqcHead: 'Option' }, /** - * Lookup412: polkadot_primitives::v4::AbridgedHostConfiguration + * Lookup424: polkadot_primitives::v5::AbridgedHostConfiguration **/ - PolkadotPrimitivesV4AbridgedHostConfiguration: { + PolkadotPrimitivesV5AbridgedHostConfiguration: { maxCodeSize: 'u32', maxHeadDataSize: 'u32', maxUpwardQueueCount: 'u32', @@ -3997,46 +4177,54 @@ export default { maxUpwardMessageNumPerCandidate: 'u32', hrmpMaxMessageNumPerCandidate: 'u32', validationUpgradeCooldown: 'u32', - validationUpgradeDelay: 'u32' + validationUpgradeDelay: 'u32', + asyncBackingParams: 'PolkadotPrimitivesVstagingAsyncBackingParams' }, /** - * Lookup418: polkadot_core_primitives::OutboundHrmpMessage + * Lookup425: polkadot_primitives::vstaging::AsyncBackingParams + **/ + PolkadotPrimitivesVstagingAsyncBackingParams: { + maxCandidateDepth: 'u32', + allowedAncestryLen: 'u32' + }, + /** + * Lookup431: polkadot_core_primitives::OutboundHrmpMessage **/ PolkadotCorePrimitivesOutboundHrmpMessage: { recipient: 'u32', data: 'Bytes' }, /** - * Lookup419: cumulus_pallet_parachain_system::CodeUpgradeAuthorization + * Lookup432: cumulus_pallet_parachain_system::CodeUpgradeAuthorization **/ CumulusPalletParachainSystemCodeUpgradeAuthorization: { codeHash: 'H256', checkVersion: 'bool' }, /** - * Lookup420: cumulus_pallet_parachain_system::pallet::Error + * Lookup433: cumulus_pallet_parachain_system::pallet::Error **/ CumulusPalletParachainSystemError: { _enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized'] }, /** - * Lookup422: pallet_collator_selection::pallet::Error + * Lookup435: pallet_collator_selection::pallet::Error **/ PalletCollatorSelectionError: { _enum: ['TooManyCandidates', 'Unknown', 'Permission', 'AlreadyHoldingLicense', 'NoLicense', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'TooFewInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered'] }, /** - * Lookup426: sp_core::crypto::KeyTypeId + * Lookup439: sp_core::crypto::KeyTypeId **/ SpCoreCryptoKeyTypeId: '[u8;4]', /** - * Lookup427: pallet_session::pallet::Error + * Lookup440: pallet_session::pallet::Error **/ PalletSessionError: { _enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'] }, /** - * Lookup432: pallet_balances::types::BalanceLock + * Lookup446: pallet_balances::types::BalanceLock **/ PalletBalancesBalanceLock: { id: '[u8;8]', @@ -4044,39 +4232,76 @@ export default { reasons: 'PalletBalancesReasons' }, /** - * Lookup433: pallet_balances::types::Reasons + * Lookup447: pallet_balances::types::Reasons **/ PalletBalancesReasons: { _enum: ['Fee', 'Misc', 'All'] }, /** - * Lookup436: pallet_balances::types::ReserveData + * Lookup450: pallet_balances::types::ReserveData **/ PalletBalancesReserveData: { id: '[u8;16]', amount: 'u128' }, /** - * Lookup439: pallet_balances::types::IdAmount + * Lookup454: opal_runtime::RuntimeHoldReason + **/ + OpalRuntimeRuntimeHoldReason: { + _enum: { + __Unused0: 'Null', + __Unused1: 'Null', + __Unused2: 'Null', + __Unused3: 'Null', + __Unused4: 'Null', + __Unused5: 'Null', + __Unused6: 'Null', + __Unused7: 'Null', + __Unused8: 'Null', + __Unused9: 'Null', + __Unused10: 'Null', + __Unused11: 'Null', + __Unused12: 'Null', + __Unused13: 'Null', + __Unused14: 'Null', + __Unused15: 'Null', + __Unused16: 'Null', + __Unused17: 'Null', + __Unused18: 'Null', + __Unused19: 'Null', + __Unused20: 'Null', + __Unused21: 'Null', + __Unused22: 'Null', + CollatorSelection: 'PalletCollatorSelectionHoldReason' + } + }, + /** + * Lookup455: pallet_collator_selection::pallet::HoldReason + **/ + PalletCollatorSelectionHoldReason: { + _enum: ['LicenseBond'] + }, + /** + * Lookup458: pallet_balances::types::IdAmount **/ PalletBalancesIdAmount: { id: '[u8;16]', amount: 'u128' }, /** - * Lookup442: pallet_balances::pallet::Error + * Lookup460: pallet_balances::pallet::Error **/ PalletBalancesError: { _enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'Expendability', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves', 'TooManyHolds', 'TooManyFreezes'] }, /** - * Lookup444: pallet_transaction_payment::Releases + * Lookup462: pallet_transaction_payment::Releases **/ PalletTransactionPaymentReleases: { _enum: ['V1Ancient', 'V2'] }, /** - * Lookup445: pallet_treasury::Proposal + * Lookup463: pallet_treasury::Proposal **/ PalletTreasuryProposal: { proposer: 'AccountId32', @@ -4085,42 +4310,42 @@ export default { bond: 'u128' }, /** - * Lookup448: frame_support::PalletId + * Lookup466: frame_support::PalletId **/ FrameSupportPalletId: '[u8;8]', /** - * Lookup449: pallet_treasury::pallet::Error + * Lookup467: pallet_treasury::pallet::Error **/ PalletTreasuryError: { _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved'] }, /** - * Lookup450: pallet_sudo::pallet::Error + * Lookup468: pallet_sudo::pallet::Error **/ PalletSudoError: { _enum: ['RequireSudo'] }, /** - * Lookup452: orml_vesting::module::Error + * Lookup470: orml_vesting::module::Error **/ OrmlVestingModuleError: { _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded'] }, /** - * Lookup453: orml_xtokens::module::Error + * Lookup471: orml_xtokens::module::Error **/ OrmlXtokensModuleError: { _enum: ['AssetHasNoReserve', 'NotCrossChainTransfer', 'InvalidDest', 'NotCrossChainTransferableCurrency', 'UnweighableMessage', 'XcmExecutionFailed', 'CannotReanchor', 'InvalidAncestry', 'InvalidAsset', 'DestinationNotInvertible', 'BadVersion', 'DistinctReserveForAssetAndFee', 'ZeroFee', 'ZeroAmount', 'TooManyAssetsBeingSent', 'AssetIndexNonExistent', 'FeeNotEnough', 'NotSupportedMultiLocation', 'MinXcmFeeNotDefined'] }, /** - * Lookup456: orml_tokens::BalanceLock + * Lookup474: orml_tokens::BalanceLock **/ OrmlTokensBalanceLock: { id: '[u8;8]', amount: 'u128' }, /** - * Lookup458: orml_tokens::AccountData + * Lookup476: orml_tokens::AccountData **/ OrmlTokensAccountData: { free: 'u128', @@ -4128,20 +4353,20 @@ export default { frozen: 'u128' }, /** - * Lookup460: orml_tokens::ReserveData + * Lookup478: orml_tokens::ReserveData **/ OrmlTokensReserveData: { id: 'Null', amount: 'u128' }, /** - * Lookup462: orml_tokens::module::Error + * Lookup480: orml_tokens::module::Error **/ OrmlTokensModuleError: { _enum: ['BalanceTooLow', 'AmountIntoBalanceFailed', 'LiquidityRestrictions', 'MaxLocksExceeded', 'KeepAlive', 'ExistentialDeposit', 'DeadAccount', 'TooManyReserves'] }, /** - * Lookup467: pallet_identity::types::RegistrarInfo + * Lookup485: pallet_identity::types::RegistrarInfo **/ PalletIdentityRegistrarInfo: { account: 'AccountId32', @@ -4149,13 +4374,13 @@ export default { fields: 'PalletIdentityBitFlags' }, /** - * Lookup469: pallet_identity::pallet::Error + * Lookup487: pallet_identity::pallet::Error **/ PalletIdentityError: { _enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity', 'JudgementPaymentFailed'] }, /** - * Lookup470: pallet_preimage::RequestStatus + * Lookup488: pallet_preimage::RequestStatus **/ PalletPreimageRequestStatus: { _enum: { @@ -4171,13 +4396,13 @@ export default { } }, /** - * Lookup475: pallet_preimage::pallet::Error + * Lookup493: pallet_preimage::pallet::Error **/ PalletPreimageError: { _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested'] }, /** - * Lookup481: pallet_democracy::types::ReferendumInfo, Balance> + * Lookup499: pallet_democracy::types::ReferendumInfo, Balance> **/ PalletDemocracyReferendumInfo: { _enum: { @@ -4189,7 +4414,7 @@ export default { } }, /** - * Lookup482: pallet_democracy::types::ReferendumStatus, Balance> + * Lookup500: pallet_democracy::types::ReferendumStatus, Balance> **/ PalletDemocracyReferendumStatus: { end: 'u32', @@ -4199,7 +4424,7 @@ export default { tally: 'PalletDemocracyTally' }, /** - * Lookup483: pallet_democracy::types::Tally + * Lookup501: pallet_democracy::types::Tally **/ PalletDemocracyTally: { ayes: 'u128', @@ -4207,7 +4432,7 @@ export default { turnout: 'u128' }, /** - * Lookup484: pallet_democracy::vote::Voting + * Lookup502: pallet_democracy::vote::Voting **/ PalletDemocracyVoteVoting: { _enum: { @@ -4226,24 +4451,24 @@ export default { } }, /** - * Lookup488: pallet_democracy::types::Delegations + * Lookup506: pallet_democracy::types::Delegations **/ PalletDemocracyDelegations: { votes: 'u128', capital: 'u128' }, /** - * Lookup489: pallet_democracy::vote::PriorLock + * Lookup507: pallet_democracy::vote::PriorLock **/ PalletDemocracyVotePriorLock: '(u32,u128)', /** - * Lookup492: pallet_democracy::pallet::Error + * Lookup510: pallet_democracy::pallet::Error **/ PalletDemocracyError: { _enum: ['ValueLow', 'ProposalMissing', 'AlreadyCanceled', 'DuplicateProposal', 'ProposalBlacklisted', 'NotSimpleMajority', 'InvalidHash', 'NoProposal', 'AlreadyVetoed', 'ReferendumInvalid', 'NoneWaiting', 'NotVoter', 'NoPermission', 'AlreadyDelegating', 'InsufficientFunds', 'NotDelegating', 'VotesExist', 'InstantNotAllowed', 'Nonsense', 'WrongUpperBound', 'MaxVotesReached', 'TooMany', 'VotingPeriodLow', 'PreimageNotExist'] }, /** - * Lookup494: pallet_collective::Votes + * Lookup512: pallet_collective::Votes **/ PalletCollectiveVotes: { index: 'u32', @@ -4253,31 +4478,31 @@ export default { end: 'u32' }, /** - * Lookup495: pallet_collective::pallet::Error + * Lookup513: pallet_collective::pallet::Error **/ PalletCollectiveError: { - _enum: ['NotMember', 'DuplicateProposal', 'ProposalMissing', 'WrongIndex', 'DuplicateVote', 'AlreadyInitialized', 'TooEarly', 'TooManyProposals', 'WrongProposalWeight', 'WrongProposalLength'] + _enum: ['NotMember', 'DuplicateProposal', 'ProposalMissing', 'WrongIndex', 'DuplicateVote', 'AlreadyInitialized', 'TooEarly', 'TooManyProposals', 'WrongProposalWeight', 'WrongProposalLength', 'PrimeAccountNotMember'] }, /** - * Lookup499: pallet_membership::pallet::Error + * Lookup517: pallet_membership::pallet::Error **/ PalletMembershipError: { _enum: ['AlreadyMember', 'NotMember', 'TooManyMembers'] }, /** - * Lookup502: pallet_ranked_collective::MemberRecord + * Lookup520: pallet_ranked_collective::MemberRecord **/ PalletRankedCollectiveMemberRecord: { rank: 'u16' }, /** - * Lookup507: pallet_ranked_collective::pallet::Error + * Lookup525: pallet_ranked_collective::pallet::Error **/ PalletRankedCollectiveError: { _enum: ['AlreadyMember', 'NotMember', 'NotPolling', 'Ongoing', 'NoneRemaining', 'Corruption', 'RankTooLow', 'InvalidWitness', 'NoPermission'] }, /** - * Lookup508: pallet_referenda::types::ReferendumInfo, Balance, pallet_ranked_collective::Tally, sp_core::crypto::AccountId32, ScheduleAddress> + * Lookup526: pallet_referenda::types::ReferendumInfo, Balance, pallet_ranked_collective::Tally, sp_core::crypto::AccountId32, ScheduleAddress> **/ PalletReferendaReferendumInfo: { _enum: { @@ -4290,7 +4515,7 @@ export default { } }, /** - * Lookup509: pallet_referenda::types::ReferendumStatus, Balance, pallet_ranked_collective::Tally, sp_core::crypto::AccountId32, ScheduleAddress> + * Lookup527: pallet_referenda::types::ReferendumStatus, Balance, pallet_ranked_collective::Tally, sp_core::crypto::AccountId32, ScheduleAddress> **/ PalletReferendaReferendumStatus: { track: 'u16', @@ -4306,21 +4531,21 @@ export default { alarm: 'Option<(u32,(u32,u32))>' }, /** - * Lookup510: pallet_referenda::types::Deposit + * Lookup528: pallet_referenda::types::Deposit **/ PalletReferendaDeposit: { who: 'AccountId32', amount: 'u128' }, /** - * Lookup513: pallet_referenda::types::DecidingStatus + * Lookup531: pallet_referenda::types::DecidingStatus **/ PalletReferendaDecidingStatus: { since: 'u32', confirming: 'Option' }, /** - * Lookup519: pallet_referenda::types::TrackInfo + * Lookup537: pallet_referenda::types::TrackInfo **/ PalletReferendaTrackInfo: { name: 'Text', @@ -4334,7 +4559,7 @@ export default { minSupport: 'PalletReferendaCurve' }, /** - * Lookup520: pallet_referenda::types::Curve + * Lookup538: pallet_referenda::types::Curve **/ PalletReferendaCurve: { _enum: { @@ -4357,13 +4582,13 @@ export default { } }, /** - * Lookup523: pallet_referenda::pallet::Error + * Lookup541: pallet_referenda::pallet::Error **/ PalletReferendaError: { _enum: ['NotOngoing', 'HasDeposit', 'BadTrack', 'Full', 'QueueEmpty', 'BadReferendum', 'NothingToDo', 'NoTrack', 'Unfinished', 'NoPermission', 'NoDeposit', 'BadStatus', 'PreimageNotExist'] }, /** - * Lookup526: pallet_scheduler::Scheduled, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32> + * Lookup544: pallet_scheduler::Scheduled, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32> **/ PalletSchedulerScheduled: { maybeId: 'Option<[u8;32]>', @@ -4373,33 +4598,33 @@ export default { origin: 'OpalRuntimeOriginCaller' }, /** - * Lookup528: pallet_scheduler::pallet::Error + * Lookup546: pallet_scheduler::pallet::Error **/ PalletSchedulerError: { _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'] }, /** - * Lookup530: cumulus_pallet_xcmp_queue::InboundChannelDetails + * Lookup548: cumulus_pallet_xcmp_queue::InboundChannelDetails **/ CumulusPalletXcmpQueueInboundChannelDetails: { sender: 'u32', state: 'CumulusPalletXcmpQueueInboundState', - messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>' + messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat)>' }, /** - * Lookup531: cumulus_pallet_xcmp_queue::InboundState + * Lookup549: cumulus_pallet_xcmp_queue::InboundState **/ CumulusPalletXcmpQueueInboundState: { _enum: ['Ok', 'Suspended'] }, /** - * Lookup534: polkadot_parachain::primitives::XcmpMessageFormat + * Lookup552: polkadot_parachain_primitives::primitives::XcmpMessageFormat **/ - PolkadotParachainPrimitivesXcmpMessageFormat: { + PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: { _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals'] }, /** - * Lookup537: cumulus_pallet_xcmp_queue::OutboundChannelDetails + * Lookup555: cumulus_pallet_xcmp_queue::OutboundChannelDetails **/ CumulusPalletXcmpQueueOutboundChannelDetails: { recipient: 'u32', @@ -4409,13 +4634,13 @@ export default { lastIndex: 'u16' }, /** - * Lookup538: cumulus_pallet_xcmp_queue::OutboundState + * Lookup556: cumulus_pallet_xcmp_queue::OutboundState **/ CumulusPalletXcmpQueueOutboundState: { _enum: ['Ok', 'Suspended'] }, /** - * Lookup540: cumulus_pallet_xcmp_queue::QueueConfigData + * Lookup558: cumulus_pallet_xcmp_queue::QueueConfigData **/ CumulusPalletXcmpQueueQueueConfigData: { suspendThreshold: 'u32', @@ -4426,45 +4651,45 @@ export default { xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight' }, /** - * Lookup542: cumulus_pallet_xcmp_queue::pallet::Error + * Lookup560: cumulus_pallet_xcmp_queue::pallet::Error **/ CumulusPalletXcmpQueueError: { _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit'] }, /** - * Lookup543: pallet_xcm::pallet::QueryStatus + * Lookup561: pallet_xcm::pallet::QueryStatus **/ PalletXcmQueryStatus: { _enum: { Pending: { - responder: 'XcmVersionedMultiLocation', - maybeMatchQuerier: 'Option', + responder: 'StagingXcmVersionedMultiLocation', + maybeMatchQuerier: 'Option', maybeNotify: 'Option<(u8,u8)>', timeout: 'u32', }, VersionNotifier: { - origin: 'XcmVersionedMultiLocation', + origin: 'StagingXcmVersionedMultiLocation', isActive: 'bool', }, Ready: { - response: 'XcmVersionedResponse', + response: 'StagingXcmVersionedResponse', at: 'u32' } } }, /** - * Lookup547: xcm::VersionedResponse + * Lookup565: staging_xcm::VersionedResponse **/ - XcmVersionedResponse: { + StagingXcmVersionedResponse: { _enum: { __Unused0: 'Null', __Unused1: 'Null', - V2: 'XcmV2Response', - V3: 'XcmV3Response' + V2: 'StagingXcmV2Response', + V3: 'StagingXcmV3Response' } }, /** - * Lookup553: pallet_xcm::pallet::VersionMigrationStage + * Lookup571: pallet_xcm::pallet::VersionMigrationStage **/ PalletXcmVersionMigrationStage: { _enum: { @@ -4475,43 +4700,43 @@ export default { } }, /** - * Lookup556: xcm::VersionedAssetId + * Lookup574: staging_xcm::VersionedAssetId **/ - XcmVersionedAssetId: { + StagingXcmVersionedAssetId: { _enum: { __Unused0: 'Null', __Unused1: 'Null', __Unused2: 'Null', - V3: 'XcmV3MultiassetAssetId' + V3: 'StagingXcmV3MultiassetAssetId' } }, /** - * Lookup557: pallet_xcm::pallet::RemoteLockedFungibleRecord + * Lookup575: pallet_xcm::pallet::RemoteLockedFungibleRecord **/ PalletXcmRemoteLockedFungibleRecord: { amount: 'u128', - owner: 'XcmVersionedMultiLocation', - locker: 'XcmVersionedMultiLocation', + owner: 'StagingXcmVersionedMultiLocation', + locker: 'StagingXcmVersionedMultiLocation', consumers: 'Vec<(Null,u128)>' }, /** - * Lookup564: pallet_xcm::pallet::Error + * Lookup582: pallet_xcm::pallet::Error **/ PalletXcmError: { _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse'] }, /** - * Lookup565: cumulus_pallet_xcm::pallet::Error + * Lookup583: cumulus_pallet_xcm::pallet::Error **/ CumulusPalletXcmError: 'Null', /** - * Lookup566: cumulus_pallet_dmp_queue::ConfigData + * Lookup584: cumulus_pallet_dmp_queue::ConfigData **/ CumulusPalletDmpQueueConfigData: { maxIndividual: 'SpWeightsWeightV2Weight' }, /** - * Lookup567: cumulus_pallet_dmp_queue::PageIndexData + * Lookup585: cumulus_pallet_dmp_queue::PageIndexData **/ CumulusPalletDmpQueuePageIndexData: { beginUsed: 'u32', @@ -4519,25 +4744,25 @@ export default { overweightCount: 'u64' }, /** - * Lookup570: cumulus_pallet_dmp_queue::pallet::Error + * Lookup588: cumulus_pallet_dmp_queue::pallet::Error **/ CumulusPalletDmpQueueError: { _enum: ['Unknown', 'OverLimit'] }, /** - * Lookup574: pallet_unique::pallet::Error + * Lookup592: pallet_unique::pallet::Error **/ PalletUniqueError: { _enum: ['CollectionDecimalPointLimitExceeded', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection'] }, /** - * Lookup575: pallet_configuration::pallet::Error + * Lookup593: pallet_configuration::pallet::Error **/ PalletConfigurationError: { _enum: ['InconsistentConfiguration'] }, /** - * Lookup576: up_data_structs::Collection + * Lookup594: up_data_structs::Collection **/ UpDataStructsCollection: { owner: 'AccountId32', @@ -4551,7 +4776,7 @@ export default { flags: '[u8;1]' }, /** - * Lookup577: up_data_structs::SponsorshipState + * Lookup595: up_data_structs::SponsorshipState **/ UpDataStructsSponsorshipStateAccountId32: { _enum: { @@ -4561,7 +4786,7 @@ export default { } }, /** - * Lookup578: up_data_structs::Properties + * Lookup596: up_data_structs::Properties **/ UpDataStructsProperties: { map: 'UpDataStructsPropertiesMapBoundedVec', @@ -4569,15 +4794,15 @@ export default { reserved: 'u32' }, /** - * Lookup579: up_data_structs::PropertiesMap> + * Lookup597: up_data_structs::PropertiesMap> **/ UpDataStructsPropertiesMapBoundedVec: 'BTreeMap', /** - * Lookup584: up_data_structs::PropertiesMap + * Lookup602: up_data_structs::PropertiesMap **/ UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap', /** - * Lookup591: up_data_structs::CollectionStats + * Lookup609: up_data_structs::CollectionStats **/ UpDataStructsCollectionStats: { created: 'u32', @@ -4585,18 +4810,18 @@ export default { alive: 'u32' }, /** - * Lookup592: up_data_structs::TokenChild + * Lookup610: up_data_structs::TokenChild **/ UpDataStructsTokenChild: { token: 'u32', collection: 'u32' }, /** - * Lookup593: PhantomType::up_data_structs + * Lookup611: PhantomType::up_data_structs **/ PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,UpPovEstimateRpcPovInfo);0]', /** - * Lookup595: up_data_structs::TokenData> + * Lookup613: up_data_structs::TokenData> **/ UpDataStructsTokenData: { properties: 'Vec', @@ -4604,7 +4829,7 @@ export default { pieces: 'u128' }, /** - * Lookup596: up_data_structs::RpcCollection + * Lookup614: up_data_structs::RpcCollection **/ UpDataStructsRpcCollection: { owner: 'AccountId32', @@ -4621,14 +4846,14 @@ export default { flags: 'UpDataStructsRpcCollectionFlags' }, /** - * Lookup597: up_data_structs::RpcCollectionFlags + * Lookup615: up_data_structs::RpcCollectionFlags **/ UpDataStructsRpcCollectionFlags: { foreign: 'bool', erc721metadata: 'bool' }, /** - * Lookup598: up_pov_estimate_rpc::PovInfo + * Lookup616: up_pov_estimate_rpc::PovInfo **/ UpPovEstimateRpcPovInfo: { proofSize: 'u64', @@ -4638,7 +4863,7 @@ export default { keyValues: 'Vec' }, /** - * Lookup601: sp_runtime::transaction_validity::TransactionValidityError + * Lookup619: sp_runtime::transaction_validity::TransactionValidityError **/ SpRuntimeTransactionValidityTransactionValidityError: { _enum: { @@ -4647,7 +4872,7 @@ export default { } }, /** - * Lookup602: sp_runtime::transaction_validity::InvalidTransaction + * Lookup620: sp_runtime::transaction_validity::InvalidTransaction **/ SpRuntimeTransactionValidityInvalidTransaction: { _enum: { @@ -4665,7 +4890,7 @@ export default { } }, /** - * Lookup603: sp_runtime::transaction_validity::UnknownTransaction + * Lookup621: sp_runtime::transaction_validity::UnknownTransaction **/ SpRuntimeTransactionValidityUnknownTransaction: { _enum: { @@ -4675,68 +4900,68 @@ export default { } }, /** - * Lookup605: up_pov_estimate_rpc::TrieKeyValue + * Lookup623: up_pov_estimate_rpc::TrieKeyValue **/ UpPovEstimateRpcTrieKeyValue: { key: 'Bytes', value: 'Bytes' }, /** - * Lookup607: pallet_common::pallet::Error + * Lookup625: 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', 'AddressIsNotEthMirror', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal', 'ConfirmSponsorshipFail', 'UserIsNotCollectionAdmin'] }, /** - * Lookup609: pallet_fungible::pallet::Error + * Lookup627: pallet_fungible::pallet::Error **/ PalletFungibleError: { _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid'] }, /** - * Lookup614: pallet_refungible::pallet::Error + * Lookup632: pallet_refungible::pallet::Error **/ PalletRefungibleError: { _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed'] }, /** - * Lookup615: pallet_nonfungible::ItemData> + * Lookup633: pallet_nonfungible::ItemData> **/ PalletNonfungibleItemData: { owner: 'PalletEvmAccountBasicCrossAccountIdRepr' }, /** - * Lookup617: up_data_structs::PropertyScope + * Lookup635: up_data_structs::PropertyScope **/ UpDataStructsPropertyScope: { _enum: ['None', 'Rmrk'] }, /** - * Lookup620: pallet_nonfungible::pallet::Error + * Lookup638: pallet_nonfungible::pallet::Error **/ PalletNonfungibleError: { _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren'] }, /** - * Lookup621: pallet_structure::pallet::Error + * Lookup639: pallet_structure::pallet::Error **/ PalletStructureError: { _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound', 'CantNestTokenUnderCollection'] }, /** - * Lookup626: pallet_app_promotion::pallet::Error + * Lookup644: pallet_app_promotion::pallet::Error **/ PalletAppPromotionError: { _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'InsufficientStakedBalance', 'InconsistencyState'] }, /** - * Lookup627: pallet_foreign_assets::module::Error + * Lookup645: pallet_foreign_assets::module::Error **/ PalletForeignAssetsModuleError: { _enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted'] }, /** - * Lookup628: pallet_evm::CodeMetadata + * Lookup646: pallet_evm::CodeMetadata **/ PalletEvmCodeMetadata: { _alias: { @@ -4747,13 +4972,13 @@ export default { hash_: 'H256' }, /** - * Lookup630: pallet_evm::pallet::Error + * Lookup648: pallet_evm::pallet::Error **/ PalletEvmError: { _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA'] }, /** - * Lookup633: fp_rpc::TransactionStatus + * Lookup651: fp_rpc::TransactionStatus **/ FpRpcTransactionStatus: { transactionHash: 'H256', @@ -4765,11 +4990,11 @@ export default { logsBloom: 'EthbloomBloom' }, /** - * Lookup635: ethbloom::Bloom + * Lookup653: ethbloom::Bloom **/ EthbloomBloom: '[u8;256]', /** - * Lookup637: ethereum::receipt::ReceiptV3 + * Lookup655: ethereum::receipt::ReceiptV3 **/ EthereumReceiptReceiptV3: { _enum: { @@ -4779,7 +5004,7 @@ export default { } }, /** - * Lookup638: ethereum::receipt::EIP658ReceiptData + * Lookup656: ethereum::receipt::EIP658ReceiptData **/ EthereumReceiptEip658ReceiptData: { statusCode: 'u8', @@ -4788,7 +5013,7 @@ export default { logs: 'Vec' }, /** - * Lookup639: ethereum::block::Block + * Lookup657: ethereum::block::Block **/ EthereumBlock: { header: 'EthereumHeader', @@ -4796,7 +5021,7 @@ export default { ommers: 'Vec' }, /** - * Lookup640: ethereum::header::Header + * Lookup658: ethereum::header::Header **/ EthereumHeader: { parentHash: 'H256', @@ -4816,23 +5041,23 @@ export default { nonce: 'EthereumTypesHashH64' }, /** - * Lookup641: ethereum_types::hash::H64 + * Lookup659: ethereum_types::hash::H64 **/ EthereumTypesHashH64: '[u8;8]', /** - * Lookup646: pallet_ethereum::pallet::Error + * Lookup664: pallet_ethereum::pallet::Error **/ PalletEthereumError: { _enum: ['InvalidSignature', 'PreLogExists'] }, /** - * Lookup647: pallet_evm_coder_substrate::pallet::Error + * Lookup665: pallet_evm_coder_substrate::pallet::Error **/ PalletEvmCoderSubstrateError: { _enum: ['OutOfGas', 'OutOfFund'] }, /** - * Lookup648: up_data_structs::SponsorshipState> + * Lookup666: up_data_structs::SponsorshipState> **/ UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: { _enum: { @@ -4842,35 +5067,41 @@ export default { } }, /** - * Lookup649: pallet_evm_contract_helpers::SponsoringModeT + * Lookup667: pallet_evm_contract_helpers::SponsoringModeT **/ PalletEvmContractHelpersSponsoringModeT: { _enum: ['Disabled', 'Allowlisted', 'Generous'] }, /** - * Lookup655: pallet_evm_contract_helpers::pallet::Error + * Lookup673: pallet_evm_contract_helpers::pallet::Error **/ PalletEvmContractHelpersError: { _enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit'] }, /** - * Lookup656: pallet_evm_migration::pallet::Error + * Lookup674: pallet_evm_migration::pallet::Error **/ PalletEvmMigrationError: { _enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent'] }, /** - * Lookup657: pallet_maintenance::pallet::Error + * Lookup675: pallet_maintenance::pallet::Error **/ PalletMaintenanceError: 'Null', /** - * Lookup658: pallet_test_utils::pallet::Error + * Lookup676: pallet_utility::pallet::Error + **/ + PalletUtilityError: { + _enum: ['TooManyCalls'] + }, + /** + * Lookup677: pallet_test_utils::pallet::Error **/ PalletTestUtilsError: { _enum: ['TestPalletDisabled', 'TriggerRollback'] }, /** - * Lookup660: sp_runtime::MultiSignature + * Lookup679: sp_runtime::MultiSignature **/ SpRuntimeMultiSignature: { _enum: { @@ -4880,55 +5111,55 @@ export default { } }, /** - * Lookup661: sp_core::ed25519::Signature + * Lookup680: sp_core::ed25519::Signature **/ SpCoreEd25519Signature: '[u8;64]', /** - * Lookup663: sp_core::sr25519::Signature + * Lookup682: sp_core::sr25519::Signature **/ SpCoreSr25519Signature: '[u8;64]', /** - * Lookup664: sp_core::ecdsa::Signature + * Lookup683: sp_core::ecdsa::Signature **/ SpCoreEcdsaSignature: '[u8;65]', /** - * Lookup667: frame_system::extensions::check_spec_version::CheckSpecVersion + * Lookup686: frame_system::extensions::check_spec_version::CheckSpecVersion **/ FrameSystemExtensionsCheckSpecVersion: 'Null', /** - * Lookup668: frame_system::extensions::check_tx_version::CheckTxVersion + * Lookup687: frame_system::extensions::check_tx_version::CheckTxVersion **/ FrameSystemExtensionsCheckTxVersion: 'Null', /** - * Lookup669: frame_system::extensions::check_genesis::CheckGenesis + * Lookup688: frame_system::extensions::check_genesis::CheckGenesis **/ FrameSystemExtensionsCheckGenesis: 'Null', /** - * Lookup672: frame_system::extensions::check_nonce::CheckNonce + * Lookup691: frame_system::extensions::check_nonce::CheckNonce **/ FrameSystemExtensionsCheckNonce: 'Compact', /** - * Lookup673: frame_system::extensions::check_weight::CheckWeight + * Lookup692: frame_system::extensions::check_weight::CheckWeight **/ FrameSystemExtensionsCheckWeight: 'Null', /** - * Lookup674: opal_runtime::runtime_common::maintenance::CheckMaintenance + * Lookup693: opal_runtime::runtime_common::maintenance::CheckMaintenance **/ OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null', /** - * Lookup675: opal_runtime::runtime_common::identity::DisableIdentityCalls + * Lookup694: opal_runtime::runtime_common::identity::DisableIdentityCalls **/ OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: 'Null', /** - * Lookup676: pallet_template_transaction_payment::ChargeTransactionPayment + * Lookup695: pallet_template_transaction_payment::ChargeTransactionPayment **/ PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact', /** - * Lookup677: opal_runtime::Runtime + * Lookup696: opal_runtime::Runtime **/ OpalRuntimeRuntime: 'Null', /** - * Lookup678: pallet_ethereum::FakeTransactionFinalizer + * Lookup697: pallet_ethereum::FakeTransactionFinalizer **/ PalletEthereumFakeTransactionFinalizer: 'Null' }; diff --git a/tests/src/interfaces/registry.ts b/tests/src/interfaces/registry.ts index 0b3e753f05..87df5491bb 100644 --- a/tests/src/interfaces/registry.ts +++ b/tests/src/interfaces/registry.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, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmCoderSubstrateError, PalletEvmContractHelpersCall, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletGovOriginsOrigin, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletMembershipCall, PalletMembershipError, PalletMembershipEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRankedCollectiveCall, PalletRankedCollectiveError, PalletRankedCollectiveEvent, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReferendaCall, PalletReferendaCurve, PalletReferendaDecidingStatus, PalletReferendaDeposit, PalletReferendaError, PalletReferendaEvent, PalletReferendaReferendumInfo, PalletReferendaReferendumStatus, PalletReferendaTrackInfo, PalletRefungibleError, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduled, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStateTrieMigrationCall, PalletStateTrieMigrationError, PalletStateTrieMigrationEvent, PalletStateTrieMigrationMigrationCompute, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, ParachainInfoCall, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV4AbridgedHostConfiguration, PolkadotPrimitivesV4AbridgedHrmpChannel, PolkadotPrimitivesV4PersistedValidationData, PolkadotPrimitivesV4UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, XcmDoubleEncoded, XcmV2BodyId, XcmV2BodyPart, XcmV2Instruction, XcmV2Junction, XcmV2MultiAsset, XcmV2MultiLocation, XcmV2MultiassetAssetId, XcmV2MultiassetAssetInstance, XcmV2MultiassetFungibility, XcmV2MultiassetMultiAssetFilter, XcmV2MultiassetMultiAssets, XcmV2MultiassetWildFungibility, XcmV2MultiassetWildMultiAsset, XcmV2MultilocationJunctions, XcmV2NetworkId, XcmV2OriginKind, XcmV2Response, XcmV2TraitsError, XcmV2WeightLimit, XcmV2Xcm, XcmV3Instruction, XcmV3Junction, XcmV3JunctionBodyId, XcmV3JunctionBodyPart, XcmV3JunctionNetworkId, XcmV3Junctions, XcmV3MaybeErrorCode, XcmV3MultiAsset, XcmV3MultiLocation, XcmV3MultiassetAssetId, XcmV3MultiassetAssetInstance, XcmV3MultiassetFungibility, XcmV3MultiassetMultiAssetFilter, XcmV3MultiassetMultiAssets, XcmV3MultiassetWildFungibility, XcmV3MultiassetWildMultiAsset, XcmV3PalletInfo, XcmV3QueryResponseInfo, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3WeightLimit, XcmV3Xcm, XcmVersionedAssetId, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedResponse, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemCodeUpgradeAuthorization, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OpalRuntimeRuntimeHoldReason, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollatorSelectionHoldReason, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmCoderSubstrateError, PalletEvmContractHelpersCall, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetId, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletGovOriginsOrigin, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletMembershipCall, PalletMembershipError, PalletMembershipEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRankedCollectiveCall, PalletRankedCollectiveError, PalletRankedCollectiveEvent, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReferendaCall, PalletReferendaCurve, PalletReferendaDecidingStatus, PalletReferendaDeposit, PalletReferendaError, PalletReferendaEvent, PalletReferendaReferendumInfo, PalletReferendaReferendumStatus, PalletReferendaTrackInfo, PalletRefungibleError, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduled, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStateTrieMigrationCall, PalletStateTrieMigrationError, PalletStateTrieMigrationEvent, PalletStateTrieMigrationMigrationCompute, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, ParachainInfoCall, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat, PolkadotPrimitivesV5AbridgedHostConfiguration, PolkadotPrimitivesV5AbridgedHrmpChannel, PolkadotPrimitivesV5PersistedValidationData, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesVstagingAsyncBackingParams, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmDoubleEncoded, StagingXcmV2BodyId, StagingXcmV2BodyPart, StagingXcmV2Instruction, StagingXcmV2Junction, StagingXcmV2MultiAsset, StagingXcmV2MultiLocation, StagingXcmV2MultiassetAssetId, StagingXcmV2MultiassetAssetInstance, StagingXcmV2MultiassetFungibility, StagingXcmV2MultiassetMultiAssetFilter, StagingXcmV2MultiassetMultiAssets, StagingXcmV2MultiassetWildFungibility, StagingXcmV2MultiassetWildMultiAsset, StagingXcmV2MultilocationJunctions, StagingXcmV2NetworkId, StagingXcmV2OriginKind, StagingXcmV2Response, StagingXcmV2TraitsError, StagingXcmV2WeightLimit, StagingXcmV2Xcm, StagingXcmV3Instruction, StagingXcmV3Junction, StagingXcmV3JunctionBodyId, StagingXcmV3JunctionBodyPart, StagingXcmV3JunctionNetworkId, StagingXcmV3Junctions, StagingXcmV3MaybeErrorCode, StagingXcmV3MultiAsset, StagingXcmV3MultiLocation, StagingXcmV3MultiassetAssetId, StagingXcmV3MultiassetAssetInstance, StagingXcmV3MultiassetFungibility, StagingXcmV3MultiassetMultiAssetFilter, StagingXcmV3MultiassetMultiAssets, StagingXcmV3MultiassetWildFungibility, StagingXcmV3MultiassetWildMultiAsset, StagingXcmV3PalletInfo, StagingXcmV3QueryResponseInfo, StagingXcmV3Response, StagingXcmV3TraitsError, StagingXcmV3TraitsOutcome, StagingXcmV3WeightLimit, StagingXcmV3Xcm, StagingXcmVersionedAssetId, StagingXcmVersionedMultiAsset, StagingXcmVersionedMultiAssets, StagingXcmVersionedMultiLocation, StagingXcmVersionedResponse, StagingXcmVersionedXcm, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue } from '@polkadot/types/lookup'; declare module '@polkadot/types/types/registry' { interface InterfaceTypes { @@ -19,7 +19,11 @@ declare module '@polkadot/types/types/registry' { CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent; CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; - CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize; + CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + CumulusPalletParachainSystemUnincludedSegmentAncestor: CumulusPalletParachainSystemUnincludedSegmentAncestor; + CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate; + CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: CumulusPalletParachainSystemUnincludedSegmentSegmentTracker; + CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; CumulusPalletXcmCall: CumulusPalletXcmCall; CumulusPalletXcmError: CumulusPalletXcmError; CumulusPalletXcmEvent: CumulusPalletXcmEvent; @@ -84,6 +88,7 @@ declare module '@polkadot/types/types/registry' { OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls; OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance; OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys; + OpalRuntimeRuntimeHoldReason: OpalRuntimeRuntimeHoldReason; OrmlTokensAccountData: OrmlTokensAccountData; OrmlTokensBalanceLock: OrmlTokensBalanceLock; OrmlTokensModuleCall: OrmlTokensModuleCall; @@ -111,6 +116,7 @@ declare module '@polkadot/types/types/registry' { PalletCollatorSelectionCall: PalletCollatorSelectionCall; PalletCollatorSelectionError: PalletCollatorSelectionError; PalletCollatorSelectionEvent: PalletCollatorSelectionEvent; + PalletCollatorSelectionHoldReason: PalletCollatorSelectionHoldReason; PalletCollectiveCall: PalletCollectiveCall; PalletCollectiveError: PalletCollectiveError; PalletCollectiveEvent: PalletCollectiveEvent; @@ -153,7 +159,7 @@ declare module '@polkadot/types/types/registry' { PalletEvmMigrationCall: PalletEvmMigrationCall; PalletEvmMigrationError: PalletEvmMigrationError; PalletEvmMigrationEvent: PalletEvmMigrationEvent; - PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds; + PalletForeignAssetsAssetId: PalletForeignAssetsAssetId; PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata; PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall; PalletForeignAssetsModuleError: PalletForeignAssetsModuleError; @@ -232,6 +238,9 @@ declare module '@polkadot/types/types/registry' { PalletTreasuryProposal: PalletTreasuryProposal; PalletUniqueCall: PalletUniqueCall; PalletUniqueError: PalletUniqueError; + PalletUtilityCall: PalletUtilityCall; + PalletUtilityError: PalletUtilityError; + PalletUtilityEvent: PalletUtilityEvent; PalletXcmCall: PalletXcmCall; PalletXcmError: PalletXcmError; PalletXcmEvent: PalletXcmEvent; @@ -244,11 +253,13 @@ declare module '@polkadot/types/types/registry' { PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; - PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat; - PolkadotPrimitivesV4AbridgedHostConfiguration: PolkadotPrimitivesV4AbridgedHostConfiguration; - PolkadotPrimitivesV4AbridgedHrmpChannel: PolkadotPrimitivesV4AbridgedHrmpChannel; - PolkadotPrimitivesV4PersistedValidationData: PolkadotPrimitivesV4PersistedValidationData; - PolkadotPrimitivesV4UpgradeRestriction: PolkadotPrimitivesV4UpgradeRestriction; + PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat; + PolkadotPrimitivesV5AbridgedHostConfiguration: PolkadotPrimitivesV5AbridgedHostConfiguration; + PolkadotPrimitivesV5AbridgedHrmpChannel: PolkadotPrimitivesV5AbridgedHrmpChannel; + PolkadotPrimitivesV5PersistedValidationData: PolkadotPrimitivesV5PersistedValidationData; + PolkadotPrimitivesV5UpgradeGoAhead: PolkadotPrimitivesV5UpgradeGoAhead; + PolkadotPrimitivesV5UpgradeRestriction: PolkadotPrimitivesV5UpgradeRestriction; + PolkadotPrimitivesVstagingAsyncBackingParams: PolkadotPrimitivesVstagingAsyncBackingParams; SpArithmeticArithmeticError: SpArithmeticArithmeticError; SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId; @@ -271,6 +282,56 @@ declare module '@polkadot/types/types/registry' { SpVersionRuntimeVersion: SpVersionRuntimeVersion; SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight; SpWeightsWeightV2Weight: SpWeightsWeightV2Weight; + StagingXcmDoubleEncoded: StagingXcmDoubleEncoded; + StagingXcmV2BodyId: StagingXcmV2BodyId; + StagingXcmV2BodyPart: StagingXcmV2BodyPart; + StagingXcmV2Instruction: StagingXcmV2Instruction; + StagingXcmV2Junction: StagingXcmV2Junction; + StagingXcmV2MultiAsset: StagingXcmV2MultiAsset; + StagingXcmV2MultiLocation: StagingXcmV2MultiLocation; + StagingXcmV2MultiassetAssetId: StagingXcmV2MultiassetAssetId; + StagingXcmV2MultiassetAssetInstance: StagingXcmV2MultiassetAssetInstance; + StagingXcmV2MultiassetFungibility: StagingXcmV2MultiassetFungibility; + StagingXcmV2MultiassetMultiAssetFilter: StagingXcmV2MultiassetMultiAssetFilter; + StagingXcmV2MultiassetMultiAssets: StagingXcmV2MultiassetMultiAssets; + StagingXcmV2MultiassetWildFungibility: StagingXcmV2MultiassetWildFungibility; + StagingXcmV2MultiassetWildMultiAsset: StagingXcmV2MultiassetWildMultiAsset; + StagingXcmV2MultilocationJunctions: StagingXcmV2MultilocationJunctions; + StagingXcmV2NetworkId: StagingXcmV2NetworkId; + StagingXcmV2OriginKind: StagingXcmV2OriginKind; + StagingXcmV2Response: StagingXcmV2Response; + StagingXcmV2TraitsError: StagingXcmV2TraitsError; + StagingXcmV2WeightLimit: StagingXcmV2WeightLimit; + StagingXcmV2Xcm: StagingXcmV2Xcm; + StagingXcmV3Instruction: StagingXcmV3Instruction; + StagingXcmV3Junction: StagingXcmV3Junction; + StagingXcmV3JunctionBodyId: StagingXcmV3JunctionBodyId; + StagingXcmV3JunctionBodyPart: StagingXcmV3JunctionBodyPart; + StagingXcmV3JunctionNetworkId: StagingXcmV3JunctionNetworkId; + StagingXcmV3Junctions: StagingXcmV3Junctions; + StagingXcmV3MaybeErrorCode: StagingXcmV3MaybeErrorCode; + StagingXcmV3MultiAsset: StagingXcmV3MultiAsset; + StagingXcmV3MultiLocation: StagingXcmV3MultiLocation; + StagingXcmV3MultiassetAssetId: StagingXcmV3MultiassetAssetId; + StagingXcmV3MultiassetAssetInstance: StagingXcmV3MultiassetAssetInstance; + StagingXcmV3MultiassetFungibility: StagingXcmV3MultiassetFungibility; + StagingXcmV3MultiassetMultiAssetFilter: StagingXcmV3MultiassetMultiAssetFilter; + StagingXcmV3MultiassetMultiAssets: StagingXcmV3MultiassetMultiAssets; + StagingXcmV3MultiassetWildFungibility: StagingXcmV3MultiassetWildFungibility; + StagingXcmV3MultiassetWildMultiAsset: StagingXcmV3MultiassetWildMultiAsset; + StagingXcmV3PalletInfo: StagingXcmV3PalletInfo; + StagingXcmV3QueryResponseInfo: StagingXcmV3QueryResponseInfo; + StagingXcmV3Response: StagingXcmV3Response; + StagingXcmV3TraitsError: StagingXcmV3TraitsError; + StagingXcmV3TraitsOutcome: StagingXcmV3TraitsOutcome; + StagingXcmV3WeightLimit: StagingXcmV3WeightLimit; + StagingXcmV3Xcm: StagingXcmV3Xcm; + StagingXcmVersionedAssetId: StagingXcmVersionedAssetId; + StagingXcmVersionedMultiAsset: StagingXcmVersionedMultiAsset; + StagingXcmVersionedMultiAssets: StagingXcmVersionedMultiAssets; + StagingXcmVersionedMultiLocation: StagingXcmVersionedMultiLocation; + StagingXcmVersionedResponse: StagingXcmVersionedResponse; + StagingXcmVersionedXcm: StagingXcmVersionedXcm; UpDataStructsAccessMode: UpDataStructsAccessMode; UpDataStructsCollection: UpDataStructsCollection; UpDataStructsCollectionLimits: UpDataStructsCollectionLimits; @@ -304,55 +365,5 @@ declare module '@polkadot/types/types/registry' { UpDataStructsTokenData: UpDataStructsTokenData; UpPovEstimateRpcPovInfo: UpPovEstimateRpcPovInfo; UpPovEstimateRpcTrieKeyValue: UpPovEstimateRpcTrieKeyValue; - XcmDoubleEncoded: XcmDoubleEncoded; - XcmV2BodyId: XcmV2BodyId; - XcmV2BodyPart: XcmV2BodyPart; - XcmV2Instruction: XcmV2Instruction; - XcmV2Junction: XcmV2Junction; - XcmV2MultiAsset: XcmV2MultiAsset; - XcmV2MultiLocation: XcmV2MultiLocation; - XcmV2MultiassetAssetId: XcmV2MultiassetAssetId; - XcmV2MultiassetAssetInstance: XcmV2MultiassetAssetInstance; - XcmV2MultiassetFungibility: XcmV2MultiassetFungibility; - XcmV2MultiassetMultiAssetFilter: XcmV2MultiassetMultiAssetFilter; - XcmV2MultiassetMultiAssets: XcmV2MultiassetMultiAssets; - XcmV2MultiassetWildFungibility: XcmV2MultiassetWildFungibility; - XcmV2MultiassetWildMultiAsset: XcmV2MultiassetWildMultiAsset; - XcmV2MultilocationJunctions: XcmV2MultilocationJunctions; - XcmV2NetworkId: XcmV2NetworkId; - XcmV2OriginKind: XcmV2OriginKind; - XcmV2Response: XcmV2Response; - XcmV2TraitsError: XcmV2TraitsError; - XcmV2WeightLimit: XcmV2WeightLimit; - XcmV2Xcm: XcmV2Xcm; - XcmV3Instruction: XcmV3Instruction; - XcmV3Junction: XcmV3Junction; - XcmV3JunctionBodyId: XcmV3JunctionBodyId; - XcmV3JunctionBodyPart: XcmV3JunctionBodyPart; - XcmV3JunctionNetworkId: XcmV3JunctionNetworkId; - XcmV3Junctions: XcmV3Junctions; - XcmV3MaybeErrorCode: XcmV3MaybeErrorCode; - XcmV3MultiAsset: XcmV3MultiAsset; - XcmV3MultiLocation: XcmV3MultiLocation; - XcmV3MultiassetAssetId: XcmV3MultiassetAssetId; - XcmV3MultiassetAssetInstance: XcmV3MultiassetAssetInstance; - XcmV3MultiassetFungibility: XcmV3MultiassetFungibility; - XcmV3MultiassetMultiAssetFilter: XcmV3MultiassetMultiAssetFilter; - XcmV3MultiassetMultiAssets: XcmV3MultiassetMultiAssets; - XcmV3MultiassetWildFungibility: XcmV3MultiassetWildFungibility; - XcmV3MultiassetWildMultiAsset: XcmV3MultiassetWildMultiAsset; - XcmV3PalletInfo: XcmV3PalletInfo; - XcmV3QueryResponseInfo: XcmV3QueryResponseInfo; - XcmV3Response: XcmV3Response; - XcmV3TraitsError: XcmV3TraitsError; - XcmV3TraitsOutcome: XcmV3TraitsOutcome; - XcmV3WeightLimit: XcmV3WeightLimit; - XcmV3Xcm: XcmV3Xcm; - XcmVersionedAssetId: XcmVersionedAssetId; - XcmVersionedMultiAsset: XcmVersionedMultiAsset; - XcmVersionedMultiAssets: XcmVersionedMultiAssets; - XcmVersionedMultiLocation: XcmVersionedMultiLocation; - XcmVersionedResponse: XcmVersionedResponse; - XcmVersionedXcm: XcmVersionedXcm; } // InterfaceTypes } // declare module diff --git a/tests/src/interfaces/types-lookup.ts b/tests/src/interfaces/types-lookup.ts index 08638533cf..0118b822a7 100644 --- a/tests/src/interfaces/types-lookup.ts +++ b/tests/src/interfaces/types-lookup.ts @@ -510,76 +510,76 @@ declare module '@polkadot/types/lookup' { readonly isTransferredMultiAssets: boolean; readonly asTransferredMultiAssets: { readonly sender: AccountId32; - readonly assets: XcmV3MultiassetMultiAssets; - readonly fee: XcmV3MultiAsset; - readonly dest: XcmV3MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly fee: StagingXcmV3MultiAsset; + readonly dest: StagingXcmV3MultiLocation; } & Struct; readonly type: 'TransferredMultiAssets'; } - /** @name XcmV3MultiassetMultiAssets (49) */ - interface XcmV3MultiassetMultiAssets extends Vec {} + /** @name StagingXcmV3MultiassetMultiAssets (49) */ + interface StagingXcmV3MultiassetMultiAssets extends Vec {} - /** @name XcmV3MultiAsset (51) */ - interface XcmV3MultiAsset extends Struct { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetFungibility; + /** @name StagingXcmV3MultiAsset (51) */ + interface StagingXcmV3MultiAsset extends Struct { + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetFungibility; } - /** @name XcmV3MultiassetAssetId (52) */ - interface XcmV3MultiassetAssetId extends Enum { + /** @name StagingXcmV3MultiassetAssetId (52) */ + interface StagingXcmV3MultiassetAssetId extends Enum { readonly isConcrete: boolean; - readonly asConcrete: XcmV3MultiLocation; + readonly asConcrete: StagingXcmV3MultiLocation; readonly isAbstract: boolean; readonly asAbstract: U8aFixed; readonly type: 'Concrete' | 'Abstract'; } - /** @name XcmV3MultiLocation (53) */ - interface XcmV3MultiLocation extends Struct { + /** @name StagingXcmV3MultiLocation (53) */ + interface StagingXcmV3MultiLocation extends Struct { readonly parents: u8; - readonly interior: XcmV3Junctions; + readonly interior: StagingXcmV3Junctions; } - /** @name XcmV3Junctions (54) */ - interface XcmV3Junctions extends Enum { + /** @name StagingXcmV3Junctions (54) */ + interface StagingXcmV3Junctions extends Enum { readonly isHere: boolean; readonly isX1: boolean; - readonly asX1: XcmV3Junction; + readonly asX1: StagingXcmV3Junction; readonly isX2: boolean; - readonly asX2: ITuple<[XcmV3Junction, XcmV3Junction]>; + readonly asX2: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX3: boolean; - readonly asX3: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX3: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX4: boolean; - readonly asX4: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX4: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX5: boolean; - readonly asX5: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX5: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX6: boolean; - readonly asX6: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX6: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX7: boolean; - readonly asX7: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX7: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly isX8: boolean; - readonly asX8: ITuple<[XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction, XcmV3Junction]>; + readonly asX8: ITuple<[StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction, StagingXcmV3Junction]>; readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; } - /** @name XcmV3Junction (55) */ - interface XcmV3Junction extends Enum { + /** @name StagingXcmV3Junction (55) */ + interface StagingXcmV3Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact; readonly isAccountId32: boolean; readonly asAccountId32: { - readonly network: Option; + readonly network: Option; readonly id: U8aFixed; } & Struct; readonly isAccountIndex64: boolean; readonly asAccountIndex64: { - readonly network: Option; + readonly network: Option; readonly index: Compact; } & Struct; readonly isAccountKey20: boolean; readonly asAccountKey20: { - readonly network: Option; + readonly network: Option; readonly key: U8aFixed; } & Struct; readonly isPalletInstance: boolean; @@ -594,16 +594,16 @@ declare module '@polkadot/types/lookup' { readonly isOnlyChild: boolean; readonly isPlurality: boolean; readonly asPlurality: { - readonly id: XcmV3JunctionBodyId; - readonly part: XcmV3JunctionBodyPart; + readonly id: StagingXcmV3JunctionBodyId; + readonly part: StagingXcmV3JunctionBodyPart; } & Struct; readonly isGlobalConsensus: boolean; - readonly asGlobalConsensus: XcmV3JunctionNetworkId; + readonly asGlobalConsensus: StagingXcmV3JunctionNetworkId; readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus'; } - /** @name XcmV3JunctionNetworkId (58) */ - interface XcmV3JunctionNetworkId extends Enum { + /** @name StagingXcmV3JunctionNetworkId (58) */ + interface StagingXcmV3JunctionNetworkId extends Enum { readonly isByGenesis: boolean; readonly asByGenesis: U8aFixed; readonly isByFork: boolean; @@ -625,8 +625,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash'; } - /** @name XcmV3JunctionBodyId (60) */ - interface XcmV3JunctionBodyId extends Enum { + /** @name StagingXcmV3JunctionBodyId (60) */ + interface StagingXcmV3JunctionBodyId extends Enum { readonly isUnit: boolean; readonly isMoniker: boolean; readonly asMoniker: U8aFixed; @@ -642,8 +642,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; } - /** @name XcmV3JunctionBodyPart (61) */ - interface XcmV3JunctionBodyPart extends Enum { + /** @name StagingXcmV3JunctionBodyPart (61) */ + interface StagingXcmV3JunctionBodyPart extends Enum { readonly isVoice: boolean; readonly isMembers: boolean; readonly asMembers: { @@ -667,17 +667,17 @@ declare module '@polkadot/types/lookup' { readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; } - /** @name XcmV3MultiassetFungibility (62) */ - interface XcmV3MultiassetFungibility extends Enum { + /** @name StagingXcmV3MultiassetFungibility (62) */ + interface StagingXcmV3MultiassetFungibility extends Enum { readonly isFungible: boolean; readonly asFungible: Compact; readonly isNonFungible: boolean; - readonly asNonFungible: XcmV3MultiassetAssetInstance; + readonly asNonFungible: StagingXcmV3MultiassetAssetInstance; readonly type: 'Fungible' | 'NonFungible'; } - /** @name XcmV3MultiassetAssetInstance (63) */ - interface XcmV3MultiassetAssetInstance extends Enum { + /** @name StagingXcmV3MultiassetAssetInstance (63) */ + interface StagingXcmV3MultiassetAssetInstance extends Enum { readonly isUndefined: boolean; readonly isIndex: boolean; readonly asIndex: Compact; @@ -696,38 +696,38 @@ declare module '@polkadot/types/lookup' { interface OrmlTokensModuleEvent extends Enum { readonly isEndowed: boolean; readonly asEndowed: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isDustLost: boolean; readonly asDustLost: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isTransfer: boolean; readonly asTransfer: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; } & Struct; readonly isReserved: boolean; readonly asReserved: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnreserved: boolean; readonly asUnreserved: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isReserveRepatriated: boolean; readonly asReserveRepatriated: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; @@ -735,65 +735,75 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isBalanceSet: boolean; readonly asBalanceSet: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly free: u128; readonly reserved: u128; } & Struct; readonly isTotalIssuanceSet: boolean; readonly asTotalIssuanceSet: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; } & Struct; readonly isWithdrawn: boolean; readonly asWithdrawn: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isSlashed: boolean; readonly asSlashed: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly freeAmount: u128; readonly reservedAmount: u128; } & Struct; readonly isDeposited: boolean; readonly asDeposited: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockSet: boolean; readonly asLockSet: { readonly lockId: U8aFixed; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockRemoved: boolean; readonly asLockRemoved: { readonly lockId: U8aFixed; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; } & Struct; readonly isLocked: boolean; readonly asLocked: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnlocked: boolean; readonly asUnlocked: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly who: AccountId32; readonly amount: u128; } & Struct; - readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked'; + readonly isIssued: boolean; + readonly asIssued: { + readonly currencyId: PalletForeignAssetsAssetId; + readonly amount: u128; + } & Struct; + readonly isRescinded: boolean; + readonly asRescinded: { + readonly currencyId: PalletForeignAssetsAssetId; + readonly amount: u128; + } & Struct; + readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked' | 'Issued' | 'Rescinded'; } - /** @name PalletForeignAssetsAssetIds (67) */ - interface PalletForeignAssetsAssetIds extends Enum { + /** @name PalletForeignAssetsAssetId (67) */ + interface PalletForeignAssetsAssetId extends Enum { readonly isForeignAssetId: boolean; readonly asForeignAssetId: u32; readonly isNativeAssetId: boolean; @@ -1331,14 +1341,14 @@ declare module '@polkadot/types/lookup' { /** @name CumulusPrimitivesParachainInherentParachainInherentData (99) */ interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { - readonly validationData: PolkadotPrimitivesV4PersistedValidationData; + readonly validationData: PolkadotPrimitivesV5PersistedValidationData; readonly relayChainState: SpTrieStorageProof; readonly downwardMessages: Vec; readonly horizontalMessages: BTreeMap>; } - /** @name PolkadotPrimitivesV4PersistedValidationData (100) */ - interface PolkadotPrimitivesV4PersistedValidationData extends Struct { + /** @name PolkadotPrimitivesV5PersistedValidationData (100) */ + interface PolkadotPrimitivesV5PersistedValidationData extends Struct { readonly parentHead: Bytes; readonly relayParentNumber: u32; readonly relayParentStorageRoot: H256; @@ -1542,103 +1552,103 @@ declare module '@polkadot/types/lookup' { interface OrmlXtokensModuleCall extends Enum { readonly isTransfer: boolean; readonly asTransfer: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiasset: boolean; readonly asTransferMultiasset: { - readonly asset: XcmVersionedMultiAsset; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly asset: StagingXcmVersionedMultiAsset; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferWithFee: boolean; readonly asTransferWithFee: { - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: u128; readonly fee: u128; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiassetWithFee: boolean; readonly asTransferMultiassetWithFee: { - readonly asset: XcmVersionedMultiAsset; - readonly fee: XcmVersionedMultiAsset; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly asset: StagingXcmVersionedMultiAsset; + readonly fee: StagingXcmVersionedMultiAsset; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMulticurrencies: boolean; readonly asTransferMulticurrencies: { - readonly currencies: Vec>; + readonly currencies: Vec>; readonly feeItem: u32; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isTransferMultiassets: boolean; readonly asTransferMultiassets: { - readonly assets: XcmVersionedMultiAssets; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeItem: u32; - readonly dest: XcmVersionedMultiLocation; - readonly destWeightLimit: XcmV3WeightLimit; + readonly dest: StagingXcmVersionedMultiLocation; + readonly destWeightLimit: StagingXcmV3WeightLimit; } & Struct; readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets'; } - /** @name XcmVersionedMultiLocation (128) */ - interface XcmVersionedMultiLocation extends Enum { + /** @name StagingXcmVersionedMultiLocation (128) */ + interface StagingXcmVersionedMultiLocation extends Enum { readonly isV2: boolean; - readonly asV2: XcmV2MultiLocation; + readonly asV2: StagingXcmV2MultiLocation; readonly isV3: boolean; - readonly asV3: XcmV3MultiLocation; + readonly asV3: StagingXcmV3MultiLocation; readonly type: 'V2' | 'V3'; } - /** @name XcmV2MultiLocation (129) */ - interface XcmV2MultiLocation extends Struct { + /** @name StagingXcmV2MultiLocation (129) */ + interface StagingXcmV2MultiLocation extends Struct { readonly parents: u8; - readonly interior: XcmV2MultilocationJunctions; + readonly interior: StagingXcmV2MultilocationJunctions; } - /** @name XcmV2MultilocationJunctions (130) */ - interface XcmV2MultilocationJunctions extends Enum { + /** @name StagingXcmV2MultilocationJunctions (130) */ + interface StagingXcmV2MultilocationJunctions extends Enum { readonly isHere: boolean; readonly isX1: boolean; - readonly asX1: XcmV2Junction; + readonly asX1: StagingXcmV2Junction; readonly isX2: boolean; - readonly asX2: ITuple<[XcmV2Junction, XcmV2Junction]>; + readonly asX2: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX3: boolean; - readonly asX3: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX3: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX4: boolean; - readonly asX4: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX4: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX5: boolean; - readonly asX5: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX5: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX6: boolean; - readonly asX6: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX6: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX7: boolean; - readonly asX7: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX7: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly isX8: boolean; - readonly asX8: ITuple<[XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction]>; + readonly asX8: ITuple<[StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction, StagingXcmV2Junction]>; readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; } - /** @name XcmV2Junction (131) */ - interface XcmV2Junction extends Enum { + /** @name StagingXcmV2Junction (131) */ + interface StagingXcmV2Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact; readonly isAccountId32: boolean; readonly asAccountId32: { - readonly network: XcmV2NetworkId; + readonly network: StagingXcmV2NetworkId; readonly id: U8aFixed; } & Struct; readonly isAccountIndex64: boolean; readonly asAccountIndex64: { - readonly network: XcmV2NetworkId; + readonly network: StagingXcmV2NetworkId; readonly index: Compact; } & Struct; readonly isAccountKey20: boolean; readonly asAccountKey20: { - readonly network: XcmV2NetworkId; + readonly network: StagingXcmV2NetworkId; readonly key: U8aFixed; } & Struct; readonly isPalletInstance: boolean; @@ -1650,14 +1660,14 @@ declare module '@polkadot/types/lookup' { readonly isOnlyChild: boolean; readonly isPlurality: boolean; readonly asPlurality: { - readonly id: XcmV2BodyId; - readonly part: XcmV2BodyPart; + readonly id: StagingXcmV2BodyId; + readonly part: StagingXcmV2BodyPart; } & Struct; readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality'; } - /** @name XcmV2NetworkId (132) */ - interface XcmV2NetworkId extends Enum { + /** @name StagingXcmV2NetworkId (132) */ + interface StagingXcmV2NetworkId extends Enum { readonly isAny: boolean; readonly isNamed: boolean; readonly asNamed: Bytes; @@ -1666,8 +1676,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; } - /** @name XcmV2BodyId (134) */ - interface XcmV2BodyId extends Enum { + /** @name StagingXcmV2BodyId (134) */ + interface StagingXcmV2BodyId extends Enum { readonly isUnit: boolean; readonly isNamed: boolean; readonly asNamed: Bytes; @@ -1683,8 +1693,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury'; } - /** @name XcmV2BodyPart (135) */ - interface XcmV2BodyPart extends Enum { + /** @name StagingXcmV2BodyPart (135) */ + interface StagingXcmV2BodyPart extends Enum { readonly isVoice: boolean; readonly isMembers: boolean; readonly asMembers: { @@ -1708,49 +1718,49 @@ declare module '@polkadot/types/lookup' { readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; } - /** @name XcmV3WeightLimit (136) */ - interface XcmV3WeightLimit extends Enum { + /** @name StagingXcmV3WeightLimit (136) */ + interface StagingXcmV3WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; readonly asLimited: SpWeightsWeightV2Weight; readonly type: 'Unlimited' | 'Limited'; } - /** @name XcmVersionedMultiAsset (137) */ - interface XcmVersionedMultiAsset extends Enum { + /** @name StagingXcmVersionedMultiAsset (137) */ + interface StagingXcmVersionedMultiAsset extends Enum { readonly isV2: boolean; - readonly asV2: XcmV2MultiAsset; + readonly asV2: StagingXcmV2MultiAsset; readonly isV3: boolean; - readonly asV3: XcmV3MultiAsset; + readonly asV3: StagingXcmV3MultiAsset; readonly type: 'V2' | 'V3'; } - /** @name XcmV2MultiAsset (138) */ - interface XcmV2MultiAsset extends Struct { - readonly id: XcmV2MultiassetAssetId; - readonly fun: XcmV2MultiassetFungibility; + /** @name StagingXcmV2MultiAsset (138) */ + interface StagingXcmV2MultiAsset extends Struct { + readonly id: StagingXcmV2MultiassetAssetId; + readonly fun: StagingXcmV2MultiassetFungibility; } - /** @name XcmV2MultiassetAssetId (139) */ - interface XcmV2MultiassetAssetId extends Enum { + /** @name StagingXcmV2MultiassetAssetId (139) */ + interface StagingXcmV2MultiassetAssetId extends Enum { readonly isConcrete: boolean; - readonly asConcrete: XcmV2MultiLocation; + readonly asConcrete: StagingXcmV2MultiLocation; readonly isAbstract: boolean; readonly asAbstract: Bytes; readonly type: 'Concrete' | 'Abstract'; } - /** @name XcmV2MultiassetFungibility (140) */ - interface XcmV2MultiassetFungibility extends Enum { + /** @name StagingXcmV2MultiassetFungibility (140) */ + interface StagingXcmV2MultiassetFungibility extends Enum { readonly isFungible: boolean; readonly asFungible: Compact; readonly isNonFungible: boolean; - readonly asNonFungible: XcmV2MultiassetAssetInstance; + readonly asNonFungible: StagingXcmV2MultiassetAssetInstance; readonly type: 'Fungible' | 'NonFungible'; } - /** @name XcmV2MultiassetAssetInstance (141) */ - interface XcmV2MultiassetAssetInstance extends Enum { + /** @name StagingXcmV2MultiassetAssetInstance (141) */ + interface StagingXcmV2MultiassetAssetInstance extends Enum { readonly isUndefined: boolean; readonly isIndex: boolean; readonly asIndex: Compact; @@ -1767,49 +1777,49 @@ declare module '@polkadot/types/lookup' { readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; } - /** @name XcmVersionedMultiAssets (144) */ - interface XcmVersionedMultiAssets extends Enum { + /** @name StagingXcmVersionedMultiAssets (144) */ + interface StagingXcmVersionedMultiAssets extends Enum { readonly isV2: boolean; - readonly asV2: XcmV2MultiassetMultiAssets; + readonly asV2: StagingXcmV2MultiassetMultiAssets; readonly isV3: boolean; - readonly asV3: XcmV3MultiassetMultiAssets; + readonly asV3: StagingXcmV3MultiassetMultiAssets; readonly type: 'V2' | 'V3'; } - /** @name XcmV2MultiassetMultiAssets (145) */ - interface XcmV2MultiassetMultiAssets extends Vec {} + /** @name StagingXcmV2MultiassetMultiAssets (145) */ + interface StagingXcmV2MultiassetMultiAssets extends Vec {} /** @name OrmlTokensModuleCall (147) */ interface OrmlTokensModuleCall extends Enum { readonly isTransfer: boolean; readonly asTransfer: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isTransferAll: boolean; readonly asTransferAll: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly keepAlive: bool; } & Struct; readonly isTransferKeepAlive: boolean; readonly asTransferKeepAlive: { readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isForceTransfer: boolean; readonly asForceTransfer: { readonly source: MultiAddress; readonly dest: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly amount: Compact; } & Struct; readonly isSetBalance: boolean; readonly asSetBalance: { readonly who: MultiAddress; - readonly currencyId: PalletForeignAssetsAssetIds; + readonly currencyId: PalletForeignAssetsAssetId; readonly newFree: Compact; readonly newReserved: Compact; } & Struct; @@ -2265,9 +2275,9 @@ declare module '@polkadot/types/lookup' { /** @name PalletXcmOrigin (214) */ interface PalletXcmOrigin extends Enum { readonly isXcm: boolean; - readonly asXcm: XcmV3MultiLocation; + readonly asXcm: StagingXcmV3MultiLocation; readonly isResponse: boolean; - readonly asResponse: XcmV3MultiLocation; + readonly asResponse: StagingXcmV3MultiLocation; readonly type: 'Xcm' | 'Response'; } @@ -2382,32 +2392,32 @@ declare module '@polkadot/types/lookup' { interface PalletXcmCall extends Enum { readonly isSend: boolean; readonly asSend: { - readonly dest: XcmVersionedMultiLocation; - readonly message: XcmVersionedXcm; + readonly dest: StagingXcmVersionedMultiLocation; + readonly message: StagingXcmVersionedXcm; } & Struct; readonly isTeleportAssets: boolean; readonly asTeleportAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; } & Struct; readonly isReserveTransferAssets: boolean; readonly asReserveTransferAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; } & Struct; readonly isExecute: boolean; readonly asExecute: { - readonly message: XcmVersionedXcm; + readonly message: StagingXcmVersionedXcm; readonly maxWeight: SpWeightsWeightV2Weight; } & Struct; readonly isForceXcmVersion: boolean; readonly asForceXcmVersion: { - readonly location: XcmV3MultiLocation; - readonly xcmVersion: u32; + readonly location: StagingXcmV3MultiLocation; + readonly version: u32; } & Struct; readonly isForceDefaultXcmVersion: boolean; readonly asForceDefaultXcmVersion: { @@ -2415,27 +2425,27 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isForceSubscribeVersionNotify: boolean; readonly asForceSubscribeVersionNotify: { - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; } & Struct; readonly isForceUnsubscribeVersionNotify: boolean; readonly asForceUnsubscribeVersionNotify: { - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; } & Struct; readonly isLimitedReserveTransferAssets: boolean; readonly asLimitedReserveTransferAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; - readonly weightLimit: XcmV3WeightLimit; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isLimitedTeleportAssets: boolean; readonly asLimitedTeleportAssets: { - readonly dest: XcmVersionedMultiLocation; - readonly beneficiary: XcmVersionedMultiLocation; - readonly assets: XcmVersionedMultiAssets; + readonly dest: StagingXcmVersionedMultiLocation; + readonly beneficiary: StagingXcmVersionedMultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; readonly feeAssetItem: u32; - readonly weightLimit: XcmV3WeightLimit; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isForceSuspension: boolean; readonly asForceSuspension: { @@ -2444,48 +2454,48 @@ declare module '@polkadot/types/lookup' { readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension'; } - /** @name XcmVersionedXcm (225) */ - interface XcmVersionedXcm extends Enum { + /** @name StagingXcmVersionedXcm (225) */ + interface StagingXcmVersionedXcm extends Enum { readonly isV2: boolean; - readonly asV2: XcmV2Xcm; + readonly asV2: StagingXcmV2Xcm; readonly isV3: boolean; - readonly asV3: XcmV3Xcm; + readonly asV3: StagingXcmV3Xcm; readonly type: 'V2' | 'V3'; } - /** @name XcmV2Xcm (226) */ - interface XcmV2Xcm extends Vec {} + /** @name StagingXcmV2Xcm (226) */ + interface StagingXcmV2Xcm extends Vec {} - /** @name XcmV2Instruction (228) */ - interface XcmV2Instruction extends Enum { + /** @name StagingXcmV2Instruction (228) */ + interface StagingXcmV2Instruction extends Enum { readonly isWithdrawAsset: boolean; - readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; + readonly asWithdrawAsset: StagingXcmV2MultiassetMultiAssets; readonly isReserveAssetDeposited: boolean; - readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets; + readonly asReserveAssetDeposited: StagingXcmV2MultiassetMultiAssets; readonly isReceiveTeleportedAsset: boolean; - readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets; + readonly asReceiveTeleportedAsset: StagingXcmV2MultiassetMultiAssets; readonly isQueryResponse: boolean; readonly asQueryResponse: { readonly queryId: Compact; - readonly response: XcmV2Response; + readonly response: StagingXcmV2Response; readonly maxWeight: Compact; } & Struct; readonly isTransferAsset: boolean; readonly asTransferAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly beneficiary: XcmV2MultiLocation; + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly beneficiary: StagingXcmV2MultiLocation; } & Struct; readonly isTransferReserveAsset: boolean; readonly asTransferReserveAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; } & Struct; readonly isTransact: boolean; readonly asTransact: { - readonly originType: XcmV2OriginKind; + readonly originType: StagingXcmV2OriginKind; readonly requireWeightAtMost: Compact; - readonly call: XcmDoubleEncoded; + readonly call: StagingXcmDoubleEncoded; } & Struct; readonly isHrmpNewChannelOpenRequest: boolean; readonly asHrmpNewChannelOpenRequest: { @@ -2505,65 +2515,65 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isClearOrigin: boolean; readonly isDescendOrigin: boolean; - readonly asDescendOrigin: XcmV2MultilocationJunctions; + readonly asDescendOrigin: StagingXcmV2MultilocationJunctions; readonly isReportError: boolean; readonly asReportError: { readonly queryId: Compact; - readonly dest: XcmV2MultiLocation; + readonly dest: StagingXcmV2MultiLocation; readonly maxResponseWeight: Compact; } & Struct; readonly isDepositAsset: boolean; readonly asDepositAsset: { - readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; readonly maxAssets: Compact; - readonly beneficiary: XcmV2MultiLocation; + readonly beneficiary: StagingXcmV2MultiLocation; } & Struct; readonly isDepositReserveAsset: boolean; readonly asDepositReserveAsset: { - readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; readonly maxAssets: Compact; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; } & Struct; readonly isExchangeAsset: boolean; readonly asExchangeAsset: { - readonly give: XcmV2MultiassetMultiAssetFilter; - readonly receive: XcmV2MultiassetMultiAssets; + readonly give: StagingXcmV2MultiassetMultiAssetFilter; + readonly receive: StagingXcmV2MultiassetMultiAssets; } & Struct; readonly isInitiateReserveWithdraw: boolean; readonly asInitiateReserveWithdraw: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly reserve: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly reserve: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; } & Struct; readonly isInitiateTeleport: boolean; readonly asInitiateTeleport: { - readonly assets: XcmV2MultiassetMultiAssetFilter; - readonly dest: XcmV2MultiLocation; - readonly xcm: XcmV2Xcm; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; + readonly dest: StagingXcmV2MultiLocation; + readonly xcm: StagingXcmV2Xcm; } & Struct; readonly isQueryHolding: boolean; readonly asQueryHolding: { readonly queryId: Compact; - readonly dest: XcmV2MultiLocation; - readonly assets: XcmV2MultiassetMultiAssetFilter; + readonly dest: StagingXcmV2MultiLocation; + readonly assets: StagingXcmV2MultiassetMultiAssetFilter; readonly maxResponseWeight: Compact; } & Struct; readonly isBuyExecution: boolean; readonly asBuyExecution: { - readonly fees: XcmV2MultiAsset; - readonly weightLimit: XcmV2WeightLimit; + readonly fees: StagingXcmV2MultiAsset; + readonly weightLimit: StagingXcmV2WeightLimit; } & Struct; readonly isRefundSurplus: boolean; readonly isSetErrorHandler: boolean; - readonly asSetErrorHandler: XcmV2Xcm; + readonly asSetErrorHandler: StagingXcmV2Xcm; readonly isSetAppendix: boolean; - readonly asSetAppendix: XcmV2Xcm; + readonly asSetAppendix: StagingXcmV2Xcm; readonly isClearError: boolean; readonly isClaimAsset: boolean; readonly asClaimAsset: { - readonly assets: XcmV2MultiassetMultiAssets; - readonly ticket: XcmV2MultiLocation; + readonly assets: StagingXcmV2MultiassetMultiAssets; + readonly ticket: StagingXcmV2MultiLocation; } & Struct; readonly isTrap: boolean; readonly asTrap: Compact; @@ -2576,20 +2586,20 @@ declare module '@polkadot/types/lookup' { readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion'; } - /** @name XcmV2Response (229) */ - interface XcmV2Response extends Enum { + /** @name StagingXcmV2Response (229) */ + interface StagingXcmV2Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; - readonly asAssets: XcmV2MultiassetMultiAssets; + readonly asAssets: StagingXcmV2MultiassetMultiAssets; readonly isExecutionResult: boolean; - readonly asExecutionResult: Option>; + readonly asExecutionResult: Option>; readonly isVersion: boolean; readonly asVersion: u32; readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; } - /** @name XcmV2TraitsError (232) */ - interface XcmV2TraitsError extends Enum { + /** @name StagingXcmV2TraitsError (232) */ + interface StagingXcmV2TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; readonly isUntrustedReserveLocation: boolean; @@ -2621,8 +2631,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable'; } - /** @name XcmV2OriginKind (233) */ - interface XcmV2OriginKind extends Enum { + /** @name StagingXcmV2OriginKind (233) */ + interface StagingXcmV2OriginKind extends Enum { readonly isNative: boolean; readonly isSovereignAccount: boolean; readonly isSuperuser: boolean; @@ -2630,80 +2640,80 @@ declare module '@polkadot/types/lookup' { readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; } - /** @name XcmDoubleEncoded (234) */ - interface XcmDoubleEncoded extends Struct { + /** @name StagingXcmDoubleEncoded (234) */ + interface StagingXcmDoubleEncoded extends Struct { readonly encoded: Bytes; } - /** @name XcmV2MultiassetMultiAssetFilter (235) */ - interface XcmV2MultiassetMultiAssetFilter extends Enum { + /** @name StagingXcmV2MultiassetMultiAssetFilter (235) */ + interface StagingXcmV2MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; - readonly asDefinite: XcmV2MultiassetMultiAssets; + readonly asDefinite: StagingXcmV2MultiassetMultiAssets; readonly isWild: boolean; - readonly asWild: XcmV2MultiassetWildMultiAsset; + readonly asWild: StagingXcmV2MultiassetWildMultiAsset; readonly type: 'Definite' | 'Wild'; } - /** @name XcmV2MultiassetWildMultiAsset (236) */ - interface XcmV2MultiassetWildMultiAsset extends Enum { + /** @name StagingXcmV2MultiassetWildMultiAsset (236) */ + interface StagingXcmV2MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; readonly asAllOf: { - readonly id: XcmV2MultiassetAssetId; - readonly fun: XcmV2MultiassetWildFungibility; + readonly id: StagingXcmV2MultiassetAssetId; + readonly fun: StagingXcmV2MultiassetWildFungibility; } & Struct; readonly type: 'All' | 'AllOf'; } - /** @name XcmV2MultiassetWildFungibility (237) */ - interface XcmV2MultiassetWildFungibility extends Enum { + /** @name StagingXcmV2MultiassetWildFungibility (237) */ + interface StagingXcmV2MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: 'Fungible' | 'NonFungible'; } - /** @name XcmV2WeightLimit (238) */ - interface XcmV2WeightLimit extends Enum { + /** @name StagingXcmV2WeightLimit (238) */ + interface StagingXcmV2WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; readonly asLimited: Compact; readonly type: 'Unlimited' | 'Limited'; } - /** @name XcmV3Xcm (239) */ - interface XcmV3Xcm extends Vec {} + /** @name StagingXcmV3Xcm (239) */ + interface StagingXcmV3Xcm extends Vec {} - /** @name XcmV3Instruction (241) */ - interface XcmV3Instruction extends Enum { + /** @name StagingXcmV3Instruction (241) */ + interface StagingXcmV3Instruction extends Enum { readonly isWithdrawAsset: boolean; - readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; + readonly asWithdrawAsset: StagingXcmV3MultiassetMultiAssets; readonly isReserveAssetDeposited: boolean; - readonly asReserveAssetDeposited: XcmV3MultiassetMultiAssets; + readonly asReserveAssetDeposited: StagingXcmV3MultiassetMultiAssets; readonly isReceiveTeleportedAsset: boolean; - readonly asReceiveTeleportedAsset: XcmV3MultiassetMultiAssets; + readonly asReceiveTeleportedAsset: StagingXcmV3MultiassetMultiAssets; readonly isQueryResponse: boolean; readonly asQueryResponse: { readonly queryId: Compact; - readonly response: XcmV3Response; + readonly response: StagingXcmV3Response; readonly maxWeight: SpWeightsWeightV2Weight; - readonly querier: Option; + readonly querier: Option; } & Struct; readonly isTransferAsset: boolean; readonly asTransferAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly beneficiary: XcmV3MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly beneficiary: StagingXcmV3MultiLocation; } & Struct; readonly isTransferReserveAsset: boolean; readonly asTransferReserveAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isTransact: boolean; readonly asTransact: { - readonly originKind: XcmV2OriginKind; + readonly originKind: StagingXcmV2OriginKind; readonly requireWeightAtMost: SpWeightsWeightV2Weight; - readonly call: XcmDoubleEncoded; + readonly call: StagingXcmDoubleEncoded; } & Struct; readonly isHrmpNewChannelOpenRequest: boolean; readonly asHrmpNewChannelOpenRequest: { @@ -2723,58 +2733,58 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isClearOrigin: boolean; readonly isDescendOrigin: boolean; - readonly asDescendOrigin: XcmV3Junctions; + readonly asDescendOrigin: StagingXcmV3Junctions; readonly isReportError: boolean; - readonly asReportError: XcmV3QueryResponseInfo; + readonly asReportError: StagingXcmV3QueryResponseInfo; readonly isDepositAsset: boolean; readonly asDepositAsset: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly beneficiary: XcmV3MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly beneficiary: StagingXcmV3MultiLocation; } & Struct; readonly isDepositReserveAsset: boolean; readonly asDepositReserveAsset: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isExchangeAsset: boolean; readonly asExchangeAsset: { - readonly give: XcmV3MultiassetMultiAssetFilter; - readonly want: XcmV3MultiassetMultiAssets; + readonly give: StagingXcmV3MultiassetMultiAssetFilter; + readonly want: StagingXcmV3MultiassetMultiAssets; readonly maximal: bool; } & Struct; readonly isInitiateReserveWithdraw: boolean; readonly asInitiateReserveWithdraw: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly reserve: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly reserve: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isInitiateTeleport: boolean; readonly asInitiateTeleport: { - readonly assets: XcmV3MultiassetMultiAssetFilter; - readonly dest: XcmV3MultiLocation; - readonly xcm: XcmV3Xcm; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; + readonly dest: StagingXcmV3MultiLocation; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isReportHolding: boolean; readonly asReportHolding: { - readonly responseInfo: XcmV3QueryResponseInfo; - readonly assets: XcmV3MultiassetMultiAssetFilter; + readonly responseInfo: StagingXcmV3QueryResponseInfo; + readonly assets: StagingXcmV3MultiassetMultiAssetFilter; } & Struct; readonly isBuyExecution: boolean; readonly asBuyExecution: { - readonly fees: XcmV3MultiAsset; - readonly weightLimit: XcmV3WeightLimit; + readonly fees: StagingXcmV3MultiAsset; + readonly weightLimit: StagingXcmV3WeightLimit; } & Struct; readonly isRefundSurplus: boolean; readonly isSetErrorHandler: boolean; - readonly asSetErrorHandler: XcmV3Xcm; + readonly asSetErrorHandler: StagingXcmV3Xcm; readonly isSetAppendix: boolean; - readonly asSetAppendix: XcmV3Xcm; + readonly asSetAppendix: StagingXcmV3Xcm; readonly isClearError: boolean; readonly isClaimAsset: boolean; readonly asClaimAsset: { - readonly assets: XcmV3MultiassetMultiAssets; - readonly ticket: XcmV3MultiLocation; + readonly assets: StagingXcmV3MultiassetMultiAssets; + readonly ticket: StagingXcmV3MultiLocation; } & Struct; readonly isTrap: boolean; readonly asTrap: Compact; @@ -2785,19 +2795,19 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isUnsubscribeVersion: boolean; readonly isBurnAsset: boolean; - readonly asBurnAsset: XcmV3MultiassetMultiAssets; + readonly asBurnAsset: StagingXcmV3MultiassetMultiAssets; readonly isExpectAsset: boolean; - readonly asExpectAsset: XcmV3MultiassetMultiAssets; + readonly asExpectAsset: StagingXcmV3MultiassetMultiAssets; readonly isExpectOrigin: boolean; - readonly asExpectOrigin: Option; + readonly asExpectOrigin: Option; readonly isExpectError: boolean; - readonly asExpectError: Option>; + readonly asExpectError: Option>; readonly isExpectTransactStatus: boolean; - readonly asExpectTransactStatus: XcmV3MaybeErrorCode; + readonly asExpectTransactStatus: StagingXcmV3MaybeErrorCode; readonly isQueryPallet: boolean; readonly asQueryPallet: { readonly moduleName: Bytes; - readonly responseInfo: XcmV3QueryResponseInfo; + readonly responseInfo: StagingXcmV3QueryResponseInfo; } & Struct; readonly isExpectPallet: boolean; readonly asExpectPallet: { @@ -2808,35 +2818,35 @@ declare module '@polkadot/types/lookup' { readonly minCrateMinor: Compact; } & Struct; readonly isReportTransactStatus: boolean; - readonly asReportTransactStatus: XcmV3QueryResponseInfo; + readonly asReportTransactStatus: StagingXcmV3QueryResponseInfo; readonly isClearTransactStatus: boolean; readonly isUniversalOrigin: boolean; - readonly asUniversalOrigin: XcmV3Junction; + readonly asUniversalOrigin: StagingXcmV3Junction; readonly isExportMessage: boolean; readonly asExportMessage: { - readonly network: XcmV3JunctionNetworkId; - readonly destination: XcmV3Junctions; - readonly xcm: XcmV3Xcm; + readonly network: StagingXcmV3JunctionNetworkId; + readonly destination: StagingXcmV3Junctions; + readonly xcm: StagingXcmV3Xcm; } & Struct; readonly isLockAsset: boolean; readonly asLockAsset: { - readonly asset: XcmV3MultiAsset; - readonly unlocker: XcmV3MultiLocation; + readonly asset: StagingXcmV3MultiAsset; + readonly unlocker: StagingXcmV3MultiLocation; } & Struct; readonly isUnlockAsset: boolean; readonly asUnlockAsset: { - readonly asset: XcmV3MultiAsset; - readonly target: XcmV3MultiLocation; + readonly asset: StagingXcmV3MultiAsset; + readonly target: StagingXcmV3MultiLocation; } & Struct; readonly isNoteUnlockable: boolean; readonly asNoteUnlockable: { - readonly asset: XcmV3MultiAsset; - readonly owner: XcmV3MultiLocation; + readonly asset: StagingXcmV3MultiAsset; + readonly owner: StagingXcmV3MultiLocation; } & Struct; readonly isRequestUnlock: boolean; readonly asRequestUnlock: { - readonly asset: XcmV3MultiAsset; - readonly locker: XcmV3MultiLocation; + readonly asset: StagingXcmV3MultiAsset; + readonly locker: StagingXcmV3MultiLocation; } & Struct; readonly isSetFeesMode: boolean; readonly asSetFeesMode: { @@ -2846,33 +2856,33 @@ declare module '@polkadot/types/lookup' { readonly asSetTopic: U8aFixed; readonly isClearTopic: boolean; readonly isAliasOrigin: boolean; - readonly asAliasOrigin: XcmV3MultiLocation; + readonly asAliasOrigin: StagingXcmV3MultiLocation; readonly isUnpaidExecution: boolean; readonly asUnpaidExecution: { - readonly weightLimit: XcmV3WeightLimit; - readonly checkOrigin: Option; + readonly weightLimit: StagingXcmV3WeightLimit; + readonly checkOrigin: Option; } & Struct; readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution'; } - /** @name XcmV3Response (242) */ - interface XcmV3Response extends Enum { + /** @name StagingXcmV3Response (242) */ + interface StagingXcmV3Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; - readonly asAssets: XcmV3MultiassetMultiAssets; + readonly asAssets: StagingXcmV3MultiassetMultiAssets; readonly isExecutionResult: boolean; - readonly asExecutionResult: Option>; + readonly asExecutionResult: Option>; readonly isVersion: boolean; readonly asVersion: u32; readonly isPalletsInfo: boolean; - readonly asPalletsInfo: Vec; + readonly asPalletsInfo: Vec; readonly isDispatchResult: boolean; - readonly asDispatchResult: XcmV3MaybeErrorCode; + readonly asDispatchResult: StagingXcmV3MaybeErrorCode; readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; } - /** @name XcmV3TraitsError (245) */ - interface XcmV3TraitsError extends Enum { + /** @name StagingXcmV3TraitsError (245) */ + interface StagingXcmV3TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; readonly isUntrustedReserveLocation: boolean; @@ -2918,8 +2928,8 @@ declare module '@polkadot/types/lookup' { readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit'; } - /** @name XcmV3PalletInfo (247) */ - interface XcmV3PalletInfo extends Struct { + /** @name StagingXcmV3PalletInfo (247) */ + interface StagingXcmV3PalletInfo extends Struct { readonly index: Compact; readonly name: Bytes; readonly moduleName: Bytes; @@ -2928,8 +2938,8 @@ declare module '@polkadot/types/lookup' { readonly patch: Compact; } - /** @name XcmV3MaybeErrorCode (250) */ - interface XcmV3MaybeErrorCode extends Enum { + /** @name StagingXcmV3MaybeErrorCode (250) */ + interface StagingXcmV3MaybeErrorCode extends Enum { readonly isSuccess: boolean; readonly isError: boolean; readonly asError: Bytes; @@ -2938,43 +2948,43 @@ declare module '@polkadot/types/lookup' { readonly type: 'Success' | 'Error' | 'TruncatedError'; } - /** @name XcmV3QueryResponseInfo (253) */ - interface XcmV3QueryResponseInfo extends Struct { - readonly destination: XcmV3MultiLocation; + /** @name StagingXcmV3QueryResponseInfo (253) */ + interface StagingXcmV3QueryResponseInfo extends Struct { + readonly destination: StagingXcmV3MultiLocation; readonly queryId: Compact; readonly maxWeight: SpWeightsWeightV2Weight; } - /** @name XcmV3MultiassetMultiAssetFilter (254) */ - interface XcmV3MultiassetMultiAssetFilter extends Enum { + /** @name StagingXcmV3MultiassetMultiAssetFilter (254) */ + interface StagingXcmV3MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; - readonly asDefinite: XcmV3MultiassetMultiAssets; + readonly asDefinite: StagingXcmV3MultiassetMultiAssets; readonly isWild: boolean; - readonly asWild: XcmV3MultiassetWildMultiAsset; + readonly asWild: StagingXcmV3MultiassetWildMultiAsset; readonly type: 'Definite' | 'Wild'; } - /** @name XcmV3MultiassetWildMultiAsset (255) */ - interface XcmV3MultiassetWildMultiAsset extends Enum { + /** @name StagingXcmV3MultiassetWildMultiAsset (255) */ + interface StagingXcmV3MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; readonly asAllOf: { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetWildFungibility; + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetWildFungibility; } & Struct; readonly isAllCounted: boolean; readonly asAllCounted: Compact; readonly isAllOfCounted: boolean; readonly asAllOfCounted: { - readonly id: XcmV3MultiassetAssetId; - readonly fun: XcmV3MultiassetWildFungibility; + readonly id: StagingXcmV3MultiassetAssetId; + readonly fun: StagingXcmV3MultiassetWildFungibility; readonly count: Compact; } & Struct; readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; } - /** @name XcmV3MultiassetWildFungibility (256) */ - interface XcmV3MultiassetWildFungibility extends Enum { + /** @name StagingXcmV3MultiassetWildFungibility (256) */ + interface StagingXcmV3MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: 'Fungible' | 'NonFungible'; @@ -3427,13 +3437,13 @@ declare module '@polkadot/types/lookup' { readonly isRegisterForeignAsset: boolean; readonly asRegisterForeignAsset: { readonly owner: AccountId32; - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isUpdateForeignAsset: boolean; readonly asUpdateForeignAsset: { readonly foreignAssetId: u32; - readonly location: XcmVersionedMultiLocation; + readonly location: StagingXcmVersionedMultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset'; @@ -3623,15 +3633,42 @@ declare module '@polkadot/types/lookup' { interface PalletMaintenanceCall extends Enum { readonly isEnable: boolean; readonly isDisable: boolean; - readonly isExecutePreimage: boolean; - readonly asExecutePreimage: { - readonly hash_: H256; - readonly weightBound: SpWeightsWeightV2Weight; + readonly type: 'Enable' | 'Disable'; + } + + /** @name PalletUtilityCall (362) */ + interface PalletUtilityCall extends Enum { + readonly isBatch: boolean; + readonly asBatch: { + readonly calls: Vec; + } & Struct; + readonly isAsDerivative: boolean; + readonly asAsDerivative: { + readonly index: u16; + readonly call: Call; + } & Struct; + readonly isBatchAll: boolean; + readonly asBatchAll: { + readonly calls: Vec; + } & Struct; + readonly isDispatchAs: boolean; + readonly asDispatchAs: { + readonly asOrigin: OpalRuntimeOriginCaller; + readonly call: Call; + } & Struct; + readonly isForceBatch: boolean; + readonly asForceBatch: { + readonly calls: Vec; + } & Struct; + readonly isWithWeight: boolean; + readonly asWithWeight: { + readonly call: Call; + readonly weight: SpWeightsWeightV2Weight; } & Struct; - readonly type: 'Enable' | 'Disable' | 'ExecutePreimage'; + readonly type: 'Batch' | 'AsDerivative' | 'BatchAll' | 'DispatchAs' | 'ForceBatch' | 'WithWeight'; } - /** @name PalletTestUtilsCall (362) */ + /** @name PalletTestUtilsCall (364) */ interface PalletTestUtilsCall extends Enum { readonly isEnable: boolean; readonly isSetTestValue: boolean; @@ -3651,7 +3688,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll'; } - /** @name PalletSchedulerEvent (365) */ + /** @name PalletSchedulerEvent (366) */ interface PalletSchedulerEvent extends Enum { readonly isScheduled: boolean; readonly asScheduled: { @@ -3687,30 +3724,32 @@ declare module '@polkadot/types/lookup' { readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'CallUnavailable' | 'PeriodicFailed' | 'PermanentlyOverweight'; } - /** @name CumulusPalletXcmpQueueEvent (366) */ + /** @name CumulusPalletXcmpQueueEvent (367) */ interface CumulusPalletXcmpQueueEvent extends Enum { readonly isSuccess: boolean; readonly asSuccess: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; readonly weight: SpWeightsWeightV2Weight; } & Struct; readonly isFail: boolean; readonly asFail: { - readonly messageHash: Option; - readonly error: XcmV3TraitsError; + readonly messageHash: U8aFixed; + readonly messageId: U8aFixed; + readonly error: StagingXcmV3TraitsError; readonly weight: SpWeightsWeightV2Weight; } & Struct; readonly isBadVersion: boolean; readonly asBadVersion: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isBadFormat: boolean; readonly asBadFormat: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isXcmpMessageSent: boolean; readonly asXcmpMessageSent: { - readonly messageHash: Option; + readonly messageHash: U8aFixed; } & Struct; readonly isOverweightEnqueued: boolean; readonly asOverweightEnqueued: { @@ -3727,102 +3766,191 @@ declare module '@polkadot/types/lookup' { readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced'; } - /** @name PalletXcmEvent (367) */ + /** @name PalletXcmEvent (368) */ interface PalletXcmEvent extends Enum { readonly isAttempted: boolean; - readonly asAttempted: XcmV3TraitsOutcome; + readonly asAttempted: { + readonly outcome: StagingXcmV3TraitsOutcome; + } & Struct; readonly isSent: boolean; - readonly asSent: ITuple<[XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>; + readonly asSent: { + readonly origin: StagingXcmV3MultiLocation; + readonly destination: StagingXcmV3MultiLocation; + readonly message: StagingXcmV3Xcm; + readonly messageId: U8aFixed; + } & Struct; readonly isUnexpectedResponse: boolean; - readonly asUnexpectedResponse: ITuple<[XcmV3MultiLocation, u64]>; + readonly asUnexpectedResponse: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isResponseReady: boolean; - readonly asResponseReady: ITuple<[u64, XcmV3Response]>; + readonly asResponseReady: { + readonly queryId: u64; + readonly response: StagingXcmV3Response; + } & Struct; readonly isNotified: boolean; - readonly asNotified: ITuple<[u64, u8, u8]>; + readonly asNotified: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isNotifyOverweight: boolean; - readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>; + readonly asNotifyOverweight: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + readonly actualWeight: SpWeightsWeightV2Weight; + readonly maxBudgetedWeight: SpWeightsWeightV2Weight; + } & Struct; readonly isNotifyDispatchError: boolean; - readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>; + readonly asNotifyDispatchError: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isNotifyDecodeFailed: boolean; - readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>; + readonly asNotifyDecodeFailed: { + readonly queryId: u64; + readonly palletIndex: u8; + readonly callIndex: u8; + } & Struct; readonly isInvalidResponder: boolean; - readonly asInvalidResponder: ITuple<[XcmV3MultiLocation, u64, Option]>; + readonly asInvalidResponder: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly expectedLocation: Option; + } & Struct; readonly isInvalidResponderVersion: boolean; - readonly asInvalidResponderVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly asInvalidResponderVersion: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isResponseTaken: boolean; - readonly asResponseTaken: u64; + readonly asResponseTaken: { + readonly queryId: u64; + } & Struct; readonly isAssetsTrapped: boolean; - readonly asAssetsTrapped: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly asAssetsTrapped: { + readonly hash_: H256; + readonly origin: StagingXcmV3MultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; + } & Struct; readonly isVersionChangeNotified: boolean; - readonly asVersionChangeNotified: ITuple<[XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>; + readonly asVersionChangeNotified: { + readonly destination: StagingXcmV3MultiLocation; + readonly result: u32; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isSupportedVersionChanged: boolean; - readonly asSupportedVersionChanged: ITuple<[XcmV3MultiLocation, u32]>; + readonly asSupportedVersionChanged: { + readonly location: StagingXcmV3MultiLocation; + readonly version: u32; + } & Struct; readonly isNotifyTargetSendFail: boolean; - readonly asNotifyTargetSendFail: ITuple<[XcmV3MultiLocation, u64, XcmV3TraitsError]>; + readonly asNotifyTargetSendFail: { + readonly location: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly error: StagingXcmV3TraitsError; + } & Struct; readonly isNotifyTargetMigrationFail: boolean; - readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>; + readonly asNotifyTargetMigrationFail: { + readonly location: StagingXcmVersionedMultiLocation; + readonly queryId: u64; + } & Struct; readonly isInvalidQuerierVersion: boolean; - readonly asInvalidQuerierVersion: ITuple<[XcmV3MultiLocation, u64]>; + readonly asInvalidQuerierVersion: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + } & Struct; readonly isInvalidQuerier: boolean; - readonly asInvalidQuerier: ITuple<[XcmV3MultiLocation, u64, XcmV3MultiLocation, Option]>; + readonly asInvalidQuerier: { + readonly origin: StagingXcmV3MultiLocation; + readonly queryId: u64; + readonly expectedQuerier: StagingXcmV3MultiLocation; + readonly maybeActualQuerier: Option; + } & Struct; readonly isVersionNotifyStarted: boolean; - readonly asVersionNotifyStarted: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyStarted: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isVersionNotifyRequested: boolean; - readonly asVersionNotifyRequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyRequested: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isVersionNotifyUnrequested: boolean; - readonly asVersionNotifyUnrequested: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asVersionNotifyUnrequested: { + readonly destination: StagingXcmV3MultiLocation; + readonly cost: StagingXcmV3MultiassetMultiAssets; + readonly messageId: U8aFixed; + } & Struct; readonly isFeesPaid: boolean; - readonly asFeesPaid: ITuple<[XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>; + readonly asFeesPaid: { + readonly paying: StagingXcmV3MultiLocation; + readonly fees: StagingXcmV3MultiassetMultiAssets; + } & Struct; readonly isAssetsClaimed: boolean; - readonly asAssetsClaimed: ITuple<[H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>; + readonly asAssetsClaimed: { + readonly hash_: H256; + readonly origin: StagingXcmV3MultiLocation; + readonly assets: StagingXcmVersionedMultiAssets; + } & Struct; readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed'; } - /** @name XcmV3TraitsOutcome (368) */ - interface XcmV3TraitsOutcome extends Enum { + /** @name StagingXcmV3TraitsOutcome (369) */ + interface StagingXcmV3TraitsOutcome extends Enum { readonly isComplete: boolean; readonly asComplete: SpWeightsWeightV2Weight; readonly isIncomplete: boolean; - readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, XcmV3TraitsError]>; + readonly asIncomplete: ITuple<[SpWeightsWeightV2Weight, StagingXcmV3TraitsError]>; readonly isError: boolean; - readonly asError: XcmV3TraitsError; + readonly asError: StagingXcmV3TraitsError; readonly type: 'Complete' | 'Incomplete' | 'Error'; } - /** @name CumulusPalletXcmEvent (369) */ + /** @name CumulusPalletXcmEvent (370) */ interface CumulusPalletXcmEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: U8aFixed; readonly isUnsupportedVersion: boolean; readonly asUnsupportedVersion: U8aFixed; readonly isExecutedDownward: boolean; - readonly asExecutedDownward: ITuple<[U8aFixed, XcmV3TraitsOutcome]>; + readonly asExecutedDownward: ITuple<[U8aFixed, StagingXcmV3TraitsOutcome]>; readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward'; } - /** @name CumulusPalletDmpQueueEvent (370) */ + /** @name CumulusPalletDmpQueueEvent (371) */ interface CumulusPalletDmpQueueEvent extends Enum { readonly isInvalidFormat: boolean; readonly asInvalidFormat: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly isUnsupportedVersion: boolean; readonly asUnsupportedVersion: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly isExecutedDownward: boolean; readonly asExecutedDownward: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; - readonly outcome: XcmV3TraitsOutcome; + readonly outcome: StagingXcmV3TraitsOutcome; } & Struct; readonly isWeightExhausted: boolean; readonly asWeightExhausted: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; readonly remainingWeight: SpWeightsWeightV2Weight; readonly requiredWeight: SpWeightsWeightV2Weight; } & Struct; readonly isOverweightEnqueued: boolean; readonly asOverweightEnqueued: { + readonly messageHash: U8aFixed; readonly messageId: U8aFixed; readonly overweightIndex: u64; readonly requiredWeight: SpWeightsWeightV2Weight; @@ -3834,12 +3962,12 @@ declare module '@polkadot/types/lookup' { } & Struct; readonly isMaxMessagesExhausted: boolean; readonly asMaxMessagesExhausted: { - readonly messageId: U8aFixed; + readonly messageHash: U8aFixed; } & Struct; readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced' | 'MaxMessagesExhausted'; } - /** @name PalletConfigurationEvent (371) */ + /** @name PalletConfigurationEvent (372) */ interface PalletConfigurationEvent extends Enum { readonly isNewDesiredCollators: boolean; readonly asNewDesiredCollators: { @@ -3856,7 +3984,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold'; } - /** @name PalletCommonEvent (372) */ + /** @name PalletCommonEvent (373) */ interface PalletCommonEvent extends Enum { readonly isCollectionCreated: boolean; readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>; @@ -3905,14 +4033,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved'; } - /** @name PalletStructureEvent (373) */ + /** @name PalletStructureEvent (374) */ interface PalletStructureEvent extends Enum { readonly isExecuted: boolean; readonly asExecuted: Result; readonly type: 'Executed'; } - /** @name PalletAppPromotionEvent (374) */ + /** @name PalletAppPromotionEvent (375) */ interface PalletAppPromotionEvent extends Enum { readonly isStakingRecalculation: boolean; readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>; @@ -3925,34 +4053,34 @@ declare module '@polkadot/types/lookup' { readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin'; } - /** @name PalletForeignAssetsModuleEvent (375) */ + /** @name PalletForeignAssetsModuleEvent (376) */ interface PalletForeignAssetsModuleEvent extends Enum { readonly isForeignAssetRegistered: boolean; readonly asForeignAssetRegistered: { readonly assetId: u32; - readonly assetAddress: XcmV3MultiLocation; + readonly assetAddress: StagingXcmV3MultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isForeignAssetUpdated: boolean; readonly asForeignAssetUpdated: { readonly assetId: u32; - readonly assetAddress: XcmV3MultiLocation; + readonly assetAddress: StagingXcmV3MultiLocation; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isAssetRegistered: boolean; readonly asAssetRegistered: { - readonly assetId: PalletForeignAssetsAssetIds; + readonly assetId: PalletForeignAssetsAssetId; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly isAssetUpdated: boolean; readonly asAssetUpdated: { - readonly assetId: PalletForeignAssetsAssetIds; + readonly assetId: PalletForeignAssetsAssetId; readonly metadata: PalletForeignAssetsModuleAssetMetadata; } & Struct; readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated'; } - /** @name PalletEvmEvent (376) */ + /** @name PalletEvmEvent (377) */ interface PalletEvmEvent extends Enum { readonly isLog: boolean; readonly asLog: { @@ -3977,7 +4105,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed'; } - /** @name PalletEthereumEvent (377) */ + /** @name PalletEthereumEvent (378) */ interface PalletEthereumEvent extends Enum { readonly isExecuted: boolean; readonly asExecuted: { @@ -3990,7 +4118,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Executed'; } - /** @name EvmCoreErrorExitReason (378) */ + /** @name EvmCoreErrorExitReason (379) */ interface EvmCoreErrorExitReason extends Enum { readonly isSucceed: boolean; readonly asSucceed: EvmCoreErrorExitSucceed; @@ -4003,7 +4131,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal'; } - /** @name EvmCoreErrorExitSucceed (379) */ + /** @name EvmCoreErrorExitSucceed (380) */ interface EvmCoreErrorExitSucceed extends Enum { readonly isStopped: boolean; readonly isReturned: boolean; @@ -4011,7 +4139,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Stopped' | 'Returned' | 'Suicided'; } - /** @name EvmCoreErrorExitError (380) */ + /** @name EvmCoreErrorExitError (381) */ interface EvmCoreErrorExitError extends Enum { readonly isStackUnderflow: boolean; readonly isStackOverflow: boolean; @@ -4034,13 +4162,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'MaxNonce' | 'InvalidCode'; } - /** @name EvmCoreErrorExitRevert (384) */ + /** @name EvmCoreErrorExitRevert (385) */ interface EvmCoreErrorExitRevert extends Enum { readonly isReverted: boolean; readonly type: 'Reverted'; } - /** @name EvmCoreErrorExitFatal (385) */ + /** @name EvmCoreErrorExitFatal (386) */ interface EvmCoreErrorExitFatal extends Enum { readonly isNotSupported: boolean; readonly isUnhandledInterrupt: boolean; @@ -4051,7 +4179,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other'; } - /** @name PalletEvmContractHelpersEvent (386) */ + /** @name PalletEvmContractHelpersEvent (387) */ interface PalletEvmContractHelpersEvent extends Enum { readonly isContractSponsorSet: boolean; readonly asContractSponsorSet: ITuple<[H160, AccountId32]>; @@ -4062,20 +4190,41 @@ declare module '@polkadot/types/lookup' { readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved'; } - /** @name PalletEvmMigrationEvent (387) */ + /** @name PalletEvmMigrationEvent (388) */ interface PalletEvmMigrationEvent extends Enum { readonly isTestEvent: boolean; readonly type: 'TestEvent'; } - /** @name PalletMaintenanceEvent (388) */ + /** @name PalletMaintenanceEvent (389) */ interface PalletMaintenanceEvent extends Enum { readonly isMaintenanceEnabled: boolean; readonly isMaintenanceDisabled: boolean; readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled'; } - /** @name PalletTestUtilsEvent (389) */ + /** @name PalletUtilityEvent (390) */ + interface PalletUtilityEvent extends Enum { + readonly isBatchInterrupted: boolean; + readonly asBatchInterrupted: { + readonly index: u32; + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isBatchCompleted: boolean; + readonly isBatchCompletedWithErrors: boolean; + readonly isItemCompleted: boolean; + readonly isItemFailed: boolean; + readonly asItemFailed: { + readonly error: SpRuntimeDispatchError; + } & Struct; + readonly isDispatchedAs: boolean; + readonly asDispatchedAs: { + readonly result: Result; + } & Struct; + readonly type: 'BatchInterrupted' | 'BatchCompleted' | 'BatchCompletedWithErrors' | 'ItemCompleted' | 'ItemFailed' | 'DispatchedAs'; + } + + /** @name PalletTestUtilsEvent (391) */ interface PalletTestUtilsEvent extends Enum { readonly isValueIsSet: boolean; readonly isShouldRollback: boolean; @@ -4083,7 +4232,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted'; } - /** @name FrameSystemPhase (390) */ + /** @name FrameSystemPhase (392) */ interface FrameSystemPhase extends Enum { readonly isApplyExtrinsic: boolean; readonly asApplyExtrinsic: u32; @@ -4092,27 +4241,27 @@ declare module '@polkadot/types/lookup' { readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization'; } - /** @name FrameSystemLastRuntimeUpgradeInfo (392) */ + /** @name FrameSystemLastRuntimeUpgradeInfo (394) */ interface FrameSystemLastRuntimeUpgradeInfo extends Struct { readonly specVersion: Compact; readonly specName: Text; } - /** @name FrameSystemLimitsBlockWeights (393) */ + /** @name FrameSystemLimitsBlockWeights (395) */ interface FrameSystemLimitsBlockWeights extends Struct { readonly baseBlock: SpWeightsWeightV2Weight; readonly maxBlock: SpWeightsWeightV2Weight; readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass; } - /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (394) */ + /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (396) */ interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct { readonly normal: FrameSystemLimitsWeightsPerClass; readonly operational: FrameSystemLimitsWeightsPerClass; readonly mandatory: FrameSystemLimitsWeightsPerClass; } - /** @name FrameSystemLimitsWeightsPerClass (395) */ + /** @name FrameSystemLimitsWeightsPerClass (397) */ interface FrameSystemLimitsWeightsPerClass extends Struct { readonly baseExtrinsic: SpWeightsWeightV2Weight; readonly maxExtrinsic: Option; @@ -4120,25 +4269,25 @@ declare module '@polkadot/types/lookup' { readonly reserved: Option; } - /** @name FrameSystemLimitsBlockLength (397) */ + /** @name FrameSystemLimitsBlockLength (399) */ interface FrameSystemLimitsBlockLength extends Struct { readonly max: FrameSupportDispatchPerDispatchClassU32; } - /** @name FrameSupportDispatchPerDispatchClassU32 (398) */ + /** @name FrameSupportDispatchPerDispatchClassU32 (400) */ interface FrameSupportDispatchPerDispatchClassU32 extends Struct { readonly normal: u32; readonly operational: u32; readonly mandatory: u32; } - /** @name SpWeightsRuntimeDbWeight (399) */ + /** @name SpWeightsRuntimeDbWeight (401) */ interface SpWeightsRuntimeDbWeight extends Struct { readonly read: u64; readonly write: u64; } - /** @name SpVersionRuntimeVersion (400) */ + /** @name SpVersionRuntimeVersion (402) */ interface SpVersionRuntimeVersion extends Struct { readonly specName: Text; readonly implName: Text; @@ -4150,7 +4299,7 @@ declare module '@polkadot/types/lookup' { readonly stateVersion: u8; } - /** @name FrameSystemError (404) */ + /** @name FrameSystemError (406) */ interface FrameSystemError extends Enum { readonly isInvalidSpecName: boolean; readonly isSpecVersionNeedsToIncrease: boolean; @@ -4161,28 +4310,62 @@ declare module '@polkadot/types/lookup' { readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered'; } - /** @name PolkadotPrimitivesV4UpgradeRestriction (406) */ - interface PolkadotPrimitivesV4UpgradeRestriction extends Enum { + /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (408) */ + interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly paraHeadHash: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (409) */ + interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct { + readonly umpMsgCount: u32; + readonly umpTotalBytes: u32; + readonly hrmpOutgoing: BTreeMap; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (411) */ + interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct { + readonly msgCount: u32; + readonly totalBytes: u32; + } + + /** @name PolkadotPrimitivesV5UpgradeGoAhead (415) */ + interface PolkadotPrimitivesV5UpgradeGoAhead extends Enum { + readonly isAbort: boolean; + readonly isGoAhead: boolean; + readonly type: 'Abort' | 'GoAhead'; + } + + /** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (416) */ + interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { + readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; + readonly hrmpWatermark: Option; + readonly consumedGoAheadSignal: Option; + } + + /** @name PolkadotPrimitivesV5UpgradeRestriction (418) */ + interface PolkadotPrimitivesV5UpgradeRestriction extends Enum { readonly isPresent: boolean; readonly type: 'Present'; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (407) */ + /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (419) */ interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { readonly dmqMqcHead: H256; - readonly relayDispatchQueueSize: CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize; - readonly ingressChannels: Vec>; - readonly egressChannels: Vec>; + readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; } - /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize (408) */ - interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispachQueueSize extends Struct { + /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (420) */ + interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct { readonly remainingCount: u32; readonly remainingSize: u32; } - /** @name PolkadotPrimitivesV4AbridgedHrmpChannel (411) */ - interface PolkadotPrimitivesV4AbridgedHrmpChannel extends Struct { + /** @name PolkadotPrimitivesV5AbridgedHrmpChannel (423) */ + interface PolkadotPrimitivesV5AbridgedHrmpChannel extends Struct { readonly maxCapacity: u32; readonly maxTotalSize: u32; readonly maxMessageSize: u32; @@ -4191,8 +4374,8 @@ declare module '@polkadot/types/lookup' { readonly mqcHead: Option; } - /** @name PolkadotPrimitivesV4AbridgedHostConfiguration (412) */ - interface PolkadotPrimitivesV4AbridgedHostConfiguration extends Struct { + /** @name PolkadotPrimitivesV5AbridgedHostConfiguration (424) */ + interface PolkadotPrimitivesV5AbridgedHostConfiguration extends Struct { readonly maxCodeSize: u32; readonly maxHeadDataSize: u32; readonly maxUpwardQueueCount: u32; @@ -4202,21 +4385,28 @@ declare module '@polkadot/types/lookup' { readonly hrmpMaxMessageNumPerCandidate: u32; readonly validationUpgradeCooldown: u32; readonly validationUpgradeDelay: u32; + readonly asyncBackingParams: PolkadotPrimitivesVstagingAsyncBackingParams; } - /** @name PolkadotCorePrimitivesOutboundHrmpMessage (418) */ + /** @name PolkadotPrimitivesVstagingAsyncBackingParams (425) */ + interface PolkadotPrimitivesVstagingAsyncBackingParams extends Struct { + readonly maxCandidateDepth: u32; + readonly allowedAncestryLen: u32; + } + + /** @name PolkadotCorePrimitivesOutboundHrmpMessage (431) */ interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { readonly recipient: u32; readonly data: Bytes; } - /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (419) */ + /** @name CumulusPalletParachainSystemCodeUpgradeAuthorization (432) */ interface CumulusPalletParachainSystemCodeUpgradeAuthorization extends Struct { readonly codeHash: H256; readonly checkVersion: bool; } - /** @name CumulusPalletParachainSystemError (420) */ + /** @name CumulusPalletParachainSystemError (433) */ interface CumulusPalletParachainSystemError extends Enum { readonly isOverlappingUpgrades: boolean; readonly isProhibitedByPolkadot: boolean; @@ -4229,7 +4419,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized'; } - /** @name PalletCollatorSelectionError (422) */ + /** @name PalletCollatorSelectionError (435) */ interface PalletCollatorSelectionError extends Enum { readonly isTooManyCandidates: boolean; readonly isUnknown: boolean; @@ -4247,10 +4437,10 @@ declare module '@polkadot/types/lookup' { readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered'; } - /** @name SpCoreCryptoKeyTypeId (426) */ + /** @name SpCoreCryptoKeyTypeId (439) */ interface SpCoreCryptoKeyTypeId extends U8aFixed {} - /** @name PalletSessionError (427) */ + /** @name PalletSessionError (440) */ interface PalletSessionError extends Enum { readonly isInvalidProof: boolean; readonly isNoAssociatedValidatorId: boolean; @@ -4260,14 +4450,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount'; } - /** @name PalletBalancesBalanceLock (432) */ + /** @name PalletBalancesBalanceLock (446) */ interface PalletBalancesBalanceLock extends Struct { readonly id: U8aFixed; readonly amount: u128; readonly reasons: PalletBalancesReasons; } - /** @name PalletBalancesReasons (433) */ + /** @name PalletBalancesReasons (447) */ interface PalletBalancesReasons extends Enum { readonly isFee: boolean; readonly isMisc: boolean; @@ -4275,19 +4465,32 @@ declare module '@polkadot/types/lookup' { readonly type: 'Fee' | 'Misc' | 'All'; } - /** @name PalletBalancesReserveData (436) */ + /** @name PalletBalancesReserveData (450) */ interface PalletBalancesReserveData extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name PalletBalancesIdAmount (439) */ + /** @name OpalRuntimeRuntimeHoldReason (454) */ + interface OpalRuntimeRuntimeHoldReason extends Enum { + readonly isCollatorSelection: boolean; + readonly asCollatorSelection: PalletCollatorSelectionHoldReason; + readonly type: 'CollatorSelection'; + } + + /** @name PalletCollatorSelectionHoldReason (455) */ + interface PalletCollatorSelectionHoldReason extends Enum { + readonly isLicenseBond: boolean; + readonly type: 'LicenseBond'; + } + + /** @name PalletBalancesIdAmount (458) */ interface PalletBalancesIdAmount extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name PalletBalancesError (442) */ + /** @name PalletBalancesError (460) */ interface PalletBalancesError extends Enum { readonly isVestingBalance: boolean; readonly isLiquidityRestrictions: boolean; @@ -4302,14 +4505,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'Expendability' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves' | 'TooManyHolds' | 'TooManyFreezes'; } - /** @name PalletTransactionPaymentReleases (444) */ + /** @name PalletTransactionPaymentReleases (462) */ interface PalletTransactionPaymentReleases extends Enum { readonly isV1Ancient: boolean; readonly isV2: boolean; readonly type: 'V1Ancient' | 'V2'; } - /** @name PalletTreasuryProposal (445) */ + /** @name PalletTreasuryProposal (463) */ interface PalletTreasuryProposal extends Struct { readonly proposer: AccountId32; readonly value: u128; @@ -4317,10 +4520,10 @@ declare module '@polkadot/types/lookup' { readonly bond: u128; } - /** @name FrameSupportPalletId (448) */ + /** @name FrameSupportPalletId (466) */ interface FrameSupportPalletId extends U8aFixed {} - /** @name PalletTreasuryError (449) */ + /** @name PalletTreasuryError (467) */ interface PalletTreasuryError extends Enum { readonly isInsufficientProposersBalance: boolean; readonly isInvalidIndex: boolean; @@ -4330,13 +4533,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved'; } - /** @name PalletSudoError (450) */ + /** @name PalletSudoError (468) */ interface PalletSudoError extends Enum { readonly isRequireSudo: boolean; readonly type: 'RequireSudo'; } - /** @name OrmlVestingModuleError (452) */ + /** @name OrmlVestingModuleError (470) */ interface OrmlVestingModuleError extends Enum { readonly isZeroVestingPeriod: boolean; readonly isZeroVestingPeriodCount: boolean; @@ -4347,7 +4550,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded'; } - /** @name OrmlXtokensModuleError (453) */ + /** @name OrmlXtokensModuleError (471) */ interface OrmlXtokensModuleError extends Enum { readonly isAssetHasNoReserve: boolean; readonly isNotCrossChainTransfer: boolean; @@ -4371,26 +4574,26 @@ declare module '@polkadot/types/lookup' { readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined'; } - /** @name OrmlTokensBalanceLock (456) */ + /** @name OrmlTokensBalanceLock (474) */ interface OrmlTokensBalanceLock extends Struct { readonly id: U8aFixed; readonly amount: u128; } - /** @name OrmlTokensAccountData (458) */ + /** @name OrmlTokensAccountData (476) */ interface OrmlTokensAccountData extends Struct { readonly free: u128; readonly reserved: u128; readonly frozen: u128; } - /** @name OrmlTokensReserveData (460) */ + /** @name OrmlTokensReserveData (478) */ interface OrmlTokensReserveData extends Struct { readonly id: Null; readonly amount: u128; } - /** @name OrmlTokensModuleError (462) */ + /** @name OrmlTokensModuleError (480) */ interface OrmlTokensModuleError extends Enum { readonly isBalanceTooLow: boolean; readonly isAmountIntoBalanceFailed: boolean; @@ -4403,14 +4606,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves'; } - /** @name PalletIdentityRegistrarInfo (467) */ + /** @name PalletIdentityRegistrarInfo (485) */ interface PalletIdentityRegistrarInfo extends Struct { readonly account: AccountId32; readonly fee: u128; readonly fields: PalletIdentityBitFlags; } - /** @name PalletIdentityError (469) */ + /** @name PalletIdentityError (487) */ interface PalletIdentityError extends Enum { readonly isTooManySubAccounts: boolean; readonly isNotFound: boolean; @@ -4433,7 +4636,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed'; } - /** @name PalletPreimageRequestStatus (470) */ + /** @name PalletPreimageRequestStatus (488) */ interface PalletPreimageRequestStatus extends Enum { readonly isUnrequested: boolean; readonly asUnrequested: { @@ -4449,7 +4652,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unrequested' | 'Requested'; } - /** @name PalletPreimageError (475) */ + /** @name PalletPreimageError (493) */ interface PalletPreimageError extends Enum { readonly isTooBig: boolean; readonly isAlreadyNoted: boolean; @@ -4460,7 +4663,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested'; } - /** @name PalletDemocracyReferendumInfo (481) */ + /** @name PalletDemocracyReferendumInfo (499) */ interface PalletDemocracyReferendumInfo extends Enum { readonly isOngoing: boolean; readonly asOngoing: PalletDemocracyReferendumStatus; @@ -4472,7 +4675,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Ongoing' | 'Finished'; } - /** @name PalletDemocracyReferendumStatus (482) */ + /** @name PalletDemocracyReferendumStatus (500) */ interface PalletDemocracyReferendumStatus extends Struct { readonly end: u32; readonly proposal: FrameSupportPreimagesBounded; @@ -4481,14 +4684,14 @@ declare module '@polkadot/types/lookup' { readonly tally: PalletDemocracyTally; } - /** @name PalletDemocracyTally (483) */ + /** @name PalletDemocracyTally (501) */ interface PalletDemocracyTally extends Struct { readonly ayes: u128; readonly nays: u128; readonly turnout: u128; } - /** @name PalletDemocracyVoteVoting (484) */ + /** @name PalletDemocracyVoteVoting (502) */ interface PalletDemocracyVoteVoting extends Enum { readonly isDirect: boolean; readonly asDirect: { @@ -4507,16 +4710,16 @@ declare module '@polkadot/types/lookup' { readonly type: 'Direct' | 'Delegating'; } - /** @name PalletDemocracyDelegations (488) */ + /** @name PalletDemocracyDelegations (506) */ interface PalletDemocracyDelegations extends Struct { readonly votes: u128; readonly capital: u128; } - /** @name PalletDemocracyVotePriorLock (489) */ + /** @name PalletDemocracyVotePriorLock (507) */ interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {} - /** @name PalletDemocracyError (492) */ + /** @name PalletDemocracyError (510) */ interface PalletDemocracyError extends Enum { readonly isValueLow: boolean; readonly isProposalMissing: boolean; @@ -4545,7 +4748,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'ValueLow' | 'ProposalMissing' | 'AlreadyCanceled' | 'DuplicateProposal' | 'ProposalBlacklisted' | 'NotSimpleMajority' | 'InvalidHash' | 'NoProposal' | 'AlreadyVetoed' | 'ReferendumInvalid' | 'NoneWaiting' | 'NotVoter' | 'NoPermission' | 'AlreadyDelegating' | 'InsufficientFunds' | 'NotDelegating' | 'VotesExist' | 'InstantNotAllowed' | 'Nonsense' | 'WrongUpperBound' | 'MaxVotesReached' | 'TooMany' | 'VotingPeriodLow' | 'PreimageNotExist'; } - /** @name PalletCollectiveVotes (494) */ + /** @name PalletCollectiveVotes (512) */ interface PalletCollectiveVotes extends Struct { readonly index: u32; readonly threshold: u32; @@ -4554,7 +4757,7 @@ declare module '@polkadot/types/lookup' { readonly end: u32; } - /** @name PalletCollectiveError (495) */ + /** @name PalletCollectiveError (513) */ interface PalletCollectiveError extends Enum { readonly isNotMember: boolean; readonly isDuplicateProposal: boolean; @@ -4566,10 +4769,11 @@ declare module '@polkadot/types/lookup' { readonly isTooManyProposals: boolean; readonly isWrongProposalWeight: boolean; readonly isWrongProposalLength: boolean; - readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength'; + readonly isPrimeAccountNotMember: boolean; + readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength' | 'PrimeAccountNotMember'; } - /** @name PalletMembershipError (499) */ + /** @name PalletMembershipError (517) */ interface PalletMembershipError extends Enum { readonly isAlreadyMember: boolean; readonly isNotMember: boolean; @@ -4577,12 +4781,12 @@ declare module '@polkadot/types/lookup' { readonly type: 'AlreadyMember' | 'NotMember' | 'TooManyMembers'; } - /** @name PalletRankedCollectiveMemberRecord (502) */ + /** @name PalletRankedCollectiveMemberRecord (520) */ interface PalletRankedCollectiveMemberRecord extends Struct { readonly rank: u16; } - /** @name PalletRankedCollectiveError (507) */ + /** @name PalletRankedCollectiveError (525) */ interface PalletRankedCollectiveError extends Enum { readonly isAlreadyMember: boolean; readonly isNotMember: boolean; @@ -4596,7 +4800,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'AlreadyMember' | 'NotMember' | 'NotPolling' | 'Ongoing' | 'NoneRemaining' | 'Corruption' | 'RankTooLow' | 'InvalidWitness' | 'NoPermission'; } - /** @name PalletReferendaReferendumInfo (508) */ + /** @name PalletReferendaReferendumInfo (526) */ interface PalletReferendaReferendumInfo extends Enum { readonly isOngoing: boolean; readonly asOngoing: PalletReferendaReferendumStatus; @@ -4613,7 +4817,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Ongoing' | 'Approved' | 'Rejected' | 'Cancelled' | 'TimedOut' | 'Killed'; } - /** @name PalletReferendaReferendumStatus (509) */ + /** @name PalletReferendaReferendumStatus (527) */ interface PalletReferendaReferendumStatus extends Struct { readonly track: u16; readonly origin: OpalRuntimeOriginCaller; @@ -4628,19 +4832,19 @@ declare module '@polkadot/types/lookup' { readonly alarm: Option]>>; } - /** @name PalletReferendaDeposit (510) */ + /** @name PalletReferendaDeposit (528) */ interface PalletReferendaDeposit extends Struct { readonly who: AccountId32; readonly amount: u128; } - /** @name PalletReferendaDecidingStatus (513) */ + /** @name PalletReferendaDecidingStatus (531) */ interface PalletReferendaDecidingStatus extends Struct { readonly since: u32; readonly confirming: Option; } - /** @name PalletReferendaTrackInfo (519) */ + /** @name PalletReferendaTrackInfo (537) */ interface PalletReferendaTrackInfo extends Struct { readonly name: Text; readonly maxDeciding: u32; @@ -4653,7 +4857,7 @@ declare module '@polkadot/types/lookup' { readonly minSupport: PalletReferendaCurve; } - /** @name PalletReferendaCurve (520) */ + /** @name PalletReferendaCurve (538) */ interface PalletReferendaCurve extends Enum { readonly isLinearDecreasing: boolean; readonly asLinearDecreasing: { @@ -4677,7 +4881,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'LinearDecreasing' | 'SteppedDecreasing' | 'Reciprocal'; } - /** @name PalletReferendaError (523) */ + /** @name PalletReferendaError (541) */ interface PalletReferendaError extends Enum { readonly isNotOngoing: boolean; readonly isHasDeposit: boolean; @@ -4695,7 +4899,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotOngoing' | 'HasDeposit' | 'BadTrack' | 'Full' | 'QueueEmpty' | 'BadReferendum' | 'NothingToDo' | 'NoTrack' | 'Unfinished' | 'NoPermission' | 'NoDeposit' | 'BadStatus' | 'PreimageNotExist'; } - /** @name PalletSchedulerScheduled (526) */ + /** @name PalletSchedulerScheduled (544) */ interface PalletSchedulerScheduled extends Struct { readonly maybeId: Option; readonly priority: u8; @@ -4704,7 +4908,7 @@ declare module '@polkadot/types/lookup' { readonly origin: OpalRuntimeOriginCaller; } - /** @name PalletSchedulerError (528) */ + /** @name PalletSchedulerError (546) */ interface PalletSchedulerError extends Enum { readonly isFailedToSchedule: boolean; readonly isNotFound: boolean; @@ -4714,29 +4918,29 @@ declare module '@polkadot/types/lookup' { readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange' | 'Named'; } - /** @name CumulusPalletXcmpQueueInboundChannelDetails (530) */ + /** @name CumulusPalletXcmpQueueInboundChannelDetails (548) */ interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct { readonly sender: u32; readonly state: CumulusPalletXcmpQueueInboundState; - readonly messageMetadata: Vec>; + readonly messageMetadata: Vec>; } - /** @name CumulusPalletXcmpQueueInboundState (531) */ + /** @name CumulusPalletXcmpQueueInboundState (549) */ interface CumulusPalletXcmpQueueInboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: 'Ok' | 'Suspended'; } - /** @name PolkadotParachainPrimitivesXcmpMessageFormat (534) */ - interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum { + /** @name PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat (552) */ + interface PolkadotParachainPrimitivesPrimitivesXcmpMessageFormat extends Enum { readonly isConcatenatedVersionedXcm: boolean; readonly isConcatenatedEncodedBlob: boolean; readonly isSignals: boolean; readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals'; } - /** @name CumulusPalletXcmpQueueOutboundChannelDetails (537) */ + /** @name CumulusPalletXcmpQueueOutboundChannelDetails (555) */ interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct { readonly recipient: u32; readonly state: CumulusPalletXcmpQueueOutboundState; @@ -4745,14 +4949,14 @@ declare module '@polkadot/types/lookup' { readonly lastIndex: u16; } - /** @name CumulusPalletXcmpQueueOutboundState (538) */ + /** @name CumulusPalletXcmpQueueOutboundState (556) */ interface CumulusPalletXcmpQueueOutboundState extends Enum { readonly isOk: boolean; readonly isSuspended: boolean; readonly type: 'Ok' | 'Suspended'; } - /** @name CumulusPalletXcmpQueueQueueConfigData (540) */ + /** @name CumulusPalletXcmpQueueQueueConfigData (558) */ interface CumulusPalletXcmpQueueQueueConfigData extends Struct { readonly suspendThreshold: u32; readonly dropThreshold: u32; @@ -4762,7 +4966,7 @@ declare module '@polkadot/types/lookup' { readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight; } - /** @name CumulusPalletXcmpQueueError (542) */ + /** @name CumulusPalletXcmpQueueError (560) */ interface CumulusPalletXcmpQueueError extends Enum { readonly isFailedToSend: boolean; readonly isBadXcmOrigin: boolean; @@ -4772,38 +4976,38 @@ declare module '@polkadot/types/lookup' { readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit'; } - /** @name PalletXcmQueryStatus (543) */ + /** @name PalletXcmQueryStatus (561) */ interface PalletXcmQueryStatus extends Enum { readonly isPending: boolean; readonly asPending: { - readonly responder: XcmVersionedMultiLocation; - readonly maybeMatchQuerier: Option; + readonly responder: StagingXcmVersionedMultiLocation; + readonly maybeMatchQuerier: Option; readonly maybeNotify: Option>; readonly timeout: u32; } & Struct; readonly isVersionNotifier: boolean; readonly asVersionNotifier: { - readonly origin: XcmVersionedMultiLocation; + readonly origin: StagingXcmVersionedMultiLocation; readonly isActive: bool; } & Struct; readonly isReady: boolean; readonly asReady: { - readonly response: XcmVersionedResponse; + readonly response: StagingXcmVersionedResponse; readonly at: u32; } & Struct; readonly type: 'Pending' | 'VersionNotifier' | 'Ready'; } - /** @name XcmVersionedResponse (547) */ - interface XcmVersionedResponse extends Enum { + /** @name StagingXcmVersionedResponse (565) */ + interface StagingXcmVersionedResponse extends Enum { readonly isV2: boolean; - readonly asV2: XcmV2Response; + readonly asV2: StagingXcmV2Response; readonly isV3: boolean; - readonly asV3: XcmV3Response; + readonly asV3: StagingXcmV3Response; readonly type: 'V2' | 'V3'; } - /** @name PalletXcmVersionMigrationStage (553) */ + /** @name PalletXcmVersionMigrationStage (571) */ interface PalletXcmVersionMigrationStage extends Enum { readonly isMigrateSupportedVersion: boolean; readonly isMigrateVersionNotifiers: boolean; @@ -4813,22 +5017,22 @@ declare module '@polkadot/types/lookup' { readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets'; } - /** @name XcmVersionedAssetId (556) */ - interface XcmVersionedAssetId extends Enum { + /** @name StagingXcmVersionedAssetId (574) */ + interface StagingXcmVersionedAssetId extends Enum { readonly isV3: boolean; - readonly asV3: XcmV3MultiassetAssetId; + readonly asV3: StagingXcmV3MultiassetAssetId; readonly type: 'V3'; } - /** @name PalletXcmRemoteLockedFungibleRecord (557) */ + /** @name PalletXcmRemoteLockedFungibleRecord (575) */ interface PalletXcmRemoteLockedFungibleRecord extends Struct { readonly amount: u128; - readonly owner: XcmVersionedMultiLocation; - readonly locker: XcmVersionedMultiLocation; + readonly owner: StagingXcmVersionedMultiLocation; + readonly locker: StagingXcmVersionedMultiLocation; readonly consumers: Vec>; } - /** @name PalletXcmError (564) */ + /** @name PalletXcmError (582) */ interface PalletXcmError extends Enum { readonly isUnreachable: boolean; readonly isSendFailure: boolean; @@ -4853,29 +5057,29 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse'; } - /** @name CumulusPalletXcmError (565) */ + /** @name CumulusPalletXcmError (583) */ type CumulusPalletXcmError = Null; - /** @name CumulusPalletDmpQueueConfigData (566) */ + /** @name CumulusPalletDmpQueueConfigData (584) */ interface CumulusPalletDmpQueueConfigData extends Struct { readonly maxIndividual: SpWeightsWeightV2Weight; } - /** @name CumulusPalletDmpQueuePageIndexData (567) */ + /** @name CumulusPalletDmpQueuePageIndexData (585) */ interface CumulusPalletDmpQueuePageIndexData extends Struct { readonly beginUsed: u32; readonly endUsed: u32; readonly overweightCount: u64; } - /** @name CumulusPalletDmpQueueError (570) */ + /** @name CumulusPalletDmpQueueError (588) */ interface CumulusPalletDmpQueueError extends Enum { readonly isUnknown: boolean; readonly isOverLimit: boolean; readonly type: 'Unknown' | 'OverLimit'; } - /** @name PalletUniqueError (574) */ + /** @name PalletUniqueError (592) */ interface PalletUniqueError extends Enum { readonly isCollectionDecimalPointLimitExceeded: boolean; readonly isEmptyArgument: boolean; @@ -4883,13 +5087,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection'; } - /** @name PalletConfigurationError (575) */ + /** @name PalletConfigurationError (593) */ interface PalletConfigurationError extends Enum { readonly isInconsistentConfiguration: boolean; readonly type: 'InconsistentConfiguration'; } - /** @name UpDataStructsCollection (576) */ + /** @name UpDataStructsCollection (594) */ interface UpDataStructsCollection extends Struct { readonly owner: AccountId32; readonly mode: UpDataStructsCollectionMode; @@ -4902,7 +5106,7 @@ declare module '@polkadot/types/lookup' { readonly flags: U8aFixed; } - /** @name UpDataStructsSponsorshipStateAccountId32 (577) */ + /** @name UpDataStructsSponsorshipStateAccountId32 (595) */ interface UpDataStructsSponsorshipStateAccountId32 extends Enum { readonly isDisabled: boolean; readonly isUnconfirmed: boolean; @@ -4912,43 +5116,43 @@ declare module '@polkadot/types/lookup' { readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; } - /** @name UpDataStructsProperties (578) */ + /** @name UpDataStructsProperties (596) */ interface UpDataStructsProperties extends Struct { readonly map: UpDataStructsPropertiesMapBoundedVec; readonly consumedSpace: u32; readonly reserved: u32; } - /** @name UpDataStructsPropertiesMapBoundedVec (579) */ + /** @name UpDataStructsPropertiesMapBoundedVec (597) */ interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap {} - /** @name UpDataStructsPropertiesMapPropertyPermission (584) */ + /** @name UpDataStructsPropertiesMapPropertyPermission (602) */ interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap {} - /** @name UpDataStructsCollectionStats (591) */ + /** @name UpDataStructsCollectionStats (609) */ interface UpDataStructsCollectionStats extends Struct { readonly created: u32; readonly destroyed: u32; readonly alive: u32; } - /** @name UpDataStructsTokenChild (592) */ + /** @name UpDataStructsTokenChild (610) */ interface UpDataStructsTokenChild extends Struct { readonly token: u32; readonly collection: u32; } - /** @name PhantomTypeUpDataStructs (593) */ + /** @name PhantomTypeUpDataStructs (611) */ interface PhantomTypeUpDataStructs extends Vec> {} - /** @name UpDataStructsTokenData (595) */ + /** @name UpDataStructsTokenData (613) */ interface UpDataStructsTokenData extends Struct { readonly properties: Vec; readonly owner: Option; readonly pieces: u128; } - /** @name UpDataStructsRpcCollection (596) */ + /** @name UpDataStructsRpcCollection (614) */ interface UpDataStructsRpcCollection extends Struct { readonly owner: AccountId32; readonly mode: UpDataStructsCollectionMode; @@ -4964,13 +5168,13 @@ declare module '@polkadot/types/lookup' { readonly flags: UpDataStructsRpcCollectionFlags; } - /** @name UpDataStructsRpcCollectionFlags (597) */ + /** @name UpDataStructsRpcCollectionFlags (615) */ interface UpDataStructsRpcCollectionFlags extends Struct { readonly foreign: bool; readonly erc721metadata: bool; } - /** @name UpPovEstimateRpcPovInfo (598) */ + /** @name UpPovEstimateRpcPovInfo (616) */ interface UpPovEstimateRpcPovInfo extends Struct { readonly proofSize: u64; readonly compactProofSize: u64; @@ -4979,7 +5183,7 @@ declare module '@polkadot/types/lookup' { readonly keyValues: Vec; } - /** @name SpRuntimeTransactionValidityTransactionValidityError (601) */ + /** @name SpRuntimeTransactionValidityTransactionValidityError (619) */ interface SpRuntimeTransactionValidityTransactionValidityError extends Enum { readonly isInvalid: boolean; readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction; @@ -4988,7 +5192,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Invalid' | 'Unknown'; } - /** @name SpRuntimeTransactionValidityInvalidTransaction (602) */ + /** @name SpRuntimeTransactionValidityInvalidTransaction (620) */ interface SpRuntimeTransactionValidityInvalidTransaction extends Enum { readonly isCall: boolean; readonly isPayment: boolean; @@ -5005,7 +5209,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner'; } - /** @name SpRuntimeTransactionValidityUnknownTransaction (603) */ + /** @name SpRuntimeTransactionValidityUnknownTransaction (621) */ interface SpRuntimeTransactionValidityUnknownTransaction extends Enum { readonly isCannotLookup: boolean; readonly isNoUnsignedValidator: boolean; @@ -5014,13 +5218,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom'; } - /** @name UpPovEstimateRpcTrieKeyValue (605) */ + /** @name UpPovEstimateRpcTrieKeyValue (623) */ interface UpPovEstimateRpcTrieKeyValue extends Struct { readonly key: Bytes; readonly value: Bytes; } - /** @name PalletCommonError (607) */ + /** @name PalletCommonError (625) */ interface PalletCommonError extends Enum { readonly isCollectionNotFound: boolean; readonly isMustBeTokenOwner: boolean; @@ -5062,7 +5266,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsNotEthMirror' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin'; } - /** @name PalletFungibleError (609) */ + /** @name PalletFungibleError (627) */ interface PalletFungibleError extends Enum { readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean; readonly isFungibleItemsHaveNoId: boolean; @@ -5074,7 +5278,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid'; } - /** @name PalletRefungibleError (614) */ + /** @name PalletRefungibleError (632) */ interface PalletRefungibleError extends Enum { readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean; readonly isWrongRefungiblePieces: boolean; @@ -5084,19 +5288,19 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed'; } - /** @name PalletNonfungibleItemData (615) */ + /** @name PalletNonfungibleItemData (633) */ interface PalletNonfungibleItemData extends Struct { readonly owner: PalletEvmAccountBasicCrossAccountIdRepr; } - /** @name UpDataStructsPropertyScope (617) */ + /** @name UpDataStructsPropertyScope (635) */ interface UpDataStructsPropertyScope extends Enum { readonly isNone: boolean; readonly isRmrk: boolean; readonly type: 'None' | 'Rmrk'; } - /** @name PalletNonfungibleError (620) */ + /** @name PalletNonfungibleError (638) */ interface PalletNonfungibleError extends Enum { readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean; readonly isNonfungibleItemsHaveNoAmount: boolean; @@ -5104,7 +5308,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren'; } - /** @name PalletStructureError (621) */ + /** @name PalletStructureError (639) */ interface PalletStructureError extends Enum { readonly isOuroborosDetected: boolean; readonly isDepthLimit: boolean; @@ -5114,7 +5318,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection'; } - /** @name PalletAppPromotionError (626) */ + /** @name PalletAppPromotionError (644) */ interface PalletAppPromotionError extends Enum { readonly isAdminNotSet: boolean; readonly isNoPermission: boolean; @@ -5126,7 +5330,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'InsufficientStakedBalance' | 'InconsistencyState'; } - /** @name PalletForeignAssetsModuleError (627) */ + /** @name PalletForeignAssetsModuleError (645) */ interface PalletForeignAssetsModuleError extends Enum { readonly isBadLocation: boolean; readonly isMultiLocationExisted: boolean; @@ -5135,13 +5339,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted'; } - /** @name PalletEvmCodeMetadata (628) */ + /** @name PalletEvmCodeMetadata (646) */ interface PalletEvmCodeMetadata extends Struct { readonly size_: u64; readonly hash_: H256; } - /** @name PalletEvmError (630) */ + /** @name PalletEvmError (648) */ interface PalletEvmError extends Enum { readonly isBalanceLow: boolean; readonly isFeeOverflow: boolean; @@ -5157,7 +5361,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA'; } - /** @name FpRpcTransactionStatus (633) */ + /** @name FpRpcTransactionStatus (651) */ interface FpRpcTransactionStatus extends Struct { readonly transactionHash: H256; readonly transactionIndex: u32; @@ -5168,10 +5372,10 @@ declare module '@polkadot/types/lookup' { readonly logsBloom: EthbloomBloom; } - /** @name EthbloomBloom (635) */ + /** @name EthbloomBloom (653) */ interface EthbloomBloom extends U8aFixed {} - /** @name EthereumReceiptReceiptV3 (637) */ + /** @name EthereumReceiptReceiptV3 (655) */ interface EthereumReceiptReceiptV3 extends Enum { readonly isLegacy: boolean; readonly asLegacy: EthereumReceiptEip658ReceiptData; @@ -5182,7 +5386,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Legacy' | 'Eip2930' | 'Eip1559'; } - /** @name EthereumReceiptEip658ReceiptData (638) */ + /** @name EthereumReceiptEip658ReceiptData (656) */ interface EthereumReceiptEip658ReceiptData extends Struct { readonly statusCode: u8; readonly usedGas: U256; @@ -5190,14 +5394,14 @@ declare module '@polkadot/types/lookup' { readonly logs: Vec; } - /** @name EthereumBlock (639) */ + /** @name EthereumBlock (657) */ interface EthereumBlock extends Struct { readonly header: EthereumHeader; readonly transactions: Vec; readonly ommers: Vec; } - /** @name EthereumHeader (640) */ + /** @name EthereumHeader (658) */ interface EthereumHeader extends Struct { readonly parentHash: H256; readonly ommersHash: H256; @@ -5216,24 +5420,24 @@ declare module '@polkadot/types/lookup' { readonly nonce: EthereumTypesHashH64; } - /** @name EthereumTypesHashH64 (641) */ + /** @name EthereumTypesHashH64 (659) */ interface EthereumTypesHashH64 extends U8aFixed {} - /** @name PalletEthereumError (646) */ + /** @name PalletEthereumError (664) */ interface PalletEthereumError extends Enum { readonly isInvalidSignature: boolean; readonly isPreLogExists: boolean; readonly type: 'InvalidSignature' | 'PreLogExists'; } - /** @name PalletEvmCoderSubstrateError (647) */ + /** @name PalletEvmCoderSubstrateError (665) */ interface PalletEvmCoderSubstrateError extends Enum { readonly isOutOfGas: boolean; readonly isOutOfFund: boolean; readonly type: 'OutOfGas' | 'OutOfFund'; } - /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (648) */ + /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (666) */ interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum { readonly isDisabled: boolean; readonly isUnconfirmed: boolean; @@ -5243,7 +5447,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed'; } - /** @name PalletEvmContractHelpersSponsoringModeT (649) */ + /** @name PalletEvmContractHelpersSponsoringModeT (667) */ interface PalletEvmContractHelpersSponsoringModeT extends Enum { readonly isDisabled: boolean; readonly isAllowlisted: boolean; @@ -5251,7 +5455,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Disabled' | 'Allowlisted' | 'Generous'; } - /** @name PalletEvmContractHelpersError (655) */ + /** @name PalletEvmContractHelpersError (673) */ interface PalletEvmContractHelpersError extends Enum { readonly isNoPermission: boolean; readonly isNoPendingSponsor: boolean; @@ -5259,7 +5463,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit'; } - /** @name PalletEvmMigrationError (656) */ + /** @name PalletEvmMigrationError (674) */ interface PalletEvmMigrationError extends Enum { readonly isAccountNotEmpty: boolean; readonly isAccountIsNotMigrating: boolean; @@ -5267,17 +5471,23 @@ declare module '@polkadot/types/lookup' { readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent'; } - /** @name PalletMaintenanceError (657) */ + /** @name PalletMaintenanceError (675) */ type PalletMaintenanceError = Null; - /** @name PalletTestUtilsError (658) */ + /** @name PalletUtilityError (676) */ + interface PalletUtilityError extends Enum { + readonly isTooManyCalls: boolean; + readonly type: 'TooManyCalls'; + } + + /** @name PalletTestUtilsError (677) */ interface PalletTestUtilsError extends Enum { readonly isTestPalletDisabled: boolean; readonly isTriggerRollback: boolean; readonly type: 'TestPalletDisabled' | 'TriggerRollback'; } - /** @name SpRuntimeMultiSignature (660) */ + /** @name SpRuntimeMultiSignature (679) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; readonly asEd25519: SpCoreEd25519Signature; @@ -5288,43 +5498,43 @@ declare module '@polkadot/types/lookup' { readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; } - /** @name SpCoreEd25519Signature (661) */ + /** @name SpCoreEd25519Signature (680) */ interface SpCoreEd25519Signature extends U8aFixed {} - /** @name SpCoreSr25519Signature (663) */ + /** @name SpCoreSr25519Signature (682) */ interface SpCoreSr25519Signature extends U8aFixed {} - /** @name SpCoreEcdsaSignature (664) */ + /** @name SpCoreEcdsaSignature (683) */ interface SpCoreEcdsaSignature extends U8aFixed {} - /** @name FrameSystemExtensionsCheckSpecVersion (667) */ + /** @name FrameSystemExtensionsCheckSpecVersion (686) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (668) */ + /** @name FrameSystemExtensionsCheckTxVersion (687) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (669) */ + /** @name FrameSystemExtensionsCheckGenesis (688) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (672) */ + /** @name FrameSystemExtensionsCheckNonce (691) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name FrameSystemExtensionsCheckWeight (673) */ + /** @name FrameSystemExtensionsCheckWeight (692) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (674) */ + /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (693) */ type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null; - /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (675) */ + /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (694) */ type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null; - /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (676) */ + /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (695) */ interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact {} - /** @name OpalRuntimeRuntime (677) */ + /** @name OpalRuntimeRuntime (696) */ type OpalRuntimeRuntime = Null; - /** @name PalletEthereumFakeTransactionFinalizer (678) */ + /** @name PalletEthereumFakeTransactionFinalizer (697) */ type PalletEthereumFakeTransactionFinalizer = Null; } // declare module diff --git a/tests/src/limits.test.ts b/tests/src/limits.test.ts index 5afebee872..1a1d465e63 100644 --- a/tests/src/limits.test.ts +++ b/tests/src/limits.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js'; describe('Number of tokens per address (NFT)', () => { let alice: IKeyringPair; diff --git a/tests/src/maintenance.seqtest.ts b/tests/src/maintenance.seqtest.ts index 3d8fa7ff5b..cd6d2e176f 100644 --- a/tests/src/maintenance.seqtest.ts +++ b/tests/src/maintenance.seqtest.ts @@ -14,11 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {ApiPromise} from '@polkadot/api'; -import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util'; -import {itEth} from './eth/util'; -import {main as correctState} from './migrations/correctStateAfterMaintenance'; +import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js'; +import {itEth} from './eth/util/index.js'; +import {main as correctState} from './migrations/correctStateAfterMaintenance.js'; async function maintenanceEnabled(api: ApiPromise): Promise { return (await api.query.maintenance.enabled()).toJSON() as boolean; diff --git a/tests/src/migrations/942057-appPromotion/executeMigration.ts b/tests/src/migrations/942057-appPromotion/executeMigration.ts index fec6620678..b9c887c712 100644 --- a/tests/src/migrations/942057-appPromotion/executeMigration.ts +++ b/tests/src/migrations/942057-appPromotion/executeMigration.ts @@ -1,4 +1,4 @@ -import {migrateLockedToFreeze} from './lockedToFreeze'; +import {migrateLockedToFreeze} from './lockedToFreeze.js'; const WS_RPC = process.env.WS_RPC || 'wss://ws-opal.unique.network:443'; diff --git a/tests/src/migrations/942057-appPromotion/index.ts b/tests/src/migrations/942057-appPromotion/index.ts index 71eba7d1f8..01b50b4586 100644 --- a/tests/src/migrations/942057-appPromotion/index.ts +++ b/tests/src/migrations/942057-appPromotion/index.ts @@ -1,6 +1,6 @@ -import {Migration} from '../../util/frankensteinMigrate'; -import {collectData} from './collectData'; -import {migrateLockedToFreeze} from './lockedToFreeze'; +import type {Migration} from '../../util/frankensteinMigrate.js'; +import {collectData} from './collectData.js'; +import {migrateLockedToFreeze} from './lockedToFreeze.js'; export const migration: Migration = { async before() { diff --git a/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts b/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts index c568b2ff99..2e1980453e 100644 --- a/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts +++ b/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts @@ -1,10 +1,10 @@ // import { usingApi, privateKey, onlySign } from "./../../load/lib"; import * as fs from 'fs'; -import {usingPlaygrounds} from '../../util'; +import {usingPlaygrounds} from '../../util/index.js'; import path, {dirname} from 'path'; import {isInteger, parse} from 'lossless-json'; import {fileURLToPath} from 'url'; -import config from '../../config'; +import config from '../../config.js'; const WS_ENDPOINT = config.substrateUrl; diff --git a/tests/src/migrations/correctStateAfterMaintenance.ts b/tests/src/migrations/correctStateAfterMaintenance.ts index b313afef70..2de91a5be7 100644 --- a/tests/src/migrations/correctStateAfterMaintenance.ts +++ b/tests/src/migrations/correctStateAfterMaintenance.ts @@ -1,5 +1,5 @@ -import config from '../config'; -import {usingPlaygrounds} from '../util'; +import config from '../config.js'; +import {usingPlaygrounds} from '../util/index.js'; diff --git a/tests/src/migrations/runCheckState.ts b/tests/src/migrations/runCheckState.ts index f004ea6ff5..143ad92975 100644 --- a/tests/src/migrations/runCheckState.ts +++ b/tests/src/migrations/runCheckState.ts @@ -1,4 +1,4 @@ -import {main} from './correctStateAfterMaintenance'; +import {main} from './correctStateAfterMaintenance.js'; main({ wsEndpoint: process.env.WS_RPC!, diff --git a/tests/src/nativeFungible.test.ts b/tests/src/nativeFungible.test.ts index 36f7aca934..3a350bd60b 100644 --- a/tests/src/nativeFungible.test.ts +++ b/tests/src/nativeFungible.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from './util/index.js'; describe('Native fungible', () => { let root: IKeyringPair; diff --git a/tests/src/nesting/collectionProperties.seqtest.ts b/tests/src/nesting/collectionProperties.seqtest.ts index 4d673f9b24..0c016e0a0a 100644 --- a/tests/src/nesting/collectionProperties.seqtest.ts +++ b/tests/src/nesting/collectionProperties.seqtest.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util/index.js'; describe('Integration Test: Collection Properties with sudo', () => { let superuser: IKeyringPair; diff --git a/tests/src/nesting/collectionProperties.test.ts b/tests/src/nesting/collectionProperties.test.ts index eb98461f0e..60b66194db 100644 --- a/tests/src/nesting/collectionProperties.test.ts +++ b/tests/src/nesting/collectionProperties.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util/index.js'; describe('Integration Test: Collection Properties', () => { let alice: IKeyringPair; diff --git a/tests/src/nesting/graphs.test.ts b/tests/src/nesting/graphs.test.ts index bbaf53818f..299994b4a0 100644 --- a/tests/src/nesting/graphs.test.ts +++ b/tests/src/nesting/graphs.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from '../util'; -import {UniqueHelper, UniqueNFTCollection, UniqueNFToken} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from '../util/index.js'; +import {UniqueHelper, UniqueNFTCollection, UniqueNFToken} from '../util/playgrounds/unique.js'; /** * ```dot diff --git a/tests/src/nesting/propertyPermissions.test.ts b/tests/src/nesting/propertyPermissions.test.ts index a711b54acc..26a6ba1a15 100644 --- a/tests/src/nesting/propertyPermissions.test.ts +++ b/tests/src/nesting/propertyPermissions.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, usingPlaygrounds, expect} from '../util'; -import {UniqueNFTCollection, UniqueRFTCollection} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, usingPlaygrounds, expect} from '../util/index.js'; +import {UniqueNFTCollection, UniqueRFTCollection} from '../util/playgrounds/unique.js'; describe('Integration Test: Access Rights to Token Properties', () => { let alice: IKeyringPair; diff --git a/tests/src/nesting/tokenProperties.seqtest.ts b/tests/src/nesting/tokenProperties.seqtest.ts index 5d358e1725..07c3db96e4 100644 --- a/tests/src/nesting/tokenProperties.seqtest.ts +++ b/tests/src/nesting/tokenProperties.seqtest.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../util/index.js'; describe('Integration Test: Token Properties with sudo', () => { let superuser: IKeyringPair; diff --git a/tests/src/nesting/tokenProperties.test.ts b/tests/src/nesting/tokenProperties.test.ts index fe5b3dee75..3361b41482 100644 --- a/tests/src/nesting/tokenProperties.test.ts +++ b/tests/src/nesting/tokenProperties.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect, sizeOfProperty} from '../util'; -import {UniqueHelper, UniqueNFToken, UniqueRFToken} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect, sizeOfProperty} from '../util/index.js'; +import {UniqueHelper, UniqueNFToken, UniqueRFToken} from '../util/playgrounds/unique.js'; describe('Integration Test: Token Properties', () => { let alice: IKeyringPair; // collection owner diff --git a/tests/src/nesting/unnest.test.ts b/tests/src/nesting/unnest.test.ts index 128f303795..323c8dcb6e 100644 --- a/tests/src/nesting/unnest.test.ts +++ b/tests/src/nesting/unnest.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from '../util'; -import {UniqueFTCollection, UniqueNFToken, UniqueRFToken} from '../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from '../util/index.js'; +import {UniqueFTCollection, UniqueNFToken, UniqueRFToken} from '../util/playgrounds/unique.js'; describe('Integration Test: Unnesting', () => { let alice: IKeyringPair; diff --git a/tests/src/nextSponsoring.test.ts b/tests/src/nextSponsoring.test.ts index 7d3699953a..42172d0256 100644 --- a/tests/src/nextSponsoring.test.ts +++ b/tests/src/nextSponsoring.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from './util/index.js'; const SPONSORING_TIMEOUT = 5; diff --git a/tests/src/pallet-presence.test.ts b/tests/src/pallet-presence.test.ts index 31201bfaab..8588bb8c73 100644 --- a/tests/src/pallet-presence.test.ts +++ b/tests/src/pallet-presence.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {itSub, usingPlaygrounds, expect} from './util'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; // Pallets that must always be present const requiredPallets = [ diff --git a/tests/src/performance.seq.test.ts b/tests/src/performance.seq.test.ts index 66e153b76a..b8e3703612 100644 --- a/tests/src/performance.seq.test.ts +++ b/tests/src/performance.seq.test.ts @@ -15,10 +15,10 @@ // along with Unique Network. If not, see . import {ApiPromise} from '@polkadot/api'; -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from './util'; -import {ICrossAccountId, IProperty} from './util/playgrounds/types'; -import {UniqueHelper} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from './util/index.js'; +import type {ICrossAccountId, IProperty} from './util/playgrounds/types.js'; +import {UniqueHelper} from './util/playgrounds/unique.js'; describe('Performace tests', () => { let alice: IKeyringPair; diff --git a/tests/src/refungible.test.ts b/tests/src/refungible.test.ts index 61327d6234..eb45cba9b2 100644 --- a/tests/src/refungible.test.ts +++ b/tests/src/refungible.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from './util/index.js'; const MAX_REFUNGIBLE_PIECES = 1_000_000_000_000_000_000_000n; diff --git a/tests/src/removeCollectionAdmin.test.ts b/tests/src/removeCollectionAdmin.test.ts index c82475d2a5..ab17bdb101 100644 --- a/tests/src/removeCollectionAdmin.test.ts +++ b/tests/src/removeCollectionAdmin.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test removeCollectionAdmin(collection_id, account_id):', () => { let alice: IKeyringPair; diff --git a/tests/src/removeCollectionSponsor.test.ts b/tests/src/removeCollectionSponsor.test.ts index d6653add26..d40dbb8732 100644 --- a/tests/src/removeCollectionSponsor.test.ts +++ b/tests/src/removeCollectionSponsor.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('integration test: ext. removeCollectionSponsor():', () => { let donor: IKeyringPair; diff --git a/tests/src/rpc.test.ts b/tests/src/rpc.test.ts index 623d8d42f2..9177aa0473 100644 --- a/tests/src/rpc.test.ts +++ b/tests/src/rpc.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, itSub, expect} from './util'; -import {CrossAccountId} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, itSub, expect} from './util/index.js'; +import {CrossAccountId} from './util/playgrounds/unique.js'; describe('integration test: RPC methods', () => { let donor: IKeyringPair; diff --git a/tests/src/scheduler.seqtest.ts b/tests/src/scheduler.seqtest.ts index 3ee9bf15e1..cb89d647b8 100644 --- a/tests/src/scheduler.seqtest.ts +++ b/tests/src/scheduler.seqtest.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util'; -import {IKeyringPair} from '@polkadot/types/types'; -import {DevUniqueHelper, Event} from './util/playgrounds/unique.dev'; +import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {DevUniqueHelper, Event} from './util/playgrounds/unique.dev.js'; describe('Scheduling token and balance transfers', () => { let superuser: IKeyringPair; diff --git a/tests/src/setCollectionLimits.test.ts b/tests/src/setCollectionLimits.test.ts index 1eca365934..42216e85ef 100644 --- a/tests/src/setCollectionLimits.test.ts +++ b/tests/src/setCollectionLimits.test.ts @@ -15,9 +15,9 @@ // along with Unique Network. If not, see . // https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; const accountTokenOwnershipLimit = 0; const sponsoredDataSize = 0; diff --git a/tests/src/setCollectionSponsor.test.ts b/tests/src/setCollectionSponsor.test.ts index bf78c3b4bb..46012b4c49 100644 --- a/tests/src/setCollectionSponsor.test.ts +++ b/tests/src/setCollectionSponsor.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect, Pallets} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect, Pallets} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('integration test: ext. setCollectionSponsor():', () => { let alice: IKeyringPair; diff --git a/tests/src/setPermissions.test.ts b/tests/src/setPermissions.test.ts index 0a8215da1f..f85c5a7603 100644 --- a/tests/src/setPermissions.test.ts +++ b/tests/src/setPermissions.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test: Set Permissions', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/appPromotion/appPromotion.seqtest.ts b/tests/src/sub/appPromotion/appPromotion.seqtest.ts index be646ad3c1..192a5a645a 100644 --- a/tests/src/sub/appPromotion/appPromotion.seqtest.ts +++ b/tests/src/sub/appPromotion/appPromotion.seqtest.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '../../util'; -import {expect} from '../../eth/util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '../../util/index.js'; +import {expect} from '../../eth/util/index.js'; let superuser: IKeyringPair; let donor: IKeyringPair; diff --git a/tests/src/sub/appPromotion/appPromotion.test.ts b/tests/src/sub/appPromotion/appPromotion.test.ts index 9133feaaef..4e8e683e44 100644 --- a/tests/src/sub/appPromotion/appPromotion.test.ts +++ b/tests/src/sub/appPromotion/appPromotion.test.ts @@ -14,12 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import { itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip, LOCKING_PERIOD, UNLOCKING_PERIOD, -} from '../../util'; -import {DevUniqueHelper} from '../../util/playgrounds/unique.dev'; -import {itEth, expect, SponsoringMode} from '../../eth/util'; +} from '../../util/index.js'; +import {DevUniqueHelper} from '../../util/playgrounds/unique.dev.js'; +import {itEth, expect, SponsoringMode} from '../../eth/util/index.js'; let donor: IKeyringPair; let palletAdmin: IKeyringPair; diff --git a/tests/src/sub/nesting/admin.test.ts b/tests/src/sub/nesting/admin.test.ts index 4ffc5139f0..2841e5b746 100644 --- a/tests/src/sub/nesting/admin.test.ts +++ b/tests/src/sub/nesting/admin.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from '../../util/index.js'; describe('Nesting by collection admin', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/nesting/common.test.ts b/tests/src/sub/nesting/common.test.ts index 0b208ccd4d..74baa5f110 100644 --- a/tests/src/sub/nesting/common.test.ts +++ b/tests/src/sub/nesting/common.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from '../../util'; -import {UniqueNFTCollection, UniqueRFTCollection} from '../../util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js'; +import {UniqueNFTCollection, UniqueRFTCollection} from '../../util/playgrounds/unique.js'; let alice: IKeyringPair; let bob: IKeyringPair; @@ -128,7 +128,7 @@ describe('Common nesting tests', () => { const nestedNFT = await nftCollectionToBeNested.mintToken(alice, tokenA.nestingAccount()); const nestedRFT = await rftCollectionToBeNested.mintToken(alice, 100n, tokenA.nestingAccount()); - const _nestedFT = await ftCollectionToBeNested.mint(alice, 100n, tokenA.nestingAccount()); + //const _nestedFT = await ftCollectionToBeNested.mint(alice, 100n, tokenA.nestingAccount()); await nativeFtCollectionToBeNested.transfer(alice, tokenA.nestingAccount(), 100n); expect(await nestedNFT.getOwner()).to.be.deep.equal(tokenA.nestingAccount().toLowerCase()); expect(await nestedRFT.getOwner()).to.be.deep.equal(tokenA.nestingAccount().toLowerCase()); diff --git a/tests/src/sub/nesting/e2e.test.ts b/tests/src/sub/nesting/e2e.test.ts index 603db5c09e..37574851ee 100644 --- a/tests/src/sub/nesting/e2e.test.ts +++ b/tests/src/sub/nesting/e2e.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from '../../util/index.js'; describe('Composite nesting tests', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/nesting/nesting.negative.test.ts b/tests/src/sub/nesting/nesting.negative.test.ts index 3c688d42d1..4bd3e82f48 100644 --- a/tests/src/sub/nesting/nesting.negative.test.ts +++ b/tests/src/sub/nesting/nesting.negative.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from '../../util'; -import {UniqueFTCollection, UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection, UniqueRFToken} from '../../util/playgrounds/unique'; -import {itEth} from '../../eth/util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js'; +import {UniqueFTCollection, UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection, UniqueRFToken} from '../../util/playgrounds/unique.js'; +import {itEth} from '../../eth/util/index.js'; let alice: IKeyringPair; let bob: IKeyringPair; @@ -182,7 +182,7 @@ describe('Negative Test: Nesting', () => { // 2. Alice cannot mint and nest token: const nft = await nftCollectionForNesting.mintToken(alice); const rft = await rftCollectionForNesting.mintToken(alice, 100n); - const _ft = await ftCollectionForNesting.mint(alice, 100n); + //const _ft = await ftCollectionForNesting.mint(alice, 100n); await expect(nft.transfer(alice, testCase.token.nestingAccount())).to.be.rejectedWith(testCase.error); await expect(rft.transfer(alice, testCase.token.nestingAccount())).to.be.rejectedWith(testCase.error); await expect(ftCollectionForNesting.transfer(alice, testCase.token.nestingAccount(), 50n)).to.be.rejectedWith(testCase.error); @@ -214,7 +214,7 @@ describe('Negative Test: Nesting', () => { const nativeFtCollection = helper.ft.getCollectionObject(0); const rftToken = await rftCollection.mintToken(alice); - const _ftToken = await ftCollection.mint(alice, 100n); + //const _ftToken = await ftCollection.mint(alice, 100n); const collectionForNesting = await helper.nft.mintCollection(alice); diff --git a/tests/src/sub/nesting/refungible.test.ts b/tests/src/sub/nesting/refungible.test.ts index 93236dc83a..019472ae7f 100644 --- a/tests/src/sub/nesting/refungible.test.ts +++ b/tests/src/sub/nesting/refungible.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, usingPlaygrounds} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js'; describe('ReFungible-specific nesting tests', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/nesting/unnesting.negative.test.ts b/tests/src/sub/nesting/unnesting.negative.test.ts index d6ec8cb789..7f10b0218b 100644 --- a/tests/src/sub/nesting/unnesting.negative.test.ts +++ b/tests/src/sub/nesting/unnesting.negative.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, usingPlaygrounds} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, usingPlaygrounds} from '../../util/index.js'; describe('Negative Test: Unnesting', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/refungible/burn.test.ts b/tests/src/sub/refungible/burn.test.ts index f39d9ec632..7f9d6fe2bd 100644 --- a/tests/src/sub/refungible/burn.test.ts +++ b/tests/src/sub/refungible/burn.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js'; describe('Refungible: burn', () => { let donor: IKeyringPair; diff --git a/tests/src/sub/refungible/nesting.test.ts b/tests/src/sub/refungible/nesting.test.ts index 545cbed6d3..bec9455570 100644 --- a/tests/src/sub/refungible/nesting.test.ts +++ b/tests/src/sub/refungible/nesting.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../../util/index.js'; describe('Refungible nesting', () => { let alice: IKeyringPair; diff --git a/tests/src/sub/refungible/repartition.test.ts b/tests/src/sub/refungible/repartition.test.ts index 38028ac6f4..f678eb42d9 100644 --- a/tests/src/sub/refungible/repartition.test.ts +++ b/tests/src/sub/refungible/repartition.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js'; describe('integration test: Refungible functionality:', () => { let donor: IKeyringPair; diff --git a/tests/src/sub/refungible/transfer.test.ts b/tests/src/sub/refungible/transfer.test.ts index 7ae35705c9..4aef955a56 100644 --- a/tests/src/sub/refungible/transfer.test.ts +++ b/tests/src/sub/refungible/transfer.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js'; describe('Refungible transfer tests', () => { let donor: IKeyringPair; diff --git a/tests/src/transfer.nload.ts b/tests/src/transfer.nload.ts index 33774e225d..e9dd70af8f 100644 --- a/tests/src/transfer.nload.ts +++ b/tests/src/transfer.nload.ts @@ -16,9 +16,9 @@ /* eslint-disable @typescript-eslint/no-floating-promises */ import os from 'os'; -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds} from './util'; -import {UniqueHelper} from './util/playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds} from './util/index.js'; +import {UniqueHelper} from './util/playgrounds/unique.js'; import * as notReallyCluster from 'cluster'; // https://github.com/nodejs/node/issues/42271#issuecomment-1063415346 const cluster = notReallyCluster as unknown as notReallyCluster.Cluster; diff --git a/tests/src/transfer.test.ts b/tests/src/transfer.test.ts index dd403eb641..ffb5b46bb0 100644 --- a/tests/src/transfer.test.ts +++ b/tests/src/transfer.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itEth, usingEthPlaygrounds} from './eth/util'; -import {itSub, Pallets, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itEth, usingEthPlaygrounds} from './eth/util/index.js'; +import {itSub, Pallets, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test Transfer(recipient, collection_id, item_id, value)', () => { let donor: IKeyringPair; diff --git a/tests/src/transferFrom.test.ts b/tests/src/transferFrom.test.ts index ad7e3eaf3b..f38ef987d2 100644 --- a/tests/src/transferFrom.test.ts +++ b/tests/src/transferFrom.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, Pallets, usingPlaygrounds, expect} from './util'; -import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, Pallets, usingPlaygrounds, expect} from './util/index.js'; +import {NON_EXISTENT_COLLECTION_ID} from './util/playgrounds/types.js'; describe('Integration Test transferFrom(from, recipient, collection_id, item_id, value):', () => { let alice: IKeyringPair; diff --git a/tests/src/tx-version-presence.test.ts b/tests/src/tx-version-presence.test.ts index c59a86380c..5671fe59be 100644 --- a/tests/src/tx-version-presence.test.ts +++ b/tests/src/tx-version-presence.test.ts @@ -15,7 +15,7 @@ // along with Unique Network. If not, see . import {Metadata} from '@polkadot/types'; -import {itSub, usingPlaygrounds, expect} from './util'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; let metadata: Metadata; diff --git a/tests/src/util/authorizeEnactUpgrade.ts b/tests/src/util/authorizeEnactUpgrade.ts index 72f0e67701..3bd854fec1 100644 --- a/tests/src/util/authorizeEnactUpgrade.ts +++ b/tests/src/util/authorizeEnactUpgrade.ts @@ -1,6 +1,6 @@ import {readFile} from 'fs/promises'; import {u8aToHex} from '@polkadot/util'; -import {usingPlaygrounds} from '.'; +import {usingPlaygrounds} from './index.js'; import {blake2AsHex} from '@polkadot/util-crypto'; diff --git a/tests/src/util/frankensteinMigrate.ts b/tests/src/util/frankensteinMigrate.ts index bdb61ffb83..a17e50574f 100644 --- a/tests/src/util/frankensteinMigrate.ts +++ b/tests/src/util/frankensteinMigrate.ts @@ -1,4 +1,4 @@ -import {migration as locksToFreezesMigration} from '../migrations/942057-appPromotion'; +import {migration as locksToFreezesMigration} from '../migrations/942057-appPromotion/index.js'; export interface Migration { before: () => Promise, after: () => Promise, diff --git a/tests/src/util/globalSetup.ts b/tests/src/util/globalSetup.ts index 94584f4d78..d2ce248cce 100644 --- a/tests/src/util/globalSetup.ts +++ b/tests/src/util/globalSetup.ts @@ -3,7 +3,7 @@ import { usingPlaygrounds, Pallets, DONOR_FUNDING, MINIMUM_DONOR_FUND, LOCKING_PERIOD, UNLOCKING_PERIOD, makeNames, -} from './index'; +} from './index.js'; import * as path from 'path'; import {promises as fs} from 'fs'; @@ -70,7 +70,7 @@ const fundFilenames = async () => { const batchSize = 300; let balanceGrantedCounter = 0; for(let b = 0; b < filenames.length; b += batchSize) { - const tx = []; + const tx: Promise[] = []; let batchBalanceGrantedCounter = 0; for(let i = 0; batchBalanceGrantedCounter < batchSize && b + i < filenames.length; i++) { const f = filenames[b + i]; diff --git a/tests/src/util/identitySetter.ts b/tests/src/util/identitySetter.ts index d0cf97113b..4e2bed9421 100644 --- a/tests/src/util/identitySetter.ts +++ b/tests/src/util/identitySetter.ts @@ -8,9 +8,9 @@ // Example: `yarn setIdentities wss://polkadot-rpc.dwellir.com ws://localhost:9944 escape pattern miracle train sudden cart adapt embark wedding alien lamp mesh` import {encodeAddress} from '@polkadot/keyring'; -import {IKeyringPair} from '@polkadot/types/types'; -import {usingPlaygrounds, Pallets} from './index'; -import {ChainHelperBase} from './playgrounds/unique'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {usingPlaygrounds, Pallets} from './index.js'; +import {ChainHelperBase} from './playgrounds/unique.js'; const relayUrl = process.argv[2] ?? 'ws://localhost:9844'; const paraUrl = process.argv[3] ?? 'ws://localhost:9944'; diff --git a/tests/src/util/index.ts b/tests/src/util/index.ts index 9b5da2ce22..e41254189f 100644 --- a/tests/src/util/index.ts +++ b/tests/src/util/index.ts @@ -3,15 +3,15 @@ import * as path from 'path'; import * as crypto from 'crypto'; -import {IKeyringPair} from '@polkadot/types/types/interfaces'; +import type {IKeyringPair} from '@polkadot/types/types/interfaces'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import chaiSubset from 'chai-subset'; import {Context} from 'mocha'; -import config from '../config'; -import {ChainHelperBase} from './playgrounds/unique'; -import {ILogger} from './playgrounds/types'; -import {DevUniqueHelper, SilentLogger, SilentConsole, DevMoonbeamHelper, DevMoonriverHelper, DevAcalaHelper, DevKaruraHelper, DevRelayHelper, DevWestmintHelper, DevStatemineHelper, DevStatemintHelper, DevAstarHelper, DevShidenHelper, DevPolkadexHelper} from './playgrounds/unique.dev'; +import config from '../config.js'; +import {ChainHelperBase} from './playgrounds/unique.js'; +import type {ILogger} from './playgrounds/types.js'; +import {DevUniqueHelper, SilentLogger, SilentConsole, DevMoonbeamHelper, DevMoonriverHelper, DevAcalaHelper, DevKaruraHelper, DevRelayHelper, DevWestmintHelper, DevStatemineHelper, DevStatemintHelper, DevAstarHelper, DevShidenHelper, DevPolkadexHelper} from './playgrounds/unique.dev.js'; import {dirname} from 'path'; import {fileURLToPath} from 'url'; diff --git a/tests/src/util/playgrounds/types.ts b/tests/src/util/playgrounds/types.ts index f2948a81f6..ce1dd77b30 100644 --- a/tests/src/util/playgrounds/types.ts +++ b/tests/src/util/playgrounds/types.ts @@ -1,7 +1,7 @@ // Copyright 2019-2022 Unique Network (Gibraltar) Ltd. // SPDX-License-Identifier: Apache-2.0 -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; export const NON_EXISTENT_COLLECTION_ID = 4_294_967_295; diff --git a/tests/src/util/playgrounds/unique.dev.ts b/tests/src/util/playgrounds/unique.dev.ts index 57c54e8227..7e1fb6d272 100644 --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -3,18 +3,20 @@ import {stringToU8a} from '@polkadot/util'; import {blake2AsHex, encodeAddress, mnemonicGenerate} from '@polkadot/util-crypto'; -import {UniqueHelper, ChainHelperBase, ChainHelperBaseConstructor, HelperGroup, UniqueHelperConstructor} from './unique'; +import type {ChainHelperBaseConstructor, UniqueHelperConstructor} from './unique.js'; +import {UniqueHelper, ChainHelperBase, HelperGroup} from './unique.js'; import {ApiPromise, Keyring, WsProvider} from '@polkadot/api'; -import * as defs from '../../interfaces/definitions'; -import {IKeyringPair} from '@polkadot/types/types'; -import {EventRecord} from '@polkadot/types/interfaces'; -import {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from './types'; -import {FrameSystemEventRecord, XcmV2TraitsError, XcmV3TraitsOutcome} from '@polkadot/types/lookup'; -import {SignerOptions, VoidFn} from '@polkadot/api/types'; -import {Pallets} from '..'; +import * as defs from '../../interfaces/definitions.js'; +import type {IKeyringPair} from '@polkadot/types/types'; +import type {EventRecord} from '@polkadot/types/interfaces'; +import type {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from './types.js'; +import type {FrameSystemEventRecord, StagingXcmV2TraitsError, StagingXcmV3TraitsOutcome} from '@polkadot/types/lookup'; +import type {SignerOptions, VoidFn} from '@polkadot/api/types'; +import {Pallets} from '../index.js'; import {spawnSync} from 'child_process'; -import {AcalaHelper, AstarHelper, MoonbeamHelper, PolkadexHelper, RelayHelper, WestmintHelper, ForeignAssetsGroup, XcmGroup, XTokensGroup, TokensGroup} from './unique.xcm'; -import {CollectiveGroup, CollectiveMembershipGroup, DemocracyGroup, ICollectiveGroup, IFellowshipGroup, RankedCollectiveGroup, ReferendaGroup} from './unique.governance'; +import {AcalaHelper, AstarHelper, MoonbeamHelper, PolkadexHelper, RelayHelper, WestmintHelper, ForeignAssetsGroup, XcmGroup, XTokensGroup, TokensGroup} from './unique.xcm.js'; +import {CollectiveGroup, CollectiveMembershipGroup, DemocracyGroup, RankedCollectiveGroup, ReferendaGroup} from './unique.governance.js'; +import type {ICollectiveGroup, IFellowshipGroup} from './unique.governance.js'; export class SilentLogger { log(_msg: any, _level: any): void { } @@ -257,13 +259,13 @@ export class Event { static Fail = this.Method('Fail', data => ({ messageHash: eventJsonData(data, 0), - outcome: eventData(data, 1), + outcome: eventData(data, 1), })); }; static DmpQueue = class extends EventSection('dmpQueue') { static ExecutedDownward = this.Method('ExecutedDownward', data => ({ - outcome: eventData(data, 1), + outcome: eventData(data, 1), })); }; } @@ -275,7 +277,7 @@ export function SudoHelper(Base: T) { super(...args); } - async executeExtrinsic( + override async executeExtrinsic( sender: IKeyringPair, extrinsic: string, params: any[], @@ -307,7 +309,7 @@ export function SudoHelper(Base: T) { } return result; } - async executeExtrinsicUncheckedWeight( + override async executeExtrinsicUncheckedWeight( sender: IKeyringPair, extrinsic: string, params: any[], @@ -504,7 +506,7 @@ export class DevUniqueHelper extends UniqueHelper { this.democracy = new DemocracyGroup(this); } - async connect(wsEndpoint: string, _listeners?: any): Promise { + override async connect(wsEndpoint: string, _listeners?: any): Promise { if(!wsEndpoint) throw new Error('wsEndpoint was not set'); const wsProvider = new WsProvider(wsEndpoint); this.api = new ApiPromise({ @@ -692,7 +694,7 @@ export class ArrangeGroup { accounts.push(recipient); if(balance !== 0n) { const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recipient.address}, balance * tokenNominal]); - transactions.push(this.helper.signTransaction(donor, tx, {nonce, era: 0}, 'account generation')); + transactions.push(this.helper.signTransaction(donor, tx, {nonce}, 'account generation')); nonce++; } } @@ -806,6 +808,7 @@ export class ArrangeGroup { const block1date = await findCreationDate(block1); const block2date = await findCreationDate(block2); if(block2date! - block1date! < 9000) return true; + return false; }; async calculcateFee(payer: ICrossAccountId, promise: () => Promise): Promise { @@ -1502,7 +1505,7 @@ function ScheduledUniqueHelper(Base: T) { this.options = options.options; } - executeExtrinsic(sender: IKeyringPair, scheduledExtrinsic: string, scheduledParams: any[], expectSuccess?: boolean): Promise { + override executeExtrinsic(sender: IKeyringPair, scheduledExtrinsic: string, scheduledParams: any[], expectSuccess?: boolean): Promise { const scheduledTx = this.constructApiCall(scheduledExtrinsic, scheduledParams); const mandatorySchedArgs = [ diff --git a/tests/src/util/playgrounds/unique.governance.ts b/tests/src/util/playgrounds/unique.governance.ts index b3969069fb..e3fa2508f2 100644 --- a/tests/src/util/playgrounds/unique.governance.ts +++ b/tests/src/util/playgrounds/unique.governance.ts @@ -1,7 +1,7 @@ import {blake2AsHex} from '@polkadot/util-crypto'; -import {PalletDemocracyConviction} from '@polkadot/types/lookup'; -import {IPhasicEvent, TSigner} from './types'; -import {HelperGroup, UniqueHelper} from './unique'; +import type {PalletDemocracyConviction} from '@polkadot/types/lookup'; +import type {IPhasicEvent, TSigner} from './types.js'; +import {HelperGroup, UniqueHelper} from './unique.js'; export class CollectiveGroup extends HelperGroup { /** diff --git a/tests/src/util/playgrounds/unique.ts b/tests/src/util/playgrounds/unique.ts index 3f21a2cadc..05875217ea 100644 --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -6,15 +6,14 @@ /* eslint-disable no-prototype-builtins */ import {ApiPromise, WsProvider, Keyring} from '@polkadot/api'; -import {SignerOptions} from '@polkadot/api/types/submittable'; -import '../../interfaces/augment-api'; -import {AugmentedSubmittables} from '@polkadot/api-base/types/submittable'; -import {ApiInterfaceEvents} from '@polkadot/api/types'; -import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a, blake2AsHex} from '@polkadot/util-crypto'; -import {IKeyringPair} from '@polkadot/types/types'; +import type {SignerOptions} from '@polkadot/api/types'; +import type {AugmentedSubmittables} from '@polkadot/api-base/types/submittable'; +import type {ApiInterfaceEvents} from '@polkadot/api/types'; +import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto'; +import type {IKeyringPair} from '@polkadot/types/types'; import {hexToU8a} from '@polkadot/util/hex'; import {u8aConcat} from '@polkadot/util/u8a'; -import { +import type { IApiListeners, IBlock, IEvent, @@ -28,7 +27,6 @@ import { INestingPermissions, IProperty, IStakingInfo, - ISchedulerOptions, ISubstrateBalance, IToken, ITokenPropertyPermission, @@ -40,10 +38,8 @@ import { TSubstrateAccount, TNetworks, IEthCrossAccountId, -} from './types'; -import {RuntimeDispatchInfo} from '@polkadot/types/interfaces'; -import type {Vec} from '@polkadot/types-codec'; -import {FrameSystemEventRecord} from '@polkadot/types/lookup'; +} from './types.js'; +import type {RuntimeDispatchInfo} from '@polkadot/types/interfaces'; export class CrossAccountId { Substrate!: TSubstrateAccount; @@ -228,7 +224,7 @@ class UniqueUtil { } let success = false; const tokens = [] as { collectionId: number, tokenId: number, owner: CrossAccountId, amount: bigint }[]; - burnResult.result.events.forEach(({event: {data, method, section}}) => { + burnResult.result.events.forEach(({event: {data, method, section}}: any) => { if(method === 'ExtrinsicSuccess') { success = true; } else if((section === 'common') && (method === 'ItemDestroyed')) { @@ -303,12 +299,12 @@ class UniqueUtil { } class UniqueEventHelper { - private static extractIndex(index: any): [number, number] | string { + static extractIndex(index: any): [number, number] | string { if(index.toRawType() === '[u8;2]') return [index[0], index[1]]; return index.toJSON(); } - private static extractSub(data: any, subTypes: any): { [key: string]: any } { + static extractSub(data: any, subTypes: any): { [key: string]: any } { let obj: any = {}; let index = 0; @@ -322,11 +318,11 @@ class UniqueEventHelper { return obj; } - private static toHuman(data: any) { + static toHuman(data: any) { return data && data.toHuman ? data.toHuman() : `${data}`; } - private static extractData(data: any, type: any): any { + static extractData(data: any, type: any): any { if(!type) return this.toHuman(data); if(['u16', 'u32'].indexOf(type.type) > -1) return data.toNumber(); if(['u64', 'u128', 'u256'].indexOf(type.type) > -1) return data.toBigInt(); @@ -361,7 +357,7 @@ class UniqueEventHelper { } const InvalidTypeSymbol = Symbol('Invalid type'); // eslint-disable-next-line @typescript-eslint/no-unused-vars -export type Invalid = +export type Invalid = | (( invalidType: typeof InvalidTypeSymbol, ..._: typeof InvalidTypeSymbol[] @@ -371,7 +367,7 @@ export type Invalid = // Has slightly better error messages than Get type Get2 = P extends `${infer Key}.${infer Key2}` ? Key extends keyof T ? Key2 extends keyof T[Key] ? T[Key][Key2] : E : E : E; -type ForceFunction = T extends (...args: any) => any ? T : (...args: any) => Invalid<'not a function'>; +type ForceFunction = T extends (...args: any) => any ? T : (...args: any) => Invalid; export class ChainHelperBase { helperBase: any; @@ -432,7 +428,7 @@ export class ChainHelperBase { async subscribeEvents(expectedEvents: { section: string, names: string[] }[]) { const collectedEvents: IEvent[] = []; - const unsubscribe = await this.getApi().query.system.events((events: Vec) => { + const unsubscribe = await this.getApi().query.system.events((events: any) => { const ievents = this.eventHelper.extractEvents(events); ievents.forEach((event) => { expectedEvents.forEach((e => { @@ -523,7 +519,7 @@ export class ChainHelperBase { westmint: {}, }; if(!supportedRPC.hasOwnProperty(network)) network = await this.detectNetworkByWsEndpoint(wsEndpoint); - const rpc = supportedRPC[network]; + const rpc = supportedRPC[network] as any; // TODO: investigate how to replace rpc in runtime // api._rpcCore.addUserInterfaces(rpc); @@ -669,7 +665,7 @@ export class ChainHelperBase { ...args: any) => any = ForceFunction< Get2< AugmentedSubmittables<'promise'>, - E, (...args: any) => Invalid<'not found'> + E, (...args: any) => Invalid > > >( @@ -735,15 +731,15 @@ export class ChainHelperBase { ...args: any) => any = ForceFunction< Get2< AugmentedSubmittables<'promise'>, - E, (...args: any) => Invalid<'not found'> + E, (...args: any) => Invalid > > >( - sender: TSigner, - extrinsic: `api.tx.${E}`, - params: Parameters, - expectSuccess = true, - options: Partial | null = null,/*, failureMessage='expected success'*/ + _sender: TSigner, + _extrinsic: `api.tx.${E}`, + _params: Parameters, + _expectSuccess = true, + _options: Partial | null = null,/*, failureMessage='expected success'*/ ): Promise { throw new Error('executeExtrinsicUncheckedWeight only supported in sudo'); } @@ -1702,7 +1698,7 @@ class NFTGroup extends NFTnRFT { * @example getCollectionObject(2); * @returns instance of UniqueNFTCollection */ - getCollectionObject(collectionId: number): UniqueNFTCollection { + override getCollectionObject(collectionId: number): UniqueNFTCollection { return new UniqueNFTCollection(collectionId, this.helper); } @@ -1713,7 +1709,7 @@ class NFTGroup extends NFTnRFT { * @example getTokenObject(10, 5); * @returns instance of UniqueNFTToken */ - getTokenObject(collectionId: number, tokenId: number): UniqueNFToken { + override getTokenObject(collectionId: number, tokenId: number): UniqueNFToken { return new UniqueNFToken(tokenId, this.getCollectionObject(collectionId)); } @@ -1738,7 +1734,7 @@ class NFTGroup extends NFTnRFT { * @example transferToken(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - async transferToken(signer: TSigner, collectionId: number, tokenId: number, addressObj: ICrossAccountId): Promise { + override async transferToken(signer: TSigner, collectionId: number, tokenId: number, addressObj: ICrossAccountId): Promise { return await super.transferToken(signer, collectionId, tokenId, addressObj, 1n); } @@ -1754,7 +1750,7 @@ class NFTGroup extends NFTnRFT { * @example transferTokenFrom(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}, {Ethereum: "0x9F0583DbB85..."}) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - async transferTokenFrom(signer: TSigner, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, toAddressObj: ICrossAccountId): Promise { + override async transferTokenFrom(signer: TSigner, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, toAddressObj: ICrossAccountId): Promise { return await super.transferTokenFrom(signer, collectionId, tokenId, fromAddressObj, toAddressObj, 1n); } @@ -1789,7 +1785,7 @@ class NFTGroup extends NFTnRFT { * }) * @returns object of the created collection */ - async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise { + override async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise { return await super.mintCollection(signer, collectionOptions, 'NFT') as UniqueNFTCollection; } @@ -1883,7 +1879,7 @@ class NFTGroup extends NFTnRFT { * @example approveToken(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - approveToken(signer: IKeyringPair, collectionId: number, tokenId: number, toAddressObj: ICrossAccountId, amount = 1n) { + override approveToken(signer: IKeyringPair, collectionId: number, tokenId: number, toAddressObj: ICrossAccountId, amount = 1n) { return super.approveToken(signer, collectionId, tokenId, toAddressObj, amount); } } @@ -1896,7 +1892,7 @@ class RFTGroup extends NFTnRFT { * @example getCollectionObject(2); * @returns instance of UniqueRFTCollection */ - getCollectionObject(collectionId: number): UniqueRFTCollection { + override getCollectionObject(collectionId: number): UniqueRFTCollection { return new UniqueRFTCollection(collectionId, this.helper); } @@ -1907,7 +1903,7 @@ class RFTGroup extends NFTnRFT { * @example getTokenObject(10, 5); * @returns instance of UniqueNFTToken */ - getTokenObject(collectionId: number, tokenId: number): UniqueRFToken { + override getTokenObject(collectionId: number, tokenId: number): UniqueRFToken { return new UniqueRFToken(tokenId, this.getCollectionObject(collectionId)); } @@ -1944,7 +1940,7 @@ class RFTGroup extends NFTnRFT { * @example transferTokenFrom(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}, 2000n) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - async transferToken(signer: TSigner, collectionId: number, tokenId: number, addressObj: ICrossAccountId, amount = 1n): Promise { + override async transferToken(signer: TSigner, collectionId: number, tokenId: number, addressObj: ICrossAccountId, amount = 1n): Promise { return await super.transferToken(signer, collectionId, tokenId, addressObj, amount); } @@ -1959,7 +1955,7 @@ class RFTGroup extends NFTnRFT { * @example transferTokenFrom(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}, {Substrate: "5DfhbVfww7ThF8q6f3i..."}, 2000n) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - async transferTokenFrom(signer: TSigner, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, toAddressObj: ICrossAccountId, amount = 1n): Promise { + override async transferTokenFrom(signer: TSigner, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, toAddressObj: ICrossAccountId, amount = 1n): Promise { return await super.transferTokenFrom(signer, collectionId, tokenId, fromAddressObj, toAddressObj, amount); } @@ -1975,7 +1971,7 @@ class RFTGroup extends NFTnRFT { * }) * @returns object of the created collection */ - async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise { + override async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise { return await super.mintCollection(signer, collectionOptions, 'RFT') as UniqueRFTCollection; } @@ -2003,15 +1999,15 @@ class RFTGroup extends NFTnRFT { return this.getTokenObject(data.collectionId, createdTokens.tokens[0].tokenId); } - async mintMultipleTokens(signer: TSigner, collectionId: number, tokens: { owner: ICrossAccountId, pieces: bigint, properties?: IProperty[] }[]): Promise { + mintMultipleTokens(_signer: TSigner, _collectionId: number, _tokens: { owner: ICrossAccountId, pieces: bigint, properties?: IProperty[] }[]): Promise { throw Error('Not implemented'); - const creationResult = await this.helper.executeExtrinsic( - signer, - 'api.tx.unique.createMultipleItemsEx', [collectionId, {RefungibleMultipleOwners: tokens}], - true, // `Unable to mint RFT tokens for ${label}`, - ); - const collection = this.getCollectionObject(collectionId); - return this.helper.util.extractTokensFromCreationResult(creationResult).tokens.map((x: IToken) => collection.getTokenObject(x.tokenId)); + // const creationResult = await this.helper.executeExtrinsic( + // signer, + // 'api.tx.unique.createMultipleItemsEx', [collectionId, {RefungibleMultipleOwners: tokens}], + // true, // `Unable to mint RFT tokens for ${label}`, + // ); + // const collection = this.getCollectionObject(collectionId); + // return this.helper.util.extractTokensFromCreationResult(creationResult).tokens.map((x: IToken) => collection.getTokenObject(x.tokenId)); } /** @@ -2047,7 +2043,7 @@ class RFTGroup extends NFTnRFT { * @example burnToken(aliceKeyring, 10, 5); * @returns ```true``` if the extrinsic is successful, otherwise ```false``` */ - async burnToken(signer: IKeyringPair, collectionId: number, tokenId: number, amount = 1n): Promise { + override async burnToken(signer: IKeyringPair, collectionId: number, tokenId: number, amount = 1n): Promise { return await super.burnToken(signer, collectionId, tokenId, amount); } @@ -2061,7 +2057,7 @@ class RFTGroup extends NFTnRFT { * @example burnTokenFrom(aliceKeyring, 10, 5, {Substrate: "5DyN4Y92vZCjv38fg..."}, 2n) * @returns ```true``` if extrinsic success, otherwise ```false``` */ - async burnTokenFrom(signer: IKeyringPair, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, amount = 1n): Promise { + override async burnTokenFrom(signer: IKeyringPair, collectionId: number, tokenId: number, fromAddressObj: ICrossAccountId, amount = 1n): Promise { return await super.burnTokenFrom(signer, collectionId, tokenId, fromAddressObj, amount); } @@ -2076,7 +2072,7 @@ class RFTGroup extends NFTnRFT { * @example approveToken(aliceKeyring, 10, 5, {Substrate: "5GHoZe9c73RYbVzq..."}, "", 10000n); * @returns true if the token success, otherwise false */ - approveToken(signer: IKeyringPair, collectionId: number, tokenId: number, toAddressObj: ICrossAccountId, amount = 1n) { + override approveToken(signer: IKeyringPair, collectionId: number, tokenId: number, toAddressObj: ICrossAccountId, amount = 1n) { return super.approveToken(signer, collectionId, tokenId, toAddressObj, amount); } @@ -2391,7 +2387,7 @@ export class SubstrateBalanceGroup extends HelperGrou const result = await this.helper.executeExtrinsic(signer, 'api.tx.balances.transfer', [address, amount], true/*, `Unable to transfer balance from ${this.helper.getSignerAddress(signer)} to ${address}`*/); let transfer = {from: null, to: null, amount: 0n} as any; - result.result.events.forEach(({event: {data, method, section}}) => { + result.result.events.forEach(({event: {data, method, section}}: any) => { if((section === 'balances') && (method === 'Transfer')) { transfer = { from: this.helper.address.normalizeSubstrate(data[0]), @@ -2458,7 +2454,7 @@ export class EthereumBalanceGroup extends HelperGroup const result = await this.helper.executeExtrinsic(signer, 'api.tx.balances.transfer', [address, amount], true); let transfer = {from: null, to: null, amount: 0n} as any; - result.result.events.forEach(({event: {data, method, section}}) => { + result.result.events.forEach(({event: {data, method, section}}: any) => { if((section === 'balances') && (method === 'Transfer')) { transfer = { from: data[0].toString(), @@ -2573,7 +2569,7 @@ class BalanceGroup extends HelperGroup { const result = await this.helper.executeExtrinsic(signer, 'api.tx.balances.forceTransfer', [from, to, amount], true); let transfer = {from: null, to: null, amount: 0n} as any; - result.result.events.forEach(({event: {data, method, section}}) => { + result.result.events.forEach(({event: {data, method, section}}: any) => { if((section === 'balances') && (method === 'Transfer')) { transfer = { from: this.helper.address.normalizeSubstrate(data[0]), @@ -2598,7 +2594,7 @@ class BalanceGroup extends HelperGroup { async vestedTransfer(signer: TSigner, address: TSubstrateAccount, schedule: { start: bigint, period: bigint, periodCount: bigint, perPeriod: bigint }): Promise { const result = await this.helper.executeExtrinsic(signer, 'api.tx.vesting.vestedTransfer', [address, schedule]); const event = result.result.events - .find(e => e.event.section === 'vesting' && + .find((e: any) => e.event.section === 'vesting' && e.event.method === 'VestingScheduleAdded' && e.event.data[0].toHuman() === signer.address); if(!event) throw Error('Cannot find transfer in events'); @@ -2626,7 +2622,7 @@ class BalanceGroup extends HelperGroup { async claim(signer: TSigner) { const result = await this.helper.executeExtrinsic(signer, 'api.tx.vesting.claim', []); const event = result.result.events - .find(e => e.event.section === 'vesting' && + .find((e: any) => e.event.section === 'vesting' && e.event.method === 'Claimed' && e.event.data[0].toHuman() === signer.address); if(!event) throw Error('Cannot find claim in events'); @@ -2766,7 +2762,7 @@ class StakingGroup extends HelperGroup { */ async stake(signer: TSigner, amountToStake: bigint, label?: string): Promise { if(typeof label === 'undefined') label = `${signer.address} amount: ${amountToStake}`; - const _stakeResult = await this.helper.executeExtrinsic( + await this.helper.executeExtrinsic( signer, 'api.tx.appPromotion.stake', [amountToStake], true, ); @@ -2895,7 +2891,7 @@ class PreimageGroup extends HelperGroup { const promise = this.helper.executeExtrinsic(signer, 'api.tx.preimage.notePreimage', [bytes]); if(returnPreimageHash) { const result = await promise; - const events = result.result.events.filter(x => x.event.method === 'Noted' && x.event.section === 'preimage'); + const events = result.result.events.filter((x: any) => x.event.method === 'Noted' && x.event.section === 'preimage'); const preimageHash = events[0].event.data[0].toHuman(); return preimageHash; } @@ -3369,7 +3365,7 @@ export class UniqueBaseToken { } export class UniqueNFToken extends UniqueBaseToken { - collection: UniqueNFTCollection; + override collection: UniqueNFTCollection; constructor(tokenId: number, collection: UniqueNFTCollection) { super(tokenId, collection); @@ -3426,7 +3422,7 @@ export class UniqueNFToken extends UniqueBaseToken { } export class UniqueRFToken extends UniqueBaseToken { - collection: UniqueRFTCollection; + override collection: UniqueRFTCollection; constructor(tokenId: number, collection: UniqueRFTCollection) { super(tokenId, collection); diff --git a/tests/src/util/playgrounds/unique.xcm.ts b/tests/src/util/playgrounds/unique.xcm.ts index c9704ac7f2..2f1b7bbd7f 100644 --- a/tests/src/util/playgrounds/unique.xcm.ts +++ b/tests/src/util/playgrounds/unique.xcm.ts @@ -1,12 +1,12 @@ import {ApiPromise, WsProvider} from '@polkadot/api'; -import {IKeyringPair} from '@polkadot/types/types'; -import {ChainHelperBase, EthereumBalanceGroup, HelperGroup, SubstrateBalanceGroup, UniqueHelper} from './unique'; -import {ILogger, TSigner, TSubstrateAccount} from './types'; -import {AcalaAssetMetadata, DemocracyStandardAccountVote, IForeignAssetMetadata, MoonbeamAssetInfo} from './types.xcm'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {ChainHelperBase, EthereumBalanceGroup, HelperGroup, SubstrateBalanceGroup, UniqueHelper} from './unique.js'; +import type {ILogger, TSigner, TSubstrateAccount} from './types.js'; +import type {AcalaAssetMetadata, DemocracyStandardAccountVote, IForeignAssetMetadata, MoonbeamAssetInfo} from './types.xcm.js'; export class XcmChainHelper extends ChainHelperBase { - async connect(wsEndpoint: string, _listeners?: any): Promise { + override async connect(wsEndpoint: string, _listeners?: any): Promise { const wsProvider = new WsProvider(wsEndpoint); this.api = new ApiPromise({ provider: wsProvider, diff --git a/tests/src/util/relayIdentitiesChecker.ts b/tests/src/util/relayIdentitiesChecker.ts index 1fa75a2d97..c2003d5c3e 100644 --- a/tests/src/util/relayIdentitiesChecker.ts +++ b/tests/src/util/relayIdentitiesChecker.ts @@ -7,8 +7,8 @@ // Example: `yarn checkRelayIdentities wss://polkadot-rpc.dwellir.com wss://kusama-rpc.dwellir.com` import {encodeAddress} from '@polkadot/keyring'; -import {usingPlaygrounds} from './index'; -import {getIdentities, getSubs, getSupers, constructSubInfo} from './identitySetter'; +import {usingPlaygrounds} from './index.js'; +import {getIdentities, getSubs, getSupers, constructSubInfo} from './identitySetter.js'; const relay1Url = process.argv[2] ?? 'ws://localhost:9844'; const relay2Url = process.argv[3] ?? 'ws://localhost:9844'; diff --git a/tests/src/util/setCode.ts b/tests/src/util/setCode.ts index 3740434839..c7b09494c6 100644 --- a/tests/src/util/setCode.ts +++ b/tests/src/util/setCode.ts @@ -1,6 +1,6 @@ import {readFile} from 'fs/promises'; import {u8aToHex} from '@polkadot/util'; -import {usingPlaygrounds} from '.'; +import {usingPlaygrounds} from './index.js'; const codePath = process.argv[2]; if(!codePath) throw new Error('missing code path argument'); diff --git a/tests/src/vesting.test.ts b/tests/src/vesting.test.ts index 5f4ea81e36..a9a59f0dc1 100644 --- a/tests/src/vesting.test.ts +++ b/tests/src/vesting.test.ts @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, usingPlaygrounds, expect} from './util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, usingPlaygrounds, expect} from './util/index.js'; describe('Vesting', () => { let donor: IKeyringPair; diff --git a/tests/src/xcm/lowLevelXcmQuartz.test.ts b/tests/src/xcm/lowLevelXcmQuartz.test.ts index fd3549d353..ff43e35d57 100644 --- a/tests/src/xcm/lowLevelXcmQuartz.test.ts +++ b/tests/src/xcm/lowLevelXcmQuartz.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingMoonriverPlaygrounds, usingShidenPlaygrounds, usingRelayPlaygrounds} from '../util'; -import {QUARTZ_CHAIN, QTZ_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, shidenUrl, SAFE_XCM_VERSION, XcmTestHelper, TRANSFER_AMOUNT, SENDER_BUDGET, relayUrl} from './xcm.types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingMoonriverPlaygrounds, usingShidenPlaygrounds, usingRelayPlaygrounds} from '../util/index.js'; +import {QUARTZ_CHAIN, QTZ_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, shidenUrl, SAFE_XCM_VERSION, XcmTestHelper, TRANSFER_AMOUNT, SENDER_BUDGET, relayUrl} from './xcm.types.js'; import {hexToString} from '@polkadot/util'; const testHelper = new XcmTestHelper('quartz'); diff --git a/tests/src/xcm/lowLevelXcmUnique.test.ts b/tests/src/xcm/lowLevelXcmUnique.test.ts index 8bab9e31de..8d5f8e2f51 100644 --- a/tests/src/xcm/lowLevelXcmUnique.test.ts +++ b/tests/src/xcm/lowLevelXcmUnique.test.ts @@ -14,12 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import config from '../config'; -import {itSub, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingMoonbeamPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import config from '../config.js'; +import {itSub, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingMoonbeamPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds} from '../util/index.js'; import {nToBigInt} from '@polkadot/util'; import {hexToString} from '@polkadot/util'; -import {ASTAR_DECIMALS, SAFE_XCM_VERSION, SENDER_BUDGET, UNIQUE_CHAIN, UNQ_DECIMALS, XcmTestHelper, acalaUrl, astarUrl, moonbeamUrl, polkadexUrl, relayUrl, uniqueAssetId} from './xcm.types'; +import {ASTAR_DECIMALS, SAFE_XCM_VERSION, SENDER_BUDGET, UNIQUE_CHAIN, UNQ_DECIMALS, XcmTestHelper, acalaUrl, astarUrl, moonbeamUrl, polkadexUrl, relayUrl, uniqueAssetId} from './xcm.types.js'; const testHelper = new XcmTestHelper('unique'); diff --git a/tests/src/xcm/xcm.types.ts b/tests/src/xcm/xcm.types.ts index ae596fd4c9..e1e51a7433 100644 --- a/tests/src/xcm/xcm.types.ts +++ b/tests/src/xcm/xcm.types.ts @@ -1,8 +1,8 @@ -import {IKeyringPair} from '@polkadot/types/types'; +import type {IKeyringPair} from '@polkadot/types/types'; import {hexToString} from '@polkadot/util'; -import {expect, usingAcalaPlaygrounds, usingAstarPlaygrounds, usingKaruraPlaygrounds, usingMoonbeamPlaygrounds, usingMoonriverPlaygrounds, usingPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds, usingShidenPlaygrounds} from '../util'; -import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev'; -import config from '../config'; +import {expect, usingAcalaPlaygrounds, usingAstarPlaygrounds, usingKaruraPlaygrounds, usingMoonbeamPlaygrounds, usingMoonriverPlaygrounds, usingPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds, usingShidenPlaygrounds} from '../util/index.js'; +import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev.js'; +import config from '../config.js'; export const UNIQUE_CHAIN = +(process.env.RELAY_UNIQUE_ID || 2037); export const STATEMINT_CHAIN = +(process.env.RELAY_STATEMINT_ID || 1000); diff --git a/tests/src/xcm/xcmOpal.test.ts b/tests/src/xcm/xcmOpal.test.ts index a411f3075b..354636e14e 100644 --- a/tests/src/xcm/xcmOpal.test.ts +++ b/tests/src/xcm/xcmOpal.test.ts @@ -14,9 +14,9 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import config from '../config'; -import {itSub, expect, describeXCM, usingPlaygrounds, usingWestmintPlaygrounds, usingRelayPlaygrounds} from '../util'; +import type {IKeyringPair} from '@polkadot/types/types'; +import config from '../config.js'; +import {itSub, expect, describeXCM, usingPlaygrounds, usingWestmintPlaygrounds, usingRelayPlaygrounds} from '../util/index.js'; const STATEMINE_CHAIN = +(process.env.RELAY_WESTMINT_ID || 1000); const UNIQUE_CHAIN = +(process.env.RELAY_OPAL_ID || 2095); diff --git a/tests/src/xcm/xcmQuartz.test.ts b/tests/src/xcm/xcmQuartz.test.ts index 49b9f84bb2..4bca2eb452 100644 --- a/tests/src/xcm/xcmQuartz.test.ts +++ b/tests/src/xcm/xcmQuartz.test.ts @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import {itSub, expect, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingRelayPlaygrounds, usingMoonriverPlaygrounds, usingStateminePlaygrounds, usingShidenPlaygrounds} from '../util'; -import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev'; -import {STATEMINE_CHAIN, QUARTZ_CHAIN, KARURA_CHAIN, MOONRIVER_CHAIN, SHIDEN_CHAIN, STATEMINE_DECIMALS, KARURA_DECIMALS, QTZ_DECIMALS, RELAY_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, relayUrl, shidenUrl, statemineUrl} from './xcm.types'; +import type {IKeyringPair} from '@polkadot/types/types'; +import {itSub, expect, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingRelayPlaygrounds, usingMoonriverPlaygrounds, usingStateminePlaygrounds, usingShidenPlaygrounds} from '../util/index.js'; +import {DevUniqueHelper, Event} from '../util/playgrounds/unique.dev.js'; +import {STATEMINE_CHAIN, QUARTZ_CHAIN, KARURA_CHAIN, MOONRIVER_CHAIN, SHIDEN_CHAIN, STATEMINE_DECIMALS, KARURA_DECIMALS, QTZ_DECIMALS, RELAY_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, relayUrl, shidenUrl, statemineUrl} from './xcm.types.js'; import {hexToString} from '@polkadot/util'; diff --git a/tests/src/xcm/xcmUnique.test.ts b/tests/src/xcm/xcmUnique.test.ts index 76f7693bb8..33dbc0eace 100644 --- a/tests/src/xcm/xcmUnique.test.ts +++ b/tests/src/xcm/xcmUnique.test.ts @@ -14,12 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {IKeyringPair} from '@polkadot/types/types'; -import config from '../config'; -import {itSub, expect, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingRelayPlaygrounds, usingMoonbeamPlaygrounds, usingStatemintPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds} from '../util'; -import {Event} from '../util/playgrounds/unique.dev'; +import type {IKeyringPair} from '@polkadot/types/types'; +import config from '../config.js'; +import {itSub, expect, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingRelayPlaygrounds, usingMoonbeamPlaygrounds, usingStatemintPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds} from '../util/index.js'; +import {Event} from '../util/playgrounds/unique.dev.js'; import {hexToString, nToBigInt} from '@polkadot/util'; -import {ACALA_CHAIN, ASTAR_CHAIN, MOONBEAM_CHAIN, POLKADEX_CHAIN, SAFE_XCM_VERSION, STATEMINT_CHAIN, UNIQUE_CHAIN, expectFailedToTransact, expectUntrustedReserveLocationFail, uniqueAssetId, uniqueVersionedMultilocation} from './xcm.types'; +import {ACALA_CHAIN, ASTAR_CHAIN, MOONBEAM_CHAIN, POLKADEX_CHAIN, SAFE_XCM_VERSION, STATEMINT_CHAIN, UNIQUE_CHAIN, expectFailedToTransact, expectUntrustedReserveLocationFail, uniqueAssetId, uniqueVersionedMultilocation} from './xcm.types.js'; const STATEMINT_PALLET_INSTANCE = 50; diff --git a/tests/tsconfig.json b/tests/tsconfig.json index 6f1bce89ee..54c0a7199d 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -1,22 +1,45 @@ { "compilerOptions": { - "target": "ES2020", - "moduleResolution": "node", + "allowUnusedLabels": false, + "allowUnreachableCode": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "target": "ES2022", + "moduleResolution": "NodeNext", + "module": "NodeNext", + "declaration": true, + "emitDeclarationOnly": true, + "jsx": "preserve", + "checkJs": false, + "exactOptionalPropertyTypes": false, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": false, + "composite": false, "esModuleInterop": true, "resolveJsonModule": true, - "module": "ESNext", "sourceMap": true, "outDir": "dist", "strict": true, "paths": { - "@polkadot/types/lookup": ["./src/interfaces/types-lookup.ts"], - "@unique-nft/types/*": ["./src/interfaces/*"] - } + "@polkadot/api-base/types/consts": ["./node_modules/@polkadot/api-base/types/consts.d.ts", "./src/interfaces/augment-api-consts.ts"], + "@polkadot/api-base/types/errors": ["./node_modules/@polkadot/api-base/types/errors.d.ts","./src/interfaces/augment-api-errors.ts"], + "@polkadot/api-base/types/events": ["./node_modules/@polkadot/api-base/types/events.d.ts", "./src/interfaces/augment-api-events.ts"], + "@polkadot/api-base/types/storage": ["./node_modules/@polkadot/api-base/types/storage.d.ts", "./src/interfaces/augment-api-query.ts"], + "@polkadot/rpc-core/types/jsonrpc": ["./node_modules/@polkadot/rpc-core/types/jsonrpc.d.ts", "./src/interfaces/augment-api-rpc.ts"], + "@polkadot/api-base/types/calls": ["./node_modules/@polkadot/api-base/types/calls.d.ts", "./src/interfaces/augment-api-runtime.ts"], + "@polkadot/api-base/types/submittable": ["./node_modules/@polkadot/api-base/types/submittable.d.ts", "./src/interfaces/augment-api-tx.ts"], + "@polkadot/types/types/registry": ["./node_modules/@polkadot/types/types/registry.d.ts", "./src/interfaces/augment-types.ts"], + } }, "include": ["./src/**/*", "./src/interfaces/*.ts"], "exclude": ["./src/.outdated"], - "lib": ["es2017"], + "lib": ["es2022"], "ts-node": { "experimentalSpecifierResolution": "node" - } + }, } diff --git a/tests/yarn.lock b/tests/yarn.lock index f8caa58126..5e3cc37f7a 100644 --- a/tests/yarn.lock +++ b/tests/yarn.lock @@ -21,6 +21,13 @@ __metadata: languageName: node linkType: hard +"@discoveryjs/json-ext@npm:^0.5.0": + version: 0.5.7 + resolution: "@discoveryjs/json-ext@npm:0.5.7" + checksum: 2176d301cc258ea5c2324402997cf8134ebb212469c0d397591636cea8d3c02f2b3cf9fd58dcb748c7a0dade77ebdc1b10284fa63e608c033a1db52fddc69918 + languageName: node + linkType: hard + "@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.3.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -345,14 +352,42 @@ __metadata: languageName: node linkType: hard -"@jridgewell/resolve-uri@npm:^3.0.3": +"@jridgewell/gen-mapping@npm:^0.3.0": + version: 0.3.3 + resolution: "@jridgewell/gen-mapping@npm:0.3.3" + dependencies: + "@jridgewell/set-array": ^1.0.1 + "@jridgewell/sourcemap-codec": ^1.4.10 + "@jridgewell/trace-mapping": ^0.3.9 + checksum: 4a74944bd31f22354fc01c3da32e83c19e519e3bbadafa114f6da4522ea77dd0c2842607e923a591d60a76699d819a2fbb6f3552e277efdb9b58b081390b60ab + languageName: node + linkType: hard + +"@jridgewell/resolve-uri@npm:^3.0.3, @jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.1 resolution: "@jridgewell/resolve-uri@npm:3.1.1" checksum: f5b441fe7900eab4f9155b3b93f9800a916257f4e8563afbcd3b5a5337b55e52bd8ae6735453b1b745457d9f6cdb16d74cd6220bbdd98cf153239e13f6cbb653 languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.4.10": +"@jridgewell/set-array@npm:^1.0.1": + version: 1.1.2 + resolution: "@jridgewell/set-array@npm:1.1.2" + checksum: 69a84d5980385f396ff60a175f7177af0b8da4ddb81824cb7016a9ef914eee9806c72b6b65942003c63f7983d4f39a5c6c27185bbca88eb4690b62075602e28e + languageName: node + linkType: hard + +"@jridgewell/source-map@npm:^0.3.3": + version: 0.3.5 + resolution: "@jridgewell/source-map@npm:0.3.5" + dependencies: + "@jridgewell/gen-mapping": ^0.3.0 + "@jridgewell/trace-mapping": ^0.3.9 + checksum: 1ad4dec0bdafbade57920a50acec6634f88a0eb735851e0dda906fa9894e7f0549c492678aad1a10f8e144bfe87f238307bf2a914a1bc85b7781d345417e9f6f + languageName: node + linkType: hard + +"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14": version: 1.4.15 resolution: "@jridgewell/sourcemap-codec@npm:1.4.15" checksum: b881c7e503db3fc7f3c1f35a1dd2655a188cc51a3612d76efc8a6eb74728bef5606e6758ee77423e564092b4a518aba569bbb21c9bac5ab7a35b0c6ae7e344c8 @@ -369,6 +404,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.9": + version: 0.3.19 + resolution: "@jridgewell/trace-mapping@npm:0.3.19" + dependencies: + "@jridgewell/resolve-uri": ^3.1.0 + "@jridgewell/sourcemap-codec": ^1.4.14 + checksum: 956a6f0f6fec060fb48c6bf1f5ec2064e13cd38c8be3873877d4b92b4a27ba58289a34071752671262a3e3c202abcc3fa2aac64d8447b4b0fa1ba3c9047f1c20 + languageName: node + linkType: hard + "@noble/curves@npm:1.1.0": version: 1.1.0 resolution: "@noble/curves@npm:1.1.0" @@ -1045,6 +1090,33 @@ __metadata: languageName: node linkType: hard +"@types/eslint-scope@npm:^3.7.3": + version: 3.7.5 + resolution: "@types/eslint-scope@npm:3.7.5" + dependencies: + "@types/eslint": "*" + "@types/estree": "*" + checksum: e91ce335c3791c2cf6084caa0073f90d5b7ae3fcf27785ade8422b7d896159fa14a5a3f1efd31ef03e9ebc1ff04983288280dfe8c9a5579a958539f59df8cc9f + languageName: node + linkType: hard + +"@types/eslint@npm:*": + version: 8.44.4 + resolution: "@types/eslint@npm:8.44.4" + dependencies: + "@types/estree": "*" + "@types/json-schema": "*" + checksum: 15bafdaba800e2995f38d3a2a929d8e9303035315e8d3535523a21cd719b6769a45884afa955f0b845ffa545a4150429b0178e2c44feeedf59ebb285eeae9825 + languageName: node + linkType: hard + +"@types/estree@npm:*, @types/estree@npm:^1.0.0": + version: 1.0.2 + resolution: "@types/estree@npm:1.0.2" + checksum: aeedb1b2fe20cbe06f44b99b562bf9703e360bfcdf5bb3d61d248182ee1dd63500f2474e12f098ffe1f5ac3202b43b3e18ec99902d9328d5374f5512fa077e45 + languageName: node + linkType: hard + "@types/http-cache-semantics@npm:*": version: 4.0.1 resolution: "@types/http-cache-semantics@npm:4.0.1" @@ -1052,6 +1124,13 @@ __metadata: languageName: node linkType: hard +"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.8": + version: 7.0.13 + resolution: "@types/json-schema@npm:7.0.13" + checksum: 345df21a678fa72fb389f35f33de77833d09d4a142bb2bcb27c18690efa4cf70fc2876e43843cefb3fbdb9fcb12cd3e970a90936df30f53bbee899865ff605ab + languageName: node + linkType: hard + "@types/json-schema@npm:^7.0.11": version: 7.0.12 resolution: "@types/json-schema@npm:7.0.12" @@ -1255,6 +1334,204 @@ __metadata: languageName: node linkType: hard +"@webassemblyjs/ast@npm:1.11.6, @webassemblyjs/ast@npm:^1.11.5": + version: 1.11.6 + resolution: "@webassemblyjs/ast@npm:1.11.6" + dependencies: + "@webassemblyjs/helper-numbers": 1.11.6 + "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + checksum: 38ef1b526ca47c210f30975b06df2faf1a8170b1636ce239fc5738fc231ce28389dd61ecedd1bacfc03cbe95b16d1af848c805652080cb60982836eb4ed2c6cf + languageName: node + linkType: hard + +"@webassemblyjs/floating-point-hex-parser@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/floating-point-hex-parser@npm:1.11.6" + checksum: 29b08758841fd8b299c7152eda36b9eb4921e9c584eb4594437b5cd90ed6b920523606eae7316175f89c20628da14326801090167cc7fbffc77af448ac84b7e2 + languageName: node + linkType: hard + +"@webassemblyjs/helper-api-error@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/helper-api-error@npm:1.11.6" + checksum: e8563df85161096343008f9161adb138a6e8f3c2cc338d6a36011aa55eabb32f2fd138ffe63bc278d009ada001cc41d263dadd1c0be01be6c2ed99076103689f + languageName: node + linkType: hard + +"@webassemblyjs/helper-buffer@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/helper-buffer@npm:1.11.6" + checksum: b14d0573bf680d22b2522e8a341ec451fddd645d1f9c6bd9012ccb7e587a2973b86ab7b89fe91e1c79939ba96095f503af04369a3b356c8023c13a5893221644 + languageName: node + linkType: hard + +"@webassemblyjs/helper-numbers@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/helper-numbers@npm:1.11.6" + dependencies: + "@webassemblyjs/floating-point-hex-parser": 1.11.6 + "@webassemblyjs/helper-api-error": 1.11.6 + "@xtuc/long": 4.2.2 + checksum: f4b562fa219f84368528339e0f8d273ad44e047a07641ffcaaec6f93e5b76fd86490a009aa91a294584e1436d74b0a01fa9fde45e333a4c657b58168b04da424 + languageName: node + linkType: hard + +"@webassemblyjs/helper-wasm-bytecode@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/helper-wasm-bytecode@npm:1.11.6" + checksum: 3535ef4f1fba38de3475e383b3980f4bbf3de72bbb631c2b6584c7df45be4eccd62c6ff48b5edd3f1bcff275cfd605a37679ec199fc91fd0a7705d7f1e3972dc + languageName: node + linkType: hard + +"@webassemblyjs/helper-wasm-section@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/helper-wasm-section@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@webassemblyjs/helper-buffer": 1.11.6 + "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + "@webassemblyjs/wasm-gen": 1.11.6 + checksum: b2cf751bf4552b5b9999d27bbb7692d0aca75260140195cb58ea6374d7b9c2dc69b61e10b211a0e773f66209c3ddd612137ed66097e3684d7816f854997682e9 + languageName: node + linkType: hard + +"@webassemblyjs/ieee754@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/ieee754@npm:1.11.6" + dependencies: + "@xtuc/ieee754": ^1.2.0 + checksum: 13574b8e41f6ca39b700e292d7edf102577db5650fe8add7066a320aa4b7a7c09a5056feccac7a74eb68c10dea9546d4461412af351f13f6b24b5f32379b49de + languageName: node + linkType: hard + +"@webassemblyjs/leb128@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/leb128@npm:1.11.6" + dependencies: + "@xtuc/long": 4.2.2 + checksum: 7ea942dc9777d4b18a5ebfa3a937b30ae9e1d2ce1fee637583ed7f376334dd1d4274f813d2e250056cca803e0952def4b954913f1a3c9068bcd4ab4ee5143bf0 + languageName: node + linkType: hard + +"@webassemblyjs/utf8@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/utf8@npm:1.11.6" + checksum: 807fe5b5ce10c390cfdd93e0fb92abda8aebabb5199980681e7c3743ee3306a75729bcd1e56a3903980e96c885ee53ef901fcbaac8efdfa480f9c0dae1d08713 + languageName: node + linkType: hard + +"@webassemblyjs/wasm-edit@npm:^1.11.5": + version: 1.11.6 + resolution: "@webassemblyjs/wasm-edit@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@webassemblyjs/helper-buffer": 1.11.6 + "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + "@webassemblyjs/helper-wasm-section": 1.11.6 + "@webassemblyjs/wasm-gen": 1.11.6 + "@webassemblyjs/wasm-opt": 1.11.6 + "@webassemblyjs/wasm-parser": 1.11.6 + "@webassemblyjs/wast-printer": 1.11.6 + checksum: 29ce75870496d6fad864d815ebb072395a8a3a04dc9c3f4e1ffdc63fc5fa58b1f34304a1117296d8240054cfdbc38aca88e71fb51483cf29ffab0a61ef27b481 + languageName: node + linkType: hard + +"@webassemblyjs/wasm-gen@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/wasm-gen@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + "@webassemblyjs/ieee754": 1.11.6 + "@webassemblyjs/leb128": 1.11.6 + "@webassemblyjs/utf8": 1.11.6 + checksum: a645a2eecbea24833c3260a249704a7f554ef4a94c6000984728e94bb2bc9140a68dfd6fd21d5e0bbb09f6dfc98e083a45760a83ae0417b41a0196ff6d45a23a + languageName: node + linkType: hard + +"@webassemblyjs/wasm-opt@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/wasm-opt@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@webassemblyjs/helper-buffer": 1.11.6 + "@webassemblyjs/wasm-gen": 1.11.6 + "@webassemblyjs/wasm-parser": 1.11.6 + checksum: b4557f195487f8e97336ddf79f7bef40d788239169aac707f6eaa2fa5fe243557c2d74e550a8e57f2788e70c7ae4e7d32f7be16101afe183d597b747a3bdd528 + languageName: node + linkType: hard + +"@webassemblyjs/wasm-parser@npm:1.11.6, @webassemblyjs/wasm-parser@npm:^1.11.5": + version: 1.11.6 + resolution: "@webassemblyjs/wasm-parser@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@webassemblyjs/helper-api-error": 1.11.6 + "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + "@webassemblyjs/ieee754": 1.11.6 + "@webassemblyjs/leb128": 1.11.6 + "@webassemblyjs/utf8": 1.11.6 + checksum: 8200a8d77c15621724a23fdabe58d5571415cda98a7058f542e670ea965dd75499f5e34a48675184947c66f3df23adf55df060312e6d72d57908e3f049620d8a + languageName: node + linkType: hard + +"@webassemblyjs/wast-printer@npm:1.11.6": + version: 1.11.6 + resolution: "@webassemblyjs/wast-printer@npm:1.11.6" + dependencies: + "@webassemblyjs/ast": 1.11.6 + "@xtuc/long": 4.2.2 + checksum: d2fa6a4c427325ec81463e9c809aa6572af6d47f619f3091bf4c4a6fc34f1da3df7caddaac50b8e7a457f8784c62cd58c6311b6cb69b0162ccd8d4c072f79cf8 + languageName: node + linkType: hard + +"@webpack-cli/configtest@npm:^2.1.1": + version: 2.1.1 + resolution: "@webpack-cli/configtest@npm:2.1.1" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + checksum: 9f9f9145c2d05471fc83d426db1df85cf49f329836b0c4b9f46b6948bed4b013464c00622b136d2a0a26993ce2306976682592245b08ee717500b1db45009a72 + languageName: node + linkType: hard + +"@webpack-cli/info@npm:^2.0.2": + version: 2.0.2 + resolution: "@webpack-cli/info@npm:2.0.2" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + checksum: 8f9a178afca5c82e113aed1efa552d64ee5ae4fdff63fe747c096a981ec74f18a5d07bd6e89bbe6715c3e57d96eea024a410e58977169489fe1df044c10dd94e + languageName: node + linkType: hard + +"@webpack-cli/serve@npm:^2.0.5": + version: 2.0.5 + resolution: "@webpack-cli/serve@npm:2.0.5" + peerDependencies: + webpack: 5.x.x + webpack-cli: 5.x.x + peerDependenciesMeta: + webpack-dev-server: + optional: true + checksum: 75f0e54681796d567a71ac3e2781d2901a8d8cf1cdfc82f261034dddac59a8343e8c3bc5e32b4bb9d6766759ba49fb29a5cd86ef1701d79c506fe886bb63ac75 + languageName: node + linkType: hard + +"@xtuc/ieee754@npm:^1.2.0": + version: 1.2.0 + resolution: "@xtuc/ieee754@npm:1.2.0" + checksum: ac56d4ca6e17790f1b1677f978c0c6808b1900a5b138885d3da21732f62e30e8f0d9120fcf8f6edfff5100ca902b46f8dd7c1e3f903728634523981e80e2885a + languageName: node + linkType: hard + +"@xtuc/long@npm:4.2.2": + version: 4.2.2 + resolution: "@xtuc/long@npm:4.2.2" + checksum: 8ed0d477ce3bc9c6fe2bf6a6a2cc316bb9c4127c5a7827bae947fa8ec34c7092395c5a283cc300c05b5fa01cbbfa1f938f410a7bf75db7c7846fea41949989ec + languageName: node + linkType: hard + "abbrev@npm:^1.0.0": version: 1.1.1 resolution: "abbrev@npm:1.1.1" @@ -1279,6 +1556,15 @@ __metadata: languageName: node linkType: hard +"acorn-import-assertions@npm:^1.9.0": + version: 1.9.0 + resolution: "acorn-import-assertions@npm:1.9.0" + peerDependencies: + acorn: ^8 + checksum: 944fb2659d0845c467066bdcda2e20c05abe3aaf11972116df457ce2627628a81764d800dd55031ba19de513ee0d43bb771bc679cc0eda66dc8b4fade143bc0c + languageName: node + linkType: hard + "acorn-jsx@npm:^5.3.2": version: 5.3.2 resolution: "acorn-jsx@npm:5.3.2" @@ -1295,7 +1581,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.4.1, acorn@npm:^8.9.0": +"acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.2, acorn@npm:^8.9.0": version: 8.10.0 resolution: "acorn@npm:8.10.0" bin: @@ -1332,7 +1618,16 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.10.0, ajv@npm:^6.12.3, ajv@npm:^6.12.4": +"ajv-keywords@npm:^3.5.2": + version: 3.5.2 + resolution: "ajv-keywords@npm:3.5.2" + peerDependencies: + ajv: ^6.9.1 + checksum: 7dc5e5931677a680589050f79dcbe1fefbb8fea38a955af03724229139175b433c63c68f7ae5f86cf8f65d55eb7c25f75a046723e2e58296707617ca690feae9 + languageName: node + linkType: hard + +"ajv@npm:^6.10.0, ajv@npm:^6.12.3, ajv@npm:^6.12.4, ajv@npm:^6.12.5": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -1694,6 +1989,20 @@ __metadata: languageName: node linkType: hard +"browserslist@npm:^4.14.5": + version: 4.22.1 + resolution: "browserslist@npm:4.22.1" + dependencies: + caniuse-lite: ^1.0.30001541 + electron-to-chromium: ^1.4.535 + node-releases: ^2.0.13 + update-browserslist-db: ^1.0.13 + bin: + browserslist: cli.js + checksum: 7e6b10c53f7dd5d83fd2b95b00518889096382539fed6403829d447e05df4744088de46a571071afb447046abc3c66ad06fbc790e70234ec2517452e32ffd862 + languageName: node + linkType: hard + "bs58@npm:^4.0.0": version: 4.0.1 resolution: "bs58@npm:4.0.1" @@ -1714,6 +2023,13 @@ __metadata: languageName: node linkType: hard +"buffer-from@npm:^1.0.0": + version: 1.1.2 + resolution: "buffer-from@npm:1.1.2" + checksum: 0448524a562b37d4d7ed9efd91685a5b77a50672c556ea254ac9a6d30e3403a517d8981f10e565db24e8339413b43c97ca2951f10e399c6125a0d8911f5679bb + languageName: node + linkType: hard + "buffer-to-arraybuffer@npm:^0.0.5": version: 0.0.5 resolution: "buffer-to-arraybuffer@npm:0.0.5" @@ -1828,6 +2144,13 @@ __metadata: languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001541": + version: 1.0.30001549 + resolution: "caniuse-lite@npm:1.0.30001549" + checksum: 7f2abeedc8cf8b92cc0613855d71b995ce436068c0bcdd798c5af7d297ccf9f52496b00181beda42d82d25079dd4b6e389c67486156d40d8854e5707a25cb054 + languageName: node + linkType: hard + "caseless@npm:~0.12.0": version: 0.12.0 resolution: "caseless@npm:0.12.0" @@ -1938,6 +2261,13 @@ __metadata: languageName: node linkType: hard +"chrome-trace-event@npm:^1.0.2": + version: 1.0.3 + resolution: "chrome-trace-event@npm:1.0.3" + checksum: cb8b1fc7e881aaef973bd0c4a43cd353c2ad8323fb471a041e64f7c2dd849cde4aad15f8b753331a32dda45c973f032c8a03b8177fc85d60eaa75e91e08bfb97 + languageName: node + linkType: hard + "cids@npm:^0.7.1": version: 0.7.5 resolution: "cids@npm:0.7.5" @@ -1997,6 +2327,17 @@ __metadata: languageName: node linkType: hard +"clone-deep@npm:^4.0.1": + version: 4.0.1 + resolution: "clone-deep@npm:4.0.1" + dependencies: + is-plain-object: ^2.0.4 + kind-of: ^6.0.2 + shallow-clone: ^3.0.0 + checksum: 770f912fe4e6f21873c8e8fbb1e99134db3b93da32df271d00589ea4a29dbe83a9808a322c93f3bcaf8584b8b4fa6fc269fc8032efbaa6728e0c9886c74467d2 + languageName: node + linkType: hard + "clone-response@npm:^1.0.2": version: 1.0.3 resolution: "clone-response@npm:1.0.3" @@ -2047,6 +2388,13 @@ __metadata: languageName: node linkType: hard +"colorette@npm:^2.0.14": + version: 2.0.20 + resolution: "colorette@npm:2.0.20" + checksum: 0c016fea2b91b733eb9f4bcdb580018f52c0bc0979443dad930e5037a968237ac53d9beb98e218d2e9235834f8eebce7f8e080422d6194e957454255bde71d3d + languageName: node + linkType: hard + "combined-stream@npm:^1.0.6, combined-stream@npm:~1.0.6": version: 1.0.8 resolution: "combined-stream@npm:1.0.8" @@ -2087,6 +2435,20 @@ __metadata: languageName: node linkType: hard +"commander@npm:^10.0.1": + version: 10.0.1 + resolution: "commander@npm:10.0.1" + checksum: 436901d64a818295803c1996cd856621a74f30b9f9e28a588e726b2b1670665bccd7c1a77007ebf328729f0139838a88a19265858a0fa7a8728c4656796db948 + languageName: node + linkType: hard + +"commander@npm:^2.20.0": + version: 2.20.3 + resolution: "commander@npm:2.20.3" + checksum: ab8c07884e42c3a8dbc5dd9592c606176c7eb5c1ca5ff274bcf907039b2c41de3626f684ea75ccf4d361ba004bbaff1f577d5384c155f3871e456bdf27becf9e + languageName: node + linkType: hard + "commander@npm:^5.1.0": version: 5.1.0 resolution: "commander@npm:5.1.0" @@ -2225,7 +2587,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2": +"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" dependencies: @@ -2457,6 +2819,13 @@ __metadata: languageName: node linkType: hard +"electron-to-chromium@npm:^1.4.535": + version: 1.4.554 + resolution: "electron-to-chromium@npm:1.4.554" + checksum: cbac43c50b43777327f4a7bf149ee3088c1da8b91bbcd80f78d2cc77bc52763f6d0941574499239d9caefd3430d3093f865e5f1093371418f7d6b70301eeae9b + languageName: node + linkType: hard + "elliptic@npm:6.5.4, elliptic@npm:^6.4.0, elliptic@npm:^6.5.4": version: 6.5.4 resolution: "elliptic@npm:6.5.4" @@ -2511,6 +2880,16 @@ __metadata: languageName: node linkType: hard +"enhanced-resolve@npm:^5.15.0": + version: 5.15.0 + resolution: "enhanced-resolve@npm:5.15.0" + dependencies: + graceful-fs: ^4.2.4 + tapable: ^2.2.0 + checksum: fbd8cdc9263be71cc737aa8a7d6c57b43d6aa38f6cc75dde6fcd3598a130cc465f979d2f4d01bb3bf475acb43817749c79f8eef9be048683602ca91ab52e4f11 + languageName: node + linkType: hard + "env-paths@npm:^2.2.0": version: 2.2.1 resolution: "env-paths@npm:2.2.1" @@ -2518,6 +2897,15 @@ __metadata: languageName: node linkType: hard +"envinfo@npm:^7.7.3": + version: 7.10.0 + resolution: "envinfo@npm:7.10.0" + bin: + envinfo: dist/cli.js + checksum: 05e81a5768c42cbd5c580dc3f274db3401facadd53e9bd52e2aa49dfbb5d8b26f6181c25a6652d79618a6994185bd2b1c137673101690b147f758e4e71d42f7d + languageName: node + linkType: hard + "err-code@npm:^2.0.2": version: 2.0.3 resolution: "err-code@npm:2.0.3" @@ -2525,6 +2913,13 @@ __metadata: languageName: node linkType: hard +"es-module-lexer@npm:^1.2.1": + version: 1.3.1 + resolution: "es-module-lexer@npm:1.3.1" + checksum: 3beafa7e171eb1e8cc45695edf8d51638488dddf65294d7911f8d6a96249da6a9838c87529262cc6ea53988d8272cec0f4bff93f476ed031a54ba3afb51a0ed3 + languageName: node + linkType: hard + "es5-ext@npm:^0.10.35, es5-ext@npm:^0.10.50": version: 0.10.62 resolution: "es5-ext@npm:0.10.62" @@ -2604,7 +2999,7 @@ __metadata: languageName: node linkType: hard -"eslint-scope@npm:^5.1.1": +"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1": version: 5.1.1 resolution: "eslint-scope@npm:5.1.1" dependencies: @@ -2864,6 +3259,13 @@ __metadata: languageName: node linkType: hard +"events@npm:^3.2.0": + version: 3.3.0 + resolution: "events@npm:3.3.0" + checksum: f6f487ad2198aa41d878fa31452f1a3c00958f46e9019286ff4787c84aac329332ab45c9cdc8c445928fc6d7ded294b9e005a7fce9426488518017831b272780 + languageName: node + linkType: hard + "evp_bytestokey@npm:^1.0.3": version: 1.0.3 resolution: "evp_bytestokey@npm:1.0.3" @@ -2985,6 +3387,13 @@ __metadata: languageName: node linkType: hard +"fastest-levenshtein@npm:^1.0.12": + version: 1.0.16 + resolution: "fastest-levenshtein@npm:1.0.16" + checksum: a78d44285c9e2ae2c25f3ef0f8a73f332c1247b7ea7fb4a191e6bb51aa6ee1ef0dfb3ed113616dcdc7023e18e35a8db41f61c8d88988e877cf510df8edafbc71 + languageName: node + linkType: hard + "fastq@npm:^1.6.0": version: 1.15.0 resolution: "fastq@npm:1.15.0" @@ -3069,6 +3478,16 @@ __metadata: languageName: node linkType: hard +"find-up@npm:^4.0.0": + version: 4.1.0 + resolution: "find-up@npm:4.1.0" + dependencies: + locate-path: ^5.0.0 + path-exists: ^4.0.0 + checksum: 4c172680e8f8c1f78839486e14a43ef82e9decd0e74145f40707cc42e7420506d5ec92d9a11c22bd2c48fb0c384ea05dd30e10dd152fefeec6f2f75282a8b844 + languageName: node + linkType: hard + "flat-cache@npm:^3.0.4": version: 3.0.4 resolution: "flat-cache@npm:3.0.4" @@ -3357,6 +3776,13 @@ __metadata: languageName: node linkType: hard +"glob-to-regexp@npm:^0.4.1": + version: 0.4.1 + resolution: "glob-to-regexp@npm:0.4.1" + checksum: e795f4e8f06d2a15e86f76e4d92751cf8bbfcf0157cea5c2f0f35678a8195a750b34096b1256e436f0cebc1883b5ff0888c47348443e69546a5a87f9e1eb1167 + languageName: node + linkType: hard + "glob@npm:7.1.7": version: 7.1.7 resolution: "glob@npm:7.1.7" @@ -3496,7 +3922,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.6": +"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: ac85f94da92d8eb6b7f5a8b20ce65e43d66761c55ce85ac96df6865308390da45a8d3f0296dd3a663de65d30ba497bd46c696cc1e248c72b13d6d567138a4fc7 @@ -3785,6 +4211,18 @@ __metadata: languageName: node linkType: hard +"import-local@npm:^3.0.2": + version: 3.1.0 + resolution: "import-local@npm:3.1.0" + dependencies: + pkg-dir: ^4.2.0 + resolve-cwd: ^3.0.0 + bin: + import-local-fixture: fixtures/cli.js + checksum: bfcdb63b5e3c0e245e347f3107564035b128a414c4da1172a20dc67db2504e05ede4ac2eee1252359f78b0bfd7b19ef180aec427c2fce6493ae782d73a04cddd + languageName: node + linkType: hard + "imurmurhash@npm:^0.1.4": version: 0.1.4 resolution: "imurmurhash@npm:0.1.4" @@ -3816,6 +4254,13 @@ __metadata: languageName: node linkType: hard +"interpret@npm:^3.1.1": + version: 3.1.1 + resolution: "interpret@npm:3.1.1" + checksum: 35cebcf48c7351130437596d9ab8c8fe131ce4038da4561e6d665f25640e0034702a031cf7e3a5cea60ac7ac548bf17465e0571ede126f3d3a6933152171ac82 + languageName: node + linkType: hard + "ip@npm:^2.0.0": version: 2.0.0 resolution: "ip@npm:2.0.0" @@ -3856,6 +4301,15 @@ __metadata: languageName: node linkType: hard +"is-core-module@npm:^2.13.0": + version: 2.13.0 + resolution: "is-core-module@npm:2.13.0" + dependencies: + has: ^1.0.3 + checksum: 053ab101fb390bfeb2333360fd131387bed54e476b26860dc7f5a700bbf34a0ec4454f7c8c4d43e8a0030957e4b3db6e16d35e1890ea6fb654c833095e040355 + languageName: node + linkType: hard + "is-extglob@npm:^2.1.1": version: 2.1.1 resolution: "is-extglob@npm:2.1.1" @@ -3930,6 +4384,15 @@ __metadata: languageName: node linkType: hard +"is-plain-object@npm:^2.0.4": + version: 2.0.4 + resolution: "is-plain-object@npm:2.0.4" + dependencies: + isobject: ^3.0.1 + checksum: 2a401140cfd86cabe25214956ae2cfee6fbd8186809555cd0e84574f88de7b17abacb2e477a6a658fa54c6083ecbda1e6ae404c7720244cd198903848fca70ca + languageName: node + linkType: hard + "is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.3": version: 1.1.10 resolution: "is-typed-array@npm:1.1.10" @@ -3964,6 +4427,13 @@ __metadata: languageName: node linkType: hard +"isobject@npm:^3.0.1": + version: 3.0.1 + resolution: "isobject@npm:3.0.1" + checksum: db85c4c970ce30693676487cca0e61da2ca34e8d4967c2e1309143ff910c207133a969f9e4ddb2dc6aba670aabce4e0e307146c310350b298e74a31f7d464703 + languageName: node + linkType: hard + "isstream@npm:~0.1.2": version: 0.1.2 resolution: "isstream@npm:0.1.2" @@ -3984,6 +4454,17 @@ __metadata: languageName: node linkType: hard +"jest-worker@npm:^27.4.5": + version: 27.5.1 + resolution: "jest-worker@npm:27.5.1" + dependencies: + "@types/node": "*" + merge-stream: ^2.0.0 + supports-color: ^8.0.0 + checksum: 98cd68b696781caed61c983a3ee30bf880b5bd021c01d98f47b143d4362b85d0737f8523761e2713d45e18b4f9a2b98af1eaee77afade4111bb65c77d6f7c980 + languageName: node + linkType: hard + "js-sha3@npm:0.8.0, js-sha3@npm:^0.8.0": version: 0.8.0 resolution: "js-sha3@npm:0.8.0" @@ -4030,6 +4511,13 @@ __metadata: languageName: node linkType: hard +"json-parse-even-better-errors@npm:^2.3.1": + version: 2.3.1 + resolution: "json-parse-even-better-errors@npm:2.3.1" + checksum: 798ed4cf3354a2d9ccd78e86d2169515a0097a5c133337807cdf7f1fc32e1391d207ccfc276518cc1d7d8d4db93288b8a50ba4293d212ad1336e52a8ec0a941f + languageName: node + linkType: hard + "json-schema-traverse@npm:^0.4.1": version: 0.4.1 resolution: "json-schema-traverse@npm:0.4.1" @@ -4116,6 +4604,13 @@ __metadata: languageName: node linkType: hard +"kind-of@npm:^6.0.2": + version: 6.0.3 + resolution: "kind-of@npm:6.0.3" + checksum: 3ab01e7b1d440b22fe4c31f23d8d38b4d9b91d9f291df683476576493d5dfd2e03848a8b05813dd0c3f0e835bc63f433007ddeceb71f05cb25c45ae1b19c6d3b + languageName: node + linkType: hard + "levn@npm:^0.4.1": version: 0.4.1 resolution: "levn@npm:0.4.1" @@ -4126,6 +4621,22 @@ __metadata: languageName: node linkType: hard +"loader-runner@npm:^4.2.0": + version: 4.3.0 + resolution: "loader-runner@npm:4.3.0" + checksum: a90e00dee9a16be118ea43fec3192d0b491fe03a32ed48a4132eb61d498f5536a03a1315531c19d284392a8726a4ecad71d82044c28d7f22ef62e029bf761569 + languageName: node + linkType: hard + +"locate-path@npm:^5.0.0": + version: 5.0.0 + resolution: "locate-path@npm:5.0.0" + dependencies: + p-locate: ^4.1.0 + checksum: 83e51725e67517287d73e1ded92b28602e3ae5580b301fe54bfb76c0c723e3f285b19252e375712316774cf52006cb236aed5704692c32db0d5d089b69696e30 + languageName: node + linkType: hard + "locate-path@npm:^6.0.0": version: 6.0.0 resolution: "locate-path@npm:6.0.0" @@ -4320,6 +4831,13 @@ __metadata: languageName: node linkType: hard +"merge-stream@npm:^2.0.0": + version: 2.0.0 + resolution: "merge-stream@npm:2.0.0" + checksum: 6fa4dcc8d86629705cea944a4b88ef4cb0e07656ebf223fa287443256414283dd25d91c1cd84c77987f2aec5927af1a9db6085757cb43d90eb170ebf4b47f4f4 + languageName: node + linkType: hard + "merge2@npm:^1.3.0, merge2@npm:^1.4.1": version: 1.4.1 resolution: "merge2@npm:1.4.1" @@ -4351,7 +4869,7 @@ __metadata: languageName: node linkType: hard -"mime-types@npm:^2.1.12, mime-types@npm:^2.1.16, mime-types@npm:~2.1.19, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": +"mime-types@npm:^2.1.12, mime-types@npm:^2.1.16, mime-types@npm:^2.1.27, mime-types@npm:~2.1.19, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": version: 2.1.35 resolution: "mime-types@npm:2.1.35" dependencies: @@ -4777,7 +5295,7 @@ __metadata: languageName: node linkType: hard -"neo-async@npm:^2.6.0": +"neo-async@npm:^2.6.0, neo-async@npm:^2.6.2": version: 2.6.2 resolution: "neo-async@npm:2.6.2" checksum: deac9f8d00eda7b2e5cd1b2549e26e10a0faa70adaa6fdadca701cc55f49ee9018e427f424bac0c790b7c7e2d3068db97f3093f1093975f2acb8f8818b936ed9 @@ -4876,6 +5394,13 @@ __metadata: languageName: node linkType: hard +"node-releases@npm:^2.0.13": + version: 2.0.13 + resolution: "node-releases@npm:2.0.13" + checksum: 17ec8f315dba62710cae71a8dad3cd0288ba943d2ece43504b3b1aa8625bf138637798ab470b1d9035b0545996f63000a8a926e0f6d35d0996424f8b6d36dda3 + languageName: node + linkType: hard + "nopt@npm:^6.0.0": version: 6.0.0 resolution: "nopt@npm:6.0.0" @@ -5015,6 +5540,15 @@ __metadata: languageName: node linkType: hard +"p-limit@npm:^2.2.0": + version: 2.3.0 + resolution: "p-limit@npm:2.3.0" + dependencies: + p-try: ^2.0.0 + checksum: 84ff17f1a38126c3314e91ecfe56aecbf36430940e2873dadaa773ffe072dc23b7af8e46d4b6485d302a11673fe94c6b67ca2cfbb60c989848b02100d0594ac1 + languageName: node + linkType: hard + "p-limit@npm:^3.0.2": version: 3.1.0 resolution: "p-limit@npm:3.1.0" @@ -5024,6 +5558,15 @@ __metadata: languageName: node linkType: hard +"p-locate@npm:^4.1.0": + version: 4.1.0 + resolution: "p-locate@npm:4.1.0" + dependencies: + p-limit: ^2.2.0 + checksum: 513bd14a455f5da4ebfcb819ef706c54adb09097703de6aeaa5d26fe5ea16df92b48d1ac45e01e3944ce1e6aa2a66f7f8894742b8c9d6e276e16cd2049a2b870 + languageName: node + linkType: hard + "p-locate@npm:^5.0.0": version: 5.0.0 resolution: "p-locate@npm:5.0.0" @@ -5042,6 +5585,13 @@ __metadata: languageName: node linkType: hard +"p-try@npm:^2.0.0": + version: 2.2.0 + resolution: "p-try@npm:2.2.0" + checksum: f8a8e9a7693659383f06aec604ad5ead237c7a261c18048a6e1b5b85a5f8a067e469aa24f5bc009b991ea3b058a87f5065ef4176793a200d4917349881216cae + languageName: node + linkType: hard + "pako@npm:^2.0.4": version: 2.1.0 resolution: "pako@npm:2.1.0" @@ -5093,6 +5643,13 @@ __metadata: languageName: node linkType: hard +"path-parse@npm:^1.0.7": + version: 1.0.7 + resolution: "path-parse@npm:1.0.7" + checksum: 49abf3d81115642938a8700ec580da6e830dde670be21893c62f4e10bd7dd4c3742ddc603fe24f898cba7eb0c6bc1777f8d9ac14185d34540c6d4d80cd9cae8a + languageName: node + linkType: hard + "path-scurry@npm:^1.10.1": version: 1.10.1 resolution: "path-scurry@npm:1.10.1" @@ -5144,6 +5701,13 @@ __metadata: languageName: node linkType: hard +"picocolors@npm:^1.0.0": + version: 1.0.0 + resolution: "picocolors@npm:1.0.0" + checksum: a2e8092dd86c8396bdba9f2b5481032848525b3dc295ce9b57896f931e63fc16f79805144321f72976383fc249584672a75cc18d6777c6b757603f372f745981 + languageName: node + linkType: hard + "picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1": version: 2.3.1 resolution: "picomatch@npm:2.3.1" @@ -5151,6 +5715,15 @@ __metadata: languageName: node linkType: hard +"pkg-dir@npm:^4.2.0": + version: 4.2.0 + resolution: "pkg-dir@npm:4.2.0" + dependencies: + find-up: ^4.0.0 + checksum: 9863e3f35132bf99ae1636d31ff1e1e3501251d480336edb1c211133c8d58906bed80f154a1d723652df1fda91e01c7442c2eeaf9dc83157c7ae89087e43c8d6 + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -5358,6 +5931,15 @@ __metadata: languageName: node linkType: hard +"rechoir@npm:^0.8.0": + version: 0.8.0 + resolution: "rechoir@npm:0.8.0" + dependencies: + resolve: ^1.20.0 + checksum: ad3caed8afdefbc33fbc30e6d22b86c35b3d51c2005546f4e79bcc03c074df804b3640ad18945e6bef9ed12caedc035655ec1082f64a5e94c849ff939dc0a788 + languageName: node + linkType: hard + "reduce-flatten@npm:^2.0.0": version: 2.0.0 resolution: "reduce-flatten@npm:2.0.0" @@ -5407,6 +5989,15 @@ __metadata: languageName: node linkType: hard +"resolve-cwd@npm:^3.0.0": + version: 3.0.0 + resolution: "resolve-cwd@npm:3.0.0" + dependencies: + resolve-from: ^5.0.0 + checksum: 546e0816012d65778e580ad62b29e975a642989108d9a3c5beabfb2304192fa3c9f9146fbdfe213563c6ff51975ae41bac1d3c6e047dd9572c94863a057b4d81 + languageName: node + linkType: hard + "resolve-from@npm:^4.0.0": version: 4.0.0 resolution: "resolve-from@npm:4.0.0" @@ -5414,6 +6005,39 @@ __metadata: languageName: node linkType: hard +"resolve-from@npm:^5.0.0": + version: 5.0.0 + resolution: "resolve-from@npm:5.0.0" + checksum: 4ceeb9113e1b1372d0cd969f3468fa042daa1dd9527b1b6bb88acb6ab55d8b9cd65dbf18819f9f9ddf0db804990901dcdaade80a215e7b2c23daae38e64f5bdf + languageName: node + linkType: hard + +"resolve@npm:^1.20.0": + version: 1.22.8 + resolution: "resolve@npm:1.22.8" + dependencies: + is-core-module: ^2.13.0 + path-parse: ^1.0.7 + supports-preserve-symlinks-flag: ^1.0.0 + bin: + resolve: bin/resolve + checksum: f8a26958aa572c9b064562750b52131a37c29d072478ea32e129063e2da7f83e31f7f11e7087a18225a8561cfe8d2f0df9dbea7c9d331a897571c0a2527dbb4c + languageName: node + linkType: hard + +"resolve@patch:resolve@^1.20.0#~builtin": + version: 1.22.8 + resolution: "resolve@patch:resolve@npm%3A1.22.8#~builtin::version=1.22.8&hash=c3c19d" + dependencies: + is-core-module: ^2.13.0 + path-parse: ^1.0.7 + supports-preserve-symlinks-flag: ^1.0.0 + bin: + resolve: bin/resolve + checksum: 5479b7d431cacd5185f8db64bfcb7286ae5e31eb299f4c4f404ad8aa6098b77599563ac4257cb2c37a42f59dfc06a1bec2bcf283bb448f319e37f0feb9a09847 + languageName: node + linkType: hard + "responselike@npm:^2.0.0": version: 2.0.1 resolution: "responselike@npm:2.0.1" @@ -5508,6 +6132,17 @@ __metadata: languageName: node linkType: hard +"schema-utils@npm:^3.1.1, schema-utils@npm:^3.2.0": + version: 3.3.0 + resolution: "schema-utils@npm:3.3.0" + dependencies: + "@types/json-schema": ^7.0.8 + ajv: ^6.12.5 + ajv-keywords: ^3.5.2 + checksum: ea56971926fac2487f0757da939a871388891bc87c6a82220d125d587b388f1704788f3706e7f63a7b70e49fc2db974c41343528caea60444afd5ce0fe4b85c0 + languageName: node + linkType: hard + "scrypt-js@npm:^3.0.0, scrypt-js@npm:^3.0.1": version: 3.0.1 resolution: "scrypt-js@npm:3.0.1" @@ -5577,6 +6212,15 @@ __metadata: languageName: node linkType: hard +"serialize-javascript@npm:^6.0.1": + version: 6.0.1 + resolution: "serialize-javascript@npm:6.0.1" + dependencies: + randombytes: ^2.1.0 + checksum: 3c4f4cb61d0893b988415bdb67243637333f3f574e9e9cc9a006a2ced0b390b0b3b44aef8d51c951272a9002ec50885eefdc0298891bc27eb2fe7510ea87dc4f + languageName: node + linkType: hard + "serve-static@npm:1.15.0": version: 1.15.0 resolution: "serve-static@npm:1.15.0" @@ -5635,6 +6279,15 @@ __metadata: languageName: node linkType: hard +"shallow-clone@npm:^3.0.0": + version: 3.0.1 + resolution: "shallow-clone@npm:3.0.1" + dependencies: + kind-of: ^6.0.2 + checksum: 39b3dd9630a774aba288a680e7d2901f5c0eae7b8387fc5c8ea559918b29b3da144b7bdb990d7ccd9e11be05508ac9e459ce51d01fd65e583282f6ffafcba2e7 + languageName: node + linkType: hard + "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -5756,7 +6409,17 @@ __metadata: languageName: node linkType: hard -"source-map@npm:^0.6.1": +"source-map-support@npm:~0.5.20": + version: 0.5.21 + resolution: "source-map-support@npm:0.5.21" + dependencies: + buffer-from: ^1.0.0 + source-map: ^0.6.0 + checksum: 43e98d700d79af1d36f859bdb7318e601dfc918c7ba2e98456118ebc4c4872b327773e5a1df09b0524e9e5063bb18f0934538eace60cca2710d1fa687645d137 + languageName: node + linkType: hard + +"source-map@npm:^0.6.0, source-map@npm:^0.6.1": version: 0.6.1 resolution: "source-map@npm:0.6.1" checksum: 59ce8640cf3f3124f64ac289012c2b8bd377c238e316fb323ea22fbfe83da07d81e000071d7242cad7a23cd91c7de98e4df8830ec3f133cb6133a5f6e9f67bc2 @@ -5879,7 +6542,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:8.1.1": +"supports-color@npm:8.1.1, supports-color@npm:^8.0.0": version: 8.1.1 resolution: "supports-color@npm:8.1.1" dependencies: @@ -5906,6 +6569,13 @@ __metadata: languageName: node linkType: hard +"supports-preserve-symlinks-flag@npm:^1.0.0": + version: 1.0.0 + resolution: "supports-preserve-symlinks-flag@npm:1.0.0" + checksum: 53b1e247e68e05db7b3808b99b892bd36fb096e6fba213a06da7fab22045e97597db425c724f2bbd6c99a3c295e1e73f3e4de78592289f38431049e1277ca0ae + languageName: node + linkType: hard + "swarm-js@npm:^0.1.40": version: 0.1.42 resolution: "swarm-js@npm:0.1.42" @@ -5937,6 +6607,13 @@ __metadata: languageName: node linkType: hard +"tapable@npm:^2.1.1, tapable@npm:^2.2.0": + version: 2.2.1 + resolution: "tapable@npm:2.2.1" + checksum: 3b7a1b4d86fa940aad46d9e73d1e8739335efd4c48322cb37d073eb6f80f5281889bf0320c6d8ffcfa1a0dd5bfdbd0f9d037e252ef972aca595330538aac4d51 + languageName: node + linkType: hard + "tar@npm:^4.0.2": version: 4.4.19 resolution: "tar@npm:4.4.19" @@ -5982,6 +6659,42 @@ __metadata: languageName: node linkType: hard +"terser-webpack-plugin@npm:^5.3.7": + version: 5.3.9 + resolution: "terser-webpack-plugin@npm:5.3.9" + dependencies: + "@jridgewell/trace-mapping": ^0.3.17 + jest-worker: ^27.4.5 + schema-utils: ^3.1.1 + serialize-javascript: ^6.0.1 + terser: ^5.16.8 + peerDependencies: + webpack: ^5.1.0 + peerDependenciesMeta: + "@swc/core": + optional: true + esbuild: + optional: true + uglify-js: + optional: true + checksum: 41705713d6f9cb83287936b21e27c658891c78c4392159f5148b5623f0e8c48559869779619b058382a4c9758e7820ea034695e57dc7c474b4962b79f553bc5f + languageName: node + linkType: hard + +"terser@npm:^5.16.8": + version: 5.21.0 + resolution: "terser@npm:5.21.0" + dependencies: + "@jridgewell/source-map": ^0.3.3 + acorn: ^8.8.2 + commander: ^2.20.0 + source-map-support: ~0.5.20 + bin: + terser: bin/terser + checksum: 130f1567af1ffa4ddb067651bb284a01b45b5c83e82b3a072a5ff94b0b00ac35090f89c8714631a4a45972f65187bc149fc7144380611f437e1e3d9e174b136b + languageName: node + linkType: hard + "text-table@npm:^0.2.0": version: 0.2.0 resolution: "text-table@npm:0.2.0" @@ -6315,6 +7028,8 @@ __metadata: typechain: ^8.2.0 typescript: ^5.1.6 web3: 1.10.0 + webpack: ^5.89.0 + webpack-cli: ^5.1.4 languageName: unknown linkType: soft @@ -6339,6 +7054,20 @@ __metadata: languageName: node linkType: hard +"update-browserslist-db@npm:^1.0.13": + version: 1.0.13 + resolution: "update-browserslist-db@npm:1.0.13" + dependencies: + escalade: ^3.1.1 + picocolors: ^1.0.0 + peerDependencies: + browserslist: ">= 4.21.0" + bin: + update-browserslist-db: cli.js + checksum: 1e47d80182ab6e4ad35396ad8b61008ae2a1330221175d0abd37689658bdb61af9b705bfc41057fd16682474d79944fb2d86767c5ed5ae34b6276b9bed353322 + languageName: node + linkType: hard + "uri-js@npm:^4.2.2": version: 4.4.1 resolution: "uri-js@npm:4.4.1" @@ -6465,6 +7194,16 @@ __metadata: languageName: node linkType: hard +"watchpack@npm:^2.4.0": + version: 2.4.0 + resolution: "watchpack@npm:2.4.0" + dependencies: + glob-to-regexp: ^0.4.1 + graceful-fs: ^4.1.2 + checksum: 23d4bc58634dbe13b86093e01c6a68d8096028b664ab7139d58f0c37d962d549a940e98f2f201cecdabd6f9c340338dc73ef8bf094a2249ef582f35183d1a131 + languageName: node + linkType: hard + "web-streams-polyfill@npm:^3.0.3": version: 3.2.1 resolution: "web-streams-polyfill@npm:3.2.1" @@ -6750,6 +7489,92 @@ __metadata: languageName: node linkType: hard +"webpack-cli@npm:^5.1.4": + version: 5.1.4 + resolution: "webpack-cli@npm:5.1.4" + dependencies: + "@discoveryjs/json-ext": ^0.5.0 + "@webpack-cli/configtest": ^2.1.1 + "@webpack-cli/info": ^2.0.2 + "@webpack-cli/serve": ^2.0.5 + colorette: ^2.0.14 + commander: ^10.0.1 + cross-spawn: ^7.0.3 + envinfo: ^7.7.3 + fastest-levenshtein: ^1.0.12 + import-local: ^3.0.2 + interpret: ^3.1.1 + rechoir: ^0.8.0 + webpack-merge: ^5.7.3 + peerDependencies: + webpack: 5.x.x + peerDependenciesMeta: + "@webpack-cli/generators": + optional: true + webpack-bundle-analyzer: + optional: true + webpack-dev-server: + optional: true + bin: + webpack-cli: bin/cli.js + checksum: 3a4ad0d0342a6815c850ee4633cc2a8a5dae04f918e7847f180bf24ab400803cf8a8943707ffbed03eb20fe6ce647f996f60a2aade87b0b4a9954da3da172ce0 + languageName: node + linkType: hard + +"webpack-merge@npm:^5.7.3": + version: 5.9.0 + resolution: "webpack-merge@npm:5.9.0" + dependencies: + clone-deep: ^4.0.1 + wildcard: ^2.0.0 + checksum: 64fe2c23aacc5f19684452a0e84ec02c46b990423aee6fcc5c18d7d471155bd14e9a6adb02bd3656eb3e0ac2532c8e97d69412ad14c97eeafe32fa6d10050872 + languageName: node + linkType: hard + +"webpack-sources@npm:^3.2.3": + version: 3.2.3 + resolution: "webpack-sources@npm:3.2.3" + checksum: 989e401b9fe3536529e2a99dac8c1bdc50e3a0a2c8669cbafad31271eadd994bc9405f88a3039cd2e29db5e6d9d0926ceb7a1a4e7409ece021fe79c37d9c4607 + languageName: node + linkType: hard + +"webpack@npm:^5.89.0": + version: 5.89.0 + resolution: "webpack@npm:5.89.0" + dependencies: + "@types/eslint-scope": ^3.7.3 + "@types/estree": ^1.0.0 + "@webassemblyjs/ast": ^1.11.5 + "@webassemblyjs/wasm-edit": ^1.11.5 + "@webassemblyjs/wasm-parser": ^1.11.5 + acorn: ^8.7.1 + acorn-import-assertions: ^1.9.0 + browserslist: ^4.14.5 + chrome-trace-event: ^1.0.2 + enhanced-resolve: ^5.15.0 + es-module-lexer: ^1.2.1 + eslint-scope: 5.1.1 + events: ^3.2.0 + glob-to-regexp: ^0.4.1 + graceful-fs: ^4.2.9 + json-parse-even-better-errors: ^2.3.1 + loader-runner: ^4.2.0 + mime-types: ^2.1.27 + neo-async: ^2.6.2 + schema-utils: ^3.2.0 + tapable: ^2.1.1 + terser-webpack-plugin: ^5.3.7 + watchpack: ^2.4.0 + webpack-sources: ^3.2.3 + peerDependenciesMeta: + webpack-cli: + optional: true + bin: + webpack: bin/webpack.js + checksum: 43fe0dbc30e168a685ef5a86759d5016a705f6563b39a240aa00826a80637d4a3deeb8062e709d6a4b05c63e796278244c84b04174704dc4a37bedb0f565c5ed + languageName: node + linkType: hard + "websocket@npm:^1.0.32": version: 1.0.34 resolution: "websocket@npm:1.0.34" @@ -6808,6 +7633,13 @@ __metadata: languageName: node linkType: hard +"wildcard@npm:^2.0.0": + version: 2.0.1 + resolution: "wildcard@npm:2.0.1" + checksum: e0c60a12a219e4b12065d1199802d81c27b841ed6ad6d9d28240980c73ceec6f856771d575af367cbec2982d9ae7838759168b551776577f155044f5a5ba843c + languageName: node + linkType: hard + "wordwrap@npm:^1.0.0": version: 1.0.0 resolution: "wordwrap@npm:1.0.0"