Compare commits

..
41 Commits
Author SHA1 Message Date
github-actions[bot] c054f96c80 [CI Skip] release/stable 14.0.1
skip-checks: true
2024-10-02 20:49:29 +00:00
Tarik Gul 11c1b998be 14.0.1 (#5995) 2024-10-02 23:41:55 +03:00
Tarik Gul fdebf8b74b 14.0.1 (#5994) 2024-10-02 23:22:35 +03:00
github-actions[bot] 7c91ee5ccc [CI Skip] bump/beta 13.2.2-1-x
skip-checks: true
2024-10-02 19:25:09 +00:00
Tarik Gulandbee344 c146727510 TransactionExtension, ExtrinsicV5 (#5976)
* TransactionExtension Start

* Add V5_VERSION logic to necessary classes

* Fix latest version to 5

* Add v5 dir

* Add v5 types to interfaces

* Cleanup paths

* Update ExtrinsicSignature V5

* Cleanup v5 folders

* nits

* signed works

* general works?

* Clean linter, and imports

* fix typing

* Change sign in v5 to hash all payloads

* remove SignV5Options

* Remove SignatureV5Options

* Change versioning

* added bitmasks

* cleanup

* change version to constant

* Add tests

* Decouple payload v5 from v4

* Add helper fn to get signed extension version from the registry

* Add version to encoding

* Cleanup tests

* renamed getSignedExtensionVersion to getTransactionExtensionVersion

* removed this.type for v5

* undo this.type removal

* replaced signedExtensionVersion by transactionExtensionVersion for v5 in ExtrinsicSignature

* unfinished Preamble Class

* Revert "unfinished Preamble Class"

This reverts commit 0b1c350fcc97e6f724ed84f66742be472c5daa71.

* Added test for decoding

* Fix test

* preamble typo

* updated GeneralExtrinsic [WIP]

* added generalExtrinsic

* General Extrinsic

* linting and renaming

* renaming

* Extend the v5 signed extrinsic test

* Unmask preamble

* Set payload to GeneralExtrinsicPayload

* Add test for GeneralExtrinsicPayload

* Start GeneralExtrinsicEncoded tests

* Add GeneralExt as a replacement class

* Export GeneralExt

* Fix nits

* Start decodeu8a

* GeneralExt tests

* GeneralExt fix

* updated decodeu8a

* Fix decoding

* Add error handling for invalid version

* remove fluff

* Fix version in GeneralExtrinsic

* fixes

* add parent class methods as errors

* Reorg some types

* Add test for GeneralExtrinsic

* Fix compatibility with GeneralExtrinsic

* fix structure of GeneralExtrinsic

* Add another test

* cleanup

* Fix decoding bug for bare

* fix change from bare to signed

* linting

* Fix encodinglength

* Set default to preamble to bre

* Fix tests

* fixed version setting

* Add test

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-10-02 15:17:32 -04:00
github-actions[bot] 096da21c76 [CI Skip] bump/beta 13.2.2-0-x
skip-checks: true
2024-10-01 12:34:42 +00:00
Daria d3c16b5cb4 choosing AccountId20 type if the address is 20 bytes (#5991) 2024-10-01 20:27:19 +08:00
github-actions[bot] 87b4cecc1b [CI Skip] release/stable 13.2.1
skip-checks: true
2024-09-23 13:32:34 +00:00
Tarik Gul d79a5301fb 13.2.1 (#5989) 2024-09-23 09:25:08 -04:00
github-actions[bot] 7481983e44 [CI Skip] bump/beta 13.1.2-1-x
skip-checks: true
2024-09-23 13:03:06 +00:00
Tarik Gul 47291533e6 Fix logging for older runtimes for runtimeapi decoration (#5988) 2024-09-23 15:55:26 +03:00
github-actions[bot] a15d0dd0df [CI Skip] bump/beta 13.1.2-0-x
skip-checks: true
2024-09-19 12:36:04 +00:00
Tarik Gul 1dca21d607 Generate Runtime Apis Dynamically (#5986)
* Generate Runtime Apis Dynamically

* Add inline docs
2024-09-19 15:28:41 +03:00
github-actions[bot] b19d5d4dbc [CI Skip] release/stable 13.1.1
skip-checks: true
2024-09-18 01:04:12 +00:00
Tarik Gul c6c9a1259c 13.1.1 (#5985) 2024-09-18 03:56:41 +03:00
github-actions[bot] 8b1191a17f [CI Skip] bump/beta 13.0.2-3-x
skip-checks: true
2024-09-17 18:10:38 +00:00
Tarik Gul 94a900583f Bump yarn to 4.5.0 (#5983) 2024-09-17 21:03:21 +03:00
github-actions[bot] 0581fc71ce [CI Skip] bump/beta 13.0.2-2-x
skip-checks: true
2024-09-17 13:34:54 +00:00
Tarik Gul 73a5566ded Initialize the API with metadata V15 (#5941)
* Initialize the API with metadata V15

* cleanup consoles

* lint

* add check for hash

* Fix error messaging, and check for correct metdataapi version

* Add support for at

* Apply fixed

* Change compariosn

* fix comparison again

* adjustments

* Fix metadata decoding with raw types

* Fix errors to log in debug mode

* Add check for supported versions

* Fix imports

* Fix registry assignment
2024-09-17 16:27:19 +03:00
github-actions[bot] ce6e1e8825 [CI Skip] bump/beta 13.0.2-1-x
skip-checks: true
2024-09-16 22:02:00 +00:00
Cameron Marshall b04e7b0cee implement xcm dry run api (#5970)
* add definitions for xcm dry run api

* replace ITuple with Tuple

* replace ITuple with tuple syntax

* update types for xcm v3 and v4

* remove console log

* revert enum ts error logging

* fix dry run call param type name

* lint
2024-09-16 17:54:45 -04:00
github-actions[bot] 50332dab75 [CI Skip] bump/beta 13.0.2-0-x
skip-checks: true
2024-09-16 13:59:47 +00:00
Tarik Gul e615f855d1 Upgrade common to 13.1.1 (#5982) 2024-09-16 16:52:28 +03:00
github-actions[bot] 87bee8ac29 [CI Skip] release/stable 13.0.1
skip-checks: true
2024-09-10 22:00:45 +00:00
Tarik Gul 49724380f2 13.0.1 (#5979) 2024-09-11 00:53:28 +03:00
github-actions[bot] 68d928742d [CI Skip] bump/beta 12.4.3-5-x
skip-checks: true
2024-09-10 18:04:08 +00:00
Tarik Gul fc9c5c8279 Bump yarn to 4.1.1 (#5978) 2024-09-10 20:56:49 +03:00
github-actions[bot] d402744e7d [CI Skip] bump/beta 12.4.3-4-x
skip-checks: true
2024-09-09 16:07:49 +00:00
Tarik Gul cf7e7cd92a Update Kusama augmented types to 1.3.0 (#5972)
* Update Kusama augmented types to 1.3.0

* add

* adjust tsconfig build
2024-09-09 19:00:25 +03:00
github-actions[bot] e71c2b0cc5 [CI Skip] bump/beta 12.4.3-3-x
skip-checks: true
2024-09-05 20:09:21 +00:00
Tarik Gul 6aef459464 Add kusama v1.3.0 upgrade (#5971) 2024-09-05 23:02:04 +03:00
github-actions[bot] 5954ec8d98 [CI Skip] bump/beta 12.4.3-2-x
skip-checks: true
2024-09-05 13:13:56 +00:00
Tarik Gul 1f751e07fc Keep assetID hex as Option for toPayload (#5968)
* Keep assetID hex as Option for toPayload

* Resolve last issues with hex and u8a conversion for assetId

* Inline comment

* Fix types

* Fix test

* adjust merit of test
2024-09-05 09:06:35 -04:00
github-actions[bot] b872fc1e9c [CI Skip] bump/beta 12.4.3-1-x
skip-checks: true
2024-09-02 17:31:28 +00:00
Tarik Gul 1e604cc5fb Change assetId type in SignerPayloadJSON to HexString (#5967)
* Change assetId type in SignerPayloadJSON to HexString

* fix encoding

* Fix tests

* also fix createClass
2024-09-02 13:24:06 -04:00
github-actions[bot] 25ab1d1239 [CI Skip] bump/beta 12.4.3-0-x
skip-checks: true
2024-08-29 00:57:47 +00:00
Tarik Gul df6530831d Bump dev, and typescript (#5964)
* Bump dev, and typescript

* dedupe

* lint
2024-08-29 03:50:22 +03:00
github-actions[bot] 0bfa069f1b [CI Skip] release/stable 12.4.2
skip-checks: true
2024-08-21 11:52:56 +00:00
Tarik Gul a204048320 12.4.2 (#5962) 2024-08-21 14:45:16 +03:00
github-actions[bot] a887cd0159 [CI Skip] bump/beta 12.4.2-0-x
skip-checks: true
2024-08-21 11:33:25 +00:00
Tarik Gul 8cddcd2513 Fix derive.balances.all when data is undefined (#5961) 2024-08-21 14:25:48 +03:00
99 changed files with 19558 additions and 8625 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,4 +12,4 @@ logFilters:
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.4.0.cjs
yarnPath: .yarn/releases/yarn-4.5.0.cjs
+56 -1
View File
@@ -1,6 +1,61 @@
# CHANGELOG
## 12.4.1 Aug 16, 2024
## 14.0.1 Oct 2, 2024
Changes:
- TransactionExtension, ExtrinsicV5
- This is a very large feature that gives support for Extrinsic V5. This is not a breaking change, but because of the impact it has it is a Major bump.
- This PR acts as a forward compatible feature that still focuses on v4, but allows for the use of v5 when:
a: The metadata extrinsic version is set to 5
b: The extrinsic version is set to 5 when manually constructing transactions.
- The PR allows the decoding of all v4, and v5 extrinsics including {bare, signed, general} transactions.
- Address parsing issues for H160 accounts in api.derive.accounts.{*} ([#5991](https://github.com/polkadot-js/api/pull/5991))
## 13.2.1 Sep 23, 2024
Changes:
- Generate Runtime Apis Dynamically ([#5986](https://github.com/polkadot-js/api/pull/5986))
- Fix logging for older runtimes for runtime-api decoration ([#5988](https://github.com/polkadot-js/api/pull/5988))
## 13.1.1 Sep 17, 2024
Changes:
- Upgrade polkadot/common to 13.1.1 ([#5982](https://github.com/polkadot-js/api/pull/5982))
- Implement xcm dryRunApi ([#5970](https://github.com/polkadot-js/api/pull/5970))
- Initialize the API with metadata V15 ([#5941](https://github.com/polkadot-js/api/pull/5941))
- Bump yarn to 4.5.0 ([#5983](https://github.com/polkadot-js/api/pull/5983))
## 13.0.1 Sep 10, 2024
Breaking Changes:
- Change assetId type in `SignerPayloadJSON` to HexString ([#5967](https://github.com/polkadot-js/api/pull/5967))
- Keep assetId hex as an Option for `toPayload` ([#5968](https://github.com/polkadot-js/api/pull/5968))
NOTE: This is part of the current change to generalize the SignerPayloadJSON in order to simplify its integration across other tools. The return value of `assetId` field with `toPayload` will always be its true type now, which in this case is `Option<TAssetConversion>` where `TAssetConversion` is equal to `MultiLocation | AssetId`.
Changes:
- Bump dev and typescript ([#5964](https://github.com/polkadot-js/api/pull/5964))
- Bump yarn to 4.1.1 ([#5978](https://github.com/polkadot-js/api/pull/5978))
- Add kusama types-known v1.3.0 upgrade ([#5971](https://github.com/polkadot-js/api/pull/5971))
- Update Kusama augmented types to 1.3.0 ([#5972](https://github.com/polkadot-js/api/pull/5972))
- Please reference the PR above to view any changes in the runtime types
## 12.4.2 Aug 21, 2024
Changes:
- Fix derive.balances.all when data is undefined ([#5961](https://github.com/polkadot-js/api/pull/5961))
## 12.4.1 Aug 19, 2024
Contributed:
+3 -1
View File
@@ -1,5 +1,5 @@
3512 Jaco Bump deps (#5785)
90 Tarik Gul 12.4.1 (#5958)
109 Tarik Gul 14.0.1 (#5995)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
@@ -59,12 +59,14 @@
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
1 Cameron Marshall implement xcm dry run api (#5970)
1 chriswmercer little readme tweak (#279)
1 codingsh #2182 - add: search for docs (#2232)
1 coolcorexix Investigate 4559 v2 (#4608)
1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
1 Daniel Maricic Fixed typo in README (#2402)
1 Daniel Savu fix: Generate custom type definitions (#4224)
1 Daria choosing AccountId20 type if the address is 20 bytes (#5991)
1 David Don't log full error (#2952)
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
+6 -6
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.4.0",
"packageManager": "yarn@4.5.0",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"versions": {
"git": "12.4.1",
"npm": "12.4.1"
"git": "14.0.1",
"npm": "14.0.1"
},
"workspaces": [
"packages/*"
@@ -40,11 +40,11 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.79.3",
"@polkadot/dev": "^0.80.1",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.15.0"
},
"resolutions": {
"typescript": "^5.3.3"
"typescript": "^5.5.4"
}
}
+8 -8
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "12.4.1",
"@polkadot/rpc-augment": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-augment": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/api-base": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
+35 -26
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec, ITuple } from '@polkadot/types-codec/types';
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/types/lookup';
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -80,10 +80,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxLocks: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of named reserves that can exist on an account.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxReserves: u32 & AugmentedConst<ApiType>;
/**
@@ -204,9 +208,13 @@ declare module '@polkadot/api-base/types/consts' {
};
coretime: {
/**
* The ParaId of the broker system parachain.
* The ParaId of the coretime chain.
**/
brokerId: u32 & AugmentedConst<ApiType>;
/**
* The coretime chain pot location.
**/
brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -290,18 +298,10 @@ declare module '@polkadot/api-base/types/consts' {
* this value.
**/
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Duration of the signed phase.
**/
signedPhase: u32 & AugmentedConst<ApiType>;
/**
* Base reward for a signed solution
**/
signedRewardBase: u128 & AugmentedConst<ApiType>;
/**
* Duration of the unsigned phase.
**/
unsignedPhase: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
@@ -389,6 +389,14 @@ declare module '@polkadot/api-base/types/consts' {
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
**/
heapSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
* should be provided to the message queue for servicing enqueued items `on_idle`.
* Useful for parachains to process messages at the same block they are received.
*
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
**/
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
* can happen. Once there are more stale pages than this, then historical pages may be
@@ -397,10 +405,11 @@ declare module '@polkadot/api-base/types/consts' {
maxStale: u32 & AugmentedConst<ApiType>;
/**
* The amount of weight (if any) which should be provided to the message queue for
* servicing enqueued items.
* servicing enqueued items `on_initialize`.
*
* This may be legitimately `None` in the case that you will call
* `ServiceQueues::service_queues` manually.
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
* it run in `on_idle`.
**/
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
@@ -515,10 +524,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxLocks: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of named reserves that can exist on an account.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxReserves: u32 & AugmentedConst<ApiType>;
/**
@@ -556,6 +569,15 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
onDemandAssignmentProvider: {
/**
* The maximum number of blocks some historical revenue
* information stored for.
**/
maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
/**
* Identifier for the internal revenue balance.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The default value for the spot traffic multiplier.
**/
@@ -872,7 +894,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
ss58Prefix: u16 & AugmentedConst<ApiType>;
/**
* Get the chain's current version.
* Get the chain's in-code version.
**/
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
/**
@@ -944,19 +966,6 @@ declare module '@polkadot/api-base/types/consts' {
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
+75 -84
View File
@@ -16,6 +16,10 @@ declare module '@polkadot/api-base/types/errors' {
* The given asset ID already has an assigned conversion rate and cannot be re-created.
**/
AlreadyExists: AugmentedError<ApiType>;
/**
* Overflow ocurred when calculating the inverse rate.
**/
Overflow: AugmentedError<ApiType>;
/**
* The given asset ID is unknown.
**/
@@ -274,7 +278,7 @@ declare module '@polkadot/api-base/types/errors' {
AlreadyDelegating: AugmentedError<ApiType>;
/**
* The account currently has votes attached to it and the operation cannot succeed until
* these are removed, either through `unvote` or `reap_vote`.
* these are removed through `remove_vote`.
**/
AlreadyVoting: AugmentedError<ApiType>;
/**
@@ -323,10 +327,19 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
coretime: {
/**
* Failed to transfer assets to the coretime chain
**/
AssetTransferFailed: AugmentedError<ApiType>;
/**
* The paraid making the call is not the coretime brokerage system parachain.
**/
NotBroker: AugmentedError<ApiType>;
/**
* Requested revenue information `when` parameter was in the future from the current
* block height.
**/
RequestedFutureRevenue: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -485,7 +498,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
* Submission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
@@ -598,6 +611,10 @@ declare module '@polkadot/api-base/types/errors' {
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* The max member count for the rank has been reached.
**/
TooManyMembers: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -648,6 +665,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
@@ -950,7 +971,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
DurationTooSmall: AugmentedError<ApiType>;
/**
* The operation would result in a receipt worth an insignficant value.
* The operation would result in a receipt worth an insignificant value.
**/
MakesDust: AugmentedError<ApiType>;
/**
@@ -1046,6 +1067,10 @@ declare module '@polkadot/api-base/types/errors' {
* pool at a time.
**/
AccountBelongsToOtherPool: AugmentedError<ApiType>;
/**
* The pool or member delegation has already migrated to delegate stake.
**/
AlreadyMigrated: AugmentedError<ApiType>;
/**
* Bonding extra is restricted to the exact pending reward amount.
**/
@@ -1137,10 +1162,18 @@ declare module '@polkadot/api-base/types/errors' {
* No imbalance in the ED deposit for the pool.
**/
NothingToAdjust: AugmentedError<ApiType>;
/**
* No slash pending that can be applied to the member.
**/
NothingToSlash: AugmentedError<ApiType>;
/**
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
**/
NotKickerOrDestroying: AugmentedError<ApiType>;
/**
* The pool or member delegation has not migrated yet to delegate stake.
**/
NotMigrated: AugmentedError<ApiType>;
/**
* The caller does not have nominating permissions for the pool.
**/
@@ -1149,6 +1182,10 @@ declare module '@polkadot/api-base/types/errors' {
* The pool is not open to join
**/
NotOpen: AugmentedError<ApiType>;
/**
* This call is not allowed in the current state of the pallet.
**/
NotSupported: AugmentedError<ApiType>;
/**
* The transaction could not be executed due to overflow risk for the pool.
**/
@@ -1183,11 +1220,6 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
onDemandAssignmentProvider: {
/**
* The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the
* call is invalid.
**/
InvalidParaId: AugmentedError<ApiType>;
/**
* The order queue is full, `place_order` will not continue.
**/
@@ -1203,24 +1235,6 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
paraInclusion: {
/**
* Bitfield consists of zeros only.
**/
BitfieldAllZeros: AugmentedError<ApiType>;
/**
* Multiple bitfields submitted by same validator or validators out of order by index.
**/
BitfieldDuplicateOrUnordered: AugmentedError<ApiType>;
/**
* A bitfield that references a freed core,
* either intentionally or as part of a concluded
* invalid dispute.
**/
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
/**
* Candidate scheduled despite pending candidate already existing for the para.
**/
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
/**
* The candidate's relay-parent was not allowed. Either it was
* not recent enough or it didn't advance based on the last parachain block.
@@ -1251,10 +1265,6 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid (bad signature, unknown validator, etc.) backing.
**/
InvalidBacking: AugmentedError<ApiType>;
/**
* Invalid signature
**/
InvalidBitfieldSignature: AugmentedError<ApiType>;
/**
* Invalid group index in core assignment.
**/
@@ -1288,30 +1298,10 @@ declare module '@polkadot/api-base/types/errors' {
* Code upgrade prematurely.
**/
PrematureCodeUpgrade: AugmentedError<ApiType>;
/**
* Scheduled cores out of order.
**/
ScheduledOutOfOrder: AugmentedError<ApiType>;
/**
* A different relay parent was provided compared to the on-chain stored one.
**/
UnexpectedRelayParent: AugmentedError<ApiType>;
/**
* Candidate submitted but para not scheduled.
**/
UnscheduledCandidate: AugmentedError<ApiType>;
/**
* Backed candidates are out of order (core index) or contain duplicates.
**/
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
/**
* Dispute statement sets are out of order or contain duplicates.
**/
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
/**
* Validator indices are out of order or contains duplicates.
**/
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
/**
* The validation data hash does not match expected.
**/
@@ -1320,10 +1310,6 @@ declare module '@polkadot/api-base/types/errors' {
* Validator index out of bounds.
**/
ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
/**
* Availability bitfield has unexpected size.
**/
WrongBitfieldSize: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -1331,25 +1317,10 @@ declare module '@polkadot/api-base/types/errors' {
};
paraInherent: {
/**
* A candidate was backed by a disabled validator
* A candidate was filtered during inherent execution. This should have only been done
* during creation.
**/
BackedByDisabled: AugmentedError<ApiType>;
/**
* A candidate was backed even though the paraid was not scheduled.
**/
BackedOnUnscheduledCore: AugmentedError<ApiType>;
/**
* Disputed candidate that was concluded invalid.
**/
CandidateConcludedInvalid: AugmentedError<ApiType>;
/**
* A dispute statement was invalid.
**/
DisputeInvalid: AugmentedError<ApiType>;
/**
* The ordering of dispute statements was invalid.
**/
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
CandidatesFilteredDuringExecution: AugmentedError<ApiType>;
/**
* The data given to the inherent will result in an overweight block.
**/
@@ -1393,6 +1364,10 @@ declare module '@polkadot/api-base/types/errors' {
* Parachain cannot currently schedule a code upgrade.
**/
CannotUpgradeCode: AugmentedError<ApiType>;
/**
* Invalid validation code size.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* Para is not registered in our system.
**/
@@ -1504,6 +1479,10 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage has already been noted on-chain.
**/
AlreadyNoted: AugmentedError<ApiType>;
/**
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
**/
NoCost: AugmentedError<ApiType>;
/**
* The user is not authorized to perform this action.
**/
@@ -1690,6 +1669,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
@@ -1729,14 +1712,14 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid para code size.
**/
CodeTooLarge: AugmentedError<ApiType>;
/**
* Registering parachain with empty code is not allowed.
**/
EmptyCode: AugmentedError<ApiType>;
/**
* Invalid para head data size.
**/
HeadDataTooLarge: AugmentedError<ApiType>;
/**
* The validation code is invalid.
**/
InvalidCode: AugmentedError<ApiType>;
/**
* The caller is not the owner of this Id.
**/
@@ -2058,6 +2041,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a controller account.
**/
NotController: AugmentedError<ApiType>;
/**
* Not enough funds available to withdraw.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Items are not sorted and unique.
**/
@@ -2070,6 +2057,10 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
RewardDestinationRestricted: AugmentedError<ApiType>;
/**
* There are too many nominators in the system. Governance needs to adjust the staking
* settings to keep things safe for the runtime.
@@ -2084,6 +2075,10 @@ declare module '@polkadot/api-base/types/errors' {
* staking settings to keep things safe for the runtime.
**/
TooManyValidators: AugmentedError<ApiType>;
/**
* Operation not allowed for virtual stakers.
**/
VirtualStakerNotAllowed: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -2105,6 +2100,10 @@ declare module '@polkadot/api-base/types/errors' {
* and the new runtime.
**/
InvalidSpecName: AugmentedError<ApiType>;
/**
* A multi-block migration is ongoing and prevents the current code from being replaced.
**/
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
/**
* Suicide called when the account has non-default composite data.
**/
@@ -2153,10 +2152,6 @@ declare module '@polkadot/api-base/types/errors' {
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal, bounty or spend at that index.
**/
@@ -2305,10 +2300,6 @@ declare module '@polkadot/api-base/types/errors' {
* The unlock operation cannot succeed because there are still consumers of the lock.
**/
InUse: AugmentedError<ApiType>;
/**
* Invalid non-concrete asset.
**/
InvalidAssetNotConcrete: AugmentedError<ApiType>;
/**
* Invalid asset, reserve chain could not be determined for it.
**/
+35 -18
View File
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -343,7 +343,7 @@ declare module '@polkadot/api-base/types/events' {
* A solution was stored with the given compute.
*
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
* the stored solution was submitted in the signed phase by a miner with the `AccountId`.
* Otherwise, the solution was stored either during the unsigned phase or by
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
* room for this one.
@@ -614,7 +614,7 @@ declare module '@polkadot/api-base/types/events' {
**/
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
/**
* A receipt was transfered.
* A receipt was transferred.
**/
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
/**
@@ -828,13 +828,13 @@ declare module '@polkadot/api-base/types/events' {
};
onDemandAssignmentProvider: {
/**
* An order was placed at some spot price amount.
* An order was placed at some spot price amount by orderer ordered_by
**/
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128], { paraId: u32, spotPrice: u128 }>;
OnDemandOrderPlaced: AugmentedEvent<ApiType, [paraId: u32, spotPrice: u128, orderedBy: AccountId32], { paraId: u32, spotPrice: u128, orderedBy: AccountId32 }>;
/**
* The value of the spot traffic multiplier changed.
* The value of the spot price has likely changed
**/
SpotTrafficSet: AugmentedEvent<ApiType, [traffic: u128], { traffic: u128 }>;
SpotPriceSet: AugmentedEvent<ApiType, [spotPrice: u128], { spotPrice: u128 }>;
/**
* Generic event
**/
@@ -844,15 +844,15 @@ declare module '@polkadot/api-base/types/events' {
/**
* A candidate was backed. `[candidate, head_data]`
**/
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate was included. `[candidate, head_data]`
**/
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32, u32]>;
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
/**
* A candidate timed out. `[candidate, head_data]`
**/
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV6CandidateReceipt, Bytes, u32]>;
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
/**
* Some upward messages have been received and will be processed.
**/
@@ -862,6 +862,18 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
parameters: {
/**
* A Parameter was set.
*
* Is also emitted when the value was not changed.
**/
Updated: AugmentedEvent<ApiType, [key: StagingKusamaRuntimeRuntimeParametersKey, oldValue: Option<StagingKusamaRuntimeRuntimeParametersValue>, newValue: Option<StagingKusamaRuntimeRuntimeParametersValue>], { key: StagingKusamaRuntimeRuntimeParametersKey, oldValue: Option<StagingKusamaRuntimeRuntimeParametersValue>, newValue: Option<StagingKusamaRuntimeRuntimeParametersValue> }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
paras: {
/**
* A para has been queued to execute pending actions. `para_id`
@@ -1095,6 +1107,19 @@ declare module '@polkadot/api-base/types/events' {
* The given task can never be executed since it is overweight.
**/
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* Cancel a retry configuration for some task.
**/
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* The given task was unable to be retried since the agenda is full at that block or there
* was not enough weight to reschedule it.
**/
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
/**
* Set a retry configuration for some task.
**/
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8 }>;
/**
* Scheduled some task.
**/
@@ -1367,14 +1392,6 @@ declare module '@polkadot/api-base/types/events' {
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: u64], { index: u32, paymentId: u64 }>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
+128 -54
View File
@@ -10,7 +10,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bo
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, StagingXcmV4Instruction, StagingXcmV4Xcm, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -245,10 +245,14 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Any liquidity locks on some account balances.
* NOTE: Should only be accessed when setting, changing and freeing a lock.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Named reserves on some account balances.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -958,7 +962,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Freeze locks on account balances.
**/
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Holds on account balances.
**/
@@ -973,10 +977,14 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Any liquidity locks on some account balances.
* NOTE: Should only be accessed when setting, changing and freeing a lock.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Named reserves on some account balances.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1073,13 +1081,13 @@ declare module '@polkadot/api-base/types/storage' {
/**
* A reverse lookup from the pool's account id to its id.
*
* This is only used for slashing. In all other instances, the pool id is used, and the
* accounts are deterministically derived from it.
* This is only used for slashing and on automatic withdraw update. In all other instances, the
* pool id is used, and the accounts are deterministically derived from it.
**/
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
**/
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
@@ -1116,21 +1124,27 @@ declare module '@polkadot/api-base/types/storage' {
};
onDemandAssignmentProvider: {
/**
* The order storage entry. Uses a VecDeque to be able to push to the front of the
* queue from the scheduler on session boundaries.
* Queue entries that are currently bound to a particular core due to core affinity.
**/
onDemandQueue: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
**/
freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
* `ParaId` on two or more `CoreIndex`es.
**/
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Keeps track of the multiplier used to calculate the current spot price for the on demand
* assigner.
* Overall status of queue (both free + affinity entries)
**/
spotTraffic: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Keeps track of accumulated revenue from on demand order sales.
**/
revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -1138,17 +1152,13 @@ declare module '@polkadot/api-base/types/storage' {
};
paraInclusion: {
/**
* The latest bitfield for each validator, referred to by their index in the validator set.
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
* included head of the para.
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
* the migration.
**/
availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Candidates pending availability by `ParaId`.
**/
pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The commitments of candidates pending availability, by `ParaId`.
**/
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1167,7 +1177,17 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Scraped on chain data for extracting resolved disputes as well as backing votes.
**/
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
parameters: {
/**
* Stored parameters.
**/
parameters: AugmentedQuery<ApiType, (arg: StagingKusamaRuntimeRuntimeParametersKey | { Inflation: any } | string | Uint8Array) => Observable<Option<StagingKusamaRuntimeRuntimeParametersValue>>, [StagingKusamaRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [StagingKusamaRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
@@ -1202,11 +1222,23 @@ declare module '@polkadot/api-base/types/storage' {
**/
futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The block number at which the planned code change is expected for a para.
* The block number at which the planned code change is expected for a parachain.
*
* The change will be applied after the first parablock for this ID included which executes
* in the context of a relay chain block with a number >= `expected_at`.
**/
futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming future code upgrades.
*
* Each item is a pair of the parachain and the expected block at which the upgrade should be
* applied. The upgrade will be applied at the given relay chain block. In contrast to
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
* progress or not.
*
* Ordered ascending by block number.
**/
futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The head-data of every registered para.
**/
@@ -1267,8 +1299,10 @@ declare module '@polkadot/api-base/types/storage' {
**/
upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* The list of upcoming code upgrades. Each item is a pair of which para performs a code
* upgrade and at which relay-chain block it is expected at.
* The list of upcoming code upgrades.
*
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
* is expected at.
*
* Ordered ascending by block number.
**/
@@ -1291,7 +1325,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* This is used by the relay-chain to communicate that there are restrictions for performing
* an upgrade for this parachain.
@@ -1303,7 +1337,7 @@ declare module '@polkadot/api-base/types/storage' {
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
* the format will require migration of parachains.
**/
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1311,10 +1345,8 @@ declare module '@polkadot/api-base/types/storage' {
};
paraScheduler: {
/**
* One entry for each availability core. Entries are `None` if the core is not currently
* occupied. Can be temporarily `Some` if scheduled but not occupied.
* The i'th parachain belongs to the i'th core, with the remaining cores all being
* parathread-multiplexers.
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
* remaining cores all being on demand parachain multiplexers.
*
* Bounded by the maximum of either of these two values:
* * The number of parachains and parathread multiplexers
@@ -1323,10 +1355,8 @@ declare module '@polkadot/api-base/types/storage' {
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* One entry for each availability core. The `VecDeque` represents the assignments to be
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
* as there is one currently being scheduled. Not using `None` here would overwrite the
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
* scheduled on that core. The value contained here will not be valid after the end of
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
**/
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
@@ -1363,7 +1393,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* All ongoing or concluded disputes for the last several sessions.
**/
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
* the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1396,7 +1426,7 @@ declare module '@polkadot/api-base/types/storage' {
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
* When in doubt, use `Sessions` API instead.
**/
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The earliest session for which previous session info is stored.
**/
@@ -1404,13 +1434,13 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Executor parameter set for a given session index
**/
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Session information in a rolling window.
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
* Does not have any entries before the session index in the first session change notification.
**/
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
@@ -1426,7 +1456,7 @@ declare module '@polkadot/api-base/types/storage' {
* The parachain attestation keys of the validators actively participating in parachain
* consensus. This should be the same length as `ActiveValidatorIndices`.
**/
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All allowed relay-parents.
**/
@@ -1444,7 +1474,7 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Validators pending dispute slashes.
**/
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* `ValidatorSetCount` per session.
**/
@@ -1575,6 +1605,10 @@ declare module '@polkadot/api-base/types/storage' {
* identities.
**/
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
/**
* Retry configurations for items to be executed, indexed by task address.
**/
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
/**
* Generic query
**/
@@ -1781,6 +1815,10 @@ declare module '@polkadot/api-base/types/storage' {
* Counter for the related counted storage map
**/
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Counter for the related counted storage map
**/
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current era index.
*
@@ -1794,6 +1832,16 @@ declare module '@polkadot/api-base/types/storage' {
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
**/
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Indices of validators that have offended in the active era. The offenders are disabled for a
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
* implicitly means that the implementor also controls the max number of disabled validators.
*
* The vec is always kept sorted so that we can find whether a given validator has previously
* offended using binary search.
**/
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Rewards for the last [`Config::HistoryDepth`] eras.
* If reward hasn't been set or has been removed then 0 reward is returned.
@@ -1902,6 +1950,12 @@ declare module '@polkadot/api-base/types/storage' {
* When this value is not set, no limits are enforced.
**/
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maximum staked rewards, i.e. the percentage of the era inflation that
* is used for stake rewards.
* See [Era payout](./index.html#era-payout).
**/
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The maximum validator count before we stop allowing new validators to join.
*
@@ -1956,18 +2010,6 @@ declare module '@polkadot/api-base/types/storage' {
* All slashing events on nominators, mapped by era to the highest slash value of the era.
**/
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Indices of validators that have offended in the active era and whether they are currently
* disabled.
*
* This value should be a superset of disabled validators since not all offences lead to the
* validator being disabled (if there was no slash). This is needed to track the percentage of
* validators that have offended in the current era, ensuring a new era is forced if
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
* whether a given validator has previously offended using binary search. It gets cleared when
* the era ends.
**/
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
*
@@ -2008,6 +2050,15 @@ declare module '@polkadot/api-base/types/storage' {
* and slash value of the era.
**/
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Stakers whose funds are managed by other pallets.
*
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
* via low level apis. We keep track of them to do minimal integrity checks.
**/
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
@@ -2077,6 +2128,10 @@ declare module '@polkadot/api-base/types/storage' {
* Extrinsics data for the current block (maps an extrinsic's index to its data).
**/
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Whether all inherents have been applied.
**/
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
**/
@@ -2227,6 +2282,15 @@ declare module '@polkadot/api-base/types/storage' {
* The latest available query index.
**/
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
/**
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
* will be stored here.
* Runtime APIs can fetch the XCM that was executed by accessing this value.
*
* 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, []>;
/**
* Fungible assets which we know are locked on a remote chain.
**/
@@ -2236,6 +2300,16 @@ declare module '@polkadot/api-base/types/storage' {
* then the destinations whose XCM version is unknown are considered unreachable.
**/
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
* Only one XCM program will be recorded at a time.
* This is meant to be used in runtime APIs, and it's advised it stays false
* for all other use cases, so as to not degrade regular performance.
*
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
* implementation in the XCM executor configuration.
**/
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The Latest versions that we know various locations support.
**/
+60 -6
View File
@@ -6,27 +6,32 @@
import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
import type { BTreeMap, Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreIndex, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, ValidatorId, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { SessionIndex } from '@polkadot/types/interfaces/session';
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
import type { VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -148,7 +153,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xdf6acb689907609b/4 */
/** 0xdf6acb689907609b/5 */
core: {
/**
* Execute the given block.
@@ -157,7 +162,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Initialize a block with the given header.
**/
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
/**
* Returns the version of the runtime.
**/
@@ -167,6 +172,21 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x91b1c8b16328eb92/1 */
dryRunApi: {
/**
* Dry run call
**/
dryRunCall: AugmentedCall<ApiType, (origin: OriginCaller | { System: any } | string | Uint8Array, call: RuntimeCall | IMethod | string | Uint8Array) => Observable<Result<CallDryRunEffects, XcmDryRunApiError>>>;
/**
* Dry run XCM program
**/
dryRunXcm: AugmentedCall<ApiType, (originLocation: VersionedMultiLocation | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, xcm: VersionedXcm | { V0: any } | { V1: any } | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<XcmDryRunEffects, XcmDryRunApiError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xfbc577b9d747efd6/1 */
genesisBuilder: {
/**
@@ -205,6 +225,17 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x9ffb505aa738d69c/1 */
locationToAccountApi: {
/**
* Converts `Location` to `AccountId`
**/
convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<AccountId, Error>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37e397fc7c91f5e4/2 */
metadata: {
/**
@@ -281,7 +312,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xaf2c0297a23e6d3d/10 */
/** 0xaf2c0297a23e6d3d/11 */
parachainHost: {
/**
* Approval voting configuration parameters
@@ -311,6 +342,10 @@ declare module '@polkadot/api-base/types/calls' {
* Checks if the given validation outputs pass the acceptance criteria.
**/
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
/**
* Claim queue
**/
claimQueue: AugmentedCall<ApiType, () => Observable<BTreeMap<CoreIndex, Vec<u32>>>>;
/**
* Returns a list of all disabled validators at the given block
**/
@@ -487,5 +522,24 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x6ff52ee858e6c5bd/1 */
xcmPaymentApi: {
/**
* The API to query acceptable payment assets
**/
queryAcceptablePaymentAssets: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>>>;
/**
*
**/
queryWeightToAssetFee: AugmentedCall<ApiType, (weight: WeightV2 | { refTime?: any; proofSize?: any } | string | Uint8Array, asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<u128, XcmPaymentApiError>>>;
/**
*
**/
queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => Observable<Result<WeightV2, XcmPaymentApiError>>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
} // AugmentedCalls
} // declare module
File diff suppressed because it is too large Load Diff
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '14.0.1' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/util": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '14.0.1' };
+12 -12
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "12.4.1",
"@polkadot/api-augment": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/types-create": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api-augment": "12.4.1",
"@polkadot/keyring": "^13.0.2",
"@polkadot/types-support": "12.4.1"
"@polkadot/api-augment": "14.0.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types-support": "14.0.1"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '14.0.1' };
+15 -15
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api": "12.4.1",
"@polkadot/api-augment": "12.4.1",
"@polkadot/api-base": "12.4.1",
"@polkadot/rpc-core": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/api-base": "14.0.1",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api": "12.4.1",
"@polkadot/api-augment": "12.4.1",
"@polkadot/rpc-augment": "12.4.1",
"@polkadot/rpc-provider": "12.4.1",
"@polkadot/types-support": "12.4.1"
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types-support": "14.0.1"
}
}
@@ -24,7 +24,7 @@ export function accountId (instanceId: string, api: DeriveApi): (address?: Addre
: decodeAddress((address || '').toString());
if (decoded.length > 8) {
return of(api.registry.createType('AccountId', decoded));
return of(api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded));
}
const accountIndex = api.registry.createType('AccountIndex', decoded);
@@ -34,7 +34,7 @@ export function idAndIndex (instanceId: string, api: DeriveApi): (address?: Addr
: decodeAddress((address || '').toString());
if (decoded.length > 8) {
const accountId = api.registry.createType('AccountId', decoded);
const accountId = api.registry.createType(decoded.length === 20 ? 'AccountId20' : 'AccountId', decoded);
return api.derive.accounts.idToIndex(accountId).pipe(
map((accountIndex): AccountIdAndIndex => [accountId, accountIndex])
+1 -1
View File
@@ -56,7 +56,7 @@ function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalanc
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
let transferable = null;
if (data.frameSystemAccountInfo?.frozen) {
if (data?.frameSystemAccountInfo?.frozen) {
const { frameSystemAccountInfo, freeBalance, reservedBalance } = data;
const noFrozenReserved = frameSystemAccountInfo.frozen.isZero() && reservedBalance.isZero();
const ED = api.consts.balances.existentialDeposit;
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '14.0.1' };
+18 -18
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "12.4.1",
"@polkadot/api-base": "12.4.1",
"@polkadot/api-derive": "12.4.1",
"@polkadot/keyring": "^13.0.2",
"@polkadot/rpc-augment": "12.4.1",
"@polkadot/rpc-core": "12.4.1",
"@polkadot/rpc-provider": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-augment": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/types-create": "12.4.1",
"@polkadot/types-known": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/api-augment": "14.0.1",
"@polkadot/api-base": "14.0.1",
"@polkadot/api-derive": "14.0.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-core": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/types-known": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api-augment": "12.4.1",
"@polkadot/types-support": "12.4.1"
"@polkadot/api-augment": "14.0.1",
"@polkadot/types-support": "14.0.1"
}
}
+103 -41
View File
@@ -4,11 +4,11 @@
import type { Observable } from 'rxjs';
import type { AugmentedCall, DeriveCustom, QueryableCalls } from '@polkadot/api-base/types';
import type { RpcInterface } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey, Text, u64 } from '@polkadot/types';
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import type { Metadata, StorageKey, Text, u64, Vec } from '@polkadot/types';
import type { Call, Hash, RuntimeApiMethodMetadataV15, RuntimeVersion } from '@polkadot/types/interfaces';
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
import type { StorageEntry } from '@polkadot/types/primitive/types';
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCall, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
import type { HexString } from '@polkadot/util/types';
import type { SubmittableExtrinsic } from '../submittable/types.js';
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types/index.js';
@@ -492,64 +492,126 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
return Object.entries(result);
}
// pre-metadata decoration
// Helper for _getRuntimeDefsViaMetadata
protected _getMethods (registry: Registry, methods: Vec<RuntimeApiMethodMetadataV15>) {
const result: Record<string, DefinitionCall> = {};
methods.forEach((m) => {
const { docs, inputs, name, output } = m;
result[name.toString()] = {
description: docs.map((d) => d.toString()).join(),
params: inputs.map(({ name, type }) => {
return { name: name.toString(), type: registry.lookup.getName(type) || registry.lookup.getTypeDef(type).type };
}),
type: registry.lookup.getName(output) || registry.lookup.getTypeDef(output).type
};
});
return result;
}
// Maintains the same structure as `_getRuntimeDefs` in order to make conversion easier.
protected _getRuntimeDefsViaMetadata (registry: Registry): [string, DefinitionsCallEntry[]][] {
const result: DefinitionsCall = {};
const { apis } = registry.metadata;
for (let i = 0, count = apis.length; i < count; i++) {
const { methods, name } = apis[i];
result[name.toString()] = [{
methods: this._getMethods(registry, methods),
// We set the version to 0 here since it will not be relevant when we are grabbing the runtime apis
// from the Metadata.
version: 0
}];
}
return Object.entries(result);
}
// When the calls are available in the metadata, it will generate them based off of the metadata.
// When they are not available it will use the hardcoded calls generated in the static types.
protected _decorateCalls<ApiType extends ApiTypes> ({ registry, runtimeVersion: { apis, specName, specVersion } }: VersionedRegistry<any>, decorateMethod: DecorateMethod<ApiType>, blockHash?: Uint8Array | string | null): QueryableCalls<ApiType> {
const result = {} as QueryableCalls<ApiType>;
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
const hashes: Record<HexString, boolean> = {};
const sections = this._getRuntimeDefs(registry, specName, this._runtimeChain);
const isApiInMetadata = registry.metadata.apis.length > 0;
const sections = isApiInMetadata ? this._getRuntimeDefsViaMetadata(registry) : this._getRuntimeDefs(registry, specName, this._runtimeChain);
const older: string[] = [];
const implName = `${specName.toString()}/${specVersion.toString()}`;
const hasLogged = this.#runtimeLog[implName] || false;
this.#runtimeLog[implName] = true;
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const rtApi = apis.find(([a]) => a.eq(sectionHash));
if (isApiInMetadata) {
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sec = secs[0];
const sectionHash = blake2AsHex(_section, 64);
hashes[sectionHash] = true;
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
if (rtApi) {
const all = secs.map(({ version }) => version).sort();
const sec = secs.find(({ version }) => rtApi[1].eq(version));
if (!named[section]) {
named[section] = {};
}
if (sec) {
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
if (methods.length) {
if (!named[section]) {
named[section] = {};
}
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
} else {
older.push(`${_section}/${rtApi[1].toString()} (${all.join('/')} known)`);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
}
} else {
for (let i = 0, scount = sections.length; i < scount; i++) {
const [_section, secs] = sections[i];
const sectionHash = blake2AsHex(_section, 64);
const rtApi = apis.find(([a]) => a.eq(sectionHash));
// find the runtimes that we don't have hashes for
const notFound = apis
.map(([a, v]): [HexString, string] => [a.toHex(), v.toString()])
.filter(([a]) => !hashes[a])
.map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`);
hashes[sectionHash] = true;
if (!this._options.noInitWarn && !hasLogged) {
if (older.length) {
l.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(', ')}`);
if (rtApi) {
const all = secs.map(({ version }) => version).sort();
const sec = secs.find(({ version }) => rtApi[1].eq(version));
if (sec) {
const section = stringCamelCase(_section);
const methods = Object.entries(sec.methods);
if (methods.length) {
if (!named[section]) {
named[section] = {};
}
for (let m = 0, mcount = methods.length; m < mcount; m++) {
const [_method, def] = methods[m];
const method = stringCamelCase(_method);
named[section][method] = objectSpread({ method, name: `${_section}_${_method}`, section, sectionHash }, def);
}
}
} else {
older.push(`${_section}/${rtApi[1].toString()} (${all.join('/')} known)`);
}
}
}
if (notFound.length) {
l.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(', ')}`);
// find the runtimes that we don't have hashes for
const notFound = apis
.map(([a, v]): [HexString, string] => [a.toHex(), v.toString()])
.filter(([a]) => !hashes[a])
.map(([a, v]) => `${this._runtimeMap[a] || a}/${v}`);
if (!this._options.noInitWarn && !hasLogged) {
if (older.length) {
l.warn(`${implName}: Not decorating runtime apis without matching versions: ${older.join(', ')}`);
}
if (notFound.length) {
l.warn(`${implName}: Not decorating unknown runtime apis: ${notFound.join(', ')}`);
}
}
}
+76 -16
View File
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable, Subscription } from 'rxjs';
import type { Text } from '@polkadot/types';
import type { Bytes, Text, u32, Vec } from '@polkadot/types';
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
import type { ChainProperties, Hash, HeaderPartial, RuntimeVersion, RuntimeVersionPartial } from '@polkadot/types/interfaces';
import type { BlockHash, ChainProperties, Hash, HeaderPartial, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial } from '@polkadot/types/interfaces';
import type { Registry } from '@polkadot/types/types';
import type { BN } from '@polkadot/util';
import type { HexString } from '@polkadot/util/types';
@@ -16,12 +16,13 @@ import { firstValueFrom, map, of, switchMap } from 'rxjs';
import { Metadata, TypeRegistry } from '@polkadot/types';
import { getSpecAlias, getSpecExtensions, getSpecHasher, getSpecRpc, getSpecTypes, getUpgradeVersion } from '@polkadot/types-known';
import { assertReturn, BN_ZERO, isUndefined, logger, noop, objectSpread, u8aEq, u8aToHex, u8aToU8a } from '@polkadot/util';
import { cryptoWaitReady } from '@polkadot/util-crypto';
import { blake2AsHex, cryptoWaitReady } from '@polkadot/util-crypto';
import { Decorate } from './Decorate.js';
const KEEPALIVE_INTERVAL = 10000;
const WITH_VERSION_SHORTCUT = false;
const SUPPORTED_METADATA_VERSIONS = [15, 14];
const l = logger('api/init');
@@ -125,9 +126,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
private async _createBlockRegistry (blockHash: Uint8Array, header: HeaderPartial, version: RuntimeVersionPartial): Promise<VersionedRegistry<ApiType>> {
const registry = new TypeRegistry(blockHash);
const metadata = new Metadata(registry,
await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(header.parentHash))
);
const metadata = await this._retrieveMetadata(version.apis, header.parentHash, registry);
const runtimeChain = this._runtimeChain;
if (!runtimeChain) {
@@ -330,15 +329,12 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
}
private async _metaFromChain (optMetadata?: Record<string, HexString>): Promise<[Hash, Metadata]> {
const [genesisHash, runtimeVersion, chain, chainProps, rpcMethods, chainMetadata] = await Promise.all([
const [genesisHash, runtimeVersion, chain, chainProps, rpcMethods] = await Promise.all([
firstValueFrom(this._rpcCore.chain.getBlockHash(0)),
firstValueFrom(this._rpcCore.state.getRuntimeVersion()),
firstValueFrom(this._rpcCore.system.chain()),
firstValueFrom(this._rpcCore.system.properties()),
firstValueFrom(this._rpcCore.rpc.methods()),
optMetadata
? Promise.resolve(null)
: firstValueFrom(this._rpcCore.state.getMetadata())
firstValueFrom(this._rpcCore.rpc.methods())
]);
// set our chain version & genesisHash as returned
@@ -348,11 +344,9 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
// retrieve metadata, either from chain or as pass-in via options
const metadataKey = `${genesisHash.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;
const metadata = chainMetadata || (
optMetadata?.[metadataKey]
? new Metadata(this.registry, optMetadata[metadataKey])
: await firstValueFrom(this._rpcCore.state.getMetadata())
);
const metadata = optMetadata?.[metadataKey]
? new Metadata(this.registry, optMetadata[metadataKey])
: await this._retrieveMetadata(runtimeVersion.apis);
// initializes the registry & RPC
this._initRegistry(this.registry, chain, runtimeVersion, metadata, chainProps);
@@ -392,6 +386,72 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
return true;
}
/**
* @internal
*
* Tries to use runtime api calls to retrieve metadata. This ensures the api initializes with the latest metadata.
* If the runtime call is not there it will use the rpc method.
*/
private async _retrieveMetadata (apis: Vec<RuntimeVersionApi>, at?: BlockHash | string | Uint8Array, registry?: TypeRegistry): Promise<Metadata> {
let metadataVersion: u32 | null = null;
const metadataApi = apis.find(([a]) => a.eq(blake2AsHex('Metadata', 64)));
const typeRegistry = registry || this.registry;
// This chain does not have support for the metadataApi, or does not have the required version.
if (!metadataApi || metadataApi[1].toNumber() < 2) {
l.warn('MetadataApi not available, rpc::state::get_metadata will be used.');
return at
? new Metadata(typeRegistry, await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(at)))
: await firstValueFrom(this._rpcCore.state.getMetadata());
}
try {
const metadataVersionsAsBytes = at
? await firstValueFrom(this._rpcCore.state.call.raw('Metadata_metadata_versions', '0x', at))
: await firstValueFrom(this._rpcCore.state.call('Metadata_metadata_versions', '0x'));
const versions = typeRegistry.createType('Vec<u32>', metadataVersionsAsBytes);
metadataVersion = versions.reduce((largest, current) => current.gt(largest) ? current : largest);
} catch (e) {
l.debug((e as Error).message);
l.warn('error with state_call::Metadata_metadata_versions, rpc::state::get_metadata will be used');
}
// When the metadata version does not align with the latest supported versions we ensure not to call the metadata runtime call.
// I noticed on some previous runtimes that have support for `Metadata_metadata_at_version` that very irregular versions were being returned.
// This was evident with runtime 1000000 - it return a very large number. This ensures we always stick within what is supported.
if (metadataVersion && !SUPPORTED_METADATA_VERSIONS.includes(metadataVersion.toNumber())) {
metadataVersion = null;
}
if (metadataVersion) {
try {
const metadataBytes = at
? await firstValueFrom(this._rpcCore.state.call.raw<Bytes>('Metadata_metadata_at_version', u8aToHex(metadataVersion.toU8a()), at))
: await firstValueFrom(this._rpcCore.state.call('Metadata_metadata_at_version', u8aToHex(metadataVersion.toU8a())));
// When the metadata is called with `at` it is required to use `.raw`. Therefore since the length prefix is not present the
// need to create a `Raw` type is necessary before creating the `OpaqueMetadata` type or else there will be a magic number
// mismatch
const rawMeta = at
? typeRegistry.createType('Raw', metadataBytes).toU8a()
: metadataBytes;
const opaqueMetadata = typeRegistry.createType('Option<OpaqueMetadata>', rawMeta).unwrapOr(null);
if (opaqueMetadata) {
return new Metadata(typeRegistry, opaqueMetadata.toHex());
}
} catch (e) {
l.debug((e as Error).message);
l.warn('error with state_call::Metadata_metadata_at_version, rpc::state::get_metadata will be used');
}
}
return at
? new Metadata(typeRegistry, await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(at)))
: await firstValueFrom(this._rpcCore.state.getMetadata());
}
private _subscribeHealth (): void {
this._unsubscribeHealth();
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '14.0.1' };
+1 -1
View File
@@ -348,7 +348,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
address,
assetId: ext.assetId ? ext.assetId.toHex() : null,
assetId: ext.assetId && ext.assetId.isSome ? ext.assetId.toHex() : null,
blockHash: payload.blockHash,
blockNumber: header ? header.number : 0,
era: ext.era.toHex(),
+6 -6
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/rpc-core": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '14.0.1' };
+8 -8
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "12.4.1",
"@polkadot/rpc-provider": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/util": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/keyring": "^13.0.2",
"@polkadot/rpc-augment": "12.4.1"
"@polkadot/keyring": "^13.1.1",
"@polkadot/rpc-augment": "14.0.1"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '14.0.1' };
+10 -10
View File
@@ -18,21 +18,21 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.0.2",
"@polkadot/types": "12.4.1",
"@polkadot/types-support": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-fetch": "^13.0.2",
"@polkadot/x-global": "^13.0.2",
"@polkadot/x-ws": "^13.0.2",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@polkadot/x-fetch": "^13.1.1",
"@polkadot/x-global": "^13.1.1",
"@polkadot/x-ws": "^13.1.1",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1",
"nock": "^13.5.4",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@substrate/connect": "0.8.11"
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '14.0.1' };
+14 -14
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,20 +28,20 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "12.4.1",
"@polkadot/api-augment": "12.4.1",
"@polkadot/rpc-augment": "12.4.1",
"@polkadot/rpc-provider": "12.4.1",
"@polkadot/types": "12.4.1",
"@polkadot/types-augment": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/types-create": "12.4.1",
"@polkadot/types-support": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/x-ws": "^13.0.2",
"@polkadot/api": "14.0.1",
"@polkadot/api-augment": "14.0.1",
"@polkadot/rpc-augment": "14.0.1",
"@polkadot/rpc-provider": "14.0.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@polkadot/x-ws": "^13.1.1",
"handlebars": "^4.7.8",
"tslib": "^2.6.3",
"tslib": "^2.7.0",
"yargs": "^17.7.2"
},
"devDependencies": {
+1 -1
View File
@@ -131,7 +131,7 @@ function renderPage (page: Page): string {
md += `\n- **${bullet}**: ${
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
item[bullet] instanceof Vec
? docsVecToMarkdown(item[bullet] as Vec<Text>, 2).toString()
? docsVecToMarkdown(item[bullet], 2).toString()
: item[bullet]
}`;
});
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '14.0.1' };
+5 -5
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
+427 -53
View File
@@ -5,36 +5,26 @@
export default {
/**
* Lookup49: staging_kusama_runtime::pallet_im_online::pallet::Event<T>
**/
StagingKusamaRuntimePalletImOnlinePalletEvent: {
_enum: {
HeartbeatReceived: {
authorityId: 'StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public',
},
AllGood: 'Null',
SomeOffline: {
offline: 'Vec<(AccountId32,SpStakingExposure)>'
}
}
},
/**
* Lookup50: staging_kusama_runtime::pallet_im_online::sr25519::app_sr25519::Public
**/
StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public: 'SpCoreSr25519Public',
/**
* Lookup134: staging_kusama_runtime::SessionKeys
* Lookup125: staging_kusama_runtime::SessionKeys
**/
StagingKusamaRuntimeSessionKeys: {
grandpa: 'SpConsensusGrandpaAppPublic',
babe: 'SpConsensusBabeAppPublic',
paraValidator: 'PolkadotPrimitivesV6ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV6AssignmentAppPublic',
paraValidator: 'PolkadotPrimitivesV7ValidatorAppPublic',
paraAssignment: 'PolkadotPrimitivesV7AssignmentAppPublic',
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic',
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
},
/**
* Lookup161: staging_kusama_runtime::OriginCaller
* Lookup126: polkadot_primitives::v7::validator_app::Public
**/
PolkadotPrimitivesV7ValidatorAppPublic: '[u8;32]',
/**
* Lookup127: polkadot_primitives::v7::assignment_app::Public
**/
PolkadotPrimitivesV7AssignmentAppPublic: '[u8;32]',
/**
* Lookup150: staging_kusama_runtime::OriginCaller
**/
StagingKusamaRuntimeOriginCaller: {
_enum: {
@@ -141,16 +131,56 @@ export default {
}
},
/**
* Lookup163: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
* Lookup152: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
**/
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan', 'WishForChange']
},
/**
* Lookup163: staging_kusama_runtime::RuntimeParameters
**/
StagingKusamaRuntimeRuntimeParameters: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParameters'
}
},
/**
* Lookup164: staging_kusama_runtime::dynamic_params::inflation::Parameters
**/
StagingKusamaRuntimeDynamicParamsInflationParameters: {
_enum: {
MinInflation: '(StagingKusamaRuntimeDynamicParamsInflationMinInflation,Option<Perquintill>)',
MaxInflation: '(StagingKusamaRuntimeDynamicParamsInflationMaxInflation,Option<Perquintill>)',
IdealStake: '(StagingKusamaRuntimeDynamicParamsInflationIdealStake,Option<Perquintill>)',
Falloff: '(StagingKusamaRuntimeDynamicParamsInflationFalloff,Option<Perquintill>)',
UseAuctionSlots: '(StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots,Option<bool>)'
}
},
/**
* Lookup165: staging_kusama_runtime::dynamic_params::inflation::MinInflation
**/
StagingKusamaRuntimeDynamicParamsInflationMinInflation: 'Null',
/**
* Lookup168: staging_kusama_runtime::dynamic_params::inflation::MaxInflation
**/
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: 'Null',
/**
* Lookup169: staging_kusama_runtime::dynamic_params::inflation::IdealStake
**/
StagingKusamaRuntimeDynamicParamsInflationIdealStake: 'Null',
/**
* Lookup170: staging_kusama_runtime::dynamic_params::inflation::Falloff
**/
StagingKusamaRuntimeDynamicParamsInflationFalloff: 'Null',
/**
* Lookup171: staging_kusama_runtime::dynamic_params::inflation::UseAuctionSlots
**/
StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots: 'Null',
/**
* Lookup192: staging_kusama_runtime::ProxyType
**/
StagingKusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', '__Unused4', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', '__Unused4', 'CancelProxy', 'Auction', 'Society', 'NominationPools', 'Spokesperson']
},
/**
* Lookup202: staging_kusama_runtime::NposCompactSolution24
@@ -182,7 +212,212 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup360: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
* Lookup303: polkadot_primitives::v7::async_backing::AsyncBackingParams
**/
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: {
maxCandidateDepth: 'u32',
allowedAncestryLen: 'u32'
},
/**
* Lookup304: polkadot_primitives::v7::executor_params::ExecutorParams
**/
PolkadotPrimitivesV7ExecutorParams: 'Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam>',
/**
* Lookup306: polkadot_primitives::v7::executor_params::ExecutorParam
**/
PolkadotPrimitivesV7ExecutorParamsExecutorParam: {
_enum: {
__Unused0: 'Null',
MaxMemoryPages: 'u32',
StackLogicalMax: 'u32',
StackNativeMax: 'u32',
PrecheckingMaxMemory: 'u64',
PvfPrepTimeout: '(PolkadotPrimitivesV7PvfPrepKind,u64)',
PvfExecTimeout: '(PolkadotPrimitivesV7PvfExecKind,u64)',
WasmExtBulkMemory: 'Null'
}
},
/**
* Lookup307: polkadot_primitives::v7::PvfPrepKind
**/
PolkadotPrimitivesV7PvfPrepKind: {
_enum: ['Precheck', 'Prepare']
},
/**
* Lookup308: polkadot_primitives::v7::PvfExecKind
**/
PolkadotPrimitivesV7PvfExecKind: {
_enum: ['Backing', 'Approval']
},
/**
* Lookup309: polkadot_primitives::v7::ApprovalVotingParams
**/
PolkadotPrimitivesV7ApprovalVotingParams: {
maxApprovalCoalesceCount: 'u32'
},
/**
* Lookup310: polkadot_primitives::vstaging::SchedulerParams<BlockNumber>
**/
PolkadotPrimitivesVstagingSchedulerParams: {
groupRotationFrequency: 'u32',
parasAvailabilityPeriod: 'u32',
maxValidatorsPerCore: 'Option<u32>',
lookahead: 'u32',
numCores: 'u32',
maxAvailabilityTimeouts: 'u32',
onDemandQueueMaxSize: 'u32',
onDemandTargetQueueUtilization: 'Perbill',
onDemandFeeVariability: 'Perbill',
onDemandBaseFee: 'u128',
ttl: 'u32'
},
/**
* Lookup314: polkadot_primitives::v7::InherentData<sp_runtime::generic::header::Header<Number, Hash>>
**/
PolkadotPrimitivesV7InherentData: {
bitfields: 'Vec<PolkadotPrimitivesV7SignedUncheckedSigned>',
backedCandidates: 'Vec<PolkadotPrimitivesV7BackedCandidate>',
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>',
parentHeader: 'SpRuntimeHeader'
},
/**
* Lookup316: polkadot_primitives::v7::signed::UncheckedSigned<polkadot_primitives::v7::AvailabilityBitfield, polkadot_primitives::v7::AvailabilityBitfield>
**/
PolkadotPrimitivesV7SignedUncheckedSigned: {
payload: 'BitVec',
validatorIndex: 'u32',
signature: 'PolkadotPrimitivesV7ValidatorAppSignature'
},
/**
* Lookup321: polkadot_primitives::v7::validator_app::Signature
**/
PolkadotPrimitivesV7ValidatorAppSignature: '[u8;64]',
/**
* Lookup323: polkadot_primitives::v7::BackedCandidate<primitive_types::H256>
**/
PolkadotPrimitivesV7BackedCandidate: {
candidate: 'PolkadotPrimitivesV7CommittedCandidateReceipt',
validityVotes: 'Vec<PolkadotPrimitivesV7ValidityAttestation>',
validatorIndices: 'BitVec'
},
/**
* Lookup324: polkadot_primitives::v7::CommittedCandidateReceipt<primitive_types::H256>
**/
PolkadotPrimitivesV7CommittedCandidateReceipt: {
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
commitments: 'PolkadotPrimitivesV7CandidateCommitments'
},
/**
* Lookup325: polkadot_primitives::v7::CandidateDescriptor<primitive_types::H256>
**/
PolkadotPrimitivesV7CandidateDescriptor: {
paraId: 'u32',
relayParent: 'H256',
collator: 'PolkadotPrimitivesV7CollatorAppPublic',
persistedValidationDataHash: 'H256',
povHash: 'H256',
erasureRoot: 'H256',
signature: 'PolkadotPrimitivesV7CollatorAppSignature',
paraHead: 'H256',
validationCodeHash: 'H256'
},
/**
* Lookup326: polkadot_primitives::v7::collator_app::Public
**/
PolkadotPrimitivesV7CollatorAppPublic: '[u8;32]',
/**
* Lookup327: polkadot_primitives::v7::collator_app::Signature
**/
PolkadotPrimitivesV7CollatorAppSignature: '[u8;64]',
/**
* Lookup329: polkadot_primitives::v7::CandidateCommitments<N>
**/
PolkadotPrimitivesV7CandidateCommitments: {
upwardMessages: 'Vec<Bytes>',
horizontalMessages: 'Vec<PolkadotCorePrimitivesOutboundHrmpMessage>',
newValidationCode: 'Option<Bytes>',
headData: 'Bytes',
processedDownwardMessages: 'u32',
hrmpWatermark: 'u32'
},
/**
* Lookup338: polkadot_primitives::v7::ValidityAttestation
**/
PolkadotPrimitivesV7ValidityAttestation: {
_enum: {
__Unused0: 'Null',
Implicit: 'PolkadotPrimitivesV7ValidatorAppSignature',
Explicit: 'PolkadotPrimitivesV7ValidatorAppSignature'
}
},
/**
* Lookup340: polkadot_primitives::v7::DisputeStatementSet
**/
PolkadotPrimitivesV7DisputeStatementSet: {
candidateHash: 'H256',
session: 'u32',
statements: 'Vec<(PolkadotPrimitivesV7DisputeStatement,u32,PolkadotPrimitivesV7ValidatorAppSignature)>'
},
/**
* Lookup344: polkadot_primitives::v7::DisputeStatement
**/
PolkadotPrimitivesV7DisputeStatement: {
_enum: {
Valid: 'PolkadotPrimitivesV7ValidDisputeStatementKind',
Invalid: 'PolkadotPrimitivesV7InvalidDisputeStatementKind'
}
},
/**
* Lookup345: polkadot_primitives::v7::ValidDisputeStatementKind
**/
PolkadotPrimitivesV7ValidDisputeStatementKind: {
_enum: {
Explicit: 'Null',
BackingSeconded: 'H256',
BackingValid: 'H256',
ApprovalChecking: 'Null',
ApprovalCheckingMultipleCandidates: 'Vec<H256>'
}
},
/**
* Lookup347: polkadot_primitives::v7::InvalidDisputeStatementKind
**/
PolkadotPrimitivesV7InvalidDisputeStatementKind: {
_enum: ['Explicit']
},
/**
* Lookup349: polkadot_primitives::v7::PvfCheckStatement
**/
PolkadotPrimitivesV7PvfCheckStatement: {
accept: 'bool',
subject: 'H256',
sessionIndex: 'u32',
validatorIndex: 'u32'
},
/**
* Lookup355: polkadot_primitives::v7::slashing::DisputeProof
**/
PolkadotPrimitivesV7SlashingDisputeProof: {
timeSlot: 'PolkadotPrimitivesV7SlashingDisputesTimeSlot',
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind',
validatorIndex: 'u32',
validatorId: 'PolkadotPrimitivesV7ValidatorAppPublic'
},
/**
* Lookup356: polkadot_primitives::v7::slashing::DisputesTimeSlot
**/
PolkadotPrimitivesV7SlashingDisputesTimeSlot: {
sessionIndex: 'u32',
candidateHash: 'H256'
},
/**
* Lookup357: polkadot_primitives::v7::slashing::SlashingOffenceKind
**/
PolkadotPrimitivesV7SlashingSlashingOffenceKind: {
_enum: ['ForInvalid', 'AgainstValid']
},
/**
* Lookup358: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
_enum: {
@@ -197,7 +432,7 @@ export default {
}
},
/**
* Lookup371: polkadot_runtime_parachains::coretime::pallet::Call<T>
* Lookup368: polkadot_runtime_parachains::coretime::pallet::Call<T>
**/
PolkadotRuntimeParachainsCoretimePalletCall: {
_enum: {
@@ -205,7 +440,9 @@ export default {
request_core_count: {
count: 'u16',
},
__Unused2: 'Null',
request_revenue_at: {
when: 'u32',
},
__Unused3: 'Null',
assign_core: {
core: 'u16',
@@ -216,21 +453,69 @@ export default {
}
},
/**
* Lookup512: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
* Lookup414: xcm::v3::OriginKind
**/
XcmV3OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
* Lookup479: staging_kusama_runtime::RuntimeParametersKey
**/
StagingKusamaRuntimeRuntimeParametersKey: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersKey'
}
},
/**
* Lookup480: staging_kusama_runtime::dynamic_params::inflation::ParametersKey
**/
StagingKusamaRuntimeDynamicParamsInflationParametersKey: {
_enum: ['MinInflation', 'MaxInflation', 'IdealStake', 'Falloff', 'UseAuctionSlots']
},
/**
* Lookup482: staging_kusama_runtime::RuntimeParametersValue
**/
StagingKusamaRuntimeRuntimeParametersValue: {
_enum: {
Inflation: 'StagingKusamaRuntimeDynamicParamsInflationParametersValue'
}
},
/**
* Lookup483: staging_kusama_runtime::dynamic_params::inflation::ParametersValue
**/
StagingKusamaRuntimeDynamicParamsInflationParametersValue: {
_enum: {
MinInflation: 'Perquintill',
MaxInflation: 'Perquintill',
IdealStake: 'Perquintill',
Falloff: 'Perquintill',
UseAuctionSlots: 'bool'
}
},
/**
* Lookup508: polkadot_primitives::v7::CandidateReceipt<primitive_types::H256>
**/
PolkadotPrimitivesV7CandidateReceipt: {
descriptor: 'PolkadotPrimitivesV7CandidateDescriptor',
commitmentsHash: 'H256'
},
/**
* Lookup516: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
_enum: {
OnDemandOrderPlaced: {
paraId: 'u32',
spotPrice: 'u128',
orderedBy: 'AccountId32',
},
SpotTrafficSet: {
traffic: 'u128'
SpotPriceSet: {
spotPrice: 'u128'
}
}
},
/**
* Lookup517: polkadot_runtime_parachains::coretime::pallet::Event<T>
* Lookup521: polkadot_runtime_parachains::coretime::pallet::Event<T>
**/
PolkadotRuntimeParachainsCoretimePalletEvent: {
_enum: {
@@ -243,7 +528,7 @@ export default {
}
},
/**
* Lookup566: staging_kusama_runtime::RuntimeHoldReason
* Lookup570: staging_kusama_runtime::RuntimeHoldReason
**/
StagingKusamaRuntimeRuntimeHoldReason: {
_enum: {
@@ -289,7 +574,7 @@ export default {
}
},
/**
* Lookup572: staging_kusama_runtime::RuntimeFreezeReason
* Lookup576: staging_kusama_runtime::RuntimeFreezeReason
**/
StagingKusamaRuntimeRuntimeFreezeReason: {
_enum: {
@@ -338,33 +623,122 @@ export default {
}
},
/**
* Lookup742: pallet_balances::types::IdAmount<Id, Balance>
* Lookup749: frame_support::traits::tokens::misc::IdAmount<Id, Balance>
**/
PalletBalancesIdAmount: {
FrameSupportTokensMiscIdAmount: {
id: 'Null',
amount: 'u128'
},
/**
* Lookup841: polkadot_runtime_parachains::assigner_on_demand::EnqueuedOrder
* Lookup791: polkadot_primitives::v7::ScrapedOnChainVotes<primitive_types::H256>
**/
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: {
paraId: 'u32'
PolkadotPrimitivesV7ScrapedOnChainVotes: {
session: 'u32',
backingValidatorsPerCandidate: 'Vec<(PolkadotPrimitivesV7CandidateReceipt,Vec<(u32,PolkadotPrimitivesV7ValidityAttestation)>)>',
disputes: 'Vec<PolkadotPrimitivesV7DisputeStatementSet>'
},
/**
* Lookup842: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
* Lookup809: polkadot_runtime_parachains::paras::UpgradeStrategy
**/
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: {
coreIdx: 'u32',
PolkadotRuntimeParachainsParasUpgradeStrategy: {
_enum: ['SetGoAheadSignal', 'ApplyAtExpectedBlock']
},
/**
* Lookup818: polkadot_primitives::v7::UpgradeGoAhead
**/
PolkadotPrimitivesV7UpgradeGoAhead: {
_enum: ['Abort', 'GoAhead']
},
/**
* Lookup819: polkadot_primitives::v7::UpgradeRestriction
**/
PolkadotPrimitivesV7UpgradeRestriction: {
_enum: ['Present']
},
/**
* Lookup835: polkadot_primitives::v7::SessionInfo
**/
PolkadotPrimitivesV7SessionInfo: {
activeValidatorIndices: 'Vec<u32>',
randomSeed: '[u8;32]',
disputePeriod: 'u32',
validators: 'PolkadotPrimitivesV7IndexedVecValidatorIndex',
discoveryKeys: 'Vec<SpAuthorityDiscoveryAppPublic>',
assignmentKeys: 'Vec<PolkadotPrimitivesV7AssignmentAppPublic>',
validatorGroups: 'PolkadotPrimitivesV7IndexedVecGroupIndex',
nCores: 'u32',
zerothDelayTrancheWidth: 'u32',
relayVrfModuloSamples: 'u32',
nDelayTranches: 'u32',
noShowSlots: 'u32',
neededApprovals: 'u32'
},
/**
* Lookup836: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::ValidatorIndex, polkadot_primitives::v7::validator_app::Public>
**/
PolkadotPrimitivesV7IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV7ValidatorAppPublic>',
/**
* Lookup837: polkadot_primitives::v7::IndexedVec<polkadot_primitives::v7::GroupIndex, V>
**/
PolkadotPrimitivesV7IndexedVecGroupIndex: 'Vec<Vec<u32>>',
/**
* Lookup839: polkadot_primitives::v7::DisputeState<N>
**/
PolkadotPrimitivesV7DisputeState: {
validatorsFor: 'BitVec',
validatorsAgainst: 'BitVec',
start: 'u32',
concludedAt: 'Option<u32>'
},
/**
* Lookup842: polkadot_primitives::v7::slashing::PendingSlashes
**/
PolkadotPrimitivesV7SlashingPendingSlashes: {
_alias: {
keys_: 'keys'
},
keys_: 'BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>',
kind: 'PolkadotPrimitivesV7SlashingSlashingOffenceKind'
},
/**
* Lookup847: polkadot_runtime_parachains::assigner_on_demand::types::CoreAffinityCount
**/
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: {
coreIndex: 'u32',
count: 'u32'
},
/**
* Lookup843: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
* Lookup848: polkadot_runtime_parachains::assigner_on_demand::types::QueueStatusType
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
_enum: ['InvalidParaId', 'QueueFull', 'SpotPriceHigherThanMaxAmount']
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: {
traffic: 'u128',
nextIndex: 'u32',
smallestIndex: 'u32',
freedIndices: 'BinaryHeapReverseQueueIndex'
},
/**
* Lookup845: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
* Lookup850: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::ReverseQueueIndex>
**/
BinaryHeapReverseQueueIndex: 'Vec<u32>',
/**
* Lookup853: BinaryHeap<polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder>
**/
BinaryHeapEnqueuedOrder: 'Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>',
/**
* Lookup854: polkadot_runtime_parachains::assigner_on_demand::types::EnqueuedOrder
**/
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: {
paraId: 'u32',
idx: 'u32'
},
/**
* Lookup858: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
_enum: ['QueueFull', 'SpotPriceHigherThanMaxAmount']
},
/**
* Lookup860: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeSchedule: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
@@ -372,21 +746,21 @@ export default {
nextSchedule: 'Option<u32>'
},
/**
* Lookup846: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
* Lookup861: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: {
queue: 'Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>',
currentWork: 'Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>'
},
/**
* Lookup848: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
* Lookup863: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: {
first: 'u32',
last: 'u32'
},
/**
* Lookup850: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
* Lookup865: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
**/
PolkadotRuntimeParachainsAssignerCoretimeWorkState: {
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,PolkadotRuntimeParachainsAssignerCoretimeAssignmentState)>',
@@ -395,26 +769,26 @@ export default {
step: 'u16'
},
/**
* Lookup853: polkadot_runtime_parachains::assigner_coretime::AssignmentState
* Lookup868: polkadot_runtime_parachains::assigner_coretime::AssignmentState
**/
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: {
ratio: 'u16',
remaining: 'u16'
},
/**
* Lookup854: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
* Lookup869: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsAssignerCoretimePalletError: {
_enum: ['AssignmentsEmpty', 'OverScheduled', 'UnderScheduled', 'DisallowedInsert', 'DuplicateInsert', 'AssignmentsNotSorted']
},
/**
* Lookup868: polkadot_runtime_parachains::coretime::pallet::Error<T>
* Lookup882: polkadot_runtime_parachains::coretime::pallet::Error<T>
**/
PolkadotRuntimeParachainsCoretimePalletError: {
_enum: ['NotBroker']
_enum: ['NotBroker', 'RequestedFutureRevenue', 'AssetTransferFailed']
},
/**
* Lookup915: staging_kusama_runtime::Runtime
* Lookup929: staging_kusama_runtime::Runtime
**/
StagingKusamaRuntimeRuntime: 'Null'
};
+419 -59
View File
@@ -5,39 +5,28 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
import type { Compact, Enum, Null, Option, Struct, Vec, u128, u16, u32 } from '@polkadot/types-codec';
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, PerU16 } from '@polkadot/types/interfaces/runtime';
import type { AccountId32, H256, PerU16, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
declare module '@polkadot/types/lookup' {
/** @name StagingKusamaRuntimePalletImOnlinePalletEvent (49) */
interface StagingKusamaRuntimePalletImOnlinePalletEvent extends Enum {
readonly isHeartbeatReceived: boolean;
readonly asHeartbeatReceived: {
readonly authorityId: StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public;
} & Struct;
readonly isAllGood: boolean;
readonly isSomeOffline: boolean;
readonly asSomeOffline: {
readonly offline: Vec<ITuple<[AccountId32, SpStakingExposure]>>;
} & Struct;
readonly type: 'HeartbeatReceived' | 'AllGood' | 'SomeOffline';
}
/** @name StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public (50) */
interface StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public extends SpCoreSr25519Public {}
/** @name StagingKusamaRuntimeSessionKeys (134) */
/** @name StagingKusamaRuntimeSessionKeys (125) */
interface StagingKusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpConsensusGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
readonly paraValidator: PolkadotPrimitivesV6ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV6AssignmentAppPublic;
readonly paraValidator: PolkadotPrimitivesV7ValidatorAppPublic;
readonly paraAssignment: PolkadotPrimitivesV7AssignmentAppPublic;
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
}
/** @name StagingKusamaRuntimeOriginCaller (161) */
/** @name PolkadotPrimitivesV7ValidatorAppPublic (126) */
interface PolkadotPrimitivesV7ValidatorAppPublic extends U8aFixed {}
/** @name PolkadotPrimitivesV7AssignmentAppPublic (127) */
interface PolkadotPrimitivesV7AssignmentAppPublic extends U8aFixed {}
/** @name StagingKusamaRuntimeOriginCaller (150) */
interface StagingKusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -51,7 +40,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (163) */
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (152) */
interface StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
readonly isStakingAdmin: boolean;
readonly isTreasurer: boolean;
@@ -84,6 +73,43 @@ declare module '@polkadot/types/lookup' {
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan' | 'WishForChange';
}
/** @name StagingKusamaRuntimeRuntimeParameters (163) */
interface StagingKusamaRuntimeRuntimeParameters extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParameters;
readonly type: 'Inflation';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationParameters (164) */
interface StagingKusamaRuntimeDynamicParamsInflationParameters extends Enum {
readonly isMinInflation: boolean;
readonly asMinInflation: ITuple<[StagingKusamaRuntimeDynamicParamsInflationMinInflation, Option<Perquintill>]>;
readonly isMaxInflation: boolean;
readonly asMaxInflation: ITuple<[StagingKusamaRuntimeDynamicParamsInflationMaxInflation, Option<Perquintill>]>;
readonly isIdealStake: boolean;
readonly asIdealStake: ITuple<[StagingKusamaRuntimeDynamicParamsInflationIdealStake, Option<Perquintill>]>;
readonly isFalloff: boolean;
readonly asFalloff: ITuple<[StagingKusamaRuntimeDynamicParamsInflationFalloff, Option<Perquintill>]>;
readonly isUseAuctionSlots: boolean;
readonly asUseAuctionSlots: ITuple<[StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, Option<bool>]>;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationMinInflation (165) */
type StagingKusamaRuntimeDynamicParamsInflationMinInflation = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationMaxInflation (168) */
type StagingKusamaRuntimeDynamicParamsInflationMaxInflation = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationIdealStake (169) */
type StagingKusamaRuntimeDynamicParamsInflationIdealStake = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationFalloff (170) */
type StagingKusamaRuntimeDynamicParamsInflationFalloff = Null;
/** @name StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots (171) */
type StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots = Null;
/** @name StagingKusamaRuntimeProxyType (192) */
interface StagingKusamaRuntimeProxyType extends Enum {
readonly isAny: boolean;
@@ -94,7 +120,8 @@ declare module '@polkadot/types/lookup' {
readonly isAuction: boolean;
readonly isSociety: boolean;
readonly isNominationPools: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
readonly isSpokesperson: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | 'Spokesperson';
}
/** @name StagingKusamaRuntimeNposCompactSolution24 (202) */
@@ -125,7 +152,201 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (360) */
/** @name PolkadotPrimitivesV7AsyncBackingAsyncBackingParams (303) */
interface PolkadotPrimitivesV7AsyncBackingAsyncBackingParams extends Struct {
readonly maxCandidateDepth: u32;
readonly allowedAncestryLen: u32;
}
/** @name PolkadotPrimitivesV7ExecutorParams (304) */
interface PolkadotPrimitivesV7ExecutorParams extends Vec<PolkadotPrimitivesV7ExecutorParamsExecutorParam> {}
/** @name PolkadotPrimitivesV7ExecutorParamsExecutorParam (306) */
interface PolkadotPrimitivesV7ExecutorParamsExecutorParam extends Enum {
readonly isMaxMemoryPages: boolean;
readonly asMaxMemoryPages: u32;
readonly isStackLogicalMax: boolean;
readonly asStackLogicalMax: u32;
readonly isStackNativeMax: boolean;
readonly asStackNativeMax: u32;
readonly isPrecheckingMaxMemory: boolean;
readonly asPrecheckingMaxMemory: u64;
readonly isPvfPrepTimeout: boolean;
readonly asPvfPrepTimeout: ITuple<[PolkadotPrimitivesV7PvfPrepKind, u64]>;
readonly isPvfExecTimeout: boolean;
readonly asPvfExecTimeout: ITuple<[PolkadotPrimitivesV7PvfExecKind, u64]>;
readonly isWasmExtBulkMemory: boolean;
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory' | 'PvfPrepTimeout' | 'PvfExecTimeout' | 'WasmExtBulkMemory';
}
/** @name PolkadotPrimitivesV7PvfPrepKind (307) */
interface PolkadotPrimitivesV7PvfPrepKind extends Enum {
readonly isPrecheck: boolean;
readonly isPrepare: boolean;
readonly type: 'Precheck' | 'Prepare';
}
/** @name PolkadotPrimitivesV7PvfExecKind (308) */
interface PolkadotPrimitivesV7PvfExecKind extends Enum {
readonly isBacking: boolean;
readonly isApproval: boolean;
readonly type: 'Backing' | 'Approval';
}
/** @name PolkadotPrimitivesV7ApprovalVotingParams (309) */
interface PolkadotPrimitivesV7ApprovalVotingParams extends Struct {
readonly maxApprovalCoalesceCount: u32;
}
/** @name PolkadotPrimitivesVstagingSchedulerParams (310) */
interface PolkadotPrimitivesVstagingSchedulerParams extends Struct {
readonly groupRotationFrequency: u32;
readonly parasAvailabilityPeriod: u32;
readonly maxValidatorsPerCore: Option<u32>;
readonly lookahead: u32;
readonly numCores: u32;
readonly maxAvailabilityTimeouts: u32;
readonly onDemandQueueMaxSize: u32;
readonly onDemandTargetQueueUtilization: Perbill;
readonly onDemandFeeVariability: Perbill;
readonly onDemandBaseFee: u128;
readonly ttl: u32;
}
/** @name PolkadotPrimitivesV7InherentData (314) */
interface PolkadotPrimitivesV7InherentData extends Struct {
readonly bitfields: Vec<PolkadotPrimitivesV7SignedUncheckedSigned>;
readonly backedCandidates: Vec<PolkadotPrimitivesV7BackedCandidate>;
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
readonly parentHeader: SpRuntimeHeader;
}
/** @name PolkadotPrimitivesV7SignedUncheckedSigned (316) */
interface PolkadotPrimitivesV7SignedUncheckedSigned extends Struct {
readonly payload: BitVec;
readonly validatorIndex: u32;
readonly signature: PolkadotPrimitivesV7ValidatorAppSignature;
}
/** @name PolkadotPrimitivesV7ValidatorAppSignature (321) */
interface PolkadotPrimitivesV7ValidatorAppSignature extends U8aFixed {}
/** @name PolkadotPrimitivesV7BackedCandidate (323) */
interface PolkadotPrimitivesV7BackedCandidate extends Struct {
readonly candidate: PolkadotPrimitivesV7CommittedCandidateReceipt;
readonly validityVotes: Vec<PolkadotPrimitivesV7ValidityAttestation>;
readonly validatorIndices: BitVec;
}
/** @name PolkadotPrimitivesV7CommittedCandidateReceipt (324) */
interface PolkadotPrimitivesV7CommittedCandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
readonly commitments: PolkadotPrimitivesV7CandidateCommitments;
}
/** @name PolkadotPrimitivesV7CandidateDescriptor (325) */
interface PolkadotPrimitivesV7CandidateDescriptor extends Struct {
readonly paraId: u32;
readonly relayParent: H256;
readonly collator: PolkadotPrimitivesV7CollatorAppPublic;
readonly persistedValidationDataHash: H256;
readonly povHash: H256;
readonly erasureRoot: H256;
readonly signature: PolkadotPrimitivesV7CollatorAppSignature;
readonly paraHead: H256;
readonly validationCodeHash: H256;
}
/** @name PolkadotPrimitivesV7CollatorAppPublic (326) */
interface PolkadotPrimitivesV7CollatorAppPublic extends U8aFixed {}
/** @name PolkadotPrimitivesV7CollatorAppSignature (327) */
interface PolkadotPrimitivesV7CollatorAppSignature extends U8aFixed {}
/** @name PolkadotPrimitivesV7CandidateCommitments (329) */
interface PolkadotPrimitivesV7CandidateCommitments extends Struct {
readonly upwardMessages: Vec<Bytes>;
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
readonly newValidationCode: Option<Bytes>;
readonly headData: Bytes;
readonly processedDownwardMessages: u32;
readonly hrmpWatermark: u32;
}
/** @name PolkadotPrimitivesV7ValidityAttestation (338) */
interface PolkadotPrimitivesV7ValidityAttestation extends Enum {
readonly isImplicit: boolean;
readonly asImplicit: PolkadotPrimitivesV7ValidatorAppSignature;
readonly isExplicit: boolean;
readonly asExplicit: PolkadotPrimitivesV7ValidatorAppSignature;
readonly type: 'Implicit' | 'Explicit';
}
/** @name PolkadotPrimitivesV7DisputeStatementSet (340) */
interface PolkadotPrimitivesV7DisputeStatementSet extends Struct {
readonly candidateHash: H256;
readonly session: u32;
readonly statements: Vec<ITuple<[PolkadotPrimitivesV7DisputeStatement, u32, PolkadotPrimitivesV7ValidatorAppSignature]>>;
}
/** @name PolkadotPrimitivesV7DisputeStatement (344) */
interface PolkadotPrimitivesV7DisputeStatement extends Enum {
readonly isValid: boolean;
readonly asValid: PolkadotPrimitivesV7ValidDisputeStatementKind;
readonly isInvalid: boolean;
readonly asInvalid: PolkadotPrimitivesV7InvalidDisputeStatementKind;
readonly type: 'Valid' | 'Invalid';
}
/** @name PolkadotPrimitivesV7ValidDisputeStatementKind (345) */
interface PolkadotPrimitivesV7ValidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly isBackingSeconded: boolean;
readonly asBackingSeconded: H256;
readonly isBackingValid: boolean;
readonly asBackingValid: H256;
readonly isApprovalChecking: boolean;
readonly isApprovalCheckingMultipleCandidates: boolean;
readonly asApprovalCheckingMultipleCandidates: Vec<H256>;
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking' | 'ApprovalCheckingMultipleCandidates';
}
/** @name PolkadotPrimitivesV7InvalidDisputeStatementKind (347) */
interface PolkadotPrimitivesV7InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly type: 'Explicit';
}
/** @name PolkadotPrimitivesV7PvfCheckStatement (349) */
interface PolkadotPrimitivesV7PvfCheckStatement extends Struct {
readonly accept: bool;
readonly subject: H256;
readonly sessionIndex: u32;
readonly validatorIndex: u32;
}
/** @name PolkadotPrimitivesV7SlashingDisputeProof (355) */
interface PolkadotPrimitivesV7SlashingDisputeProof extends Struct {
readonly timeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
readonly validatorIndex: u32;
readonly validatorId: PolkadotPrimitivesV7ValidatorAppPublic;
}
/** @name PolkadotPrimitivesV7SlashingDisputesTimeSlot (356) */
interface PolkadotPrimitivesV7SlashingDisputesTimeSlot extends Struct {
readonly sessionIndex: u32;
readonly candidateHash: H256;
}
/** @name PolkadotPrimitivesV7SlashingSlashingOffenceKind (357) */
interface PolkadotPrimitivesV7SlashingSlashingOffenceKind extends Enum {
readonly isForInvalid: boolean;
readonly isAgainstValid: boolean;
readonly type: 'ForInvalid' | 'AgainstValid';
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (358) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletCall extends Enum {
readonly isPlaceOrderAllowDeath: boolean;
readonly asPlaceOrderAllowDeath: {
@@ -140,12 +361,16 @@ declare module '@polkadot/types/lookup' {
readonly type: 'PlaceOrderAllowDeath' | 'PlaceOrderKeepAlive';
}
/** @name PolkadotRuntimeParachainsCoretimePalletCall (371) */
/** @name PolkadotRuntimeParachainsCoretimePalletCall (368) */
interface PolkadotRuntimeParachainsCoretimePalletCall extends Enum {
readonly isRequestCoreCount: boolean;
readonly asRequestCoreCount: {
readonly count: u16;
} & Struct;
readonly isRequestRevenueAt: boolean;
readonly asRequestRevenueAt: {
readonly when: u32;
} & Struct;
readonly isAssignCore: boolean;
readonly asAssignCore: {
readonly core: u16;
@@ -153,24 +378,79 @@ declare module '@polkadot/types/lookup' {
readonly assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
} & Struct;
readonly type: 'RequestCoreCount' | 'AssignCore';
readonly type: 'RequestCoreCount' | 'RequestRevenueAt' | 'AssignCore';
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (512) */
/** @name XcmV3OriginKind (414) */
interface XcmV3OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name StagingKusamaRuntimeRuntimeParametersKey (479) */
interface StagingKusamaRuntimeRuntimeParametersKey extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
readonly type: 'Inflation';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationParametersKey (480) */
interface StagingKusamaRuntimeDynamicParamsInflationParametersKey extends Enum {
readonly isMinInflation: boolean;
readonly isMaxInflation: boolean;
readonly isIdealStake: boolean;
readonly isFalloff: boolean;
readonly isUseAuctionSlots: boolean;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @name StagingKusamaRuntimeRuntimeParametersValue (482) */
interface StagingKusamaRuntimeRuntimeParametersValue extends Enum {
readonly isInflation: boolean;
readonly asInflation: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
readonly type: 'Inflation';
}
/** @name StagingKusamaRuntimeDynamicParamsInflationParametersValue (483) */
interface StagingKusamaRuntimeDynamicParamsInflationParametersValue extends Enum {
readonly isMinInflation: boolean;
readonly asMinInflation: Perquintill;
readonly isMaxInflation: boolean;
readonly asMaxInflation: Perquintill;
readonly isIdealStake: boolean;
readonly asIdealStake: Perquintill;
readonly isFalloff: boolean;
readonly asFalloff: Perquintill;
readonly isUseAuctionSlots: boolean;
readonly asUseAuctionSlots: bool;
readonly type: 'MinInflation' | 'MaxInflation' | 'IdealStake' | 'Falloff' | 'UseAuctionSlots';
}
/** @name PolkadotPrimitivesV7CandidateReceipt (508) */
interface PolkadotPrimitivesV7CandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV7CandidateDescriptor;
readonly commitmentsHash: H256;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (516) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletEvent extends Enum {
readonly isOnDemandOrderPlaced: boolean;
readonly asOnDemandOrderPlaced: {
readonly paraId: u32;
readonly spotPrice: u128;
readonly orderedBy: AccountId32;
} & Struct;
readonly isSpotTrafficSet: boolean;
readonly asSpotTrafficSet: {
readonly traffic: u128;
readonly isSpotPriceSet: boolean;
readonly asSpotPriceSet: {
readonly spotPrice: u128;
} & Struct;
readonly type: 'OnDemandOrderPlaced' | 'SpotTrafficSet';
readonly type: 'OnDemandOrderPlaced' | 'SpotPriceSet';
}
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (517) */
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (521) */
interface PolkadotRuntimeParachainsCoretimePalletEvent extends Enum {
readonly isRevenueInfoRequested: boolean;
readonly asRevenueInfoRequested: {
@@ -183,7 +463,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'RevenueInfoRequested' | 'CoreAssigned';
}
/** @name StagingKusamaRuntimeRuntimeHoldReason (566) */
/** @name StagingKusamaRuntimeRuntimeHoldReason (570) */
interface StagingKusamaRuntimeRuntimeHoldReason extends Enum {
readonly isPreimage: boolean;
readonly asPreimage: PalletPreimageHoldReason;
@@ -192,58 +472,136 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Preimage' | 'Nis';
}
/** @name StagingKusamaRuntimeRuntimeFreezeReason (572) */
/** @name StagingKusamaRuntimeRuntimeFreezeReason (576) */
interface StagingKusamaRuntimeRuntimeFreezeReason extends Enum {
readonly isNominationPools: boolean;
readonly asNominationPools: PalletNominationPoolsFreezeReason;
readonly type: 'NominationPools';
}
/** @name PalletBalancesIdAmount (742) */
interface PalletBalancesIdAmount extends Struct {
/** @name FrameSupportTokensMiscIdAmount (749) */
interface FrameSupportTokensMiscIdAmount extends Struct {
readonly id: Null;
readonly amount: u128;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder (841) */
interface PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder extends Struct {
readonly paraId: u32;
/** @name PolkadotPrimitivesV7ScrapedOnChainVotes (791) */
interface PolkadotPrimitivesV7ScrapedOnChainVotes extends Struct {
readonly session: u32;
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV7CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV7ValidityAttestation]>>]>>;
readonly disputes: Vec<PolkadotPrimitivesV7DisputeStatementSet>;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount (842) */
interface PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount extends Struct {
readonly coreIdx: u32;
/** @name PolkadotRuntimeParachainsParasUpgradeStrategy (809) */
interface PolkadotRuntimeParachainsParasUpgradeStrategy extends Enum {
readonly isSetGoAheadSignal: boolean;
readonly isApplyAtExpectedBlock: boolean;
readonly type: 'SetGoAheadSignal' | 'ApplyAtExpectedBlock';
}
/** @name PolkadotPrimitivesV7UpgradeGoAhead (818) */
interface PolkadotPrimitivesV7UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead';
}
/** @name PolkadotPrimitivesV7UpgradeRestriction (819) */
interface PolkadotPrimitivesV7UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
/** @name PolkadotPrimitivesV7SessionInfo (835) */
interface PolkadotPrimitivesV7SessionInfo extends Struct {
readonly activeValidatorIndices: Vec<u32>;
readonly randomSeed: U8aFixed;
readonly disputePeriod: u32;
readonly validators: PolkadotPrimitivesV7IndexedVecValidatorIndex;
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
readonly assignmentKeys: Vec<PolkadotPrimitivesV7AssignmentAppPublic>;
readonly validatorGroups: PolkadotPrimitivesV7IndexedVecGroupIndex;
readonly nCores: u32;
readonly zerothDelayTrancheWidth: u32;
readonly relayVrfModuloSamples: u32;
readonly nDelayTranches: u32;
readonly noShowSlots: u32;
readonly neededApprovals: u32;
}
/** @name PolkadotPrimitivesV7IndexedVecValidatorIndex (836) */
interface PolkadotPrimitivesV7IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV7ValidatorAppPublic> {}
/** @name PolkadotPrimitivesV7IndexedVecGroupIndex (837) */
interface PolkadotPrimitivesV7IndexedVecGroupIndex extends Vec<Vec<u32>> {}
/** @name PolkadotPrimitivesV7DisputeState (839) */
interface PolkadotPrimitivesV7DisputeState extends Struct {
readonly validatorsFor: BitVec;
readonly validatorsAgainst: BitVec;
readonly start: u32;
readonly concludedAt: Option<u32>;
}
/** @name PolkadotPrimitivesV7SlashingPendingSlashes (842) */
interface PolkadotPrimitivesV7SlashingPendingSlashes extends Struct {
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV7ValidatorAppPublic>;
readonly kind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount (847) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount extends Struct {
readonly coreIndex: u32;
readonly count: u32;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (843) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
readonly isInvalidParaId: boolean;
readonly isQueueFull: boolean;
readonly isSpotPriceHigherThanMaxAmount: boolean;
readonly type: 'InvalidParaId' | 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType (848) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType extends Struct {
readonly traffic: u128;
readonly nextIndex: u32;
readonly smallestIndex: u32;
readonly freedIndices: BinaryHeapReverseQueueIndex;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (845) */
/** @name BinaryHeapReverseQueueIndex (850) */
interface BinaryHeapReverseQueueIndex extends Vec<u32> {}
/** @name BinaryHeapEnqueuedOrder (853) */
interface BinaryHeapEnqueuedOrder extends Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder> {}
/** @name PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder (854) */
interface PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder extends Struct {
readonly paraId: u32;
readonly idx: u32;
}
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (858) */
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
readonly isQueueFull: boolean;
readonly isSpotPriceHigherThanMaxAmount: boolean;
readonly type: 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (860) */
interface PolkadotRuntimeParachainsAssignerCoretimeSchedule extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
readonly endHint: Option<u32>;
readonly nextSchedule: Option<u32>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (846) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (861) */
interface PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor extends Struct {
readonly queue: Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>;
readonly currentWork: Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (848) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (863) */
interface PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor extends Struct {
readonly first: u32;
readonly last: u32;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (850) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (865) */
interface PolkadotRuntimeParachainsAssignerCoretimeWorkState extends Struct {
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState]>>;
readonly endHint: Option<u32>;
@@ -251,13 +609,13 @@ declare module '@polkadot/types/lookup' {
readonly step: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (853) */
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (868) */
interface PolkadotRuntimeParachainsAssignerCoretimeAssignmentState extends Struct {
readonly ratio: u16;
readonly remaining: u16;
}
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (854) */
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (869) */
interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
readonly isAssignmentsEmpty: boolean;
readonly isOverScheduled: boolean;
@@ -268,13 +626,15 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AssignmentsEmpty' | 'OverScheduled' | 'UnderScheduled' | 'DisallowedInsert' | 'DuplicateInsert' | 'AssignmentsNotSorted';
}
/** @name PolkadotRuntimeParachainsCoretimePalletError (868) */
/** @name PolkadotRuntimeParachainsCoretimePalletError (882) */
interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
readonly isNotBroker: boolean;
readonly type: 'NotBroker';
readonly isRequestedFutureRevenue: boolean;
readonly isAssetTransferFailed: boolean;
readonly type: 'NotBroker' | 'RequestedFutureRevenue' | 'AssetTransferFailed';
}
/** @name StagingKusamaRuntimeRuntime (915) */
/** @name StagingKusamaRuntimeRuntime (929) */
type StagingKusamaRuntimeRuntime = Null;
} // 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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -30,11 +30,12 @@ import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot
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';
import type { BlockStats } from '@polkadot/types/interfaces/dev';
import type { CallDryRunEffects, DispatchResultWithPostInfo, PostDispatchInfo, XcmDryRunApiError, XcmDryRunEffects } from '@polkadot/types/interfaces/dryRunApi';
import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';
import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFeeHistory, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthReceiptV0, EthReceiptV3, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';
import type { EvmAccount, EvmCallInfo, EvmCallInfoV2, EvmCreateInfo, EvmCreateInfoV2, EvmLog, EvmVicinity, EvmWeightInfo, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicPayloadV5, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV4, ExtrinsicV5, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles';
import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
@@ -73,7 +74,7 @@ import type { TransactionSource, TransactionValidity, ValidTransaction } from '@
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { AssetIdV2, AssetIdV3, AssetIdV4, AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, AssetInstanceV3, AssetInstanceV4, BodyId, BodyIdV2, BodyIdV3, BodyPart, BodyPartV2, BodyPartV3, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, FungibilityV3, FungibilityV4, InboundStatus, InstructionV2, InstructionV3, InstructionV4, InteriorMultiLocation, InteriorMultiLocationV2, InteriorMultiLocationV3, Junction, JunctionV0, JunctionV1, JunctionV2, JunctionV3, JunctionV4, Junctions, JunctionsV1, JunctionsV2, JunctionsV3, JunctionsV4, MaxPalletNameLen, MaxPalletsInfo, MaybeErrorCodeV3, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetFilterV3, MultiAssetFilterV4, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssetV3, MultiAssetV4, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiAssetsV3, MultiAssetsV4, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, MultiLocationV3, MultiLocationV4, NetworkId, NetworkIdV2, NetworkIdV3, NetworkIdV4, OriginKindV0, OriginKindV1, OriginKindV2, OriginKindV3, OriginKindV4, OutboundStatus, Outcome, OutcomeV4, PalletInfoV3, PalletInfoV4, QueryId, QueryResponseInfoV3, QueryResponseInfoV4, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV3, ResponseV3Error, ResponseV3Result, ResponseV4, UncheckedFungibilityV4, VersionMigrationStage, VersionV3, VersionV4, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WeightLimitV3, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildFungibilityV3, WildFungibilityV4, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, WildMultiAssetV3, WildMultiAssetV4, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmErrorV3, XcmErrorV4, XcmOrderV0, XcmOrderV1, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmV3, XcmV4, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
@@ -122,10 +123,15 @@ declare module '@polkadot/types/types/registry' {
AssetDestroyWitness: AssetDestroyWitness;
AssetDetails: AssetDetails;
AssetId: AssetId;
AssetIdV2: AssetIdV2;
AssetIdV3: AssetIdV3;
AssetIdV4: AssetIdV4;
AssetInstance: AssetInstance;
AssetInstanceV0: AssetInstanceV0;
AssetInstanceV1: AssetInstanceV1;
AssetInstanceV2: AssetInstanceV2;
AssetInstanceV3: AssetInstanceV3;
AssetInstanceV4: AssetInstanceV4;
AssetMetadata: AssetMetadata;
AssetOptions: AssetOptions;
AssignmentId: AssignmentId;
@@ -198,7 +204,11 @@ declare module '@polkadot/types/types/registry' {
BlockV2: BlockV2;
BlockWeights: BlockWeights;
BodyId: BodyId;
BodyIdV2: BodyIdV2;
BodyIdV3: BodyIdV3;
BodyPart: BodyPart;
BodyPartV2: BodyPartV2;
BodyPartV3: BodyPartV3;
bool: bool;
Bool: Bool;
Bounty: Bounty;
@@ -214,6 +224,7 @@ declare module '@polkadot/types/types/registry' {
BufferedSessionChange: BufferedSessionChange;
Bytes: Bytes;
Call: Call;
CallDryRunEffects: CallDryRunEffects;
CallHash: CallHash;
CallHashOf: CallHashOf;
CallIndex: CallIndex;
@@ -373,6 +384,7 @@ declare module '@polkadot/types/types/registry' {
DispatchResult: DispatchResult;
DispatchResultOf: DispatchResultOf;
DispatchResultTo198: DispatchResultTo198;
DispatchResultWithPostInfo: DispatchResultWithPostInfo;
DisputeLocation: DisputeLocation;
DisputeProof: DisputeProof;
DisputeResult: DisputeResult;
@@ -492,12 +504,15 @@ declare module '@polkadot/types/types/registry' {
ExtrinsicPayload: ExtrinsicPayload;
ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;
ExtrinsicPayloadV4: ExtrinsicPayloadV4;
ExtrinsicPayloadV5: ExtrinsicPayloadV5;
ExtrinsicSignature: ExtrinsicSignature;
ExtrinsicSignatureV4: ExtrinsicSignatureV4;
ExtrinsicSignatureV5: ExtrinsicSignatureV5;
ExtrinsicStatus: ExtrinsicStatus;
ExtrinsicsWeight: ExtrinsicsWeight;
ExtrinsicUnknown: ExtrinsicUnknown;
ExtrinsicV4: ExtrinsicV4;
ExtrinsicV5: ExtrinsicV5;
f32: f32;
F32: F32;
f64: f64;
@@ -533,6 +548,8 @@ declare module '@polkadot/types/types/registry' {
FungibilityV0: FungibilityV0;
FungibilityV1: FungibilityV1;
FungibilityV2: FungibilityV2;
FungibilityV3: FungibilityV3;
FungibilityV4: FungibilityV4;
FungiblesAccessError: FungiblesAccessError;
Gas: Gas;
GenesisBuildErr: GenesisBuildErr;
@@ -619,8 +636,12 @@ declare module '@polkadot/types/types/registry' {
InstantiateReturnValueOk: InstantiateReturnValueOk;
InstantiateReturnValueTo267: InstantiateReturnValueTo267;
InstructionV2: InstructionV2;
InstructionV3: InstructionV3;
InstructionV4: InstructionV4;
InstructionWeights: InstructionWeights;
InteriorMultiLocation: InteriorMultiLocation;
InteriorMultiLocationV2: InteriorMultiLocationV2;
InteriorMultiLocationV3: InteriorMultiLocationV3;
InvalidDisputeStatementKind: InvalidDisputeStatementKind;
InvalidTransaction: InvalidTransaction;
isize: isize;
@@ -630,9 +651,13 @@ declare module '@polkadot/types/types/registry' {
Junctions: Junctions;
JunctionsV1: JunctionsV1;
JunctionsV2: JunctionsV2;
JunctionsV3: JunctionsV3;
JunctionsV4: JunctionsV4;
JunctionV0: JunctionV0;
JunctionV1: JunctionV1;
JunctionV2: JunctionV2;
JunctionV3: JunctionV3;
JunctionV4: JunctionV4;
Justification: Justification;
JustificationNotification: JustificationNotification;
Justifications: Justifications;
@@ -657,6 +682,9 @@ declare module '@polkadot/types/types/registry' {
LookupSource: LookupSource;
LookupTarget: LookupTarget;
LotteryConfig: LotteryConfig;
MaxPalletNameLen: MaxPalletNameLen;
MaxPalletsInfo: MaxPalletsInfo;
MaybeErrorCodeV3: MaybeErrorCodeV3;
MaybeRandomness: MaybeRandomness;
MaybeVrf: MaybeVrf;
MemberCount: MemberCount;
@@ -713,22 +741,33 @@ declare module '@polkadot/types/types/registry' {
MultiAssetFilter: MultiAssetFilter;
MultiAssetFilterV1: MultiAssetFilterV1;
MultiAssetFilterV2: MultiAssetFilterV2;
MultiAssetFilterV3: MultiAssetFilterV3;
MultiAssetFilterV4: MultiAssetFilterV4;
MultiAssets: MultiAssets;
MultiAssetsV1: MultiAssetsV1;
MultiAssetsV2: MultiAssetsV2;
MultiAssetsV3: MultiAssetsV3;
MultiAssetsV4: MultiAssetsV4;
MultiAssetV0: MultiAssetV0;
MultiAssetV1: MultiAssetV1;
MultiAssetV2: MultiAssetV2;
MultiAssetV3: MultiAssetV3;
MultiAssetV4: MultiAssetV4;
MultiDisputeStatementSet: MultiDisputeStatementSet;
MultiLocation: MultiLocation;
MultiLocationV0: MultiLocationV0;
MultiLocationV1: MultiLocationV1;
MultiLocationV2: MultiLocationV2;
MultiLocationV3: MultiLocationV3;
MultiLocationV4: MultiLocationV4;
Multiplier: Multiplier;
Multisig: Multisig;
MultiSignature: MultiSignature;
MultiSigner: MultiSigner;
NetworkId: NetworkId;
NetworkIdV2: NetworkIdV2;
NetworkIdV3: NetworkIdV3;
NetworkIdV4: NetworkIdV4;
NetworkState: NetworkState;
NetworkStatePeerset: NetworkStatePeerset;
NetworkStatePeersetInfo: NetworkStatePeersetInfo;
@@ -772,6 +811,8 @@ declare module '@polkadot/types/types/registry' {
OriginKindV0: OriginKindV0;
OriginKindV1: OriginKindV1;
OriginKindV2: OriginKindV2;
OriginKindV3: OriginKindV3;
OriginKindV4: OriginKindV4;
OutboundHrmpChannelLimitations: OutboundHrmpChannelLimitations;
OutboundHrmpMessage: OutboundHrmpMessage;
OutboundLaneData: OutboundLaneData;
@@ -779,6 +820,7 @@ declare module '@polkadot/types/types/registry' {
OutboundPayload: OutboundPayload;
OutboundStatus: OutboundStatus;
Outcome: Outcome;
OutcomeV4: OutcomeV4;
OuterEnums15: OuterEnums15;
OverweightIndex: OverweightIndex;
Owner: Owner;
@@ -793,6 +835,8 @@ declare module '@polkadot/types/types/registry' {
PalletEventMetadataLatest: PalletEventMetadataLatest;
PalletEventMetadataV14: PalletEventMetadataV14;
PalletId: PalletId;
PalletInfoV3: PalletInfoV3;
PalletInfoV4: PalletInfoV4;
PalletMetadataLatest: PalletMetadataLatest;
PalletMetadataV14: PalletMetadataV14;
PalletMetadataV15: PalletMetadataV15;
@@ -845,6 +889,7 @@ declare module '@polkadot/types/types/registry' {
Points: Points;
PortableType: PortableType;
PortableTypeV14: PortableTypeV14;
PostDispatchInfo: PostDispatchInfo;
Precommits: Precommits;
PrefabWasmModule: PrefabWasmModule;
PrefixedStorageKey: PrefixedStorageKey;
@@ -865,6 +910,8 @@ declare module '@polkadot/types/types/registry' {
PvfExecTimeoutKind: PvfExecTimeoutKind;
PvfPrepTimeoutKind: PvfPrepTimeoutKind;
QueryId: QueryId;
QueryResponseInfoV3: QueryResponseInfoV3;
QueryResponseInfoV4: QueryResponseInfoV4;
QueryStatus: QueryStatus;
QueueConfigData: QueueConfigData;
QueuedParathread: QueuedParathread;
@@ -922,7 +969,10 @@ declare module '@polkadot/types/types/registry' {
ResponseV1: ResponseV1;
ResponseV2: ResponseV2;
ResponseV2Error: ResponseV2Error;
ResponseV2Result: ResponseV2Result;
ResponseV3: ResponseV3;
ResponseV3Error: ResponseV3Error;
ResponseV3Result: ResponseV3Result;
ResponseV4: ResponseV4;
Retriable: Retriable;
RewardDestination: RewardDestination;
RewardPoint: RewardPoint;
@@ -1159,6 +1209,7 @@ declare module '@polkadot/types/types/registry' {
U8: U8;
UnappliedSlash: UnappliedSlash;
UnappliedSlashOther: UnappliedSlashOther;
UncheckedFungibilityV4: UncheckedFungibilityV4;
UncleEntryItem: UncleEntryItem;
UnknownTransaction: UnknownTransaction;
UnlockChunk: UnlockChunk;
@@ -1197,6 +1248,8 @@ declare module '@polkadot/types/types/registry' {
VersionedResponse: VersionedResponse;
VersionedXcm: VersionedXcm;
VersionMigrationStage: VersionMigrationStage;
VersionV3: VersionV3;
VersionV4: VersionV4;
VestingInfo: VestingInfo;
VestingSchedule: VestingSchedule;
Vote: Vote;
@@ -1217,6 +1270,7 @@ declare module '@polkadot/types/types/registry' {
VrfProof: VrfProof;
Weight: Weight;
WeightLimitV2: WeightLimitV2;
WeightLimitV3: WeightLimitV3;
WeightMultiplier: WeightMultiplier;
WeightPerClass: WeightPerClass;
WeightToFeeCoefficient: WeightToFeeCoefficient;
@@ -1227,9 +1281,13 @@ declare module '@polkadot/types/types/registry' {
WildFungibilityV0: WildFungibilityV0;
WildFungibilityV1: WildFungibilityV1;
WildFungibilityV2: WildFungibilityV2;
WildFungibilityV3: WildFungibilityV3;
WildFungibilityV4: WildFungibilityV4;
WildMultiAsset: WildMultiAsset;
WildMultiAssetV1: WildMultiAssetV1;
WildMultiAssetV2: WildMultiAssetV2;
WildMultiAssetV3: WildMultiAssetV3;
WildMultiAssetV4: WildMultiAssetV4;
WinnersData: WinnersData;
WinnersData10: WinnersData10;
WinnersDataTuple: WinnersDataTuple;
@@ -1240,14 +1298,16 @@ declare module '@polkadot/types/types/registry' {
WithdrawReasons: WithdrawReasons;
Xcm: Xcm;
XcmAssetId: XcmAssetId;
XcmDryRunApiError: XcmDryRunApiError;
XcmDryRunEffects: XcmDryRunEffects;
XcmError: XcmError;
XcmErrorV0: XcmErrorV0;
XcmErrorV1: XcmErrorV1;
XcmErrorV2: XcmErrorV2;
XcmOrder: XcmOrder;
XcmErrorV3: XcmErrorV3;
XcmErrorV4: XcmErrorV4;
XcmOrderV0: XcmOrderV0;
XcmOrderV1: XcmOrderV1;
XcmOrderV2: XcmOrderV2;
XcmOrigin: XcmOrigin;
XcmOriginKind: XcmOriginKind;
XcmPaymentApiError: XcmPaymentApiError;
@@ -1255,6 +1315,8 @@ declare module '@polkadot/types/types/registry' {
XcmV0: XcmV0;
XcmV1: XcmV1;
XcmV2: XcmV2;
XcmV3: XcmV3;
XcmV4: XcmV4;
XcmVersion: XcmVersion;
} // InterfaceTypes
} // declare module
+56 -6
View File
@@ -5,34 +5,84 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
import type { PalletBalancesIdAmount, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimePalletImOnlinePalletEvent, StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
import type { BinaryHeapEnqueuedOrder, BinaryHeapReverseQueueIndex, FrameSupportTokensMiscIdAmount, PolkadotPrimitivesV7ApprovalVotingParams, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7BackedCandidate, PolkadotPrimitivesV7CandidateCommitments, PolkadotPrimitivesV7CandidateDescriptor, PolkadotPrimitivesV7CandidateReceipt, PolkadotPrimitivesV7CollatorAppPublic, PolkadotPrimitivesV7CollatorAppSignature, PolkadotPrimitivesV7CommittedCandidateReceipt, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7DisputeStatement, PolkadotPrimitivesV7DisputeStatementSet, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ExecutorParamsExecutorParam, PolkadotPrimitivesV7IndexedVecGroupIndex, PolkadotPrimitivesV7IndexedVecValidatorIndex, PolkadotPrimitivesV7InherentData, PolkadotPrimitivesV7InvalidDisputeStatementKind, PolkadotPrimitivesV7PvfCheckStatement, PolkadotPrimitivesV7PvfExecKind, PolkadotPrimitivesV7PvfPrepKind, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SignedUncheckedSigned, PolkadotPrimitivesV7SlashingDisputeProof, PolkadotPrimitivesV7SlashingDisputesTimeSlot, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7SlashingSlashingOffenceKind, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidDisputeStatementKind, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotPrimitivesV7ValidatorAppSignature, PolkadotPrimitivesV7ValidityAttestation, PolkadotPrimitivesVstagingSchedulerParams, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, PolkadotRuntimeParachainsParasUpgradeStrategy, StagingKusamaRuntimeDynamicParamsInflationFalloff, StagingKusamaRuntimeDynamicParamsInflationIdealStake, StagingKusamaRuntimeDynamicParamsInflationMaxInflation, StagingKusamaRuntimeDynamicParamsInflationMinInflation, StagingKusamaRuntimeDynamicParamsInflationParameters, StagingKusamaRuntimeDynamicParamsInflationParametersKey, StagingKusamaRuntimeDynamicParamsInflationParametersValue, StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeRuntimeParameters, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingKusamaRuntimeSessionKeys, XcmV3OriginKind } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
PalletBalancesIdAmount: PalletBalancesIdAmount;
BinaryHeapEnqueuedOrder: BinaryHeapEnqueuedOrder;
BinaryHeapReverseQueueIndex: BinaryHeapReverseQueueIndex;
FrameSupportTokensMiscIdAmount: FrameSupportTokensMiscIdAmount;
PolkadotPrimitivesV7ApprovalVotingParams: PolkadotPrimitivesV7ApprovalVotingParams;
PolkadotPrimitivesV7AssignmentAppPublic: PolkadotPrimitivesV7AssignmentAppPublic;
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
PolkadotPrimitivesV7BackedCandidate: PolkadotPrimitivesV7BackedCandidate;
PolkadotPrimitivesV7CandidateCommitments: PolkadotPrimitivesV7CandidateCommitments;
PolkadotPrimitivesV7CandidateDescriptor: PolkadotPrimitivesV7CandidateDescriptor;
PolkadotPrimitivesV7CandidateReceipt: PolkadotPrimitivesV7CandidateReceipt;
PolkadotPrimitivesV7CollatorAppPublic: PolkadotPrimitivesV7CollatorAppPublic;
PolkadotPrimitivesV7CollatorAppSignature: PolkadotPrimitivesV7CollatorAppSignature;
PolkadotPrimitivesV7CommittedCandidateReceipt: PolkadotPrimitivesV7CommittedCandidateReceipt;
PolkadotPrimitivesV7DisputeState: PolkadotPrimitivesV7DisputeState;
PolkadotPrimitivesV7DisputeStatement: PolkadotPrimitivesV7DisputeStatement;
PolkadotPrimitivesV7DisputeStatementSet: PolkadotPrimitivesV7DisputeStatementSet;
PolkadotPrimitivesV7ExecutorParams: PolkadotPrimitivesV7ExecutorParams;
PolkadotPrimitivesV7ExecutorParamsExecutorParam: PolkadotPrimitivesV7ExecutorParamsExecutorParam;
PolkadotPrimitivesV7IndexedVecGroupIndex: PolkadotPrimitivesV7IndexedVecGroupIndex;
PolkadotPrimitivesV7IndexedVecValidatorIndex: PolkadotPrimitivesV7IndexedVecValidatorIndex;
PolkadotPrimitivesV7InherentData: PolkadotPrimitivesV7InherentData;
PolkadotPrimitivesV7InvalidDisputeStatementKind: PolkadotPrimitivesV7InvalidDisputeStatementKind;
PolkadotPrimitivesV7PvfCheckStatement: PolkadotPrimitivesV7PvfCheckStatement;
PolkadotPrimitivesV7PvfExecKind: PolkadotPrimitivesV7PvfExecKind;
PolkadotPrimitivesV7PvfPrepKind: PolkadotPrimitivesV7PvfPrepKind;
PolkadotPrimitivesV7ScrapedOnChainVotes: PolkadotPrimitivesV7ScrapedOnChainVotes;
PolkadotPrimitivesV7SessionInfo: PolkadotPrimitivesV7SessionInfo;
PolkadotPrimitivesV7SignedUncheckedSigned: PolkadotPrimitivesV7SignedUncheckedSigned;
PolkadotPrimitivesV7SlashingDisputeProof: PolkadotPrimitivesV7SlashingDisputeProof;
PolkadotPrimitivesV7SlashingDisputesTimeSlot: PolkadotPrimitivesV7SlashingDisputesTimeSlot;
PolkadotPrimitivesV7SlashingPendingSlashes: PolkadotPrimitivesV7SlashingPendingSlashes;
PolkadotPrimitivesV7SlashingSlashingOffenceKind: PolkadotPrimitivesV7SlashingSlashingOffenceKind;
PolkadotPrimitivesV7UpgradeGoAhead: PolkadotPrimitivesV7UpgradeGoAhead;
PolkadotPrimitivesV7UpgradeRestriction: PolkadotPrimitivesV7UpgradeRestriction;
PolkadotPrimitivesV7ValidDisputeStatementKind: PolkadotPrimitivesV7ValidDisputeStatementKind;
PolkadotPrimitivesV7ValidatorAppPublic: PolkadotPrimitivesV7ValidatorAppPublic;
PolkadotPrimitivesV7ValidatorAppSignature: PolkadotPrimitivesV7ValidatorAppSignature;
PolkadotPrimitivesV7ValidityAttestation: PolkadotPrimitivesV7ValidityAttestation;
PolkadotPrimitivesVstagingSchedulerParams: PolkadotPrimitivesVstagingSchedulerParams;
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: PolkadotRuntimeParachainsAssignerCoretimeAssignmentState;
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor;
PolkadotRuntimeParachainsAssignerCoretimePalletError: PolkadotRuntimeParachainsAssignerCoretimePalletError;
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor;
PolkadotRuntimeParachainsAssignerCoretimeSchedule: PolkadotRuntimeParachainsAssignerCoretimeSchedule;
PolkadotRuntimeParachainsAssignerCoretimeWorkState: PolkadotRuntimeParachainsAssignerCoretimeWorkState;
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount;
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder;
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: PolkadotRuntimeParachainsAssignerOnDemandPalletCall;
PolkadotRuntimeParachainsAssignerOnDemandPalletError: PolkadotRuntimeParachainsAssignerOnDemandPalletError;
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: PolkadotRuntimeParachainsAssignerOnDemandPalletEvent;
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount: PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount;
PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder: PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder;
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType;
PolkadotRuntimeParachainsCoretimePalletCall: PolkadotRuntimeParachainsCoretimePalletCall;
PolkadotRuntimeParachainsCoretimePalletError: PolkadotRuntimeParachainsCoretimePalletError;
PolkadotRuntimeParachainsCoretimePalletEvent: PolkadotRuntimeParachainsCoretimePalletEvent;
PolkadotRuntimeParachainsParasUpgradeStrategy: PolkadotRuntimeParachainsParasUpgradeStrategy;
StagingKusamaRuntimeDynamicParamsInflationFalloff: StagingKusamaRuntimeDynamicParamsInflationFalloff;
StagingKusamaRuntimeDynamicParamsInflationIdealStake: StagingKusamaRuntimeDynamicParamsInflationIdealStake;
StagingKusamaRuntimeDynamicParamsInflationMaxInflation: StagingKusamaRuntimeDynamicParamsInflationMaxInflation;
StagingKusamaRuntimeDynamicParamsInflationMinInflation: StagingKusamaRuntimeDynamicParamsInflationMinInflation;
StagingKusamaRuntimeDynamicParamsInflationParameters: StagingKusamaRuntimeDynamicParamsInflationParameters;
StagingKusamaRuntimeDynamicParamsInflationParametersKey: StagingKusamaRuntimeDynamicParamsInflationParametersKey;
StagingKusamaRuntimeDynamicParamsInflationParametersValue: StagingKusamaRuntimeDynamicParamsInflationParametersValue;
StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots: StagingKusamaRuntimeDynamicParamsInflationUseAuctionSlots;
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
StagingKusamaRuntimeNposCompactSolution24: StagingKusamaRuntimeNposCompactSolution24;
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
StagingKusamaRuntimePalletImOnlinePalletEvent: StagingKusamaRuntimePalletImOnlinePalletEvent;
StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public: StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public;
StagingKusamaRuntimeProxyType: StagingKusamaRuntimeProxyType;
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
StagingKusamaRuntimeRuntimeHoldReason: StagingKusamaRuntimeRuntimeHoldReason;
StagingKusamaRuntimeRuntimeParameters: StagingKusamaRuntimeRuntimeParameters;
StagingKusamaRuntimeRuntimeParametersKey: StagingKusamaRuntimeRuntimeParametersKey;
StagingKusamaRuntimeRuntimeParametersValue: StagingKusamaRuntimeRuntimeParametersValue;
StagingKusamaRuntimeSessionKeys: StagingKusamaRuntimeSessionKeys;
XcmV3OriginKind: XcmV3OriginKind;
} // InterfaceTypes
} // declare module
+8 -8
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.0.2",
"@polkadot/x-bigint": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/util": "^13.1.1",
"@polkadot/x-bigint": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/types": "12.4.1",
"@polkadot/types-augment": "12.4.1",
"@polkadot/types-support": "12.4.1",
"@polkadot/util-crypto": "^13.0.2"
"@polkadot/types": "14.0.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-support": "14.0.1",
"@polkadot/util-crypto": "^13.1.1"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -71,6 +71,7 @@ export interface Registry {
getClassName (clazz: CodecClass): string | undefined;
getOrThrow <T extends Codec = Codec, K extends string = string> (name: K, msg?: string): CodecClass<T>;
getOrUnknown <T extends Codec = Codec, K extends string = string> (name: K): CodecClass<T>;
getTransactionExtensionVersion (): number;
getSignedExtensionExtra (): Record<string, string>;
getSignedExtensionTypes (): Record<string, string>;
+5 -5
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "12.4.1",
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/types-codec": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/types": "12.4.1"
"@polkadot/types": "14.0.1"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '14.0.1' };
+2 -2
View File
@@ -3,9 +3,9 @@
import { objectSpread } from '@polkadot/util';
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError'];
export function mapXcmTypes (version: 'V0' | 'V1' | 'V2'): Record<string, string> {
export function mapXcmTypes (version: 'V0' | 'V1' | 'V2' | 'V3' | 'V4'): Record<string, string> {
return XCM_MAPPINGS.reduce<Record<string, string>>((all, key) =>
objectSpread(all, { [key]: `${key}${version}` }), {}
);
+8 -8
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^13.0.2",
"@polkadot/types": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/types-create": "12.4.1",
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/networks": "^13.1.1",
"@polkadot/types": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/api": "12.4.1"
"@polkadot/api": "14.0.1"
}
}
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '14.0.1' };
@@ -5270,5 +5270,103 @@ export const upgrades: ChainUpgradesExpanded = [
1
]
]
],
[
24786390,
1003000,
[
[
"0xc51ff1fa3f5d0cca",
1
],
[
"0xdf6acb689907609b",
5
],
[
"0x37e397fc7c91f5e4",
2
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
11
],
[
"0x49eaaf1b548a0cb0",
3
],
[
"0x91d5df18b0d2cf58",
2
],
[
"0x2a5e924655399e60",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
4
],
[
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
1
],
[
"0x18ef58a3b67ba770",
1
],
[
"0xfbc577b9d747efd6",
1
]
]
]
];
@@ -22,5 +22,5 @@ export const upgrades: ChainUpgradesRaw = [
[15680713, 9340], [15756296, 9350], [15912007, 9360], [16356547, 9370], [17335450, 9381],
[18062739, 9420], [18625000, 9430], [20465806, 1000000], [21570000, 1001000], [21786291, 1001002],
[22515962, 1001003], [22790000, 1002000], [23176015, 1002001], [23450253, 1002004], [23565293, 1002005],
[23780224, 1002006]
[23780224, 1002006], [24786390, 1003000]
];
+3 -3
View File
@@ -18,10 +18,10 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.0.2",
"tslib": "^2.6.3"
"@polkadot/util": "^13.1.1",
"tslib": "^2.7.0"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -9,12 +9,16 @@ export default {
"specName": "kusama",
"implName": "parity-kusama",
"authoringVersion": 2,
"specVersion": 1002006,
"specVersion": 1003000,
"implVersion": 0,
"apis": [
[
"0xc51ff1fa3f5d0cca",
1
],
[
"0xdf6acb689907609b",
4
5
],
[
"0x37e397fc7c91f5e4",
@@ -34,7 +38,7 @@ export default {
],
[
"0xaf2c0297a23e6d3d",
10
11
],
[
"0x49eaaf1b548a0cb0",
@@ -76,6 +80,18 @@ export default {
"0xf3ff14d5ab527059",
3
],
[
"0x6ff52ee858e6c5bd",
1
],
[
"0x91b1c8b16328eb92",
1
],
[
"0x9ffb505aa738d69c",
1
],
[
"0x17a6bc0d0062aeb3",
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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '14.0.1' };
+10 -10
View File
@@ -18,20 +18,20 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "12.4.1",
"version": "14.0.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.0.2",
"@polkadot/types-augment": "12.4.1",
"@polkadot/types-codec": "12.4.1",
"@polkadot/types-create": "12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types-augment": "14.0.1",
"@polkadot/types-codec": "14.0.1",
"@polkadot/types-create": "14.0.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"rxjs": "^7.8.1",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
},
"devDependencies": {
"@polkadot/keyring": "^13.0.2",
"@polkadot/types-support": "12.4.1"
"@polkadot/keyring": "^13.1.1",
"@polkadot/types-support": "14.0.1"
}
}
+5
View File
@@ -441,6 +441,11 @@ export class TypeRegistry implements Registry {
return this.get<T, K>(name, true) as unknown as CodecClass<R>;
}
// Only used in extrinsic version 5
public getTransactionExtensionVersion (): number {
return 0;
}
public getSignedExtensionExtra (): Record<string, string> {
return expandExtensionTypes(this.#signedExtensions, 'payload', this.#userExtensions);
}
@@ -48,4 +48,81 @@ describe('Extrinsic', (): void => {
expect(extrinsic.toPrimitive()).toEqual({ method: { args: { dest: { id: '5DiuK2zR4asj2CEh77SKtUgTswTLkD8eiAKrByg5G3wL5w9b' }, value: 104560923320000 }, callIndex: '0x0600' }, signature: { era: { mortalEra: [1024, 186] }, nonce: 68, signature: { ed25519: '0xd99ffe3e610ad234e1414bda5831395a6df9098bf80b01561ce89a5065ae89d5c10e1619c6c99131b0bea4fb73ef04d07c07770e2ae9df5c325c331769ccb300' }, signer: { id: '5Hn8KKEp8qruCGWaN9MEsjTs4FXB4wv9xn7g1RWkNeKKNXCr' }, tip: 30000000000 } });
});
});
describe('V5', () => {
// Ensure it does not have its registry modified by the fallback extensions.
const registry = new TypeRegistry();
const metadata = new Metadata(registry, rpcMetadata);
registry.setMetadata(metadata);
describe('SignedExtrinsic', () => {
it('Should work when the version and preamble is passed in', () => {
const extrinsic = new Extrinsic(
registry,
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809',
{ preamble: 'signed', version: 5 }
);
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
expect(extrinsic.nonce.toNumber()).toEqual(0);
expect(extrinsic.tip.toHuman()).toEqual('0');
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
});
it('Should work when the version and preamble is not passed in', () => {
const extrinsic = new Extrinsic(
registry,
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809'
);
expect(extrinsic.version).toEqual(133);
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
expect(extrinsic.nonce.toNumber()).toEqual(0);
expect(extrinsic.tip.toHuman()).toEqual('0');
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
});
});
describe('GeneralExtrinsic', () => {
it('Should work when the version and preamble is passed in', () => {
const extrinsic = new Extrinsic(
registry,
'0xc44500650000000000060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402',
{ preamble: 'general', version: 5 }
);
expect(extrinsic.version).toEqual(69);
// expect(extrinsic.transactionExtensionVersion.toNumber()).toEqual(0);
expect(extrinsic.method.toHuman()).toEqual({ args: { dest: { Id: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' }, value: '10,000,000,000' }, method: 'transferAllowDeath', section: 'balances' });
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '6' } });
expect(extrinsic.tip.toNumber()).toEqual(0);
expect(extrinsic.mode.toNumber()).toEqual(0);
expect(extrinsic.assetId.toHuman()).toEqual(null);
expect(extrinsic.nonce.toNumber()).toEqual(0);
});
it('Should work when there is no version and preamble is passed in', () => {
const extrinsic = new Extrinsic(
registry,
'0xc44500650000000000060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402'
);
expect(extrinsic.version).toEqual(69);
// expect(extrinsic.transactionExtensionVersion.toNumber()).toEqual(0);
expect(extrinsic.method.toHuman()).toEqual({ args: { dest: { Id: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' }, value: '10,000,000,000' }, method: 'transferAllowDeath', section: 'balances' });
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '6' } });
expect(extrinsic.tip.toNumber()).toEqual(0);
expect(extrinsic.mode.toNumber()).toEqual(0);
expect(extrinsic.assetId.toHuman()).toEqual(null);
expect(extrinsic.nonce.toNumber()).toEqual(0);
});
});
});
});
+102 -34
View File
@@ -3,48 +3,71 @@
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect, IOption } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics/index.js';
import type { GeneralExtrinsic } from '../index.types.js';
import type { EcdsaSignature, Ed25519Signature, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV5, Sr25519Signature } from '../interfaces/extrinsics/index.js';
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
import type { Address, Call, CodecHash, Hash } from '../interfaces/runtime/index.js';
import type { MultiLocation } from '../interfaces/types.js';
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types/index.js';
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
import type { ExtrinsicValueV4 } from './v4/Extrinsic.js';
import type { Preamble } from './types.js';
import type { ExtrinsicValueV5 } from './v5/Extrinsic.js';
import { AbstractBase } from '@polkadot/types-codec';
import { compactAddLength, compactFromU8a, compactToU8a, isHex, isU8a, objectProperty, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
import { EXTRINSIC_VERSION as LATEST_EXTRINSIC_VERSION } from './v4/Extrinsic.js';
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants.js';
import { BARE_EXTRINSIC, BIT_SIGNED, BIT_UNSIGNED, DEFAULT_PREAMBLE, GENERAL_EXTRINSIC, LATEST_EXTRINSIC_VERSION, LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, SIGNED_EXTRINSIC, TYPE_MASK, VERSION_MASK } from './constants.js';
interface CreateOptions {
version?: number;
preamble?: Preamble;
}
// NOTE The following 2 types, as well as the VERSION structure and the latest export
// is to be changed with the addition of a new extrinsic version
type ExtrinsicVx = ExtrinsicV4;
type ExtrinsicValue = ExtrinsicValueV4;
type ExtrinsicVx = ExtrinsicV5 | GeneralExtrinsic;
type ExtrinsicValue = ExtrinsicValueV5;
const VERSIONS = [
'ExtrinsicUnknown', // v0 is unknown
'ExtrinsicUnknown',
'ExtrinsicUnknown',
'ExtrinsicUnknown',
'ExtrinsicV4'
'ExtrinsicV4',
'ExtrinsicV5'
];
const PREAMBLE = {
bare: 'ExtrinsicV5',
general: 'GeneralExtrinsic',
signed: 'ExtrinsicV5'
};
const PreambleMask = {
bare: BARE_EXTRINSIC,
general: GENERAL_EXTRINSIC,
signed: SIGNED_EXTRINSIC
};
const preambleUnMask: Record<string, Preamble> = {
0: 'bare',
// eslint-disable-next-line sort-keys
64: 'general',
// eslint-disable-next-line sort-keys
128: 'signed'
};
export { LATEST_EXTRINSIC_VERSION };
/** @internal */
function newFromValue (registry: Registry, value: any, version: number): ExtrinsicVx | ExtrinsicUnknown {
function newFromValue (registry: Registry, value: any, version: number, preamble: Preamble): ExtrinsicVx | ExtrinsicUnknown {
if (value instanceof GenericExtrinsic) {
return value.unwrap();
}
const isSigned = (version & BIT_SIGNED) === BIT_SIGNED;
const type = VERSIONS[version & UNMASK_VERSION] || VERSIONS[0];
const type = (version & VERSION_MASK) === 5 ? PREAMBLE[preamble] : VERSIONS[version & VERSION_MASK] || VERSIONS[0];
// we cast here since the VERSION definition is incredibly broad - we don't have a
// slice for "only add extrinsic types", and more string definitions become unwieldy
@@ -52,20 +75,20 @@ function newFromValue (registry: Registry, value: any, version: number): Extrins
}
/** @internal */
function decodeExtrinsic (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, version: number = DEFAULT_VERSION): ExtrinsicVx | ExtrinsicUnknown {
function decodeExtrinsic (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, version: number = LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, preamble: Preamble = DEFAULT_PREAMBLE): ExtrinsicVx | ExtrinsicUnknown {
if (isU8a(value) || Array.isArray(value) || isHex(value)) {
return decodeU8a(registry, u8aToU8a(value), version);
return decodeU8a(registry, u8aToU8a(value), version, preamble);
} else if (value instanceof registry.createClassUnsafe('Call')) {
return newFromValue(registry, { method: value }, version);
return newFromValue(registry, { method: value }, version, preamble);
}
return newFromValue(registry, value, version);
return newFromValue(registry, value, version, preamble);
}
/** @internal */
function decodeU8a (registry: Registry, value: Uint8Array, version: number): ExtrinsicVx | ExtrinsicUnknown {
function decodeU8a (registry: Registry, value: Uint8Array, version: number, preamble: Preamble): ExtrinsicVx | ExtrinsicUnknown {
if (!value.length) {
return newFromValue(registry, new Uint8Array(), version);
return newFromValue(registry, new Uint8Array(), version, preamble);
}
const [offset, length] = compactFromU8a(value);
@@ -76,22 +99,41 @@ function decodeU8a (registry: Registry, value: Uint8Array, version: number): Ext
}
const data = value.subarray(offset, total);
const unmaskedPreamble = data[0] & TYPE_MASK;
return newFromValue(registry, data.subarray(1), data[0]);
if (preambleUnMask[`${unmaskedPreamble}`] === 'general') {
// NOTE: GeneralExtrinsic needs to have the full data to validate the preamble and version
return newFromValue(registry, value, data[0], preambleUnMask[`${unmaskedPreamble}`] || preamble);
} else {
return newFromValue(registry, data.subarray(1), data[0], preambleUnMask[`${unmaskedPreamble}`] || preamble);
}
}
abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicVx | ExtrinsicUnknown> {
constructor (registry: Registry, value: ExtrinsicV4 | ExtrinsicUnknown, initialU8aLength?: number) {
readonly #preamble: Preamble;
constructor (registry: Registry, value: ExtrinsicVx | ExtrinsicUnknown, initialU8aLength?: number, preamble?: Preamble) {
super(registry, value, initialU8aLength);
const signKeys = Object.keys(registry.getSignedExtensionTypes());
const getter = (key: string) => this.inner.signature[key as 'signer'];
// This is on the abstract class, ensuring that hasOwnProperty operates
// correctly, i.e. it needs to be on the base class exposing it
for (let i = 0, count = signKeys.length; i < count; i++) {
objectProperty(this, signKeys[i], getter);
if (this.version === 5 && preamble !== 'general') {
const getter = (key: string) => (this.inner.signature as unknown as ExtrinsicSignatureV5)[key as 'signer'];
// This is on the abstract class, ensuring that hasOwnProperty operates
// correctly, i.e. it needs to be on the base class exposing it
for (let i = 0, count = signKeys.length; i < count; i++) {
objectProperty(this, signKeys[i], getter);
}
}
const unmaskedPreamble = this.type & TYPE_MASK;
this.#preamble = preamble || preambleUnMask[`${unmaskedPreamble}`];
}
public isGeneral () {
return this.#preamble === 'general';
}
/**
@@ -126,7 +168,9 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
* @description The era for this extrinsic
*/
public get era (): GenericExtrinsicEra {
return this.inner.signature.era;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).era
: (this.inner.signature as unknown as ExtrinsicSignatureV5).era;
}
/**
@@ -140,7 +184,9 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
* @description `true` id the extrinsic is signed
*/
public get isSigned (): boolean {
return this.inner.signature.isSigned;
return this.isGeneral()
? false
: (this.inner.signature as unknown as ExtrinsicSignatureV5).isSigned;
}
/**
@@ -168,49 +214,67 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
* @description The nonce for this extrinsic
*/
public get nonce (): ICompact<INumber> {
return this.inner.signature.nonce;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).nonce
: (this.inner.signature as unknown as ExtrinsicSignatureV5).nonce;
}
/**
* @description The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]
*/
public get signature (): EcdsaSignature | Ed25519Signature | Sr25519Signature {
return this.inner.signature.signature;
if (this.isGeneral()) {
throw new Error('Extrinsic: GeneralExtrinsic does not have signature implemented');
}
return (this.inner.signature as unknown as ExtrinsicSignatureV5).signature;
}
/**
* @description The [[Address]] that signed
*/
public get signer (): Address {
return this.inner.signature.signer;
if (this.isGeneral()) {
throw new Error('Extrinsic: GeneralExtrinsic does not have signer implemented');
}
return (this.inner.signature as unknown as ExtrinsicSignatureV5).signer;
}
/**
* @description Forwards compat
*/
public get tip (): ICompact<INumber> {
return this.inner.signature.tip;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).tip
: (this.inner.signature as unknown as ExtrinsicSignatureV5).tip;
}
/**
* @description Forward compat
*/
public get assetId (): IOption<INumber | MultiLocation> {
return this.inner.signature.assetId;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).assetId
: (this.inner.signature as unknown as ExtrinsicSignatureV5).assetId;
}
/**
* @description Forward compat
*/
public get metadataHash (): IOption<Hash> {
return this.inner.signature.metadataHash;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).metadataHash
: (this.inner.signature as unknown as ExtrinsicSignatureV5).metadataHash;
}
/**
* @description Forward compat
*/
public get mode (): INumber {
return this.inner.signature.mode;
return this.isGeneral()
? (this.inner as unknown as GeneralExtrinsic).mode
: (this.inner.signature as unknown as ExtrinsicSignatureV5).mode;
}
/**
@@ -228,7 +292,11 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
* @description Returns the encoded version flag
*/
public get version (): number {
return this.type | (this.isSigned ? BIT_SIGNED : BIT_UNSIGNED);
if (this.type <= LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION) {
return this.type | (this.isSigned ? BIT_SIGNED : BIT_UNSIGNED);
} else {
return this.type | (this.isSigned ? PreambleMask.signed : this.isGeneral() ? PreambleMask.general : PreambleMask.bare);
}
}
/**
@@ -260,8 +328,8 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
static LATEST_EXTRINSIC_VERSION = LATEST_EXTRINSIC_VERSION;
constructor (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, { version }: CreateOptions = {}) {
super(registry, decodeExtrinsic(registry, value, version));
constructor (registry: Registry, value?: GenericExtrinsic | ExtrinsicValue | AnyU8a | Call, { preamble, version }: CreateOptions = {}) {
super(registry, decodeExtrinsic(registry, value, version || registry.metadata.extrinsic.version?.toNumber(), preamble), undefined, preamble);
}
/**
@@ -5,38 +5,68 @@ import type { Bytes } from '@polkadot/types-codec';
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { BlockHash } from '../interfaces/chain/index.js';
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
import type { ExtrinsicPayloadV5 } from '../interfaces/extrinsics/index.js';
import type { Hash, MultiLocation } from '../interfaces/types.js';
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../types/index.js';
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
import type { Preamble } from './types.js';
import { AbstractBase } from '@polkadot/types-codec';
import { u8aToHex } from '@polkadot/util';
import { hexToU8a, isHex, u8aToHex } from '@polkadot/util';
import { DEFAULT_VERSION } from './constants.js';
import { DEFAULT_PREAMBLE, LATEST_EXTRINSIC_VERSION } from './constants.js';
interface ExtrinsicPayloadOptions {
version?: number;
preamble?: Preamble;
}
// all our known types that can be returned
type ExtrinsicPayloadVx = ExtrinsicPayloadV4;
type ExtrinsicPayloadVx = ExtrinsicPayloadV5;
const VERSIONS = [
'ExtrinsicPayloadUnknown', // v0 is unknown
'ExtrinsicPayloadUnknown',
'ExtrinsicPayloadUnknown',
'ExtrinsicPayloadUnknown',
'ExtrinsicPayloadV4'
'ExtrinsicPayloadV4',
'ExtrinsicPayloadV5'
];
const PREAMBLES = {
bare: 'ExtrinsicPayloadV5',
// Not supported yet
general: 'ExtrinsicPayloadV5',
signed: 'ExtrinsicPayloadV5'
};
/** @internal */
function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPayload | ExtrinsicPayloadValue | Uint8Array | string, version: number = DEFAULT_VERSION): ExtrinsicPayloadVx {
function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPayload | ExtrinsicPayloadValue | Uint8Array | string, version = LATEST_EXTRINSIC_VERSION, preamble: Preamble = DEFAULT_PREAMBLE): ExtrinsicPayloadVx {
if (value instanceof GenericExtrinsicPayload) {
return value.unwrap();
}
return registry.createTypeUnsafe(VERSIONS[version] || VERSIONS[0], [value, { version }]);
const extVersion = version === 5 ? PREAMBLES[preamble] : VERSIONS[version] || VERSIONS[0];
/**
* HACK: In order to change the assetId from `number | object` to HexString (While maintaining the true type ie Option<TAssetConversion>),
* to allow for easier generalization of the SignerPayloadJSON interface the below check is necessary. The ExtrinsicPayloadV4 class does not like
* a value passed in as an Option, and can't decode it properly. Therefore, we ensure to convert the following below, and then pass the option as a unwrapped
* JSON value.
*
* ref: https://github.com/polkadot-js/api/pull/5968
* ref: https://github.com/polkadot-js/api/pull/5967
*/
if (value && (value as ExtrinsicPayloadValue).assetId && isHex((value as ExtrinsicPayloadValue).assetId)) {
const adjustedPayload = {
...(value as ExtrinsicPayloadValue),
assetId: registry.createType('TAssetConversion', hexToU8a((value as ExtrinsicPayloadValue).assetId)).toJSON()
};
return registry.createTypeUnsafe(extVersion, [adjustedPayload, { version }]);
}
return registry.createTypeUnsafe(extVersion, [value, { version }]);
}
/**
@@ -46,8 +76,8 @@ function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPay
* on the contents included
*/
export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
constructor (registry: Registry, value?: Partial<ExtrinsicPayloadValue> | Uint8Array | string, { version }: ExtrinsicPayloadOptions = {}) {
super(registry, decodeExtrinsicPayload(registry, value as ExtrinsicPayloadValue, version));
constructor (registry: Registry, value?: Partial<ExtrinsicPayloadValue> | Uint8Array | string, { preamble, version }: ExtrinsicPayloadOptions = {}) {
super(registry, decodeExtrinsicPayload(registry, value as ExtrinsicPayloadValue, version, preamble));
}
/**
@@ -4,6 +4,7 @@
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
import { u8aToHex } from '@polkadot/util';
import { TypeRegistry } from '../create/index.js';
import { Metadata } from '../metadata/index.js';
@@ -18,7 +19,7 @@ describe('SignerPayload', (): void => {
const TEST = {
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
assetId: '0x0002043205ed01',
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
@@ -35,6 +36,11 @@ describe('SignerPayload', (): void => {
withSignedTransaction: false
};
const TEST_WITH_ASSETID_HEX = {
...TEST,
assetId: '0x010002043205ed01'
};
it('creates a valid JSON output', (): void => {
expect(
new SignerPayload(registry, {
@@ -57,7 +63,7 @@ describe('SignerPayload', (): void => {
).toEqual({
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
assetId: '0x010002043205ed01',
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
@@ -88,12 +94,12 @@ describe('SignerPayload', (): void => {
expect(
test.toPayload().assetId
// eslint-disable-next-line sort-keys
).toEqual({ parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } });
).toEqual('0x010002043205ed01');
expect(
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
// eslint-disable-next-line sort-keys
).toEqual({ parents: 0, interior: { here: null } });
).toEqual('0x010000');
});
it('re-constructs from JSON', (): void => {
@@ -102,7 +108,7 @@ describe('SignerPayload', (): void => {
...TEST,
runtimeVersion: { specVersion: 0x06, transactionVersion: 0x07 }
}).toPayload()
).toEqual(TEST);
).toEqual(TEST_WITH_ASSETID_HEX);
});
it('re-constructs from itself', (): void => {
@@ -114,14 +120,12 @@ describe('SignerPayload', (): void => {
runtimeVersion: { specVersion: 0x06, transactionVersion: 0x07 }
})
).toPayload()
).toEqual(TEST);
).toEqual(TEST_WITH_ASSETID_HEX);
});
it('can be used as a feed to ExtrinsicPayload', (): void => {
const signer = new SignerPayload(registry, {
...TEST,
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } }
...TEST
}).toPayload();
const payload = registry.createType('ExtrinsicPayload', signer, { version: signer.version });
@@ -130,11 +134,11 @@ describe('SignerPayload', (): void => {
expect(payload.blockHash.toHex()).toEqual(TEST.blockHash);
expect(payload.nonce.eq(TEST.nonce)).toBe(true);
expect(payload.tip.eq(TEST.tip)).toBe(true);
expect(payload.assetId.isSome && payload.assetId
?.eq(registry.createType('MultiLocation', {
expect(u8aToHex(payload.assetId?.toU8a()))
.toEqual(u8aToHex(registry.createType('Option<MultiLocation>', {
// eslint-disable-next-line sort-keys
parents: 0, interior: { X2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
}))).toBe(true);
}).toU8a()));
});
const TEST_WITHOUT_CHECK = {
@@ -159,7 +159,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
// the known defaults as managed explicitly and has different
// formatting in cases, e.g. we mostly expose a hex format here
address: this.address.toString(),
assetId: this.assetId ? this.assetId.toJSON() : null,
assetId: this.assetId && this.assetId.isSome ? this.assetId.toHex() : null,
blockHash: this.blockHash.toHex(),
blockNumber: this.blockNumber.toHex(),
era: this.era.toHex(),
+17 -2
View File
@@ -7,8 +7,23 @@ export const BIT_UNSIGNED = 0;
export const EMPTY_U8A = new Uint8Array();
export const DEFAULT_VERSION = 4;
export const IMMORTAL_ERA = new Uint8Array([0]);
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;
export const VERSION_MASK = 0b00111111;
export const TYPE_MASK = 0b11000000;
export const BARE_EXTRINSIC = 0b00000000;
export const SIGNED_EXTRINSIC = 0b10000000;
export const GENERAL_EXTRINSIC = 0b01000000;
export const LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION = 4;
+1
View File
@@ -11,3 +11,4 @@ export { GenericSignerPayload } from './SignerPayload.js';
// all starred
export * from './v4/index.js';
export * from './v5/index.js';
+2
View File
@@ -21,3 +21,5 @@ export interface ExtrinsicExtraValue {
nonce?: AnyNumber;
tip?: AnyNumber;
}
export type Preamble = 'signed' | 'bare' | 'general';
+13
View File
@@ -13,3 +13,16 @@ export function sign (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Ar
return signerPair.sign(encoded, options);
}
// a helper function for both types of payloads, Raw and metadata-known
export function signV5 (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Array, options?: SignOptions): Uint8Array {
const encoded = registry.hash(u8a);
return signerPair.sign(encoded, options);
}
export function signGeneral (registry: Registry, u8a: Uint8Array): Uint8Array {
const encoded = registry.hash(u8a);
return encoded;
}
@@ -0,0 +1,87 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import { createTestPairs } from '@polkadot/keyring/testingPairs';
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
import { BN } from '@polkadot/util';
import { TypeRegistry } from '../../create/index.js';
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
import { GenericExtrinsicV5 as Extrinsic } from './index.js';
const registry = new TypeRegistry();
const metadata = new Metadata(registry, rpcMetadata);
const keyring = createTestPairs({ type: 'ed25519' }, false);
registry.setMetadata(metadata);
const tx = decorateExtrinsics(registry, metadata.asLatest, metadata.version);
describe('ExtrinsicV5', (): void => {
it('constructs a sane Uint8Array (default)', (): void => {
const xt = new Extrinsic(registry);
// expect(`${xt.method.section}${xt.method.method}`).toEqual('system.fillBlock');
expect(`${xt.method.section}.${xt.method.method}`).toEqual('system.remark');
expect(xt.toU8a()).toEqual(new Uint8Array([
0, 0, // index
// 0, 0, 0, 0 // fillBlock, Perbill
0 // remark, Vec<u8>
]));
});
it('creates a unsigned extrinsic', (): void => {
expect(
new Extrinsic(
registry,
tx['balances']['transferAllowDeath'](keyring.bob.publicKey, 6969n)
).toHex()
).toEqual(
'0x' +
'0600' + // balance.transferAllowDeath
'00' +
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
'e56c'
);
});
it('creates a signed extrinsic', (): void => {
expect(
new Extrinsic(
registry,
tx['balances']['transferAllowDeath'](keyring.bob.publicKey, 6969n)
).sign(keyring.alice, {
blockHash: '0xec7afaf1cca720ce88c1d1b689d81f0583cc15a97d621cf046dd9abf605ef22f',
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
mode: 0,
nonce: 1,
runtimeVersion: {
apis: [],
authoringVersion: new BN(123),
implName: 'test',
implVersion: new BN(123),
specName: 'test',
specVersion: new BN(123),
transactionVersion: new BN(123)
},
tip: 2
}).toHex()
).toEqual(
'0x' +
'00' +
'd172a74cda4c865912c32ba0a80a57ae69abae410e5ccb59dee84e2f4432db4f' +
'00' + // ed25519
'84181ebef350cc212e70e042b6ebcd33ca955bf9497711a64aa7c64e2b8c2732' +
'ab837715364eab7be5cc76f74eefa36d3ba9ee698264ed28a286c8360fc9aa0c' +
'00' + // TransactionExtension version
'0004080000' + // era. nonce, tip, mode
'0600' +
'00' +
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
'e56c'
);
});
});
@@ -0,0 +1,116 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
import type { ExtrinsicSignatureV5 } from '../../interfaces/extrinsics/index.js';
import type { Address, Call } from '../../interfaces/runtime/index.js';
import type { ExtrinsicPayloadValue, IExtrinsicV5Impl, IKeyringPair, Registry, SignatureOptions } from '../../types/index.js';
import type { ExtrinsicOptions, Preamble } from '../types.js';
import { Struct } from '@polkadot/types-codec';
import { isU8a } from '@polkadot/util';
export const EXTRINSIC_VERSION = 5;
export interface ExtrinsicValueV5 {
method?: Call;
signature?: ExtrinsicSignatureV5;
}
/**
* @name GenericExtrinsicV5
* @description
* The fourth generation of compact extrinsics
*/
export class GenericExtrinsicV5 extends Struct implements IExtrinsicV5Impl {
constructor (registry: Registry, value?: Uint8Array | ExtrinsicValueV5 | Call, { isSigned }: Partial<ExtrinsicOptions> = {}) {
super(registry, {
signature: 'ExtrinsicSignatureV5',
// eslint-disable-next-line sort-keys
method: 'Call'
}, GenericExtrinsicV5.decodeExtrinsic(registry, value, isSigned));
}
/** @internal */
public static decodeExtrinsic (registry: Registry, value?: Call | Uint8Array | ExtrinsicValueV5, isSigned = false): ExtrinsicValueV5 {
if (value instanceof GenericExtrinsicV5) {
return value;
} else if (value instanceof registry.createClassUnsafe<Call>('Call')) {
return { method: value };
} else if (isU8a(value)) {
// here we decode manually since we need to pull through the version information
const signature = registry.createTypeUnsafe<ExtrinsicSignatureV5>('ExtrinsicSignatureV5', [value, { isSigned }]);
// We add 2 here since the length of the TransactionExtension Version needs to be accounted for
const method = registry.createTypeUnsafe<Call>('Call', [value.subarray(signature.encodedLength)]);
return {
method,
signature
};
}
return value || {};
}
/**
* @description The length of the value when encoded as a Uint8Array
*/
public override get encodedLength (): number {
return this.toU8a().length;
}
/**
* @description The [[Call]] this extrinsic wraps
*/
public get method (): Call {
return this.getT('method');
}
/**
* @description The [[ExtrinsicSignatureV5]]
*/
public get signature (): ExtrinsicSignatureV5 {
return this.getT('signature');
}
/**
* @description The version for the signature
*/
public get version (): number {
return EXTRINSIC_VERSION;
}
/**
* @description The [[Preamble]] for the extrinsic
*/
public get preamble (): Preamble {
return this.getT('preamble');
}
/**
* @description Add an [[ExtrinsicSignatureV5]] to the extrinsic (already generated)
*/
public addSignature (signer: Address | Uint8Array | string, signature: Uint8Array | HexString, payload: ExtrinsicPayloadValue | Uint8Array | HexString): GenericExtrinsicV5 {
this.signature.addSignature(signer, signature, payload);
return this;
}
/**
* @description Sign the extrinsic with a specific keypair
*/
public sign (account: IKeyringPair, options: SignatureOptions): GenericExtrinsicV5 {
this.signature.sign(this.method, account, options);
return this;
}
/**
* @describe Adds a fake signature to the extrinsic
*/
public signFake (signer: Address | Uint8Array | string, options: SignatureOptions): GenericExtrinsicV5 {
this.signature.signFake(this.method, signer, options);
return this;
}
}
@@ -0,0 +1,39 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
import { TypeRegistry } from '../../create/index.js';
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
import { GenericExtrinsicPayloadV5 as ExtrinsicPayload } from './index.js';
const registry = new TypeRegistry();
const metadata = new Metadata(registry, rpcMetadata);
registry.setMetadata(metadata);
const tx = decorateExtrinsics(registry, metadata.asLatest, metadata.version);
describe('ExtrinsicPayload', (): void => {
it('has a sane inspect', (): void => {
// we don't expect this to fail, however it is actually a good
// reference for the ordering in base Substrate
expect(new ExtrinsicPayload(registry, { method: tx['timestamp']['set'](0).toHex() } as never).inspect()).toEqual({
inner: [
{ name: 'method', outer: [new Uint8Array([3, 0, 0])] },
{ inner: undefined, name: 'era', outer: [new Uint8Array([0]), new Uint8Array([0])] },
{ name: 'nonce', outer: [new Uint8Array([0])] },
{ name: 'tip', outer: [new Uint8Array([0])] },
{ name: 'assetId', outer: [new Uint8Array([0])] },
{ name: 'mode', outer: [new Uint8Array([0])] },
{ name: 'specVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
{ name: 'transactionVersion', outer: [new Uint8Array([0, 0, 0, 0])] },
{ name: 'genesisHash', outer: [new Uint8Array(32)] },
{ name: 'blockHash', outer: [new Uint8Array(32)] },
{ name: 'metadataHash', outer: [new Uint8Array([0])] }
]
});
});
});
@@ -0,0 +1,130 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { SignOptions } from '@polkadot/keyring/types';
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
import type { Bytes } from '@polkadot/types-codec';
import type { Inspect, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { BlockHash } from '../../interfaces/chain/index.js';
import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
import { Enum, Struct } from '@polkadot/types-codec';
import { objectSpread } from '@polkadot/util';
import { signV5 } from '../util.js';
/**
* @name GenericExtrinsicPayloadV5
* @description
* A signing payload for an [[Extrinsic]]. For the final encoding, it is
* variable length based on the contents included
*/
export class GenericExtrinsicPayloadV5 extends Struct {
#signOptions: SignOptions;
constructor (registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString) {
super(registry, objectSpread(
{ method: 'Bytes' },
registry.getSignedExtensionTypes(),
registry.getSignedExtensionExtra()
), value);
// Do detection for the type of extrinsic, in the case of MultiSignature
// this is an enum, in the case of AnySignature, this is a Hash only
// (which may be 64 or 65 bytes)
this.#signOptions = {
withType: registry.createTypeUnsafe('ExtrinsicSignature', []) instanceof Enum
};
}
/**
* @description Returns a breakdown of the hex encoding for this Codec
*/
public override inspect (): Inspect {
return super.inspect({ method: true });
}
/**
* @description The block [[BlockHash]] the signature applies to (mortal/immortal)
*/
public get blockHash (): BlockHash {
return this.getT('blockHash');
}
/**
* @description The [[ExtrinsicEra]]
*/
public get era (): ExtrinsicEra {
return this.getT('era');
}
/**
* @description The genesis [[BlockHash]] the signature applies to (mortal/immortal)
*/
public get genesisHash (): BlockHash {
return this.getT('genesisHash');
}
/**
* @description The [[Bytes]] contained in the payload
*/
public get method (): Bytes {
return this.getT('method');
}
/**
* @description The [[Index]]
*/
public get nonce (): ICompact<INumber> {
return this.getT('nonce');
}
/**
* @description The specVersion for this signature
*/
public get specVersion (): INumber {
return this.getT('specVersion');
}
/**
* @description The tip [[Balance]]
*/
public get tip (): ICompact<INumber> {
return this.getT('tip');
}
/**
* @description The transactionVersion for this signature
*/
public get transactionVersion (): INumber {
return this.getT('transactionVersion');
}
/**
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
*/
public get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
/**
* @description The (optional) metadataHash proof for the CheckMetadataHash TransactionExtension
*/
public get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
/**
* @description Sign the payload with the keypair
*/
public sign (signerPair: IKeyringPair): Uint8Array {
// NOTE The `toU8a({ method: true })` argument is absolutely critical, we
// don't want the method (Bytes) to have the length prefix included. This
// means that the data-as-signed is un-decodable, but is also doesn't need
// the extra information, only the pure data (and is not decoded) ...
// The same applies to V1..V3, if we have a V6, carry this comment
return signV5(this.registry, signerPair, this.toU8a({ method: true }), this.#signOptions);
}
}
@@ -0,0 +1,165 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import { createTestPairs } from '@polkadot/keyring/testingPairs';
import metadataStatic from '@polkadot/types-support/metadata/static-substrate';
import { BN_ZERO } from '@polkadot/util';
import { TypeRegistry } from '../../create/index.js';
import { Metadata } from '../../metadata/index.js';
import { GenericExtrinsicSignatureV5 as ExtrinsicSignature } from './index.js';
const signOptions = {
blockHash: '0x1234567890123456789012345678901234567890123456789012345678901234',
genesisHash: '0x1234567890123456789012345678901234567890123456789012345678901234',
nonce: '0x69',
runtimeVersion: {
apis: [],
authoringVersion: BN_ZERO,
implName: String('test'),
implVersion: BN_ZERO,
specName: String('test'),
specVersion: BN_ZERO,
transactionVersion: BN_ZERO
}
};
describe('ExtrinsicSignatureV4', (): void => {
const pairs = createTestPairs({ type: 'ed25519' });
it('encodes to a sane Uint8Array (default)', (): void => {
const registry = new TypeRegistry();
const u8a = new Uint8Array([
// signer as an AccountIndex
0x01, 0x08, // 4 << 2
// signature type
0x01,
// signature
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, // TransactionExtension version
// extra stuff
0x00, // immortal,
0x04, // nonce, compact
0x08 // tip, compact
]);
expect(
new ExtrinsicSignature(registry, u8a, { isSigned: true }).toU8a()
).toEqual(u8a);
});
it('fake signs default', (): void => {
const registry = new TypeRegistry();
const metadata = new Metadata(registry, metadataStatic);
registry.setMetadata(metadata);
expect(
new ExtrinsicSignature(registry).signFake(
registry.createType('Call'),
pairs.alice.publicKey,
signOptions
).toHex()
).toEqual(
'0x' +
'00' + // MultiAddress
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
'01' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'00' + // TransactionExtension version
'00a5010000' +
'00' // Mode
);
});
it('fake signs default (AccountId address)', (): void => {
const registry = new TypeRegistry();
const metadata = new Metadata(registry, metadataStatic);
registry.setMetadata(metadata);
registry.register({
Address: 'AccountId',
ExtrinsicSignature: 'AnySignature'
});
expect(
new ExtrinsicSignature(registry).signFake(
registry.createType('Call'),
pairs.alice.address,
signOptions
).toHex()
).toEqual(
'0x' +
// Address = AccountId, no prefix
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
// This is a prefix-less signature, anySignture as opposed to Multi above
'0101010101010101010101010101010101010101010101010101010101010101' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'00' + // TransactionExtension version
'00a5010000' +
'00' // mode
);
});
it('fake signs with non-enum signature', (): void => {
const registry = new TypeRegistry();
const metadata = new Metadata(registry, metadataStatic);
registry.setMetadata(metadata);
registry.register({
Address: 'AccountId',
ExtrinsicSignature: '[u8;65]'
});
expect(
new ExtrinsicSignature(registry).signFake(
registry.createType('Call'),
pairs.alice.address,
signOptions
).toHex()
).toEqual(
'0x' +
// Address = AccountId, no prefix
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
// 65 bytes here
'01' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'00' + // TransactionExtension version
'00a5010000' +
'00' // mode
);
});
it('injects a signature', (): void => {
const registry = new TypeRegistry();
const metadata = new Metadata(registry, metadataStatic);
registry.setMetadata(metadata);
expect(
new ExtrinsicSignature(registry).addSignature(
pairs.alice.publicKey,
new Uint8Array(65).fill(1),
new Uint8Array(0)
).toHex()
).toEqual(
'0x' +
'00' + // MultiAddress
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
'01' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'0101010101010101010101010101010101010101010101010101010101010101' +
'00' + // TransactionExtension version
'00000000' +
'00' // mode
);
});
});
@@ -0,0 +1,241 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { MultiLocation } from '@polkadot/types/interfaces';
import type { HexString } from '@polkadot/util/types';
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics/index.js';
import type { Address, Call, Hash } from '../../interfaces/runtime/index.js';
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, IOption, Registry, SignatureOptions } from '../../types/index.js';
import type { ExtrinsicSignatureOptions } from '../types.js';
import { Struct } from '@polkadot/types-codec';
import { isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aToHex } from '@polkadot/util';
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants.js';
import { GenericExtrinsicPayloadV5 } from './ExtrinsicPayload.js';
// Ensure we have enough data for all types of signatures
const FAKE_SIGNATURE = new Uint8Array(256).fill(1);
function toAddress (registry: Registry, address: Address | Uint8Array | string): Address {
return registry.createTypeUnsafe('Address', [isU8a(address) ? u8aToHex(address) : address]);
}
/**
* @name GenericExtrinsicSignatureV5
* @description
* A container for the [[Signature]] associated with a specific [[Extrinsic]]
*/
export class GenericExtrinsicSignatureV5 extends Struct implements IExtrinsicSignature {
#signKeys: string[];
#transactionExtensionVersion: number;
constructor (registry: Registry, value?: GenericExtrinsicSignatureV5 | Uint8Array, { isSigned }: ExtrinsicSignatureOptions = {}) {
const signTypes = registry.getSignedExtensionTypes();
const signedVersion = registry.getTransactionExtensionVersion();
super(
registry,
objectSpread(
// eslint-disable-next-line sort-keys
{ signer: 'Address', signature: 'ExtrinsicSignature', transactionExtensionVersion: 'u8' },
signTypes
),
GenericExtrinsicSignatureV5.decodeExtrinsicSignature(value, isSigned)
);
this.#transactionExtensionVersion = signedVersion;
this.#signKeys = Object.keys(signTypes);
objectProperties(this, this.#signKeys, (k) => this.get(k));
}
/** @internal */
public static decodeExtrinsicSignature (value?: GenericExtrinsicSignatureV5 | Uint8Array, isSigned = false): GenericExtrinsicSignatureV5 | Uint8Array {
if (!value) {
return EMPTY_U8A;
} else if (value instanceof GenericExtrinsicSignatureV5) {
return value;
}
return isSigned
? value
: EMPTY_U8A;
}
/**
* @description The length of the value when encoded as a Uint8Array
*/
public override get encodedLength (): number {
return this.isSigned
? super.encodedLength
: 0;
}
/**
* @description `true` if the signature is valid
*/
public get isSigned (): boolean {
return !this.signature.isEmpty;
}
/**
* @description The [[ExtrinsicEra]] (mortal or immortal) this signature applies to
*/
public get era (): ExtrinsicEra {
return this.getT('era');
}
/**
* @description The [[Index]] for the signature
*/
public get nonce (): ICompact<INumber> {
return this.getT('nonce');
}
/**
* @description The actual [[EcdsaSignature]], [[Ed25519Signature]] or [[Sr25519Signature]]
*/
public get signature (): EcdsaSignature | Ed25519Signature | Sr25519Signature {
// the second case here is when we don't have an enum signature, treat as raw
return (this.multiSignature.value || this.multiSignature) as Sr25519Signature;
}
/**
* @description The raw [[ExtrinsicSignature]]
*/
public get multiSignature (): ExtrinsicSignature {
return this.getT('signature');
}
/**
* @description The [[Address]] that signed
*/
public get signer (): Address {
return this.getT('signer');
}
/**
* @description The [[Balance]] tip
*/
public get tip (): ICompact<INumber> {
return this.getT('tip');
}
/**
* @description The [[u32]] or [[MultiLocation]] assetId
*/
public get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
/**
* @description the [[u32]] mode
*/
public get mode (): INumber {
return this.getT('mode');
}
/**
* @description The (optional) [[Hash]] for the metadata proof
*/
public get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
/**
* @description The [[u8]] for the TransactionExtension version
*/
public get transactionExtensionVersion (): INumber {
return this.getT('transactionExtensionVersion');
}
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, payload: GenericExtrinsicPayloadV5): IExtrinsicSignature {
// use the fields exposed to guide the getters
for (let i = 0, count = this.#signKeys.length; i < count; i++) {
const k = this.#signKeys[i];
const v = payload.get(k);
if (k === 'transactionExtensionVersion') {
this.set(k, this.registry.createType('u8', this.#transactionExtensionVersion));
} else if (!isUndefined(v)) {
this.set(k, v);
}
}
// additional fields (exposed in struct itself)
this.set('signer', signer);
this.set('signature', signature);
return this;
}
/**
* @description Adds a raw signature
*/
public addSignature (signer: Address | Uint8Array | string, signature: Uint8Array | HexString, payload: ExtrinsicPayloadValue | Uint8Array | HexString): IExtrinsicSignature {
return this._injectSignature(
toAddress(this.registry, signer),
this.registry.createTypeUnsafe('ExtrinsicSignature', [signature]),
new GenericExtrinsicPayloadV5(this.registry, payload)
);
}
/**
* @description Creates a payload from the supplied options
*/
public createPayload (method: Call, options: SignatureOptions): GenericExtrinsicPayloadV5 {
const { era, runtimeVersion: { specVersion, transactionVersion } } = options;
return new GenericExtrinsicPayloadV5(this.registry, objectSpread<ExtrinsicPayloadValue>({}, options, {
era: era || IMMORTAL_ERA,
method: method.toHex(),
specVersion,
transactionVersion
}));
}
/**
* @description Generate a payload and applies the signature from a keypair
*/
public sign (method: Call, account: IKeyringPair, options: SignatureOptions): IExtrinsicSignature {
if (!account?.addressRaw) {
throw new Error(`Expected a valid keypair for signing, found ${stringify(account)}`);
}
const payload = this.createPayload(method, options);
return this._injectSignature(
toAddress(this.registry, account.addressRaw),
this.registry.createTypeUnsafe('ExtrinsicSignature', [payload.sign(account)]),
payload
);
}
/**
* @description Generate a payload and applies a fake signature
*/
public signFake (method: Call, address: Address | Uint8Array | string, options: SignatureOptions): IExtrinsicSignature {
if (!address) {
throw new Error(`Expected a valid address for signing, found ${stringify(address)}`);
}
const payload = this.createPayload(method, options);
return this._injectSignature(
toAddress(this.registry, address),
this.registry.createTypeUnsafe('ExtrinsicSignature', [FAKE_SIGNATURE]),
payload
);
}
/**
* @description Encodes the value as a Uint8Array as per the SCALE specifications
* @param isBare true when the value has none of the type-specific prefixes (internal)
*/
public override toU8a (isBare?: boolean): Uint8Array {
return this.isSigned
? super.toU8a(isBare)
: EMPTY_U8A;
}
}
@@ -0,0 +1,47 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
import { TypeRegistry } from '../../create/index.js';
import { Metadata } from '../../metadata/index.js';
import { GeneralExtrinsic } from './GeneralExtrinsic.js';
const registry = new TypeRegistry();
const metadata = new Metadata(registry, rpcMetadata);
registry.setMetadata(metadata);
describe('GeneralExt', (): void => {
const extrinsic = '0xc44500650000000000060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402';
it('Can decode a general extrinsic', (): void => {
const genExt = new GeneralExtrinsic(registry, extrinsic);
expect(genExt.version).toEqual(5);
expect(genExt.transactionExtensionVersion.toNumber()).toEqual(0);
expect(genExt.method.toHuman()).toEqual({ args: { dest: { Id: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' }, value: '10,000,000,000' }, method: 'transferAllowDeath', section: 'balances' });
expect(genExt.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '6' } });
expect(genExt.tip.toNumber()).toEqual(0);
expect(genExt.mode.toNumber()).toEqual(0);
expect(genExt.assetId.toHuman()).toEqual(null);
expect(genExt.nonce.toNumber()).toEqual(0);
});
it('Can encode a general extrinsic', (): void => {
const payload = {
era: '0x6500',
method: '0x060000d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d0700e40b5402',
nonce: '0x00000000',
tip: '0x00000000000000000000000000000000',
transactionVersion: '0x00000002'
};
const genExt = new GeneralExtrinsic(registry, {
payload
});
expect(genExt.toHex()).toEqual(extrinsic);
});
});
@@ -0,0 +1,208 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Call, ExtrinsicEra, Hash, MultiLocation } from '@polkadot/types/interfaces';
import type { AnyNumber, AnyU8a, ICompact, IExtrinsicEra, INumber, IOption, Registry } from '@polkadot/types/types';
import type { AnyTuple, IMethod } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import { Struct } from '@polkadot/types-codec';
import { compactAddLength, compactFromU8a, isHex, isObject, isU8a, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
import { EMPTY_U8A, UNMASK_VERSION } from '../constants.js';
interface TransactionExtensionValues {
era: AnyU8a | IExtrinsicEra;
nonce: AnyNumber;
tip: AnyNumber;
transactionVersion: AnyNumber;
assetId?: HexString;
mode?: AnyNumber;
metadataHash?: AnyU8a;
}
interface GeneralExtrinsicPayloadValues extends TransactionExtensionValues {
method: AnyU8a | IMethod<AnyTuple>;
}
interface GeneralExtrinsicValue {
payload?: GeneralExtrinsicPayloadValues;
transactionExtensionVersion?: number;
}
function decodeU8a (u8a: Uint8Array) {
if (!u8a.length) {
return new Uint8Array();
}
const [offset, length] = compactFromU8a(u8a);
const total = offset + length.toNumber();
if (total > u8a.length) {
throw new Error(`Extrinsic: length less than remainder, expected at least ${total}, found ${u8a.length}`);
}
const data = u8a.subarray(offset, total);
// 69 denotes 0b01000101 which is the version and preamble for this Extrinsic
if (data[0] !== 69) {
throw new Error(`Extrinsic: incorrect version for General Transactions, expected 5, found ${data[0] & UNMASK_VERSION}`);
}
return data.subarray(1);
}
export class GeneralExtrinsic extends Struct {
#version: number;
#preamble: number;
constructor (registry: Registry, value?: GeneralExtrinsicValue | Uint8Array | HexString, opt?: { version: number }) {
const extTypes = registry.getSignedExtensionTypes();
super(registry, objectSpread(
{
transactionExtensionVersion: 'u8'
},
extTypes,
{
method: 'Call'
}
), GeneralExtrinsic.decodeExtrinsic(registry, value));
this.#version = opt?.version || 0b00000101;
this.#preamble = 0b01000000;
}
public static decodeExtrinsic (registry: Registry, value?: GeneralExtrinsicValue | Uint8Array | HexString) {
if (!value) {
return EMPTY_U8A;
} else if (value instanceof GeneralExtrinsic) {
return value;
} else if (isU8a(value) || Array.isArray(value) || isHex(value)) {
return decodeU8a(u8aToU8a(value));
} else if (isObject(value)) {
const { payload, transactionExtensionVersion } = value;
return objectSpread(payload || {}, {
transactionExtensionVersion: transactionExtensionVersion || registry.getTransactionExtensionVersion()
});
}
return {};
}
/**
* @description The length of the value when encoded as a Uint8Array
*/
public override get encodedLength (): number {
return super.encodedLength;
}
/**
* @description The [[ExtrinsicEra]]
*/
public get era (): ExtrinsicEra {
return this.getT('era');
}
/**
* @description The [[Index]]
*/
public get nonce (): ICompact<INumber> {
return this.getT('nonce');
}
/**
* @description The tip [[Balance]]
*/
public get tip (): ICompact<INumber> {
return this.getT('tip');
}
/**
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
*/
public get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
/**
* @description The mode used for the CheckMetadataHash TransactionExtension
*/
public get mode (): INumber {
return this.getT('mode');
}
/**
* @description The (optional) [[Hash]] for the metadata proof
*/
public get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
/**
* @description The version of the TransactionExtensions used in this extrinsic
*/
public get transactionExtensionVersion (): INumber {
return this.getT('transactionExtensionVersion');
}
/**
* @description The [[Call]] this extrinsic wraps
*/
public get method (): Call {
return this.getT('method');
}
/**
* @description The extrinsic's version
*/
public get version () {
return this.#version;
}
/**
* @description The [[Preamble]] for the extrinsic
*/
public get preamble () {
return this.#preamble;
}
public override toHex (isBare?: boolean): HexString {
return u8aToHex(this.toU8a(isBare));
}
public override toU8a (isBare?: boolean): Uint8Array {
return isBare
? this.encode()
: compactAddLength(this.encode());
}
public override toRawType () {
return 'GeneralExt';
}
/**
*
* @description Returns an encoded GeneralExtrinsic
*/
public encode () {
return u8aConcat(new Uint8Array([this.version | this.preamble]), super.toU8a());
}
public signFake () {
throw new Error('Extrinsic: Type GeneralExtrinsic does not have signFake implemented');
}
public addSignature () {
throw new Error('Extrinsic: Type GeneralExtrinsic does not have addSignature implemented');
}
public sign () {
throw new Error('Extrinsic: Type GeneralExtrinsic does not have sign implemented');
}
public signature () {
throw new Error('Extrinsic: Type GeneralExtrinsic does not have the signature getter');
}
}
+7
View File
@@ -0,0 +1,7 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { GenericExtrinsicV5 } from './Extrinsic.js';
export { GenericExtrinsicPayloadV5 } from './ExtrinsicPayload.js';
export { GenericExtrinsicSignatureV5 } from './ExtrinsicSignature.js';
export { GeneralExtrinsic } from './GeneralExtrinsic.js';
@@ -122,7 +122,7 @@ describe('runtime definitions', (): void => {
for (const { methods, version } of versions) {
describe(`version ${version}`, (): void => {
const methodsEntries = Object.entries<DefinitionCall>(methods);
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>'];
const skipInspectTypes = ['StagingXcmV3MultiLocation', 'StagingXcmV4Location', 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>', 'Result<XcmVersionedAssets, FungiblesAccessError>', 'XcmVersionedLocation', 'XcmVersionedAssetId', 'XcmVersionedXcm', 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>', 'VersionedMultiLocation', 'VersionedXcm', 'PostDispatchInfo', 'DispatchResultWithPostInfo', 'CallDryRunEffects', 'XcmDryRunEffects', 'XcmDryRunApiError', 'Result<CallDryRunEffects, XcmDryRunApiError>', 'Result<XcmDryRunEffects, XcmDryRunApiError>'];
for (const [key, { params, type }] of methodsEntries) {
describe(`${key}`, (): void => {
@@ -66,6 +66,7 @@ export { default as poll } from './poll/definitions.js';
export { default as purchase } from './purchase/definitions.js';
// XCM related types
export { default as dryRunApi } from './dryRunApi/definitions.js';
export { default as xcm } from './xcm/definitions.js';
export { default as xcmPaymentApi } from './xcmPaymentApi/definitions.js';
export { default as xcmRuntimeApi } from './xcmRuntimeApi/definitions.js';
@@ -0,0 +1,38 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { Definitions } from '../../types/index.js';
import { runtime } from './runtime.js';
export default {
rpc: {},
runtime,
types: {
PostDispatchInfo: {
actualWeight: 'Option<Weight>',
paysFee: 'Pays'
},
DispatchResultWithPostInfo: 'Result<PostDispatchInfo, DispatchError>',
CallDryRunEffects: {
executionResult: 'DispatchResultWithPostInfo',
emittedEvents: 'Vec<Event>',
localXcm: 'Option<VersionedXcm>',
forwardedXcms: 'Vec<(VersionedMultiLocation, Vec<VersionedXcm>)>'
},
XcmDryRunEffects: {
executionResult: 'OutcomeV4',
emittedEvents: 'Vec<Event>',
forwardedXcms: 'Vec<(VersionedMultiLocation, Vec<VersionedXcm>)>'
},
XcmDryRunApiError: {
_enum: [
'Unimplemented',
'VersionedConversionFailed'
]
}
}
} as Definitions;
@@ -0,0 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './types.js';
@@ -0,0 +1,42 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall } from '../../types/index.js';
export const runtime: DefinitionsCall = {
DryRunApi: [
{
methods: {
dry_run_call: {
description: 'Dry run call',
params: [
{
name: 'origin',
type: 'OriginCaller'
},
{
name: 'call',
type: 'RuntimeCall'
}
],
type: 'Result<CallDryRunEffects, XcmDryRunApiError>'
},
dry_run_xcm: {
description: 'Dry run XCM program',
params: [
{
name: 'originLocation',
type: 'VersionedMultiLocation'
},
{
name: 'xcm',
type: 'VersionedXcm'
}
],
type: 'Result<XcmDryRunEffects, XcmDryRunApiError>'
}
},
version: 1
}
]
};
@@ -0,0 +1,46 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Enum, Option, Result, Struct, Vec } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { Pays, Weight } from '@polkadot/types/interfaces/runtime';
import type { DispatchError, Event } from '@polkadot/types/interfaces/system';
import type { OutcomeV4, VersionedMultiLocation, VersionedXcm } from '@polkadot/types/interfaces/xcm';
/** @name CallDryRunEffects */
export interface CallDryRunEffects extends Struct {
readonly executionResult: DispatchResultWithPostInfo;
readonly emittedEvents: Vec<Event>;
readonly localXcm: Option<VersionedXcm>;
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
}
/** @name DispatchResultWithPostInfo */
export interface DispatchResultWithPostInfo extends Result<PostDispatchInfo, DispatchError> {
readonly isErr: boolean;
readonly asErr: DispatchError;
readonly isOk: boolean;
readonly asOk: PostDispatchInfo;
}
/** @name PostDispatchInfo */
export interface PostDispatchInfo extends Struct {
readonly actualWeight: Option<Weight>;
readonly paysFee: Pays;
}
/** @name XcmDryRunApiError */
export interface XcmDryRunApiError extends Enum {
readonly isUnimplemented: boolean;
readonly isVersionedConversionFailed: boolean;
readonly type: 'Unimplemented' | 'VersionedConversionFailed';
}
/** @name XcmDryRunEffects */
export interface XcmDryRunEffects extends Struct {
readonly executionResult: OutcomeV4;
readonly emittedEvents: Vec<Event>;
readonly forwardedXcms: Vec<ITuple<[VersionedMultiLocation, Vec<VersionedXcm>]>>;
}
export type PHANTOM_DRYRUNAPI = 'dryRunApi';
@@ -18,6 +18,9 @@ export default {
ExtrinsicSignatureV4: 'GenericExtrinsicSignatureV4',
ExtrinsicUnknown: 'GenericExtrinsicUnknown',
ExtrinsicPayloadUnknown: 'GenericExtrinsicPayloadUnknown',
ExtrinsicV5: 'GenericExtrinsicV5',
ExtrinsicPayloadV5: 'GenericExtrinsicPayloadV5',
ExtrinsicSignatureV5: 'GenericExtrinsicSignatureV5',
// eras
Era: 'ExtrinsicEra',
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV4, GenericExtrinsicSignatureV4, GenericExtrinsicUnknown, GenericExtrinsicV4, GenericImmortalEra, GenericMortalEra, GenericSignerPayload } from '@polkadot/types';
import type { GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericExtrinsicPayloadUnknown, GenericExtrinsicPayloadV4, GenericExtrinsicPayloadV5, GenericExtrinsicSignatureV4, GenericExtrinsicSignatureV5, GenericExtrinsicUnknown, GenericExtrinsicV4, GenericExtrinsicV5, GenericImmortalEra, GenericMortalEra, GenericSignerPayload } from '@polkadot/types';
import type { Enum, U8aFixed } from '@polkadot/types-codec';
import type { H512 } from '@polkadot/types/interfaces/runtime';
@@ -32,18 +32,27 @@ export interface ExtrinsicPayloadUnknown extends GenericExtrinsicPayloadUnknown
/** @name ExtrinsicPayloadV4 */
export interface ExtrinsicPayloadV4 extends GenericExtrinsicPayloadV4 {}
/** @name ExtrinsicPayloadV5 */
export interface ExtrinsicPayloadV5 extends GenericExtrinsicPayloadV5 {}
/** @name ExtrinsicSignature */
export interface ExtrinsicSignature extends MultiSignature {}
/** @name ExtrinsicSignatureV4 */
export interface ExtrinsicSignatureV4 extends GenericExtrinsicSignatureV4 {}
/** @name ExtrinsicSignatureV5 */
export interface ExtrinsicSignatureV5 extends GenericExtrinsicSignatureV5 {}
/** @name ExtrinsicUnknown */
export interface ExtrinsicUnknown extends GenericExtrinsicUnknown {}
/** @name ExtrinsicV4 */
export interface ExtrinsicV4 extends GenericExtrinsicV4 {}
/** @name ExtrinsicV5 */
export interface ExtrinsicV5 extends GenericExtrinsicV5 {}
/** @name ImmortalEra */
export interface ImmortalEra extends GenericImmortalEra {}
+1
View File
@@ -25,6 +25,7 @@ export * from './cumulus/types.js';
export * from './democracy/types.js';
export * from './dev/types.js';
export * from './discovery/types.js';
export * from './dryRunApi/types.js';
export * from './elections/types.js';
export * from './engine/types.js';
export * from './eth/types.js';
@@ -11,8 +11,10 @@ import { mapXcmTypes } from '@polkadot/types-create';
import { v0 } from './v0.js';
import { v1 } from './v1.js';
import { v2 } from './v2.js';
import { v3 } from './v3.js';
import { v4 } from './v4.js';
const XCM_LATEST = 'V2';
const XCM_LATEST = 'V4';
const xcm = {
XcmOrigin: {
@@ -87,9 +89,11 @@ export default {
...v0,
...v1,
...v2,
...v3,
...v4,
...mapXcmTypes(XCM_LATEST),
DoubleEncodedCall: {
encoded: 'Vec<u8>'
encoded: 'Bytes'
},
XcmOriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
@@ -134,33 +138,43 @@ export default {
_enum: {
V0: 'MultiAssetV0',
V1: 'MultiAssetV1',
V2: 'MultiAssetV2'
V2: 'MultiAssetV2',
V3: 'MultiAssetV3',
V4: 'MultiAssetV4'
}
},
VersionedMultiAssets: {
_enum: {
V0: 'Vec<MultiAssetV0>',
V1: 'MultiAssetsV1',
V2: 'MultiAssetsV2'
V2: 'MultiAssetsV2',
V3: 'MultiAssetsV3',
V4: 'MultiAssetsV4'
}
},
VersionedMultiLocation: {
_enum: {
V0: 'MultiLocationV0',
V1: 'MultiLocationV1',
V2: 'MultiLocationV2'
V2: 'MultiLocationV2',
V3: 'MultiLocationV3',
V4: 'MultiLocationV4'
}
},
VersionedResponse: {
V0: 'ResponseV0',
V1: 'ResponseV1',
V2: 'ResponseV2'
V2: 'ResponseV2',
V3: 'ResponseV3',
V4: 'ResponseV4'
},
VersionedXcm: {
_enum: {
V0: 'XcmV0',
V1: 'XcmV1',
V2: 'XcmV2'
V2: 'XcmV2',
V3: 'XcmV3',
V4: 'XcmV4'
}
},
XcmVersion: 'u32'
File diff suppressed because it is too large Load Diff
+172 -45
View File
@@ -7,25 +7,148 @@
import type { DefinitionsTypes } from '../../types/index.js';
export const v2: DefinitionsTypes = {
AssetInstanceV2: 'AssetInstanceV1',
FungibilityV2: 'FungibilityV1',
JunctionV2: 'JunctionV1',
JunctionsV2: 'JunctionsV1',
MultiAssetsV2: 'MultiAssetsV1',
MultiAssetV2: 'MultiAssetV1',
MultiAssetFilterV2: 'MultiAssetFilterV1',
MultiLocationV2: 'MultiLocationV1',
OriginKindV2: 'OriginKindV1',
WildFungibilityV2: 'WildFungibilityV1',
AssetIdV2: {
_enum: {
Concrete: 'MultiLocationV2',
Abstract: 'Bytes'
}
},
AssetInstanceV2: {
_enum: {
Undefined: 'Null',
Index: 'Compact<u128>',
Array4: '[u8;4]',
Array8: '[u8;8]',
Array16: '[u8;16]',
Array32: '[u8;32]',
Blob: 'Bytes'
}
},
BodyIdV2: {
_enum: {
Unit: 'Null',
Named: 'Bytes',
Index: 'Compact<u32>',
Executive: 'Null',
Technical: 'Null',
Legislative: 'Null',
Judicial: 'Null',
Defense: 'Null',
Administration: 'Null',
Treasury: 'Null'
}
},
BodyPartV2: {
_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>'
}
}
},
NetworkIdV2: {
_enum: {
Any: 'Null',
Named: 'Bytes',
Polkadot: 'Null',
Kusama: 'Null'
}
},
JunctionV2: {
_enum: {
Parachain: 'Compact<u32>',
AccountId32: {
network: 'NetworkIdV2',
id: '[u8; 32]'
},
AccountIndex64: {
network: 'NetworkIdV2',
index: 'Compact<u64>'
},
AccountKey20: {
network: 'NetworkIdV2',
key: '[u8; 20]'
},
PalletInstance: 'u8',
GeneralIndex: 'Compact<u128>',
GeneralKey: 'Bytes',
OnlyChild: 'Null',
Plurality: {
id: 'BodyIdV2',
part: 'BodyPartV2'
}
}
},
JunctionsV2: {
_enum: {
Here: 'Null',
X1: 'JunctionV2',
X2: '(JunctionV2, JunctionV2)',
X3: '(JunctionV2, JunctionV2, JunctionV2)',
X4: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
X5: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
X6: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
X7: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)',
X8: '(JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2, JunctionV2)'
}
},
FungibilityV2: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'AssetInstanceV2'
}
},
InteriorMultiLocationV2: 'JunctionsV2',
MultiAssetV2: {
id: 'AssetIdV2',
fun: 'FungibilityV2'
},
MultiAssetsV2: 'Vec<MultiAssetV2>',
MultiAssetFilterV2: {
_enum: {
Definite: 'MultiAssetsV2',
Wild: 'WildMultiAssetV2'
}
},
MultiLocationV2: {
parents: 'u8',
interior: 'JunctionsV2'
},
OriginKindV2: {
_enum: {
Native: 'Null',
SovereignAccount: 'Null',
Superuser: 'Null',
Xcm: 'Null'
}
},
WildFungibilityV2: {
_enum: {
Fungible: 'Null',
NonFungible: 'Null'
}
},
ResponseV2: {
_enum: {
Null: 'Null',
Assets: 'MultiAssetsV2',
ExecutionResult: 'ResponseV2Result'
ExecutionResult: 'Option<(u32, XcmErrorV2)>',
Version: 'u32'
}
},
ResponseV2Error: '(u32, XcmErrorV2)',
ResponseV2Result: 'Result<Null, ResponseV2Error>',
WeightLimitV2: {
_enum: {
Unlimited: 'Null',
@@ -52,8 +175,8 @@ export const v2: DefinitionsTypes = {
xcm: 'XcmV2'
},
Transact: {
originType: 'OriginKindV2',
requireWeightAtMost: 'u64',
originType: 'XcmOriginKind',
requireWeightAtMost: 'Compact<u64>',
call: 'DoubleEncodedCall'
},
HrmpNewChannelOpenRequest: {
@@ -70,7 +193,7 @@ export const v2: DefinitionsTypes = {
recipient: 'Compact<u32>'
},
ClearOrigin: 'Null',
DescendOrigin: 'InteriorMultiLocation',
DescendOrigin: 'InteriorMultiLocationV2',
ReportError: {
queryId: 'Compact<u64>',
dest: 'MultiLocationV2',
@@ -78,12 +201,12 @@ export const v2: DefinitionsTypes = {
},
DepositAsset: {
assets: 'MultiAssetFilterV2',
maxAssets: 'u32',
maxAssets: 'Compact<u32>',
beneficiary: 'MultiLocationV2'
},
DepositReserveAsset: {
assets: 'MultiAssetFilterV2',
maxAssets: 'u32',
maxAssets: 'Compact<u32>',
dest: 'MultiLocationV2',
xcm: 'XcmV2'
},
@@ -102,65 +225,69 @@ export const v2: DefinitionsTypes = {
xcm: 'XcmV2'
},
QueryHolding: {
query_id: 'Compact<u64>',
queryId: 'Compact<u64>',
dest: 'MultiLocationV2',
assets: 'MultiAssetFilterV2',
maxResponse_Weight: 'Compact<u64>'
maxResponseWeight: 'Compact<u64>'
},
BuyExecution: {
fees: 'MultiAssetV2',
weightLimit: 'WeightLimitV2'
},
RefundSurplus: 'Null',
SetErrorHandler: 'XcmV2',
SetAppendix: 'XcmV2',
SetErrorHandler: 'XcmV2<RuntimeCall>',
SetAppendix: 'XcmV2<RuntimeCall>',
ClearError: 'Null',
ClaimAsset: {
assets: 'MultiAssetsV2',
ticket: 'MultiLocationV2'
},
Trap: 'u64'
Trap: 'Compact<u64>',
SubscribeVersion: {
queryId: 'Compact<u64>',
maxResponseWeight: 'Compact<u64>'
},
UnsubscribeVersion: 'Null'
}
},
WildMultiAssetV2: {
_enum: {
All: 'Null',
AllOf: {
id: 'AssetIdV2',
fun: 'WildFungibilityV2'
}
}
},
WildMultiAssetV2: 'WildMultiAssetV1',
XcmV2: 'Vec<InstructionV2>',
XcmErrorV2: {
_enum: {
Undefined: 'Null',
Overflow: 'Null',
Unimplemented: 'Null',
UnhandledXcmVersion: 'Null',
UnhandledXcmMessage: 'Null',
UnhandledEffect: 'Null',
EscalationOfPrivilege: 'Null',
UntrustedReserveLocation: 'Null',
UntrustedTeleportLocation: 'Null',
DestinationBufferOverflow: 'Null',
MultiLocationFull: 'Null',
MultiLocationNotInvertible: 'Null',
FailedToDecode: 'Null',
BadOrigin: 'Null',
ExceedsMaxMessageSize: 'Null',
InvalidLocation: 'Null',
AssetNotFound: 'Null',
FailedToTransactAsset: 'Null',
WeightLimitReached: 'Weight',
Wildcard: 'Null',
TooMuchWeightRequired: 'Null',
NotHoldingFees: 'Null',
WeightNotComputable: 'Null',
Barrier: 'Null',
NotWithdrawable: 'Null',
LocationCannotHold: 'Null',
TooExpensive: 'Null',
AssetNotFound: 'Null',
ExceedsMaxMessageSize: 'Null',
DestinationUnsupported: 'Null',
RecursionLimitReached: 'Null',
Transport: 'Null',
Unroutable: 'Null',
UnknownWeightRequired: 'Null',
Trap: 'u64',
UnknownClaim: 'Null',
InvalidLocation: 'Null'
FailedToDecode: 'Null',
MaxWeightInvalid: 'Null',
NotHoldingFees: 'Null',
TooExpensive: 'Null',
Trap: 'u64',
UnhandledXcmVersion: 'Null',
WeightLimitReached: 'Weight',
Barrier: 'Null',
WeightNotComputable: 'Null'
}
},
XcmOrderV2: 'XcmOrderV1'
}
};
+386
View File
@@ -0,0 +1,386 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { DefinitionsTypes } from '../../types/index.js';
export const v3: DefinitionsTypes = {
AssetIdV3: {
_enum: {
Concrete: 'MultiLocationV3',
Abstract: 'Bytes'
}
},
BodyIdV3: {
_enum: {
Unit: 'Null',
Moniker: '[u8;4]',
Index: 'Compact<u32>',
Executive: 'Null',
Technical: 'Null',
Legislative: 'Null',
Judicial: 'Null',
Defense: 'Null',
Administration: 'Null',
Treasury: 'Null'
}
},
BodyPartV3: {
_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>'
}
}
},
AssetInstanceV3: {
_enum: {
Undefined: 'Null',
Index: 'Compact<u128>',
Array4: '[u8;4]',
Array8: '[u8;8]',
Array16: '[u8;16]',
Array32: '[u8;32]'
}
},
FungibilityV3: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'AssetInstanceV3'
}
},
InteriorMultiLocationV3: 'JunctionsV3',
JunctionV3: {
_enum: {
Parachain: 'Compact<u32>',
AccountId32: {
network: 'Option<NetworkIdV3>',
id: '[u8;32]'
},
AccountIndex64: {
network: 'Option<NetworkIdV3>',
index: 'Compact<u64>'
},
AccountKey20: {
network: 'Option<NetworkIdV3>',
key: '[u8;20]'
},
PalletInstance: 'u8',
GeneralIndex: 'Compact<u128>',
GeneralKey: {
length: 'u8',
data: '[u8;32]'
},
OnlyChild: 'Null',
Plurality: {
id: 'BodyIdV3',
part: 'BodyPartV3'
},
GlobalConsensus: 'NetworkIdV3'
}
},
JunctionsV3: {
_enum: {
Here: 'Null',
X1: 'JunctionV3',
X2: '(JunctionV3, JunctionV3)',
X3: '(JunctionV3, JunctionV3, JunctionV3)',
X4: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
X5: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
X6: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
X7: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)',
X8: '(JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3, JunctionV3)'
}
},
MaybeErrorCodeV3: {
_enum: {
Success: 'Null',
Error: 'Bytes',
TruncatedError: 'Bytes'
}
},
MaxPalletsInfo: 'u32',
MultiAssetV3: {
id: 'AssetIdV3',
fun: 'FungibilityV3'
},
MultiAssetsV3: 'Vec<MultiAssetV3>',
MultiAssetFilterV3: {
_enum: {
Definite: 'MultiAssetsV3',
Wild: 'WildMultiAssetV3'
}
},
MultiLocationV3: {
parents: 'u8',
interior: 'JunctionsV3'
},
MaxPalletNameLen: 'u32',
NetworkIdV3: {
_enum: {
ByGenesis: '[u8;32]',
ByFork: {
blockNumber: 'u64',
blockHash: '[u8;32]'
},
Polkadot: 'Null',
Kusama: 'Null',
Westend: 'Null',
Rococo: 'Null',
Wococo: 'Null',
Ethereum: {
chainId: 'Compact<u64>'
},
BitcoinCore: 'Null',
BitcoinCash: 'Null',
PolkadotBulletin: 'Null'
}
},
OriginKindV3: 'OriginKindV2',
PalletInfoV3: {
index: 'Compact<u32>',
name: 'Bytes',
moduleName: 'Bytes',
major: 'Compact<u32>',
minor: 'Compact<u32>',
patch: 'Compact<u32>'
},
WildFungibilityV3: 'WildFungibilityV2',
QueryResponseInfoV3: {
destination: 'MultiLocationV3',
queryId: 'Compact<u64>',
maxWeight: 'WeightV2'
},
ResponseV3: {
_enum: {
Null: 'Null',
Assets: 'MultiAssetsV3',
ExecutionResult: 'Option<(u32,XcmErrorV3)>',
Version: 'u32',
PalletsInfo: 'Vec<PalletInfoV3>',
DispatchResult: 'MaybeErrorCodeV3'
}
},
XcmErrorV3: {
_enum: {
Overflow: 'Null',
Unimplemented: 'Null',
UntrustedReserveLocation: 'Null',
UntrustedTeleportLocation: 'Null',
LocationFull: 'Null',
LocationNotInvertible: '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',
ExpectationFalse: 'Null',
PalletNotFound: 'Null',
NameMismatch: 'Null',
VersionIncompatible: 'Null',
HoldingWouldOverflow: 'Null',
ExportError: 'Null',
ReanchorFailed: 'Null',
NoDeal: 'Null',
FeesNotMet: 'Null',
LockError: 'Null',
NoPermission: 'Null',
Unanchored: 'Null',
NotDepositable: 'Null',
UnhandledXcmVersion: 'Null',
WeightLimitReached: 'WeightV2',
Barrier: 'Null',
ExceedsStackLimit: 'Null'
}
},
ResponseV3Error: '(u32, XcmErrorV3)',
ResponseV3Result: 'Option<(u32, ResponseV3Error)>',
WeightLimitV3: {
_enum: {
Unlimited: 'Null',
Limited: 'WeightV2'
}
},
InstructionV3: {
_enum: {
WithdrawAsset: 'MultiAssetsV3',
ReserveAssetDeposited: 'MultiAssetsV3',
ReceiveTeleportedAsset: 'MultiAssetsV3',
QueryResponse: {
queryId: 'Compact<u64>',
response: 'ResponseV3',
maxWeight: 'WeightV2',
querier: 'Option<MultiLocationV3>'
},
TransferAsset: {
assets: 'MultiAssetsV3',
beneficiary: 'MultiLocationV3'
},
TransferReserveAsset: {
assets: 'MultiAssetsV3',
dest: 'MultiLocationV3',
xcm: 'XcmV3'
},
Transact: {
originKind: 'XcmOriginKind',
requireWeightAtMost: 'WeightV2',
call: 'DoubleEncodedCall'
},
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: 'JunctionsV3',
ReportError: 'QueryResponseInfoV3',
DepositAsset: {
assets: 'MultiAssetFilterV3',
beneficiary: 'MultiLocationV3'
},
DepositReserveAsset: {
assets: 'MultiAssetFilterV3',
dest: 'MultiLocationV3',
xcm: 'XcmV3'
},
ExchangeAsset: {
give: 'MultiAssetFilterV3',
want: 'MultiAssetsV3',
maximal: 'bool'
},
InitiateReserveWithdraw: {
assets: 'MultiAssetFilterV3',
reserve: 'MultiLocationV3',
xcm: 'XcmV3'
},
InitiateTeleport: {
assets: 'MultiAssetFilterV3',
dest: 'MultiLocationV3',
xcm: 'XcmV3'
},
ReportHolding: {
responseInfo: 'QueryResponseInfoV3',
assets: 'MultiAssetFilterV3'
},
BuyExecution: {
fees: 'MultiAssetV3',
weightLimit: 'WeightLimitV3'
},
RefundSurplus: 'Null',
SetErrorHandler: 'XcmV3<RuntimeCall>',
SetAppendix: 'XcmV3<RuntimeCall>',
ClearError: 'Null',
ClaimAsset: {
assets: 'MultiAssetsV3',
ticket: 'MultiLocationV3'
},
Trap: 'Compact<u64>',
SubscribeVersion: {
queryId: 'Compact<u64>',
maxResponseWeight: 'WeightV2'
},
UnsubscribeVersion: 'Null',
BurnAsset: 'MultiAssetsV3',
ExpectAsset: 'MultiAssetsV3',
ExpectOrigin: 'Option<MultiLocationV3>',
ExpectError: 'Option<(u32, XcmErrorV3)>',
ExpectTransactStatus: 'MaybeErrorCodeV3',
QueryPallet: {
moduleName: 'Vec<u8>',
responseInfo: 'QueryResponseInfoV3'
},
ExpectPallet: {
index: 'Compact<u32>',
name: 'Vec<u8>',
moduleName: 'Vec<u8>',
crateMajor: 'Compact<u32>',
minCrateMinor: 'Compact<u32>'
},
ReportTransactStatus: 'QueryResponseInfoV3',
ClearTransactStatus: 'Null',
UniversalOrigin: 'JunctionV3',
ExportMessage: {
network: 'NetworkIdV3',
destination: 'JunctionsV3',
xcm: 'XcmV3'
},
LockAsset: {
asset: 'MultiAssetV3',
unlocker: 'MultiLocationV3'
},
UnlockAsset: {
asset: 'MultiAssetV3',
target: 'MultiLocationV3'
},
NoteUnlockable: {
asset: 'MultiAssetV3',
owner: 'MultiLocationV3'
},
RequestUnlock: {
asset: 'MultiAssetV3',
locker: 'MultiLocationV3'
},
SetFeesMode: {
jitWithdraw: 'bool'
},
SetTopic: '[u8; 32]',
ClearTopic: 'Null',
AliasOrigin: 'MultiLocationV3',
UnpaidExecution: {
weightLimit: 'WeightLimitV3',
checkOrigin: 'Option<MultiLocationV3>'
}
}
},
WildMultiAssetV3: {
_enum: {
All: 'Null',
AllOf: {
id: 'AssetIdV3',
fun: 'WildFungibilityV2'
},
AllCounted: 'Compact<u32>',
AllOfCounted: {
id: 'AssetIdV3',
fun: 'WildFungibilityV2',
count: 'Compact<u32>'
}
}
},
VersionV3: 'u32',
XcmV3: 'Vec<InstructionV3>'
};
+281
View File
@@ -0,0 +1,281 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { DefinitionsTypes } from '../../types/index.js';
export const v4: DefinitionsTypes = {
AssetIdV4: 'MultiLocationV4',
AssetInstanceV4: {
_enum: {
Undefined: 'Null',
Index: 'Compact<u128>',
Array4: '[u8;4]',
Array8: '[u8;8]',
Array16: '[u8;16]',
Array32: '[u8;32]'
}
},
FungibilityV4: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'AssetInstanceV4'
}
},
UncheckedFungibilityV4: {
_enum: {
Fungible: 'Compact<u128>',
NonFungible: 'AssetInstanceV4'
}
},
JunctionV4: {
_enum: {
Parachain: 'Compact<u32>',
AccountId32: {
network: 'Option<NetworkIdV4>',
id: '[u8;32]'
},
AccountIndex64: {
network: 'Option<NetworkIdV4>',
index: 'Compact<u64>'
},
AccountKey20: {
network: 'Option<NetworkIdV4>',
key: '[u8;20]'
},
PalletInstance: 'u8',
GeneralIndex: 'Compact<u128>',
GeneralKey: {
length: 'u8',
data: '[u8;32]'
},
OnlyChild: 'Null',
Plurality: {
id: 'BodyIdV3',
part: 'BodyPartV3'
},
GlobalConsensus: 'NetworkIdV4'
}
},
JunctionsV4: {
_enum: {
Here: 'Null',
X1: '[JunctionV4;1]',
X2: '[JunctionV4;2]',
X3: '[JunctionV4;3]',
X4: '[JunctionV4;4]',
X5: '[JunctionV4;5]',
X6: '[JunctionV4;6]',
X7: '[JunctionV4;7]',
X8: '[JunctionV4;8]'
}
},
MaxPalletsInfo: 'u32',
NetworkIdV4: 'NetworkIdV3',
MultiAssetV4: {
id: 'AssetIdV4',
fun: 'FungibilityV4'
},
MultiAssetsV4: 'Vec<MultiAssetV4>',
MultiAssetFilterV4: {
_enum: {
Definite: 'MultiAssetsV4',
Wild: 'WildMultiAssetV4'
}
},
MultiLocationV4: {
parents: 'u8',
interior: 'JunctionsV4'
},
OriginKindV4: 'XcmOriginKind',
PalletInfoV4: 'PalletInfoV3',
WildFungibilityV4: 'WildFungibilityV2',
QueryResponseInfoV4: {
destination: 'MultiLocationV4',
queryId: 'Compact<u64>',
maxWeight: 'WeightV2'
},
ResponseV4: {
_enum: {
Null: 'Null',
Assets: 'MultiAssetsV4',
ExecutionResult: 'Option<(u32, XcmErrorV3)>',
Version: 'u32',
PalletsInfo: 'Vec<PalletInfoV4>',
DispatchResult: 'MaybeErrorCodeV3'
}
},
InstructionV4: {
_enum: {
WithdrawAsset: 'MultiAssetsV4',
ReserveAssetDeposited: 'MultiAssetsV4',
ReceiveTeleportedAsset: 'MultiAssetsV4',
QueryResponse: {
queryId: 'Compact<u64>',
response: 'ResponseV4',
maxWeight: 'WeightV2',
querier: 'Option<MultiLocationV4>'
},
TransferAsset: {
assets: 'MultiAssetsV4',
beneficiary: 'MultiLocationV4'
},
TransferReserveAsset: {
assets: 'MultiAssetsV4',
dest: 'MultiLocationV4',
xcm: 'XcmV4'
},
Transact: {
originKind: 'OriginKindV4',
requireWeightAtMost: 'WeightV2',
call: 'DoubleEncodedCall'
},
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: 'JunctionsV4',
ReportError: 'QueryResponseInfoV4',
DepositAsset: {
assets: 'MultiAssetFilterV4',
beneficiary: 'MultiLocationV4'
},
DepositReserveAsset: {
assets: 'MultiAssetFilterV4',
dest: 'MultiLocationV4',
xcm: 'XcmV4'
},
ExchangeAsset: {
give: 'MultiAssetFilterV4',
want: 'MultiAssetsV4',
maximal: 'bool'
},
InitiateReserveWithdraw: {
assets: 'MultiAssetFilterV4',
reserve: 'MultiLocationV4',
xcm: 'XcmV4'
},
InitiateTeleport: {
assets: 'MultiAssetFilterV4',
dest: 'MultiLocationV4',
xcm: 'XcmV4'
},
ReportHolding: {
responseInfo: 'QueryResponseInfoV4',
assets: 'MultiAssetFilterV4'
},
BuyExecution: {
fees: 'MultiAssetV4',
weightLimit: 'WeightLimitV3'
},
RefundSurplus: 'Null',
SetErrorHandler: 'XcmV4',
SetAppendix: 'XcmV4',
ClearError: 'Null',
ClaimAsset: {
assets: 'MultiAssetsV4',
ticket: 'MultiLocationV4'
},
Trap: 'Compact<u64>',
SubscribeVersion: {
queryId: 'Compact<u64>',
maxResponseWeight: 'WeightV2'
},
UnsubscribeVersion: 'Null',
BurnAsset: 'MultiAssetsV4',
ExpectAsset: 'MultiAssetsV4',
ExpectOrigin: 'Option<MultiLocationV4>',
ExpectError: 'Option<(u32, XcmErrorV3)>',
ExpectTransactStatus: 'MaybeErrorCodeV3',
QueryPallet: {
moduleName: 'Vec<u8>',
responseInfo: 'QueryResponseInfoV4'
},
ExpectPallet: {
index: 'Compact<u32>',
name: 'Vec<u8>',
moduleName: 'Vec<u8>',
crateMajor: 'Compact<u32>',
minCrateMinor: 'Compact<u32>'
},
ReportTransactStatus: 'QueryResponseInfoV4',
ClearTransactStatus: 'Null',
UniversalOrigin: 'JunctionV4',
ExportMessage: {
network: 'NetworkIdV4',
destination: 'JunctionsV4',
xcm: 'XcmV4'
},
LockAsset: {
asset: 'MultiAssetV4',
unlocker: 'MultiLocationV4'
},
UnlockAsset: {
asset: 'MultiAssetV4',
target: 'MultiLocationV4'
},
NoteUnlockable: {
asset: 'MultiAssetV4',
owner: 'MultiLocationV4'
},
RequestUnlock: {
asset: 'MultiAssetV4',
locker: 'MultiLocationV4'
},
SetFeesMode: {
jitWithdraw: 'bool'
},
SetTopic: '[u8;32]',
ClearTopic: 'Null',
AliasOrigin: 'MultiLocationV4',
UnpaidExecution: {
weightLimit: 'WeightLimitV3',
checkOrigin: 'Option<MultiLocationV4>'
}
}
},
OutcomeV4: {
_enum: {
Complete: {
used: 'WeightV2'
},
Incomplete: {
used: 'WeightV2',
error: 'XcmErrorV3'
},
Error: {
error: 'XcmErrorV3'
}
}
},
WildMultiAssetV4: {
_enum: {
All: 'Null',
AllOf: {
id: 'AssetIdV4',
fun: 'WildFungibilityV4'
},
AllCounted: 'Compact<u32>',
AllOfCounted: {
id: 'AssetIdV4',
fun: 'WildFungibilityV4',
count: 'Compact<u32>'
}
}
},
VersionV4: 'u32',
XcmV4: 'Vec<InstructionV4>',
XcmErrorV4: 'XcmErrorV3'
};
+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: '12.4.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '14.0.1' };
+8 -2
View File
@@ -38,7 +38,7 @@ export interface SignerPayloadJSON {
/**
* @description The id of the asset used to pay fees, in hex
*/
assetId?: number | object;
assetId?: HexString;
/**
* @description The checkpoint hash of the block, in hex
@@ -220,7 +220,7 @@ export interface ExtrinsicPayloadValue {
specVersion: AnyNumber;
tip: AnyNumber;
transactionVersion: AnyNumber;
assetId?: AnyNumber | object;
assetId?: HexString;
mode?: AnyNumber;
metadataHash?: AnyU8a;
}
@@ -247,6 +247,12 @@ export interface IExtrinsicImpl extends IExtrinsicSignable<IExtrinsicImpl> {
readonly version: number;
}
export interface IExtrinsicV5Impl extends IExtrinsicSignable<IExtrinsicV5Impl> {
readonly method: Call;
readonly signature: IExtrinsicSignature;
readonly version: number;
}
export interface IExtrinsic<A extends AnyTuple = AnyTuple> extends IExtrinsicSignable<IExtrinsic<A>>, ExtrinsicSignatureBase, IMethod<A> {
readonly length: number;
readonly method: IMethod<A>;
+2
View File
@@ -2,6 +2,8 @@
"extends": "@polkadot/dev/config/tsconfig.json",
"compilerOptions": {
"composite": true,
// Rel: https://github.com/polkadot-js/api/issues/5977
"noUnusedLocals": false,
"paths": {
"@polkadot/api": ["api/src/index.ts"],
"@polkadot/api/base": ["api/src/base/index.ts"],
+3 -1
View File
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"composite": true
"composite": true,
// Rel: https://github.com/polkadot-js/api/issues/5977
"noUnusedLocals": false
},
"files": [],
"references": [
+3 -1
View File
@@ -2,7 +2,9 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./packages",
"composite": false
"composite": false,
// Rel: https://github.com/polkadot-js/api/issues/5977
"noUnusedLocals": false
},
"include": [
"packages/**/src/**/*",
+3 -1
View File
@@ -3,7 +3,9 @@
"compilerOptions": {
"baseUrl": "./packages",
"composite": false,
"resolveJsonModule": true
"resolveJsonModule": true,
// Rel: https://github.com/polkadot-js/api/issues/5977
"noUnusedLocals": false
},
"include": [
"packages/**/src/**/*",
+245 -245
View File
@@ -447,29 +447,29 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:12.4.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:14.0.1, @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:12.4.1"
"@polkadot/rpc-augment": "npm:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-augment": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/api-base": "npm:14.0.1"
"@polkadot/rpc-augment": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-augment": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:12.4.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:14.0.1, @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:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/rpc-core": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
@@ -477,93 +477,93 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@polkadot/api": "npm:12.4.1"
"@polkadot/api-augment": "npm:12.4.1"
"@polkadot/keyring": "npm:^13.0.2"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-create": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/api": "npm:14.0.1"
"@polkadot/api-augment": "npm:14.0.1"
"@polkadot/keyring": "npm:^13.1.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-create": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/api-derive@npm:12.4.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:14.0.1, @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:12.4.1"
"@polkadot/api-augment": "npm:12.4.1"
"@polkadot/api-base": "npm:12.4.1"
"@polkadot/rpc-augment": "npm:12.4.1"
"@polkadot/rpc-core": "npm:12.4.1"
"@polkadot/rpc-provider": "npm:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/api": "npm:14.0.1"
"@polkadot/api-augment": "npm:14.0.1"
"@polkadot/api-base": "npm:14.0.1"
"@polkadot/rpc-augment": "npm:14.0.1"
"@polkadot/rpc-core": "npm:14.0.1"
"@polkadot/rpc-provider": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/api@npm:12.4.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:14.0.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:12.4.1"
"@polkadot/api-base": "npm:12.4.1"
"@polkadot/api-derive": "npm:12.4.1"
"@polkadot/keyring": "npm:^13.0.2"
"@polkadot/rpc-augment": "npm:12.4.1"
"@polkadot/rpc-core": "npm:12.4.1"
"@polkadot/rpc-provider": "npm:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-augment": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-create": "npm:12.4.1"
"@polkadot/types-known": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/api-augment": "npm:14.0.1"
"@polkadot/api-base": "npm:14.0.1"
"@polkadot/api-derive": "npm:14.0.1"
"@polkadot/keyring": "npm:^13.1.1"
"@polkadot/rpc-augment": "npm:14.0.1"
"@polkadot/rpc-core": "npm:14.0.1"
"@polkadot/rpc-provider": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-augment": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-create": "npm:14.0.1"
"@polkadot/types-known": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
eventemitter3: "npm:^5.0.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.79.3":
version: 0.79.3
resolution: "@polkadot/dev-test@npm:0.79.3"
"@polkadot/dev-test@npm:^0.80.1":
version: 0.80.1
resolution: "@polkadot/dev-test@npm:0.80.1"
dependencies:
jsdom: "npm:^24.0.0"
tslib: "npm:^2.6.2"
checksum: 10/30c3145c174e09416d713bcd5eb93e13c6f90f71f2d75defbdc11aa09d87d88aad222ef8ca33e8372317692aa51eb976fbf60c9ccf0901f6db0275a550915c69
tslib: "npm:^2.7.0"
checksum: 10/bb9cce4ace945b820f2f7192c945a8fa1920f650e8415f3f5c00d7e8b1fd80807623944a8d05b127c51ae488d28345e9c876e4bff2f14e4ac824c09073b71d97
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.79.3":
version: 0.79.3
resolution: "@polkadot/dev-ts@npm:0.79.3"
"@polkadot/dev-ts@npm:^0.80.1":
version: 0.80.1
resolution: "@polkadot/dev-ts@npm:0.80.1"
dependencies:
json5: "npm:^2.2.3"
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.3"
checksum: 10/097d579647abda70fe71c98c5c9aa79488a25af27a5d17c754dc70aad33770a49637a1d297aa0d50863b6db2e606dffa005c4336886b0030c73eef34180c6863
tslib: "npm:^2.7.0"
typescript: "npm:^5.5.4"
checksum: 10/aa8f52edc0aae9d3ddfb7485fa15a4a370a236ce519761502904fbd3208e65ebd16ab7a501169a9ef26d4878255b27a330ebc779317eaeacf084884853a49209
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.79.3":
version: 0.79.3
resolution: "@polkadot/dev@npm:0.79.3"
"@polkadot/dev@npm:^0.80.1":
version: 0.80.1
resolution: "@polkadot/dev@npm:0.80.1"
dependencies:
"@eslint/js": "npm:^8.56.0"
"@polkadot/dev-test": "npm:^0.79.3"
"@polkadot/dev-ts": "npm:^0.79.3"
"@polkadot/dev-test": "npm:^0.80.1"
"@polkadot/dev-ts": "npm:^0.80.1"
"@rollup/plugin-alias": "npm:^5.1.0"
"@rollup/plugin-commonjs": "npm:^25.0.7"
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.2"
@@ -596,8 +596,8 @@ __metadata:
madge: "npm:^6.1.0"
rollup: "npm:^4.9.6"
rollup-plugin-cleanup: "npm:^3.2.1"
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.3"
tslib: "npm:^2.7.0"
typescript: "npm:^5.5.4"
webpack: "npm:^5.89.0"
webpack-cli: "npm:^5.1.4"
webpack-dev-server: "npm:^4.15.1"
@@ -628,78 +628,78 @@ __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/fa7b6834ce28e16f2287d26cad481e43ec047d015ba38ffb3b2953326e087191a7393d1d55cb5973dd3803bc07258312946dec98a2cf0956c657283a7c49341d
checksum: 10/f8fd42bd5a05db0d2cea92bdd5cd1ea8483c0afa1c92b58edac691d572df97bf4fff1e983b4e1a28e5881bcadc095726f6c661e277932137538c53699ed1dd02
languageName: node
linkType: hard
"@polkadot/keyring@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/keyring@npm:13.0.2"
"@polkadot/keyring@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/keyring@npm:13.1.1"
dependencies:
"@polkadot/util": "npm:13.0.2"
"@polkadot/util-crypto": "npm:13.0.2"
tslib: "npm:^2.6.2"
"@polkadot/util": "npm:13.1.1"
"@polkadot/util-crypto": "npm:13.1.1"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": 13.0.2
"@polkadot/util-crypto": 13.0.2
checksum: 10/7d94566cf61396a8890abe5d59b8fdd6d763a9eb3f9a42b8e2faab950fa0e13ac043b6898ea467694c098bac72c5bf3d44cc9da1fb1511ba1424c740f638ad48
"@polkadot/util": 13.1.1
"@polkadot/util-crypto": 13.1.1
checksum: 10/ec0498d7b65815d416afe8004ef5b642e4cd767546ffb38d87eb799f246829dd4594a40a8c116bdc338cdc7c17908bd1aa9cdae21b8b16ef0d4f2af0a4bba00d
languageName: node
linkType: hard
"@polkadot/networks@npm:13.0.2, @polkadot/networks@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/networks@npm:13.0.2"
"@polkadot/networks@npm:13.1.1, @polkadot/networks@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/networks@npm:13.1.1"
dependencies:
"@polkadot/util": "npm:13.0.2"
"@substrate/ss58-registry": "npm:^1.46.0"
tslib: "npm:^2.6.2"
checksum: 10/00722e54b9869a6186b1974fad7eb35af6a1fb13ad6bd82d79c972250e874994977ed6fdc1c5f1eb0465974ab628de7251502f162c179d40f872c49b54ab5e7d
"@polkadot/util": "npm:13.1.1"
"@substrate/ss58-registry": "npm:^1.50.0"
tslib: "npm:^2.7.0"
checksum: 10/50df885cba557e703a52a419135b869fb2dcc0f772649761ac2f4c9ee2444aae80842c1a24383857527f293c765c867ae75891f199d3885e43fd6e3feb1f7d8b
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:12.4.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:14.0.1, @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:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/rpc-core": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:12.4.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:14.0.1, @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.0.2"
"@polkadot/rpc-augment": "npm:12.4.1"
"@polkadot/rpc-provider": "npm:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/keyring": "npm:^13.1.1"
"@polkadot/rpc-augment": "npm:14.0.1"
"@polkadot/rpc-provider": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@npm:12.4.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:14.0.1, @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.0.2"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-fetch": "npm:^13.0.2"
"@polkadot/x-global": "npm:^13.0.2"
"@polkadot/x-ws": "npm:^13.0.2"
"@polkadot/keyring": "npm:^13.1.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
"@polkadot/x-fetch": "npm:^13.1.1"
"@polkadot/x-global": "npm:^13.1.1"
"@polkadot/x-ws": "npm:^13.1.1"
"@substrate/connect": "npm:0.8.11"
eventemitter3: "npm:^5.0.1"
mock-socket: "npm:^9.3.1"
nock: "npm:^13.5.4"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
dependenciesMeta:
"@substrate/connect":
optional: true
@@ -710,21 +710,21 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@polkadot/api": "npm:12.4.1"
"@polkadot/api-augment": "npm:12.4.1"
"@polkadot/rpc-augment": "npm:12.4.1"
"@polkadot/rpc-provider": "npm:12.4.1"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-augment": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-create": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-ws": "npm:^13.0.2"
"@polkadot/api": "npm:14.0.1"
"@polkadot/api-augment": "npm:14.0.1"
"@polkadot/rpc-augment": "npm:14.0.1"
"@polkadot/rpc-provider": "npm:14.0.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-augment": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-create": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
"@polkadot/x-ws": "npm:^13.1.1"
"@types/yargs": "npm:^17.0.33"
handlebars: "npm:^4.7.8"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
yargs: "npm:^17.7.2"
bin:
polkadot-types-chain-info: ./scripts/polkadot-types-chain-info.mjs
@@ -735,113 +735,113 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@npm:12.4.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:14.0.1, @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:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:12.4.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:14.0.1, @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:12.4.1"
"@polkadot/types-augment": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/x-bigint": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-augment": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
"@polkadot/x-bigint": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/types-create@npm:12.4.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:14.0.1, @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:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:12.4.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:14.0.1, @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:12.4.1"
"@polkadot/networks": "npm:^13.0.2"
"@polkadot/types": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-create": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
tslib: "npm:^2.6.3"
"@polkadot/api": "npm:14.0.1"
"@polkadot/networks": "npm:^13.1.1"
"@polkadot/types": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-create": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:12.4.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:14.0.1, @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.0.2"
tslib: "npm:^2.6.3"
"@polkadot/util": "npm:^13.1.1"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/types@npm:12.4.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:14.0.1, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@polkadot/keyring": "npm:^13.0.2"
"@polkadot/types-augment": "npm:12.4.1"
"@polkadot/types-codec": "npm:12.4.1"
"@polkadot/types-create": "npm:12.4.1"
"@polkadot/types-support": "npm:12.4.1"
"@polkadot/util": "npm:^13.0.2"
"@polkadot/util-crypto": "npm:^13.0.2"
"@polkadot/keyring": "npm:^13.1.1"
"@polkadot/types-augment": "npm:14.0.1"
"@polkadot/types-codec": "npm:14.0.1"
"@polkadot/types-create": "npm:14.0.1"
"@polkadot/types-support": "npm:14.0.1"
"@polkadot/util": "npm:^13.1.1"
"@polkadot/util-crypto": "npm:^13.1.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.3"
tslib: "npm:^2.7.0"
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:13.0.2, @polkadot/util-crypto@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/util-crypto@npm:13.0.2"
"@polkadot/util-crypto@npm:13.1.1, @polkadot/util-crypto@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/util-crypto@npm:13.1.1"
dependencies:
"@noble/curves": "npm:^1.3.0"
"@noble/hashes": "npm:^1.3.3"
"@polkadot/networks": "npm:13.0.2"
"@polkadot/util": "npm:13.0.2"
"@polkadot/networks": "npm:13.1.1"
"@polkadot/util": "npm:13.1.1"
"@polkadot/wasm-crypto": "npm:^7.3.2"
"@polkadot/wasm-util": "npm:^7.3.2"
"@polkadot/x-bigint": "npm:13.0.2"
"@polkadot/x-randomvalues": "npm:13.0.2"
"@scure/base": "npm:^1.1.5"
tslib: "npm:^2.6.2"
"@polkadot/x-bigint": "npm:13.1.1"
"@polkadot/x-randomvalues": "npm:13.1.1"
"@scure/base": "npm:^1.1.7"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": 13.0.2
checksum: 10/333db21d1708158dc83905c32437ba201c97ba4274c2970f0bdfa9384f70f9bedbbe4e3032ce67d6f73bd0b755a4ab4d67b89f483b6bfc76305a67a867230915
"@polkadot/util": 13.1.1
checksum: 10/6f78ed75e4d2ab0dd0f5778640b6f6856702064ab2804c629ce97102389abc981d35cdec6ae63a814fa12b6d9deb5fe024f41bb54fe0e5cea3daa010455594ea
languageName: node
linkType: hard
"@polkadot/util@npm:13.0.2, @polkadot/util@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/util@npm:13.0.2"
"@polkadot/util@npm:13.1.1, @polkadot/util@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/util@npm:13.1.1"
dependencies:
"@polkadot/x-bigint": "npm:13.0.2"
"@polkadot/x-global": "npm:13.0.2"
"@polkadot/x-textdecoder": "npm:13.0.2"
"@polkadot/x-textencoder": "npm:13.0.2"
"@polkadot/x-bigint": "npm:13.1.1"
"@polkadot/x-global": "npm:13.1.1"
"@polkadot/x-textdecoder": "npm:13.1.1"
"@polkadot/x-textencoder": "npm:13.1.1"
"@types/bn.js": "npm:^5.1.5"
bn.js: "npm:^5.2.1"
tslib: "npm:^2.6.2"
checksum: 10/9e83f0843c3da9ffa7b6bc95a73e96ca4754d45cb9cc4418461e1ca38f00c54cb0e61873bb6f09f40c51e435025cfc282577b906a23b36eb6b0eb5af8668fad8
tslib: "npm:^2.7.0"
checksum: 10/ec1db22e6e33d2a5d4197290805e4f7300c3aa847e9607f667c0bb967ecc359751b216581930878e74d22329ede3b8170c724008e336a50ce4bc1183ce3f9e25
languageName: node
linkType: hard
@@ -925,77 +925,77 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:13.0.2, @polkadot/x-bigint@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/x-bigint@npm:13.0.2"
"@polkadot/x-bigint@npm:13.1.1, @polkadot/x-bigint@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/x-bigint@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
tslib: "npm:^2.6.2"
checksum: 10/6c8d198f8982ae9de78a301e1beb0d38e627ba3c6aac149a385c5f753f39dc7201761bc02ce45881b50e7cf50a883edc8f179abc50532b2b094538c388bbc146
"@polkadot/x-global": "npm:13.1.1"
tslib: "npm:^2.7.0"
checksum: 10/2b4b75bea7b5babde955ec3b3a282cef88ca16ba3243d3415202a5d2c038543ba70ef74af7a7ad846df534466fb14408d2d6ff0313614a1578b6b9f71ac7224f
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/x-fetch@npm:13.0.2"
"@polkadot/x-fetch@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/x-fetch@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
"@polkadot/x-global": "npm:13.1.1"
node-fetch: "npm:^3.3.2"
tslib: "npm:^2.6.2"
checksum: 10/b4cf06f5219dab2b8b94af7913a3346fa46d1179b47c809f0cabecf07b068f9cd3e6f395c943c59b71341b92d61808df7bc05e23e4a30088349c77ed6b4ec11f
tslib: "npm:^2.7.0"
checksum: 10/11fedc3623e8126d3a2cab54c7e2d031e119f4d4bfba0f04a75e1f387ca1f56b096b7e028ecbee3edd0ea08ffd2d3614630624d5547302674fe0f62b675c1ca8
languageName: node
linkType: hard
"@polkadot/x-global@npm:13.0.2, @polkadot/x-global@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/x-global@npm:13.0.2"
"@polkadot/x-global@npm:13.1.1, @polkadot/x-global@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/x-global@npm:13.1.1"
dependencies:
tslib: "npm:^2.6.2"
checksum: 10/e21fa675a0f0e017bcd7e39638b1ddcaf7adc6a457ffcc431aef6c5bc2ae9ad721e97a97f6b1b4b5b4499297be0357887040540085765b31fb837fa91a71055b
tslib: "npm:^2.7.0"
checksum: 10/6dc239d357cb4037decd8b9a1b016a072145b969300d62dc5ee0186fc0f102eafd0b2b84be83092874de547d75f87e1f5c99399e0f6f1516d64ef49f387ad156
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:13.0.2":
version: 13.0.2
resolution: "@polkadot/x-randomvalues@npm:13.0.2"
"@polkadot/x-randomvalues@npm:13.1.1":
version: 13.1.1
resolution: "@polkadot/x-randomvalues@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
tslib: "npm:^2.6.2"
"@polkadot/x-global": "npm:13.1.1"
tslib: "npm:^2.7.0"
peerDependencies:
"@polkadot/util": 13.0.2
"@polkadot/util": 13.1.1
"@polkadot/wasm-util": "*"
checksum: 10/bcfe394658d21f40b1169c063b9123b1d8044bc081785b7532c4851b9161b6192ca30edb502f3ead3d3bfffe7776b2cb091c15b6566c301516f355c70b69d211
checksum: 10/fe8bd72bced3fe31118e6f6ca2cce69ac2412068de7f8db8de83cc9bb736b77fa639f6aea4297bb9b63c91383fe72fa5904c0a8ab26b1fead8219534721d9658
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:13.0.2":
version: 13.0.2
resolution: "@polkadot/x-textdecoder@npm:13.0.2"
"@polkadot/x-textdecoder@npm:13.1.1":
version: 13.1.1
resolution: "@polkadot/x-textdecoder@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
tslib: "npm:^2.6.2"
checksum: 10/31f378a8d9b3f3963b94fd87320100a754d1381eaf4687f58d28f9de0df24acc99d80ce707ff0d2d0b4ca3477d12ac8506f7cc502fde2b08fb30867f7a7553c1
"@polkadot/x-global": "npm:13.1.1"
tslib: "npm:^2.7.0"
checksum: 10/0ddddc3534587855b29fd2fc0137dc80d4d75d084965ce7494dfabc53ae78b59cfc6601c052a97e88c804357a94f8ba3a19bd7bac19ee557f353294f83d77d5b
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:13.0.2":
version: 13.0.2
resolution: "@polkadot/x-textencoder@npm:13.0.2"
"@polkadot/x-textencoder@npm:13.1.1":
version: 13.1.1
resolution: "@polkadot/x-textencoder@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
tslib: "npm:^2.6.2"
checksum: 10/f3e2379901b68176398efc5be1e8304ceda28b3f4bf6b0da0b837b13478257967108552eae3250a43d634253bdb46e907146244ff41908a5a39f99852fb5a252
"@polkadot/x-global": "npm:13.1.1"
tslib: "npm:^2.7.0"
checksum: 10/d298528f55425d55c59f2827d4aa9e16c1d3c5e085751f635631bf07c0c43882eeb75729776a99fc5ebdc2c2c76d97e7e8dbe762b49050549a4ddd0a312954d8
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^13.0.2":
version: 13.0.2
resolution: "@polkadot/x-ws@npm:13.0.2"
"@polkadot/x-ws@npm:^13.1.1":
version: 13.1.1
resolution: "@polkadot/x-ws@npm:13.1.1"
dependencies:
"@polkadot/x-global": "npm:13.0.2"
tslib: "npm:^2.6.2"
"@polkadot/x-global": "npm:13.1.1"
tslib: "npm:^2.7.0"
ws: "npm:^8.16.0"
checksum: 10/627d7bb8fb115a66fafb11e8f96c2559f793ea936fd88be2aee3f304c5f08c6133073fd762a7a9ae793e2f83ad122c5dace1509831ee1e694b7bf67d5a56e89a
checksum: 10/cdcb4cd760358e19db3246c8fb7e990ae3c88c43fb8a57902dbfa3e48118c7f6ec23d6c87874e134575d121b45a4754196c2f98bac577d8464ec90ce8537b343
languageName: node
linkType: hard
@@ -1206,10 +1206,10 @@ __metadata:
languageName: node
linkType: hard
"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.5":
version: 1.1.5
resolution: "@scure/base@npm:1.1.5"
checksum: 10/543fa9991c6378b6a0d5ab7f1e27b30bb9c1e860d3ac81119b4213cfdf0ad7b61be004e06506e89de7ce0cec9391c17f5c082bb34c3b617a2ee6a04129f52481
"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.7":
version: 1.1.8
resolution: "@scure/base@npm:1.1.8"
checksum: 10/5b764c0e98610bc4993479965db718457d91b68d3c6f1339e3cc74e53fc6b0ae0428d1d64d29a0de0cee9d966034674d4464fdbd2d1dbef27013927b2fe05c45
languageName: node
linkType: hard
@@ -1263,10 +1263,10 @@ __metadata:
languageName: node
linkType: hard
"@substrate/ss58-registry@npm:^1.46.0":
version: 1.49.0
resolution: "@substrate/ss58-registry@npm:1.49.0"
checksum: 10/6214c8f8586aefbb67b70bd2f02a9d133cfb15f360d691f1164c192036b59d1e282495e884b7da80a32e54eed1bd2bcc421f571e548a29410a5a50be7b2daa10
"@substrate/ss58-registry@npm:^1.50.0":
version: 1.50.0
resolution: "@substrate/ss58-registry@npm:1.50.0"
checksum: 10/66c096c9027ea4dba748c551e410d21014828311454443f62b0d4d6bdd5f5881fef027c9ed1bf84dc706d33c04242e5ecc09276ae4a52a34f3d818db519b633b
languageName: node
linkType: hard
@@ -7945,7 +7945,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": "npm:^0.79.3"
"@polkadot/dev": "npm:^0.80.1"
"@polkadot/typegen": "workspace:packages/typegen"
"@types/node": "npm:^20.15.0"
languageName: unknown
@@ -8928,10 +8928,10 @@ __metadata:
languageName: node
linkType: hard
"tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.6.2, tslib@npm:^2.6.3":
version: 2.6.3
resolution: "tslib@npm:2.6.3"
checksum: 10/52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c
"tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.6.2, tslib@npm:^2.7.0":
version: 2.7.0
resolution: "tslib@npm:2.7.0"
checksum: 10/9a5b47ddac65874fa011c20ff76db69f97cf90c78cff5934799ab8894a5342db2d17b4e7613a087046bc1d133d21547ddff87ac558abeec31ffa929c88b7fce6
languageName: node
linkType: hard
@@ -9074,23 +9074,23 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:^5.3.3":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
"typescript@npm:^5.5.4":
version: 5.5.4
resolution: "typescript@npm:5.5.4"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/6e4e6a14a50c222b3d14d4ea2f729e79f972fa536ac1522b91202a9a65af3605c2928c4a790a4a50aa13694d461c479ba92cedaeb1e7b190aadaa4e4b96b8e18
checksum: 10/1689ccafef894825481fc3d856b4834ba3cc185a9c2878f3c76a9a1ef81af04194849840f3c69e7961e2312771471bb3b460ca92561e1d87599b26c37d0ffb6f
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
"typescript@patch:typescript@npm%3A^5.5.4#optional!builtin<compat/typescript>":
version: 5.5.4
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=379a07"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/c93786fcc9a70718ba1e3819bab56064ead5817004d1b8186f8ca66165f3a2d0100fee91fa64c840dcd45f994ca5d615d8e1f566d39a7470fc1e014dbb4cf15d
checksum: 10/746fdd0865c5ce4f15e494c57ede03a9e12ede59cfdb40da3a281807853fe63b00ef1c912d7222143499aa82f18b8b472baa1830df8804746d09b55f6cf5b1cc
languageName: node
linkType: hard