Compare commits

..
24 Commits
Author SHA1 Message Date
github-actions[bot] e87df306d8 [CI Skip] release/stable 16.2.2
skip-checks: true
2025-06-17 16:56:21 +00:00
Valentin Fernandez 8d2c9b29d4 16.2.2 (#6171) 2025-06-17 13:50:23 -03:00
github-actions[bot] 52db57b8be [CI Skip] bump/beta 16.2.2-1-x
skip-checks: true
2025-06-17 15:15:07 +00:00
Valentin Fernandez 996c6fa17a bump polkadotjs/common to 13.5.2 (#6170) 2025-06-17 12:09:17 -03:00
github-actions[bot] f124375fdd [CI Skip] bump/beta 16.2.2-0-x
skip-checks: true
2025-06-13 13:19:11 +00:00
rajk93 41de04896f feat(types-codec): Add maximum depth limit in decodeU8a functions (#6168)
* feat(decodeU8a): add maximum depth check for complex types in decode functions

* chore: lint
2025-06-13 10:13:18 -03:00
github-actions[bot] 559a02ef04 [CI Skip] release/stable 16.2.1
skip-checks: true
2025-06-10 15:01:42 +00:00
Valentin Fernandez 5517d3d9b6 16.2.1 (#6167) 2025-06-10 11:55:52 -03:00
github-actions[bot] eff4b8a72a [CI Skip] bump/beta 16.1.3-0-x
skip-checks: true
2025-06-09 17:52:45 +00:00
Alex BeanandPeter White 3ffc196cc3 feat(api-contract): add support for ink! v6 and pallet-revive compatibility (#6158)
* wip: support revive for ink! v6

* revive components

* fix: support v6 metadata

* fix: remove debug messages

* test: extend tests for v6ToLatestCompatible

* refactor: remove Revive specific components

* test: construct revive compatible contract

* feat: use ContractReviveProjectInfo new type

* fix: parse version to decide what kind of contract

* refactor: remove hardcoded address

* fix: format

---------

Co-authored-by: Peter White <petras9789@gmail.com>
2025-06-09 14:46:57 -03:00
github-actions[bot] 252de3b812 [CI Skip] release/stable 16.1.2
skip-checks: true
2025-06-04 15:48:12 +00:00
Valentin Fernandez 2a322407c5 16.1.2 (#6165) 2025-06-04 12:42:16 -03:00
github-actions[bot] 278bf617f6 [CI Skip] bump/beta 16.1.2-0-x
skip-checks: true
2025-06-04 15:30:29 +00:00
Valentin Fernandez 29f741f9d9 Use ExtrinsicV4 by default (#6164) 2025-06-04 12:24:19 -03:00
github-actions[bot] 187ce9cfcf [CI Skip] release/stable 16.1.1
skip-checks: true
2025-05-29 18:41:23 +00:00
Valentin Fernandez 915a59584f 16.1.1 (#6161) 2025-05-29 15:35:30 -03:00
github-actions[bot] 775a6c5bc4 [CI Skip] bump/beta 16.0.2-3-x
skip-checks: true
2025-05-29 18:17:06 +00:00
rajk93 d81f6e9eb2 fix: correct BitVec length calculation from bytes to bits in codec (#6152) 2025-05-29 15:11:19 -03:00
github-actions[bot] 53d17dc3e5 [CI Skip] bump/beta 16.0.2-2-x
skip-checks: true
2025-05-29 16:43:55 +00:00
Valentin Fernandez 448c1ce217 Initialize RpcCore with configured ttl (#6160)
* Initialize RpcCore with configured ttl

* lint
2025-05-29 13:38:11 -03:00
github-actions[bot] 2f44cdb4bc [CI Skip] bump/beta 16.0.2-1-x
skip-checks: true
2025-05-29 15:06:05 +00:00
Arjun Porwal 4f100294c6 doc: Update README.md with metadata retrieval instructions and testing caveats (#6156) 2025-05-29 12:00:10 -03:00
github-actions[bot] d06097deed [CI Skip] bump/beta 16.0.2-0-x
skip-checks: true
2025-05-29 14:49:56 +00:00
Valentin Fernandez 676cfeb167 Update AssetHub types to 1.5.1 release (#6155)
* Update AH types

* Generate json metadata
2025-05-29 11:43:52 -03:00
95 changed files with 23569 additions and 17073 deletions
+31
View File
@@ -1,5 +1,36 @@
# CHANGELOG
## 16.2.2 Jun 17, 2025
Changes:
- feat(types-codec): Add maximum depth limit in decodeU8a functions ([#6168](https://github.com/polkadot-js/api/pull/6168))
- bump polkadotjs/common to 13.5.2 ([#6170](https://github.com/polkadot-js/api/pull/6170))
## 16.2.1 Jun 10, 2025
Contributed:
- feat(api-contract): add support for ink! v6 and pallet-revive compatibility ([#6158](https://github.com/polkadot-js/api/pull/6158))
## 16.1.2 Jun 4, 2025
Changes:
- Use ExtrinsicV4 by default ([#6164](https://github.com/polkadot-js/api/pull/6164))
## 16.1.1 May 29, 2025
Changes:
- Update AssetHub types to 1.5.1 release ([#6155](https://github.com/polkadot-js/api/pull/6155))
- fix: correct BitVec length calculation from bytes to bits in codec ([#6152](https://github.com/polkadot-js/api/pull/6152))
- Update README with metadata retrieval instructions and testing caveats ([#6156](https://github.com/polkadot-js/api/pull/6156))
- Initialize RpcCore with configured ttl ([#6160](https://github.com/polkadot-js/api/pull/6160))
## 16.0.1 May 19, 2025
Breaking Changes:
+4 -3
View File
@@ -1,9 +1,9 @@
3512 Jaco Bump deps (#5785)
164 Tarik Gul Upgrade polkadot/common to 13.5.1 (#6150)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
42 Valentin Fernandez 16.2.2 (#6171)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
34 Valentin Fernandez 16.0.1 (#6151)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
19 Xiliang Chen no warm for unknown signed extensions (#5601)
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
@@ -21,13 +21,13 @@
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
4 Alex Wang fix issue that creates duplicate providers (#983)
4 Alexander Popiak Add asset id in signing (#4009)
4 Arjun Porwal doc: Update README.md with metadata retrieval instructions and testing caveats (#6156)
4 Joshy Orndorff spelling; efect -> effect (#2295)
4 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
3 André Silva add support for ValidationCodeHash (#3640)
3 Antoine Estienne Adapted to display moonbeam author (#3108)
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
3 Arjun Porwal Upgrade Polkadot types to v1.4.0 (#6100)
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
3 hamidra add support for n key entries for NMaps (#3886)
3 Hamza Tokuchi more typos (#2532)
@@ -35,6 +35,7 @@
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
3 KarishmaBothara Backward compatibility thing (#3511)
3 Miguel Hervas Adding RT4 Types (#3007)
3 rajk93 feat(types-codec): Add maximum depth limit in `decodeU8a` functions (#6168)
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
3 YJ feat: Vote interface as U8a (#1061)
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
@@ -59,6 +60,7 @@
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
1 Alex Bean feat(api-contract): add support for ink! v6 and pallet-revive compatibility (#6158)
1 Alisher A. Khassanov Add `offchain_localStorageClear` RPC method (#6070)
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
@@ -125,7 +127,6 @@
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
1 qiuhao update DeriveCustom type (#2581)
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
1 rajk93 Update substrate types for polkadot-sdk 2503-2-rc1 (#6137)
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
1 Robert Gabriel Jakabosky Fix sorting of `Option` values and error on duplicates from BTreeSet/BTreeMap. (#5731)
1 Robert Hambrock update MMR API (#5479)
+4 -4
View File
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"versions": {
"git": "16.0.1",
"npm": "16.0.1"
"git": "16.2.2",
"npm": "16.2.2"
},
"workspaces": [
"packages/*"
@@ -40,7 +40,7 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.83.2",
"@polkadot/dev": "^0.83.3",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^22.10.5"
},
+7 -7
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "16.0.1",
"@polkadot/rpc-augment": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-augment": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/api-base": "16.2.2",
"@polkadot/rpc-augment": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-augment": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
}
}
@@ -415,6 +415,36 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
stateTrieMigration: {
/**
* Maximal number of bytes that a key can have.
*
* FRAME itself does not limit the key length.
* The concrete value must therefore depend on your storage usage.
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
*
* Use the *state migration RPC* to retrieve the length of the longest key in your
* storage: <https://github.com/paritytech/substrate/issues/11642>
*
* The migration will halt with a `Halted` event if this value is too small.
* Since there is no real penalty from over-estimating, it is advised to use a large
* value. The default is 512 byte.
*
* Some key lengths for reference:
* - [`frame_support::storage::StorageValue`]: 32 byte
* - [`frame_support::storage::StorageMap`]: 64 byte
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -1019,6 +1019,40 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
remoteProxyRelayChain: {
/**
* The local account id could not converted to the remote account id.
**/
CouldNotConvertLocalToRemoteAccountId: AugmentedError<ApiType>;
/**
* Could not find any matching proxy definition in the proof.
**/
DidNotFindMatchingProxyDefinition: AugmentedError<ApiType>;
/**
* The proxy definition could not be found in the proof.
**/
InvalidProof: AugmentedError<ApiType>;
/**
* Failed to decode the remote proxy definition from the proof.
**/
ProxyDefinitionDecodingFailed: AugmentedError<ApiType>;
/**
* Proxy proof not registered.
**/
ProxyProofNotRegistered: AugmentedError<ApiType>;
/**
* Announcement, if made at all, was made too recently.
**/
Unannounced: AugmentedError<ApiType>;
/**
* The anchor block of the remote proof is unknown.
**/
UnknownProofAnchorBlock: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
session: {
/**
* Registered duplicate key.
@@ -1045,6 +1079,42 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
stateTrieMigration: {
/**
* Bad child root provided.
**/
BadChildRoot: AugmentedError<ApiType>;
/**
* Bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
* A key was longer than the configured maximum.
*
* This means that the migration halted at the current [`Progress`] and
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
* The value should only be increased to avoid a storage migration for the currently
* stored [`crate::Progress::LastKey`].
**/
KeyTooLong: AugmentedError<ApiType>;
/**
* Max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
* submitter does not have enough funds.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Signed migration is not allowed because the maximum limit is not set yet.
**/
SignedMigrationNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
system: {
/**
* The origin filter prevent the call to be dispatched.
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime';
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -320,7 +320,7 @@ declare module '@polkadot/api-base/types/events' {
* Downward message executed with the given outcome.
* \[ id, outcome \]
**/
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV4TraitsOutcome]>;
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV5TraitsOutcome]>;
/**
* Downward message is invalid XCM.
* \[ id \]
@@ -700,25 +700,25 @@ declare module '@polkadot/api-base/types/events' {
/**
* Some assets have been claimed from an asset trap
**/
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
/**
* Some assets have been placed in an asset trap.
**/
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
/**
* Execution of an XCM message was attempted.
**/
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV4TraitsOutcome], { outcome: StagingXcmV4TraitsOutcome }>;
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV5TraitsOutcome], { outcome: StagingXcmV5TraitsOutcome }>;
/**
* Fees were paid from a location for an operation (often for using `SendXcm`).
**/
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets], { paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets }>;
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets], { paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets }>;
/**
* 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.
**/
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location> }>;
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location> }>;
/**
* 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.
@@ -728,13 +728,13 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* 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.
**/
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location> }>;
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location> }>;
/**
* 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.
@@ -744,7 +744,7 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* Query response has been received and query is removed. The registered notification has
* been dispatched and executed successfully.
@@ -776,12 +776,12 @@ declare module '@polkadot/api-base/types/events' {
* A given location which had a version change subscription was dropped owing to an error
* sending the notification to it.
**/
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError], { location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError }>;
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError], { location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError }>;
/**
* Query response has been received and is ready for taking with `take_response`. There is
* no registered notification call.
**/
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV4Response], { queryId: u64, response: StagingXcmV4Response }>;
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV5Response], { queryId: u64, response: StagingXcmV5Response }>;
/**
* Received query response has been read and removed.
**/
@@ -789,24 +789,24 @@ declare module '@polkadot/api-base/types/events' {
/**
* A XCM message was sent.
**/
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed], { origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed }>;
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], { origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed }>;
/**
* The supported version of a location has been changed. This might be through an
* automatic notification or a manual intervention.
**/
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV4Location, version: u32], { location: StagingXcmV4Location, version: u32 }>;
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV5Location, version: u32], { location: StagingXcmV5Location, version: u32 }>;
/**
* 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.
**/
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* An XCM version change notification message has been attempted to be sent.
*
* The cost of sending it (borne by the chain) is included.
**/
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* A XCM version migration finished.
**/
@@ -814,17 +814,17 @@ declare module '@polkadot/api-base/types/events' {
/**
* We have requested that a remote chain send us XCM version change notifications.
**/
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* 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.
**/
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* We have requested that a remote chain stops sending us XCM version change
* notifications.
**/
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* Generic event
**/
@@ -979,6 +979,29 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
stateTrieMigration: {
/**
* The auto migration task finished.
**/
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
/**
* Migration got halted due to an error or miss-configuration.
**/
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
**/
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
/**
* Some account got slashed by the given amount.
**/
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
system: {
/**
* `:code` was updated.
@@ -987,11 +1010,11 @@ declare module '@polkadot/api-base/types/events' {
/**
* An extrinsic failed.
**/
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo }>;
/**
* An extrinsic completed successfully.
**/
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSystemDispatchEventInfo], { dispatchInfo: FrameSystemDispatchEventInfo }>;
/**
* An account was reaped.
**/
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StagingXcmV4Location, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -576,11 +576,11 @@ declare module '@polkadot/api-base/types/storage' {
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Fungible assets which we know are locked on a remote chain.
**/
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
/**
* 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.
@@ -599,7 +599,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The Latest versions that we know various locations support.
**/
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* 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,
@@ -609,12 +609,12 @@ declare module '@polkadot/api-base/types/storage' {
/**
* All locations that we have requested version notifications from.
**/
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* 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<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Global suspension state of the XCM executor.
**/
@@ -675,6 +675,17 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
remoteProxyRelayChain: {
/**
* Stores the last [`Config::MaxStorageRootsToKeep`] block to storage root mappings of the
* target chain.
**/
blockToRoot: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
session: {
/**
* Current index of the session.
@@ -715,6 +726,31 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
*
* If set to None, then no automatic migration happens.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum limits that the signed migration could use.
*
* If not set, no signed submission is allowed.
**/
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
system: {
/**
* The full account information for a particular account ID.
@@ -131,13 +131,13 @@ declare module '@polkadot/api-base/types/calls' {
/** 0x91b1c8b16328eb92/ */
dryRunApi: {
/**
* Dry run call.
* Dry run call V2.
**/
dryRunCall: AugmentedCall<ApiType, (origin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
dryRunCall: AugmentedCall<ApiType, (origin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array, result_xcms_version: u32 | AnyNumber | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Generic call
**/
@@ -157,11 +157,11 @@ declare module '@polkadot/api-base/types/calls' {
/** 0xfbc577b9d747efd6/ */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
**/
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
/**
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
**/
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
/**
@@ -178,7 +178,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Converts `Location` to `AccountId`.
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
/**
* Generic call
**/
@@ -295,15 +295,15 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
**/
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
/**
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
/**
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
/**
* Generic call
**/
+148 -14
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
import type { Bytes, Compact, Option, 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, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletRemoteProxyRemoteProxyProof, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, StagingXcmV5Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -2209,7 +2209,7 @@ declare module '@polkadot/api-base/types/submittable' {
* was the latest when they were trapped.
* - `beneficiary`: The location/account where the claimed assets will be deposited.
**/
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
/**
* Execute an XCM message from a local, signed, origin.
*
@@ -2220,7 +2220,7 @@ declare module '@polkadot/api-base/types/submittable' {
* the maximum amount of weight that the message could take to be executed, then no
* execution attempt will be made.
**/
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [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).
@@ -2235,7 +2235,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we should subscribe for XCM version notifications.
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* Set or unset the global suspension state of the XCM executor.
*
@@ -2251,7 +2251,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `location`: The location to which we are currently subscribed for XCM version
* notifications which we no longer desire.
**/
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* Extoll that a particular destination can be communicated with through a particular
* version of XCM.
@@ -2260,7 +2260,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `location`: The destination that is being described.
* - `xcm_version`: The latest version of XCM that `location` supports.
**/
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, u32]>;
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV5Location, u32]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve.
@@ -2293,7 +2293,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Teleport some assets from the local chain to some destination chain.
*
@@ -2314,7 +2314,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve.
@@ -2347,8 +2347,8 @@ declare module '@polkadot/api-base/types/submittable' {
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
* fees.
**/
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
/**
* Teleport some assets from the local chain to some destination chain.
*
@@ -2369,7 +2369,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
* fees.
**/
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve, or through teleports.
@@ -2405,7 +2405,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Transfer assets from the local chain to the destination chain using explicit transfer
* types for assets and fees.
@@ -2456,7 +2456,7 @@ declare module '@polkadot/api-base/types/submittable' {
* transfer, which also determines what happens to the assets on the destination chain.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
/**
* Generic tx
**/
@@ -3154,6 +3154,72 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
remoteProxyRelayChain: {
/**
* Register a given remote proxy proof in the current [`dispatch_context`].
*
* The registered remote proof can then be used later in the same context to execute a
* remote proxy call. This is for example useful when having a multisig operation. The
* multisig call can use [`Self::remote_proxy_with_registered_proof`] to get an approval by
* the members of the multisig. The final execution of the multisig call should be at least
* a batch of `register_remote_proxy_proof` and the multisig call that uses
* `remote_proxy_with_registered_proof`. This way the final approver can use a recent proof
* to prove the existence of the remote proxy. Otherwise it would require the multisig
* members to approve the call in [`Config::MaxStorageRootsToKeep`] amount of time.
*
* It is supported to register multiple proofs, but the proofs need to be consumed in the
* reverse order as they were registered. Basically this means last in, first out.
*
* The [`dispatch_context`] spans the entire lifetime of a transaction and every call in
* the transaction gets access to the same context.
*
* # Example
*
* ```ignore
* batch([
* register_remote_proxy_proof,
* as_multisig(remote_proxy_with_registered_proof(transfer))
* ])
* ```
*
* As `proofs` can not be verified indefinitely (the time the storage roots are stored is
* limited) this function provides the possibility to provide a "fresh proof" at time of
* dispatch. As in the example above, this could be useful for multisig operation that
* depend on multiple members to approve a certain action, which can take multiple days.
**/
registerRemoteProxyProof: AugmentedSubmittable<(proof: PalletRemoteProxyRemoteProxyProof | { RelayChain: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletRemoteProxyRemoteProxyProof]>;
/**
* Dispatch the given `call` from an account that the sender is authorised on a remote
* chain.
*
* The dispatch origin for this call must be _Signed_.
*
* Parameters:
* - `real`: The account that the proxy will make a call on behalf of.
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
* - `proof`: The proof from the remote chain about the existence of the proxy.
**/
remoteProxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<AssetHubKusamaRuntimeProxyType> | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array, proof: PalletRemoteProxyRemoteProxyProof | { RelayChain: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<AssetHubKusamaRuntimeProxyType>, Call, PalletRemoteProxyRemoteProxyProof]>;
/**
* Dispatch the given `call` from an account that the sender is authorised on a remote
* chain.
*
* The dispatch origin for this call must be _Signed_. The difference to
* [`Self::remote_proxy`] is that the proof nees to registered before using
* [`Self::register_remote_proxy_proof`] (see for more information).
*
* Parameters:
* - `real`: The account that the proxy will make a call on behalf of.
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
**/
remoteProxyWithRegisteredProof: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<AssetHubKusamaRuntimeProxyType> | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<AssetHubKusamaRuntimeProxyType>, Call]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
session: {
/**
* Removes any session key(s) of the function caller.
@@ -3187,6 +3253,74 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
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.
**/
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<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
/**
* Control the automatic migration.
*
* The dispatch origin of this call must be [`Config::ControlOrigin`].
**/
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
/**
* 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.
**/
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [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.
**/
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, 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.
**/
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
/**
* Set the maximum limit of the signed migration.
**/
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
system: {
/**
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
@@ -3792,7 +3926,7 @@ declare module '@polkadot/api-base/types/submittable' {
* ## Complexity
* - O(1).
**/
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubKusamaRuntimeOriginCaller, Call]>;
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubKusamaRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubKusamaRuntimeOriginCaller, Call]>;
/**
* Send a batch of dispatch calls.
* Unlike `batch`, it allows errors and won't interrupt.
@@ -388,6 +388,36 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
stateTrieMigration: {
/**
* Maximal number of bytes that a key can have.
*
* FRAME itself does not limit the key length.
* The concrete value must therefore depend on your storage usage.
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
*
* Use the *state migration RPC* to retrieve the length of the longest key in your
* storage: <https://github.com/paritytech/substrate/issues/11642>
*
* The migration will halt with a `Halted` event if this value is too small.
* Since there is no real penalty from over-estimating, it is advised to use a large
* value. The default is 512 byte.
*
* Some key lengths for reference:
* - [`frame_support::storage::StorageValue`]: 32 byte
* - [`frame_support::storage::StorageMap`]: 64 byte
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
*
* For more info see
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
**/
maxKeyLen: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
@@ -1023,6 +1023,42 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
stateTrieMigration: {
/**
* Bad child root provided.
**/
BadChildRoot: AugmentedError<ApiType>;
/**
* Bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
* A key was longer than the configured maximum.
*
* This means that the migration halted at the current [`Progress`] and
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
* The value should only be increased to avoid a storage migration for the currently
* stored [`crate::Progress::LastKey`].
**/
KeyTooLong: AugmentedError<ApiType>;
/**
* Max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
* submitter does not have enough funds.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Signed migration is not allowed because the maximum limit is not set yet.
**/
SignedMigrationNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
system: {
/**
* The origin filter prevent the call to be dispatched.
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime';
import type { AssetHubPolkadotRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { AssetHubPolkadotRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -320,7 +320,7 @@ declare module '@polkadot/api-base/types/events' {
* Downward message executed with the given outcome.
* \[ id, outcome \]
**/
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV4TraitsOutcome]>;
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV5TraitsOutcome]>;
/**
* Downward message is invalid XCM.
* \[ id \]
@@ -686,25 +686,25 @@ declare module '@polkadot/api-base/types/events' {
/**
* Some assets have been claimed from an asset trap
**/
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
/**
* Some assets have been placed in an asset trap.
**/
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV4Location, assets: XcmVersionedAssets }>;
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets], { hash_: H256, origin: StagingXcmV5Location, assets: XcmVersionedAssets }>;
/**
* Execution of an XCM message was attempted.
**/
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV4TraitsOutcome], { outcome: StagingXcmV4TraitsOutcome }>;
Attempted: AugmentedEvent<ApiType, [outcome: StagingXcmV5TraitsOutcome], { outcome: StagingXcmV5TraitsOutcome }>;
/**
* Fees were paid from a location for an operation (often for using `SendXcm`).
**/
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets], { paying: StagingXcmV4Location, fees: StagingXcmV4AssetAssets }>;
FeesPaid: AugmentedEvent<ApiType, [paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets], { paying: StagingXcmV5Location, fees: StagingXcmV5AssetAssets }>;
/**
* 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.
**/
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedQuerier: StagingXcmV4Location, maybeActualQuerier: Option<StagingXcmV4Location> }>;
InvalidQuerier: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedQuerier: StagingXcmV5Location, maybeActualQuerier: Option<StagingXcmV5Location> }>;
/**
* 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.
@@ -714,13 +714,13 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* 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.
**/
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location>], { origin: StagingXcmV4Location, queryId: u64, expectedLocation: Option<StagingXcmV4Location> }>;
InvalidResponder: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location>], { origin: StagingXcmV5Location, queryId: u64, expectedLocation: Option<StagingXcmV5Location> }>;
/**
* 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.
@@ -730,7 +730,7 @@ declare module '@polkadot/api-base/types/events' {
* valid response will be dropped. Manual governance intervention is probably going to be
* needed.
**/
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* Query response has been received and query is removed. The registered notification has
* been dispatched and executed successfully.
@@ -762,12 +762,12 @@ declare module '@polkadot/api-base/types/events' {
* A given location which had a version change subscription was dropped owing to an error
* sending the notification to it.
**/
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError], { location: StagingXcmV4Location, queryId: u64, error: XcmV3TraitsError }>;
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError], { location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError }>;
/**
* Query response has been received and is ready for taking with `take_response`. There is
* no registered notification call.
**/
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV4Response], { queryId: u64, response: StagingXcmV4Response }>;
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: StagingXcmV5Response], { queryId: u64, response: StagingXcmV5Response }>;
/**
* Received query response has been read and removed.
**/
@@ -775,24 +775,24 @@ declare module '@polkadot/api-base/types/events' {
/**
* A XCM message was sent.
**/
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed], { origin: StagingXcmV4Location, destination: StagingXcmV4Location, message: StagingXcmV4Xcm, messageId: U8aFixed }>;
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], { origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed }>;
/**
* The supported version of a location has been changed. This might be through an
* automatic notification or a manual intervention.
**/
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV4Location, version: u32], { location: StagingXcmV4Location, version: u32 }>;
SupportedVersionChanged: AugmentedEvent<ApiType, [location: StagingXcmV5Location, version: u32], { location: StagingXcmV5Location, version: u32 }>;
/**
* 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.
**/
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV4Location, queryId: u64], { origin: StagingXcmV4Location, queryId: u64 }>;
UnexpectedResponse: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, queryId: u64], { origin: StagingXcmV5Location, queryId: u64 }>;
/**
* An XCM version change notification message has been attempted to be sent.
*
* The cost of sending it (borne by the chain) is included.
**/
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, result: u32, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionChangeNotified: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, result: u32, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* A XCM version migration finished.
**/
@@ -800,17 +800,17 @@ declare module '@polkadot/api-base/types/events' {
/**
* We have requested that a remote chain send us XCM version change notifications.
**/
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* 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.
**/
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* We have requested that a remote chain stops sending us XCM version change
* notifications.
**/
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed], { destination: StagingXcmV4Location, cost: StagingXcmV4AssetAssets, messageId: U8aFixed }>;
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed], { destination: StagingXcmV5Location, cost: StagingXcmV5AssetAssets, messageId: U8aFixed }>;
/**
* Generic event
**/
@@ -965,6 +965,29 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
stateTrieMigration: {
/**
* The auto migration task finished.
**/
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
/**
* Migration got halted due to an error or miss-configuration.
**/
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
**/
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
/**
* Some account got slashed by the given amount.
**/
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
system: {
/**
* `:code` was updated.
@@ -973,11 +996,11 @@ declare module '@polkadot/api-base/types/events' {
/**
* An extrinsic failed.
**/
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportDispatchDispatchInfo }>;
ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSystemDispatchEventInfo }>;
/**
* An extrinsic completed successfully.
**/
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportDispatchDispatchInfo], { dispatchInfo: FrameSupportDispatchDispatchInfo }>;
ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSystemDispatchEventInfo], { dispatchInfo: FrameSystemDispatchEventInfo }>;
/**
* An account was reaped.
**/
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StagingXcmV4Location, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -566,11 +566,11 @@ declare module '@polkadot/api-base/types/storage' {
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Fungible assets which we know are locked on a remote chain.
**/
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
/**
* 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.
@@ -589,7 +589,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* The Latest versions that we know various locations support.
**/
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* 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,
@@ -599,12 +599,12 @@ declare module '@polkadot/api-base/types/storage' {
/**
* All locations that we have requested version notifications from.
**/
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* 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<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
/**
* Global suspension state of the XCM executor.
**/
@@ -705,6 +705,31 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
*
* If set to None, then no automatic migration happens.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum limits that the signed migration could use.
*
* If not set, no signed submission is allowed.
**/
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
system: {
/**
* The full account information for a particular account ID.
@@ -131,13 +131,13 @@ declare module '@polkadot/api-base/types/calls' {
/** 0x91b1c8b16328eb92/ */
dryRunApi: {
/**
* Dry run call.
* Dry run call V2.
**/
dryRunCall: AugmentedCall<ApiType, (origin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
dryRunCall: AugmentedCall<ApiType, (origin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array, result_xcms_version: u32 | AnyNumber | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
dryRunXcm: AugmentedCall<ApiType, (origin_location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, xcm: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>>;
/**
* Generic call
**/
@@ -157,11 +157,11 @@ declare module '@polkadot/api-base/types/calls' {
/** 0xfbc577b9d747efd6/ */
genesisBuilder: {
/**
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and, puts it into the storage. If the provided JSON blob is incorrect or incomplete or the, deserialization fails, an error is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
**/
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
/**
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
**/
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
/**
@@ -178,7 +178,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Converts `Location` to `AccountId`.
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<AccountId32, XcmRuntimeApisConversionsError>>>;
/**
* Generic call
**/
@@ -295,15 +295,15 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Get delivery fees for sending a specific `message` to a `destination`., These always come in a specific asset, defined by the chain.,, # Arguments, * `message`: The message that'll be sent, necessary because most delivery fees are based on the, size of the message., * `destination`: The destination to send the message to. Different destinations may use, different senders that charge different fees.
**/
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
queryDeliveryFees: AugmentedCall<ApiType, (destination: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>>;
/**
* Converts a weight into a fee for the specified `AssetId`.,, # Arguments,, * `weight`: convertible `Weight`., * `asset`: `VersionedAssetId`.
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<u128, XcmRuntimeApisFeesError>>>;
/**
* Returns a weight needed to execute a XCM.,, # Arguments,, * `message`: `VersionedXcm`.
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>>;
/**
* Generic call
**/
+82 -14
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
import type { Bytes, Compact, Option, 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, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, StagingXcmV5Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -2164,7 +2164,7 @@ declare module '@polkadot/api-base/types/submittable' {
* was the latest when they were trapped.
* - `beneficiary`: The location/account where the claimed assets will be deposited.
**/
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
/**
* Execute an XCM message from a local, signed, origin.
*
@@ -2175,7 +2175,7 @@ declare module '@polkadot/api-base/types/submittable' {
* the maximum amount of weight that the message could take to be executed, then no
* execution attempt will be made.
**/
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, SpWeightsWeightV2Weight]>;
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [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).
@@ -2190,7 +2190,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `origin`: Must be an origin specified by AdminOrigin.
* - `location`: The location to which we should subscribe for XCM version notifications.
**/
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* Set or unset the global suspension state of the XCM executor.
*
@@ -2206,7 +2206,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `location`: The location to which we are currently subscribed for XCM version
* notifications which we no longer desire.
**/
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
/**
* Extoll that a particular destination can be communicated with through a particular
* version of XCM.
@@ -2215,7 +2215,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `location`: The destination that is being described.
* - `xcm_version`: The latest version of XCM that `location` supports.
**/
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, u32]>;
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV5Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV5Location, u32]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve.
@@ -2248,7 +2248,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Teleport some assets from the local chain to some destination chain.
*
@@ -2269,7 +2269,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve.
@@ -2302,8 +2302,8 @@ declare module '@polkadot/api-base/types/submittable' {
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
* fees.
**/
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
/**
* Teleport some assets from the local chain to some destination chain.
*
@@ -2324,7 +2324,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
* fees.
**/
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
/**
* Transfer some assets from the local chain to the destination chain through their local,
* destination or remote reserve, or through teleports.
@@ -2360,7 +2360,7 @@ declare module '@polkadot/api-base/types/submittable' {
* fees.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
/**
* Transfer assets from the local chain to the destination chain using explicit transfer
* types for assets and fees.
@@ -2411,7 +2411,7 @@ declare module '@polkadot/api-base/types/submittable' {
* transfer, which also determines what happens to the assets on the destination chain.
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
**/
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
/**
* Generic tx
**/
@@ -3142,6 +3142,74 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
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.
**/
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<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
/**
* Control the automatic migration.
*
* The dispatch origin of this call must be [`Config::ControlOrigin`].
**/
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
/**
* 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.
**/
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [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.
**/
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, 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.
**/
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
/**
* Set the maximum limit of the signed migration.
**/
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
system: {
/**
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
@@ -3747,7 +3815,7 @@ declare module '@polkadot/api-base/types/submittable' {
* ## Complexity
* - O(1).
**/
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubPolkadotRuntimeOriginCaller, Call]>;
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubPolkadotRuntimeOriginCaller, Call]>;
/**
* Send a batch of dispatch calls.
* Unlike `batch`, it allows errors and won't interrupt.
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '16.2.2' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/rpc-core": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/util": "^13.5.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '16.2.2' };
+11 -11
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/api": "16.0.1",
"@polkadot/api-augment": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/types-create": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/api": "16.2.2",
"@polkadot/api-augment": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/types-create": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api-augment": "16.0.1",
"@polkadot/keyring": "^13.5.1",
"@polkadot/types-support": "16.0.1"
"@polkadot/api-augment": "16.2.2",
"@polkadot/keyring": "^13.5.2",
"@polkadot/types-support": "16.2.2"
}
}
+27 -7
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { Bytes, Vec } from '@polkadot/types';
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventParamSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataV4, ContractMetadataV5, ContractProjectInfo, ContractTypeSpec, EventRecord } from '@polkadot/types/interfaces';
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventParamSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataV4, ContractMetadataV5, ContractMetadataV6, ContractProjectInfo, ContractTypeSpec, EventRecord } from '@polkadot/types/interfaces';
import type { Codec, Registry, TypeDef } from '@polkadot/types/types';
import type { AbiConstructor, AbiEvent, AbiEventParam, AbiMessage, AbiMessageParam, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
@@ -19,12 +19,12 @@ interface AbiJson {
}
type EventOf<M> = M extends {spec: { events: Vec<infer E>}} ? E : never
export type ContractMetadataSupported = ContractMetadataV4 | ContractMetadataV5;
export type ContractMetadataSupported = ContractMetadataV4 | ContractMetadataV5 | ContractMetadataV6;
type ContractEventSupported = EventOf<ContractMetadataSupported>;
const l = logger('Abi');
const PRIMITIVE_ALWAYS = ['AccountId', 'AccountIndex', 'Address', 'Balance'];
const PRIMITIVE_ALWAYS = ['AccountId', 'AccountId20', 'AccountIndex', 'Address', 'Balance'];
function findMessage <T extends AbiMessage> (list: T[], messageOrId: T | string | number): T {
const message = isNumber(messageOrId)
@@ -66,9 +66,28 @@ function getMetadata (registry: Registry, json: AbiJson): ContractMetadataSuppor
return upgradedMetadata;
}
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataSupported, ContractProjectInfo] {
function isRevive (json: Record<string, unknown>): boolean {
const source = json['source'];
const version = json['version'];
const hasContractBinary =
typeof source === 'object' &&
source !== null &&
'contract_binary' in source;
const hasVersion =
typeof version === 'number' && version >= 6;
return hasContractBinary || hasVersion;
}
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataSupported, ContractProjectInfo, boolean] {
const registry = new TypeRegistry();
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
const revive = isRevive(json);
const typeName = revive ? 'ContractReviveProjectInfo' : 'ContractProjectInfo';
const info = registry.createType(typeName, json) as unknown as ContractProjectInfo;
const metadata = getMetadata(registry, json as unknown as AbiJson);
const lookup = registry.createType('PortableRegistry', { types: metadata.types }, true);
@@ -84,7 +103,7 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
lookup.getTypeDef(id)
);
return [json, registry, metadata, info];
return [json, registry, metadata, info, revive];
}
/**
@@ -112,9 +131,10 @@ export class Abi {
readonly metadata: ContractMetadataSupported;
readonly registry: Registry;
readonly environment = new Map<string, TypeDef | Codec>();
readonly isRevive: boolean;
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
[this.json, this.registry, this.metadata, this.info] = parseJson(
[this.json, this.registry, this.metadata, this.info, this.isRevive] = parseJson(
isString(abiJson)
? JSON.parse(abiJson) as Record<string, unknown>
: abiJson,
@@ -6,7 +6,7 @@
import { TypeRegistry } from '@polkadot/types';
import abis from '../test/contracts/index.js';
import { v0ToLatestCompatible, v1ToLatestCompatible, v2ToLatestCompatible, v3ToLatestCompatible, v4ToLatestCompatible, v5ToLatestCompatible } from './toLatestCompatible.js';
import { v0ToLatestCompatible, v1ToLatestCompatible, v2ToLatestCompatible, v3ToLatestCompatible, v4ToLatestCompatible, v5ToLatestCompatible, v6ToLatestCompatible } from './toLatestCompatible.js';
describe('v0ToLatestCompatible', (): void => {
const registry = new TypeRegistry();
@@ -191,3 +191,29 @@ describe('v5ToLatestCompatible', (): void => {
expect(latest.version.toString()).toEqual('5');
});
});
describe('v6ToLatestCompatible', (): void => {
const registry = new TypeRegistry();
const contract = registry.createType('ContractMetadata', { V6: abis['ink_v6_erc20Metadata'] });
const latest = v6ToLatestCompatible(registry, contract.asV6);
it('has the correct messages', (): void => {
expect(
latest.spec.messages.map(({ label }) => label.toString())
).toEqual(['total_supply', 'balance_of', 'allowance', 'transfer', 'approve', 'transfer_from']);
});
it('has H160 as the type of balance_of argument', (): void => {
const arg = latest.spec.messages.find(
(m) => m.label.toString() === 'balance_of'
)?.args[0];
const name = arg?.type.displayName?.[0]?.toString();
expect(name).toBe('H160');
});
it('has the latest compatible version number', (): void => {
expect(latest.version.toString()).toEqual('6');
});
});
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ContractMetadataV4, ContractMetadataV5 } from '@polkadot/types/interfaces';
import type { ContractMetadataV4, ContractMetadataV5, ContractMetadataV6 } from '@polkadot/types/interfaces';
import type { Registry } from '@polkadot/types/types';
import type { ContractMetadataSupported } from './index.js';
@@ -12,7 +12,7 @@ import { v3ToV4 } from './toV4.js';
// The versions where an enum is used, aka V0 is missing
// (Order from newest, i.e. we expect more on newest vs oldest)
export const enumVersions = ['V5', 'V4', 'V3', 'V2', 'V1'] as const;
export const enumVersions = ['V6', 'V5', 'V4', 'V3', 'V2', 'V1'] as const;
type Versions = typeof enumVersions[number] | 'V0';
@@ -24,6 +24,10 @@ function createConverter <I, O> (next: (registry: Registry, input: O) => Contrac
next(registry, step(registry, input));
}
export function v6ToLatestCompatible (_registry: Registry, v6: ContractMetadataV6): ContractMetadataV6 {
return v6;
}
export function v5ToLatestCompatible (_registry: Registry, v5: ContractMetadataV5): ContractMetadataV5 {
return v5;
}
@@ -38,6 +42,7 @@ export const v1ToLatestCompatible = /*#__PURE__*/ createConverter(v2ToLatestComp
export const v0ToLatestCompatible = /*#__PURE__*/ createConverter(v1ToLatestCompatible, v0ToV1);
export const convertVersions: [Versions, Converter][] = [
['V6', v6ToLatestCompatible],
['V5', v5ToLatestCompatible],
['V4', v4ToLatestCompatible],
['V3', v3ToLatestCompatible],
+16 -4
View File
@@ -16,14 +16,11 @@ export abstract class Base<ApiType extends ApiTypes> {
protected readonly _decorateMethod: DecorateMethod<ApiType>;
protected readonly _isWeightV1: boolean;
protected readonly _isRevive: boolean;
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
if (!api || !api.isConnected || !api.tx) {
throw new Error('Your API has not been initialized correctly and is not connected to a chain');
} else if (!api.tx.contracts || !isFunction(api.tx.contracts.instantiateWithCode) || api.tx.contracts.instantiateWithCode.meta.args.length !== 6) {
throw new Error('The runtime does not expose api.tx.contracts.instantiateWithCode with storageDepositLimit');
} else if (!api.call.contractsApi || !isFunction(api.call.contractsApi.call)) {
throw new Error('Your runtime does not expose the api.call.contractsApi.call runtime interfaces');
}
this.abi = abi instanceof Abi
@@ -32,6 +29,21 @@ export abstract class Base<ApiType extends ApiTypes> {
this.api = api;
this._decorateMethod = decorateMethod;
this._isWeightV1 = !api.registry.createType<WeightV2>('Weight').proofSize;
this._isRevive = this.abi.isRevive;
if (this._isRevive) {
if (!api.tx.revive || !isFunction(api.tx.revive.instantiateWithCode) || api.tx.revive.instantiateWithCode.meta.args.length !== 6) {
throw new Error('The runtime does not expose api.tx.revive.instantiateWithCode with storageDepositLimit');
} else if (!api.call.reviveApi || !isFunction(api.call.reviveApi.call)) {
throw new Error('Your runtime does not expose the api.call.reviveApi.call runtime interfaces');
}
} else {
if (!api.tx.contracts || !isFunction(api.tx.contracts.instantiateWithCode) || api.tx.contracts.instantiateWithCode.meta.args.length !== 6) {
throw new Error('The runtime does not expose api.tx.contracts.instantiateWithCode with storageDepositLimit');
} else if (!api.call.contractsApi || !isFunction(api.call.contractsApi.call)) {
throw new Error('Your runtime does not expose the api.call.contractsApi.call runtime interfaces');
}
}
}
public get registry (): Registry {
+22 -4
View File
@@ -55,7 +55,11 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
}
#deploy = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, BlueprintSubmittableResult<ApiType>> => {
return this.api.tx.contracts.instantiate(
const palletTx = this._isRevive
? this.api.tx.revive
: this.api.tx.contracts;
return palletTx.instantiate(
value,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore jiggle v1 weights, metadata points to latest
@@ -67,9 +71,23 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
this.abi.findConstructor(constructorOrId).toU8a(params),
encodeSalt(salt)
).withResultTransform((result: ISubmittableResult) =>
new BlueprintSubmittableResult(result, applyOnEvent(result, ['Instantiated'], ([record]: EventRecord[]) =>
new Contract<ApiType>(this.api, this.abi, record.event.data[1] as AccountId, this._decorateMethod)
))
new BlueprintSubmittableResult(result,
this._isRevive
? (
(result.status.isInBlock || result.status.isFinalized)
? new Contract<ApiType>(
this.api,
this.abi,
// your fixed address for revive deployments
this.registry.createType('AccountId', '0x'),
this._decorateMethod
)
: undefined
)
: applyOnEvent(result, ['Instantiated'], ([record]: EventRecord[]) =>
new Contract<ApiType>(this.api, this.abi, record.event.data[1] as AccountId, this._decorateMethod)
)
)
);
};
}
+12 -1
View File
@@ -10,8 +10,9 @@ import { toPromiseMethod } from '@polkadot/api';
import v0contractFlipper from '../test/contracts/ink/v0/flipper.contract.json' assert { type: 'json' };
import v0abiFlipper from '../test/contracts/ink/v0/flipper.json' assert { type: 'json' };
import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' assert { type: 'json' };
import v6contractErc20 from '../test/contracts/ink/v6/erc20.contract.json' assert { type: 'json' };
import { Code } from './Code.js';
import { mockApi } from './mock.js';
import { mockApi, mockReviveApi } from './mock.js';
const v0wasmFlipper = fs.readFileSync(new URL('../test/contracts/ink/v0/flipper.wasm', import.meta.url), 'utf-8');
@@ -33,4 +34,14 @@ describe('Code', (): void => {
() => new Code(mockApi, v1contractFlipper as Record<string, unknown>, null, toPromiseMethod)
).not.toThrow();
});
it('can construct a revive compatible contract (v6)', (): void => {
expect(
() => new Code(mockApi, v6contractErc20 as Record<string, unknown>, null, toPromiseMethod)
).toThrow('The runtime does not expose api.tx.revive.instantiateWithCode with storageDepositLimit');
expect(
() => new Code(mockReviveApi, v6contractErc20 as Record<string, unknown>, null, toPromiseMethod)
).not.toThrow();
});
});
+24 -1
View File
@@ -68,7 +68,30 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
}
#instantiate = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
return this.api.tx.contracts.instantiateWithCode(
const palletTx = this._isRevive ? this.api.tx.revive : this.api.tx.contracts;
if (this._isRevive) {
return palletTx.instantiateWithCode(
value,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore jiggle v1 weights, metadata points to latest
this._isWeightV1
? convertWeight(gasLimit).v1Weight
: convertWeight(gasLimit).v2Weight,
storageDepositLimit,
compactAddLength(this.code),
this.abi.findConstructor(constructorOrId).toU8a(params),
encodeSalt(salt)
).withResultTransform((result: ISubmittableResult) =>
new CodeSubmittableResult(
result,
new Blueprint<ApiType>(this.api, this.abi, this.abi.info.source.hash, this._decorateMethod),
new Contract<ApiType>(this.api, this.abi, '0x', this._decorateMethod)
)
);
}
return palletTx.instantiateWithCode(
value,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore jiggle v1 weights, metadata points to latest
+10 -6
View File
@@ -4,7 +4,7 @@
import type { ApiBase } from '@polkadot/api/base';
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
import type { AccountId, AccountId20, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
import type { ISubmittableResult } from '@polkadot/types/types';
import type { Abi } from '../Abi/index.js';
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types.js';
@@ -52,15 +52,15 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
/**
* @description The on-chain address for this contract
*/
readonly address: AccountId;
readonly address: AccountId | AccountId20;
readonly #query: MapMessageQuery<ApiType> = {};
readonly #tx: MapMessageTx<ApiType> = {};
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId, decorateMethod: DecorateMethod<ApiType>) {
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId | AccountId20, decorateMethod: DecorateMethod<ApiType>) {
super(api, abi, decorateMethod);
this.address = this.registry.createType('AccountId', address);
this.address = this.registry.createType(this._isRevive ? 'AccountId20' : 'AccountId', address);
this.abi.messages.forEach((m): void => {
if (isUndefined(this.#tx[m.method])) {
@@ -100,7 +100,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
};
#exec = (messageOrId: AbiMessage | string | number, { gasLimit = BN_ZERO, storageDepositLimit = null, value = BN_ZERO }: ContractOptions, params: unknown[]): SubmittableExtrinsic<ApiType> => {
return this.api.tx.contracts.call(
const palletTx = this._isRevive ? this.api.tx.revive : this.api.tx.contracts;
return palletTx.call(
this.address,
value,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -134,7 +136,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
return {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
send: this._decorateMethod((origin: string | AccountId | Uint8Array) =>
this.api.rx.call.contractsApi.call<ContractExecResult>(
(this._isRevive
? this.api.rx.call.reviveApi.call
: this.api.rx.call.contractsApi.call)<ContractExecResult>(
origin,
this.address,
value,
+17
View File
@@ -29,3 +29,20 @@ export const mockApi = {
}
}
} as unknown as ApiBase<'promise'>;
export const mockReviveApi = {
call: {
reviveApi: {
call: (): never => {
throw new Error('mock');
}
}
},
isConnected: true,
registry,
tx: {
revive: {
instantiateWithCode
}
}
} as unknown as ApiBase<'promise'>;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '16.2.2' };
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { ApiPromise } from '@polkadot/api';
import type { AccountId, Hash } from '@polkadot/types/interfaces';
import type { AccountId, AccountId20, Hash } from '@polkadot/types/interfaces';
import type { Abi } from '../Abi/index.js';
import { toPromiseMethod } from '@polkadot/api';
@@ -22,7 +22,7 @@ export class CodePromise extends Code<'promise'> {
}
export class ContractPromise extends Contract<'promise'> {
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, address: string | AccountId) {
constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, address: string | AccountId | AccountId20) {
super(api, abi, address, toPromiseMethod);
}
}
@@ -0,0 +1,418 @@
[
{
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"docs": [],
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256"
},
{
"info": "VecFixed",
"lookupIndex": 1,
"type": "[u64;4]",
"docs": [],
"namespace": "",
"length": 4,
"sub": {
"info": "Plain",
"lookupIndex": 2,
"type": "u64",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 2,
"type": "u64",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 3,
"type": "Null",
"docs": [],
"namespace": "ink_storage::lazy::mapping::Mapping"
},
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
},
{
"info": "VecFixed",
"lookupIndex": 5,
"type": "[u8;20]",
"docs": [],
"namespace": "",
"length": 20,
"sub": {
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 7,
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ResolverKey"
},
{
"info": "Null",
"lookupIndex": 8,
"lookupName": "InkStorageTraitsImplsAutoKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::AutoKey"
},
{
"info": "Null",
"lookupIndex": 9,
"lookupName": "InkStorageTraitsImplsManualKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ManualKey"
},
{
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 11,
"lookupName": "InkStorageLazyMapping",
"type": "Null",
"docs": [],
"namespace": "ink_storage::lazy::mapping::Mapping"
},
{
"info": "Tuple",
"lookupIndex": 12,
"type": "(H160,H160)",
"docs": [],
"namespace": "",
"sub": [
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
},
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
}
]
},
{
"info": "Null",
"lookupIndex": 13,
"lookupName": "InkStorageTraitsImplsResolverKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ResolverKey"
},
{
"info": "Null",
"lookupIndex": 14,
"lookupName": "InkStorageTraitsImplsManualKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ManualKey"
},
{
"info": "Struct",
"lookupIndex": 15,
"lookupName": "Erc20",
"type": "{\"totalSupply\":\"U256\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
"docs": [],
"namespace": "erc20::erc20::Erc20",
"sub": [
{
"docs": [],
"name": "totalSupply",
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256",
"typeName": ""
},
{
"docs": [],
"name": "balances",
"info": "Null",
"lookupIndex": 3,
"type": "Null",
"namespace": "ink_storage::lazy::mapping::Mapping",
"typeName": ""
},
{
"docs": [],
"name": "allowances",
"info": "Null",
"lookupIndex": 11,
"lookupName": "InkStorageLazyMapping",
"type": "Null",
"namespace": "ink_storage::lazy::mapping::Mapping",
"typeName": ""
}
]
},
{
"info": "Result",
"lookupIndex": 16,
"type": "Result<Null, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Enum",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
"docs": [],
"namespace": "ink_primitives::LangError",
"sub": [
{
"index": 0,
"info": "Null",
"name": "__Unused0",
"type": "Null"
},
{
"info": "Null",
"type": "Null",
"index": 1,
"name": "CouldNotReadInput"
}
]
},
{
"info": "Result",
"lookupIndex": 18,
"type": "Result<U256, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"docs": [],
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256"
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Result",
"lookupIndex": 19,
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Result",
"lookupIndex": 20,
"type": "Result<Null, Erc20Error>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "Lookup21"
}
]
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Result",
"lookupIndex": 20,
"type": "Result<Null, Erc20Error>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "Lookup21"
}
]
},
{
"info": "Enum",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
"docs": [],
"namespace": "erc20::erc20::Error",
"sub": [
{
"info": "Null",
"type": "Null",
"index": 0,
"name": "InsufficientBalance"
},
{
"info": "Null",
"type": "Null",
"index": 1,
"name": "InsufficientAllowance"
}
]
},
{
"info": "Option",
"lookupIndex": 22,
"type": "Option<H160>",
"docs": [],
"namespace": "Option",
"sub": {
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
}
},
{
"info": "Plain",
"lookupIndex": 23,
"type": "AccountId",
"docs": [],
"namespace": "ink_primitives::types::AccountId",
"lookupNameRoot": "InkPrimitivesAccountId"
},
{
"info": "VecFixed",
"lookupIndex": 24,
"type": "[u8;32]",
"docs": [],
"namespace": "",
"length": 32,
"sub": {
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 25,
"type": "u128",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 26,
"type": "Hash",
"docs": [],
"namespace": "ink_primitives::types::Hash",
"lookupNameRoot": "InkPrimitivesHash"
},
{
"info": "Plain",
"lookupIndex": 27,
"type": "u32",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 28,
"type": "NoChainExtension",
"docs": [],
"namespace": "ink_primitives::types::NoChainExtension",
"lookupNameRoot": "InkPrimitivesNoChainExtension"
}
]
@@ -0,0 +1,418 @@
[
{
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"docs": [],
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256"
},
{
"info": "VecFixed",
"lookupIndex": 1,
"type": "[u64;4]",
"docs": [],
"namespace": "",
"length": 4,
"sub": {
"info": "Plain",
"lookupIndex": 2,
"type": "u64",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 2,
"type": "u64",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 3,
"type": "Null",
"docs": [],
"namespace": "ink_storage::lazy::mapping::Mapping"
},
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
},
{
"info": "VecFixed",
"lookupIndex": 5,
"type": "[u8;20]",
"docs": [],
"namespace": "",
"length": 20,
"sub": {
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 7,
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ResolverKey"
},
{
"info": "Null",
"lookupIndex": 8,
"lookupName": "InkStorageTraitsImplsAutoKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::AutoKey"
},
{
"info": "Null",
"lookupIndex": 9,
"lookupName": "InkStorageTraitsImplsManualKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ManualKey"
},
{
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"info": "Null",
"lookupIndex": 11,
"lookupName": "InkStorageLazyMapping",
"type": "Null",
"docs": [],
"namespace": "ink_storage::lazy::mapping::Mapping"
},
{
"info": "Tuple",
"lookupIndex": 12,
"type": "(H160,H160)",
"docs": [],
"namespace": "",
"sub": [
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
},
{
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
}
]
},
{
"info": "Null",
"lookupIndex": 13,
"lookupName": "InkStorageTraitsImplsResolverKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ResolverKey"
},
{
"info": "Null",
"lookupIndex": 14,
"lookupName": "InkStorageTraitsImplsManualKey",
"type": "Null",
"docs": [],
"namespace": "ink_storage_traits::impls::ManualKey"
},
{
"info": "Struct",
"lookupIndex": 15,
"lookupName": "Erc20",
"type": "{\"totalSupply\":\"U256\",\"balances\":\"Null\",\"allowances\":\"InkStorageLazyMapping\"}",
"docs": [],
"namespace": "erc20::erc20::Erc20",
"sub": [
{
"docs": [],
"name": "totalSupply",
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256",
"typeName": ""
},
{
"docs": [],
"name": "balances",
"info": "Null",
"lookupIndex": 3,
"type": "Null",
"namespace": "ink_storage::lazy::mapping::Mapping",
"typeName": ""
},
{
"docs": [],
"name": "allowances",
"info": "Null",
"lookupIndex": 11,
"lookupName": "InkStorageLazyMapping",
"type": "Null",
"namespace": "ink_storage::lazy::mapping::Mapping",
"typeName": ""
}
]
},
{
"info": "Result",
"lookupIndex": 16,
"type": "Result<Null, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Enum",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
"docs": [],
"namespace": "ink_primitives::LangError",
"sub": [
{
"index": 0,
"info": "Null",
"name": "__Unused0",
"type": "Null"
},
{
"info": "Null",
"type": "Null",
"index": 1,
"name": "CouldNotReadInput"
}
]
},
{
"info": "Result",
"lookupIndex": 18,
"type": "Result<U256, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Plain",
"lookupIndex": 0,
"type": "U256",
"docs": [],
"namespace": "primitive_types::U256",
"lookupNameRoot": "PrimitiveTypesU256"
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Result",
"lookupIndex": 19,
"type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Result",
"lookupIndex": 20,
"type": "Result<Null, Erc20Error>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "Lookup21"
}
]
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 17,
"lookupName": "InkPrimitivesLangError",
"type": "Lookup17"
}
]
},
{
"info": "Result",
"lookupIndex": 20,
"type": "Result<Null, Erc20Error>",
"docs": [],
"namespace": "Result",
"sub": [
{
"name": "Ok",
"info": "Null",
"lookupIndex": 10,
"type": "Null",
"docs": [],
"namespace": ""
},
{
"name": "Error",
"docs": [],
"info": "Si",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "Lookup21"
}
]
},
{
"info": "Enum",
"lookupIndex": 21,
"lookupName": "Erc20Error",
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
"docs": [],
"namespace": "erc20::erc20::Error",
"sub": [
{
"info": "Null",
"type": "Null",
"index": 0,
"name": "InsufficientBalance"
},
{
"info": "Null",
"type": "Null",
"index": 1,
"name": "InsufficientAllowance"
}
]
},
{
"info": "Option",
"lookupIndex": 22,
"type": "Option<H160>",
"docs": [],
"namespace": "Option",
"sub": {
"info": "Plain",
"lookupIndex": 4,
"type": "H160",
"docs": [],
"namespace": "primitive_types::H160",
"lookupNameRoot": "PrimitiveTypesH160"
}
},
{
"info": "Plain",
"lookupIndex": 23,
"type": "AccountId",
"docs": [],
"namespace": "ink_primitives::types::AccountId",
"lookupNameRoot": "InkPrimitivesAccountId"
},
{
"info": "VecFixed",
"lookupIndex": 24,
"type": "[u8;32]",
"docs": [],
"namespace": "",
"length": 32,
"sub": {
"info": "Plain",
"lookupIndex": 6,
"type": "u8",
"docs": [],
"namespace": ""
}
},
{
"info": "Plain",
"lookupIndex": 25,
"type": "u128",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 26,
"type": "Hash",
"docs": [],
"namespace": "ink_primitives::types::Hash",
"lookupNameRoot": "InkPrimitivesHash"
},
{
"info": "Plain",
"lookupIndex": 27,
"type": "u32",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 28,
"type": "NoChainExtension",
"docs": [],
"namespace": "ink_primitives::types::NoChainExtension",
"lookupNameRoot": "InkPrimitivesNoChainExtension"
}
]
@@ -8,5 +8,6 @@ import * as v2 from './v2/index.js';
import * as v3 from './v3/index.js';
import * as v4 from './v4/index.js';
import * as v5 from './v5/index.js';
import * as v6 from './v6/index.js';
export default createVersionedExport({ v0, v1, v2, v3, v4, v5 });
export default createVersionedExport({ v0, v1, v2, v3, v4, v5, v6 });
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
// Copyright 2017-2025 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
+14 -14
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/api": "16.0.1",
"@polkadot/api-augment": "16.0.1",
"@polkadot/api-base": "16.0.1",
"@polkadot/rpc-core": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/api": "16.2.2",
"@polkadot/api-augment": "16.2.2",
"@polkadot/api-base": "16.2.2",
"@polkadot/rpc-core": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api": "16.0.1",
"@polkadot/api-augment": "16.0.1",
"@polkadot/rpc-augment": "16.0.1",
"@polkadot/rpc-provider": "16.0.1",
"@polkadot/types-support": "16.0.1"
"@polkadot/api": "16.2.2",
"@polkadot/api-augment": "16.2.2",
"@polkadot/rpc-augment": "16.2.2",
"@polkadot/rpc-provider": "16.2.2",
"@polkadot/types-support": "16.2.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '16.2.2' };
+17 -17
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "16.0.1",
"@polkadot/api-base": "16.0.1",
"@polkadot/api-derive": "16.0.1",
"@polkadot/keyring": "^13.5.1",
"@polkadot/rpc-augment": "16.0.1",
"@polkadot/rpc-core": "16.0.1",
"@polkadot/rpc-provider": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-augment": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/types-create": "16.0.1",
"@polkadot/types-known": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/api-augment": "16.2.2",
"@polkadot/api-base": "16.2.2",
"@polkadot/api-derive": "16.2.2",
"@polkadot/keyring": "^13.5.2",
"@polkadot/rpc-augment": "16.2.2",
"@polkadot/rpc-core": "16.2.2",
"@polkadot/rpc-provider": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-augment": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/types-create": "16.2.2",
"@polkadot/types-known": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api-augment": "16.0.1",
"@polkadot/types-support": "16.0.1"
"@polkadot/api-augment": "16.2.2",
"@polkadot/types-support": "16.2.2"
}
}
+1
View File
@@ -154,6 +154,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
isPedantic: this._options.isPedantic,
provider,
rpcCacheCapacity: this._options.rpcCacheCapacity,
ttl: this._options.provider?.ttl,
userRpc: this._options.rpc
}) as (RpcCore & RpcInterface);
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected);
+2 -1
View File
@@ -374,7 +374,8 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
throw new Error('Invalid initializion order, runtimeVersion is not available');
}
this._extrinsicType = metadata.asLatest.extrinsic.versions.at(-1) || LATEST_EXTRINSIC_VERSION;
// ExtrinsicV5 is not fully supported yet, for that reason we default to version 4
this._extrinsicType = metadata.asLatest.extrinsic.versions.at(0) || LATEST_EXTRINSIC_VERSION;
this._rx.extrinsicType = this._extrinsicType;
this._rx.genesisHash = this._genesisHash;
this._rx.runtimeVersion = runtimeVersion;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '16.2.2' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/rpc-core": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '16.2.2' };
+7 -7
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "16.0.1",
"@polkadot/rpc-provider": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/rpc-augment": "16.2.2",
"@polkadot/rpc-provider": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/util": "^13.5.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/keyring": "^13.5.1",
"@polkadot/rpc-augment": "16.0.1"
"@polkadot/keyring": "^13.5.2",
"@polkadot/rpc-augment": "16.2.2"
}
}
+3 -2
View File
@@ -37,6 +37,7 @@ interface Options {
* Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
*/
rpcCacheCapacity?: number;
ttl?: number | null;
userRpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
}
@@ -117,7 +118,7 @@ export class RpcCore {
* @param {ProviderInterface} options.provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
* @param {number} [options.rpcCacheCapacity] Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
*/
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, rpcCacheCapacity, userRpc = {} }: Options) {
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, rpcCacheCapacity, ttl, userRpc = {} }: Options) {
if (!provider || !isFunction(provider.send)) {
throw new Error('Expected Provider to API create');
}
@@ -131,7 +132,7 @@ export class RpcCore {
// these are the base keys (i.e. part of jsonrpc)
this.sections.push(...sectionNames);
this.#storageCache = new LRUCache(rpcCacheCapacity || RPC_CORE_DEFAULT_CAPACITY);
this.#storageCache = new LRUCache(rpcCacheCapacity || RPC_CORE_DEFAULT_CAPACITY, ttl);
// decorate all interfaces, defined and user on this instance
this.addUserInterfaces(userRpc);
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '16.2.2' };
+9 -9
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.5.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-support": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/x-fetch": "^13.5.1",
"@polkadot/x-global": "^13.5.1",
"@polkadot/x-ws": "^13.5.1",
"@polkadot/keyring": "^13.5.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-support": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"@polkadot/x-fetch": "^13.5.2",
"@polkadot/x-global": "^13.5.2",
"@polkadot/x-ws": "^13.5.2",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1",
"nock": "^13.5.5",
+14 -2
View File
@@ -42,6 +42,7 @@ export class HttpProvider implements ProviderInterface {
readonly #endpoint: string;
readonly #headers: Record<string, string>;
readonly #stats: ProviderStats;
readonly #ttl: number | null | undefined;
/**
* @param {string} endpoint The endpoint url starting with http://
@@ -49,7 +50,7 @@ export class HttpProvider implements ProviderInterface {
* @param {number} [cacheCapacity] Custom size of the HttpProvider LRUCache. Defaults to `DEFAULT_CAPACITY` (1024)
* @param {number} [cacheTtl] Custom TTL of the HttpProvider LRUCache. Determines how long an object can live in the cache. Defaults to `DEFAULT_TTL` (30000)
*/
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}, cacheCapacity?: number, cacheTtl?: number) {
constructor (endpoint: string = defaults.HTTP_URL, headers: Record<string, string> = {}, cacheCapacity?: number, cacheTtl?: number | null) {
if (!/^(https|http):\/\//.test(endpoint)) {
throw new Error(`Endpoint should start with 'http://' or 'https://', received '${endpoint}'`);
}
@@ -57,9 +58,13 @@ export class HttpProvider implements ProviderInterface {
this.#coder = new RpcCoder();
this.#endpoint = endpoint;
this.#headers = headers;
this.#callCache = new LRUCache(cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY, cacheTtl || DEFAULT_TTL);
this.#cacheCapacity = cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY;
const ttl = cacheTtl === undefined ? DEFAULT_TTL : cacheTtl;
this.#callCache = new LRUCache(cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY, ttl);
this.#ttl = cacheTtl;
this.#stats = {
active: { requests: 0, subscriptions: 0 },
total: { bytesRecv: 0, bytesSent: 0, cached: 0, errors: 0, requests: 0, subscriptions: 0, timeout: 0 }
@@ -101,6 +106,13 @@ export class HttpProvider implements ProviderInterface {
return this.#stats;
}
/**
* @description Returns the connection stats
*/
public get ttl (): number | null | undefined {
return this.#ttl;
}
/**
* @summary `true` when this provider supports clone()
*/
+8 -4
View File
@@ -8,6 +8,10 @@
export const DEFAULT_CAPACITY = 1024;
export const DEFAULT_TTL = 30000;
// If the user decides to disable the TTL we set the value
// to a very high number (A year = 365 * 24 * 60 * 60 * 1000).
const DISABLED_TTL = 31_536_000_000;
class LRUNode {
readonly key: string;
#expires: number;
@@ -47,13 +51,13 @@ export class LRUCache {
readonly #ttl: number;
constructor (capacity = DEFAULT_CAPACITY, ttl = DEFAULT_TTL) {
constructor (capacity = DEFAULT_CAPACITY, ttl: number | null = DEFAULT_TTL) {
this.capacity = capacity;
this.#ttl = ttl;
this.#head = this.#tail = new LRUNode('<empty>', ttl);
ttl ? this.#ttl = ttl : this.#ttl = DISABLED_TTL;
this.#head = this.#tail = new LRUNode('<empty>', this.#ttl);
}
get ttl (): number {
get ttl (): number | null {
return this.#ttl;
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '16.2.2' };
+2
View File
@@ -57,6 +57,8 @@ export interface ProviderInterface {
readonly isConnected: boolean;
/** (optional) stats for the provider with connections/bytes */
readonly stats?: ProviderStats;
/** (optional) stats for the provider with connections/bytes */
readonly ttl?: number | null;
clone (): ProviderInterface;
connect (): Promise<void>;
+13 -2
View File
@@ -94,6 +94,7 @@ export class WsProvider implements ProviderInterface {
readonly #stats: ProviderStats;
readonly #waitingForId: Record<string, JsonRpcResponse<unknown>> = {};
readonly #cacheCapacity: number;
readonly #ttl: number | null | undefined;
#autoConnectMs: number;
#endpointIndex: number;
@@ -112,7 +113,7 @@ export class WsProvider implements ProviderInterface {
* @param {number} [cacheCapacity] Custom size of the WsProvider LRUCache. Defaults to `DEFAULT_CAPACITY` (1024)
* @param {number} [cacheTtl] Custom TTL of the WsProvider LRUCache. Determines how long an object can live in the cache. Defaults to DEFAULT_TTL` (30000)
*/
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number, cacheCapacity?: number, cacheTtl?: number) {
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number, cacheCapacity?: number, cacheTtl?: number | null) {
const endpoints = Array.isArray(endpoint)
? endpoint
: [endpoint];
@@ -126,7 +127,10 @@ export class WsProvider implements ProviderInterface {
throw new Error(`Endpoint should start with 'ws://', received '${endpoint}'`);
}
});
this.#callCache = new LRUCache(cacheCapacity || DEFAULT_CAPACITY, cacheTtl || DEFAULT_TTL);
const ttl = cacheTtl === undefined ? DEFAULT_TTL : cacheTtl;
this.#callCache = new LRUCache(cacheCapacity === 0 ? 0 : cacheCapacity || DEFAULT_CAPACITY, ttl);
this.#ttl = cacheTtl;
this.#cacheCapacity = cacheCapacity || DEFAULT_CAPACITY;
this.#eventemitter = new EventEmitter();
this.#autoConnectMs = autoConnectMs || 0;
@@ -288,6 +292,13 @@ export class WsProvider implements ProviderInterface {
};
}
/**
* @description Returns the connection stats
*/
public get ttl (): number | null | undefined {
return this.#ttl;
}
public get endpointStats (): EndpointStats {
return this.#endpointStats;
}
+14 -14
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,19 +28,19 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "16.0.1",
"@polkadot/api-augment": "16.0.1",
"@polkadot/api-derive": "16.0.1",
"@polkadot/rpc-augment": "16.0.1",
"@polkadot/rpc-provider": "16.0.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-augment": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/types-create": "16.0.1",
"@polkadot/types-support": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/x-ws": "^13.5.1",
"@polkadot/api": "16.2.2",
"@polkadot/api-augment": "16.2.2",
"@polkadot/api-derive": "16.2.2",
"@polkadot/rpc-augment": "16.2.2",
"@polkadot/rpc-provider": "16.2.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-augment": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/types-create": "16.2.2",
"@polkadot/types-support": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"@polkadot/x-ws": "^13.5.2",
"comment-parser": "^1.4.1",
"handlebars": "^4.7.8",
"tslib": "^2.8.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '16.2.2' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/types": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/types": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
}
}
@@ -5,13 +5,13 @@
export default {
/**
* Lookup130: asset_hub_kusama_runtime::ProxyType
* Lookup146: asset_hub_kusama_runtime::ProxyType
**/
AssetHubKusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Collator']
},
/**
* Lookup229: asset_hub_kusama_runtime::RuntimeHoldReason
* Lookup248: asset_hub_kusama_runtime::RuntimeHoldReason
**/
AssetHubKusamaRuntimeRuntimeHoldReason: {
_enum: {
@@ -89,24 +89,56 @@ export default {
}
},
/**
* Lookup256: asset_hub_kusama_runtime::SessionKeys
* Lookup275: asset_hub_kusama_runtime::SessionKeys
**/
AssetHubKusamaRuntimeSessionKeys: {
aura: 'SpConsensusAuraSr25519AppSr25519Public'
},
/**
* Lookup257: sp_consensus_aura::sr25519::app_sr25519::Public
* Lookup276: sp_consensus_aura::sr25519::app_sr25519::Public
**/
SpConsensusAuraSr25519AppSr25519Public: '[u8;32]',
/**
* Lookup388: asset_hub_kusama_runtime::OriginCaller
* Lookup380: pallet_remote_proxy::pallet::Call<T, I>
**/
PalletRemoteProxyCall: {
_enum: {
remote_proxy: {
real: 'MultiAddress',
forceProxyType: 'Option<AssetHubKusamaRuntimeProxyType>',
call: 'Call',
proof: 'PalletRemoteProxyRemoteProxyProof',
},
register_remote_proxy_proof: {
proof: 'PalletRemoteProxyRemoteProxyProof',
},
remote_proxy_with_registered_proof: {
real: 'MultiAddress',
forceProxyType: 'Option<AssetHubKusamaRuntimeProxyType>',
call: 'Call'
}
}
},
/**
* Lookup381: pallet_remote_proxy::pallet::RemoteProxyProof<RemoteBlockNumber>
**/
PalletRemoteProxyRemoteProxyProof: {
_enum: {
RelayChain: {
proof: 'Vec<Bytes>',
block: 'u32'
}
}
},
/**
* Lookup419: asset_hub_kusama_runtime::OriginCaller
**/
AssetHubKusamaRuntimeOriginCaller: {
_enum: {
system: 'FrameSupportDispatchRawOrigin',
__Unused1: 'Null',
__Unused2: 'Null',
Void: 'SpCoreVoid',
__Unused3: 'Null',
__Unused4: 'Null',
__Unused5: 'Null',
__Unused6: 'Null',
@@ -139,11 +171,17 @@ export default {
}
},
/**
* Lookup474: asset_hub_kusama_runtime::Runtime
* Lookup440: pallet_remote_proxy::pallet::Error<T, I>
**/
PalletRemoteProxyError: {
_enum: ['CouldNotConvertLocalToRemoteAccountId', 'UnknownProofAnchorBlock', 'InvalidProof', 'ProxyDefinitionDecodingFailed', 'Unannounced', 'DidNotFindMatchingProxyDefinition', 'ProxyProofNotRegistered']
},
/**
* Lookup508: asset_hub_kusama_runtime::Runtime
**/
AssetHubKusamaRuntimeRuntime: 'Null',
/**
* Lookup533: asset_hub_kusama_runtime::RuntimeError
* Lookup567: asset_hub_kusama_runtime::RuntimeError
**/
AssetHubKusamaRuntimeRuntimeError: {
_enum: {
@@ -190,7 +228,7 @@ export default {
Utility: 'PalletUtilityError',
Multisig: 'PalletMultisigError',
Proxy: 'PalletProxyError',
__Unused43: 'Null',
RemoteProxyRelayChain: 'PalletRemoteProxyError',
__Unused44: 'Null',
__Unused45: 'Null',
__Unused46: 'Null',
@@ -203,7 +241,21 @@ export default {
ForeignAssets: 'PalletAssetsError',
NftFractionalization: 'PalletNftFractionalizationError',
PoolAssets: 'PalletAssetsError',
AssetConversion: 'PalletAssetConversionError'
AssetConversion: 'PalletAssetConversionError',
__Unused57: 'Null',
__Unused58: 'Null',
__Unused59: 'Null',
__Unused60: 'Null',
__Unused61: 'Null',
__Unused62: 'Null',
__Unused63: 'Null',
__Unused64: 'Null',
__Unused65: 'Null',
__Unused66: 'Null',
__Unused67: 'Null',
__Unused68: 'Null',
__Unused69: 'Null',
StateTrieMigration: 'PalletStateTrieMigrationError'
}
}
};
@@ -5,15 +5,7 @@
export default {
/**
* Lookup23: frame_support::dispatch::DispatchInfo
**/
FrameSupportDispatchDispatchInfo: {
weight: 'SpWeightsWeightV2Weight',
class: 'FrameSupportDispatchDispatchClass',
paysFee: 'FrameSupportDispatchPays'
},
/**
* Lookup31: cumulus_pallet_parachain_system::pallet::Event<T>
* Lookup32: cumulus_pallet_parachain_system::pallet::Event<T>
**/
CumulusPalletParachainSystemEvent: {
_enum: {
@@ -35,7 +27,7 @@ export default {
}
},
/**
* Lookup56: pallet_collator_selection::pallet::Event<T>
* Lookup57: pallet_collator_selection::pallet::Event<T>
**/
PalletCollatorSelectionEvent: {
_enum: {
@@ -79,7 +71,7 @@ export default {
}
},
/**
* Lookup59: cumulus_pallet_xcmp_queue::pallet::Event<T>
* Lookup60: cumulus_pallet_xcmp_queue::pallet::Event<T>
**/
CumulusPalletXcmpQueueEvent: {
_enum: {
@@ -89,179 +81,17 @@ export default {
}
},
/**
* Lookup61: staging_xcm::v4::traits::Outcome
**/
StagingXcmV4TraitsOutcome: {
_enum: {
Complete: {
used: 'SpWeightsWeightV2Weight',
},
Incomplete: {
used: 'SpWeightsWeightV2Weight',
error: 'XcmV3TraitsError',
},
Error: {
error: 'XcmV3TraitsError'
}
}
},
/**
* Lookup92: xcm::v2::multiasset::MultiAssets
**/
XcmV2MultiassetMultiAssets: 'Vec<XcmV2MultiAsset>',
/**
* Lookup94: xcm::v2::multiasset::MultiAsset
**/
XcmV2MultiAsset: {
id: 'XcmV2MultiassetAssetId',
fun: 'XcmV2MultiassetFungibility'
},
/**
* Lookup95: xcm::v2::multiasset::AssetId
**/
XcmV2MultiassetAssetId: {
_enum: {
Concrete: 'XcmV2MultiLocation',
Abstract: 'Bytes'
}
},
/**
* Lookup96: xcm::v2::multilocation::MultiLocation
**/
XcmV2MultiLocation: {
parents: 'u8',
interior: 'XcmV2MultilocationJunctions'
},
/**
* Lookup97: xcm::v2::multilocation::Junctions
**/
XcmV2MultilocationJunctions: {
_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)'
}
},
/**
* Lookup98: xcm::v2::junction::Junction
**/
XcmV2Junction: {
_enum: {
Parachain: 'Compact<u32>',
AccountId32: {
network: 'XcmV2NetworkId',
id: '[u8;32]',
},
AccountIndex64: {
network: 'XcmV2NetworkId',
index: 'Compact<u64>',
},
AccountKey20: {
network: 'XcmV2NetworkId',
key: '[u8;20]',
},
PalletInstance: 'u8',
GeneralIndex: 'Compact<u128>',
GeneralKey: 'Bytes',
OnlyChild: 'Null',
Plurality: {
id: 'XcmV2BodyId',
part: 'XcmV2BodyPart'
}
}
},
/**
* Lookup99: xcm::v2::NetworkId
**/
XcmV2NetworkId: {
_enum: {
Any: 'Null',
Named: 'Bytes',
Polkadot: 'Null',
Kusama: 'Null'
}
},
/**
* Lookup101: xcm::v2::BodyId
**/
XcmV2BodyId: {
_enum: {
Unit: 'Null',
Named: 'Bytes',
Index: 'Compact<u32>',
Executive: 'Null',
Technical: 'Null',
Legislative: 'Null',
Judicial: 'Null',
Defense: 'Null',
Administration: 'Null',
Treasury: 'Null'
}
},
/**
* Lookup102: xcm::v2::BodyPart
**/
XcmV2BodyPart: {
_enum: {
Voice: 'Null',
Members: {
count: 'Compact<u32>',
},
Fraction: {
nom: 'Compact<u32>',
denom: 'Compact<u32>',
},
AtLeastProportion: {
nom: 'Compact<u32>',
denom: 'Compact<u32>',
},
MoreThanProportion: {
nom: 'Compact<u32>',
denom: 'Compact<u32>'
}
}
},
/**
* Lookup103: xcm::v2::multiasset::Fungibility
**/
XcmV2MultiassetFungibility: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'XcmV2MultiassetAssetInstance'
}
},
/**
* Lookup104: xcm::v2::multiasset::AssetInstance
**/
XcmV2MultiassetAssetInstance: {
_enum: {
Undefined: 'Null',
Index: 'Compact<u128>',
Array4: '[u8;4]',
Array8: '[u8;8]',
Array16: '[u8;16]',
Array32: '[u8;32]',
Blob: 'Bytes'
}
},
/**
* Lookup117: cumulus_pallet_xcm::pallet::Event<T>
* Lookup133: cumulus_pallet_xcm::pallet::Event<T>
**/
CumulusPalletXcmEvent: {
_enum: {
InvalidFormat: '[u8;32]',
UnsupportedVersion: '[u8;32]',
ExecutedDownward: '([u8;32],StagingXcmV4TraitsOutcome)'
ExecutedDownward: '([u8;32],StagingXcmV5TraitsOutcome)'
}
},
/**
* Lookup118: pallet_xcm_bridge_hub_router::pallet::Event<T, I>
* Lookup134: pallet_xcm_bridge_hub_router::pallet::Event<T, I>
**/
PalletXcmBridgeHubRouterEvent: {
_enum: {
@@ -274,7 +104,7 @@ export default {
}
},
/**
* Lookup121: cumulus_primitives_core::AggregateMessageOrigin
* Lookup137: cumulus_primitives_core::AggregateMessageOrigin
**/
CumulusPrimitivesCoreAggregateMessageOrigin: {
_enum: {
@@ -284,13 +114,13 @@ export default {
}
},
/**
* Lookup130: asset_hub_polkadot_runtime::ProxyType
* Lookup146: asset_hub_polkadot_runtime::ProxyType
**/
AssetHubPolkadotRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'CancelProxy', 'Assets', 'AssetOwner', 'AssetManager', 'Collator']
},
/**
* Lookup178: cumulus_pallet_parachain_system::unincluded_segment::Ancestor<primitive_types::H256>
* Lookup197: cumulus_pallet_parachain_system::unincluded_segment::Ancestor<primitive_types::H256>
**/
CumulusPalletParachainSystemUnincludedSegmentAncestor: {
usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth',
@@ -298,7 +128,7 @@ export default {
consumedGoAheadSignal: 'Option<PolkadotPrimitivesV8UpgradeGoAhead>'
},
/**
* Lookup179: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth
* Lookup198: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth
**/
CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth: {
umpMsgCount: 'u32',
@@ -306,14 +136,14 @@ export default {
hrmpOutgoing: 'BTreeMap<u32, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate>'
},
/**
* Lookup181: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate
* Lookup200: cumulus_pallet_parachain_system::unincluded_segment::HrmpChannelUpdate
**/
CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate: {
msgCount: 'u32',
totalBytes: 'u32'
},
/**
* Lookup187: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker<primitive_types::H256>
* Lookup206: cumulus_pallet_parachain_system::unincluded_segment::SegmentTracker<primitive_types::H256>
**/
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: {
usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth',
@@ -321,13 +151,13 @@ export default {
consumedGoAheadSignal: 'Option<PolkadotPrimitivesV8UpgradeGoAhead>'
},
/**
* Lookup192: sp_trie::storage_proof::StorageProof
* Lookup211: sp_trie::storage_proof::StorageProof
**/
SpTrieStorageProof: {
trieNodes: 'BTreeSet<Bytes>'
},
/**
* Lookup194: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
* Lookup213: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
**/
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: {
dmqMqcHead: 'H256',
@@ -336,14 +166,14 @@ export default {
egressChannels: 'Vec<(u32,PolkadotPrimitivesV8AbridgedHrmpChannel)>'
},
/**
* Lookup195: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity
* Lookup214: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity
**/
CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity: {
remainingCount: 'u32',
remainingSize: 'u32'
},
/**
* Lookup198: polkadot_primitives::v8::AbridgedHrmpChannel
* Lookup217: polkadot_primitives::v8::AbridgedHrmpChannel
**/
PolkadotPrimitivesV8AbridgedHrmpChannel: {
maxCapacity: 'u32',
@@ -354,7 +184,7 @@ export default {
mqcHead: 'Option<H256>'
},
/**
* Lookup199: polkadot_primitives::v8::AbridgedHostConfiguration
* Lookup218: polkadot_primitives::v8::AbridgedHostConfiguration
**/
PolkadotPrimitivesV8AbridgedHostConfiguration: {
maxCodeSize: 'u32',
@@ -369,7 +199,7 @@ export default {
asyncBackingParams: 'PolkadotPrimitivesV8AsyncBackingAsyncBackingParams'
},
/**
* Lookup207: cumulus_pallet_parachain_system::pallet::Call<T>
* Lookup226: cumulus_pallet_parachain_system::pallet::Call<T>
**/
CumulusPalletParachainSystemCall: {
_enum: {
@@ -382,7 +212,7 @@ export default {
}
},
/**
* Lookup208: cumulus_primitives_parachain_inherent::ParachainInherentData
* Lookup227: cumulus_primitives_parachain_inherent::ParachainInherentData
**/
CumulusPrimitivesParachainInherentParachainInherentData: {
validationData: 'PolkadotPrimitivesV8PersistedValidationData',
@@ -391,28 +221,102 @@ export default {
horizontalMessages: 'BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>'
},
/**
* Lookup216: cumulus_pallet_parachain_system::pallet::Error<T>
* Lookup235: cumulus_pallet_parachain_system::pallet::Error<T>
**/
CumulusPalletParachainSystemError: {
_enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized']
},
/**
* Lookup218: staging_parachain_info::pallet::Call<T>
* Lookup237: staging_parachain_info::pallet::Call<T>
**/
StagingParachainInfoCall: 'Null',
/**
* Lookup228: asset_hub_polkadot_runtime::RuntimeHoldReason
* Lookup247: asset_hub_polkadot_runtime::RuntimeHoldReason
**/
AssetHubPolkadotRuntimeRuntimeHoldReason: 'Null',
AssetHubPolkadotRuntimeRuntimeHoldReason: {
_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',
__Unused23: 'Null',
__Unused24: 'Null',
__Unused25: 'Null',
__Unused26: 'Null',
__Unused27: 'Null',
__Unused28: 'Null',
__Unused29: 'Null',
__Unused30: 'Null',
__Unused31: 'Null',
__Unused32: 'Null',
__Unused33: 'Null',
__Unused34: 'Null',
__Unused35: 'Null',
__Unused36: 'Null',
__Unused37: 'Null',
__Unused38: 'Null',
__Unused39: 'Null',
__Unused40: 'Null',
__Unused41: 'Null',
__Unused42: 'Null',
__Unused43: 'Null',
__Unused44: 'Null',
__Unused45: 'Null',
__Unused46: 'Null',
__Unused47: 'Null',
__Unused48: 'Null',
__Unused49: 'Null',
__Unused50: 'Null',
__Unused51: 'Null',
__Unused52: 'Null',
__Unused53: 'Null',
__Unused54: 'Null',
__Unused55: 'Null',
__Unused56: 'Null',
__Unused57: 'Null',
__Unused58: 'Null',
__Unused59: 'Null',
__Unused60: 'Null',
__Unused61: 'Null',
__Unused62: 'Null',
__Unused63: 'Null',
__Unused64: 'Null',
__Unused65: 'Null',
__Unused66: 'Null',
__Unused67: 'Null',
__Unused68: 'Null',
__Unused69: 'Null',
StateTrieMigration: 'PalletStateTrieMigrationHoldReason'
}
},
/**
* Lookup247: pallet_collator_selection::pallet::CandidateInfo<sp_core::crypto::AccountId32, Balance>
* Lookup267: pallet_collator_selection::pallet::CandidateInfo<sp_core::crypto::AccountId32, Balance>
**/
PalletCollatorSelectionCandidateInfo: {
who: 'AccountId32',
deposit: 'u128'
},
/**
* Lookup249: pallet_collator_selection::pallet::Call<T>
* Lookup269: pallet_collator_selection::pallet::Call<T>
**/
PalletCollatorSelectionCall: {
_enum: {
@@ -446,23 +350,23 @@ export default {
}
},
/**
* Lookup250: pallet_collator_selection::pallet::Error<T>
* Lookup270: pallet_collator_selection::pallet::Error<T>
**/
PalletCollatorSelectionError: {
_enum: ['TooManyCandidates', 'TooFewEligibleCollators', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered', 'InsertToCandidateListFailed', 'RemoveFromCandidateListFailed', 'DepositTooLow', 'UpdateCandidateListFailed', 'InsufficientBond', 'TargetIsNotCandidate', 'IdenticalDeposit', 'InvalidUnreserve']
},
/**
* Lookup253: asset_hub_polkadot_runtime::SessionKeys
* Lookup273: asset_hub_polkadot_runtime::SessionKeys
**/
AssetHubPolkadotRuntimeSessionKeys: {
aura: 'SpConsensusAuraEd25519AppEd25519Public'
},
/**
* Lookup254: sp_consensus_aura::ed25519::app_ed25519::Public
* Lookup274: sp_consensus_aura::ed25519::app_ed25519::Public
**/
SpConsensusAuraEd25519AppEd25519Public: '[u8;32]',
/**
* Lookup267: cumulus_pallet_xcmp_queue::OutboundChannelDetails
* Lookup287: cumulus_pallet_xcmp_queue::OutboundChannelDetails
**/
CumulusPalletXcmpQueueOutboundChannelDetails: {
recipient: 'u32',
@@ -472,13 +376,13 @@ export default {
lastIndex: 'u16'
},
/**
* Lookup268: cumulus_pallet_xcmp_queue::OutboundState
* Lookup288: cumulus_pallet_xcmp_queue::OutboundState
**/
CumulusPalletXcmpQueueOutboundState: {
_enum: ['Ok', 'Suspended']
},
/**
* Lookup272: cumulus_pallet_xcmp_queue::QueueConfigData
* Lookup292: cumulus_pallet_xcmp_queue::QueueConfigData
**/
CumulusPalletXcmpQueueQueueConfigData: {
suspendThreshold: 'u32',
@@ -486,7 +390,7 @@ export default {
resumeThreshold: 'u32'
},
/**
* Lookup273: cumulus_pallet_xcmp_queue::pallet::Call<T>
* Lookup293: cumulus_pallet_xcmp_queue::pallet::Call<T>
**/
CumulusPalletXcmpQueueCall: {
_enum: {
@@ -514,212 +418,24 @@ export default {
}
},
/**
* Lookup274: cumulus_pallet_xcmp_queue::pallet::Error<T>
* Lookup294: cumulus_pallet_xcmp_queue::pallet::Error<T>
**/
CumulusPalletXcmpQueueError: {
_enum: ['BadQueueConfig', 'AlreadySuspended', 'AlreadyResumed', 'TooManyActiveOutboundChannels', 'TooBig']
},
/**
* Lookup280: xcm::v2::Response
**/
XcmV2Response: {
_enum: {
Null: 'Null',
Assets: 'XcmV2MultiassetMultiAssets',
ExecutionResult: 'Option<(u32,XcmV2TraitsError)>',
Version: 'u32'
}
},
/**
* Lookup283: xcm::v2::traits::Error
**/
XcmV2TraitsError: {
_enum: {
Overflow: 'Null',
Unimplemented: 'Null',
UntrustedReserveLocation: 'Null',
UntrustedTeleportLocation: 'Null',
MultiLocationFull: 'Null',
MultiLocationNotInvertible: 'Null',
BadOrigin: 'Null',
InvalidLocation: 'Null',
AssetNotFound: 'Null',
FailedToTransactAsset: 'Null',
NotWithdrawable: 'Null',
LocationCannotHold: 'Null',
ExceedsMaxMessageSize: 'Null',
DestinationUnsupported: 'Null',
Transport: 'Null',
Unroutable: 'Null',
UnknownClaim: 'Null',
FailedToDecode: 'Null',
MaxWeightInvalid: 'Null',
NotHoldingFees: 'Null',
TooExpensive: 'Null',
Trap: 'u64',
UnhandledXcmVersion: 'Null',
WeightLimitReached: 'u64',
Barrier: 'Null',
WeightNotComputable: 'Null'
}
},
/**
* Lookup307: xcm::v2::Xcm<RuntimeCall>
**/
XcmV2Xcm: 'Vec<XcmV2Instruction>',
/**
* Lookup309: xcm::v2::Instruction<RuntimeCall>
**/
XcmV2Instruction: {
_enum: {
WithdrawAsset: 'XcmV2MultiassetMultiAssets',
ReserveAssetDeposited: 'XcmV2MultiassetMultiAssets',
ReceiveTeleportedAsset: 'XcmV2MultiassetMultiAssets',
QueryResponse: {
queryId: 'Compact<u64>',
response: 'XcmV2Response',
maxWeight: 'Compact<u64>',
},
TransferAsset: {
assets: 'XcmV2MultiassetMultiAssets',
beneficiary: 'XcmV2MultiLocation',
},
TransferReserveAsset: {
assets: 'XcmV2MultiassetMultiAssets',
dest: 'XcmV2MultiLocation',
xcm: 'XcmV2Xcm',
},
Transact: {
originType: 'XcmV2OriginKind',
requireWeightAtMost: 'Compact<u64>',
call: 'XcmDoubleEncoded',
},
HrmpNewChannelOpenRequest: {
sender: 'Compact<u32>',
maxMessageSize: 'Compact<u32>',
maxCapacity: 'Compact<u32>',
},
HrmpChannelAccepted: {
recipient: 'Compact<u32>',
},
HrmpChannelClosing: {
initiator: 'Compact<u32>',
sender: 'Compact<u32>',
recipient: 'Compact<u32>',
},
ClearOrigin: 'Null',
DescendOrigin: 'XcmV2MultilocationJunctions',
ReportError: {
queryId: 'Compact<u64>',
dest: 'XcmV2MultiLocation',
maxResponseWeight: 'Compact<u64>',
},
DepositAsset: {
assets: 'XcmV2MultiassetMultiAssetFilter',
maxAssets: 'Compact<u32>',
beneficiary: 'XcmV2MultiLocation',
},
DepositReserveAsset: {
assets: 'XcmV2MultiassetMultiAssetFilter',
maxAssets: 'Compact<u32>',
dest: 'XcmV2MultiLocation',
xcm: 'XcmV2Xcm',
},
ExchangeAsset: {
give: 'XcmV2MultiassetMultiAssetFilter',
receive: 'XcmV2MultiassetMultiAssets',
},
InitiateReserveWithdraw: {
assets: 'XcmV2MultiassetMultiAssetFilter',
reserve: 'XcmV2MultiLocation',
xcm: 'XcmV2Xcm',
},
InitiateTeleport: {
assets: 'XcmV2MultiassetMultiAssetFilter',
dest: 'XcmV2MultiLocation',
xcm: 'XcmV2Xcm',
},
QueryHolding: {
queryId: 'Compact<u64>',
dest: 'XcmV2MultiLocation',
assets: 'XcmV2MultiassetMultiAssetFilter',
maxResponseWeight: 'Compact<u64>',
},
BuyExecution: {
fees: 'XcmV2MultiAsset',
weightLimit: 'XcmV2WeightLimit',
},
RefundSurplus: 'Null',
SetErrorHandler: 'XcmV2Xcm',
SetAppendix: 'XcmV2Xcm',
ClearError: 'Null',
ClaimAsset: {
assets: 'XcmV2MultiassetMultiAssets',
ticket: 'XcmV2MultiLocation',
},
Trap: 'Compact<u64>',
SubscribeVersion: {
queryId: 'Compact<u64>',
maxResponseWeight: 'Compact<u64>',
},
UnsubscribeVersion: 'Null'
}
},
/**
* Lookup310: xcm::v2::OriginKind
**/
XcmV2OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
* Lookup311: xcm::v2::multiasset::MultiAssetFilter
**/
XcmV2MultiassetMultiAssetFilter: {
_enum: {
Definite: 'XcmV2MultiassetMultiAssets',
Wild: 'XcmV2MultiassetWildMultiAsset'
}
},
/**
* Lookup312: xcm::v2::multiasset::WildMultiAsset
**/
XcmV2MultiassetWildMultiAsset: {
_enum: {
All: 'Null',
AllOf: {
id: 'XcmV2MultiassetAssetId',
fun: 'XcmV2MultiassetWildFungibility'
}
}
},
/**
* Lookup313: xcm::v2::multiasset::WildFungibility
**/
XcmV2MultiassetWildFungibility: {
_enum: ['Fungible', 'NonFungible']
},
/**
* Lookup314: xcm::v2::WeightLimit
**/
XcmV2WeightLimit: {
_enum: {
Unlimited: 'Null',
Limited: 'Compact<u64>'
}
},
/**
* Lookup336: cumulus_pallet_xcm::pallet::Call<T>
* Lookup360: cumulus_pallet_xcm::pallet::Call<T>
**/
CumulusPalletXcmCall: 'Null',
/**
* Lookup337: bp_xcm_bridge_hub_router::BridgeState
* Lookup361: bp_xcm_bridge_hub_router::BridgeState
**/
BpXcmBridgeHubRouterBridgeState: {
deliveryFeeFactor: 'u128',
isCongested: 'bool'
},
/**
* Lookup338: pallet_xcm_bridge_hub_router::pallet::Call<T, I>
* Lookup362: pallet_xcm_bridge_hub_router::pallet::Call<T, I>
**/
PalletXcmBridgeHubRouterCall: {
_enum: {
@@ -730,14 +446,14 @@ export default {
}
},
/**
* Lookup384: asset_hub_polkadot_runtime::OriginCaller
* Lookup414: asset_hub_polkadot_runtime::OriginCaller
**/
AssetHubPolkadotRuntimeOriginCaller: {
_enum: {
system: 'FrameSupportDispatchRawOrigin',
__Unused1: 'Null',
__Unused2: 'Null',
Void: 'SpCoreVoid',
__Unused3: 'Null',
__Unused4: 'Null',
__Unused5: 'Null',
__Unused6: 'Null',
@@ -770,7 +486,7 @@ export default {
}
},
/**
* Lookup387: cumulus_pallet_xcm::pallet::Origin
* Lookup417: cumulus_pallet_xcm::pallet::Origin
**/
CumulusPalletXcmOrigin: {
_enum: {
@@ -779,21 +495,17 @@ export default {
}
},
/**
* Lookup388: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
* Lookup468: asset_hub_polkadot_runtime::Runtime
* Lookup497: asset_hub_polkadot_runtime::Runtime
**/
AssetHubPolkadotRuntimeRuntime: 'Null',
/**
* Lookup518: assets_common::runtime_api::FungiblesAccessError
* Lookup547: assets_common::runtime_api::FungiblesAccessError
**/
AssetsCommonRuntimeApiFungiblesAccessError: {
_enum: ['AssetIdConversionFailed', 'AmountToBalanceConversionFailed']
},
/**
* Lookup519: cumulus_primitives_core::CollationInfo
* Lookup548: cumulus_primitives_core::CollationInfo
**/
CumulusPrimitivesCoreCollationInfo: {
upwardMessages: 'Vec<Bytes>',
@@ -804,7 +516,7 @@ export default {
headData: 'Bytes'
},
/**
* Lookup527: asset_hub_polkadot_runtime::RuntimeError
* Lookup556: asset_hub_polkadot_runtime::RuntimeError
**/
AssetHubPolkadotRuntimeRuntimeError: {
_enum: {
@@ -863,7 +575,22 @@ export default {
Nfts: 'PalletNftsError',
ForeignAssets: 'PalletAssetsError',
PoolAssets: 'PalletAssetsError',
AssetConversion: 'PalletAssetConversionError'
AssetConversion: 'PalletAssetConversionError',
__Unused56: 'Null',
__Unused57: 'Null',
__Unused58: 'Null',
__Unused59: 'Null',
__Unused60: 'Null',
__Unused61: 'Null',
__Unused62: 'Null',
__Unused63: 'Null',
__Unused64: 'Null',
__Unused65: 'Null',
__Unused66: 'Null',
__Unused67: 'Null',
__Unused68: 'Null',
__Unused69: 'Null',
StateTrieMigration: 'PalletStateTrieMigrationError'
}
}
};
@@ -5,10 +5,11 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { Enum, Null, Struct, U8aFixed } from '@polkadot/types-codec';
import type { Bytes, Enum, Null, Option, Struct, U8aFixed, Vec, u32 } from '@polkadot/types-codec';
import type { Call, MultiAddress } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name AssetHubKusamaRuntimeProxyType (130) */
/** @name AssetHubKusamaRuntimeProxyType (146) */
interface AssetHubKusamaRuntimeProxyType extends Enum {
readonly isAny: boolean;
readonly isNonTransfer: boolean;
@@ -20,7 +21,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator';
}
/** @name AssetHubKusamaRuntimeRuntimeHoldReason (229) */
/** @name AssetHubKusamaRuntimeRuntimeHoldReason (248) */
interface AssetHubKusamaRuntimeRuntimeHoldReason extends Enum {
readonly isNftFractionalization: boolean;
readonly asNftFractionalization: PalletNftFractionalizationHoldReason;
@@ -29,30 +30,73 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NftFractionalization' | 'StateTrieMigration';
}
/** @name AssetHubKusamaRuntimeSessionKeys (256) */
/** @name AssetHubKusamaRuntimeSessionKeys (275) */
interface AssetHubKusamaRuntimeSessionKeys extends Struct {
readonly aura: SpConsensusAuraSr25519AppSr25519Public;
}
/** @name SpConsensusAuraSr25519AppSr25519Public (257) */
/** @name SpConsensusAuraSr25519AppSr25519Public (276) */
interface SpConsensusAuraSr25519AppSr25519Public extends U8aFixed {}
/** @name AssetHubKusamaRuntimeOriginCaller (388) */
/** @name PalletRemoteProxyCall (380) */
interface PalletRemoteProxyCall extends Enum {
readonly isRemoteProxy: boolean;
readonly asRemoteProxy: {
readonly real: MultiAddress;
readonly forceProxyType: Option<AssetHubKusamaRuntimeProxyType>;
readonly call: Call;
readonly proof: PalletRemoteProxyRemoteProxyProof;
} & Struct;
readonly isRegisterRemoteProxyProof: boolean;
readonly asRegisterRemoteProxyProof: {
readonly proof: PalletRemoteProxyRemoteProxyProof;
} & Struct;
readonly isRemoteProxyWithRegisteredProof: boolean;
readonly asRemoteProxyWithRegisteredProof: {
readonly real: MultiAddress;
readonly forceProxyType: Option<AssetHubKusamaRuntimeProxyType>;
readonly call: Call;
} & Struct;
readonly type: 'RemoteProxy' | 'RegisterRemoteProxyProof' | 'RemoteProxyWithRegisteredProof';
}
/** @name PalletRemoteProxyRemoteProxyProof (381) */
interface PalletRemoteProxyRemoteProxyProof extends Enum {
readonly isRelayChain: boolean;
readonly asRelayChain: {
readonly proof: Vec<Bytes>;
readonly block: u32;
} & Struct;
readonly type: 'RelayChain';
}
/** @name AssetHubKusamaRuntimeOriginCaller (419) */
interface AssetHubKusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
readonly isPolkadotXcm: boolean;
readonly asPolkadotXcm: PalletXcmOrigin;
readonly isCumulusXcm: boolean;
readonly asCumulusXcm: CumulusPalletXcmOrigin;
readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm';
readonly type: 'System' | 'PolkadotXcm' | 'CumulusXcm';
}
/** @name AssetHubKusamaRuntimeRuntime (474) */
/** @name PalletRemoteProxyError (440) */
interface PalletRemoteProxyError extends Enum {
readonly isCouldNotConvertLocalToRemoteAccountId: boolean;
readonly isUnknownProofAnchorBlock: boolean;
readonly isInvalidProof: boolean;
readonly isProxyDefinitionDecodingFailed: boolean;
readonly isUnannounced: boolean;
readonly isDidNotFindMatchingProxyDefinition: boolean;
readonly isProxyProofNotRegistered: boolean;
readonly type: 'CouldNotConvertLocalToRemoteAccountId' | 'UnknownProofAnchorBlock' | 'InvalidProof' | 'ProxyDefinitionDecodingFailed' | 'Unannounced' | 'DidNotFindMatchingProxyDefinition' | 'ProxyProofNotRegistered';
}
/** @name AssetHubKusamaRuntimeRuntime (508) */
type AssetHubKusamaRuntimeRuntime = Null;
/** @name AssetHubKusamaRuntimeRuntimeError (533) */
/** @name AssetHubKusamaRuntimeRuntimeError (567) */
interface AssetHubKusamaRuntimeRuntimeError extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemError;
@@ -78,6 +122,8 @@ declare module '@polkadot/types/lookup' {
readonly asMultisig: PalletMultisigError;
readonly isProxy: boolean;
readonly asProxy: PalletProxyError;
readonly isRemoteProxyRelayChain: boolean;
readonly asRemoteProxyRelayChain: PalletRemoteProxyError;
readonly isAssets: boolean;
readonly asAssets: PalletAssetsError;
readonly isUniques: boolean;
@@ -92,7 +138,9 @@ declare module '@polkadot/types/lookup' {
readonly asPoolAssets: PalletAssetsError;
readonly isAssetConversion: boolean;
readonly asAssetConversion: PalletAssetConversionError;
readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'NftFractionalization' | 'PoolAssets' | 'AssetConversion';
readonly isStateTrieMigration: boolean;
readonly asStateTrieMigration: PalletStateTrieMigrationError;
readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'RemoteProxyRelayChain' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'NftFractionalization' | 'PoolAssets' | 'AssetConversion' | 'StateTrieMigration';
}
} // declare module
@@ -5,19 +5,12 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { BTreeMap, BTreeSet, Bytes, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name FrameSupportDispatchDispatchInfo (23) */
interface FrameSupportDispatchDispatchInfo extends Struct {
readonly weight: SpWeightsWeightV2Weight;
readonly class: FrameSupportDispatchDispatchClass;
readonly paysFee: FrameSupportDispatchPays;
}
/** @name CumulusPalletParachainSystemEvent (31) */
/** @name CumulusPalletParachainSystemEvent (32) */
interface CumulusPalletParachainSystemEvent extends Enum {
readonly isValidationFunctionStored: boolean;
readonly isValidationFunctionApplied: boolean;
@@ -41,7 +34,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed' | 'UpwardMessageSent';
}
/** @name PalletCollatorSelectionEvent (56) */
/** @name PalletCollatorSelectionEvent (57) */
interface PalletCollatorSelectionEvent extends Enum {
readonly isNewInvulnerables: boolean;
readonly asNewInvulnerables: {
@@ -90,7 +83,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NewInvulnerables' | 'InvulnerableAdded' | 'InvulnerableRemoved' | 'NewDesiredCandidates' | 'NewCandidacyBond' | 'CandidateAdded' | 'CandidateBondUpdated' | 'CandidateRemoved' | 'CandidateReplaced' | 'InvalidInvulnerableSkipped';
}
/** @name CumulusPalletXcmpQueueEvent (59) */
/** @name CumulusPalletXcmpQueueEvent (60) */
interface CumulusPalletXcmpQueueEvent extends Enum {
readonly isXcmpMessageSent: boolean;
readonly asXcmpMessageSent: {
@@ -99,195 +92,18 @@ declare module '@polkadot/types/lookup' {
readonly type: 'XcmpMessageSent';
}
/** @name StagingXcmV4TraitsOutcome (61) */
interface StagingXcmV4TraitsOutcome extends Enum {
readonly isComplete: boolean;
readonly asComplete: {
readonly used: SpWeightsWeightV2Weight;
} & Struct;
readonly isIncomplete: boolean;
readonly asIncomplete: {
readonly used: SpWeightsWeightV2Weight;
readonly error: XcmV3TraitsError;
} & Struct;
readonly isError: boolean;
readonly asError: {
readonly error: XcmV3TraitsError;
} & Struct;
readonly type: 'Complete' | 'Incomplete' | 'Error';
}
/** @name XcmV2MultiassetMultiAssets (92) */
interface XcmV2MultiassetMultiAssets extends Vec<XcmV2MultiAsset> {}
/** @name XcmV2MultiAsset (94) */
interface XcmV2MultiAsset extends Struct {
readonly id: XcmV2MultiassetAssetId;
readonly fun: XcmV2MultiassetFungibility;
}
/** @name XcmV2MultiassetAssetId (95) */
interface XcmV2MultiassetAssetId extends Enum {
readonly isConcrete: boolean;
readonly asConcrete: XcmV2MultiLocation;
readonly isAbstract: boolean;
readonly asAbstract: Bytes;
readonly type: 'Concrete' | 'Abstract';
}
/** @name XcmV2MultiLocation (96) */
interface XcmV2MultiLocation extends Struct {
readonly parents: u8;
readonly interior: XcmV2MultilocationJunctions;
}
/** @name XcmV2MultilocationJunctions (97) */
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';
}
/** @name XcmV2Junction (98) */
interface XcmV2Junction extends Enum {
readonly isParachain: boolean;
readonly asParachain: Compact<u32>;
readonly isAccountId32: boolean;
readonly asAccountId32: {
readonly network: XcmV2NetworkId;
readonly id: U8aFixed;
} & Struct;
readonly isAccountIndex64: boolean;
readonly asAccountIndex64: {
readonly network: XcmV2NetworkId;
readonly index: Compact<u64>;
} & Struct;
readonly isAccountKey20: boolean;
readonly asAccountKey20: {
readonly network: XcmV2NetworkId;
readonly key: U8aFixed;
} & Struct;
readonly isPalletInstance: boolean;
readonly asPalletInstance: u8;
readonly isGeneralIndex: boolean;
readonly asGeneralIndex: Compact<u128>;
readonly isGeneralKey: boolean;
readonly asGeneralKey: Bytes;
readonly isOnlyChild: boolean;
readonly isPlurality: boolean;
readonly asPlurality: {
readonly id: XcmV2BodyId;
readonly part: XcmV2BodyPart;
} & Struct;
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name XcmV2NetworkId (99) */
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 XcmV2BodyId (101) */
interface XcmV2BodyId extends Enum {
readonly isUnit: boolean;
readonly isNamed: boolean;
readonly asNamed: Bytes;
readonly isIndex: boolean;
readonly asIndex: Compact<u32>;
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 (102) */
interface XcmV2BodyPart extends Enum {
readonly isVoice: boolean;
readonly isMembers: boolean;
readonly asMembers: {
readonly count: Compact<u32>;
} & Struct;
readonly isFraction: boolean;
readonly asFraction: {
readonly nom: Compact<u32>;
readonly denom: Compact<u32>;
} & Struct;
readonly isAtLeastProportion: boolean;
readonly asAtLeastProportion: {
readonly nom: Compact<u32>;
readonly denom: Compact<u32>;
} & Struct;
readonly isMoreThanProportion: boolean;
readonly asMoreThanProportion: {
readonly nom: Compact<u32>;
readonly denom: Compact<u32>;
} & Struct;
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
/** @name XcmV2MultiassetFungibility (103) */
interface XcmV2MultiassetFungibility extends Enum {
readonly isFungible: boolean;
readonly asFungible: Compact<u128>;
readonly isNonFungible: boolean;
readonly asNonFungible: XcmV2MultiassetAssetInstance;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV2MultiassetAssetInstance (104) */
interface XcmV2MultiassetAssetInstance extends Enum {
readonly isUndefined: boolean;
readonly isIndex: boolean;
readonly asIndex: Compact<u128>;
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 CumulusPalletXcmEvent (117) */
/** @name CumulusPalletXcmEvent (133) */
interface CumulusPalletXcmEvent extends Enum {
readonly isInvalidFormat: boolean;
readonly asInvalidFormat: U8aFixed;
readonly isUnsupportedVersion: boolean;
readonly asUnsupportedVersion: U8aFixed;
readonly isExecutedDownward: boolean;
readonly asExecutedDownward: ITuple<[U8aFixed, StagingXcmV4TraitsOutcome]>;
readonly asExecutedDownward: ITuple<[U8aFixed, StagingXcmV5TraitsOutcome]>;
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';
}
/** @name PalletXcmBridgeHubRouterEvent (118) */
/** @name PalletXcmBridgeHubRouterEvent (134) */
interface PalletXcmBridgeHubRouterEvent extends Enum {
readonly isDeliveryFeeFactorDecreased: boolean;
readonly asDeliveryFeeFactorDecreased: {
@@ -300,7 +116,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'DeliveryFeeFactorDecreased' | 'DeliveryFeeFactorIncreased';
}
/** @name CumulusPrimitivesCoreAggregateMessageOrigin (121) */
/** @name CumulusPrimitivesCoreAggregateMessageOrigin (137) */
interface CumulusPrimitivesCoreAggregateMessageOrigin extends Enum {
readonly isHere: boolean;
readonly isParent: boolean;
@@ -309,7 +125,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Here' | 'Parent' | 'Sibling';
}
/** @name AssetHubPolkadotRuntimeProxyType (130) */
/** @name AssetHubPolkadotRuntimeProxyType (146) */
interface AssetHubPolkadotRuntimeProxyType extends Enum {
readonly isAny: boolean;
readonly isNonTransfer: boolean;
@@ -321,39 +137,39 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator';
}
/** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (178) */
/** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (197) */
interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct {
readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
readonly paraHeadHash: Option<H256>;
readonly consumedGoAheadSignal: Option<PolkadotPrimitivesV8UpgradeGoAhead>;
}
/** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (179) */
/** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (198) */
interface CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth extends Struct {
readonly umpMsgCount: u32;
readonly umpTotalBytes: u32;
readonly hrmpOutgoing: BTreeMap<u32, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate>;
}
/** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (181) */
/** @name CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate (200) */
interface CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate extends Struct {
readonly msgCount: u32;
readonly totalBytes: u32;
}
/** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (187) */
/** @name CumulusPalletParachainSystemUnincludedSegmentSegmentTracker (206) */
interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct {
readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
readonly hrmpWatermark: Option<u32>;
readonly consumedGoAheadSignal: Option<PolkadotPrimitivesV8UpgradeGoAhead>;
}
/** @name SpTrieStorageProof (192) */
/** @name SpTrieStorageProof (211) */
interface SpTrieStorageProof extends Struct {
readonly trieNodes: BTreeSet<Bytes>;
}
/** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (194) */
/** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (213) */
interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {
readonly dmqMqcHead: H256;
readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
@@ -361,13 +177,13 @@ declare module '@polkadot/types/lookup' {
readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV8AbridgedHrmpChannel]>>;
}
/** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (195) */
/** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (214) */
interface CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity extends Struct {
readonly remainingCount: u32;
readonly remainingSize: u32;
}
/** @name PolkadotPrimitivesV8AbridgedHrmpChannel (198) */
/** @name PolkadotPrimitivesV8AbridgedHrmpChannel (217) */
interface PolkadotPrimitivesV8AbridgedHrmpChannel extends Struct {
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
@@ -377,7 +193,7 @@ declare module '@polkadot/types/lookup' {
readonly mqcHead: Option<H256>;
}
/** @name PolkadotPrimitivesV8AbridgedHostConfiguration (199) */
/** @name PolkadotPrimitivesV8AbridgedHostConfiguration (218) */
interface PolkadotPrimitivesV8AbridgedHostConfiguration extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
@@ -391,7 +207,7 @@ declare module '@polkadot/types/lookup' {
readonly asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
}
/** @name CumulusPalletParachainSystemCall (207) */
/** @name CumulusPalletParachainSystemCall (226) */
interface CumulusPalletParachainSystemCall extends Enum {
readonly isSetValidationData: boolean;
readonly asSetValidationData: {
@@ -404,7 +220,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'SetValidationData' | 'SudoSendUpwardMessage';
}
/** @name CumulusPrimitivesParachainInherentParachainInherentData (208) */
/** @name CumulusPrimitivesParachainInherentParachainInherentData (227) */
interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {
readonly validationData: PolkadotPrimitivesV8PersistedValidationData;
readonly relayChainState: SpTrieStorageProof;
@@ -412,7 +228,7 @@ declare module '@polkadot/types/lookup' {
readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;
}
/** @name CumulusPalletParachainSystemError (216) */
/** @name CumulusPalletParachainSystemError (235) */
interface CumulusPalletParachainSystemError extends Enum {
readonly isOverlappingUpgrades: boolean;
readonly isProhibitedByPolkadot: boolean;
@@ -425,19 +241,23 @@ declare module '@polkadot/types/lookup' {
readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
}
/** @name StagingParachainInfoCall (218) */
/** @name StagingParachainInfoCall (237) */
type StagingParachainInfoCall = Null;
/** @name AssetHubPolkadotRuntimeRuntimeHoldReason (228) */
type AssetHubPolkadotRuntimeRuntimeHoldReason = Null;
/** @name AssetHubPolkadotRuntimeRuntimeHoldReason (247) */
interface AssetHubPolkadotRuntimeRuntimeHoldReason extends Enum {
readonly isStateTrieMigration: boolean;
readonly asStateTrieMigration: PalletStateTrieMigrationHoldReason;
readonly type: 'StateTrieMigration';
}
/** @name PalletCollatorSelectionCandidateInfo (247) */
/** @name PalletCollatorSelectionCandidateInfo (267) */
interface PalletCollatorSelectionCandidateInfo extends Struct {
readonly who: AccountId32;
readonly deposit: u128;
}
/** @name PalletCollatorSelectionCall (249) */
/** @name PalletCollatorSelectionCall (269) */
interface PalletCollatorSelectionCall extends Enum {
readonly isSetInvulnerables: boolean;
readonly asSetInvulnerables: {
@@ -473,7 +293,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'SetInvulnerables' | 'SetDesiredCandidates' | 'SetCandidacyBond' | 'RegisterAsCandidate' | 'LeaveIntent' | 'AddInvulnerable' | 'RemoveInvulnerable' | 'UpdateBond' | 'TakeCandidateSlot';
}
/** @name PalletCollatorSelectionError (250) */
/** @name PalletCollatorSelectionError (270) */
interface PalletCollatorSelectionError extends Enum {
readonly isTooManyCandidates: boolean;
readonly isTooFewEligibleCollators: boolean;
@@ -495,15 +315,15 @@ declare module '@polkadot/types/lookup' {
readonly type: 'TooManyCandidates' | 'TooFewEligibleCollators' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered' | 'InsertToCandidateListFailed' | 'RemoveFromCandidateListFailed' | 'DepositTooLow' | 'UpdateCandidateListFailed' | 'InsufficientBond' | 'TargetIsNotCandidate' | 'IdenticalDeposit' | 'InvalidUnreserve';
}
/** @name AssetHubPolkadotRuntimeSessionKeys (253) */
/** @name AssetHubPolkadotRuntimeSessionKeys (273) */
interface AssetHubPolkadotRuntimeSessionKeys extends Struct {
readonly aura: SpConsensusAuraEd25519AppEd25519Public;
}
/** @name SpConsensusAuraEd25519AppEd25519Public (254) */
/** @name SpConsensusAuraEd25519AppEd25519Public (274) */
interface SpConsensusAuraEd25519AppEd25519Public extends U8aFixed {}
/** @name CumulusPalletXcmpQueueOutboundChannelDetails (267) */
/** @name CumulusPalletXcmpQueueOutboundChannelDetails (287) */
interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
readonly recipient: u32;
readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -512,21 +332,21 @@ declare module '@polkadot/types/lookup' {
readonly lastIndex: u16;
}
/** @name CumulusPalletXcmpQueueOutboundState (268) */
/** @name CumulusPalletXcmpQueueOutboundState (288) */
interface CumulusPalletXcmpQueueOutboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
/** @name CumulusPalletXcmpQueueQueueConfigData (272) */
/** @name CumulusPalletXcmpQueueQueueConfigData (292) */
interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
readonly suspendThreshold: u32;
readonly dropThreshold: u32;
readonly resumeThreshold: u32;
}
/** @name CumulusPalletXcmpQueueCall (273) */
/** @name CumulusPalletXcmpQueueCall (293) */
interface CumulusPalletXcmpQueueCall extends Enum {
readonly isSuspendXcmExecution: boolean;
readonly isResumeXcmExecution: boolean;
@@ -545,7 +365,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold';
}
/** @name CumulusPalletXcmpQueueError (274) */
/** @name CumulusPalletXcmpQueueError (294) */
interface CumulusPalletXcmpQueueError extends Enum {
readonly isBadQueueConfig: boolean;
readonly isAlreadySuspended: boolean;
@@ -555,228 +375,16 @@ declare module '@polkadot/types/lookup' {
readonly type: 'BadQueueConfig' | 'AlreadySuspended' | 'AlreadyResumed' | 'TooManyActiveOutboundChannels' | 'TooBig';
}
/** @name XcmV2Response (280) */
interface XcmV2Response extends Enum {
readonly isNull: boolean;
readonly isAssets: boolean;
readonly asAssets: XcmV2MultiassetMultiAssets;
readonly isExecutionResult: boolean;
readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;
readonly isVersion: boolean;
readonly asVersion: u32;
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
}
/** @name XcmV2TraitsError (283) */
interface XcmV2TraitsError 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 XcmV2Xcm (307) */
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
/** @name XcmV2Instruction (309) */
interface XcmV2Instruction extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;
readonly isReserveAssetDeposited: boolean;
readonly asReserveAssetDeposited: XcmV2MultiassetMultiAssets;
readonly isReceiveTeleportedAsset: boolean;
readonly asReceiveTeleportedAsset: XcmV2MultiassetMultiAssets;
readonly isQueryResponse: boolean;
readonly asQueryResponse: {
readonly queryId: Compact<u64>;
readonly response: XcmV2Response;
readonly maxWeight: Compact<u64>;
} & Struct;
readonly isTransferAsset: boolean;
readonly asTransferAsset: {
readonly assets: XcmV2MultiassetMultiAssets;
readonly beneficiary: XcmV2MultiLocation;
} & Struct;
readonly isTransferReserveAsset: boolean;
readonly asTransferReserveAsset: {
readonly assets: XcmV2MultiassetMultiAssets;
readonly dest: XcmV2MultiLocation;
readonly xcm: XcmV2Xcm;
} & Struct;
readonly isTransact: boolean;
readonly asTransact: {
readonly originType: XcmV2OriginKind;
readonly requireWeightAtMost: Compact<u64>;
readonly call: XcmDoubleEncoded;
} & Struct;
readonly isHrmpNewChannelOpenRequest: boolean;
readonly asHrmpNewChannelOpenRequest: {
readonly sender: Compact<u32>;
readonly maxMessageSize: Compact<u32>;
readonly maxCapacity: Compact<u32>;
} & Struct;
readonly isHrmpChannelAccepted: boolean;
readonly asHrmpChannelAccepted: {
readonly recipient: Compact<u32>;
} & Struct;
readonly isHrmpChannelClosing: boolean;
readonly asHrmpChannelClosing: {
readonly initiator: Compact<u32>;
readonly sender: Compact<u32>;
readonly recipient: Compact<u32>;
} & Struct;
readonly isClearOrigin: boolean;
readonly isDescendOrigin: boolean;
readonly asDescendOrigin: XcmV2MultilocationJunctions;
readonly isReportError: boolean;
readonly asReportError: {
readonly queryId: Compact<u64>;
readonly dest: XcmV2MultiLocation;
readonly maxResponseWeight: Compact<u64>;
} & Struct;
readonly isDepositAsset: boolean;
readonly asDepositAsset: {
readonly assets: XcmV2MultiassetMultiAssetFilter;
readonly maxAssets: Compact<u32>;
readonly beneficiary: XcmV2MultiLocation;
} & Struct;
readonly isDepositReserveAsset: boolean;
readonly asDepositReserveAsset: {
readonly assets: XcmV2MultiassetMultiAssetFilter;
readonly maxAssets: Compact<u32>;
readonly dest: XcmV2MultiLocation;
readonly xcm: XcmV2Xcm;
} & Struct;
readonly isExchangeAsset: boolean;
readonly asExchangeAsset: {
readonly give: XcmV2MultiassetMultiAssetFilter;
readonly receive: XcmV2MultiassetMultiAssets;
} & Struct;
readonly isInitiateReserveWithdraw: boolean;
readonly asInitiateReserveWithdraw: {
readonly assets: XcmV2MultiassetMultiAssetFilter;
readonly reserve: XcmV2MultiLocation;
readonly xcm: XcmV2Xcm;
} & Struct;
readonly isInitiateTeleport: boolean;
readonly asInitiateTeleport: {
readonly assets: XcmV2MultiassetMultiAssetFilter;
readonly dest: XcmV2MultiLocation;
readonly xcm: XcmV2Xcm;
} & Struct;
readonly isQueryHolding: boolean;
readonly asQueryHolding: {
readonly queryId: Compact<u64>;
readonly dest: XcmV2MultiLocation;
readonly assets: XcmV2MultiassetMultiAssetFilter;
readonly maxResponseWeight: Compact<u64>;
} & Struct;
readonly isBuyExecution: boolean;
readonly asBuyExecution: {
readonly fees: XcmV2MultiAsset;
readonly weightLimit: XcmV2WeightLimit;
} & Struct;
readonly isRefundSurplus: boolean;
readonly isSetErrorHandler: boolean;
readonly asSetErrorHandler: XcmV2Xcm;
readonly isSetAppendix: boolean;
readonly asSetAppendix: XcmV2Xcm;
readonly isClearError: boolean;
readonly isClaimAsset: boolean;
readonly asClaimAsset: {
readonly assets: XcmV2MultiassetMultiAssets;
readonly ticket: XcmV2MultiLocation;
} & Struct;
readonly isTrap: boolean;
readonly asTrap: Compact<u64>;
readonly isSubscribeVersion: boolean;
readonly asSubscribeVersion: {
readonly queryId: Compact<u64>;
readonly maxResponseWeight: Compact<u64>;
} & 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 XcmV2OriginKind (310) */
interface XcmV2OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name XcmV2MultiassetMultiAssetFilter (311) */
interface XcmV2MultiassetMultiAssetFilter extends Enum {
readonly isDefinite: boolean;
readonly asDefinite: XcmV2MultiassetMultiAssets;
readonly isWild: boolean;
readonly asWild: XcmV2MultiassetWildMultiAsset;
readonly type: 'Definite' | 'Wild';
}
/** @name XcmV2MultiassetWildMultiAsset (312) */
interface XcmV2MultiassetWildMultiAsset extends Enum {
readonly isAll: boolean;
readonly isAllOf: boolean;
readonly asAllOf: {
readonly id: XcmV2MultiassetAssetId;
readonly fun: XcmV2MultiassetWildFungibility;
} & Struct;
readonly type: 'All' | 'AllOf';
}
/** @name XcmV2MultiassetWildFungibility (313) */
interface XcmV2MultiassetWildFungibility extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV2WeightLimit (314) */
interface XcmV2WeightLimit extends Enum {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
readonly asLimited: Compact<u64>;
readonly type: 'Unlimited' | 'Limited';
}
/** @name CumulusPalletXcmCall (336) */
/** @name CumulusPalletXcmCall (360) */
type CumulusPalletXcmCall = Null;
/** @name BpXcmBridgeHubRouterBridgeState (337) */
/** @name BpXcmBridgeHubRouterBridgeState (361) */
interface BpXcmBridgeHubRouterBridgeState extends Struct {
readonly deliveryFeeFactor: u128;
readonly isCongested: bool;
}
/** @name PalletXcmBridgeHubRouterCall (338) */
/** @name PalletXcmBridgeHubRouterCall (362) */
interface PalletXcmBridgeHubRouterCall extends Enum {
readonly isReportBridgeStatus: boolean;
readonly asReportBridgeStatus: {
@@ -786,19 +394,18 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ReportBridgeStatus';
}
/** @name AssetHubPolkadotRuntimeOriginCaller (384) */
/** @name AssetHubPolkadotRuntimeOriginCaller (414) */
interface AssetHubPolkadotRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
readonly isVoid: boolean;
readonly isPolkadotXcm: boolean;
readonly asPolkadotXcm: PalletXcmOrigin;
readonly isCumulusXcm: boolean;
readonly asCumulusXcm: CumulusPalletXcmOrigin;
readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm';
readonly type: 'System' | 'PolkadotXcm' | 'CumulusXcm';
}
/** @name CumulusPalletXcmOrigin (387) */
/** @name CumulusPalletXcmOrigin (417) */
interface CumulusPalletXcmOrigin extends Enum {
readonly isRelay: boolean;
readonly isSiblingParachain: boolean;
@@ -806,20 +413,17 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Relay' | 'SiblingParachain';
}
/** @name SpCoreVoid (388) */
type SpCoreVoid = Null;
/** @name AssetHubPolkadotRuntimeRuntime (468) */
/** @name AssetHubPolkadotRuntimeRuntime (497) */
type AssetHubPolkadotRuntimeRuntime = Null;
/** @name AssetsCommonRuntimeApiFungiblesAccessError (518) */
/** @name AssetsCommonRuntimeApiFungiblesAccessError (547) */
interface AssetsCommonRuntimeApiFungiblesAccessError extends Enum {
readonly isAssetIdConversionFailed: boolean;
readonly isAmountToBalanceConversionFailed: boolean;
readonly type: 'AssetIdConversionFailed' | 'AmountToBalanceConversionFailed';
}
/** @name CumulusPrimitivesCoreCollationInfo (519) */
/** @name CumulusPrimitivesCoreCollationInfo (548) */
interface CumulusPrimitivesCoreCollationInfo extends Struct {
readonly upwardMessages: Vec<Bytes>;
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
@@ -829,7 +433,7 @@ declare module '@polkadot/types/lookup' {
readonly headData: Bytes;
}
/** @name AssetHubPolkadotRuntimeRuntimeError (527) */
/** @name AssetHubPolkadotRuntimeRuntimeError (556) */
interface AssetHubPolkadotRuntimeRuntimeError extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSystemError;
@@ -867,7 +471,9 @@ declare module '@polkadot/types/lookup' {
readonly asPoolAssets: PalletAssetsError;
readonly isAssetConversion: boolean;
readonly asAssetConversion: PalletAssetConversionError;
readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'PoolAssets' | 'AssetConversion';
readonly isStateTrieMigration: boolean;
readonly asStateTrieMigration: PalletStateTrieMigrationError;
readonly type: 'System' | 'ParachainSystem' | 'Balances' | 'Vesting' | 'CollatorSelection' | 'Session' | 'XcmpQueue' | 'PolkadotXcm' | 'MessageQueue' | 'Utility' | 'Multisig' | 'Proxy' | 'Assets' | 'Uniques' | 'Nfts' | 'ForeignAssets' | 'PoolAssets' | 'AssetConversion' | 'StateTrieMigration';
}
} // declare module
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '16.2.2' };
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeRuntime, AssetHubKusamaRuntimeRuntimeError, AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, SpConsensusAuraSr25519AppSr25519Public } from '@polkadot/types/lookup';
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeRuntime, AssetHubKusamaRuntimeRuntimeError, AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, PalletRemoteProxyCall, PalletRemoteProxyError, PalletRemoteProxyRemoteProxyProof, SpConsensusAuraSr25519AppSr25519Public } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -15,6 +15,9 @@ declare module '@polkadot/types/types/registry' {
AssetHubKusamaRuntimeRuntimeError: AssetHubKusamaRuntimeRuntimeError;
AssetHubKusamaRuntimeRuntimeHoldReason: AssetHubKusamaRuntimeRuntimeHoldReason;
AssetHubKusamaRuntimeSessionKeys: AssetHubKusamaRuntimeSessionKeys;
PalletRemoteProxyCall: PalletRemoteProxyCall;
PalletRemoteProxyError: PalletRemoteProxyError;
PalletRemoteProxyRemoteProxyProof: PalletRemoteProxyRemoteProxyProof;
SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public;
} // InterfaceTypes
} // declare module
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeRuntime, AssetHubPolkadotRuntimeRuntimeError, AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, AssetsCommonRuntimeApiFungiblesAccessError, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmCall, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesCoreCollationInfo, CumulusPrimitivesParachainInherentParachainInherentData, FrameSupportDispatchDispatchInfo, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletXcmBridgeHubRouterCall, PalletXcmBridgeHubRouterEvent, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8AbridgedHrmpChannel, SpConsensusAuraEd25519AppEd25519Public, SpCoreVoid, SpTrieStorageProof, StagingParachainInfoCall, StagingXcmV4TraitsOutcome, XcmV2BodyId, XcmV2BodyPart, XcmV2Instruction, XcmV2Junction, XcmV2MultiAsset, XcmV2MultiLocation, XcmV2MultiassetAssetId, XcmV2MultiassetAssetInstance, XcmV2MultiassetFungibility, XcmV2MultiassetMultiAssetFilter, XcmV2MultiassetMultiAssets, XcmV2MultiassetWildFungibility, XcmV2MultiassetWildMultiAsset, XcmV2MultilocationJunctions, XcmV2NetworkId, XcmV2OriginKind, XcmV2Response, XcmV2TraitsError, XcmV2WeightLimit, XcmV2Xcm } from '@polkadot/types/lookup';
import type { AssetHubPolkadotRuntimeOriginCaller, AssetHubPolkadotRuntimeProxyType, AssetHubPolkadotRuntimeRuntime, AssetHubPolkadotRuntimeRuntimeError, AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, AssetsCommonRuntimeApiFungiblesAccessError, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmCall, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesCoreCollationInfo, CumulusPrimitivesParachainInherentParachainInherentData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletXcmBridgeHubRouterCall, PalletXcmBridgeHubRouterEvent, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8AbridgedHrmpChannel, SpConsensusAuraEd25519AppEd25519Public, SpTrieStorageProof, StagingParachainInfoCall } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -38,7 +38,6 @@ declare module '@polkadot/types/types/registry' {
CumulusPrimitivesCoreAggregateMessageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin;
CumulusPrimitivesCoreCollationInfo: CumulusPrimitivesCoreCollationInfo;
CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData;
FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo;
PalletCollatorSelectionCall: PalletCollatorSelectionCall;
PalletCollatorSelectionCandidateInfo: PalletCollatorSelectionCandidateInfo;
PalletCollatorSelectionError: PalletCollatorSelectionError;
@@ -48,29 +47,7 @@ declare module '@polkadot/types/types/registry' {
PolkadotPrimitivesV8AbridgedHostConfiguration: PolkadotPrimitivesV8AbridgedHostConfiguration;
PolkadotPrimitivesV8AbridgedHrmpChannel: PolkadotPrimitivesV8AbridgedHrmpChannel;
SpConsensusAuraEd25519AppEd25519Public: SpConsensusAuraEd25519AppEd25519Public;
SpCoreVoid: SpCoreVoid;
SpTrieStorageProof: SpTrieStorageProof;
StagingParachainInfoCall: StagingParachainInfoCall;
StagingXcmV4TraitsOutcome: StagingXcmV4TraitsOutcome;
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;
} // InterfaceTypes
} // declare module
@@ -25,7 +25,7 @@ import type { StatementKind } from '@polkadot/types/interfaces/claims';
import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractExecResultU64, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractInstantiateResultU64, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractConstructorSpecV4, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractContractSpecV5, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEnvironmentV4, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractEventSpecV3, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMessageSpecV3, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractMetadataV5, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractConstructorSpecV4, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractContractSpecV5, ContractContractSpecV6, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEnvironmentV4, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractEventSpecV3, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMessageSpecV3, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractMetadataV5, ContractMetadataV6, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractReviveProjectInfo, ContractReviveProjectSource, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';
@@ -285,6 +285,7 @@ declare module '@polkadot/types/types/registry' {
ContractContractSpecV3: ContractContractSpecV3;
ContractContractSpecV4: ContractContractSpecV4;
ContractContractSpecV5: ContractContractSpecV5;
ContractContractSpecV6: ContractContractSpecV6;
ContractCryptoHasher: ContractCryptoHasher;
ContractDiscriminant: ContractDiscriminant;
ContractDisplayName: ContractDisplayName;
@@ -335,12 +336,15 @@ declare module '@polkadot/types/types/registry' {
ContractMetadataV3: ContractMetadataV3;
ContractMetadataV4: ContractMetadataV4;
ContractMetadataV5: ContractMetadataV5;
ContractMetadataV6: ContractMetadataV6;
ContractProject: ContractProject;
ContractProjectContract: ContractProjectContract;
ContractProjectInfo: ContractProjectInfo;
ContractProjectSource: ContractProjectSource;
ContractProjectV0: ContractProjectV0;
ContractReturnFlags: ContractReturnFlags;
ContractReviveProjectInfo: ContractReviveProjectInfo;
ContractReviveProjectSource: ContractReviveProjectSource;
ContractSelector: ContractSelector;
ContractStorageKey: ContractStorageKey;
ContractStorageLayout: ContractStorageLayout;
+7 -7
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.5.1",
"@polkadot/x-bigint": "^13.5.1",
"@polkadot/util": "^13.5.2",
"@polkadot/x-bigint": "^13.5.2",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/types": "16.0.1",
"@polkadot/types-augment": "16.0.1",
"@polkadot/types-support": "16.0.1",
"@polkadot/util-crypto": "^13.5.1"
"@polkadot/types": "16.2.2",
"@polkadot/types-augment": "16.2.2",
"@polkadot/types-support": "16.2.2",
"@polkadot/util-crypto": "^13.5.2"
}
}
@@ -90,7 +90,8 @@ describe('BitVec', (): void => {
expect(
new BitVec(registry, '0x0837').inspect()
).toEqual({
outer: [new Uint8Array([0]), new Uint8Array([0x08, 0x37])]
// For input '0x0837' (yields 16 bits): compactToU8a(16) is 16<<2 = 64.
outer: [new Uint8Array([64]), new Uint8Array([0x08, 0x37])]
});
});
});
+1 -1
View File
@@ -29,7 +29,7 @@ function decodeBitVec (value?: AnyU8a): [number, Uint8Array] {
if (Array.isArray(value) || isString(value)) {
const u8a = u8aToU8a(value);
return [u8a.length / 8, u8a];
return [u8a.length * 8, u8a];
}
return decodeBitVecU8a(value);
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '16.2.2' };
@@ -5,6 +5,15 @@ import type { Codec, CodecClass, Registry } from '../types/index.js';
import { u8aToHex } from '@polkadot/util';
const MAX_DEPTH = 1024;
/** @internal */
function isComplexType (Type: CodecClass): boolean {
const typeName = Type.name?.toLowerCase() || '';
return ['enum', 'hashmap', 'linkage', 'null', 'option', 'range', 'rangeinclusive', 'result', 'struct', 'tuple', 'vec', 'vecfixed'].includes(typeName);
}
/** @internal */
function formatFailure (registry: Registry, fn: 'decodeU8a' | 'decodeU8aStruct' | 'decodeU8aVec', _result: unknown[], { message }: Error, u8a: Uint8Array, i: number, count: number, Type: CodecClass, key?: string): string {
let type = '';
@@ -63,6 +72,10 @@ export function decodeU8aStruct (registry: Registry, result: [string, Codec][],
let offset = 0;
let i = 0;
if (count > MAX_DEPTH && isComplexType(Types[i])) {
throw new Error(`decodeU8aStruct: Maximum depth exceeded, received ${count} elements, limit ${MAX_DEPTH}`);
}
try {
while (i < count) {
const value = new Types[i](registry, u8a.subarray(offset));
@@ -86,6 +99,11 @@ export function decodeU8aStruct (registry: Registry, result: [string, Codec][],
*/
export function decodeU8aVec <T extends Codec = Codec> (registry: Registry, result: unknown[], u8a: Uint8Array, startAt: number, Type: CodecClass<T>): [number, number] {
const count = result.length;
if (count > MAX_DEPTH && isComplexType(Type)) {
throw new Error(`decodeU8aVec: Maximum depth exceeded, received ${count} elements, limit ${MAX_DEPTH}`);
}
let offset = startAt;
let i = 0;
+4 -4
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/types-codec": "16.2.2",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/types": "16.0.1"
"@polkadot/types": "16.2.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '16.2.2' };
+7 -7
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^13.5.1",
"@polkadot/types": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/types-create": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/networks": "^13.5.2",
"@polkadot/types": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/types-create": "16.2.2",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/api": "16.0.1"
"@polkadot/api": "16.2.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '16.2.2' };
+2 -2
View File
@@ -18,10 +18,10 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.5.1",
"@polkadot/util": "^13.5.2",
"tslib": "^2.8.1"
}
}
+26 -2
View File
@@ -49,7 +49,31 @@ To retrieve the runtime versions -
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-ver.ts`
NOTE: This all works for manual updating, but for an easier process run from root for each respective chain: `node ./scripts/metadata-get.mjs`
## NOTE:
1. This all works for manual updating, but for an easier process run from root for each respective chain: `node ./scripts/metadata-get.mjs`.
2. If the chain is already live, running it locally is unnecessary — update the metadata & types using `node ./scripts/metadata-get.mjs --url <ws_chain_url>`.
3. Run `yarn test:one packages/types/src/metadata/v14` for Metadata checks
## Caveat
Occasionally, running the tests may result in a failure due to outdated metadata. The error message might look like this:
```bash
/api/packages/types/src/metadata/v14/Metadata.spec.ts
undefined / undefined
```
### How to Fix
1. Navigate to the file mentioned in the error.
2. Paste the line `writeJson(json, version, type, 'json');` into the `try` block.
3. Rerun the tests — they should pass now.
4. **Important:** After verifying that the tests pass, revert your changes and run the tests again to ensure everything still works as expected.
## extraction (Legacy)
@@ -67,4 +91,4 @@ To retrieve the metadata -
- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-hex.json`
- Run `yarn build:interfaces` to re-generate all TS
- Run `yarn test:one packages/types/src/metadatra/v14` for Metadata checks
- Run `yarn test:one packages/types/src/metadata/v14` for Metadata checks
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -8,6 +8,16 @@
export default {
"methods": [
"account_nextIndex",
"archive_v1_body",
"archive_v1_call",
"archive_v1_finalizedHeight",
"archive_v1_genesisHash",
"archive_v1_hashByHeight",
"archive_v1_header",
"archive_v1_stopStorage",
"archive_v1_storage",
"archive_v1_storageDiff",
"archive_v1_storageDiff_stopStorageDiff",
"author_hasKey",
"author_hasSessionKeys",
"author_insertKey",
@@ -56,8 +66,7 @@ export default {
"childstate_getStorageHash",
"childstate_getStorageSize",
"dev_getBlockStats",
"engine_createBlock",
"engine_finalizeBlock",
"offchain_localStorageClear",
"offchain_localStorageGet",
"offchain_localStorageSet",
"payment_queryFeeDetails",
File diff suppressed because it is too large Load Diff
@@ -9,7 +9,7 @@ export default {
"specName": "statemine",
"implName": "statemine",
"authoringVersion": 1,
"specVersion": 1004000,
"specVersion": 1005001,
"implVersion": 0,
"apis": [
[
@@ -66,7 +66,7 @@ export default {
],
[
"0x91b1c8b16328eb92",
1
2
],
[
"0x9ffb505aa738d69c",
@@ -86,6 +86,6 @@ export default {
]
],
"transactionVersion": 15,
"systemVersion": 0,
"stateVersion": 0
"systemVersion": 1,
"stateVersion": 1
};
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -8,6 +8,16 @@
export default {
"methods": [
"account_nextIndex",
"archive_v1_body",
"archive_v1_call",
"archive_v1_finalizedHeight",
"archive_v1_genesisHash",
"archive_v1_hashByHeight",
"archive_v1_header",
"archive_v1_stopStorage",
"archive_v1_storage",
"archive_v1_storageDiff",
"archive_v1_storageDiff_stopStorageDiff",
"author_hasKey",
"author_hasSessionKeys",
"author_insertKey",
@@ -56,8 +66,7 @@ export default {
"childstate_getStorageHash",
"childstate_getStorageSize",
"dev_getBlockStats",
"engine_createBlock",
"engine_finalizeBlock",
"offchain_localStorageClear",
"offchain_localStorageGet",
"offchain_localStorageSet",
"payment_queryFeeDetails",
File diff suppressed because it is too large Load Diff
@@ -9,7 +9,7 @@ export default {
"specName": "statemint",
"implName": "statemint",
"authoringVersion": 1,
"specVersion": 1004000,
"specVersion": 1005001,
"implVersion": 0,
"apis": [
[
@@ -62,7 +62,7 @@ export default {
],
[
"0x91b1c8b16328eb92",
1
2
],
[
"0x9ffb505aa738d69c",
@@ -86,6 +86,6 @@ export default {
]
],
"transactionVersion": 15,
"systemVersion": 0,
"stateVersion": 0
"systemVersion": 1,
"stateVersion": 1
};
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '16.2.2' };
+9 -9
View File
@@ -18,20 +18,20 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "16.0.1",
"version": "16.2.2",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.5.1",
"@polkadot/types-augment": "16.0.1",
"@polkadot/types-codec": "16.0.1",
"@polkadot/types-create": "16.0.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@polkadot/keyring": "^13.5.2",
"@polkadot/types-augment": "16.2.2",
"@polkadot/types-codec": "16.2.2",
"@polkadot/types-create": "16.2.2",
"@polkadot/util": "^13.5.2",
"@polkadot/util-crypto": "^13.5.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@polkadot/keyring": "^13.5.1",
"@polkadot/types-support": "16.0.1"
"@polkadot/keyring": "^13.5.2",
"@polkadot/types-support": "16.2.2"
}
}
+4 -2
View File
@@ -330,9 +330,11 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
constructor (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, { preamble, version }: CreateOptions = {}) {
const versionsLength = registry.metadata.extrinsic.versions.length;
const highestSupportedVersion = versionsLength ? registry.metadata.extrinsic.versions[versionsLength - 1] : undefined;
super(registry, decodeExtrinsic(registry, value, version || highestSupportedVersion, preamble), undefined, preamble);
// TODO: Once ExtrinsicV5 is fully supported update this to use the highest supported verion which is the last item of the array
const supportedVersion = versionsLength ? registry.metadata.extrinsic.versions[0] : undefined;
super(registry, decodeExtrinsic(registry, value, version || supportedVersion, preamble), undefined, preamble);
}
/**
+2 -1
View File
@@ -14,7 +14,8 @@ export const UNMASK_VERSION = 0b01111111;
export const DEFAULT_PREAMBLE = 'bare';
// Latest extrinsic version is v5, which has backwards compatibility for v4 signed extrinsics
export const LATEST_EXTRINSIC_VERSION = 5;
// However is not fully supported so LATEST_EXTRINSIC_VERSION is configured as 4 in the meantime.
export const LATEST_EXTRINSIC_VERSION = 4;
export const VERSION_MASK = 0b00111111;
@@ -127,6 +127,13 @@ const spec = {
docs: 'Vec<Text>',
environment: 'ContractEnvironmentV4'
},
ContractContractSpecV6: {
constructors: 'Vec<ContractConstructorSpecV4>',
messages: 'Vec<ContractMessageSpecV3>',
events: 'Vec<ContractEventSpecV3>',
docs: 'Vec<Text>',
environment: 'ContractEnvironmentV4'
},
ContractDisplayName: 'SiPath',
ContractEventParamSpecV0: {
@@ -221,7 +228,7 @@ const latest = {
ContractEventParamSpecLatest: 'ContractEventParamSpecV2',
ContractMessageParamSpecLatest: 'ContractMessageParamSpecV2',
ContractMessageSpecLatest: 'ContractMessageSpecV3',
ContractMetadataLatest: 'ContractMetadataV5'
ContractMetadataLatest: 'ContractMetadataV6'
};
export default {
@@ -234,6 +241,10 @@ export default {
source: 'ContractProjectSource',
contract: 'ContractProjectContract'
},
ContractReviveProjectInfo: {
source: 'ContractReviveProjectSource',
contract: 'ContractProjectContract'
},
ContractMetadataV0: {
metadataVersion: 'Text',
types: 'Vec<Si0Type>',
@@ -261,6 +272,11 @@ export default {
spec: 'ContractContractSpecV5',
version: 'u64'
},
ContractMetadataV6: {
types: 'Vec<PortableType>',
spec: 'ContractContractSpecV6',
version: 'u64'
},
ContractMetadata: {
_enum: {
V0: 'ContractMetadataV0',
@@ -268,7 +284,8 @@ export default {
V2: 'ContractMetadataV2',
V3: 'ContractMetadataV3',
V4: 'ContractMetadataV4',
V5: 'ContractMetadataV5'
V5: 'ContractMetadataV5',
V6: 'ContractMetadataV6'
}
},
ContractProjectV0: {
@@ -301,6 +318,16 @@ export default {
compiler: 'Text',
wasm: 'Raw'
},
ContractReviveProjectSource: {
_alias: {
wasmHash: 'hash',
wasm: 'contract_binary'
},
wasmHash: '[u8; 32]',
language: 'Text',
compiler: 'Text',
wasm: 'Raw'
},
ContractEnvironmentV4: {
_alias: {
hashType: 'hash'
@@ -103,6 +103,15 @@ export interface ContractContractSpecV5 extends Struct {
readonly environment: ContractEnvironmentV4;
}
/** @name ContractContractSpecV6 */
export interface ContractContractSpecV6 extends Struct {
readonly constructors: Vec<ContractConstructorSpecV4>;
readonly messages: Vec<ContractMessageSpecV3>;
readonly events: Vec<ContractEventSpecV3>;
readonly docs: Vec<Text>;
readonly environment: ContractEnvironmentV4;
}
/** @name ContractCryptoHasher */
export interface ContractCryptoHasher extends Enum {
readonly isBlake2x256: boolean;
@@ -304,11 +313,13 @@ export interface ContractMetadata extends Enum {
readonly asV4: ContractMetadataV4;
readonly isV5: boolean;
readonly asV5: ContractMetadataV5;
readonly type: 'V0' | 'V1' | 'V2' | 'V3' | 'V4' | 'V5';
readonly isV6: boolean;
readonly asV6: ContractMetadataV6;
readonly type: 'V0' | 'V1' | 'V2' | 'V3' | 'V4' | 'V5' | 'V6';
}
/** @name ContractMetadataLatest */
export interface ContractMetadataLatest extends ContractMetadataV5 {}
export interface ContractMetadataLatest extends ContractMetadataV6 {}
/** @name ContractMetadataV0 */
export interface ContractMetadataV0 extends Struct {
@@ -349,6 +360,13 @@ export interface ContractMetadataV5 extends Struct {
readonly version: u64;
}
/** @name ContractMetadataV6 */
export interface ContractMetadataV6 extends Struct {
readonly types: Vec<PortableType>;
readonly spec: ContractContractSpecV6;
readonly version: u64;
}
/** @name ContractProject */
export interface ContractProject extends ITuple<[ContractProjectInfo, ContractMetadata]> {}
@@ -387,6 +405,20 @@ export interface ContractProjectV0 extends Struct {
readonly spec: ContractContractSpecV0;
}
/** @name ContractReviveProjectInfo */
export interface ContractReviveProjectInfo extends Struct {
readonly source: ContractReviveProjectSource;
readonly contract: ContractProjectContract;
}
/** @name ContractReviveProjectSource */
export interface ContractReviveProjectSource extends Struct {
readonly wasmHash: U8aFixed;
readonly language: Text;
readonly compiler: Text;
readonly wasm: Raw;
}
/** @name ContractSelector */
export interface ContractSelector extends U8aFixed {}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '16.0.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '16.2.2' };
+193 -193
View File
@@ -447,27 +447,27 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:16.0.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:16.2.2, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@polkadot/api-base": "npm:16.0.1"
"@polkadot/rpc-augment": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-augment": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/api-base": "npm:16.2.2"
"@polkadot/rpc-augment": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-augment": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:16.0.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:16.2.2, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@polkadot/rpc-core": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/rpc-core": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
@@ -477,93 +477,93 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@polkadot/api": "npm:16.0.1"
"@polkadot/api-augment": "npm:16.0.1"
"@polkadot/keyring": "npm:^13.5.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-create": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/api": "npm:16.2.2"
"@polkadot/api-augment": "npm:16.2.2"
"@polkadot/keyring": "npm:^13.5.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-create": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/api-derive@npm:16.0.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:16.2.2, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@polkadot/api": "npm:16.0.1"
"@polkadot/api-augment": "npm:16.0.1"
"@polkadot/api-base": "npm:16.0.1"
"@polkadot/rpc-augment": "npm:16.0.1"
"@polkadot/rpc-core": "npm:16.0.1"
"@polkadot/rpc-provider": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/api": "npm:16.2.2"
"@polkadot/api-augment": "npm:16.2.2"
"@polkadot/api-base": "npm:16.2.2"
"@polkadot/rpc-augment": "npm:16.2.2"
"@polkadot/rpc-core": "npm:16.2.2"
"@polkadot/rpc-provider": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/api@npm:16.0.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:16.2.2, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:16.0.1"
"@polkadot/api-base": "npm:16.0.1"
"@polkadot/api-derive": "npm:16.0.1"
"@polkadot/keyring": "npm:^13.5.1"
"@polkadot/rpc-augment": "npm:16.0.1"
"@polkadot/rpc-core": "npm:16.0.1"
"@polkadot/rpc-provider": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-augment": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-create": "npm:16.0.1"
"@polkadot/types-known": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/api-augment": "npm:16.2.2"
"@polkadot/api-base": "npm:16.2.2"
"@polkadot/api-derive": "npm:16.2.2"
"@polkadot/keyring": "npm:^13.5.2"
"@polkadot/rpc-augment": "npm:16.2.2"
"@polkadot/rpc-core": "npm:16.2.2"
"@polkadot/rpc-provider": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-augment": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-create": "npm:16.2.2"
"@polkadot/types-known": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
eventemitter3: "npm:^5.0.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-test@npm:0.83.2"
"@polkadot/dev-test@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev-test@npm:0.83.3"
dependencies:
jsdom: "npm:^24.0.0"
tslib: "npm:^2.7.0"
checksum: 10/afe60165272a09d5c9f08e3aec0015621350dc7394ee8ff121d5803c576c7601b176b753716203abba4a81a142b529da066fe4c73f39387b018bdde69fef7a10
checksum: 10/c03e0c5c5c5d22394c63948b35157b97f8f734a6a8403c89990c55b2657f2b284996aef8613815b2b576b271a126244d7f0a2c9ddece438c5799f273be2e1c69
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev-ts@npm:0.83.2"
"@polkadot/dev-ts@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev-ts@npm:0.83.3"
dependencies:
json5: "npm:^2.2.3"
tslib: "npm:^2.7.0"
typescript: "npm:^5.5.4"
checksum: 10/abca4df87a0682285bf5e5644ab8522820d53e0dffc124bfe540b7fccc55532057d1912629584bb04648e855e110896b36e55536d53556a166fc3d33bcc27b39
checksum: 10/a2ddc4dba934758cc24f02e8acbfa5a5f5295ad874f42c1bea8548a6dfa97c882b127a279001831caedc8d474becb905286847e0f64e8efe7063b6bac4830112
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.83.2":
version: 0.83.2
resolution: "@polkadot/dev@npm:0.83.2"
"@polkadot/dev@npm:^0.83.3":
version: 0.83.3
resolution: "@polkadot/dev@npm:0.83.3"
dependencies:
"@eslint/js": "npm:^8.56.0"
"@polkadot/dev-test": "npm:^0.83.2"
"@polkadot/dev-ts": "npm:^0.83.2"
"@polkadot/dev-test": "npm:^0.83.3"
"@polkadot/dev-ts": "npm:^0.83.3"
"@rollup/plugin-alias": "npm:^5.1.1"
"@rollup/plugin-commonjs": "npm:^25.0.8"
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.5"
@@ -628,73 +628,73 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 10/42a67e0f2401fc13bdffff86398958e326613461eaa294fb5b435037d636b94cbbbce81b1fadbdf3c0553798d3bc5df43ef6af2250f75e312f01e52b665eddfe
checksum: 10/f34171f4776f0ade59e750e6c43db56fccc800e5c5c2e7796299e83072534257fa5e7478b8159a4b265e96d36c9fe380d56326c21cdbdf51dda3221c269601be
languageName: node
linkType: hard
"@polkadot/keyring@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/keyring@npm:13.5.1"
"@polkadot/keyring@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/keyring@npm:13.5.2"
dependencies:
"@polkadot/util": "npm:13.5.1"
"@polkadot/util-crypto": "npm:13.5.1"
"@polkadot/util": "npm:13.5.2"
"@polkadot/util-crypto": "npm:13.5.2"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.5.1
"@polkadot/util-crypto": 13.5.1
checksum: 10/e040c077ff1227ec7d4b911e60fc2588144dc31a775c301c56fa6b0b9e7e74cfd9fec4b51f1340bb3c3e0b322e217d4759176a35f7fda500a5776dde279fab86
"@polkadot/util": 13.5.2
"@polkadot/util-crypto": 13.5.2
checksum: 10/f1a8a3fd93d0c3ecac19f2b99e358baecc4ef2f17b510765a889098e51156819c83fe4ad3eb1f84cd350a16f8b9a17e357bff89482834ccf00b31fce8a457c23
languageName: node
linkType: hard
"@polkadot/networks@npm:13.5.1, @polkadot/networks@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/networks@npm:13.5.1"
"@polkadot/networks@npm:13.5.2, @polkadot/networks@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/networks@npm:13.5.2"
dependencies:
"@polkadot/util": "npm:13.5.1"
"@polkadot/util": "npm:13.5.2"
"@substrate/ss58-registry": "npm:^1.51.0"
tslib: "npm:^2.8.0"
checksum: 10/836835ffcf58027cb450f17400c733eb84272cb7de0b1a86f72a0c1b1bb35ea3c628f8dd418e185f163ff0963ec931f41618b9405088a1d6fe2fbf5e5ab09709
checksum: 10/5a5147d657bfded3f3d6af24603c07fcf32affdc84a7e7ec183b306da32a75f1ce2af8ac4cff6b2b9f9b6ff5f8895bb3ee2c2eac1d994b305785631a3973637e
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:16.0.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:16.2.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@polkadot/rpc-core": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/rpc-core": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:16.0.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:16.2.2, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@polkadot/keyring": "npm:^13.5.1"
"@polkadot/rpc-augment": "npm:16.0.1"
"@polkadot/rpc-provider": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/keyring": "npm:^13.5.2"
"@polkadot/rpc-augment": "npm:16.2.2"
"@polkadot/rpc-provider": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@npm:16.0.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:16.2.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@polkadot/keyring": "npm:^13.5.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/x-fetch": "npm:^13.5.1"
"@polkadot/x-global": "npm:^13.5.1"
"@polkadot/x-ws": "npm:^13.5.1"
"@polkadot/keyring": "npm:^13.5.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
"@polkadot/x-fetch": "npm:^13.5.2"
"@polkadot/x-global": "npm:^13.5.2"
"@polkadot/x-ws": "npm:^13.5.2"
"@substrate/connect": "npm:0.8.11"
eventemitter3: "npm:^5.0.1"
mock-socket: "npm:^9.3.1"
@@ -710,19 +710,19 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@polkadot/api": "npm:16.0.1"
"@polkadot/api-augment": "npm:16.0.1"
"@polkadot/api-derive": "npm:16.0.1"
"@polkadot/rpc-augment": "npm:16.0.1"
"@polkadot/rpc-provider": "npm:16.0.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-augment": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-create": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/x-ws": "npm:^13.5.1"
"@polkadot/api": "npm:16.2.2"
"@polkadot/api-augment": "npm:16.2.2"
"@polkadot/api-derive": "npm:16.2.2"
"@polkadot/rpc-augment": "npm:16.2.2"
"@polkadot/rpc-provider": "npm:16.2.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-augment": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-create": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
"@polkadot/x-ws": "npm:^13.5.2"
"@types/yargs": "npm:^17.0.33"
comment-parser: "npm:^1.4.1"
handlebars: "npm:^4.7.8"
@@ -737,113 +737,113 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@npm:16.0.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:16.2.2, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:16.0.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:16.2.2, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-augment": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/x-bigint": "npm:^13.5.1"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-augment": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
"@polkadot/x-bigint": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-create@npm:16.0.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:16.2.2, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:16.0.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:16.2.2, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@polkadot/api": "npm:16.0.1"
"@polkadot/networks": "npm:^13.5.1"
"@polkadot/types": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-create": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/api": "npm:16.2.2"
"@polkadot/networks": "npm:^13.5.2"
"@polkadot/types": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-create": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:16.0.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:16.2.2, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util": "npm:^13.5.2"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/types@npm:16.0.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:16.2.2, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@polkadot/keyring": "npm:^13.5.1"
"@polkadot/types-augment": "npm:16.0.1"
"@polkadot/types-codec": "npm:16.0.1"
"@polkadot/types-create": "npm:16.0.1"
"@polkadot/types-support": "npm:16.0.1"
"@polkadot/util": "npm:^13.5.1"
"@polkadot/util-crypto": "npm:^13.5.1"
"@polkadot/keyring": "npm:^13.5.2"
"@polkadot/types-augment": "npm:16.2.2"
"@polkadot/types-codec": "npm:16.2.2"
"@polkadot/types-create": "npm:16.2.2"
"@polkadot/types-support": "npm:16.2.2"
"@polkadot/util": "npm:^13.5.2"
"@polkadot/util-crypto": "npm:^13.5.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.1"
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:13.5.1, @polkadot/util-crypto@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/util-crypto@npm:13.5.1"
"@polkadot/util-crypto@npm:13.5.2, @polkadot/util-crypto@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/util-crypto@npm:13.5.2"
dependencies:
"@noble/curves": "npm:^1.3.0"
"@noble/hashes": "npm:^1.3.3"
"@polkadot/networks": "npm:13.5.1"
"@polkadot/util": "npm:13.5.1"
"@polkadot/networks": "npm:13.5.2"
"@polkadot/util": "npm:13.5.2"
"@polkadot/wasm-crypto": "npm:^7.4.1"
"@polkadot/wasm-util": "npm:^7.4.1"
"@polkadot/x-bigint": "npm:13.5.1"
"@polkadot/x-randomvalues": "npm:13.5.1"
"@polkadot/x-bigint": "npm:13.5.2"
"@polkadot/x-randomvalues": "npm:13.5.2"
"@scure/base": "npm:^1.1.7"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.5.1
checksum: 10/280a8fb838e8ee30da92a73c5c578977c2d0d823dd03143ebdd3a0a9dc276649a6476a1cbf0200140ed116146b7202c7cd5c0be58271e12326d4aff4a42788e4
"@polkadot/util": 13.5.2
checksum: 10/1082ba9e772ea3299df11b025aea74eb72ca27f892b2a1b09a8a7b5ece87e5b1274723bc0cf5e2f441f7fb4f17ef11f164dfd49c25ea0fd86b7004d39425dff5
languageName: node
linkType: hard
"@polkadot/util@npm:13.5.1, @polkadot/util@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/util@npm:13.5.1"
"@polkadot/util@npm:13.5.2, @polkadot/util@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/util@npm:13.5.2"
dependencies:
"@polkadot/x-bigint": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-textdecoder": "npm:13.5.1"
"@polkadot/x-textencoder": "npm:13.5.1"
"@polkadot/x-bigint": "npm:13.5.2"
"@polkadot/x-global": "npm:13.5.2"
"@polkadot/x-textdecoder": "npm:13.5.2"
"@polkadot/x-textencoder": "npm:13.5.2"
"@types/bn.js": "npm:^5.1.6"
bn.js: "npm:^5.2.1"
tslib: "npm:^2.8.0"
checksum: 10/26b7c564012afec2c877dbf265021883335a28f369c84d59eeaf6bba72a9fd4e70d259cf24619332e9c44fc55093d9f51ec212a7d48fcae92e962f42f4310d6f
checksum: 10/7fc4f59a6420ab74aac426eae32577a67947dd6cc215d9b011edde6f078f2a426284888353d6740b2e4dd4768a92e0b82acc6f10549e4c6d7857e4d3099662de
languageName: node
linkType: hard
@@ -927,77 +927,77 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:13.5.1, @polkadot/x-bigint@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/x-bigint@npm:13.5.1"
"@polkadot/x-bigint@npm:13.5.2, @polkadot/x-bigint@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/x-bigint@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
tslib: "npm:^2.8.0"
checksum: 10/726bc63bc9a51dbfc21de3913ac546c296ca82b05a78014a9de7268a22c4db85552c6143ab058e0bf3e92defaa36a7d7a803a3deb6607e5928f408ee245dc55e
checksum: 10/1fdd3baa0e92f6917088ce7c89584d21bc0a54255f1f948ac0c2f35b4e653439a20f2c83ef0fbb049169d96871eead61f76324241cb092253afd15476075b307
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/x-fetch@npm:13.5.1"
"@polkadot/x-fetch@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/x-fetch@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
node-fetch: "npm:^3.3.2"
tslib: "npm:^2.8.0"
checksum: 10/f6b25c63c7d01b18b814c75bd5af2b614c26b127730902a0c2f385ded9d990037873ad6118e64692d071a5a20a11a2dcee2a80fbe105f5391f128f7153685267
checksum: 10/073886f45431b1c27e2ca9d8d32e81aa94383d990aa93638ec7e7ce0f0940ea556c373395776eee4302654cf40a69099f7de16f80fc5f6239e19fd6375d32b8d
languageName: node
linkType: hard
"@polkadot/x-global@npm:13.5.1, @polkadot/x-global@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/x-global@npm:13.5.1"
"@polkadot/x-global@npm:13.5.2, @polkadot/x-global@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/x-global@npm:13.5.2"
dependencies:
tslib: "npm:^2.8.0"
checksum: 10/6db58bbed5c6506c2f6d542cd836b242750a01d93e30fb6f19543a43ca7573a96813df44344df5d9ec938a913e2ddb8af0258f51770d3aa9f9bcbb896d8e5d1b
checksum: 10/619ae3952d8595f3c666030fa3880b68002a4d8706cd5fed3ef21d41c3e4ab4c1d08d2e31a92a7eee3950e82ef374c97f9713c381209ae769021b286a29312df
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:13.5.1":
version: 13.5.1
resolution: "@polkadot/x-randomvalues@npm:13.5.1"
"@polkadot/x-randomvalues@npm:13.5.2":
version: 13.5.2
resolution: "@polkadot/x-randomvalues@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.5.1
"@polkadot/util": 13.5.2
"@polkadot/wasm-util": "*"
checksum: 10/cadd8c7f9e7acf219c7cdc45bd3e7473e2da5577919936eb1721a297bfaeb45498e3f651200b9333aab95666d09671f915c8ac262924a922c23520ae494acf72
checksum: 10/fb191738d3cad4141057c2e1561a1463a22bfaa7e4c925a52d51d9c4c68853433fa0cf82bf1d1c97916ddd74402073c0bbc0e3978dc9cc48d5b31101673b1656
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:13.5.1":
version: 13.5.1
resolution: "@polkadot/x-textdecoder@npm:13.5.1"
"@polkadot/x-textdecoder@npm:13.5.2":
version: 13.5.2
resolution: "@polkadot/x-textdecoder@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
tslib: "npm:^2.8.0"
checksum: 10/705b3f3b3c757cf2f7077e71f6c765c088e6636e5580408a8f95bf9b2e17c59bfa0846d89ba423131422a0bbb381fe0eff13cd7ac3d366272ebe269876789a52
checksum: 10/fd463a2ddb86244a5d4bfb43b51f4038afea8c697a8bc0dd3910b85fa7579e40f708471670241abc950b4d8093d3340ba9c2b8691acd4f64442d46f80807dbe1
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:13.5.1":
version: 13.5.1
resolution: "@polkadot/x-textencoder@npm:13.5.1"
"@polkadot/x-textencoder@npm:13.5.2":
version: 13.5.2
resolution: "@polkadot/x-textencoder@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
tslib: "npm:^2.8.0"
checksum: 10/d5309785674a034e21717236f7f2a438da77d29c514c9cfae8517c8db690e1cff55820cfbac6f2307c9e1d4dc2c4e24ad01f915b585823af5ee73737441d1766
checksum: 10/48052703a18486a3d07d3a12875fce8b25dbf51ecf5996886d62fe08eee3ff190b73fa3ea39eb847a0a25e58815044e7689ee02f856d95641c301fadf29bddd5
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^13.5.1":
version: 13.5.1
resolution: "@polkadot/x-ws@npm:13.5.1"
"@polkadot/x-ws@npm:^13.5.2":
version: 13.5.2
resolution: "@polkadot/x-ws@npm:13.5.2"
dependencies:
"@polkadot/x-global": "npm:13.5.1"
"@polkadot/x-global": "npm:13.5.2"
tslib: "npm:^2.8.0"
ws: "npm:^8.18.0"
checksum: 10/7c4f5d9178efb663b03303053f2e83bec2fc87ad29306116237549eb004d8f64a945570da966ddab99657db6499fc6056c51daf11dff62095a701c9fb231eb2a
checksum: 10/eb1a8af0f17d80a861e5b0142f0d2f092a49eadd09f1c9ec471c22c1e9f690b51e3edea110dcf1240649eaf71805b39c9f68812bba3e3450db59a94d8e96cd7b
languageName: node
linkType: hard
@@ -7951,7 +7951,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": "npm:^0.83.2"
"@polkadot/dev": "npm:^0.83.3"
"@polkadot/typegen": "workspace:packages/typegen"
"@types/node": "npm:^22.10.5"
languageName: unknown