Compare commits

..
74 Commits
Author SHA1 Message Date
github-actions[bot] 05c3f12cd7 [CI Skip] release/stable 7.11.1
skip-checks: true
2022-03-06 16:38:04 +00:00
Jaco 9f6f33844a 7.11.1 (#4631)
* 7.11.1

* packageInfo

* Robustness
2022-03-06 18:30:20 +02:00
github-actions[bot] 895f82920d [CI Skip] release/beta 7.10.2-10
skip-checks: true
2022-03-06 09:24:51 +00:00
Jaco 06fa4aa6eb Allow use of options.signer for status updates (#4615)
* Allow use of options.signer for status updates

* Use isFunction as applicable

* Use UpdateInfo

* CHANGELOG
2022-03-06 11:14:50 +02:00
github-actions[bot] 1e5002fb5e [CI Skip] release/beta 7.10.2-9
skip-checks: true
2022-03-06 08:36:08 +00:00
Jaco 8be52dec13 Apply chunking to era{Exposure, Prefs, Slashes} (#4620)
* Apply chunking to era{Exposure, Prefs, Slashes}

* CHANGELOG

* Failsafe return location

* typo
2022-03-06 10:26:43 +02:00
github-actions[bot] 8fcda8cd54 [CI Skip] release/beta 7.10.2-8
skip-checks: true
2022-03-06 08:02:44 +00:00
Jaco d08c306887 Bump metadata (#4630) 2022-03-06 09:54:02 +02:00
github-actions[bot] eb6b0232c3 [CI Skip] release/beta 7.10.2-7
skip-checks: true
2022-03-06 06:50:29 +00:00
Jaco e5fbaeb7cd Bump deps (#4629) 2022-03-06 08:42:51 +02:00
github-actions[bot] 8e61ea1b8b [CI Skip] release/beta 7.10.2-6
skip-checks: true
2022-03-04 10:32:35 +00:00
Jaco 9fe202a4d3 Add Polkadot 9170 upgrade block (#4627) 2022-03-04 12:24:43 +02:00
github-actions[bot] 6e62d03652 [CI Skip] release/beta 7.10.2-5
skip-checks: true
2022-03-04 07:51:56 +00:00
Jaco 49dc66f7d4 Adjust auto actions (#4626)
* Adjust auto actions

* Adjust
2022-03-04 09:43:58 +02:00
github-actions[bot] 22320f9995 [CI Skip] release/beta 7.10.2-4
skip-checks: true
2022-03-03 09:39:17 +00:00
Jaco 7603bad434 Remove checkout from auto-{approve, merge} actions (#4624) 2022-03-03 11:29:15 +02:00
github-actions[bot] e82f0f35ad [CI Skip] release/beta 7.10.2-3
skip-checks: true
2022-03-02 05:22:27 +00:00
Jaco ae0aa14eb8 Replace mergify with action (#4619) 2022-03-02 07:14:42 +02:00
github-actions[bot] 4875bb9990 [CI Skip] release/beta 7.10.2-2
skip-checks: true
2022-03-01 11:16:01 +00:00
Jacoandmergify[bot] a0308dd25a Bump TS (#4616)
* Bump TS

* Adjust

* Adjust Observable Codec returns

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-01 11:08:20 +00:00
github-actions[bot] edb06d971a [CI Skip] release/beta 7.10.2-1
skip-checks: true
2022-02-28 10:44:59 +00:00
Jacoandmergify[bot] 271a4d8fd7 Kusama 9170 upgrade block (#4613)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-28 10:26:56 +00:00
github-actions[bot] a71e5ad95c [CI Skip] release/beta 7.10.2-0
skip-checks: true
2022-02-28 07:34:42 +00:00
Jaco edcdb70e8a Adjust approve workflow (#4612) 2022-02-28 07:13:43 +00:00
github-actions[bot] 17357f6b99 [CI Skip] release/stable 7.10.1
skip-checks: true
2022-02-27 08:04:03 +00:00
Jaco c596a8cb51 7.10.1 (#4609) 2022-02-27 09:42:16 +02:00
github-actions[bot] bdf13b10e5 [CI Skip] release/beta 7.9.2-12
skip-checks: true
2022-02-27 07:15:02 +00:00
coolcorexixandphat.itern 519a12f19a Investigate 4559 v2 (#4608)
* first build

* second build, area of defect found

* third build, fixed the problem successfully

* cleaning up after receving maintainer's response

Co-authored-by: phat.itern <phatNfqAsia>
2022-02-27 08:50:54 +02:00
github-actions[bot] beffc7b754 [CI Skip] release/beta 7.9.2-11
skip-checks: true
2022-02-26 08:51:00 +00:00
Jaco d5ae7031cd Metadata bump (#4606)
* Metadata bump

* Detect BitSequence order

* Adjust
2022-02-26 10:29:41 +02:00
github-actions[bot] 8aff13b827 [CI Skip] release/beta 7.9.2-10
skip-checks: true
2022-02-25 11:03:13 +00:00
Jaco a23b3f953b Retrieve named reserves (#4602) 2022-02-25 12:40:35 +02:00
github-actions[bot] 1249c46019 [CI Skip] release/beta 7.9.2-9
skip-checks: true
2022-02-24 18:44:58 +00:00
Jaco 2aaf52bb92 Use assertUnreachable from @polkadot/util (#4600) 2022-02-24 18:28:34 +00:00
github-actions[bot] 3372898f82 [CI Skip] release/beta 7.9.2-8
skip-checks: true
2022-02-24 06:38:41 +00:00
Jacoandmergify[bot] ed2f512cfc Don't auto-attach lookup to registry (#4599)
* Don't auto-attach lookup to registry

* CHANGELOG

* Add base u* types

* s/compatTypes/specs/

* CHANGELOG

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-24 06:31:06 +00:00
github-actions[bot] 00147df500 [CI Skip] release/beta 7.9.2-7
skip-checks: true
2022-02-24 05:52:26 +00:00
Jacoandmergify[bot] 3b0c8887d7 Add chain.getBlockByNumber (#4598)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-24 05:42:58 +00:00
github-actions[bot] 16452233b2 [CI Skip] release/beta 7.9.2-6
skip-checks: true
2022-02-23 10:43:52 +00:00
Jaco 5bf87262bc Skip job on non-local repo 2022-02-23 12:33:41 +02:00
github-actions[bot] b8e01fd674 [CI Skip] release/beta 7.9.2-5
skip-checks: true
2022-02-23 10:09:24 +00:00
Jaco f8378ba0f7 Use jacogr/action-approve (#4595) 2022-02-23 12:00:15 +02:00
github-actions[bot] afc105400c [CI Skip] release/beta 7.9.2-4
skip-checks: true
2022-02-22 17:27:21 +00:00
Jaco cca1f10563 XcmV2TraitsOutcome test (#4593)
* XcmV2TraitsOutcome test

* Cleanup build with correct references
2022-02-22 17:19:28 +00:00
github-actions[bot] 6cdbbf5372 [CI Skip] release/beta 7.9.2-3
skip-checks: true
2022-02-22 10:06:24 +00:00
Jaco 8c89732eb7 Decoded storage hashers with primary lookup (#4591) 2022-02-22 09:58:36 +00:00
github-actions[bot] ab3ad6b2ca [CI Skip] release/beta 7.9.2-2
skip-checks: true
2022-02-22 09:01:10 +00:00
Jaco 72f427a250 Map initialU8aLength test (#4590) 2022-02-22 08:51:40 +00:00
github-actions[bot] 5b0bd9d4b7 [CI Skip] release/beta 7.9.2-1
skip-checks: true
2022-02-21 18:14:49 +00:00
Jacoandmergify[bot] cd9662ab4c Ensure BTreeSet has the correct decoded length (#4588)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-21 18:07:11 +00:00
github-actions[bot] 13751b6fdf [CI Skip] release/beta 7.9.2-0
skip-checks: true
2022-02-21 10:38:39 +00:00
Jaco 652f8c28a4 Bump dev (#4585) 2022-02-21 10:30:49 +00:00
github-actions[bot] 0bae9138b8 [CI Skip] release/stable 7.9.1
skip-checks: true
2022-02-20 15:23:37 +00:00
Jaco 98e8cac424 7.9.1 (#4580) 2022-02-20 17:15:17 +02:00
github-actions[bot] dca7f208bc [CI Skip] release/beta 7.8.2-9
skip-checks: true
2022-02-20 06:44:31 +00:00
Jacoandmergify[bot] 67ff12885a Align CHANGELOG (#4579)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-20 06:35:03 +00:00
github-actions[bot] 08c53032eb [CI Skip] release/beta 7.8.2-8
skip-checks: true
2022-02-20 06:00:20 +00:00
Scott TwinameandJaco 5da8f21947 Add support for historical BlockNumber rpc methods (#4574)
* Add support for historical BlockNumber rpc methods

* Update function description

* Apply suggestions from code review

Co-authored-by: Jaco <jacogr@gmail.com>
2022-02-20 07:50:41 +02:00
github-actions[bot] 5080b266a0 [CI Skip] release/beta 7.8.2-7
skip-checks: true
2022-02-19 06:51:06 +00:00
Jaco 0186848936 Convert ExactDerive to interface (#4578) 2022-02-19 06:41:12 +00:00
github-actions[bot] d0de35b05b [CI Skip] release/beta 7.8.2-6
skip-checks: true
2022-02-18 08:42:41 +00:00
Jaco 3ded30a0f3 Bump static metadata (#4575)
* Bump static metadata

* previous incarnation of trieIndex
2022-02-18 08:30:55 +00:00
github-actions[bot] 9fef78c5e1 [CI Skip] release/beta 7.8.2-5
skip-checks: true
2022-02-17 10:28:47 +00:00
Jaco b2a7c453c4 Align grandpa_proveFinality with Substrate (#4573) 2022-02-17 10:19:24 +00:00
github-actions[bot] 030258a671 [CI Skip] release/beta 7.8.2-4
skip-checks: true
2022-02-17 06:12:57 +00:00
Scott Twiname 0a85b4839d Fix getting block registry when historical type isn't BlockHash (#4571)
* Fix getting block registry when historical type isn't BlockHash

* Revert change, remove isHistoric from historical BlockNumber fields
2022-02-17 08:05:06 +02:00
github-actions[bot] ad363bac09 [CI Skip] release/beta 7.8.2-3
skip-checks: true
2022-02-16 08:32:56 +00:00
Jaco e0c0a8c583 Bump deps (#4568) 2022-02-16 08:23:40 +00:00
github-actions[bot] f923a31758 [CI Skip] release/beta 7.8.2-2
skip-checks: true
2022-02-15 18:32:20 +00:00
Jaco 416229d976 Bump deps (#4567) 2022-02-15 18:20:37 +00:00
github-actions[bot] 4380c45f17 [CI Skip] release/beta 7.8.2-1
skip-checks: true
2022-02-15 07:53:05 +00:00
Jaco d481aed8cb Add mergify (#4566) 2022-02-15 09:45:10 +02:00
github-actions[bot] ca25983e3e [CI Skip] release/beta 7.8.2-0
skip-checks: true
2022-02-14 15:08:31 +00:00
Jaco f7caa496e4 Kusama 9160 upgrade block (#4565) 2022-02-14 17:00:05 +02:00
97 changed files with 10680 additions and 7528 deletions
+16
View File
@@ -0,0 +1,16 @@
name: bot
on:
pull_request:
types: [labeled]
jobs:
approve:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-approve@master
with:
authors: jacogr
labels: -auto
token: ${{ secrets.GH_PAT_BOT }}
+16
View File
@@ -0,0 +1,16 @@
name: bot
on:
pull_request:
types: [labeled]
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-merge@master
with:
checks: build,lint,test
labels: -auto
strategy: squash
token: ${{ secrets.GH_PAT_BOT }}
+41
View File
@@ -1,5 +1,46 @@
# CHANGELOG # CHANGELOG
## 7.11.1 Mar 6, 2022
Changes:
- Chunk derive retrieval of `era{Exposure, Prefs, Slashes}`
- Ensure that signer (passed via options) do get updated
- Kusama & Polkadot 9170 upgrade blocks
- Update to latest Substrate, Kusama & Polkadot static metadata
- Adjustments for TypeScript 7.6.2
## 7.10.1 Feb 27, 2022
Contributed:
- Ensure `updateId` is correct in signer callbacks (Thanks to https://github.com/coolcorexix)
Changes:
- Ensure `BTreeSet` has the correct decoded length
- Attach `PortableRegistry` at point of metadata set
- Add `derive.chain.getBlockByNumber`
- Retrieve named reserves in `derive.balances.all`
- Ensure `v13 -> v14` metadata conversion attaches primitives
- Update to latest Substrate, Kusama & Polkadot static metadata
## 7.9.1 Feb 20, 2022
Contributed:
- Support historic queries via blockNumber (Thanks to https://github.com/stwiname)
Changes:
- Align `grandpa_proveFinality` with Substrate
- Allow for derive augmentation (swap base type to interfaces)
- Kusama 9160 upgrade block
- Update to latest Substrate, Kusama & Polkadot static metadata
## 7.8.1 Feb 14, 2022 ## 7.8.1 Feb 14, 2022
Contributed: Contributed:
+3 -2
View File
@@ -1,4 +1,4 @@
2821 Jaco 7.8.1 (#4564) 2855 Jaco 7.11.1 (#4631)
83 Amaury Martiny StatementKind: Regular and Saft (#2303) 83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541) 37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709) 35 Stefanie Doll Updated child storage parameters (#1709)
@@ -13,6 +13,7 @@
4 Alexander Popiak Add asset id in signing (#4009) 4 Alexander Popiak Add asset id in signing (#4009)
4 Joshy Orndorff spelling; efect -> effect (#2295) 4 Joshy Orndorff spelling; efect -> effect (#2295)
4 Nantian fix bigint type (#3869) 4 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127) 4 Thibaut Sardan no subscription for http (#3127)
3 Alex D Use derive customAccount and customLocks for balance overrides (#3248) 3 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
3 André Silva add support for ValidationCodeHash (#3640) 3 André Silva add support for ValidationCodeHash (#3640)
@@ -34,7 +35,6 @@
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230) 2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
2 Nikos Kontakis Add auction in shared types (#4085) 2 Nikos Kontakis Add auction in shared types (#4085)
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294) 2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
2 Scott Twiname Fix `isHistorical` to `isHistoric` (#4540)
2 sung wu Update tx.md (#2485) 2 sung wu Update tx.md (#2485)
2 Veliko Abi constructor takes different parameters (#3347) 2 Veliko Abi constructor takes different parameters (#3347)
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053) 2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
@@ -43,6 +43,7 @@
1 Brad Larson [NEW] Support for custom headers with providers (#2423) 1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 chriswmercer little readme tweak (#279) 1 chriswmercer little readme tweak (#279)
1 codingsh #2182 - add: search for docs (#2232) 1 codingsh #2182 - add: search for docs (#2232)
1 coolcorexix Investigate 4559 v2 (#4608)
1 Dan Forbes Add WeightToFeeCoefficient type (#2296) 1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
1 Daniel Maricic Fixed typo in README (#2402) 1 Daniel Maricic Fixed typo in README (#2402)
1 Daniel Savu fix: Generate custom type definitions (#4224) 1 Daniel Savu fix: Generate custom type definitions (#4224)
+5 -5
View File
@@ -11,7 +11,7 @@
}, },
"sideEffects": false, "sideEffects": false,
"type": "commonjs", "type": "commonjs",
"version": "7.8.1", "version": "7.11.1",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],
@@ -31,15 +31,15 @@
"test:watch": "polkadot-dev-run-test --watch" "test:watch": "polkadot-dev-run-test --watch"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.17.2", "@babel/core": "^7.17.5",
"@babel/register": "^7.17.0", "@babel/register": "^7.17.0",
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/dev": "^0.65.56", "@polkadot/dev": "^0.65.84",
"@polkadot/typegen": "workspace:packages/typegen", "@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^27.4.0", "@types/jest": "^27.4.1",
"copyfiles": "^2.4.1" "copyfiles": "^2.4.1"
}, },
"resolutions": { "resolutions": {
"typescript": "^4.5.5" "typescript": "^4.6.2"
} }
} }
+9 -6
View File
@@ -20,15 +20,18 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/api-base": "7.8.1", "@polkadot/api-base": "7.11.1",
"@polkadot/rpc-augment": "7.8.1", "@polkadot/rpc-augment": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.8.1", "@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
},
"devDependencies": {
"@polkadot/types-support": "7.11.1"
} }
} }
@@ -708,6 +708,10 @@ declare module '@polkadot/api-base/types/consts' {
* Number of eras that staked funds must remain bonded for. * Number of eras that staked funds must remain bonded for.
**/ **/
bondingDuration: u32 & AugmentedConst<ApiType>; bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/** /**
* The maximum number of nominators rewarded for each validator. * The maximum number of nominators rewarded for each validator.
* *
@@ -715,6 +719,11 @@ declare module '@polkadot/api-base/types/consts' {
* claim their reward. This used to limit the i/o cost for the nominator payout. * claim their reward. This used to limit the i/o cost for the nominator payout.
**/ **/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>; maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
* determines how many unique eras a staker may be unbonding in.
**/
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
/** /**
* Number of sessions per era. * Number of sessions per era.
**/ **/
@@ -1355,6 +1355,11 @@ declare module '@polkadot/api-base/types/errors' {
* Cannot schedule downgrade of parachain to parathread * Cannot schedule downgrade of parachain to parathread
**/ **/
CannotDowngrade: AugmentedError<ApiType>; CannotDowngrade: AugmentedError<ApiType>;
/**
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are
* correct for the swap to work.
**/
CannotSwap: AugmentedError<ApiType>;
/** /**
* Cannot schedule upgrade of parathread to parachain * Cannot schedule upgrade of parathread to parachain
**/ **/
@@ -0,0 +1,43 @@
// Copyright 2017-2022 @polkadot/api-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/api-augment/kusama';
import type { PolkadotRuntimeParachainsUmpPalletEvent, XcmV2TraitsOutcome } from '@polkadot/types/lookup';
import { Metadata, TypeRegistry } from '@polkadot/types';
import metadataStatic from '@polkadot/types-support/metadata/static-kusama';
const registry = new TypeRegistry();
const metadata = new Metadata(registry, metadataStatic);
registry.setMetadata(metadata);
describe('correct types', (): void => {
it('correctly creates XcmV2TraitsOutcome', (): void => {
const test = registry.createType<XcmV2TraitsOutcome>('XcmV2TraitsOutcome', {
Incomplete: [3_000_000_000, 'BadOrigin']
});
expect(test.toHuman()).toEqual({
Incomplete: [
'3,000,000,000',
'BadOrigin'
]
});
expect(test.isIncomplete).toEqual(true);
expect(test.asIncomplete.toHuman()).toEqual([
'3,000,000,000',
'BadOrigin'
]);
});
it('correctly creates PolkadotRuntimeParachainsUmpPalletEvent', (): void => {
const test = registry.createType<PolkadotRuntimeParachainsUmpPalletEvent>('PolkadotRuntimeParachainsUmpPalletEvent', '0x02112233445566778811223344556677881122334455667788112233445566778801005ed0b20000000006');
expect(test.asExecutedUpward[1].asIncomplete.toHuman()).toEqual([
'3,000,000,000',
'BadOrigin'
]);
});
});
+2 -2
View File
@@ -575,12 +575,12 @@ declare module '@polkadot/api-base/types/events' {
**/ **/
NewHeadNoted: AugmentedEvent<ApiType, [u32]>; NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
/** /**
* The given validation code was rejected by the PVF pre-checking vote. * The given validation code was accepted by the PVF pre-checking vote.
* `code_hash` `para_id` * `code_hash` `para_id`
**/ **/
PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>; PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>;
/** /**
* The given validation code was accepted by the PVF pre-checking vote. * The given validation code was rejected by the PVF pre-checking vote.
* `code_hash` `para_id` * `code_hash` `para_id`
**/ **/
PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>; PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>;
+7 -5
View File
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types'; import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' { declare module '@polkadot/api-base/types/storage' {
@@ -356,9 +356,9 @@ declare module '@polkadot/api-base/types/storage' {
**/ **/
newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>; newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Tracker for the next available trie index * Tracker for the next available fund index
**/ **/
nextTrieIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>; nextFundIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Generic query * Generic query
**/ **/
@@ -475,7 +475,7 @@ declare module '@polkadot/api-base/types/storage' {
* *
* Can be set via `set_minimum_untrusted_score`. * Can be set via `set_minimum_untrusted_score`.
**/ **/
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<Vec<u128>>>, []> & QueryableStorageEntry<ApiType, []>; minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Current best solution, signed or unsigned, queued to be returned upon `elect`. * Current best solution, signed or unsigned, queued to be returned upon `elect`.
**/ **/
@@ -497,7 +497,7 @@ declare module '@polkadot/api-base/types/storage' {
* can be quite large, so we're willing to pay the cost of multiple database accesses to access * can be quite large, so we're willing to pay the cost of multiple database accesses to access
* them one at a time instead of reading and decoding all of them at once. * them one at a time instead of reading and decoding all of them at once.
**/ **/
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<Vec<u128>, u32>>, []> & QueryableStorageEntry<ApiType, []>; signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* The next index to be assigned to an incoming signed submission. * The next index to be assigned to an incoming signed submission.
* *
@@ -893,6 +893,8 @@ declare module '@polkadot/api-base/types/storage' {
heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>; heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/** /**
* All parachains. Ordered ascending by `ParaId`. Parathreads are not included. * All parachains. Ordered ascending by `ParaId`. Parathreads are not included.
*
* Consider using the [`ParachainsCache`] type of modifying.
**/ **/
parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>; parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
+10 -14
View File
@@ -7,7 +7,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/submittable' { declare module '@polkadot/api-base/types/submittable' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> { export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -1223,7 +1223,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* This check can be turned off by setting the value to `None`. * This check can be turned off by setting the value to `None`.
**/ **/
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<Vec<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Vec<u128>>]>; setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
/** /**
* Submit a solution for the signed phase. * Submit a solution for the signed phase.
* *
@@ -1234,12 +1234,8 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* A deposit is reserved and recorded for the solution. Based on the outcome, the solution * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
* might be rewarded, slashed, or get all or a part of the deposit back. * might be rewarded, slashed, or get all or a part of the deposit back.
*
* # <weight>
* Queue size must be provided as witness data.
* # </weight>
**/ **/
submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>; submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
/** /**
* Submit a solution for the unsigned phase. * Submit a solution for the unsigned phase.
* *
@@ -2213,7 +2209,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Weight is a function of the number of proxies the user has (P). * Weight is a function of the number of proxies the user has (P).
* # </weight> * # </weight>
**/ **/
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>; addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>;
/** /**
* Publish the hash of a proxy-call that will be made in the future. * Publish the hash of a proxy-call that will be made in the future.
* *
@@ -2263,7 +2259,7 @@ declare module '@polkadot/api-base/types/submittable' {
* # </weight> * # </weight>
* TODO: Might be over counting 1 read * TODO: Might be over counting 1 read
**/ **/
anonymous: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>; anonymous: AugmentedSubmittable<(proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeProxyType, u32, u16]>;
/** /**
* Removes a previously spawned anonymous proxy. * Removes a previously spawned anonymous proxy.
* *
@@ -2286,7 +2282,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Weight is a function of the number of proxies the user has (P). * Weight is a function of the number of proxies the user has (P).
* # </weight> * # </weight>
**/ **/
killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>; killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
/** /**
* Dispatch the given `call` from an account that the sender is authorised for through * Dispatch the given `call` from an account that the sender is authorised for through
* `add_proxy`. * `add_proxy`.
@@ -2389,7 +2385,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Weight is a function of the number of proxies the user has (P). * Weight is a function of the number of proxies the user has (P).
* # </weight> * # </weight>
**/ **/
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>; removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, KusamaRuntimeProxyType, u32]>;
/** /**
* Generic tx * Generic tx
**/ **/
@@ -3346,7 +3342,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* # <weight> * # <weight>
* - Time complexity: O(L), where L is unlocking chunks * - Time complexity: O(L), where L is unlocking chunks
* - Bounded by `MAX_UNLOCKING_CHUNKS`. * - Bounded by `MaxUnlockingChunks`.
* - Storage changes: Can't increase storage, only decrease it. * - Storage changes: Can't increase storage, only decrease it.
* # </weight> * # </weight>
**/ **/
@@ -3449,7 +3445,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update. * NOTE: Existing nominators and validators will not be affected by this update.
* to kick people under the new limits, `chill_other` should be called. * to kick people under the new limits, `chill_other` should be called.
**/ **/
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>; setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
/** /**
* Sets the ideal number of validators. * Sets the ideal number of validators.
* *
@@ -3471,7 +3467,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
* the funds out of management ready for transfer. * the funds out of management ready for transfer.
* *
* No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
* can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
* to be called first to remove some of the chunks (if possible). * to be called first to remove some of the chunks (if possible).
* *
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.11.1' };
@@ -575,6 +575,10 @@ declare module '@polkadot/api-base/types/consts' {
* Number of eras that staked funds must remain bonded for. * Number of eras that staked funds must remain bonded for.
**/ **/
bondingDuration: u32 & AugmentedConst<ApiType>; bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/** /**
* The maximum number of nominators rewarded for each validator. * The maximum number of nominators rewarded for each validator.
* *
@@ -582,6 +586,11 @@ declare module '@polkadot/api-base/types/consts' {
* claim their reward. This used to limit the i/o cost for the nominator payout. * claim their reward. This used to limit the i/o cost for the nominator payout.
**/ **/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>; maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
* determines how many unique eras a staker may be unbonding in.
**/
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
/** /**
* Number of sessions per era. * Number of sessions per era.
**/ **/
@@ -1057,6 +1057,40 @@ declare module '@polkadot/api-base/types/errors' {
**/ **/
[key: string]: AugmentedError<ApiType>; [key: string]: AugmentedError<ApiType>;
}; };
parasDisputes: {
/**
* Ancient dispute statement provided.
**/
AncientDisputeStatement: AugmentedError<ApiType>;
/**
* Duplicate dispute statement sets provided.
**/
DuplicateDisputeStatementSets: AugmentedError<ApiType>;
/**
* Validator vote submitted more than once to dispute.
**/
DuplicateStatement: AugmentedError<ApiType>;
/**
* Invalid signature on statement.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* Too many spam slots used by some specific validator.
**/
PotentialSpam: AugmentedError<ApiType>;
/**
* A dispute where there are only votes on one side.
**/
SingleSidedDispute: AugmentedError<ApiType>;
/**
* Validator index on statement is out of bounds for session.
**/
ValidatorIndexOutOfBounds: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
phragmenElection: { phragmenElection: {
/** /**
* Duplicated candidate submission. * Duplicated candidate submission.
@@ -1212,6 +1246,11 @@ declare module '@polkadot/api-base/types/errors' {
* Cannot schedule downgrade of parachain to parathread * Cannot schedule downgrade of parachain to parathread
**/ **/
CannotDowngrade: AugmentedError<ApiType>; CannotDowngrade: AugmentedError<ApiType>;
/**
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are
* correct for the swap to work.
**/
CannotSwap: AugmentedError<ApiType>;
/** /**
* Cannot schedule upgrade of parathread to parachain * Cannot schedule upgrade of parathread to parachain
**/ **/
+30 -3
View File
@@ -6,7 +6,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
import type { ITuple } from '@polkadot/types-codec/types'; import type { ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV1CandidateReceipt, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV1CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/events' { declare module '@polkadot/api-base/types/events' {
export interface AugmentedEvents<ApiType extends ApiTypes> { export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -553,12 +553,12 @@ declare module '@polkadot/api-base/types/events' {
**/ **/
NewHeadNoted: AugmentedEvent<ApiType, [u32]>; NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
/** /**
* The given validation code was rejected by the PVF pre-checking vote. * The given validation code was accepted by the PVF pre-checking vote.
* `code_hash` `para_id` * `code_hash` `para_id`
**/ **/
PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>; PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>;
/** /**
* The given validation code was accepted by the PVF pre-checking vote. * The given validation code was rejected by the PVF pre-checking vote.
* `code_hash` `para_id` * `code_hash` `para_id`
**/ **/
PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>; PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>;
@@ -572,6 +572,33 @@ declare module '@polkadot/api-base/types/events' {
**/ **/
[key: string]: AugmentedEvent<ApiType>; [key: string]: AugmentedEvent<ApiType>;
}; };
parasDisputes: {
/**
* A dispute has concluded for or against a candidate.
* `\[para id, candidate hash, dispute result\]`
**/
DisputeConcluded: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeResult]>;
/**
* A dispute has been initiated. \[candidate hash, dispute location\]
**/
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
/**
* A dispute has timed out due to insufficient participation.
* `\[para id, candidate hash\]`
**/
DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
/**
* A dispute has concluded with supermajority against a candidate.
* Block authors should no longer build on top of this head and should
* instead revert the block at the given height. This should be the
* number of the child of the last known valid block in the chain.
**/
Revert: AugmentedEvent<ApiType, [u32]>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
phragmenElection: { phragmenElection: {
/** /**
* A candidate was slashed by amount due to failing to obtain a seat as member or * A candidate was slashed by amount due to failing to obtain a seat as member or
+42 -5
View File
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types'; import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' { declare module '@polkadot/api-base/types/storage' {
@@ -356,9 +356,9 @@ declare module '@polkadot/api-base/types/storage' {
**/ **/
newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>; newRaise: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Tracker for the next available trie index * Tracker for the next available fund index
**/ **/
nextTrieIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>; nextFundIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Generic query * Generic query
**/ **/
@@ -475,7 +475,7 @@ declare module '@polkadot/api-base/types/storage' {
* *
* Can be set via `set_minimum_untrusted_score`. * Can be set via `set_minimum_untrusted_score`.
**/ **/
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<Vec<u128>>>, []> & QueryableStorageEntry<ApiType, []>; minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Current best solution, signed or unsigned, queued to be returned upon `elect`. * Current best solution, signed or unsigned, queued to be returned upon `elect`.
**/ **/
@@ -497,7 +497,7 @@ declare module '@polkadot/api-base/types/storage' {
* can be quite large, so we're willing to pay the cost of multiple database accesses to access * can be quite large, so we're willing to pay the cost of multiple database accesses to access
* them one at a time instead of reading and decoding all of them at once. * them one at a time instead of reading and decoding all of them at once.
**/ **/
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<Vec<u128>, u32>>, []> & QueryableStorageEntry<ApiType, []>; signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* The next index to be assigned to an incoming signed submission. * The next index to be assigned to an incoming signed submission.
* *
@@ -867,6 +867,8 @@ declare module '@polkadot/api-base/types/storage' {
heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>; heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/** /**
* All parachains. Ordered ascending by `ParaId`. Parathreads are not included. * All parachains. Ordered ascending by `ParaId`. Parathreads are not included.
*
* Consider using the [`ParachainsCache`] type of modifying.
**/ **/
parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>; parachains: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
@@ -1013,6 +1015,41 @@ declare module '@polkadot/api-base/types/storage' {
**/ **/
[key: string]: QueryableStorageEntry<ApiType>; [key: string]: QueryableStorageEntry<ApiType>;
}; };
parasDisputes: {
/**
* All ongoing or concluded disputes for the last several sessions.
**/
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV1DisputeState>>, [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,
* and its value indicates the last valid block number in the chain.
* It can only be set back to `None` by governance intervention.
**/
frozen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* All included blocks on the chain, as well as the block number in this chain that
* should be reverted back to if the candidate is disputed and determined to be invalid.
**/
included: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<u32>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
/**
* The last pruned session, if any. All data stored by this module
* references sessions.
**/
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maps session indices to a vector indicating the number of potentially-spam disputes
* each validator is participating in. Potentially-spam disputes are remote disputes which have
* fewer than `byzantine_threshold + 1` validators.
*
* The i'th entry of the vector corresponds to the i'th validator in the session.
**/
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
paraSessionInfo: { paraSessionInfo: {
/** /**
* Assignment keys for the current session. * Assignment keys for the current session.
+13 -10
View File
@@ -7,7 +7,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth'; import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppSignature, PolkadotPrimitivesV1InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/submittable' { declare module '@polkadot/api-base/types/submittable' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> { export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -1223,7 +1223,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* This check can be turned off by setting the value to `None`. * This check can be turned off by setting the value to `None`.
**/ **/
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<Vec<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Vec<u128>>]>; setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
/** /**
* Submit a solution for the signed phase. * Submit a solution for the signed phase.
* *
@@ -1234,12 +1234,8 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* A deposit is reserved and recorded for the solution. Based on the outcome, the solution * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
* might be rewarded, slashed, or get all or a part of the deposit back. * might be rewarded, slashed, or get all or a part of the deposit back.
*
* # <weight>
* Queue size must be provided as witness data.
* # </weight>
**/ **/
submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>; submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
/** /**
* Submit a solution for the unsigned phase. * Submit a solution for the unsigned phase.
* *
@@ -1994,6 +1990,13 @@ declare module '@polkadot/api-base/types/submittable' {
**/ **/
[key: string]: SubmittableExtrinsicFunction<ApiType>; [key: string]: SubmittableExtrinsicFunction<ApiType>;
}; };
parasDisputes: {
forceUnfreeze: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
parasShared: { parasShared: {
/** /**
* Generic tx * Generic tx
@@ -2757,7 +2760,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* # <weight> * # <weight>
* - Time complexity: O(L), where L is unlocking chunks * - Time complexity: O(L), where L is unlocking chunks
* - Bounded by `MAX_UNLOCKING_CHUNKS`. * - Bounded by `MaxUnlockingChunks`.
* - Storage changes: Can't increase storage, only decrease it. * - Storage changes: Can't increase storage, only decrease it.
* # </weight> * # </weight>
**/ **/
@@ -2860,7 +2863,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update. * NOTE: Existing nominators and validators will not be affected by this update.
* to kick people under the new limits, `chill_other` should be called. * to kick people under the new limits, `chill_other` should be called.
**/ **/
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>; setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
/** /**
* Sets the ideal number of validators. * Sets the ideal number of validators.
* *
@@ -2882,7 +2885,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
* the funds out of management ready for transfer. * the funds out of management ready for transfer.
* *
* No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
* can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
* to be called first to remove some of the chunks (if possible). * to be called first to remove some of the chunks (if possible).
* *
+20 -1
View File
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types'; import type { Codec } from '@polkadot/types-codec/types';
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime'; import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup'; import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletStateTrieMigrationMigrationLimits, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/consts' { declare module '@polkadot/api-base/types/consts' {
export interface AugmentedConsts<ApiType extends ApiTypes> { export interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -797,6 +797,10 @@ declare module '@polkadot/api-base/types/consts' {
* Number of eras that staked funds must remain bonded for. * Number of eras that staked funds must remain bonded for.
**/ **/
bondingDuration: u32 & AugmentedConst<ApiType>; bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/** /**
* The maximum number of nominators rewarded for each validator. * The maximum number of nominators rewarded for each validator.
* *
@@ -804,6 +808,11 @@ declare module '@polkadot/api-base/types/consts' {
* claim their reward. This used to limit the i/o cost for the nominator payout. * claim their reward. This used to limit the i/o cost for the nominator payout.
**/ **/
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>; maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
* determines how many unique eras a staker may be unbonding in.
**/
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
/** /**
* Number of sessions per era. * Number of sessions per era.
**/ **/
@@ -820,6 +829,16 @@ declare module '@polkadot/api-base/types/consts' {
**/ **/
[key: string]: Codec; [key: string]: Codec;
}; };
stateTrieMigration: {
/**
* The maximum limits that the signed migration could use.
**/
signedMigrationMaxLimits: PalletStateTrieMigrationMigrationLimits & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: { system: {
/** /**
* Maximum number of block number to block hash mappings to keep (oldest pruned first). * Maximum number of block number to block hash mappings to keep (oldest pruned first).
+49 -1
View File
@@ -1438,6 +1438,28 @@ declare module '@polkadot/api-base/types/errors' {
**/ **/
[key: string]: AugmentedError<ApiType>; [key: string]: AugmentedError<ApiType>;
}; };
stateTrieMigration: {
/**
* bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
* max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
* submitter does not have enough funds.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* upper bound of size is exceeded,
**/
SizeUpperBoundExceeded: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
sudo: { sudo: {
/** /**
* Sender must be the Sudo account * Sender must be the Sudo account
@@ -1680,7 +1702,7 @@ declare module '@polkadot/api-base/types/errors' {
/** /**
* The given asset ID is unknown. * The given asset ID is unknown.
**/ **/
Unknown: AugmentedError<ApiType>; UnknownClass: AugmentedError<ApiType>;
/** /**
* The delegate turned out to be different to what was expected. * The delegate turned out to be different to what was expected.
**/ **/
@@ -1731,5 +1753,31 @@ declare module '@polkadot/api-base/types/errors' {
**/ **/
[key: string]: AugmentedError<ApiType>; [key: string]: AugmentedError<ApiType>;
}; };
whitelist: {
/**
* The call was already whitelisted; No-Op.
**/
CallAlreadyWhitelisted: AugmentedError<ApiType>;
/**
* The call was not whitelisted.
**/
CallIsNotWhitelisted: AugmentedError<ApiType>;
/**
* The weight of the decoded call was higher than the witness.
**/
InvalidCallWeightWitness: AugmentedError<ApiType>;
/**
* The preimage of the call hash could not be loaded.
**/
UnavailablePreImage: AugmentedError<ApiType>;
/**
* The call could not be decoded.
**/
UndecodableCall: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
} // AugmentedErrors } // AugmentedErrors
} // declare module } // declare module
+37 -1
View File
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types'; import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup'; import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/events' { declare module '@polkadot/api-base/types/events' {
export interface AugmentedEvents<ApiType extends ApiTypes> { export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -211,6 +211,10 @@ declare module '@polkadot/api-base/types/events' {
* Code with the specified hash has been stored. * Code with the specified hash has been stored.
**/ **/
CodeStored: AugmentedEvent<ApiType, [H256]>; CodeStored: AugmentedEvent<ApiType, [H256]>;
/**
* A contract's code was updated.
**/
ContractCodeUpdated: AugmentedEvent<ApiType, [AccountId32, H256, H256]>;
/** /**
* A custom event emitted by the contract. * A custom event emitted by the contract.
**/ **/
@@ -915,6 +919,29 @@ declare module '@polkadot/api-base/types/events' {
**/ **/
[key: string]: AugmentedEvent<ApiType>; [key: string]: AugmentedEvent<ApiType>;
}; };
stateTrieMigration: {
/**
* The auto migration task finished.
**/
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
/**
* Migration got halted.
**/
Halted: AugmentedEvent<ApiType, []>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
**/
Migrated: AugmentedEvent<ApiType, [u32, u32, PalletStateTrieMigrationMigrationCompute]>;
/**
* Some account got slashed by the given amount.
**/
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
sudo: { sudo: {
/** /**
* The \[sudoer\] just switched identity; the old key is supplied if one existed. * The \[sudoer\] just switched identity; the old key is supplied if one existed.
@@ -1241,5 +1268,14 @@ declare module '@polkadot/api-base/types/events' {
**/ **/
[key: string]: AugmentedEvent<ApiType>; [key: string]: AugmentedEvent<ApiType>;
}; };
whitelist: {
CallWhitelisted: AugmentedEvent<ApiType, [H256]>;
WhitelistedCallDispatched: AugmentedEvent<ApiType, [H256, Result<FrameSupportWeightsPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>]>;
WhitelistedCallRemoved: AugmentedEvent<ApiType, [H256]>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
} // AugmentedEvents } // AugmentedEvents
} // declare module } // declare module
+29 -3
View File
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec'; import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup'; import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types'; import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' { declare module '@polkadot/api-base/types/storage' {
@@ -465,7 +465,7 @@ declare module '@polkadot/api-base/types/storage' {
* *
* Can be set via `set_minimum_untrusted_score`. * Can be set via `set_minimum_untrusted_score`.
**/ **/
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<Vec<u128>>>, []> & QueryableStorageEntry<ApiType, []>; minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* Current best solution, signed or unsigned, queued to be returned upon `elect`. * Current best solution, signed or unsigned, queued to be returned upon `elect`.
**/ **/
@@ -487,7 +487,7 @@ declare module '@polkadot/api-base/types/storage' {
* can be quite large, so we're willing to pay the cost of multiple database accesses to access * can be quite large, so we're willing to pay the cost of multiple database accesses to access
* them one at a time instead of reading and decoding all of them at once. * them one at a time instead of reading and decoding all of them at once.
**/ **/
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<Vec<u128>, u32>>, []> & QueryableStorageEntry<ApiType, []>; signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
/** /**
* The next index to be assigned to an incoming signed submission. * The next index to be assigned to an incoming signed submission.
* *
@@ -1249,6 +1249,25 @@ declare module '@polkadot/api-base/types/storage' {
**/ **/
[key: string]: QueryableStorageEntry<ApiType>; [key: string]: QueryableStorageEntry<ApiType>;
}; };
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
*
* If set to None, then no automatic migration happens.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
sudo: { sudo: {
/** /**
* The `AccountId` of the sudo key. * The `AccountId` of the sudo key.
@@ -1535,5 +1554,12 @@ declare module '@polkadot/api-base/types/storage' {
**/ **/
[key: string]: QueryableStorageEntry<ApiType>; [key: string]: QueryableStorageEntry<ApiType>;
}; };
whitelist: {
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
} // AugmentedQueries } // AugmentedQueries
} // declare module } // declare module
+68 -10
View File
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime'; import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup'; import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/submittable' { declare module '@polkadot/api-base/types/submittable' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> { export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -1626,7 +1626,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* This check can be turned off by setting the value to `None`. * This check can be turned off by setting the value to `None`.
**/ **/
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<Vec<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Vec<u128>>]>; setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
/** /**
* Submit a solution for the signed phase. * Submit a solution for the signed phase.
* *
@@ -1637,12 +1637,8 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* A deposit is reserved and recorded for the solution. Based on the outcome, the solution * A deposit is reserved and recorded for the solution. Based on the outcome, the solution
* might be rewarded, slashed, or get all or a part of the deposit back. * might be rewarded, slashed, or get all or a part of the deposit back.
*
* # <weight>
* Queue size must be provided as witness data.
* # </weight>
**/ **/
submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array, numSignedSubmissions: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution, u32]>; submit: AugmentedSubmittable<(rawSolution: PalletElectionProviderMultiPhaseRawSolution | { solution?: any; score?: any; round?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletElectionProviderMultiPhaseRawSolution]>;
/** /**
* Submit a solution for the unsigned phase. * Submit a solution for the unsigned phase.
* *
@@ -3600,7 +3596,7 @@ declare module '@polkadot/api-base/types/submittable' {
* *
* # <weight> * # <weight>
* - Time complexity: O(L), where L is unlocking chunks * - Time complexity: O(L), where L is unlocking chunks
* - Bounded by `MAX_UNLOCKING_CHUNKS`. * - Bounded by `MaxUnlockingChunks`.
* - Storage changes: Can't increase storage, only decrease it. * - Storage changes: Can't increase storage, only decrease it.
* # </weight> * # </weight>
**/ **/
@@ -3703,7 +3699,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update. * NOTE: Existing nominators and validators will not be affected by this update.
* to kick people under the new limits, `chill_other` should be called. * to kick people under the new limits, `chill_other` should be called.
**/ **/
setStakingConfigs: AugmentedSubmittable<(minNominatorBond: u128 | AnyNumber | Uint8Array, minValidatorBond: u128 | AnyNumber | Uint8Array, maxNominatorCount: Option<u32> | null | object | string | Uint8Array, maxValidatorCount: Option<u32> | null | object | string | Uint8Array, chillThreshold: Option<Percent> | null | object | string | Uint8Array, minCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u128, Option<u32>, Option<u32>, Option<Percent>, Perbill]>; setStakingConfigs: AugmentedSubmittable<(minNominatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minValidatorBond: PalletStakingPalletConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxNominatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxValidatorCount: PalletStakingPalletConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, chillThreshold: PalletStakingPalletConfigOpPercent | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCommission: PalletStakingPalletConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpU32, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpPerbill]>;
/** /**
* Sets the ideal number of validators. * Sets the ideal number of validators.
* *
@@ -3725,7 +3721,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
* the funds out of management ready for transfer. * the funds out of management ready for transfer.
* *
* No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) * No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
* can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
* to be called first to remove some of the chunks (if possible). * to be called first to remove some of the chunks (if possible).
* *
@@ -3768,6 +3764,58 @@ declare module '@polkadot/api-base/types/submittable' {
**/ **/
[key: string]: SubmittableExtrinsicFunction<ApiType>; [key: string]: SubmittableExtrinsicFunction<ApiType>;
}; };
stateTrieMigration: {
/**
* Continue the migration for the given `limits`.
*
* The dispatch origin of this call can be any signed account.
*
* This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
* Upon successful execution, the transaction fee is returned.
*
* The (potentially over-estimated) of the byte length of all the data read must be
* provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
* that executing the current `MigrationTask` with the given `limits` will not exceed
* `real_size_upper` bytes of read data.
*
* The `witness_task` is merely a helper to prevent the caller from being slashed or
* generally trigger a migration that they do not intend. This parameter is just a message
* from caller, saying that they believed `witness_task` was the last state of the
* migration, and they only wish for their transaction to do anything, if this assumption
* holds. In case `witness_task` does not match, the transaction fails.
*
* Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
* recommended way of doing this is to pass a `limit` that only bounds `count`, as the
* `size` limit can always be overwritten.
**/
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { lastTop?: any; lastChild?: any; prevTickChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
/**
* Control the automatic migration.
*
* The dispatch origin of this call must be [`Config::ControlOrigin`].
**/
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
/**
* Migrate the list of child keys by iterating each of them one by one.
*
* All of the given child keys must be present under one `child_root`.
*
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
* should only be used in case any keys are leftover due to a bug.
**/
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
/**
* Migrate the list of top keys by iterating each of them one by one.
*
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
* should only be used in case any keys are leftover due to a bug.
**/
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
sudo: { sudo: {
/** /**
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
@@ -4890,5 +4938,15 @@ declare module '@polkadot/api-base/types/submittable' {
**/ **/
[key: string]: SubmittableExtrinsicFunction<ApiType>; [key: string]: SubmittableExtrinsicFunction<ApiType>;
}; };
whitelist: {
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
} // AugmentedSubmittables } // AugmentedSubmittables
} // declare module } // declare module
+3 -1
View File
@@ -6,6 +6,7 @@
"rootDir": "./src" "rootDir": "./src"
}, },
"exclude": [ "exclude": [
"**/*.spec.ts",
"**/kusama/*.ts", "**/kusama/*.ts",
"**/polkadot/*.ts" "**/polkadot/*.ts"
], ],
@@ -14,6 +15,7 @@
{ "path": "../rpc-augment/tsconfig.build.json" }, { "path": "../rpc-augment/tsconfig.build.json" },
{ "path": "../types/tsconfig.build.json" }, { "path": "../types/tsconfig.build.json" },
{ "path": "../types-codec/tsconfig.build.json" }, { "path": "../types-codec/tsconfig.build.json" },
{ "path": "../types-augment/tsconfig.build.json" } { "path": "../types-augment/tsconfig.build.json" },
{ "path": "../types-support/tsconfig.build.json" }
] ]
} }
@@ -9,6 +9,9 @@
"**/base.ts", "**/base.ts",
"**/kusama/*.ts" "**/kusama/*.ts"
], ],
"exclude": [
"**/kusama/*.spec.ts"
],
"references": [ "references": [
{ "path": "../api-base/tsconfig.build.json" }, { "path": "../api-base/tsconfig.build.json" },
{ "path": "../rpc-augment/tsconfig.build.json" }, { "path": "../rpc-augment/tsconfig.build.json" },
@@ -0,0 +1,22 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"emitDeclarationOnly": false,
"noEmit": true
},
"include": [
"**/kusama/*.spec.ts"
],
"references": [
{ "path": "../api-augment/tsconfig.build.json" },
{ "path": "../api-augment/tsconfig.kusama.json" },
{ "path": "../api-base/tsconfig.build.json" },
{ "path": "../rpc-augment/tsconfig.build.json" },
{ "path": "../types/tsconfig.build.json" },
{ "path": "../types-augment/tsconfig.build.json" },
{ "path": "../types-support/tsconfig.build.json" }
]
}
@@ -9,6 +9,9 @@
"**/base.ts", "**/base.ts",
"**/polkadot/*.ts" "**/polkadot/*.ts"
], ],
"exclude": [
"**/polkadot/*.spec.ts"
],
"references": [ "references": [
{ "path": "../api-base/tsconfig.build.json" }, { "path": "../api-base/tsconfig.build.json" },
{ "path": "../rpc-augment/tsconfig.build.json" }, { "path": "../rpc-augment/tsconfig.build.json" },
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/rpc-core": "7.8.1", "@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.11.1' };
+6 -6
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/api": "7.8.1", "@polkadot/api": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.8.1", "@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1", "@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/keyring": "^8.4.1" "@polkadot/keyring": "^8.4.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.11.1' };
+12 -12
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/api": "7.8.1", "@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/api-base": "7.8.1", "@polkadot/api-base": "7.11.1",
"@polkadot/rpc-core": "7.8.1", "@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1", "@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api": "7.8.1", "@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/rpc-augment": "7.8.1", "@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.8.1", "@polkadot/rpc-provider": "7.11.1",
"@polkadot/types-support": "7.8.1" "@polkadot/types-support": "7.11.1"
} }
} }
+53 -26
View File
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
import type { QueryableStorageMultiArg } from '@polkadot/api-base/types'; import type { QueryableStorageMultiArg } from '@polkadot/api-base/types';
import type { Option, Vec } from '@polkadot/types'; import type { Option, Vec } from '@polkadot/types';
import type { AccountId, AccountIndex, Address, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces'; import type { AccountId, AccountIndex, Address, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
import type { PalletBalancesBalanceLock, PalletVestingVestingInfo } from '@polkadot/types/lookup'; import type { PalletBalancesBalanceLock, PalletBalancesReserveData, PalletVestingVestingInfo } from '@polkadot/types/lookup';
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types'; import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData, DeriveBalancesAllVesting } from '../types';
import { combineLatest, map, of, switchMap } from 'rxjs'; import { combineLatest, map, of, switchMap } from 'rxjs';
@@ -14,9 +14,7 @@ import { BN, BN_ZERO, bnMax, bnMin, isFunction } from '@polkadot/util';
import { memo } from '../util'; import { memo } from '../util';
type BalanceLocksEntry = Vec<PalletBalancesBalanceLock | BalanceLockTo212>; type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
type BalanceLocks = BalanceLocksEntry[];
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[]];
type Result = [DeriveBalancesAccount, BlockNumber, ResultBalance]; type Result = [DeriveBalancesAccount, BlockNumber, ResultBalance];
interface AllLocked { interface AllLocked {
@@ -86,7 +84,9 @@ function calcVesting (bestNumber: BlockNumber, shared: DeriveBalancesAllAccountD
return { return {
isVesting, isVesting,
vestedBalance, vestedBalance,
vestedClaimable: isVesting ? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance)) : BN_ZERO, vestedClaimable: isVesting
? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance))
: BN_ZERO,
vesting: vesting vesting: vesting
.map(({ locked, perBlock, startingBlock }, index) => ({ .map(({ locked, perBlock, startingBlock }, index) => ({
endBlock: locked.div(perBlock).iadd(startingBlock), endBlock: locked.div(perBlock).iadd(startingBlock),
@@ -100,7 +100,7 @@ function calcVesting (bestNumber: BlockNumber, shared: DeriveBalancesAllAccountD
}; };
} }
function calcBalances (api: DeriveApi, [data, bestNumber, [vesting, allLocks]]: Result): DeriveBalancesAll { function calcBalances (api: DeriveApi, [data, bestNumber, [vesting, allLocks, namedReserves]]: Result): DeriveBalancesAll {
const shared = calcShared(api, bestNumber, data, allLocks[0]); const shared = calcShared(api, bestNumber, data, allLocks[0]);
return { return {
@@ -110,7 +110,8 @@ function calcBalances (api: DeriveApi, [data, bestNumber, [vesting, allLocks]]:
accountNonce: data.accountNonce, accountNonce: data.accountNonce,
additional: allLocks additional: allLocks
.filter((_, index) => index !== 0) .filter((_, index) => index !== 0)
.map((l, index) => calcShared(api, bestNumber, data.additional[index], l)) .map((l, index) => calcShared(api, bestNumber, data.additional[index], l)),
namedReserves
}; };
} }
@@ -133,7 +134,8 @@ function queryOld (api: DeriveApi, accountId: AccountId): Observable<ResultBalan
vestingNew vestingNew
? [vestingNew] ? [vestingNew]
: null, : null,
[locks] [locks],
[]
]; ];
}) })
); );
@@ -141,33 +143,58 @@ function queryOld (api: DeriveApi, accountId: AccountId): Observable<ResultBalan
const isNonNullable = <T>(nullable: T): nullable is NonNullable<T> => !!nullable; const isNonNullable = <T>(nullable: T): nullable is NonNullable<T> => !!nullable;
function createCalls (accountId: AccountId, calls: unknown[]): [boolean[], QueryableStorageMultiArg<'rxjs'>[]] {
return [
calls.map((c) => !c),
calls
.filter(isNonNullable)
.map((c) => [c, accountId] as unknown as QueryableStorageMultiArg<'rxjs'>)
];
}
// current (balances, vesting) // current (balances, vesting)
function queryCurrent (api: DeriveApi, accountId: AccountId, balanceInstances: string[] = ['balances']): Observable<ResultBalance> { function queryCurrent (api: DeriveApi, accountId: AccountId, balanceInstances: string[] = ['balances']): Observable<ResultBalance> {
const calls = balanceInstances.map((m): DeriveApi['query']['balances']['locks'] | undefined => const [lockEmpty, lockQueries] = createCalls(
(api.derive as DeriveCustomLocks)[m]?.customLocks || api.query[m as 'balances']?.locks accountId,
balanceInstances.map((m): DeriveApi['query']['balances']['locks'] | undefined =>
(api.derive as DeriveCustomLocks)[m]?.customLocks || api.query[m as 'balances']?.locks
)
);
const [reserveEmpty, reserveQueries] = createCalls(
accountId,
balanceInstances.map((m): DeriveApi['query']['balances']['reserves'] | undefined =>
api.query[m as 'balances']?.reserves
)
); );
const lockEmpty = calls.map((c) => !c);
const queries = calls.filter(isNonNullable).map((c): QueryableStorageMultiArg<'rxjs'> => [c, accountId]);
return ( return combineLatest([
api.query.vesting?.vesting api.query.vesting?.vesting
? api.queryMulti<[Option<PalletVestingVestingInfo> | Option<Vec<PalletVestingVestingInfo>>, ...BalanceLocks]>([[api.query.vesting.vesting, accountId], ...queries]) ? api.query.vesting.vesting(accountId)
// TODO We need to check module instances here as well, not only the balances module : of(api.registry.createType('Option<VestingInfo>')),
: queries.length lockQueries.length
? api.queryMulti<[...(Vec<PalletBalancesBalanceLock>)[]]>(queries).pipe( ? api.queryMulti<[...(Vec<PalletBalancesBalanceLock>)[]]>(lockQueries)
map((r): [Option<PalletVestingVestingInfo>, ...BalanceLocks] => [api.registry.createType('Option<VestingInfo>'), ...r]) : of([] as Vec<PalletBalancesBalanceLock>[]),
) reserveQueries.length
: of([api.registry.createType('Option<VestingInfo>')] as [Option<PalletVestingVestingInfo>]) ? api.queryMulti<[...(Vec<PalletBalancesReserveData>)[]]>(reserveQueries)
).pipe( : of([] as Vec<PalletBalancesReserveData>[])
map(([opt, ...locks]): ResultBalance => { ]).pipe(
let offset = -1; map(([opt, locks, reserves]): ResultBalance => {
let offsetLock = -1;
let offsetReserve = -1;
const vesting = opt.unwrapOr(null); const vesting = opt.unwrapOr(null);
return [ return [
vesting vesting
? Array.isArray(vesting) ? vesting : [vesting] ? Array.isArray(vesting)
? vesting
: [vesting as PalletVestingVestingInfo]
: null, : null,
lockEmpty.map((e) => e ? api.registry.createType<Vec<PalletBalancesBalanceLock>>('Vec<BalanceLock>') : locks[++offset]) lockEmpty.map((e) =>
e ? api.registry.createType<Vec<PalletBalancesBalanceLock>>('Vec<BalanceLock>') : locks[++offsetLock]
),
reserveEmpty.map((e) =>
e ? api.registry.createType<Vec<PalletBalancesReserveData>>('Vec<PalletBalancesReserveData>') : reserves[++offsetReserve]
)
]; ];
}) })
); );
@@ -202,7 +229,7 @@ export function all (instanceId: string, api: DeriveApi): (address: AccountIndex
? queryCurrent(api, account.accountId, balanceInstances) ? queryCurrent(api, account.accountId, balanceInstances)
: queryOld(api, account.accountId) : queryOld(api, account.accountId)
]) ])
: of([account, api.registry.createType('BlockNumber'), [null, []]]) : of([account, api.registry.createType('BlockNumber'), [null, [], []]])
) )
), ),
map((result): DeriveBalancesAll => calcBalances(api, result)) map((result): DeriveBalancesAll => calcBalances(api, result))
+2 -1
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { AccountId, Balance, BalanceLockTo212, Index } from '@polkadot/types/interfaces'; import type { AccountId, Balance, BalanceLockTo212, Index } from '@polkadot/types/interfaces';
import type { PalletBalancesBalanceLock } from '@polkadot/types/lookup'; import type { PalletBalancesBalanceLock, PalletBalancesReserveData } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util'; import type { BN } from '@polkadot/util';
export interface DeriveBalancesAccountData { export interface DeriveBalancesAccountData {
@@ -44,6 +44,7 @@ export interface DeriveBalancesAllVesting {
export interface DeriveBalancesAll extends DeriveBalancesAccount, DeriveBalancesAllAccountData, DeriveBalancesAllVesting { export interface DeriveBalancesAll extends DeriveBalancesAccount, DeriveBalancesAllAccountData, DeriveBalancesAllVesting {
additional: DeriveBalancesAllAccountData[]; additional: DeriveBalancesAllAccountData[];
namedReserves: PalletBalancesReserveData[][];
} }
export type DeriveBalancesMap = Record<string, DeriveBalancesAll>; export type DeriveBalancesMap = Record<string, DeriveBalancesAll>;
@@ -0,0 +1,19 @@
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { AnyNumber } from '@polkadot/types/types';
import type { SignedBlockExtended } from '../type/types';
import type { DeriveApi } from '../types';
import { switchMap } from 'rxjs';
import { memo } from '../util';
export function getBlockByNumber (instanceId: string, api: DeriveApi): (blockNumber: AnyNumber) => Observable<SignedBlockExtended | undefined> {
return memo(instanceId, (blockNumber: AnyNumber): Observable<SignedBlockExtended | undefined> =>
api.rpc.chain.getBlockHash(blockNumber).pipe(
switchMap((h) => api.derive.chain.getBlock(h))
)
);
}
+1
View File
@@ -6,5 +6,6 @@ export * from './bestNumberFinalized';
export * from './bestNumberLag'; export * from './bestNumberLag';
export * from './getHeader'; export * from './getHeader';
export * from './getBlock'; export * from './getBlock';
export * from './getBlockByNumber';
export * from './subscribeNewBlocks'; export * from './subscribeNewBlocks';
export * from './subscribeNewHeads'; export * from './subscribeNewHeads';
+11 -3
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs'; import type { Observable } from 'rxjs';
import type { Option } from '@polkadot/types'; import type { Option, u32 } from '@polkadot/types';
import type { PolkadotRuntimeCommonCrowdloanFundInfo } from '@polkadot/types/lookup'; import type { PolkadotRuntimeCommonCrowdloanFundInfo } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util'; import type { BN } from '@polkadot/util';
import type { DeriveApi } from '../types'; import type { DeriveApi } from '../types';
@@ -14,12 +14,20 @@ import { blake2AsU8a } from '@polkadot/util-crypto';
import { memo } from '../util'; import { memo } from '../util';
function createChildKey ({ trieIndex }: PolkadotRuntimeCommonCrowdloanFundInfo): string { interface AllInfo extends PolkadotRuntimeCommonCrowdloanFundInfo {
// previously it was named trieIndex
trieIndex?: u32;
}
function createChildKey (info: AllInfo): string {
return u8aToHex( return u8aToHex(
u8aConcat( u8aConcat(
':child_storage:default:', ':child_storage:default:',
blake2AsU8a( blake2AsU8a(
u8aConcat('crowdloan', trieIndex.toU8a()) u8aConcat(
'crowdloan',
(info.fundIndex || info.trieIndex).toU8a()
)
) )
) )
); );
+4 -1
View File
@@ -33,4 +33,7 @@ type DeriveAllSections<AllSections> = {
[S in keyof AllSections]: DeriveSection<AllSections[S]> [S in keyof AllSections]: DeriveSection<AllSections[S]>
}; };
export type ExactDerive = DeriveAllSections<typeof derive>; // eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface ExactDerive extends DeriveAllSections<typeof derive> {
// keep empty, allows for augmentation
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.11.1' };
@@ -5,7 +5,7 @@ import type { Observable } from 'rxjs';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces'; import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingStakingLedger } from '@polkadot/types/lookup'; import type { PalletStakingStakingLedger } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util'; import type { BN } from '@polkadot/util';
import type { DeriveApi, DeriveEraPoints, DeriveEraPrefs, DeriveEraRewards, DeriveEraValPrefs, DeriveStakerExposure, DeriveStakerReward, DeriveStakerRewardValidator } from '../types'; import type { DeriveApi, DeriveEraPoints, DeriveEraPrefs, DeriveEraRewards, DeriveEraValPoints, DeriveEraValPrefs, DeriveStakerExposure, DeriveStakerReward, DeriveStakerRewardValidator } from '../types';
import type { DeriveStakingQuery } from './types'; import type { DeriveStakingQuery } from './types';
import { combineLatest, map, of, switchMap } from 'rxjs'; import { combineLatest, map, of, switchMap } from 'rxjs';
@@ -18,7 +18,7 @@ type ErasResult = [DeriveEraPoints[], DeriveEraPrefs[], DeriveEraRewards[]];
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] { function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => { return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => {
const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} }; const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} as DeriveEraValPoints };
const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') }; const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') };
const { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} as DeriveEraValPrefs }; const { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} as DeriveEraValPrefs };
const validators: Record<string, DeriveStakerRewardValidator> = {}; const validators: Record<string, DeriveStakerRewardValidator> = {};
+36 -5
View File
@@ -7,12 +7,40 @@ import type { EraIndex } from '@polkadot/types/interfaces';
import type { ExactDerive } from '../derive'; import type { ExactDerive } from '../derive';
import type { DeriveApi } from '../types'; import type { DeriveApi } from '../types';
import { combineLatest, of, switchMap } from 'rxjs'; import { BehaviorSubject, combineLatest, map, of, switchMap, tap, toArray } from 'rxjs';
import { arrayChunk, arrayFlatten } from '@polkadot/util';
import { memo } from '../util'; import { memo } from '../util';
type ApplyReturn<T extends keyof ExactDerive['staking']> = ReturnType<ExactDerive['staking'][T]>; type ApplyReturn<T extends keyof ExactDerive['staking']> = ReturnType<ExactDerive['staking'][T]>;
// only retrieve a maximum of 14 eras (84 / 6) at a time
// (This is not empirically calculated. Rather smaller sizes take longer
// time due to the serial nature, large sizes may tie up the RPCs)
const ERA_CHUNK_SIZE = 14;
function chunkEras <T> (eras: EraIndex[], fn: (eras: EraIndex[]) => Observable<T[]>): Observable<T[]> {
const chunked = arrayChunk(eras, ERA_CHUNK_SIZE);
let index = 0;
const startSubject = new BehaviorSubject<EraIndex[]>(chunked[index]);
return startSubject.pipe(
switchMap(fn),
tap((): void => {
setTimeout((): void => {
index++;
index === chunked.length
? startSubject.complete()
: startSubject.next(chunked[index]);
}, 0);
}),
toArray(),
map(arrayFlatten)
);
}
export function filterEras <T extends { era: EraIndex }> (eras: EraIndex[], list: T[]): EraIndex[] { export function filterEras <T extends { era: EraIndex }> (eras: EraIndex[], list: T[]): EraIndex[] {
return eras.filter((e) => !list.some(({ era }) => e.eq(era))); return eras.filter((e) => !list.some(({ era }) => e.eq(era)));
} }
@@ -53,9 +81,12 @@ export function combineEras <F extends '_eraExposure' | '_eraPrefs' | '_eraSlash
// Cannot quite get the typing right, but it is right in the code // Cannot quite get the typing right, but it is right in the code
// eslint-disable-next-line @typescript-eslint/no-unsafe-return // eslint-disable-next-line @typescript-eslint/no-unsafe-return
memo(instanceId, (eras: EraIndex[], withActive: boolean) => memo(instanceId, (eras: EraIndex[], withActive: boolean) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return !eras.length
eras.length ? of([])
? combineLatest(eras.map((e) => api.derive.staking[fn](e, withActive))) : chunkEras(eras, (eras) =>
: of([]) combineLatest(
eras.map((e) => api.derive.staking[fn](e, withActive))
)
)
) as any; ) as any;
} }
+14 -14
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/api-base": "7.8.1", "@polkadot/api-base": "7.11.1",
"@polkadot/api-derive": "7.8.1", "@polkadot/api-derive": "7.11.1",
"@polkadot/keyring": "^8.4.1", "@polkadot/keyring": "^8.4.1",
"@polkadot/rpc-augment": "7.8.1", "@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-core": "7.8.1", "@polkadot/rpc-core": "7.11.1",
"@polkadot/rpc-provider": "7.8.1", "@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.8.1", "@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.8.1", "@polkadot/types-create": "7.11.1",
"@polkadot/types-known": "7.8.1", "@polkadot/types-known": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1", "@polkadot/util-crypto": "^8.4.1",
"eventemitter3": "^4.0.7", "eventemitter3": "^4.0.7",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/types-support": "7.8.1" "@polkadot/types-support": "7.11.1"
} }
} }
+2
View File
@@ -64,6 +64,8 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
this._rpcCore.setRegistrySwap((blockHash: Uint8Array) => this.getBlockRegistry(blockHash)); this._rpcCore.setRegistrySwap((blockHash: Uint8Array) => this.getBlockRegistry(blockHash));
this._rpcCore.setResolveBlockHash((blockNumber) => firstValueFrom(this._rpcCore.chain.getBlockHash(blockNumber)));
if (this.hasSubscriptions) { if (this.hasSubscriptions) {
this._rpcCore.provider.on('disconnected', () => this.#onProviderDisconnect()); this._rpcCore.provider.on('disconnected', () => this.#onProviderDisconnect());
this._rpcCore.provider.on('error', (e: Error) => this.#onProviderError(e)); this._rpcCore.provider.on('error', (e: Error) => this.#onProviderError(e));
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.11.1' };
+16 -9
View File
@@ -14,7 +14,15 @@ interface Tracker<T> {
resolve: (value: T) => void; resolve: (value: T) => void;
} }
// a Promise completion tracker, wrapping an isComplete variable that ensures the promise only resolves once type CodecReturnType<T extends (...args: unknown[]) => Observable<Codec>> =
T extends (...args: any) => infer R
? R extends Observable<Codec>
? ObsInnerType<R>
: never
: never;
// a Promise completion tracker, wrapping an isComplete variable that ensures
// that the promise only resolves once
export function promiseTracker<T> (resolve: (value: T) => void, reject: (value: Error) => void): Tracker<T> { export function promiseTracker<T> (resolve: (value: T) => void, reject: (value: Error) => void): Tracker<T> {
let isCompleted = false; let isCompleted = false;
@@ -40,14 +48,13 @@ export function promiseTracker<T> (resolve: (value: T) => void, reject: (value:
// extract the arguments and callback params from a value array possibly containing a callback // extract the arguments and callback params from a value array possibly containing a callback
function extractArgs (args: unknown[], needsCallback: boolean): [unknown[], Callback<Codec> | undefined] { function extractArgs (args: unknown[], needsCallback: boolean): [unknown[], Callback<Codec> | undefined] {
let callback: Callback<Codec> | undefined;
const actualArgs = args.slice(); const actualArgs = args.slice();
// If the last arg is a function, we pop it, put it into callback. // If the last arg is a function, we pop it, put it into callback.
// actualArgs will then hold the actual arguments to be passed to `method` // actualArgs will then hold the actual arguments to be passed to `method`
if (args.length && isFunction(args[args.length - 1])) { const callback = (args.length && isFunction(args[args.length - 1]))
callback = actualArgs.pop() as Callback<Codec>; ? actualArgs.pop() as Callback<Codec>
} : undefined;
// When we need a subscription, ensure that a valid callback is actually passed // When we need a subscription, ensure that a valid callback is actually passed
assert(!needsCallback || isFunction(callback), 'Expected a callback to be passed with subscriptions'); assert(!needsCallback || isFunction(callback), 'Expected a callback to be passed with subscriptions');
@@ -56,7 +63,7 @@ function extractArgs (args: unknown[], needsCallback: boolean): [unknown[], Call
} }
// Decorate a call for a single-shot result - retrieve and then immediate unsubscribe // Decorate a call for a single-shot result - retrieve and then immediate unsubscribe
function decorateCall<M extends DecorateFn<ObsInnerType<ReturnType<M>>>> (method: M, args: unknown[]): Promise<ObsInnerType<ReturnType<M>>> { function decorateCall<M extends DecorateFn<CodecReturnType<M>>> (method: M, args: unknown[]): Promise<CodecReturnType<M>> {
return new Promise((resolve, reject): void => { return new Promise((resolve, reject): void => {
// single result tracker - either reject with Error or resolve with Codec result // single result tracker - either reject with Error or resolve with Codec result
const tracker = promiseTracker(resolve, reject); const tracker = promiseTracker(resolve, reject);
@@ -74,7 +81,7 @@ function decorateCall<M extends DecorateFn<ObsInnerType<ReturnType<M>>>> (method
} }
// Decorate a subscription where we have a result callback specified // Decorate a subscription where we have a result callback specified
function decorateSubscribe<M extends DecorateFn<ObsInnerType<ReturnType<M>>>> (method: M, args: unknown[], resultCb: Callback<Codec>): UnsubscribePromise { function decorateSubscribe<M extends DecorateFn<CodecReturnType<M>>> (method: M, args: unknown[], resultCb: Callback<Codec>): UnsubscribePromise {
return new Promise<VoidFn>((resolve, reject): void => { return new Promise<VoidFn>((resolve, reject): void => {
// either reject with error or resolve with unsubscribe callback // either reject with error or resolve with unsubscribe callback
const tracker = promiseTracker(resolve, reject); const tracker = promiseTracker(resolve, reject);
@@ -95,10 +102,10 @@ function decorateSubscribe<M extends DecorateFn<ObsInnerType<ReturnType<M>>>> (m
/** /**
* @description Decorate method for ApiPromise, where the results are converted to the Promise equivalent * @description Decorate method for ApiPromise, where the results are converted to the Promise equivalent
*/ */
export function toPromiseMethod<M extends DecorateFn<ObsInnerType<ReturnType<M>>>> (method: M, options?: DecorateMethodOptions): StorageEntryPromiseOverloads { export function toPromiseMethod<M extends DecorateFn<CodecReturnType<M>>> (method: M, options?: DecorateMethodOptions): StorageEntryPromiseOverloads {
const needsCallback = !!(options && options.methodName && options.methodName.includes('subscribe')); const needsCallback = !!(options && options.methodName && options.methodName.includes('subscribe'));
return function (...args: unknown[]): Promise<ObsInnerType<ReturnType<M>>> | UnsubscribePromise { return function (...args: unknown[]): Promise<CodecReturnType<M>> | UnsubscribePromise {
const [actualArgs, resultCb] = extractArgs(args, needsCallback); const [actualArgs, resultCb] = extractArgs(args, needsCallback);
return resultCb return resultCb
+30 -19
View File
@@ -3,7 +3,7 @@
/* eslint-disable no-dupe-class-members */ /* eslint-disable no-dupe-class-members */
import type { Observable, OperatorFunction } from 'rxjs'; import type { Observable } from 'rxjs';
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces'; import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
import type { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, SignatureOptions } from '@polkadot/types/types'; import type { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
import type { Registry } from '@polkadot/types-codec/types'; import type { Registry } from '@polkadot/types-codec/types';
@@ -24,6 +24,11 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
decorateMethod: ApiBase<ApiType>['_decorateMethod']; decorateMethod: ApiBase<ApiType>['_decorateMethod'];
} }
interface UpdateInfo {
options: SignatureOptions;
updateId: number;
}
const identity = <T> (input: T): T => input; const identity = <T> (input: T): T => input;
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions { function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
@@ -174,7 +179,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
return decorateMethod( return decorateMethod(
(): Observable<this> => (): Observable<this> =>
this.#observeSign(account, partialOptions).pipe( this.#observeSign(account, partialOptions).pipe(
mapTo<number | undefined, this>(this) mapTo(this)
) )
)(); )();
} }
@@ -197,10 +202,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
return decorateMethod( return decorateMethod(
(): Observable<Codec> => ( (): Observable<Codec> => (
this.#observeSign(account, options).pipe( this.#observeSign(account, options).pipe(
switchMap((updateId: number | undefined): Observable<ISubmittableResult> | Observable<Hash> => switchMap((info): Observable<ISubmittableResult> | Observable<Hash> =>
isSubscription isSubscription
? this.#observeSubscribe(updateId) ? this.#observeSubscribe(info)
: this.#observeSend(updateId) : this.#observeSend(info)
) )
) as Observable<Codec>) // FIXME This is wrong, SubmittableResult is _not_ a codec ) as Observable<Codec>) // FIXME This is wrong, SubmittableResult is _not_ a codec
)(statusCb); )(statusCb);
@@ -213,23 +218,24 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
return this; return this;
} }
#observeSign = (account: AddressOrPair, partialOptions?: Partial<SignerOptions>): Observable<number | undefined> => { #observeSign = (account: AddressOrPair, partialOptions?: Partial<SignerOptions>): Observable<UpdateInfo> => {
const address = isKeyringPair(account) ? account.address : account.toString(); const address = isKeyringPair(account) ? account.address : account.toString();
const options = optionsOrNonce(partialOptions); const options = optionsOrNonce(partialOptions);
let updateId: number | undefined;
return api.derive.tx.signingInfo(address, options.nonce, options.era).pipe( return api.derive.tx.signingInfo(address, options.nonce, options.era).pipe(
first(), first(),
mergeMap(async (signingInfo): Promise<void> => { mergeMap(async (signingInfo): Promise<UpdateInfo> => {
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo); const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
let updateId = -1;
if (isKeyringPair(account)) { if (isKeyringPair(account)) {
this.sign(account, eraOptions); this.sign(account, eraOptions);
} else { } else {
updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header); updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header);
} }
}),
mapTo(updateId) as OperatorFunction<void, number | undefined> return { options: eraOptions, updateId };
})
); );
}; };
@@ -263,15 +269,15 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
); );
}; };
#observeSend = (updateId = -1): Observable<Hash> => { #observeSend = (info: UpdateInfo): Observable<Hash> => {
return api.rpc.author.submitExtrinsic(this).pipe( return api.rpc.author.submitExtrinsic(this).pipe(
tap((hash): void => { tap((hash): void => {
this.#updateSigner(updateId, hash); this.#updateSigner(hash, info);
}) })
); );
}; };
#observeSubscribe = (updateId = -1): Observable<ISubmittableResult> => { #observeSubscribe = (info: UpdateInfo): Observable<ISubmittableResult> => {
const txHash = this.hash; const txHash = this.hash;
return api.rpc.author.submitAndWatchExtrinsic(this).pipe( return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
@@ -279,7 +285,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
this.#observeStatus(txHash, status) this.#observeStatus(txHash, status)
), ),
tap((status): void => { tap((status): void => {
this.#updateSigner(updateId, status); this.#updateSigner(status, info);
}) })
); );
}; };
@@ -296,9 +302,9 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
})]); })]);
let result: SignerResult; let result: SignerResult;
if (signer.signPayload) { if (isFunction(signer.signPayload)) {
result = await signer.signPayload(payload.toPayload()); result = await signer.signPayload(payload.toPayload());
} else if (signer.signRaw) { } else if (isFunction(signer.signRaw)) {
result = await signer.signRaw(payload.toRaw()); result = await signer.signRaw(payload.toRaw());
} else { } else {
throw new Error('Invalid signer interface, it should implement either signPayload or signRaw (or both)'); throw new Error('Invalid signer interface, it should implement either signPayload or signRaw (or both)');
@@ -312,9 +318,14 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
return result.id; return result.id;
}; };
#updateSigner = (updateId: number, status: Hash | ISubmittableResult): void => { #updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
if ((updateId !== -1) && api.signer && api.signer.update) { if (info && (info.updateId !== -1)) {
api.signer.update(updateId, status); const { options, updateId } = info;
const signer = options.signer || api.signer;
if (signer && isFunction(signer.update)) {
signer.update(updateId, status);
}
} }
}; };
} }
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/rpc-core": "7.8.1", "@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
} }
} }
+2 -2
View File
@@ -333,9 +333,9 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
}; };
grandpa: { grandpa: {
/** /**
* Prove finality for the range (begin; end] hash. * Prove finality for the given block number, returning the Justification for the last block in the set.
**/ **/
proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>; proveFinality: AugmentedRpc<(blockNumber: BlockNumber | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
/** /**
* Returns the state of the current best round state as well as the ongoing background rounds * Returns the state of the current best round state as well as the ongoing background rounds
**/ **/
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.11.1' };
+5 -5
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/rpc-augment": "7.8.1", "@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.8.1", "@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^8.4.1", "@polkadot/keyring": "^8.4.1",
"@polkadot/rpc-augment": "7.8.1" "@polkadot/rpc-augment": "7.11.1"
} }
} }
+19 -3
View File
@@ -5,7 +5,7 @@ import type { Observer } from 'rxjs';
import type { ProviderInterface, ProviderInterfaceCallback } from '@polkadot/rpc-provider/types'; import type { ProviderInterface, ProviderInterfaceCallback } from '@polkadot/rpc-provider/types';
import type { StorageKey, Vec } from '@polkadot/types'; import type { StorageKey, Vec } from '@polkadot/types';
import type { Hash } from '@polkadot/types/interfaces'; import type { Hash } from '@polkadot/types/interfaces';
import type { AnyJson, Codec, DefinitionRpc, DefinitionRpcExt, DefinitionRpcSub, Registry } from '@polkadot/types/types'; import type { AnyJson, AnyNumber, Codec, DefinitionRpc, DefinitionRpcExt, DefinitionRpcSub, Registry } from '@polkadot/types/types';
import type { Memoized } from '@polkadot/util/types'; import type { Memoized } from '@polkadot/util/types';
import type { RpcInterfaceMethod } from './types'; import type { RpcInterfaceMethod } from './types';
@@ -85,6 +85,7 @@ export class RpcCore {
#registryDefault: Registry; #registryDefault: Registry;
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>; #getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
#getBlockHash?: (blockNumber: AnyNumber) => Promise<Uint8Array>;
readonly #storageCache = new Map<string, string | null>(); readonly #storageCache = new Map<string, string | null>();
@@ -146,6 +147,15 @@ export class RpcCore {
}); });
} }
/**
* @description Sets a function to resolve block hash from block number
*/
public setResolveBlockHash (resolveBlockHash: (blockNumber: AnyNumber) => Promise<Uint8Array>): void {
this.#getBlockHash = memoize(resolveBlockHash, {
getInstanceId: () => this.#instanceId
});
}
public addUserInterfaces (userRpc: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>): void { public addUserInterfaces (userRpc: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>): void {
// add any extra user-defined sections // add any extra user-defined sections
this.sections.push(...Object.keys(userRpc).filter((k) => !this.sections.includes(k))); this.sections.push(...Object.keys(userRpc).filter((k) => !this.sections.includes(k)));
@@ -202,12 +212,18 @@ export class RpcCore {
// execute the RPC call, doing a registry swap for historic as applicable // execute the RPC call, doing a registry swap for historic as applicable
const callWithRegistry = async <T> (isScale: boolean, values: unknown[]): Promise<T> => { const callWithRegistry = async <T> (isScale: boolean, values: unknown[]): Promise<T> => {
const blockHash = hashIndex === -1 const blockId = hashIndex === -1
? null ? null
: values[hashIndex] as (Uint8Array | string | null | undefined); : values[hashIndex];
const blockHash = blockId && def.params[hashIndex].type === 'BlockNumber'
? await this.#getBlockHash?.(blockId as AnyNumber)
: blockId as (Uint8Array | string | null | undefined);
const { registry } = isScale && blockHash && this.#getBlockRegistry const { registry } = isScale && blockHash && this.#getBlockRegistry
? await this.#getBlockRegistry(u8aToU8a(blockHash)) ? await this.#getBlockRegistry(u8aToU8a(blockHash))
: { registry: this.#registryDefault }; : { registry: this.#registryDefault };
const params = this._formatInputs(registry, null, def, values); const params = this._formatInputs(registry, null, def, values);
// only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied // only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.11.1' };
+3 -3
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/keyring": "^8.4.1", "@polkadot/keyring": "^8.4.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-support": "7.8.1", "@polkadot/types-support": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1", "@polkadot/util-crypto": "^8.4.1",
"@polkadot/x-fetch": "^8.4.1", "@polkadot/x-fetch": "^8.4.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.11.1' };
+12 -12
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs", "polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -30,18 +30,18 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs" "polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.17.2", "@babel/core": "^7.17.5",
"@babel/register": "^7.17.0", "@babel/register": "^7.17.0",
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/api": "7.8.1", "@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.8.1", "@polkadot/api-augment": "7.11.1",
"@polkadot/rpc-augment": "7.8.1", "@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.8.1", "@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.8.1", "@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.8.1", "@polkadot/types-create": "7.11.1",
"@polkadot/types-support": "7.8.1", "@polkadot/types-support": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/x-ws": "^8.4.1", "@polkadot/x-ws": "^8.4.1",
"handlebars": "^4.7.7", "handlebars": "^4.7.7",
@@ -50,6 +50,6 @@
}, },
"devDependencies": { "devDependencies": {
"@types/websocket": "^1.0.5", "@types/websocket": "^1.0.5",
"@types/yargs": "^17.0.8" "@types/yargs": "^17.0.9"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.11.1' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
} }
} }
+5 -49
View File
@@ -8,33 +8,10 @@ export default {
* Lookup75: kusama_runtime::ProxyType * Lookup75: kusama_runtime::ProxyType
**/ **/
KusamaRuntimeProxyType: { KusamaRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction'] _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
}, },
/** /**
* Lookup105: polkadot_runtime_parachains::disputes::pallet::Event<T> * Lookup251: kusama_runtime::SessionKeys
**/
PolkadotRuntimeParachainsDisputesPalletEvent: {
_enum: {
DisputeInitiated: '(H256,PolkadotRuntimeParachainsDisputesDisputeLocation)',
DisputeConcluded: '(H256,PolkadotRuntimeParachainsDisputesDisputeResult)',
DisputeTimedOut: 'H256',
Revert: 'u32'
}
},
/**
* Lookup107: polkadot_runtime_parachains::disputes::DisputeLocation
**/
PolkadotRuntimeParachainsDisputesDisputeLocation: {
_enum: ['Local', 'Remote']
},
/**
* Lookup108: polkadot_runtime_parachains::disputes::DisputeResult
**/
PolkadotRuntimeParachainsDisputesDisputeResult: {
_enum: ['Valid', 'Invalid']
},
/**
* Lookup248: kusama_runtime::SessionKeys
**/ **/
KusamaRuntimeSessionKeys: { KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic', grandpa: 'SpFinalityGrandpaAppPublic',
@@ -45,7 +22,7 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic' authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
}, },
/** /**
* Lookup321: kusama_runtime::OriginCaller * Lookup325: kusama_runtime::OriginCaller
**/ **/
KusamaRuntimeOriginCaller: { KusamaRuntimeOriginCaller: {
_enum: { _enum: {
@@ -152,7 +129,7 @@ export default {
} }
}, },
/** /**
* Lookup386: kusama_runtime::NposCompactSolution24 * Lookup390: kusama_runtime::NposCompactSolution24
**/ **/
KusamaRuntimeNposCompactSolution24: { KusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>', votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -181,28 +158,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>' votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
}, },
/** /**
* Lookup506: polkadot_runtime_parachains::disputes::pallet::Call<T> * Lookup742: kusama_runtime::Runtime
**/
PolkadotRuntimeParachainsDisputesPalletCall: {
_enum: ['force_unfreeze']
},
/**
* Lookup702: polkadot_primitives::v1::DisputeState<N>
**/
PolkadotPrimitivesV1DisputeState: {
validatorsFor: 'BitVec',
validatorsAgainst: 'BitVec',
start: 'u32',
concludedAt: 'Option<u32>'
},
/**
* Lookup703: polkadot_runtime_parachains::disputes::pallet::Error<T>
**/
PolkadotRuntimeParachainsDisputesPalletError: {
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
},
/**
* Lookup738: kusama_runtime::Runtime
**/ **/
KusamaRuntimeRuntime: 'Null' KusamaRuntimeRuntime: 'Null'
}; };
+170 -126
View File
@@ -148,7 +148,30 @@ export default {
recipient: 'u32' recipient: 'u32'
}, },
/** /**
* Lookup102: polkadot_runtime_common::paras_registrar::pallet::Event<T> * Lookup102: polkadot_runtime_parachains::disputes::pallet::Event<T>
**/
PolkadotRuntimeParachainsDisputesPalletEvent: {
_enum: {
DisputeInitiated: '(H256,PolkadotRuntimeParachainsDisputesDisputeLocation)',
DisputeConcluded: '(H256,PolkadotRuntimeParachainsDisputesDisputeResult)',
DisputeTimedOut: 'H256',
Revert: 'u32'
}
},
/**
* Lookup104: polkadot_runtime_parachains::disputes::DisputeLocation
**/
PolkadotRuntimeParachainsDisputesDisputeLocation: {
_enum: ['Local', 'Remote']
},
/**
* Lookup105: polkadot_runtime_parachains::disputes::DisputeResult
**/
PolkadotRuntimeParachainsDisputesDisputeResult: {
_enum: ['Valid', 'Invalid']
},
/**
* Lookup106: polkadot_runtime_common::paras_registrar::pallet::Event<T>
**/ **/
PolkadotRuntimeCommonParasRegistrarPalletEvent: { PolkadotRuntimeCommonParasRegistrarPalletEvent: {
_enum: { _enum: {
@@ -158,7 +181,7 @@ export default {
} }
}, },
/** /**
* Lookup103: polkadot_runtime_common::slots::pallet::Event<T> * Lookup107: polkadot_runtime_common::slots::pallet::Event<T>
**/ **/
PolkadotRuntimeCommonSlotsPalletEvent: { PolkadotRuntimeCommonSlotsPalletEvent: {
_enum: { _enum: {
@@ -167,7 +190,7 @@ export default {
} }
}, },
/** /**
* Lookup104: polkadot_runtime_common::auctions::pallet::Event<T> * Lookup108: polkadot_runtime_common::auctions::pallet::Event<T>
**/ **/
PolkadotRuntimeCommonAuctionsPalletEvent: { PolkadotRuntimeCommonAuctionsPalletEvent: {
_enum: { _enum: {
@@ -181,7 +204,7 @@ export default {
} }
}, },
/** /**
* Lookup105: polkadot_runtime_common::crowdloan::pallet::Event<T> * Lookup109: polkadot_runtime_common::crowdloan::pallet::Event<T>
**/ **/
PolkadotRuntimeCommonCrowdloanPalletEvent: { PolkadotRuntimeCommonCrowdloanPalletEvent: {
_enum: { _enum: {
@@ -198,7 +221,7 @@ export default {
} }
}, },
/** /**
* Lookup106: pallet_xcm::pallet::Event<T> * Lookup110: pallet_xcm::pallet::Event<T>
**/ **/
PalletXcmEvent: { PalletXcmEvent: {
_enum: { _enum: {
@@ -221,14 +244,14 @@ export default {
} }
}, },
/** /**
* Lookup107: xcm::v1::multilocation::MultiLocation * Lookup111: xcm::v1::multilocation::MultiLocation
**/ **/
XcmV1MultiLocation: { XcmV1MultiLocation: {
parents: 'u8', parents: 'u8',
interior: 'XcmV1MultilocationJunctions' interior: 'XcmV1MultilocationJunctions'
}, },
/** /**
* Lookup108: xcm::v1::multilocation::Junctions * Lookup112: xcm::v1::multilocation::Junctions
**/ **/
XcmV1MultilocationJunctions: { XcmV1MultilocationJunctions: {
_enum: { _enum: {
@@ -244,7 +267,7 @@ export default {
} }
}, },
/** /**
* Lookup109: xcm::v1::junction::Junction * Lookup113: xcm::v1::junction::Junction
**/ **/
XcmV1Junction: { XcmV1Junction: {
_enum: { _enum: {
@@ -272,7 +295,7 @@ export default {
} }
}, },
/** /**
* Lookup111: xcm::v0::junction::NetworkId * Lookup115: xcm::v0::junction::NetworkId
**/ **/
XcmV0JunctionNetworkId: { XcmV0JunctionNetworkId: {
_enum: { _enum: {
@@ -283,7 +306,7 @@ export default {
} }
}, },
/** /**
* Lookup113: xcm::v0::junction::BodyId * Lookup117: xcm::v0::junction::BodyId
**/ **/
XcmV0JunctionBodyId: { XcmV0JunctionBodyId: {
_enum: { _enum: {
@@ -297,7 +320,7 @@ export default {
} }
}, },
/** /**
* Lookup114: xcm::v0::junction::BodyPart * Lookup118: xcm::v0::junction::BodyPart
**/ **/
XcmV0JunctionBodyPart: { XcmV0JunctionBodyPart: {
_enum: { _enum: {
@@ -320,11 +343,11 @@ export default {
} }
}, },
/** /**
* Lookup115: xcm::v2::Xcm<Call> * Lookup119: xcm::v2::Xcm<Call>
**/ **/
XcmV2Xcm: 'Vec<XcmV2Instruction>', XcmV2Xcm: 'Vec<XcmV2Instruction>',
/** /**
* Lookup117: xcm::v2::Instruction<Call> * Lookup121: xcm::v2::Instruction<Call>
**/ **/
XcmV2Instruction: { XcmV2Instruction: {
_enum: { _enum: {
@@ -422,18 +445,18 @@ export default {
} }
}, },
/** /**
* Lookup118: xcm::v1::multiasset::MultiAssets * Lookup122: xcm::v1::multiasset::MultiAssets
**/ **/
XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>', XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
/** /**
* Lookup120: xcm::v1::multiasset::MultiAsset * Lookup124: xcm::v1::multiasset::MultiAsset
**/ **/
XcmV1MultiAsset: { XcmV1MultiAsset: {
id: 'XcmV1MultiassetAssetId', id: 'XcmV1MultiassetAssetId',
fun: 'XcmV1MultiassetFungibility' fun: 'XcmV1MultiassetFungibility'
}, },
/** /**
* Lookup121: xcm::v1::multiasset::AssetId * Lookup125: xcm::v1::multiasset::AssetId
**/ **/
XcmV1MultiassetAssetId: { XcmV1MultiassetAssetId: {
_enum: { _enum: {
@@ -442,7 +465,7 @@ export default {
} }
}, },
/** /**
* Lookup122: xcm::v1::multiasset::Fungibility * Lookup126: xcm::v1::multiasset::Fungibility
**/ **/
XcmV1MultiassetFungibility: { XcmV1MultiassetFungibility: {
_enum: { _enum: {
@@ -451,7 +474,7 @@ export default {
} }
}, },
/** /**
* Lookup123: xcm::v1::multiasset::AssetInstance * Lookup127: xcm::v1::multiasset::AssetInstance
**/ **/
XcmV1MultiassetAssetInstance: { XcmV1MultiassetAssetInstance: {
_enum: { _enum: {
@@ -465,7 +488,7 @@ export default {
} }
}, },
/** /**
* Lookup125: xcm::v2::Response * Lookup129: xcm::v2::Response
**/ **/
XcmV2Response: { XcmV2Response: {
_enum: { _enum: {
@@ -476,19 +499,19 @@ export default {
} }
}, },
/** /**
* Lookup128: xcm::v0::OriginKind * Lookup132: xcm::v0::OriginKind
**/ **/
XcmV0OriginKind: { XcmV0OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm'] _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
}, },
/** /**
* Lookup129: xcm::double_encoded::DoubleEncoded<T> * Lookup133: xcm::double_encoded::DoubleEncoded<T>
**/ **/
XcmDoubleEncoded: { XcmDoubleEncoded: {
encoded: 'Bytes' encoded: 'Bytes'
}, },
/** /**
* Lookup130: xcm::v1::multiasset::MultiAssetFilter * Lookup134: xcm::v1::multiasset::MultiAssetFilter
**/ **/
XcmV1MultiassetMultiAssetFilter: { XcmV1MultiassetMultiAssetFilter: {
_enum: { _enum: {
@@ -497,7 +520,7 @@ export default {
} }
}, },
/** /**
* Lookup131: xcm::v1::multiasset::WildMultiAsset * Lookup135: xcm::v1::multiasset::WildMultiAsset
**/ **/
XcmV1MultiassetWildMultiAsset: { XcmV1MultiassetWildMultiAsset: {
_enum: { _enum: {
@@ -509,13 +532,13 @@ export default {
} }
}, },
/** /**
* Lookup132: xcm::v1::multiasset::WildFungibility * Lookup136: xcm::v1::multiasset::WildFungibility
**/ **/
XcmV1MultiassetWildFungibility: { XcmV1MultiassetWildFungibility: {
_enum: ['Fungible', 'NonFungible'] _enum: ['Fungible', 'NonFungible']
}, },
/** /**
* Lookup133: xcm::v2::WeightLimit * Lookup137: xcm::v2::WeightLimit
**/ **/
XcmV2WeightLimit: { XcmV2WeightLimit: {
_enum: { _enum: {
@@ -524,7 +547,7 @@ export default {
} }
}, },
/** /**
* Lookup135: xcm::VersionedMultiAssets * Lookup139: xcm::VersionedMultiAssets
**/ **/
XcmVersionedMultiAssets: { XcmVersionedMultiAssets: {
_enum: { _enum: {
@@ -533,7 +556,7 @@ export default {
} }
}, },
/** /**
* Lookup137: xcm::v0::multi_asset::MultiAsset * Lookup141: xcm::v0::multi_asset::MultiAsset
**/ **/
XcmV0MultiAsset: { XcmV0MultiAsset: {
_enum: { _enum: {
@@ -572,7 +595,7 @@ export default {
} }
}, },
/** /**
* Lookup138: xcm::v0::multi_location::MultiLocation * Lookup142: xcm::v0::multi_location::MultiLocation
**/ **/
XcmV0MultiLocation: { XcmV0MultiLocation: {
_enum: { _enum: {
@@ -588,7 +611,7 @@ export default {
} }
}, },
/** /**
* Lookup139: xcm::v0::junction::Junction * Lookup143: xcm::v0::junction::Junction
**/ **/
XcmV0Junction: { XcmV0Junction: {
_enum: { _enum: {
@@ -617,7 +640,7 @@ export default {
} }
}, },
/** /**
* Lookup140: xcm::VersionedMultiLocation * Lookup144: xcm::VersionedMultiLocation
**/ **/
XcmVersionedMultiLocation: { XcmVersionedMultiLocation: {
_enum: { _enum: {
@@ -626,7 +649,7 @@ export default {
} }
}, },
/** /**
* Lookup198: polkadot_runtime::SessionKeys * Lookup204: polkadot_runtime::SessionKeys
**/ **/
PolkadotRuntimeSessionKeys: { PolkadotRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic', grandpa: 'SpFinalityGrandpaAppPublic',
@@ -637,15 +660,15 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic' authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
}, },
/** /**
* Lookup199: polkadot_primitives::v0::validator_app::Public * Lookup205: polkadot_primitives::v0::validator_app::Public
**/ **/
PolkadotPrimitivesV0ValidatorAppPublic: 'SpCoreSr25519Public', PolkadotPrimitivesV0ValidatorAppPublic: 'SpCoreSr25519Public',
/** /**
* Lookup200: polkadot_primitives::v1::assignment_app::Public * Lookup206: polkadot_primitives::v1::assignment_app::Public
**/ **/
PolkadotPrimitivesV1AssignmentAppPublic: 'SpCoreSr25519Public', PolkadotPrimitivesV1AssignmentAppPublic: 'SpCoreSr25519Public',
/** /**
* Lookup229: polkadot_runtime_common::claims::pallet::Call<T> * Lookup236: polkadot_runtime_common::claims::pallet::Call<T>
**/ **/
PolkadotRuntimeCommonClaimsPalletCall: { PolkadotRuntimeCommonClaimsPalletCall: {
_enum: { _enum: {
@@ -678,17 +701,17 @@ export default {
} }
}, },
/** /**
* Lookup230: polkadot_runtime_common::claims::EcdsaSignature * Lookup237: polkadot_runtime_common::claims::EcdsaSignature
**/ **/
PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]', PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]',
/** /**
* Lookup235: polkadot_runtime_common::claims::StatementKind * Lookup242: polkadot_runtime_common::claims::StatementKind
**/ **/
PolkadotRuntimeCommonClaimsStatementKind: { PolkadotRuntimeCommonClaimsStatementKind: {
_enum: ['Regular', 'Saft'] _enum: ['Regular', 'Saft']
}, },
/** /**
* Lookup240: polkadot_runtime::OriginCaller * Lookup247: polkadot_runtime::OriginCaller
**/ **/
PolkadotRuntimeOriginCaller: { PolkadotRuntimeOriginCaller: {
_enum: { _enum: {
@@ -795,7 +818,7 @@ export default {
} }
}, },
/** /**
* Lookup244: polkadot_runtime_parachains::origin::pallet::Origin * Lookup251: polkadot_runtime_parachains::origin::pallet::Origin
**/ **/
PolkadotRuntimeParachainsOriginPalletOrigin: { PolkadotRuntimeParachainsOriginPalletOrigin: {
_enum: { _enum: {
@@ -803,7 +826,7 @@ export default {
} }
}, },
/** /**
* Lookup245: pallet_xcm::pallet::Origin * Lookup252: pallet_xcm::pallet::Origin
**/ **/
PalletXcmOrigin: { PalletXcmOrigin: {
_enum: { _enum: {
@@ -812,7 +835,7 @@ export default {
} }
}, },
/** /**
* Lookup296: polkadot_runtime::NposCompactSolution16 * Lookup303: polkadot_runtime::NposCompactSolution16
**/ **/
PolkadotRuntimeNposCompactSolution16: { PolkadotRuntimeNposCompactSolution16: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>', votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -833,7 +856,7 @@ export default {
votes16: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);15],Compact<u16>)>' votes16: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);15],Compact<u16>)>'
}, },
/** /**
* Lookup354: polkadot_runtime_parachains::configuration::pallet::Call<T> * Lookup361: polkadot_runtime_parachains::configuration::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsConfigurationPalletCall: { PolkadotRuntimeParachainsConfigurationPalletCall: {
_enum: { _enum: {
@@ -1110,15 +1133,15 @@ export default {
} }
}, },
/** /**
* Lookup355: polkadot_runtime_parachains::shared::pallet::Call<T> * Lookup362: polkadot_runtime_parachains::shared::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsSharedPalletCall: 'Null', PolkadotRuntimeParachainsSharedPalletCall: 'Null',
/** /**
* Lookup356: polkadot_runtime_parachains::inclusion::pallet::Call<T> * Lookup363: polkadot_runtime_parachains::inclusion::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsInclusionPalletCall: 'Null', PolkadotRuntimeParachainsInclusionPalletCall: 'Null',
/** /**
* Lookup357: polkadot_runtime_parachains::paras_inherent::pallet::Call<T> * Lookup364: polkadot_runtime_parachains::paras_inherent::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsParasInherentPalletCall: { PolkadotRuntimeParachainsParasInherentPalletCall: {
_enum: { _enum: {
@@ -1128,7 +1151,7 @@ export default {
} }
}, },
/** /**
* Lookup358: polkadot_primitives::v1::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>> * Lookup365: polkadot_primitives::v1::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>>
**/ **/
PolkadotPrimitivesV1InherentData: { PolkadotPrimitivesV1InherentData: {
bitfields: 'Vec<PolkadotPrimitivesV1SignedUncheckedSigned>', bitfields: 'Vec<PolkadotPrimitivesV1SignedUncheckedSigned>',
@@ -1137,7 +1160,7 @@ export default {
parentHeader: 'SpRuntimeHeader' parentHeader: 'SpRuntimeHeader'
}, },
/** /**
* Lookup360: polkadot_primitives::v1::signed::UncheckedSigned<polkadot_primitives::v1::AvailabilityBitfield, polkadot_primitives::v1::AvailabilityBitfield> * Lookup367: polkadot_primitives::v1::signed::UncheckedSigned<polkadot_primitives::v1::AvailabilityBitfield, polkadot_primitives::v1::AvailabilityBitfield>
**/ **/
PolkadotPrimitivesV1SignedUncheckedSigned: { PolkadotPrimitivesV1SignedUncheckedSigned: {
payload: 'BitVec', payload: 'BitVec',
@@ -1145,15 +1168,15 @@ export default {
signature: 'PolkadotPrimitivesV0ValidatorAppSignature' signature: 'PolkadotPrimitivesV0ValidatorAppSignature'
}, },
/** /**
* Lookup363: bitvec::order::Lsb0 * Lookup370: bitvec::order::Lsb0
**/ **/
BitvecOrderLsb0: 'Null', BitvecOrderLsb0: 'Null',
/** /**
* Lookup365: polkadot_primitives::v0::validator_app::Signature * Lookup372: polkadot_primitives::v0::validator_app::Signature
**/ **/
PolkadotPrimitivesV0ValidatorAppSignature: 'SpCoreSr25519Signature', PolkadotPrimitivesV0ValidatorAppSignature: 'SpCoreSr25519Signature',
/** /**
* Lookup367: polkadot_primitives::v1::BackedCandidate<primitive_types::H256> * Lookup374: polkadot_primitives::v1::BackedCandidate<primitive_types::H256>
**/ **/
PolkadotPrimitivesV1BackedCandidate: { PolkadotPrimitivesV1BackedCandidate: {
candidate: 'PolkadotPrimitivesV1CommittedCandidateReceipt', candidate: 'PolkadotPrimitivesV1CommittedCandidateReceipt',
@@ -1161,14 +1184,14 @@ export default {
validatorIndices: 'BitVec' validatorIndices: 'BitVec'
}, },
/** /**
* Lookup368: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256> * Lookup375: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256>
**/ **/
PolkadotPrimitivesV1CommittedCandidateReceipt: { PolkadotPrimitivesV1CommittedCandidateReceipt: {
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor', descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
commitments: 'PolkadotPrimitivesV1CandidateCommitments' commitments: 'PolkadotPrimitivesV1CandidateCommitments'
}, },
/** /**
* Lookup369: polkadot_primitives::v1::CandidateCommitments<N> * Lookup376: polkadot_primitives::v1::CandidateCommitments<N>
**/ **/
PolkadotPrimitivesV1CandidateCommitments: { PolkadotPrimitivesV1CandidateCommitments: {
upwardMessages: 'Vec<Bytes>', upwardMessages: 'Vec<Bytes>',
@@ -1179,14 +1202,14 @@ export default {
hrmpWatermark: 'u32' hrmpWatermark: 'u32'
}, },
/** /**
* Lookup371: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id> * Lookup378: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
**/ **/
PolkadotCorePrimitivesOutboundHrmpMessage: { PolkadotCorePrimitivesOutboundHrmpMessage: {
recipient: 'u32', recipient: 'u32',
data: 'Bytes' data: 'Bytes'
}, },
/** /**
* Lookup375: polkadot_primitives::v0::ValidityAttestation * Lookup382: polkadot_primitives::v0::ValidityAttestation
**/ **/
PolkadotPrimitivesV0ValidityAttestation: { PolkadotPrimitivesV0ValidityAttestation: {
_enum: { _enum: {
@@ -1196,7 +1219,7 @@ export default {
} }
}, },
/** /**
* Lookup377: polkadot_primitives::v1::DisputeStatementSet * Lookup384: polkadot_primitives::v1::DisputeStatementSet
**/ **/
PolkadotPrimitivesV1DisputeStatementSet: { PolkadotPrimitivesV1DisputeStatementSet: {
candidateHash: 'H256', candidateHash: 'H256',
@@ -1204,7 +1227,7 @@ export default {
statements: 'Vec<(PolkadotPrimitivesV1DisputeStatement,u32,PolkadotPrimitivesV0ValidatorAppSignature)>' statements: 'Vec<(PolkadotPrimitivesV1DisputeStatement,u32,PolkadotPrimitivesV0ValidatorAppSignature)>'
}, },
/** /**
* Lookup381: polkadot_primitives::v1::DisputeStatement * Lookup387: polkadot_primitives::v1::DisputeStatement
**/ **/
PolkadotPrimitivesV1DisputeStatement: { PolkadotPrimitivesV1DisputeStatement: {
_enum: { _enum: {
@@ -1213,7 +1236,7 @@ export default {
} }
}, },
/** /**
* Lookup382: polkadot_primitives::v1::ValidDisputeStatementKind * Lookup388: polkadot_primitives::v1::ValidDisputeStatementKind
**/ **/
PolkadotPrimitivesV1ValidDisputeStatementKind: { PolkadotPrimitivesV1ValidDisputeStatementKind: {
_enum: { _enum: {
@@ -1224,13 +1247,13 @@ export default {
} }
}, },
/** /**
* Lookup383: polkadot_primitives::v1::InvalidDisputeStatementKind * Lookup389: polkadot_primitives::v1::InvalidDisputeStatementKind
**/ **/
PolkadotPrimitivesV1InvalidDisputeStatementKind: { PolkadotPrimitivesV1InvalidDisputeStatementKind: {
_enum: ['Explicit'] _enum: ['Explicit']
}, },
/** /**
* Lookup384: polkadot_runtime_parachains::paras::pallet::Call<T> * Lookup390: polkadot_runtime_parachains::paras::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsParasPalletCall: { PolkadotRuntimeParachainsParasPalletCall: {
_enum: { _enum: {
@@ -1267,7 +1290,7 @@ export default {
} }
}, },
/** /**
* Lookup385: polkadot_primitives::v2::PvfCheckStatement * Lookup391: polkadot_primitives::v2::PvfCheckStatement
**/ **/
PolkadotPrimitivesV2PvfCheckStatement: { PolkadotPrimitivesV2PvfCheckStatement: {
accept: 'bool', accept: 'bool',
@@ -1276,7 +1299,7 @@ export default {
validatorIndex: 'u32' validatorIndex: 'u32'
}, },
/** /**
* Lookup386: polkadot_runtime_parachains::initializer::pallet::Call<T> * Lookup392: polkadot_runtime_parachains::initializer::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsInitializerPalletCall: { PolkadotRuntimeParachainsInitializerPalletCall: {
_enum: { _enum: {
@@ -1286,11 +1309,11 @@ export default {
} }
}, },
/** /**
* Lookup387: polkadot_runtime_parachains::dmp::pallet::Call<T> * Lookup393: polkadot_runtime_parachains::dmp::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsDmpPalletCall: 'Null', PolkadotRuntimeParachainsDmpPalletCall: 'Null',
/** /**
* Lookup388: polkadot_runtime_parachains::ump::pallet::Call<T> * Lookup394: polkadot_runtime_parachains::ump::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsUmpPalletCall: { PolkadotRuntimeParachainsUmpPalletCall: {
_enum: { _enum: {
@@ -1301,7 +1324,7 @@ export default {
} }
}, },
/** /**
* Lookup389: polkadot_runtime_parachains::hrmp::pallet::Call<T> * Lookup395: polkadot_runtime_parachains::hrmp::pallet::Call<T>
**/ **/
PolkadotRuntimeParachainsHrmpPalletCall: { PolkadotRuntimeParachainsHrmpPalletCall: {
_enum: { _enum: {
@@ -1334,7 +1357,13 @@ export default {
} }
}, },
/** /**
* Lookup390: polkadot_runtime_common::paras_registrar::pallet::Call<T> * Lookup396: polkadot_runtime_parachains::disputes::pallet::Call<T>
**/
PolkadotRuntimeParachainsDisputesPalletCall: {
_enum: ['force_unfreeze']
},
/**
* Lookup397: polkadot_runtime_common::paras_registrar::pallet::Call<T>
**/ **/
PolkadotRuntimeCommonParasRegistrarPalletCall: { PolkadotRuntimeCommonParasRegistrarPalletCall: {
_enum: { _enum: {
@@ -1364,7 +1393,7 @@ export default {
} }
}, },
/** /**
* Lookup391: polkadot_runtime_common::slots::pallet::Call<T> * Lookup398: polkadot_runtime_common::slots::pallet::Call<T>
**/ **/
PolkadotRuntimeCommonSlotsPalletCall: { PolkadotRuntimeCommonSlotsPalletCall: {
_enum: { _enum: {
@@ -1384,7 +1413,7 @@ export default {
} }
}, },
/** /**
* Lookup392: polkadot_runtime_common::auctions::pallet::Call<T> * Lookup399: polkadot_runtime_common::auctions::pallet::Call<T>
**/ **/
PolkadotRuntimeCommonAuctionsPalletCall: { PolkadotRuntimeCommonAuctionsPalletCall: {
_enum: { _enum: {
@@ -1403,7 +1432,7 @@ export default {
} }
}, },
/** /**
* Lookup394: polkadot_runtime_common::crowdloan::pallet::Call<T> * Lookup401: polkadot_runtime_common::crowdloan::pallet::Call<T>
**/ **/
PolkadotRuntimeCommonCrowdloanPalletCall: { PolkadotRuntimeCommonCrowdloanPalletCall: {
_enum: { _enum: {
@@ -1452,7 +1481,7 @@ export default {
} }
}, },
/** /**
* Lookup396: sp_runtime::MultiSigner * Lookup403: sp_runtime::MultiSigner
**/ **/
SpRuntimeMultiSigner: { SpRuntimeMultiSigner: {
_enum: { _enum: {
@@ -1462,11 +1491,11 @@ export default {
} }
}, },
/** /**
* Lookup397: sp_core::ecdsa::Public * Lookup404: sp_core::ecdsa::Public
**/ **/
SpCoreEcdsaPublic: '[u8;33]', SpCoreEcdsaPublic: '[u8;33]',
/** /**
* Lookup402: pallet_xcm::pallet::Call<T> * Lookup409: pallet_xcm::pallet::Call<T>
**/ **/
PalletXcmCall: { PalletXcmCall: {
_enum: { _enum: {
@@ -1520,7 +1549,7 @@ export default {
} }
}, },
/** /**
* Lookup403: xcm::VersionedXcm<Call> * Lookup410: xcm::VersionedXcm<Call>
**/ **/
XcmVersionedXcm: { XcmVersionedXcm: {
_enum: { _enum: {
@@ -1530,7 +1559,7 @@ export default {
} }
}, },
/** /**
* Lookup404: xcm::v0::Xcm<Call> * Lookup411: xcm::v0::Xcm<Call>
**/ **/
XcmV0Xcm: { XcmV0Xcm: {
_enum: { _enum: {
@@ -1584,7 +1613,7 @@ export default {
} }
}, },
/** /**
* Lookup406: xcm::v0::order::Order<Call> * Lookup413: xcm::v0::order::Order<Call>
**/ **/
XcmV0Order: { XcmV0Order: {
_enum: { _enum: {
@@ -1627,7 +1656,7 @@ export default {
} }
}, },
/** /**
* Lookup408: xcm::v0::Response * Lookup415: xcm::v0::Response
**/ **/
XcmV0Response: { XcmV0Response: {
_enum: { _enum: {
@@ -1635,7 +1664,7 @@ export default {
} }
}, },
/** /**
* Lookup409: xcm::v1::Xcm<Call> * Lookup416: xcm::v1::Xcm<Call>
**/ **/
XcmV1Xcm: { XcmV1Xcm: {
_enum: { _enum: {
@@ -1694,7 +1723,7 @@ export default {
} }
}, },
/** /**
* Lookup411: xcm::v1::order::Order<Call> * Lookup418: xcm::v1::order::Order<Call>
**/ **/
XcmV1Order: { XcmV1Order: {
_enum: { _enum: {
@@ -1739,7 +1768,7 @@ export default {
} }
}, },
/** /**
* Lookup413: xcm::v1::Response * Lookup420: xcm::v1::Response
**/ **/
XcmV1Response: { XcmV1Response: {
_enum: { _enum: {
@@ -1748,13 +1777,13 @@ export default {
} }
}, },
/** /**
* Lookup530: polkadot_runtime_common::claims::pallet::Error<T> * Lookup538: polkadot_runtime_common::claims::pallet::Error<T>
**/ **/
PolkadotRuntimeCommonClaimsPalletError: { PolkadotRuntimeCommonClaimsPalletError: {
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists'] _enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
}, },
/** /**
* Lookup582: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber> * Lookup590: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
**/ **/
PolkadotRuntimeParachainsConfigurationHostConfiguration: { PolkadotRuntimeParachainsConfigurationHostConfiguration: {
maxCodeSize: 'u32', maxCodeSize: 'u32',
@@ -1802,7 +1831,7 @@ export default {
minimumValidationUpgradeDelay: 'u32' minimumValidationUpgradeDelay: 'u32'
}, },
/** /**
* Lookup583: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber> * Lookup591: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
**/ **/
PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: { PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: {
maxCodeSize: 'u32', maxCodeSize: 'u32',
@@ -1847,20 +1876,20 @@ export default {
umpMaxIndividualWeight: 'u64' umpMaxIndividualWeight: 'u64'
}, },
/** /**
* Lookup586: polkadot_runtime_parachains::configuration::pallet::Error<T> * Lookup594: polkadot_runtime_parachains::configuration::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsConfigurationPalletError: { PolkadotRuntimeParachainsConfigurationPalletError: {
_enum: ['InvalidNewValue'] _enum: ['InvalidNewValue']
}, },
/** /**
* Lookup589: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N> * Lookup597: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
**/ **/
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: { PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
bitfield: 'BitVec', bitfield: 'BitVec',
submittedAt: 'u32' submittedAt: 'u32'
}, },
/** /**
* Lookup590: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N> * Lookup598: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
**/ **/
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: { PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
_alias: { _alias: {
@@ -1876,13 +1905,13 @@ export default {
backingGroup: 'u32' backingGroup: 'u32'
}, },
/** /**
* Lookup591: polkadot_runtime_parachains::inclusion::pallet::Error<T> * Lookup599: polkadot_runtime_parachains::inclusion::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsInclusionPalletError: { PolkadotRuntimeParachainsInclusionPalletError: {
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore'] _enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
}, },
/** /**
* Lookup592: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256> * Lookup600: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
**/ **/
PolkadotPrimitivesV1ScrapedOnChainVotes: { PolkadotPrimitivesV1ScrapedOnChainVotes: {
session: 'u32', session: 'u32',
@@ -1890,38 +1919,38 @@ export default {
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>' disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>'
}, },
/** /**
* Lookup597: polkadot_runtime_parachains::paras_inherent::pallet::Error<T> * Lookup605: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsParasInherentPalletError: { PolkadotRuntimeParachainsParasInherentPalletError: {
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid'] _enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
}, },
/** /**
* Lookup599: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue * Lookup607: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
**/ **/
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: { PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>', queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
nextCoreOffset: 'u32' nextCoreOffset: 'u32'
}, },
/** /**
* Lookup601: polkadot_runtime_parachains::scheduler::QueuedParathread * Lookup609: polkadot_runtime_parachains::scheduler::QueuedParathread
**/ **/
PolkadotRuntimeParachainsSchedulerQueuedParathread: { PolkadotRuntimeParachainsSchedulerQueuedParathread: {
claim: 'PolkadotPrimitivesV1ParathreadEntry', claim: 'PolkadotPrimitivesV1ParathreadEntry',
coreOffset: 'u32' coreOffset: 'u32'
}, },
/** /**
* Lookup602: polkadot_primitives::v1::ParathreadEntry * Lookup610: polkadot_primitives::v1::ParathreadEntry
**/ **/
PolkadotPrimitivesV1ParathreadEntry: { PolkadotPrimitivesV1ParathreadEntry: {
claim: 'PolkadotPrimitivesV1ParathreadClaim', claim: 'PolkadotPrimitivesV1ParathreadClaim',
retries: 'u32' retries: 'u32'
}, },
/** /**
* Lookup603: polkadot_primitives::v1::ParathreadClaim * Lookup611: polkadot_primitives::v1::ParathreadClaim
**/ **/
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)', PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
/** /**
* Lookup606: polkadot_primitives::v1::CoreOccupied * Lookup614: polkadot_primitives::v1::CoreOccupied
**/ **/
PolkadotPrimitivesV1CoreOccupied: { PolkadotPrimitivesV1CoreOccupied: {
_enum: { _enum: {
@@ -1930,7 +1959,7 @@ export default {
} }
}, },
/** /**
* Lookup609: polkadot_runtime_parachains::scheduler::CoreAssignment * Lookup617: polkadot_runtime_parachains::scheduler::CoreAssignment
**/ **/
PolkadotRuntimeParachainsSchedulerCoreAssignment: { PolkadotRuntimeParachainsSchedulerCoreAssignment: {
core: 'u32', core: 'u32',
@@ -1939,7 +1968,7 @@ export default {
groupIdx: 'u32' groupIdx: 'u32'
}, },
/** /**
* Lookup610: polkadot_runtime_parachains::scheduler::AssignmentKind * Lookup618: polkadot_runtime_parachains::scheduler::AssignmentKind
**/ **/
PolkadotRuntimeParachainsSchedulerAssignmentKind: { PolkadotRuntimeParachainsSchedulerAssignmentKind: {
_enum: { _enum: {
@@ -1948,7 +1977,7 @@ export default {
} }
}, },
/** /**
* Lookup611: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber> * Lookup619: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
**/ **/
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: { PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
votesAccept: 'BitVec', votesAccept: 'BitVec',
@@ -1958,7 +1987,7 @@ export default {
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>' causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
}, },
/** /**
* Lookup613: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber> * Lookup621: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
**/ **/
PolkadotRuntimeParachainsParasPvfCheckCause: { PolkadotRuntimeParachainsParasPvfCheckCause: {
_enum: { _enum: {
@@ -1970,39 +1999,39 @@ export default {
} }
}, },
/** /**
* Lookup615: polkadot_runtime_parachains::paras::ParaLifecycle * Lookup623: polkadot_runtime_parachains::paras::ParaLifecycle
**/ **/
PolkadotRuntimeParachainsParasParaLifecycle: { PolkadotRuntimeParachainsParasParaLifecycle: {
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain'] _enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
}, },
/** /**
* Lookup617: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N> * Lookup625: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
**/ **/
PolkadotRuntimeParachainsParasParaPastCodeMeta: { PolkadotRuntimeParachainsParasParaPastCodeMeta: {
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>', upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
lastPruned: 'Option<u32>' lastPruned: 'Option<u32>'
}, },
/** /**
* Lookup619: polkadot_runtime_parachains::paras::ReplacementTimes<N> * Lookup627: polkadot_runtime_parachains::paras::ReplacementTimes<N>
**/ **/
PolkadotRuntimeParachainsParasReplacementTimes: { PolkadotRuntimeParachainsParasReplacementTimes: {
expectedAt: 'u32', expectedAt: 'u32',
activatedAt: 'u32' activatedAt: 'u32'
}, },
/** /**
* Lookup621: polkadot_primitives::v1::UpgradeGoAhead * Lookup629: polkadot_primitives::v1::UpgradeGoAhead
**/ **/
PolkadotPrimitivesV1UpgradeGoAhead: { PolkadotPrimitivesV1UpgradeGoAhead: {
_enum: ['Abort', 'GoAhead'] _enum: ['Abort', 'GoAhead']
}, },
/** /**
* Lookup622: polkadot_primitives::v1::UpgradeRestriction * Lookup630: polkadot_primitives::v1::UpgradeRestriction
**/ **/
PolkadotPrimitivesV1UpgradeRestriction: { PolkadotPrimitivesV1UpgradeRestriction: {
_enum: ['Present'] _enum: ['Present']
}, },
/** /**
* Lookup623: polkadot_runtime_parachains::paras::ParaGenesisArgs * Lookup631: polkadot_runtime_parachains::paras::ParaGenesisArgs
**/ **/
PolkadotRuntimeParachainsParasParaGenesisArgs: { PolkadotRuntimeParachainsParasParaGenesisArgs: {
genesisHead: 'Bytes', genesisHead: 'Bytes',
@@ -2010,13 +2039,13 @@ export default {
parachain: 'bool' parachain: 'bool'
}, },
/** /**
* Lookup624: polkadot_runtime_parachains::paras::pallet::Error<T> * Lookup632: polkadot_runtime_parachains::paras::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsParasPalletError: { PolkadotRuntimeParachainsParasPalletError: {
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled'] _enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled']
}, },
/** /**
* Lookup626: polkadot_runtime_parachains::initializer::BufferedSessionChange * Lookup634: polkadot_runtime_parachains::initializer::BufferedSessionChange
**/ **/
PolkadotRuntimeParachainsInitializerBufferedSessionChange: { PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>', validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
@@ -2024,20 +2053,20 @@ export default {
sessionIndex: 'u32' sessionIndex: 'u32'
}, },
/** /**
* Lookup628: polkadot_core_primitives::InboundDownwardMessage<BlockNumber> * Lookup636: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
**/ **/
PolkadotCorePrimitivesInboundDownwardMessage: { PolkadotCorePrimitivesInboundDownwardMessage: {
sentAt: 'u32', sentAt: 'u32',
msg: 'Bytes' msg: 'Bytes'
}, },
/** /**
* Lookup630: polkadot_runtime_parachains::ump::pallet::Error<T> * Lookup638: polkadot_runtime_parachains::ump::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsUmpPalletError: { PolkadotRuntimeParachainsUmpPalletError: {
_enum: ['UnknownMessageIndex', 'WeightOverLimit'] _enum: ['UnknownMessageIndex', 'WeightOverLimit']
}, },
/** /**
* Lookup631: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest * Lookup639: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
**/ **/
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: { PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
confirmed: 'bool', confirmed: 'bool',
@@ -2048,7 +2077,7 @@ export default {
maxTotalSize: 'u32' maxTotalSize: 'u32'
}, },
/** /**
* Lookup633: polkadot_runtime_parachains::hrmp::HrmpChannel * Lookup641: polkadot_runtime_parachains::hrmp::HrmpChannel
**/ **/
PolkadotRuntimeParachainsHrmpHrmpChannel: { PolkadotRuntimeParachainsHrmpHrmpChannel: {
maxCapacity: 'u32', maxCapacity: 'u32',
@@ -2061,20 +2090,20 @@ export default {
recipientDeposit: 'u128' recipientDeposit: 'u128'
}, },
/** /**
* Lookup636: polkadot_core_primitives::InboundHrmpMessage<BlockNumber> * Lookup644: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
**/ **/
PolkadotCorePrimitivesInboundHrmpMessage: { PolkadotCorePrimitivesInboundHrmpMessage: {
sentAt: 'u32', sentAt: 'u32',
data: 'Bytes' data: 'Bytes'
}, },
/** /**
* Lookup639: polkadot_runtime_parachains::hrmp::pallet::Error<T> * Lookup647: polkadot_runtime_parachains::hrmp::pallet::Error<T>
**/ **/
PolkadotRuntimeParachainsHrmpPalletError: { PolkadotRuntimeParachainsHrmpPalletError: {
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness'] _enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
}, },
/** /**
* Lookup641: polkadot_primitives::v2::SessionInfo * Lookup649: polkadot_primitives::v2::SessionInfo
**/ **/
PolkadotPrimitivesV2SessionInfo: { PolkadotPrimitivesV2SessionInfo: {
activeValidatorIndices: 'Vec<u32>', activeValidatorIndices: 'Vec<u32>',
@@ -2092,7 +2121,22 @@ export default {
neededApprovals: 'u32' neededApprovals: 'u32'
}, },
/** /**
* Lookup643: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance> * Lookup652: polkadot_primitives::v1::DisputeState<N>
**/
PolkadotPrimitivesV1DisputeState: {
validatorsFor: 'BitVec',
validatorsAgainst: 'BitVec',
start: 'u32',
concludedAt: 'Option<u32>'
},
/**
* Lookup653: polkadot_runtime_parachains::disputes::pallet::Error<T>
**/
PolkadotRuntimeParachainsDisputesPalletError: {
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
},
/**
* Lookup654: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
**/ **/
PolkadotRuntimeCommonParasRegistrarParaInfo: { PolkadotRuntimeCommonParasRegistrarParaInfo: {
manager: 'AccountId32', manager: 'AccountId32',
@@ -2100,25 +2144,25 @@ export default {
locked: 'bool' locked: 'bool'
}, },
/** /**
* Lookup644: polkadot_runtime_common::paras_registrar::pallet::Error<T> * Lookup655: polkadot_runtime_common::paras_registrar::pallet::Error<T>
**/ **/
PolkadotRuntimeCommonParasRegistrarPalletError: { PolkadotRuntimeCommonParasRegistrarPalletError: {
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode'] _enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
}, },
/** /**
* Lookup646: polkadot_runtime_common::slots::pallet::Error<T> * Lookup657: polkadot_runtime_common::slots::pallet::Error<T>
**/ **/
PolkadotRuntimeCommonSlotsPalletError: { PolkadotRuntimeCommonSlotsPalletError: {
_enum: ['ParaNotOnboarding', 'LeaseError'] _enum: ['ParaNotOnboarding', 'LeaseError']
}, },
/** /**
* Lookup651: polkadot_runtime_common::auctions::pallet::Error<T> * Lookup662: polkadot_runtime_common::auctions::pallet::Error<T>
**/ **/
PolkadotRuntimeCommonAuctionsPalletError: { PolkadotRuntimeCommonAuctionsPalletError: {
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut'] _enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
}, },
/** /**
* Lookup652: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod> * Lookup663: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
**/ **/
PolkadotRuntimeCommonCrowdloanFundInfo: { PolkadotRuntimeCommonCrowdloanFundInfo: {
depositor: 'AccountId32', depositor: 'AccountId32',
@@ -2130,10 +2174,10 @@ export default {
lastContribution: 'PolkadotRuntimeCommonCrowdloanLastContribution', lastContribution: 'PolkadotRuntimeCommonCrowdloanLastContribution',
firstPeriod: 'u32', firstPeriod: 'u32',
lastPeriod: 'u32', lastPeriod: 'u32',
trieIndex: 'u32' fundIndex: 'u32'
}, },
/** /**
* Lookup653: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber> * Lookup664: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
**/ **/
PolkadotRuntimeCommonCrowdloanLastContribution: { PolkadotRuntimeCommonCrowdloanLastContribution: {
_enum: { _enum: {
@@ -2143,13 +2187,13 @@ export default {
} }
}, },
/** /**
* Lookup654: polkadot_runtime_common::crowdloan::pallet::Error<T> * Lookup665: polkadot_runtime_common::crowdloan::pallet::Error<T>
**/ **/
PolkadotRuntimeCommonCrowdloanPalletError: { PolkadotRuntimeCommonCrowdloanPalletError: {
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod'] _enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
}, },
/** /**
* Lookup655: pallet_xcm::pallet::QueryStatus<BlockNumber> * Lookup666: pallet_xcm::pallet::QueryStatus<BlockNumber>
**/ **/
PalletXcmQueryStatus: { PalletXcmQueryStatus: {
_enum: { _enum: {
@@ -2169,7 +2213,7 @@ export default {
} }
}, },
/** /**
* Lookup658: xcm::VersionedResponse * Lookup669: xcm::VersionedResponse
**/ **/
XcmVersionedResponse: { XcmVersionedResponse: {
_enum: { _enum: {
@@ -2179,7 +2223,7 @@ export default {
} }
}, },
/** /**
* Lookup664: pallet_xcm::pallet::VersionMigrationStage * Lookup675: pallet_xcm::pallet::VersionMigrationStage
**/ **/
PalletXcmVersionMigrationStage: { PalletXcmVersionMigrationStage: {
_enum: { _enum: {
@@ -2190,21 +2234,21 @@ export default {
} }
}, },
/** /**
* Lookup665: pallet_xcm::pallet::Error<T> * Lookup676: pallet_xcm::pallet::Error<T>
**/ **/
PalletXcmError: { PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed'] _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
}, },
/** /**
* Lookup676: pallet_transaction_payment::ChargeTransactionPayment<T> * Lookup687: pallet_transaction_payment::ChargeTransactionPayment<T>
**/ **/
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>', PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/** /**
* Lookup677: polkadot_runtime_common::claims::PrevalidateAttests<T> * Lookup688: polkadot_runtime_common::claims::PrevalidateAttests<T>
**/ **/
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null', PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
/** /**
* Lookup678: polkadot_runtime::Runtime * Lookup689: polkadot_runtime::Runtime
**/ **/
PolkadotRuntimeRuntime: 'Null' PolkadotRuntimeRuntime: 'Null'
}; };
File diff suppressed because it is too large Load Diff
@@ -2,9 +2,9 @@
/* eslint-disable */ /* eslint-disable */
declare module '@polkadot/types/lookup' { declare module '@polkadot/types/lookup' {
import type { BitVec, Compact, Enum, Null, Option, Struct, Vec, u16, u32 } from '@polkadot/types-codec'; import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types'; import type { ITuple } from '@polkadot/types-codec/types';
import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime'; import type { PerU16 } from '@polkadot/types/interfaces/runtime';
/** @name KusamaRuntimeProxyType (75) */ /** @name KusamaRuntimeProxyType (75) */
export interface KusamaRuntimeProxyType extends Enum { export interface KusamaRuntimeProxyType extends Enum {
@@ -15,37 +15,11 @@ declare module '@polkadot/types/lookup' {
readonly isIdentityJudgement: boolean; readonly isIdentityJudgement: boolean;
readonly isCancelProxy: boolean; readonly isCancelProxy: boolean;
readonly isAuction: boolean; readonly isAuction: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction'; readonly isSociety: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
} }
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (105) */ /** @name KusamaRuntimeSessionKeys (251) */
export interface PolkadotRuntimeParachainsDisputesPalletEvent extends Enum {
readonly isDisputeInitiated: boolean;
readonly asDisputeInitiated: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
readonly isDisputeConcluded: boolean;
readonly asDisputeConcluded: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeResult]>;
readonly isDisputeTimedOut: boolean;
readonly asDisputeTimedOut: H256;
readonly isRevert: boolean;
readonly asRevert: u32;
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'DisputeTimedOut' | 'Revert';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (107) */
export interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
readonly isLocal: boolean;
readonly isRemote: boolean;
readonly type: 'Local' | 'Remote';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (108) */
export interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
readonly isValid: boolean;
readonly isInvalid: boolean;
readonly type: 'Valid' | 'Invalid';
}
/** @name KusamaRuntimeSessionKeys (248) */
export interface KusamaRuntimeSessionKeys extends Struct { export interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic; readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic; readonly babe: SpConsensusBabeAppPublic;
@@ -55,7 +29,7 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic; readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
} }
/** @name KusamaRuntimeOriginCaller (321) */ /** @name KusamaRuntimeOriginCaller (325) */
export interface KusamaRuntimeOriginCaller extends Enum { export interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean; readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin; readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -71,7 +45,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet'; readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
} }
/** @name KusamaRuntimeNposCompactSolution24 (386) */ /** @name KusamaRuntimeNposCompactSolution24 (390) */
export interface KusamaRuntimeNposCompactSolution24 extends Struct { export interface KusamaRuntimeNposCompactSolution24 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>; readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>; readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
@@ -99,33 +73,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>; readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
} }
/** @name PolkadotRuntimeParachainsDisputesPalletCall (506) */ /** @name KusamaRuntimeRuntime (742) */
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
readonly isForceUnfreeze: boolean;
readonly type: 'ForceUnfreeze';
}
/** @name PolkadotPrimitivesV1DisputeState (702) */
export interface PolkadotPrimitivesV1DisputeState extends Struct {
readonly validatorsFor: BitVec;
readonly validatorsAgainst: BitVec;
readonly start: u32;
readonly concludedAt: Option<u32>;
}
/** @name PolkadotRuntimeParachainsDisputesPalletError (703) */
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
readonly isDuplicateDisputeStatementSets: boolean;
readonly isAncientDisputeStatement: boolean;
readonly isValidatorIndexOutOfBounds: boolean;
readonly isInvalidSignature: boolean;
readonly isDuplicateStatement: boolean;
readonly isPotentialSpam: boolean;
readonly isSingleSidedDispute: boolean;
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
}
/** @name KusamaRuntimeRuntime (738) */
export type KusamaRuntimeRuntime = Null; export type KusamaRuntimeRuntime = Null;
} // declare module } // declare module
@@ -165,7 +165,34 @@ declare module '@polkadot/types/lookup' {
readonly recipient: u32; readonly recipient: u32;
} }
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (102) */ /** @name PolkadotRuntimeParachainsDisputesPalletEvent (102) */
export interface PolkadotRuntimeParachainsDisputesPalletEvent extends Enum {
readonly isDisputeInitiated: boolean;
readonly asDisputeInitiated: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
readonly isDisputeConcluded: boolean;
readonly asDisputeConcluded: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeResult]>;
readonly isDisputeTimedOut: boolean;
readonly asDisputeTimedOut: H256;
readonly isRevert: boolean;
readonly asRevert: u32;
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'DisputeTimedOut' | 'Revert';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (104) */
export interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
readonly isLocal: boolean;
readonly isRemote: boolean;
readonly type: 'Local' | 'Remote';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (105) */
export interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
readonly isValid: boolean;
readonly isInvalid: boolean;
readonly type: 'Valid' | 'Invalid';
}
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (106) */
export interface PolkadotRuntimeCommonParasRegistrarPalletEvent extends Enum { export interface PolkadotRuntimeCommonParasRegistrarPalletEvent extends Enum {
readonly isRegistered: boolean; readonly isRegistered: boolean;
readonly asRegistered: ITuple<[u32, AccountId32]>; readonly asRegistered: ITuple<[u32, AccountId32]>;
@@ -176,7 +203,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Registered' | 'Deregistered' | 'Reserved'; readonly type: 'Registered' | 'Deregistered' | 'Reserved';
} }
/** @name PolkadotRuntimeCommonSlotsPalletEvent (103) */ /** @name PolkadotRuntimeCommonSlotsPalletEvent (107) */
export interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum { export interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum {
readonly isNewLeasePeriod: boolean; readonly isNewLeasePeriod: boolean;
readonly asNewLeasePeriod: u32; readonly asNewLeasePeriod: u32;
@@ -185,7 +212,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NewLeasePeriod' | 'Leased'; readonly type: 'NewLeasePeriod' | 'Leased';
} }
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (104) */ /** @name PolkadotRuntimeCommonAuctionsPalletEvent (108) */
export interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum { export interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum {
readonly isAuctionStarted: boolean; readonly isAuctionStarted: boolean;
readonly asAuctionStarted: ITuple<[u32, u32, u32]>; readonly asAuctionStarted: ITuple<[u32, u32, u32]>;
@@ -204,7 +231,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset'; readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
} }
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (105) */ /** @name PolkadotRuntimeCommonCrowdloanPalletEvent (109) */
export interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum { export interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum {
readonly isCreated: boolean; readonly isCreated: boolean;
readonly asCreated: u32; readonly asCreated: u32;
@@ -229,7 +256,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise'; readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
} }
/** @name PalletXcmEvent (106) */ /** @name PalletXcmEvent (110) */
export interface PalletXcmEvent extends Enum { export interface PalletXcmEvent extends Enum {
readonly isAttempted: boolean; readonly isAttempted: boolean;
readonly asAttempted: XcmV2TraitsOutcome; readonly asAttempted: XcmV2TraitsOutcome;
@@ -266,13 +293,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail'; readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
} }
/** @name XcmV1MultiLocation (107) */ /** @name XcmV1MultiLocation (111) */
export interface XcmV1MultiLocation extends Struct { export interface XcmV1MultiLocation extends Struct {
readonly parents: u8; readonly parents: u8;
readonly interior: XcmV1MultilocationJunctions; readonly interior: XcmV1MultilocationJunctions;
} }
/** @name XcmV1MultilocationJunctions (108) */ /** @name XcmV1MultilocationJunctions (112) */
export interface XcmV1MultilocationJunctions extends Enum { export interface XcmV1MultilocationJunctions extends Enum {
readonly isHere: boolean; readonly isHere: boolean;
readonly isX1: boolean; readonly isX1: boolean;
@@ -294,7 +321,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
} }
/** @name XcmV1Junction (109) */ /** @name XcmV1Junction (113) */
export interface XcmV1Junction extends Enum { export interface XcmV1Junction extends Enum {
readonly isParachain: boolean; readonly isParachain: boolean;
readonly asParachain: Compact<u32>; readonly asParachain: Compact<u32>;
@@ -328,7 +355,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality'; readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
} }
/** @name XcmV0JunctionNetworkId (111) */ /** @name XcmV0JunctionNetworkId (115) */
export interface XcmV0JunctionNetworkId extends Enum { export interface XcmV0JunctionNetworkId extends Enum {
readonly isAny: boolean; readonly isAny: boolean;
readonly isNamed: boolean; readonly isNamed: boolean;
@@ -338,7 +365,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama'; readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
} }
/** @name XcmV0JunctionBodyId (113) */ /** @name XcmV0JunctionBodyId (117) */
export interface XcmV0JunctionBodyId extends Enum { export interface XcmV0JunctionBodyId extends Enum {
readonly isUnit: boolean; readonly isUnit: boolean;
readonly isNamed: boolean; readonly isNamed: boolean;
@@ -352,7 +379,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial'; readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
} }
/** @name XcmV0JunctionBodyPart (114) */ /** @name XcmV0JunctionBodyPart (118) */
export interface XcmV0JunctionBodyPart extends Enum { export interface XcmV0JunctionBodyPart extends Enum {
readonly isVoice: boolean; readonly isVoice: boolean;
readonly isMembers: boolean; readonly isMembers: boolean;
@@ -377,10 +404,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion'; readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
} }
/** @name XcmV2Xcm (115) */ /** @name XcmV2Xcm (119) */
export interface XcmV2Xcm extends Vec<XcmV2Instruction> {} export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
/** @name XcmV2Instruction (117) */ /** @name XcmV2Instruction (121) */
export interface XcmV2Instruction extends Enum { export interface XcmV2Instruction extends Enum {
readonly isWithdrawAsset: boolean; readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: XcmV1MultiassetMultiAssets; readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;
@@ -500,16 +527,16 @@ declare module '@polkadot/types/lookup' {
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion'; readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
} }
/** @name XcmV1MultiassetMultiAssets (118) */ /** @name XcmV1MultiassetMultiAssets (122) */
export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {} export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
/** @name XcmV1MultiAsset (120) */ /** @name XcmV1MultiAsset (124) */
export interface XcmV1MultiAsset extends Struct { export interface XcmV1MultiAsset extends Struct {
readonly id: XcmV1MultiassetAssetId; readonly id: XcmV1MultiassetAssetId;
readonly fun: XcmV1MultiassetFungibility; readonly fun: XcmV1MultiassetFungibility;
} }
/** @name XcmV1MultiassetAssetId (121) */ /** @name XcmV1MultiassetAssetId (125) */
export interface XcmV1MultiassetAssetId extends Enum { export interface XcmV1MultiassetAssetId extends Enum {
readonly isConcrete: boolean; readonly isConcrete: boolean;
readonly asConcrete: XcmV1MultiLocation; readonly asConcrete: XcmV1MultiLocation;
@@ -518,7 +545,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Concrete' | 'Abstract'; readonly type: 'Concrete' | 'Abstract';
} }
/** @name XcmV1MultiassetFungibility (122) */ /** @name XcmV1MultiassetFungibility (126) */
export interface XcmV1MultiassetFungibility extends Enum { export interface XcmV1MultiassetFungibility extends Enum {
readonly isFungible: boolean; readonly isFungible: boolean;
readonly asFungible: Compact<u128>; readonly asFungible: Compact<u128>;
@@ -527,7 +554,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Fungible' | 'NonFungible'; readonly type: 'Fungible' | 'NonFungible';
} }
/** @name XcmV1MultiassetAssetInstance (123) */ /** @name XcmV1MultiassetAssetInstance (127) */
export interface XcmV1MultiassetAssetInstance extends Enum { export interface XcmV1MultiassetAssetInstance extends Enum {
readonly isUndefined: boolean; readonly isUndefined: boolean;
readonly isIndex: boolean; readonly isIndex: boolean;
@@ -545,7 +572,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob'; readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
} }
/** @name XcmV2Response (125) */ /** @name XcmV2Response (129) */
export interface XcmV2Response extends Enum { export interface XcmV2Response extends Enum {
readonly isNull: boolean; readonly isNull: boolean;
readonly isAssets: boolean; readonly isAssets: boolean;
@@ -557,7 +584,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
} }
/** @name XcmV0OriginKind (128) */ /** @name XcmV0OriginKind (132) */
export interface XcmV0OriginKind extends Enum { export interface XcmV0OriginKind extends Enum {
readonly isNative: boolean; readonly isNative: boolean;
readonly isSovereignAccount: boolean; readonly isSovereignAccount: boolean;
@@ -566,12 +593,12 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm'; readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
} }
/** @name XcmDoubleEncoded (129) */ /** @name XcmDoubleEncoded (133) */
export interface XcmDoubleEncoded extends Struct { export interface XcmDoubleEncoded extends Struct {
readonly encoded: Bytes; readonly encoded: Bytes;
} }
/** @name XcmV1MultiassetMultiAssetFilter (130) */ /** @name XcmV1MultiassetMultiAssetFilter (134) */
export interface XcmV1MultiassetMultiAssetFilter extends Enum { export interface XcmV1MultiassetMultiAssetFilter extends Enum {
readonly isDefinite: boolean; readonly isDefinite: boolean;
readonly asDefinite: XcmV1MultiassetMultiAssets; readonly asDefinite: XcmV1MultiassetMultiAssets;
@@ -580,7 +607,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Definite' | 'Wild'; readonly type: 'Definite' | 'Wild';
} }
/** @name XcmV1MultiassetWildMultiAsset (131) */ /** @name XcmV1MultiassetWildMultiAsset (135) */
export interface XcmV1MultiassetWildMultiAsset extends Enum { export interface XcmV1MultiassetWildMultiAsset extends Enum {
readonly isAll: boolean; readonly isAll: boolean;
readonly isAllOf: boolean; readonly isAllOf: boolean;
@@ -591,14 +618,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'All' | 'AllOf'; readonly type: 'All' | 'AllOf';
} }
/** @name XcmV1MultiassetWildFungibility (132) */ /** @name XcmV1MultiassetWildFungibility (136) */
export interface XcmV1MultiassetWildFungibility extends Enum { export interface XcmV1MultiassetWildFungibility extends Enum {
readonly isFungible: boolean; readonly isFungible: boolean;
readonly isNonFungible: boolean; readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible'; readonly type: 'Fungible' | 'NonFungible';
} }
/** @name XcmV2WeightLimit (133) */ /** @name XcmV2WeightLimit (137) */
export interface XcmV2WeightLimit extends Enum { export interface XcmV2WeightLimit extends Enum {
readonly isUnlimited: boolean; readonly isUnlimited: boolean;
readonly isLimited: boolean; readonly isLimited: boolean;
@@ -606,7 +633,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unlimited' | 'Limited'; readonly type: 'Unlimited' | 'Limited';
} }
/** @name XcmVersionedMultiAssets (135) */ /** @name XcmVersionedMultiAssets (139) */
export interface XcmVersionedMultiAssets extends Enum { export interface XcmVersionedMultiAssets extends Enum {
readonly isV0: boolean; readonly isV0: boolean;
readonly asV0: Vec<XcmV0MultiAsset>; readonly asV0: Vec<XcmV0MultiAsset>;
@@ -615,7 +642,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1'; readonly type: 'V0' | 'V1';
} }
/** @name XcmV0MultiAsset (137) */ /** @name XcmV0MultiAsset (141) */
export interface XcmV0MultiAsset extends Enum { export interface XcmV0MultiAsset extends Enum {
readonly isNone: boolean; readonly isNone: boolean;
readonly isAll: boolean; readonly isAll: boolean;
@@ -660,7 +687,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible'; readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
} }
/** @name XcmV0MultiLocation (138) */ /** @name XcmV0MultiLocation (142) */
export interface XcmV0MultiLocation extends Enum { export interface XcmV0MultiLocation extends Enum {
readonly isNull: boolean; readonly isNull: boolean;
readonly isX1: boolean; readonly isX1: boolean;
@@ -682,7 +709,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
} }
/** @name XcmV0Junction (139) */ /** @name XcmV0Junction (143) */
export interface XcmV0Junction extends Enum { export interface XcmV0Junction extends Enum {
readonly isParent: boolean; readonly isParent: boolean;
readonly isParachain: boolean; readonly isParachain: boolean;
@@ -717,7 +744,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality'; readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
} }
/** @name XcmVersionedMultiLocation (140) */ /** @name XcmVersionedMultiLocation (144) */
export interface XcmVersionedMultiLocation extends Enum { export interface XcmVersionedMultiLocation extends Enum {
readonly isV0: boolean; readonly isV0: boolean;
readonly asV0: XcmV0MultiLocation; readonly asV0: XcmV0MultiLocation;
@@ -726,7 +753,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1'; readonly type: 'V0' | 'V1';
} }
/** @name PolkadotRuntimeSessionKeys (198) */ /** @name PolkadotRuntimeSessionKeys (204) */
export interface PolkadotRuntimeSessionKeys extends Struct { export interface PolkadotRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic; readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic; readonly babe: SpConsensusBabeAppPublic;
@@ -736,13 +763,13 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic; readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
} }
/** @name PolkadotPrimitivesV0ValidatorAppPublic (199) */ /** @name PolkadotPrimitivesV0ValidatorAppPublic (205) */
export interface PolkadotPrimitivesV0ValidatorAppPublic extends SpCoreSr25519Public {} export interface PolkadotPrimitivesV0ValidatorAppPublic extends SpCoreSr25519Public {}
/** @name PolkadotPrimitivesV1AssignmentAppPublic (200) */ /** @name PolkadotPrimitivesV1AssignmentAppPublic (206) */
export interface PolkadotPrimitivesV1AssignmentAppPublic extends SpCoreSr25519Public {} export interface PolkadotPrimitivesV1AssignmentAppPublic extends SpCoreSr25519Public {}
/** @name PolkadotRuntimeCommonClaimsPalletCall (229) */ /** @name PolkadotRuntimeCommonClaimsPalletCall (236) */
export interface PolkadotRuntimeCommonClaimsPalletCall extends Enum { export interface PolkadotRuntimeCommonClaimsPalletCall extends Enum {
readonly isClaim: boolean; readonly isClaim: boolean;
readonly asClaim: { readonly asClaim: {
@@ -775,17 +802,17 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim'; readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim';
} }
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (230) */ /** @name PolkadotRuntimeCommonClaimsEcdsaSignature (237) */
export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {} export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
/** @name PolkadotRuntimeCommonClaimsStatementKind (235) */ /** @name PolkadotRuntimeCommonClaimsStatementKind (242) */
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum { export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
readonly isRegular: boolean; readonly isRegular: boolean;
readonly isSaft: boolean; readonly isSaft: boolean;
readonly type: 'Regular' | 'Saft'; readonly type: 'Regular' | 'Saft';
} }
/** @name PolkadotRuntimeOriginCaller (240) */ /** @name PolkadotRuntimeOriginCaller (247) */
export interface PolkadotRuntimeOriginCaller extends Enum { export interface PolkadotRuntimeOriginCaller extends Enum {
readonly isSystem: boolean; readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin; readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -801,14 +828,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet'; readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
} }
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (244) */ /** @name PolkadotRuntimeParachainsOriginPalletOrigin (251) */
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum { export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
readonly isParachain: boolean; readonly isParachain: boolean;
readonly asParachain: u32; readonly asParachain: u32;
readonly type: 'Parachain'; readonly type: 'Parachain';
} }
/** @name PalletXcmOrigin (245) */ /** @name PalletXcmOrigin (252) */
export interface PalletXcmOrigin extends Enum { export interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean; readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation; readonly asXcm: XcmV1MultiLocation;
@@ -817,7 +844,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Xcm' | 'Response'; readonly type: 'Xcm' | 'Response';
} }
/** @name PolkadotRuntimeNposCompactSolution16 (296) */ /** @name PolkadotRuntimeNposCompactSolution16 (303) */
export interface PolkadotRuntimeNposCompactSolution16 extends Struct { export interface PolkadotRuntimeNposCompactSolution16 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>; readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>; readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
@@ -837,7 +864,7 @@ declare module '@polkadot/types/lookup' {
readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>; readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
} }
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (354) */ /** @name PolkadotRuntimeParachainsConfigurationPalletCall (361) */
export interface PolkadotRuntimeParachainsConfigurationPalletCall extends Enum { export interface PolkadotRuntimeParachainsConfigurationPalletCall extends Enum {
readonly isSetValidationUpgradeCooldown: boolean; readonly isSetValidationUpgradeCooldown: boolean;
readonly asSetValidationUpgradeCooldown: { readonly asSetValidationUpgradeCooldown: {
@@ -1022,13 +1049,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeMaxSpamSlots' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight' | 'SetPvfCheckingEnabled' | 'SetPvfVotingTtl' | 'SetMinimumValidationUpgradeDelay' | 'SetBypassConsistencyCheck'; readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeMaxSpamSlots' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight' | 'SetPvfCheckingEnabled' | 'SetPvfVotingTtl' | 'SetMinimumValidationUpgradeDelay' | 'SetBypassConsistencyCheck';
} }
/** @name PolkadotRuntimeParachainsSharedPalletCall (355) */ /** @name PolkadotRuntimeParachainsSharedPalletCall (362) */
export type PolkadotRuntimeParachainsSharedPalletCall = Null; export type PolkadotRuntimeParachainsSharedPalletCall = Null;
/** @name PolkadotRuntimeParachainsInclusionPalletCall (356) */ /** @name PolkadotRuntimeParachainsInclusionPalletCall (363) */
export type PolkadotRuntimeParachainsInclusionPalletCall = Null; export type PolkadotRuntimeParachainsInclusionPalletCall = Null;
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (357) */ /** @name PolkadotRuntimeParachainsParasInherentPalletCall (364) */
export interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum { export interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum {
readonly isEnter: boolean; readonly isEnter: boolean;
readonly asEnter: { readonly asEnter: {
@@ -1037,7 +1064,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Enter'; readonly type: 'Enter';
} }
/** @name PolkadotPrimitivesV1InherentData (358) */ /** @name PolkadotPrimitivesV1InherentData (365) */
export interface PolkadotPrimitivesV1InherentData extends Struct { export interface PolkadotPrimitivesV1InherentData extends Struct {
readonly bitfields: Vec<PolkadotPrimitivesV1SignedUncheckedSigned>; readonly bitfields: Vec<PolkadotPrimitivesV1SignedUncheckedSigned>;
readonly backedCandidates: Vec<PolkadotPrimitivesV1BackedCandidate>; readonly backedCandidates: Vec<PolkadotPrimitivesV1BackedCandidate>;
@@ -1045,33 +1072,33 @@ declare module '@polkadot/types/lookup' {
readonly parentHeader: SpRuntimeHeader; readonly parentHeader: SpRuntimeHeader;
} }
/** @name PolkadotPrimitivesV1SignedUncheckedSigned (360) */ /** @name PolkadotPrimitivesV1SignedUncheckedSigned (367) */
export interface PolkadotPrimitivesV1SignedUncheckedSigned extends Struct { export interface PolkadotPrimitivesV1SignedUncheckedSigned extends Struct {
readonly payload: BitVec; readonly payload: BitVec;
readonly validatorIndex: u32; readonly validatorIndex: u32;
readonly signature: PolkadotPrimitivesV0ValidatorAppSignature; readonly signature: PolkadotPrimitivesV0ValidatorAppSignature;
} }
/** @name BitvecOrderLsb0 (363) */ /** @name BitvecOrderLsb0 (370) */
export type BitvecOrderLsb0 = Null; export type BitvecOrderLsb0 = Null;
/** @name PolkadotPrimitivesV0ValidatorAppSignature (365) */ /** @name PolkadotPrimitivesV0ValidatorAppSignature (372) */
export interface PolkadotPrimitivesV0ValidatorAppSignature extends SpCoreSr25519Signature {} export interface PolkadotPrimitivesV0ValidatorAppSignature extends SpCoreSr25519Signature {}
/** @name PolkadotPrimitivesV1BackedCandidate (367) */ /** @name PolkadotPrimitivesV1BackedCandidate (374) */
export interface PolkadotPrimitivesV1BackedCandidate extends Struct { export interface PolkadotPrimitivesV1BackedCandidate extends Struct {
readonly candidate: PolkadotPrimitivesV1CommittedCandidateReceipt; readonly candidate: PolkadotPrimitivesV1CommittedCandidateReceipt;
readonly validityVotes: Vec<PolkadotPrimitivesV0ValidityAttestation>; readonly validityVotes: Vec<PolkadotPrimitivesV0ValidityAttestation>;
readonly validatorIndices: BitVec; readonly validatorIndices: BitVec;
} }
/** @name PolkadotPrimitivesV1CommittedCandidateReceipt (368) */ /** @name PolkadotPrimitivesV1CommittedCandidateReceipt (375) */
export interface PolkadotPrimitivesV1CommittedCandidateReceipt extends Struct { export interface PolkadotPrimitivesV1CommittedCandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor; readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
readonly commitments: PolkadotPrimitivesV1CandidateCommitments; readonly commitments: PolkadotPrimitivesV1CandidateCommitments;
} }
/** @name PolkadotPrimitivesV1CandidateCommitments (369) */ /** @name PolkadotPrimitivesV1CandidateCommitments (376) */
export interface PolkadotPrimitivesV1CandidateCommitments extends Struct { export interface PolkadotPrimitivesV1CandidateCommitments extends Struct {
readonly upwardMessages: Vec<Bytes>; readonly upwardMessages: Vec<Bytes>;
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>; readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
@@ -1081,13 +1108,13 @@ declare module '@polkadot/types/lookup' {
readonly hrmpWatermark: u32; readonly hrmpWatermark: u32;
} }
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (371) */ /** @name PolkadotCorePrimitivesOutboundHrmpMessage (378) */
export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct { export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
readonly recipient: u32; readonly recipient: u32;
readonly data: Bytes; readonly data: Bytes;
} }
/** @name PolkadotPrimitivesV0ValidityAttestation (375) */ /** @name PolkadotPrimitivesV0ValidityAttestation (382) */
export interface PolkadotPrimitivesV0ValidityAttestation extends Enum { export interface PolkadotPrimitivesV0ValidityAttestation extends Enum {
readonly isImplicit: boolean; readonly isImplicit: boolean;
readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature; readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature;
@@ -1096,14 +1123,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Implicit' | 'Explicit'; readonly type: 'Implicit' | 'Explicit';
} }
/** @name PolkadotPrimitivesV1DisputeStatementSet (377) */ /** @name PolkadotPrimitivesV1DisputeStatementSet (384) */
export interface PolkadotPrimitivesV1DisputeStatementSet extends Struct { export interface PolkadotPrimitivesV1DisputeStatementSet extends Struct {
readonly candidateHash: H256; readonly candidateHash: H256;
readonly session: u32; readonly session: u32;
readonly statements: Vec<ITuple<[PolkadotPrimitivesV1DisputeStatement, u32, PolkadotPrimitivesV0ValidatorAppSignature]>>; readonly statements: Vec<ITuple<[PolkadotPrimitivesV1DisputeStatement, u32, PolkadotPrimitivesV0ValidatorAppSignature]>>;
} }
/** @name PolkadotPrimitivesV1DisputeStatement (381) */ /** @name PolkadotPrimitivesV1DisputeStatement (387) */
export interface PolkadotPrimitivesV1DisputeStatement extends Enum { export interface PolkadotPrimitivesV1DisputeStatement extends Enum {
readonly isValid: boolean; readonly isValid: boolean;
readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind; readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind;
@@ -1112,7 +1139,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Valid' | 'Invalid'; readonly type: 'Valid' | 'Invalid';
} }
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (382) */ /** @name PolkadotPrimitivesV1ValidDisputeStatementKind (388) */
export interface PolkadotPrimitivesV1ValidDisputeStatementKind extends Enum { export interface PolkadotPrimitivesV1ValidDisputeStatementKind extends Enum {
readonly isExplicit: boolean; readonly isExplicit: boolean;
readonly isBackingSeconded: boolean; readonly isBackingSeconded: boolean;
@@ -1123,13 +1150,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking'; readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
} }
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (383) */ /** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (389) */
export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum { export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean; readonly isExplicit: boolean;
readonly type: 'Explicit'; readonly type: 'Explicit';
} }
/** @name PolkadotRuntimeParachainsParasPalletCall (384) */ /** @name PolkadotRuntimeParachainsParasPalletCall (390) */
export interface PolkadotRuntimeParachainsParasPalletCall extends Enum { export interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
readonly isForceSetCurrentCode: boolean; readonly isForceSetCurrentCode: boolean;
readonly asForceSetCurrentCode: { readonly asForceSetCurrentCode: {
@@ -1172,7 +1199,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement'; readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
} }
/** @name PolkadotPrimitivesV2PvfCheckStatement (385) */ /** @name PolkadotPrimitivesV2PvfCheckStatement (391) */
export interface PolkadotPrimitivesV2PvfCheckStatement extends Struct { export interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
readonly accept: bool; readonly accept: bool;
readonly subject: H256; readonly subject: H256;
@@ -1180,7 +1207,7 @@ declare module '@polkadot/types/lookup' {
readonly validatorIndex: u32; readonly validatorIndex: u32;
} }
/** @name PolkadotRuntimeParachainsInitializerPalletCall (386) */ /** @name PolkadotRuntimeParachainsInitializerPalletCall (392) */
export interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum { export interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
readonly isForceApprove: boolean; readonly isForceApprove: boolean;
readonly asForceApprove: { readonly asForceApprove: {
@@ -1189,10 +1216,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceApprove'; readonly type: 'ForceApprove';
} }
/** @name PolkadotRuntimeParachainsDmpPalletCall (387) */ /** @name PolkadotRuntimeParachainsDmpPalletCall (393) */
export type PolkadotRuntimeParachainsDmpPalletCall = Null; export type PolkadotRuntimeParachainsDmpPalletCall = Null;
/** @name PolkadotRuntimeParachainsUmpPalletCall (388) */ /** @name PolkadotRuntimeParachainsUmpPalletCall (394) */
export interface PolkadotRuntimeParachainsUmpPalletCall extends Enum { export interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
readonly isServiceOverweight: boolean; readonly isServiceOverweight: boolean;
readonly asServiceOverweight: { readonly asServiceOverweight: {
@@ -1202,7 +1229,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ServiceOverweight'; readonly type: 'ServiceOverweight';
} }
/** @name PolkadotRuntimeParachainsHrmpPalletCall (389) */ /** @name PolkadotRuntimeParachainsHrmpPalletCall (395) */
export interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum { export interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
readonly isHrmpInitOpenChannel: boolean; readonly isHrmpInitOpenChannel: boolean;
readonly asHrmpInitOpenChannel: { readonly asHrmpInitOpenChannel: {
@@ -1240,7 +1267,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest'; readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest';
} }
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (390) */ /** @name PolkadotRuntimeParachainsDisputesPalletCall (396) */
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
readonly isForceUnfreeze: boolean;
readonly type: 'ForceUnfreeze';
}
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (397) */
export interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum { export interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
readonly isRegister: boolean; readonly isRegister: boolean;
readonly asRegister: { readonly asRegister: {
@@ -1273,7 +1306,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'ForceRemoveLock' | 'Reserve'; readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'ForceRemoveLock' | 'Reserve';
} }
/** @name PolkadotRuntimeCommonSlotsPalletCall (391) */ /** @name PolkadotRuntimeCommonSlotsPalletCall (398) */
export interface PolkadotRuntimeCommonSlotsPalletCall extends Enum { export interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
readonly isForceLease: boolean; readonly isForceLease: boolean;
readonly asForceLease: { readonly asForceLease: {
@@ -1294,7 +1327,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard'; readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
} }
/** @name PolkadotRuntimeCommonAuctionsPalletCall (392) */ /** @name PolkadotRuntimeCommonAuctionsPalletCall (399) */
export interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum { export interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
readonly isNewAuction: boolean; readonly isNewAuction: boolean;
readonly asNewAuction: { readonly asNewAuction: {
@@ -1313,7 +1346,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction'; readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
} }
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (394) */ /** @name PolkadotRuntimeCommonCrowdloanPalletCall (401) */
export interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum { export interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
readonly isCreate: boolean; readonly isCreate: boolean;
readonly asCreate: { readonly asCreate: {
@@ -1369,7 +1402,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll'; readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
} }
/** @name SpRuntimeMultiSigner (396) */ /** @name SpRuntimeMultiSigner (403) */
export interface SpRuntimeMultiSigner extends Enum { export interface SpRuntimeMultiSigner extends Enum {
readonly isEd25519: boolean; readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Public; readonly asEd25519: SpCoreEd25519Public;
@@ -1380,10 +1413,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
} }
/** @name SpCoreEcdsaPublic (397) */ /** @name SpCoreEcdsaPublic (404) */
export interface SpCoreEcdsaPublic extends U8aFixed {} export interface SpCoreEcdsaPublic extends U8aFixed {}
/** @name PalletXcmCall (402) */ /** @name PalletXcmCall (409) */
export interface PalletXcmCall extends Enum { export interface PalletXcmCall extends Enum {
readonly isSend: boolean; readonly isSend: boolean;
readonly asSend: { readonly asSend: {
@@ -1445,7 +1478,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets'; readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
} }
/** @name XcmVersionedXcm (403) */ /** @name XcmVersionedXcm (410) */
export interface XcmVersionedXcm extends Enum { export interface XcmVersionedXcm extends Enum {
readonly isV0: boolean; readonly isV0: boolean;
readonly asV0: XcmV0Xcm; readonly asV0: XcmV0Xcm;
@@ -1456,7 +1489,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1' | 'V2'; readonly type: 'V0' | 'V1' | 'V2';
} }
/** @name XcmV0Xcm (404) */ /** @name XcmV0Xcm (411) */
export interface XcmV0Xcm extends Enum { export interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean; readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: { readonly asWithdrawAsset: {
@@ -1519,7 +1552,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom'; readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
} }
/** @name XcmV0Order (406) */ /** @name XcmV0Order (413) */
export interface XcmV0Order extends Enum { export interface XcmV0Order extends Enum {
readonly isNull: boolean; readonly isNull: boolean;
readonly isDepositAsset: boolean; readonly isDepositAsset: boolean;
@@ -1567,14 +1600,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution'; readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
} }
/** @name XcmV0Response (408) */ /** @name XcmV0Response (415) */
export interface XcmV0Response extends Enum { export interface XcmV0Response extends Enum {
readonly isAssets: boolean; readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>; readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets'; readonly type: 'Assets';
} }
/** @name XcmV1Xcm (409) */ /** @name XcmV1Xcm (416) */
export interface XcmV1Xcm extends Enum { export interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean; readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: { readonly asWithdrawAsset: {
@@ -1643,7 +1676,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion'; readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
} }
/** @name XcmV1Order (411) */ /** @name XcmV1Order (418) */
export interface XcmV1Order extends Enum { export interface XcmV1Order extends Enum {
readonly isNoop: boolean; readonly isNoop: boolean;
readonly isDepositAsset: boolean; readonly isDepositAsset: boolean;
@@ -1693,7 +1726,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution'; readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
} }
/** @name XcmV1Response (413) */ /** @name XcmV1Response (420) */
export interface XcmV1Response extends Enum { export interface XcmV1Response extends Enum {
readonly isAssets: boolean; readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets; readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -1702,7 +1735,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Assets' | 'Version'; readonly type: 'Assets' | 'Version';
} }
/** @name PolkadotRuntimeCommonClaimsPalletError (530) */ /** @name PolkadotRuntimeCommonClaimsPalletError (538) */
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum { export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
readonly isInvalidEthereumSignature: boolean; readonly isInvalidEthereumSignature: boolean;
readonly isSignerHasNoClaim: boolean; readonly isSignerHasNoClaim: boolean;
@@ -1713,7 +1746,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists'; readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
} }
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (582) */ /** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (590) */
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct { export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
readonly maxCodeSize: u32; readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32; readonly maxHeadDataSize: u32;
@@ -1760,7 +1793,7 @@ declare module '@polkadot/types/lookup' {
readonly minimumValidationUpgradeDelay: u32; readonly minimumValidationUpgradeDelay: u32;
} }
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (583) */ /** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (591) */
export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct { export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct {
readonly maxCodeSize: u32; readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32; readonly maxHeadDataSize: u32;
@@ -1804,19 +1837,19 @@ declare module '@polkadot/types/lookup' {
readonly umpMaxIndividualWeight: u64; readonly umpMaxIndividualWeight: u64;
} }
/** @name PolkadotRuntimeParachainsConfigurationPalletError (586) */ /** @name PolkadotRuntimeParachainsConfigurationPalletError (594) */
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum { export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
readonly isInvalidNewValue: boolean; readonly isInvalidNewValue: boolean;
readonly type: 'InvalidNewValue'; readonly type: 'InvalidNewValue';
} }
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (589) */ /** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (597) */
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct { export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
readonly bitfield: BitVec; readonly bitfield: BitVec;
readonly submittedAt: u32; readonly submittedAt: u32;
} }
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (590) */ /** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (598) */
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct { export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
readonly core: u32; readonly core: u32;
readonly hash_: H256; readonly hash_: H256;
@@ -1828,7 +1861,7 @@ declare module '@polkadot/types/lookup' {
readonly backingGroup: u32; readonly backingGroup: u32;
} }
/** @name PolkadotRuntimeParachainsInclusionPalletError (591) */ /** @name PolkadotRuntimeParachainsInclusionPalletError (599) */
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum { export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
readonly isUnsortedOrDuplicateValidatorIndices: boolean; readonly isUnsortedOrDuplicateValidatorIndices: boolean;
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean; readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
@@ -1862,14 +1895,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore'; readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
} }
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (592) */ /** @name PolkadotPrimitivesV1ScrapedOnChainVotes (600) */
export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct { export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct {
readonly session: u32; readonly session: u32;
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>; readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>;
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>; readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
} }
/** @name PolkadotRuntimeParachainsParasInherentPalletError (597) */ /** @name PolkadotRuntimeParachainsParasInherentPalletError (605) */
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum { export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
readonly isTooManyInclusionInherents: boolean; readonly isTooManyInclusionInherents: boolean;
readonly isInvalidParentHeader: boolean; readonly isInvalidParentHeader: boolean;
@@ -1880,28 +1913,28 @@ declare module '@polkadot/types/lookup' {
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid'; readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
} }
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (599) */ /** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (607) */
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct { export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>; readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
readonly nextCoreOffset: u32; readonly nextCoreOffset: u32;
} }
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (601) */ /** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (609) */
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct { export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadEntry; readonly claim: PolkadotPrimitivesV1ParathreadEntry;
readonly coreOffset: u32; readonly coreOffset: u32;
} }
/** @name PolkadotPrimitivesV1ParathreadEntry (602) */ /** @name PolkadotPrimitivesV1ParathreadEntry (610) */
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct { export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadClaim; readonly claim: PolkadotPrimitivesV1ParathreadClaim;
readonly retries: u32; readonly retries: u32;
} }
/** @name PolkadotPrimitivesV1ParathreadClaim (603) */ /** @name PolkadotPrimitivesV1ParathreadClaim (611) */
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {} export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
/** @name PolkadotPrimitivesV1CoreOccupied (606) */ /** @name PolkadotPrimitivesV1CoreOccupied (614) */
export interface PolkadotPrimitivesV1CoreOccupied extends Enum { export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
readonly isParathread: boolean; readonly isParathread: boolean;
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry; readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
@@ -1909,7 +1942,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parathread' | 'Parachain'; readonly type: 'Parathread' | 'Parachain';
} }
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (609) */ /** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (617) */
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct { export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
readonly core: u32; readonly core: u32;
readonly paraId: u32; readonly paraId: u32;
@@ -1917,7 +1950,7 @@ declare module '@polkadot/types/lookup' {
readonly groupIdx: u32; readonly groupIdx: u32;
} }
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (610) */ /** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (618) */
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum { export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
readonly isParachain: boolean; readonly isParachain: boolean;
readonly isParathread: boolean; readonly isParathread: boolean;
@@ -1925,7 +1958,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parachain' | 'Parathread'; readonly type: 'Parachain' | 'Parathread';
} }
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (611) */ /** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (619) */
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct { export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
readonly votesAccept: BitVec; readonly votesAccept: BitVec;
readonly votesReject: BitVec; readonly votesReject: BitVec;
@@ -1934,7 +1967,7 @@ declare module '@polkadot/types/lookup' {
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>; readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
} }
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (613) */ /** @name PolkadotRuntimeParachainsParasPvfCheckCause (621) */
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum { export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
readonly isOnboarding: boolean; readonly isOnboarding: boolean;
readonly asOnboarding: u32; readonly asOnboarding: u32;
@@ -1946,7 +1979,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Onboarding' | 'Upgrade'; readonly type: 'Onboarding' | 'Upgrade';
} }
/** @name PolkadotRuntimeParachainsParasParaLifecycle (615) */ /** @name PolkadotRuntimeParachainsParasParaLifecycle (623) */
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum { export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
readonly isOnboarding: boolean; readonly isOnboarding: boolean;
readonly isParathread: boolean; readonly isParathread: boolean;
@@ -1958,39 +1991,39 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain'; readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
} }
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (617) */ /** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (625) */
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct { export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>; readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
readonly lastPruned: Option<u32>; readonly lastPruned: Option<u32>;
} }
/** @name PolkadotRuntimeParachainsParasReplacementTimes (619) */ /** @name PolkadotRuntimeParachainsParasReplacementTimes (627) */
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct { export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
readonly expectedAt: u32; readonly expectedAt: u32;
readonly activatedAt: u32; readonly activatedAt: u32;
} }
/** @name PolkadotPrimitivesV1UpgradeGoAhead (621) */ /** @name PolkadotPrimitivesV1UpgradeGoAhead (629) */
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum { export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
readonly isAbort: boolean; readonly isAbort: boolean;
readonly isGoAhead: boolean; readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead'; readonly type: 'Abort' | 'GoAhead';
} }
/** @name PolkadotPrimitivesV1UpgradeRestriction (622) */ /** @name PolkadotPrimitivesV1UpgradeRestriction (630) */
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum { export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
readonly isPresent: boolean; readonly isPresent: boolean;
readonly type: 'Present'; readonly type: 'Present';
} }
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (623) */ /** @name PolkadotRuntimeParachainsParasParaGenesisArgs (631) */
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct { export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
readonly genesisHead: Bytes; readonly genesisHead: Bytes;
readonly validationCode: Bytes; readonly validationCode: Bytes;
readonly parachain: bool; readonly parachain: bool;
} }
/** @name PolkadotRuntimeParachainsParasPalletError (624) */ /** @name PolkadotRuntimeParachainsParasPalletError (632) */
export interface PolkadotRuntimeParachainsParasPalletError extends Enum { export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
readonly isNotRegistered: boolean; readonly isNotRegistered: boolean;
readonly isCannotOnboard: boolean; readonly isCannotOnboard: boolean;
@@ -2007,27 +2040,27 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled'; readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled';
} }
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (626) */ /** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (634) */
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct { export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>; readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>; readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly sessionIndex: u32; readonly sessionIndex: u32;
} }
/** @name PolkadotCorePrimitivesInboundDownwardMessage (628) */ /** @name PolkadotCorePrimitivesInboundDownwardMessage (636) */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct { export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
readonly sentAt: u32; readonly sentAt: u32;
readonly msg: Bytes; readonly msg: Bytes;
} }
/** @name PolkadotRuntimeParachainsUmpPalletError (630) */ /** @name PolkadotRuntimeParachainsUmpPalletError (638) */
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum { export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
readonly isUnknownMessageIndex: boolean; readonly isUnknownMessageIndex: boolean;
readonly isWeightOverLimit: boolean; readonly isWeightOverLimit: boolean;
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit'; readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
} }
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (631) */ /** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (639) */
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct { export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
readonly confirmed: bool; readonly confirmed: bool;
readonly age: u32; readonly age: u32;
@@ -2037,7 +2070,7 @@ declare module '@polkadot/types/lookup' {
readonly maxTotalSize: u32; readonly maxTotalSize: u32;
} }
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (633) */ /** @name PolkadotRuntimeParachainsHrmpHrmpChannel (641) */
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct { export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
readonly maxCapacity: u32; readonly maxCapacity: u32;
readonly maxTotalSize: u32; readonly maxTotalSize: u32;
@@ -2049,13 +2082,13 @@ declare module '@polkadot/types/lookup' {
readonly recipientDeposit: u128; readonly recipientDeposit: u128;
} }
/** @name PolkadotCorePrimitivesInboundHrmpMessage (636) */ /** @name PolkadotCorePrimitivesInboundHrmpMessage (644) */
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct { export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
readonly sentAt: u32; readonly sentAt: u32;
readonly data: Bytes; readonly data: Bytes;
} }
/** @name PolkadotRuntimeParachainsHrmpPalletError (639) */ /** @name PolkadotRuntimeParachainsHrmpPalletError (647) */
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum { export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
readonly isOpenHrmpChannelToSelf: boolean; readonly isOpenHrmpChannelToSelf: boolean;
readonly isOpenHrmpChannelInvalidRecipient: boolean; readonly isOpenHrmpChannelInvalidRecipient: boolean;
@@ -2079,7 +2112,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness'; readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
} }
/** @name PolkadotPrimitivesV2SessionInfo (641) */ /** @name PolkadotPrimitivesV2SessionInfo (649) */
export interface PolkadotPrimitivesV2SessionInfo extends Struct { export interface PolkadotPrimitivesV2SessionInfo extends Struct {
readonly activeValidatorIndices: Vec<u32>; readonly activeValidatorIndices: Vec<u32>;
readonly randomSeed: U8aFixed; readonly randomSeed: U8aFixed;
@@ -2096,14 +2129,34 @@ declare module '@polkadot/types/lookup' {
readonly neededApprovals: u32; readonly neededApprovals: u32;
} }
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (643) */ /** @name PolkadotPrimitivesV1DisputeState (652) */
export interface PolkadotPrimitivesV1DisputeState extends Struct {
readonly validatorsFor: BitVec;
readonly validatorsAgainst: BitVec;
readonly start: u32;
readonly concludedAt: Option<u32>;
}
/** @name PolkadotRuntimeParachainsDisputesPalletError (653) */
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
readonly isDuplicateDisputeStatementSets: boolean;
readonly isAncientDisputeStatement: boolean;
readonly isValidatorIndexOutOfBounds: boolean;
readonly isInvalidSignature: boolean;
readonly isDuplicateStatement: boolean;
readonly isPotentialSpam: boolean;
readonly isSingleSidedDispute: boolean;
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
}
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (654) */
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct { export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
readonly manager: AccountId32; readonly manager: AccountId32;
readonly deposit: u128; readonly deposit: u128;
readonly locked: bool; readonly locked: bool;
} }
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (644) */ /** @name PolkadotRuntimeCommonParasRegistrarPalletError (655) */
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum { export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
readonly isNotRegistered: boolean; readonly isNotRegistered: boolean;
readonly isAlreadyRegistered: boolean; readonly isAlreadyRegistered: boolean;
@@ -2118,17 +2171,18 @@ declare module '@polkadot/types/lookup' {
readonly isParaLocked: boolean; readonly isParaLocked: boolean;
readonly isNotReserved: boolean; readonly isNotReserved: boolean;
readonly isEmptyCode: boolean; readonly isEmptyCode: boolean;
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode'; readonly isCannotSwap: boolean;
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
} }
/** @name PolkadotRuntimeCommonSlotsPalletError (646) */ /** @name PolkadotRuntimeCommonSlotsPalletError (657) */
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum { export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
readonly isParaNotOnboarding: boolean; readonly isParaNotOnboarding: boolean;
readonly isLeaseError: boolean; readonly isLeaseError: boolean;
readonly type: 'ParaNotOnboarding' | 'LeaseError'; readonly type: 'ParaNotOnboarding' | 'LeaseError';
} }
/** @name PolkadotRuntimeCommonAuctionsPalletError (651) */ /** @name PolkadotRuntimeCommonAuctionsPalletError (662) */
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum { export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
readonly isAuctionInProgress: boolean; readonly isAuctionInProgress: boolean;
readonly isLeasePeriodInPast: boolean; readonly isLeasePeriodInPast: boolean;
@@ -2140,7 +2194,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut'; readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
} }
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (652) */ /** @name PolkadotRuntimeCommonCrowdloanFundInfo (663) */
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct { export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
readonly depositor: AccountId32; readonly depositor: AccountId32;
readonly verifier: Option<SpRuntimeMultiSigner>; readonly verifier: Option<SpRuntimeMultiSigner>;
@@ -2151,10 +2205,10 @@ declare module '@polkadot/types/lookup' {
readonly lastContribution: PolkadotRuntimeCommonCrowdloanLastContribution; readonly lastContribution: PolkadotRuntimeCommonCrowdloanLastContribution;
readonly firstPeriod: u32; readonly firstPeriod: u32;
readonly lastPeriod: u32; readonly lastPeriod: u32;
readonly trieIndex: u32; readonly fundIndex: u32;
} }
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (653) */ /** @name PolkadotRuntimeCommonCrowdloanLastContribution (664) */
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum { export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
readonly isNever: boolean; readonly isNever: boolean;
readonly isPreEnding: boolean; readonly isPreEnding: boolean;
@@ -2164,7 +2218,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Never' | 'PreEnding' | 'Ending'; readonly type: 'Never' | 'PreEnding' | 'Ending';
} }
/** @name PolkadotRuntimeCommonCrowdloanPalletError (654) */ /** @name PolkadotRuntimeCommonCrowdloanPalletError (665) */
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum { export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
readonly isFirstPeriodInPast: boolean; readonly isFirstPeriodInPast: boolean;
readonly isFirstPeriodTooFarInFuture: boolean; readonly isFirstPeriodTooFarInFuture: boolean;
@@ -2192,7 +2246,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod'; readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
} }
/** @name PalletXcmQueryStatus (655) */ /** @name PalletXcmQueryStatus (666) */
export interface PalletXcmQueryStatus extends Enum { export interface PalletXcmQueryStatus extends Enum {
readonly isPending: boolean; readonly isPending: boolean;
readonly asPending: { readonly asPending: {
@@ -2213,7 +2267,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Pending' | 'VersionNotifier' | 'Ready'; readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
} }
/** @name XcmVersionedResponse (658) */ /** @name XcmVersionedResponse (669) */
export interface XcmVersionedResponse extends Enum { export interface XcmVersionedResponse extends Enum {
readonly isV0: boolean; readonly isV0: boolean;
readonly asV0: XcmV0Response; readonly asV0: XcmV0Response;
@@ -2224,7 +2278,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1' | 'V2'; readonly type: 'V0' | 'V1' | 'V2';
} }
/** @name PalletXcmVersionMigrationStage (664) */ /** @name PalletXcmVersionMigrationStage (675) */
export interface PalletXcmVersionMigrationStage extends Enum { export interface PalletXcmVersionMigrationStage extends Enum {
readonly isMigrateSupportedVersion: boolean; readonly isMigrateSupportedVersion: boolean;
readonly isMigrateVersionNotifiers: boolean; readonly isMigrateVersionNotifiers: boolean;
@@ -2234,7 +2288,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets'; readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
} }
/** @name PalletXcmError (665) */ /** @name PalletXcmError (676) */
export interface PalletXcmError extends Enum { export interface PalletXcmError extends Enum {
readonly isUnreachable: boolean; readonly isUnreachable: boolean;
readonly isSendFailure: boolean; readonly isSendFailure: boolean;
@@ -2252,13 +2306,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed'; readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
} }
/** @name PalletTransactionPaymentChargeTransactionPayment (676) */ /** @name PalletTransactionPaymentChargeTransactionPayment (687) */
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {} export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (677) */ /** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (688) */
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null; export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
/** @name PolkadotRuntimeRuntime (678) */ /** @name PolkadotRuntimeRuntime (689) */
export type PolkadotRuntimeRuntime = Null; export type PolkadotRuntimeRuntime = Null;
} // declare module } // 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 // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '7.11.1' };
+4 -4
View File
@@ -20,16 +20,16 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.8.1", "@polkadot/types-augment": "7.11.1",
"@polkadot/types-support": "7.8.1", "@polkadot/types-support": "7.11.1",
"@polkadot/util-crypto": "^8.4.1" "@polkadot/util-crypto": "^8.4.1"
} }
} }
@@ -126,52 +126,78 @@ describe('BTreeSet', (): void => {
).toThrowError(/BTreeSet: cannot decode type/); ).toThrowError(/BTreeSet: cannot decode type/);
}); });
it('correctly encodes length', (): void => { describe('enocodedLength & initialU8aLength', (): void => {
expect( it('correctly encodes length', (): void => {
new ( expect(
BTreeSet.with(U32))(registry, mockU32Set).encodedLength new (
).toEqual(17); BTreeSet.with(U32))(registry, mockU32Set).encodedLength
).toEqual(17);
});
it('correctly encodes/decodes empty', (): void => {
const none = new (BTreeSet.with(U32))(registry, []);
// only the length byte
expect(none.toHex()).toEqual('0x00');
expect(none.encodedLength).toEqual(1);
expect(
(new (BTreeSet.with(U32))(registry, none.toHex())).initialU8aLength
).toEqual(none.encodedLength);
});
it('correctly encodes/decodes filled', (): void => {
const some = new (BTreeSet.with(U32))(registry, [1, 2]);
// length byte + 2 values, 2 << 2 with u32 values
expect(some.toHex()).toEqual('0x080100000002000000');
expect(some.encodedLength).toEqual(1 + (4 * 2));
expect(
(new (BTreeSet.with(U32))(registry, some.toHex())).initialU8aLength
).toEqual(some.encodedLength);
});
}); });
it('correctly sorts numeric values', (): void => { describe('sorting', (): void => {
expect( it('correctly sorts numeric values', (): void => {
Array.from(new (BTreeSet.with(I32))(registry, mockI32SetObj)).map((k) => k.toNumber()) expect(
).toEqual([-1000, -255, 0, 255, 1000]); Array.from(new (BTreeSet.with(I32))(registry, mockI32SetObj)).map((k) => k.toNumber())
}); ).toEqual([-1000, -255, 0, 255, 1000]);
});
it('correctly sorts text values', (): void => { it('correctly sorts text values', (): void => {
expect( expect(
Array.from(new (BTreeSet.with(Text))(registry, mockTextSetObj)).map((k) => k.toString()) Array.from(new (BTreeSet.with(Text))(registry, mockTextSetObj)).map((k) => k.toString())
).toEqual(['b', 'ba', 'baz', 'bb', 'c']); ).toEqual(['b', 'ba', 'baz', 'bb', 'c']);
}); });
it('correctly sorts complex tuple values', (): void => { it('correctly sorts complex tuple values', (): void => {
expect( expect(
Array.from(new (BTreeSet.with(U32TextTuple))(registry, mockTupleSetObj)).map((k) => k.toJSON()) Array.from(new (BTreeSet.with(U32TextTuple))(registry, mockTupleSetObj)).map((k) => k.toJSON())
).toEqual([[1, 'baz'], [2, 'b'], [2, 'ba'], [2, 'bb']]); ).toEqual([[1, 'baz'], [2, 'b'], [2, 'ba'], [2, 'bb']]);
}); });
it('correctly sorts complex struct values', (): void => { it('correctly sorts complex struct values', (): void => {
expect( expect(
Array.from(new (BTreeSet.with(MockStruct))(registry, mockStructSetObj)).map((k) => k.toJSON()) Array.from(new (BTreeSet.with(MockStruct))(registry, mockStructSetObj)).map((k) => k.toJSON())
).toEqual([ ).toEqual([
{ int: -1, text: 'b' }, { int: -1, text: 'b' },
{ int: 1, text: 'b' }, { int: 1, text: 'b' },
{ int: -1, text: 'ba' }, { int: -1, text: 'ba' },
{ int: -2, text: 'baz' } { int: -2, text: 'baz' }
]); ]);
}); });
it('correctly sorts complex enum values', (): void => { it('correctly sorts complex enum values', (): void => {
expect( expect(
Array.from(new (BTreeSet.with(MockEnum))(registry, mockEnumSetObj)).map((k) => k.toJSON()) Array.from(new (BTreeSet.with(MockEnum))(registry, mockEnumSetObj)).map((k) => k.toJSON())
).toEqual([ ).toEqual([
{ key1: { int: -1, text: 'b' } }, { key1: { int: -1, text: 'b' } },
{ key1: { int: 1, text: 'b' } }, { key1: { int: 1, text: 'b' } },
{ key2: { int: -1, text: 'b' } }, { key2: { int: -1, text: 'b' } },
{ key3: [2, 'b'] }, { key3: [2, 'b'] },
{ key3: [2, 'ba'] } { key3: [2, 'ba'] }
]); ]);
});
}); });
it('generates sane toRawTypes', (): void => { it('generates sane toRawTypes', (): void => {
@@ -20,7 +20,7 @@ function decodeSetFromU8a<V extends Codec> (registry: Registry, ValClass: CodecC
output.add(values[i]); output.add(values[i]);
} }
return [output, decodedLength + offset]; return [output, decodedLength];
} }
/** @internal */ /** @internal */
@@ -75,6 +75,33 @@ describe('CodecMap', (): void => {
testEncode('toString', mockU32U32MapString); testEncode('toString', mockU32U32MapString);
}); });
describe('enocodedLength & initialU8aLength', (): void => {
it('correctly encodes/decodes empty', (): void => {
const none = new CodecMap(registry, Text, Text, new Map([]));
// only the length byte
expect(none.toHex()).toEqual('0x00');
expect(none.encodedLength).toEqual(1);
expect(
new CodecMap(registry, Text, Text, none.toHex()).initialU8aLength
).toEqual(none.encodedLength);
});
it('correctly encodes/decodes filled', (): void => {
const some = new CodecMap(registry, Text, Text, new Map([
[new Text(registry, '1'), new Text(registry, 'foo')],
[new Text(registry, '2'), new Text(registry, 'bar')]
]));
// length byte + 2 values, 2 << 2 with Text values
expect(some.toHex()).toEqual('0x0804310c666f6f04320c626172');
expect(some.encodedLength).toEqual(1 + ((1 + 1) * 2) + ((1 + 3) * 2));
expect(
new CodecMap(registry, Text, Text, some.toHex()).initialU8aLength
).toEqual(some.encodedLength);
});
});
it('has a sane inspect', (): void => { it('has a sane inspect', (): void => {
expect( expect(
new CodecMap(registry, Text, Text, new Map([ new CodecMap(registry, Text, Text, new Map([
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.11.1' };
+3 -3
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/types": "7.8.1" "@polkadot/types": "7.11.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.11.1' };
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/networks": "^8.4.1", "@polkadot/networks": "^8.4.1",
"@polkadot/types": "7.8.1", "@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.8.1", "@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1" "@polkadot/util": "^8.4.1"
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.11.1' };
+1 -1
View File
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030], [6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090], [7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150], [9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
[11006614, 9151] [11006614, 9151], [11404482, 9160], [11601803, 9170]
]; ];
export default upgrades; export default upgrades;
@@ -10,7 +10,7 @@ const upgrades: ChainUpgradesRaw = [
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26], [1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050], [3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122], [6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140], [8638103, 9151] [8115869, 9140], [8638103, 9151], [9280179, 9170]
]; ];
export default upgrades; export default upgrades;
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
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 // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '7.11.1' };
+5 -5
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs" "./detectPackage.cjs"
], ],
"type": "module", "type": "module",
"version": "7.8.1", "version": "7.11.1",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@polkadot/keyring": "^8.4.1", "@polkadot/keyring": "^8.4.1",
"@polkadot/types-augment": "7.8.1", "@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.8.1", "@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.8.1", "@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1", "@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1", "@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@polkadot/keyring": "^8.4.1", "@polkadot/keyring": "^8.4.1",
"@polkadot/types-support": "7.8.1" "@polkadot/types-support": "7.11.1"
} }
} }
+8 -4
View File
@@ -230,13 +230,11 @@ export class TypeRegistry implements Registry {
} }
public get lookup (): PortableRegistry { public get lookup (): PortableRegistry {
return this.#lookup || this.metadata.lookup; return assertReturn(this.#lookup, 'Lookup has not been set on this registry');
} }
public get metadata (): MetadataLatest { public get metadata (): MetadataLatest {
assert(this.#metadata, 'Metadata has not been set on this registry'); return assertReturn(this.#metadata, 'Metadata has not been set on this registry');
return this.#metadata;
} }
public get unknownTypes (): string[] { public get unknownTypes (): string[] {
@@ -485,6 +483,9 @@ export class TypeRegistry implements Registry {
setLookup (lookup: PortableRegistry): void { setLookup (lookup: PortableRegistry): void {
this.#lookup = lookup; this.#lookup = lookup;
// register all applicable types found
lookup.register();
} }
// sets the metadata // sets the metadata
@@ -492,6 +493,9 @@ export class TypeRegistry implements Registry {
this.#metadata = metadata.asLatest; this.#metadata = metadata.asLatest;
this.#metadataVersion = metadata.version; this.#metadataVersion = metadata.version;
// attach the lookup at this point (before injecting)
this.setLookup(this.#metadata.lookup);
injectExtrinsics(this, this.#metadata, this.#metadataVersion, this.#metadataCalls); injectExtrinsics(this, this.#metadata, this.#metadataVersion, this.#metadataCalls);
injectErrors(this, this.#metadata, this.#metadataVersion, this.#metadataErrors); injectErrors(this, this.#metadata, this.#metadataVersion, this.#metadataErrors);
injectEvents(this, this.#metadata, this.#metadataVersion, this.#metadataEvents); injectEvents(this, this.#metadata, this.#metadataVersion, this.#metadataEvents);
@@ -9,20 +9,11 @@ import type { Definitions } from '../../types';
export default { export default {
rpc: { rpc: {
proveFinality: { proveFinality: {
description: 'Prove finality for the range (begin; end] hash.', description: 'Prove finality for the given block number, returning the Justification for the last block in the set.',
params: [ params: [
{ {
name: 'begin', name: 'blockNumber',
type: 'BlockHash' type: 'BlockNumber'
},
{
name: 'end',
type: 'BlockHash'
},
{
name: 'authoritiesSetId',
type: 'u64',
isOptional: true
} }
], ],
type: 'Option<EncodedFinalityProofs>' type: 'Option<EncodedFinalityProofs>'
@@ -9,9 +9,7 @@ import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDefArray, SiTypeDef
import { sanitize, Struct, u32 } from '@polkadot/types-codec'; import { sanitize, Struct, u32 } from '@polkadot/types-codec';
import { getTypeDef, TypeDefInfo, withTypeString } from '@polkadot/types-create'; import { getTypeDef, TypeDefInfo, withTypeString } from '@polkadot/types-create';
import { assert, isNumber, isString, logger, objectSpread, stringCamelCase, stringify, stringPascalCase } from '@polkadot/util'; import { assert, assertUnreachable, isNumber, isString, logger, objectSpread, stringCamelCase, stringify, stringPascalCase } from '@polkadot/util';
import { assertUnreachable } from './util';
const l = logger('PortableRegistry'); const l = logger('PortableRegistry');
@@ -106,7 +104,7 @@ function matchParts (first: string[], second: (string | Text)[]): boolean {
// check if the path matches the PATHS_ALIAS (with wildcards) // check if the path matches the PATHS_ALIAS (with wildcards)
function getAliasPath (path: SiPath): string | null { function getAliasPath (path: SiPath): string | null {
// TODO We need to handle ink! Balance in some way // TODO We need to handle ink! Balance in some way
return path.length && PATHS_ALIAS.some((p) => matchParts(p, path)) return path.length && PATHS_ALIAS.some((a) => matchParts(a, path))
? path[path.length - 1].toString() ? path[path.length - 1].toString()
: null; : null;
} }
@@ -345,7 +343,9 @@ function extractTypeInfo (lookup: PortableRegistry, portable: PortableType[]): [
export class PortableRegistry extends Struct implements ILookup { export class PortableRegistry extends Struct implements ILookup {
#alias: Record<number, string>; #alias: Record<number, string>;
#lookups: Record<string, string>;
#names: Record<number, string>; #names: Record<number, string>;
#params: Record<string, SiTypeParameter[]>;
#typeDefs: Record<number, TypeDef> = {}; #typeDefs: Record<number, TypeDef> = {};
#types: Record<number, PortableType>; #types: Record<number, PortableType>;
@@ -359,11 +359,11 @@ export class PortableRegistry extends Struct implements ILookup {
const [types, lookups, names, params] = extractTypeInfo(this, this.types); const [types, lookups, names, params] = extractTypeInfo(this, this.types);
this.#alias = extractAliases(params, isContract); this.#alias = extractAliases(params, isContract);
this.#lookups = lookups;
this.#names = names; this.#names = names;
this.#params = params;
this.#types = types; this.#types = types;
registerTypes(this, lookups, names, params);
// console.timeEnd('PortableRegistry') // console.timeEnd('PortableRegistry')
} }
@@ -378,6 +378,10 @@ export class PortableRegistry extends Struct implements ILookup {
return this.getT('types'); return this.getT('types');
} }
public register (): void {
registerTypes(this, this.#lookups, this.#names, this.#params);
}
/** /**
* @description Returns the name for a specific lookup * @description Returns the name for a specific lookup
*/ */
@@ -510,8 +514,13 @@ export class PortableRegistry extends Struct implements ILookup {
} }
#extractBitSequence (_: number, { bitOrderType, bitStoreType }: SiTypeDefBitSequence): TypeDef { #extractBitSequence (_: number, { bitOrderType, bitStoreType }: SiTypeDefBitSequence): TypeDef {
const bitOrder = this.#createSiDef(bitOrderType); // With the v3 of scale-info this swapped around, but obviously the decoder cannot determine
const bitStore = this.#createSiDef(bitStoreType); // the order. With that in-mind, we apply a detection for LSb0/Msb and set accordingly
const a = this.#createSiDef(bitOrderType);
const b = this.#createSiDef(bitStoreType);
const [bitOrder, bitStore] = ['bitvec::order::Lsb0', 'bitvec::order::Msb0'].includes(a.namespace || '')
? [a, b]
: [b, a];
// NOTE: Currently the BitVec type is one-way only, i.e. we only use it to decode, not // NOTE: Currently the BitVec type is one-way only, i.e. we only use it to decode, not
// re-encode stuff. As such we ignore the msb/lsb identifier given by bitOrderType, or rather // re-encode stuff. As such we ignore the msb/lsb identifier given by bitOrderType, or rather
@@ -736,7 +745,7 @@ export class PortableRegistry extends Struct implements ILookup {
return this.getTypeDef(ids[0]); return this.getTypeDef(ids[0]);
} }
const sub = ids.map((type) => this.#createSiDef(type)); const sub = ids.map((t) => this.#createSiDef(t));
return withTypeString(this.registry, { return withTypeString(this.registry, {
info: TypeDefInfo.Tuple, info: TypeDefInfo.Tuple,
@@ -4,7 +4,7 @@
import type { PortableType, Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefComposite, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefVariant, Si1Field, Si1TypeDef, SiTypeDef } from '../../interfaces'; import type { PortableType, Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefComposite, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefVariant, Si1Field, Si1TypeDef, SiTypeDef } from '../../interfaces';
import type { Registry } from '../../types'; import type { Registry } from '../../types';
import { assertUnreachable } from './util'; import { assertUnreachable } from '@polkadot/util';
function convertType (key: 'Compact' | 'Sequence'): (registry: Registry, si: Si0TypeDefSequence) => SiTypeDef { function convertType (key: 'Compact' | 'Sequence'): (registry: Registry, si: Si0TypeDefSequence) => SiTypeDef {
return (registry: Registry, { type }: Si0TypeDefSequence) => return (registry: Registry, { type }: Si0TypeDefSequence) =>
@@ -1,7 +0,0 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function assertUnreachable (_x: never): never {
throw new Error("Didn't expect to get here");
}
+43 -36
View File
@@ -34,9 +34,9 @@ const BOXES = [['<', '>'], ['<', ','], [',', '>'], ['(', ')'], ['(', ','], [',',
* Creates a compatible type mapping * Creates a compatible type mapping
* @internal * @internal
**/ **/
function compatType (compatTypes: TypeSpec[], _type: Text | string): number { function compatType (specs: TypeSpec[], _type: Text | string): number {
const type = _type.toString(); const type = _type.toString();
const index = compatTypes.findIndex(({ def }) => const index = specs.findIndex(({ def }) =>
def.HistoricMetaCompat === type def.HistoricMetaCompat === type
); );
@@ -44,23 +44,29 @@ function compatType (compatTypes: TypeSpec[], _type: Text | string): number {
return index; return index;
} }
return compatTypes.push({ return specs.push({
def: { def: {
HistoricMetaCompat: type HistoricMetaCompat: type
} }
}) - 1; }) - 1;
} }
function makeTupleType (compatTypes: TypeSpec[], entries: number[]): number { function compatTypes (specs: TypeSpec[], ...types: (Text | string)[]): void {
return compatTypes.push({ for (let i = 0; i < types.length; i++) {
compatType(specs, types[i]);
}
}
function makeTupleType (specs: TypeSpec[], entries: number[]): number {
return specs.push({
def: { def: {
Tuple: entries Tuple: entries
} }
}) - 1; }) - 1;
} }
function makeVariantType (modName: Text, variantType: string, compatTypes: TypeSpec[], variants: SiVariant[]): number { function makeVariantType (modName: Text, variantType: string, specs: TypeSpec[], variants: SiVariant[]): number {
return compatTypes.push({ return specs.push({
def: { def: {
Variant: { variants } Variant: { variants }
}, },
@@ -126,14 +132,14 @@ function setTypeOverride (sectionTypes: OverrideModuleType, types: Type[]): void
* Apply module-specific type overrides (always be done as part of toV14) * Apply module-specific type overrides (always be done as part of toV14)
* @internal * @internal
**/ **/
function convertCalls (compatTypes: TypeSpec[], registry: Registry, modName: Text, calls: FunctionMetadataV13[], sectionTypes: OverrideModuleType): PalletCallMetadataV14 { function convertCalls (specs: TypeSpec[], registry: Registry, modName: Text, calls: FunctionMetadataV13[], sectionTypes: OverrideModuleType): PalletCallMetadataV14 {
const variants = calls.map(({ args, docs, name }, index): SiVariant => { const variants = calls.map(({ args, docs, name }, index): SiVariant => {
setTypeOverride(sectionTypes, args.map(({ type }) => type)); setTypeOverride(sectionTypes, args.map(({ type }) => type));
return registry.createTypeUnsafe('SiVariant', [{ return registry.createTypeUnsafe('SiVariant', [{
docs, docs,
fields: args.map(({ name, type }) => fields: args.map(({ name, type }) =>
registry.createTypeUnsafe('SiField', [{ name, type: compatType(compatTypes, type) }]) registry.createTypeUnsafe('SiField', [{ name, type: compatType(specs, type) }])
), ),
index, index,
name name
@@ -141,7 +147,7 @@ function convertCalls (compatTypes: TypeSpec[], registry: Registry, modName: Tex
}); });
return registry.createTypeUnsafe('PalletCallMetadataV14', [{ return registry.createTypeUnsafe('PalletCallMetadataV14', [{
type: makeVariantType(modName, 'Call', compatTypes, variants) type: makeVariantType(modName, 'Call', specs, variants)
}]); }]);
} }
@@ -149,14 +155,14 @@ function convertCalls (compatTypes: TypeSpec[], registry: Registry, modName: Tex
* Apply module-specific type overrides (always be done as part of toV14) * Apply module-specific type overrides (always be done as part of toV14)
* @internal * @internal
*/ */
function convertConstants (compatTypes: TypeSpec[], registry: Registry, constants: ModuleConstantMetadataV13[], sectionTypes: OverrideModuleType): PalletConstantMetadataV14[] { function convertConstants (specs: TypeSpec[], registry: Registry, constants: ModuleConstantMetadataV13[], sectionTypes: OverrideModuleType): PalletConstantMetadataV14[] {
return constants.map(({ docs, name, type, value }): PalletConstantMetadataV14 => { return constants.map(({ docs, name, type, value }): PalletConstantMetadataV14 => {
setTypeOverride(sectionTypes, [type]); setTypeOverride(sectionTypes, [type]);
return registry.createTypeUnsafe('PalletConstantMetadataV14', [{ return registry.createTypeUnsafe('PalletConstantMetadataV14', [{
docs, docs,
name, name,
type: compatType(compatTypes, type), type: compatType(specs, type),
value value
}]); }]);
}); });
@@ -167,7 +173,7 @@ function convertConstants (compatTypes: TypeSpec[], registry: Registry, constant
* @internal * @internal
*/ */
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
function convertErrors (compatTypes: TypeSpec[], registry: Registry, modName: Text, errors: ErrorMetadataV13[], _sectionTypes: OverrideModuleType): PalletErrorMetadataV14 { function convertErrors (specs: TypeSpec[], registry: Registry, modName: Text, errors: ErrorMetadataV13[], _sectionTypes: OverrideModuleType): PalletErrorMetadataV14 {
const variants = errors.map(({ docs, name }, index): SiVariant => const variants = errors.map(({ docs, name }, index): SiVariant =>
registry.createTypeUnsafe('SiVariant', [{ registry.createTypeUnsafe('SiVariant', [{
docs, docs,
@@ -178,7 +184,7 @@ function convertErrors (compatTypes: TypeSpec[], registry: Registry, modName: Te
); );
return registry.createTypeUnsafe('PalletErrorMetadataV14', [{ return registry.createTypeUnsafe('PalletErrorMetadataV14', [{
type: makeVariantType(modName, 'Error', compatTypes, variants) type: makeVariantType(modName, 'Error', specs, variants)
}]); }]);
} }
@@ -186,14 +192,14 @@ function convertErrors (compatTypes: TypeSpec[], registry: Registry, modName: Te
* Apply module-specific type overrides (always be done as part of toV14) * Apply module-specific type overrides (always be done as part of toV14)
* @internal * @internal
**/ **/
function convertEvents (compatTypes: TypeSpec[], registry: Registry, modName: Text, events: EventMetadataV13[], sectionTypes: OverrideModuleType): PalletEventMetadataV14 { function convertEvents (specs: TypeSpec[], registry: Registry, modName: Text, events: EventMetadataV13[], sectionTypes: OverrideModuleType): PalletEventMetadataV14 {
const variants = events.map(({ args, docs, name }, index): SiVariant => { const variants = events.map(({ args, docs, name }, index): SiVariant => {
setTypeOverride(sectionTypes, args); setTypeOverride(sectionTypes, args);
return registry.createTypeUnsafe('SiVariant', [{ return registry.createTypeUnsafe('SiVariant', [{
docs, docs,
fields: args.map((t) => fields: args.map((t) =>
registry.createTypeUnsafe('SiField', [{ type: compatType(compatTypes, t) }]) registry.createTypeUnsafe('SiField', [{ type: compatType(specs, t) }])
), ),
index, index,
name name
@@ -201,20 +207,20 @@ function convertEvents (compatTypes: TypeSpec[], registry: Registry, modName: Te
}); });
return registry.createTypeUnsafe('PalletEventMetadataV14', [{ return registry.createTypeUnsafe('PalletEventMetadataV14', [{
type: makeVariantType(modName, 'Event', compatTypes, variants) type: makeVariantType(modName, 'Event', specs, variants)
}]); }]);
} }
function createMapEntry (compatTypes: TypeSpec[], registry: Registry, sectionTypes: OverrideModuleType, { hashers, keys, value }: MapDef): StorageEntryTypeV14 { function createMapEntry (specs: TypeSpec[], registry: Registry, sectionTypes: OverrideModuleType, { hashers, keys, value }: MapDef): StorageEntryTypeV14 {
setTypeOverride(sectionTypes, [value, ...(Array.isArray(keys) ? keys : [keys])]); setTypeOverride(sectionTypes, [value, ...(Array.isArray(keys) ? keys : [keys])]);
return registry.createTypeUnsafe('StorageEntryTypeV14', [{ return registry.createTypeUnsafe('StorageEntryTypeV14', [{
Map: { Map: {
hashers, hashers,
key: hashers.length === 1 key: hashers.length === 1
? compatType(compatTypes, keys[0]) ? compatType(specs, keys[0])
: makeTupleType(compatTypes, keys.map((t) => compatType(compatTypes, t))), : makeTupleType(specs, keys.map((t) => compatType(specs, t))),
value: compatType(compatTypes, value) value: compatType(specs, value)
} }
}]); }]);
} }
@@ -223,7 +229,7 @@ function createMapEntry (compatTypes: TypeSpec[], registry: Registry, sectionTyp
* Apply module-specific storage type overrides (always part of toV14) * Apply module-specific storage type overrides (always part of toV14)
* @internal * @internal
**/ **/
function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, prefix }: StorageMetadataV13, sectionTypes: OverrideModuleType): PalletStorageMetadataV14 { function convertStorage (specs: TypeSpec[], registry: Registry, { items, prefix }: StorageMetadataV13, sectionTypes: OverrideModuleType): PalletStorageMetadataV14 {
return registry.createTypeUnsafe('PalletStorageMetadataV14', [{ return registry.createTypeUnsafe('PalletStorageMetadataV14', [{
items: items.map(({ docs, fallback, modifier, name, type }): StorageEntryMetadataV14 => { items: items.map(({ docs, fallback, modifier, name, type }): StorageEntryMetadataV14 => {
let entryType: StorageEntryTypeV14; let entryType: StorageEntryTypeV14;
@@ -234,12 +240,12 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
setTypeOverride(sectionTypes, [plain]); setTypeOverride(sectionTypes, [plain]);
entryType = registry.createTypeUnsafe('StorageEntryTypeV14', [{ entryType = registry.createTypeUnsafe('StorageEntryTypeV14', [{
Plain: compatType(compatTypes, plain) Plain: compatType(specs, plain)
}]); }]);
} else if (type.isMap) { } else if (type.isMap) {
const map = type.asMap; const map = type.asMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, { entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: [map.hasher], hashers: [map.hasher],
keys: [map.key], keys: [map.key],
value: map.value value: map.value
@@ -247,7 +253,7 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
} else if (type.isDoubleMap) { } else if (type.isDoubleMap) {
const dm = type.asDoubleMap; const dm = type.asDoubleMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, { entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: [dm.hasher, dm.key2Hasher], hashers: [dm.hasher, dm.key2Hasher],
keys: [dm.key1, dm.key2], keys: [dm.key1, dm.key2],
value: dm.value value: dm.value
@@ -255,7 +261,7 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
} else { } else {
const nm = type.asNMap; const nm = type.asNMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, { entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: nm.hashers, hashers: nm.hashers,
keys: nm.keyVec, keys: nm.keyVec,
value: nm.value value: nm.value
@@ -288,17 +294,17 @@ function convertExtrinsic (registry: Registry, { signedExtensions, version }: Ex
} }
/** @internal */ /** @internal */
function createPallet (compatTypes: TypeSpec[], registry: Registry, mod: ModuleMetadataV13, { calls, constants, errors, events, storage }: { calls: FunctionMetadataV13[] | null, constants: ModuleConstantMetadataV13[], errors: ErrorMetadataV13[] | null, events: EventMetadataV13[] | null, storage: StorageMetadataV13 | null }): PalletMetadataV14 { function createPallet (specs: TypeSpec[], registry: Registry, mod: ModuleMetadataV13, { calls, constants, errors, events, storage }: { calls: FunctionMetadataV13[] | null, constants: ModuleConstantMetadataV13[], errors: ErrorMetadataV13[] | null, events: EventMetadataV13[] | null, storage: StorageMetadataV13 | null }): PalletMetadataV14 {
const sectionTypes = getAliasTypes(registry, stringCamelCase(mod.name)); const sectionTypes = getAliasTypes(registry, stringCamelCase(mod.name));
return registry.createTypeUnsafe('PalletMetadataV14', [{ return registry.createTypeUnsafe('PalletMetadataV14', [{
calls: calls && convertCalls(compatTypes, registry, mod.name, calls, sectionTypes), calls: calls && convertCalls(specs, registry, mod.name, calls, sectionTypes),
constants: convertConstants(compatTypes, registry, constants, sectionTypes), constants: convertConstants(specs, registry, constants, sectionTypes),
errors: errors && convertErrors(compatTypes, registry, mod.name, errors, sectionTypes), errors: errors && convertErrors(specs, registry, mod.name, errors, sectionTypes),
events: events && convertEvents(compatTypes, registry, mod.name, events, sectionTypes), events: events && convertEvents(specs, registry, mod.name, events, sectionTypes),
index: mod.index, index: mod.index,
name: mod.name, name: mod.name,
storage: storage && convertStorage(compatTypes, registry, storage, sectionTypes) storage: storage && convertStorage(specs, registry, storage, sectionTypes)
}]); }]);
} }
@@ -307,14 +313,15 @@ function createPallet (compatTypes: TypeSpec[], registry: Registry, mod: ModuleM
* @internal * @internal
**/ **/
export function toV14 (registry: Registry, v13: MetadataV13, metaVersion: number): MetadataV14 { export function toV14 (registry: Registry, v13: MetadataV13, metaVersion: number): MetadataV14 {
const compatTypes: TypeSpec[] = []; const specs: TypeSpec[] = [];
compatType(compatTypes, 'Null'); // position 0 always has Null // position 0 always has Null, additionally add internal defaults
compatTypes(specs, 'Null', 'u8', 'u16', 'u32', 'u64');
registerOriginCaller(registry, v13.modules, metaVersion); registerOriginCaller(registry, v13.modules, metaVersion);
const extrinsic = convertExtrinsic(registry, v13.extrinsic); const extrinsic = convertExtrinsic(registry, v13.extrinsic);
const pallets = v13.modules.map((mod) => const pallets = v13.modules.map((mod) =>
createPallet(compatTypes, registry, mod, { createPallet(specs, registry, mod, {
calls: mod.calls.unwrapOr(null), calls: mod.calls.unwrapOr(null),
constants: mod.constants, constants: mod.constants,
errors: mod.errors.length ? mod.errors : null, errors: mod.errors.length ? mod.errors : null,
@@ -326,7 +333,7 @@ export function toV14 (registry: Registry, v13: MetadataV13, metaVersion: number
return registry.createTypeUnsafe('MetadataV14', [{ return registry.createTypeUnsafe('MetadataV14', [{
extrinsic, extrinsic,
lookup: { lookup: {
types: compatTypes.map((type, id) => types: specs.map((type, id) =>
registry.createTypeUnsafe('PortableType', [{ id, type }]) registry.createTypeUnsafe('PortableType', [{ id, type }])
) )
}, },
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev // Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '7.8.1' }; export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '7.11.1' };
+4 -4
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2022 @polkadot/types authors & contributors // Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
import type { AnyJson, AnyTuple, Codec, ICompact, INumber } from '@polkadot/types-codec/types'; import type { AnyJson, AnyTuple, Codec } from '@polkadot/types-codec/types';
import type { StorageEntryMetadataLatest, StorageEntryTypeLatest, StorageHasher } from '../interfaces/metadata'; import type { StorageEntryMetadataLatest, StorageEntryTypeLatest, StorageHasher } from '../interfaces/metadata';
import type { AllHashers } from '../interfaces/metadata/definitions'; import type { AllHashers } from '../interfaces/metadata/definitions';
import type { SiLookupTypeId } from '../interfaces/scaleInfo'; import type { SiLookupTypeId } from '../interfaces/scaleInfo';
@@ -44,7 +44,7 @@ export function unwrapStorageSi (type: StorageEntryTypeLatest): SiLookupTypeId {
/** @internal */ /** @internal */
export function unwrapStorageType (registry: Registry, type: StorageEntryTypeLatest, isOptional?: boolean): keyof InterfaceTypes { export function unwrapStorageType (registry: Registry, type: StorageEntryTypeLatest, isOptional?: boolean): keyof InterfaceTypes {
const outputType = getSiName((registry).lookup, unwrapStorageSi(type)); const outputType = getSiName(registry.lookup, unwrapStorageSi(type));
return isOptional return isOptional
? `Option<${outputType}>` as unknown as keyof InterfaceTypes ? `Option<${outputType}>` as unknown as keyof InterfaceTypes
@@ -90,7 +90,7 @@ function decodeStorageKey (value?: string | Uint8Array | StorageKey | StorageEnt
} }
/** @internal */ /** @internal */
function decodeHashers <A extends AnyTuple> (registry: Registry, value: Uint8Array, hashers: [StorageHasher, ICompact<INumber>][]): A { function decodeHashers <A extends AnyTuple> (registry: Registry, value: Uint8Array, hashers: [StorageHasher, SiLookupTypeId][]): A {
// the storage entry is xxhashAsU8a(prefix, 128) + xxhashAsU8a(method, 128), 256 bits total // the storage entry is xxhashAsU8a(prefix, 128) + xxhashAsU8a(method, 128), 256 bits total
let offset = 32; let offset = 32;
const result = new Array<Codec>(hashers.length); const result = new Array<Codec>(hashers.length);
@@ -99,7 +99,7 @@ function decodeHashers <A extends AnyTuple> (registry: Registry, value: Uint8Arr
const [hasher, type] = hashers[i]; const [hasher, type] = hashers[i];
const [hashLen, canDecode] = HASHER_MAP[hasher.type as 'Identity']; const [hashLen, canDecode] = HASHER_MAP[hasher.type as 'Identity'];
const decoded = canDecode const decoded = canDecode
? registry.createTypeUnsafe(registry.createLookupType(type), [value.subarray(offset + hashLen)]) ? registry.createTypeUnsafe(getSiName(registry.lookup, type), [value.subarray(offset + hashLen)])
: registry.createTypeUnsafe('Raw', [value.subarray(offset, offset + hashLen)]); : registry.createTypeUnsafe('Raw', [value.subarray(offset, offset + hashLen)]);
offset += hashLen + (canDecode ? decoded.encodedLength : 0); offset += hashLen + (canDecode ? decoded.encodedLength : 0);
+1
View File
@@ -8,6 +8,7 @@
{ "path": "./packages/api/tsconfig.spec.json" }, { "path": "./packages/api/tsconfig.spec.json" },
{ "path": "./packages/api-augment/tsconfig.build.json" }, { "path": "./packages/api-augment/tsconfig.build.json" },
{ "path": "./packages/api-augment/tsconfig.kusama.json" }, { "path": "./packages/api-augment/tsconfig.kusama.json" },
{ "path": "./packages/api-augment/tsconfig.kusama.spec.json" },
{ "path": "./packages/api-augment/tsconfig.polkadot.json" }, { "path": "./packages/api-augment/tsconfig.polkadot.json" },
{ "path": "./packages/api-base/tsconfig.build.json" }, { "path": "./packages/api-base/tsconfig.build.json" },
{ "path": "./packages/api-contract/tsconfig.build.json" }, { "path": "./packages/api-contract/tsconfig.build.json" },
+299 -272
View File
File diff suppressed because it is too large Load Diff