Compare commits

..
52 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
90 changed files with 10304 additions and 7399 deletions
-34
View File
@@ -1,34 +0,0 @@
queue_rules:
- name: default
conditions:
- check-success=build
- check-success=lint
- check-success=test
- label=automerge
- base=master
- "#changes-requested-reviews-by=0"
- "#approved-reviews-by>=1"
pull_request_rules:
- name: auto merge
conditions:
- check-success=build
- check-success=lint
- check-success=test
- label=automerge
- base=master
- "#changes-requested-reviews-by=0"
- "#approved-reviews-by>=1"
actions:
queue:
name: default
method: squash
- name: auto approval
conditions:
- author~=^jacogr$
- label=automerge
actions:
review:
type: APPROVE
message: This auto-approval rule should be removed once more JS maintainers are active.
+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 }}
+27
View File
@@ -1,5 +1,32 @@
# 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:
+2 -1
View File
@@ -1,4 +1,4 @@
2830 Jaco 7.9.1 (#4580)
2855 Jaco 7.11.1 (#4631)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
@@ -43,6 +43,7 @@
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 chriswmercer little readme tweak (#279)
1 codingsh #2182 - add: search for docs (#2232)
1 coolcorexix Investigate 4559 v2 (#4608)
1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
1 Daniel Maricic Fixed typo in README (#2402)
1 Daniel Savu fix: Generate custom type definitions (#4224)
+5 -5
View File
@@ -11,7 +11,7 @@
},
"sideEffects": false,
"type": "commonjs",
"version": "7.9.1",
"version": "7.11.1",
"workspaces": [
"packages/*"
],
@@ -31,15 +31,15 @@
"test:watch": "polkadot-dev-run-test --watch"
},
"devDependencies": {
"@babel/core": "^7.17.4",
"@babel/core": "^7.17.5",
"@babel/register": "^7.17.0",
"@babel/runtime": "^7.17.2",
"@polkadot/dev": "^0.65.60",
"@polkadot/dev": "^0.65.84",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^27.4.0",
"@types/jest": "^27.4.1",
"copyfiles": "^2.4.1"
},
"resolutions": {
"typescript": "^4.5.5"
"typescript": "^4.6.2"
}
}
+9 -6
View File
@@ -20,15 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/api-base": "7.9.1",
"@polkadot/rpc-augment": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-augment": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/api-base": "7.11.1",
"@polkadot/rpc-augment": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.11.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.
**/
bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/**
* 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.
**/
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.
**/
@@ -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
View File
@@ -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]>;
/**
* 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, []>;
/**
+5 -9
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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
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, SpNposElectionsElectionScore, 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' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -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
* 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.
*
@@ -3346,7 +3342,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* # <weight>
* - 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.
* # </weight>
**/
@@ -3449,7 +3445,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update.
* 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.
*
@@ -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
* 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
* 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
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.9.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.
**/
bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/**
* 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.
**/
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.
**/
@@ -1057,6 +1057,40 @@ declare module '@polkadot/api-base/types/errors' {
**/
[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: {
/**
* Duplicated candidate submission.
+28 -1
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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
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' {
export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -572,6 +572,33 @@ declare module '@polkadot/api-base/types/events' {
**/
[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: {
/**
* A candidate was slashed by amount due to failing to obtain a seat as member or
+38 -1
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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
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, SpNposElectionsElectionScore, 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';
declare module '@polkadot/api-base/types/storage' {
@@ -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]>;
/**
* 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, []>;
/**
@@ -1013,6 +1015,41 @@ declare module '@polkadot/api-base/types/storage' {
**/
[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: {
/**
* Assignment keys for the current session.
+12 -9
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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
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, SpNposElectionsElectionScore, 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' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -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
* 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.
*
@@ -1994,6 +1990,13 @@ declare module '@polkadot/api-base/types/submittable' {
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
parasDisputes: {
forceUnfreeze: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
parasShared: {
/**
* Generic tx
@@ -2757,7 +2760,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* # <weight>
* - 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.
* # </weight>
**/
@@ -2860,7 +2863,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update.
* 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.
*
@@ -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
* 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
* 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 { Codec } from '@polkadot/types-codec/types';
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' {
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.
**/
bondingDuration: u32 & AugmentedConst<ApiType>;
/**
* Maximum number of nominations per nominator.
**/
maxNominations: u32 & AugmentedConst<ApiType>;
/**
* 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.
**/
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.
**/
@@ -820,6 +829,16 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
stateTrieMigration: {
/**
* The maximum limits that the signed migration could use.
**/
signedMigrationMaxLimits: PalletStateTrieMigrationMigrationLimits & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* 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>;
};
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: {
/**
* Sender must be the Sudo account
@@ -1680,7 +1702,7 @@ declare module '@polkadot/api-base/types/errors' {
/**
* The given asset ID is unknown.
**/
Unknown: AugmentedError<ApiType>;
UnknownClass: AugmentedError<ApiType>;
/**
* 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>;
};
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
} // declare module
+33 -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 { ITuple } from '@polkadot/types-codec/types';
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' {
export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -919,6 +919,29 @@ declare module '@polkadot/api-base/types/events' {
**/
[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: {
/**
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
@@ -1245,5 +1268,14 @@ declare module '@polkadot/api-base/types/events' {
**/
[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
} // declare module
+27 -1
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 { AnyNumber, ITuple } from '@polkadot/types-codec/types';
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, SpNposElectionsElectionScore, 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';
declare module '@polkadot/api-base/types/storage' {
@@ -1249,6 +1249,25 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
stateTrieMigration: {
/**
* The limits that are imposed on automatic migrations.
*
* If set to None, then no automatic migration happens.
**/
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Migration progress.
*
* This stores the snapshot of the last migrated keys. It can be set into motion and move
* forward by any of the means provided by this pallet.
**/
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
sudo: {
/**
* The `AccountId` of the sudo key.
@@ -1535,5 +1554,12 @@ declare module '@polkadot/api-base/types/storage' {
**/
[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
} // declare module
+67 -9
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 { AnyNumber, ITuple } from '@polkadot/types-codec/types';
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, SpNposElectionsElectionScore, 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' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -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
* 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.
*
@@ -3600,7 +3596,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* # <weight>
* - 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.
* # </weight>
**/
@@ -3703,7 +3699,7 @@ declare module '@polkadot/api-base/types/submittable' {
* NOTE: Existing nominators and validators will not be affected by this update.
* 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.
*
@@ -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
* 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
* 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>;
};
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: {
/**
* 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>;
};
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
} // declare module
+3 -1
View File
@@ -6,6 +6,7 @@
"rootDir": "./src"
},
"exclude": [
"**/*.spec.ts",
"**/kusama/*.ts",
"**/polkadot/*.ts"
],
@@ -14,6 +15,7 @@
{ "path": "../rpc-augment/tsconfig.build.json" },
{ "path": "../types/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",
"**/kusama/*.ts"
],
"exclude": [
"**/kusama/*.spec.ts"
],
"references": [
{ "path": "../api-base/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",
"**/polkadot/*.ts"
],
"exclude": [
"**/polkadot/*.spec.ts"
],
"references": [
{ "path": "../api-base/tsconfig.build.json" },
{ "path": "../rpc-augment/tsconfig.build.json" },
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/rpc-core": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/util": "^8.4.1",
"rxjs": "^7.5.4"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/api": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-create": "7.9.1",
"@polkadot/api": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4"
},
"devDependencies": {
"@polkadot/api-augment": "7.9.1",
"@polkadot/api-augment": "7.11.1",
"@polkadot/keyring": "^8.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/api": "7.9.1",
"@polkadot/api-augment": "7.9.1",
"@polkadot/api-base": "7.9.1",
"@polkadot/rpc-core": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.11.1",
"@polkadot/api-base": "7.11.1",
"@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4"
},
"devDependencies": {
"@polkadot/api": "7.9.1",
"@polkadot/api-augment": "7.9.1",
"@polkadot/rpc-augment": "7.9.1",
"@polkadot/rpc-provider": "7.9.1",
"@polkadot/types-support": "7.9.1"
"@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.11.1",
"@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.11.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 { Option, Vec } from '@polkadot/types';
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 { combineLatest, map, of, switchMap } from 'rxjs';
@@ -14,9 +14,7 @@ import { BN, BN_ZERO, bnMax, bnMin, isFunction } from '@polkadot/util';
import { memo } from '../util';
type BalanceLocksEntry = Vec<PalletBalancesBalanceLock | BalanceLockTo212>;
type BalanceLocks = BalanceLocksEntry[];
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[]];
type ResultBalance = [PalletVestingVestingInfo[] | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[], PalletBalancesReserveData[][]];
type Result = [DeriveBalancesAccount, BlockNumber, ResultBalance];
interface AllLocked {
@@ -86,7 +84,9 @@ function calcVesting (bestNumber: BlockNumber, shared: DeriveBalancesAllAccountD
return {
isVesting,
vestedBalance,
vestedClaimable: isVesting ? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance)) : BN_ZERO,
vestedClaimable: isVesting
? shared.vestingLocked.sub(vestingTotal.sub(vestedBalance))
: BN_ZERO,
vesting: vesting
.map(({ locked, perBlock, startingBlock }, index) => ({
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]);
return {
@@ -110,7 +110,8 @@ function calcBalances (api: DeriveApi, [data, bestNumber, [vesting, allLocks]]:
accountNonce: data.accountNonce,
additional: allLocks
.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]
: 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;
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)
function queryCurrent (api: DeriveApi, accountId: AccountId, balanceInstances: string[] = ['balances']): Observable<ResultBalance> {
const calls = balanceInstances.map((m): DeriveApi['query']['balances']['locks'] | undefined =>
(api.derive as DeriveCustomLocks)[m]?.customLocks || api.query[m as 'balances']?.locks
const [lockEmpty, lockQueries] = createCalls(
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.queryMulti<[Option<PalletVestingVestingInfo> | Option<Vec<PalletVestingVestingInfo>>, ...BalanceLocks]>([[api.query.vesting.vesting, accountId], ...queries])
// TODO We need to check module instances here as well, not only the balances module
: queries.length
? api.queryMulti<[...(Vec<PalletBalancesBalanceLock>)[]]>(queries).pipe(
map((r): [Option<PalletVestingVestingInfo>, ...BalanceLocks] => [api.registry.createType('Option<VestingInfo>'), ...r])
)
: of([api.registry.createType('Option<VestingInfo>')] as [Option<PalletVestingVestingInfo>])
).pipe(
map(([opt, ...locks]): ResultBalance => {
let offset = -1;
? api.query.vesting.vesting(accountId)
: of(api.registry.createType('Option<VestingInfo>')),
lockQueries.length
? api.queryMulti<[...(Vec<PalletBalancesBalanceLock>)[]]>(lockQueries)
: of([] as Vec<PalletBalancesBalanceLock>[]),
reserveQueries.length
? api.queryMulti<[...(Vec<PalletBalancesReserveData>)[]]>(reserveQueries)
: of([] as Vec<PalletBalancesReserveData>[])
]).pipe(
map(([opt, locks, reserves]): ResultBalance => {
let offsetLock = -1;
let offsetReserve = -1;
const vesting = opt.unwrapOr(null);
return [
vesting
? Array.isArray(vesting) ? vesting : [vesting]
? Array.isArray(vesting)
? vesting
: [vesting as PalletVestingVestingInfo]
: 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)
: queryOld(api, account.accountId)
])
: of([account, api.registry.createType('BlockNumber'), [null, []]])
: of([account, api.registry.createType('BlockNumber'), [null, [], []]])
)
),
map((result): DeriveBalancesAll => calcBalances(api, result))
+2 -1
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
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';
export interface DeriveBalancesAccountData {
@@ -44,6 +44,7 @@ export interface DeriveBalancesAllVesting {
export interface DeriveBalancesAll extends DeriveBalancesAccount, DeriveBalancesAllAccountData, DeriveBalancesAllVesting {
additional: DeriveBalancesAllAccountData[];
namedReserves: PalletBalancesReserveData[][];
}
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 './getHeader';
export * from './getBlock';
export * from './getBlockByNumber';
export * from './subscribeNewBlocks';
export * from './subscribeNewHeads';
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.9.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 { PalletStakingStakingLedger } from '@polkadot/types/lookup';
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 { 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[] {
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 { validators: allValPrefs } = erasPrefs.find((p) => p.era.eq(era)) || { validators: {} as DeriveEraValPrefs };
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 { 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';
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[] {
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
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
memo(instanceId, (eras: EraIndex[], withActive: boolean) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
eras.length
? combineLatest(eras.map((e) => api.derive.staking[fn](e, withActive)))
: of([])
!eras.length
? of([])
: chunkEras(eras, (eras) =>
combineLatest(
eras.map((e) => api.derive.staking[fn](e, withActive))
)
)
) as any;
}
+14 -14
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/api-augment": "7.9.1",
"@polkadot/api-base": "7.9.1",
"@polkadot/api-derive": "7.9.1",
"@polkadot/api-augment": "7.11.1",
"@polkadot/api-base": "7.11.1",
"@polkadot/api-derive": "7.11.1",
"@polkadot/keyring": "^8.4.1",
"@polkadot/rpc-augment": "7.9.1",
"@polkadot/rpc-core": "7.9.1",
"@polkadot/rpc-provider": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-augment": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-create": "7.9.1",
"@polkadot/types-known": "7.9.1",
"@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-core": "7.11.1",
"@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.11.1",
"@polkadot/types-known": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.4"
},
"devDependencies": {
"@polkadot/api-augment": "7.9.1",
"@polkadot/types-support": "7.9.1"
"@polkadot/api-augment": "7.11.1",
"@polkadot/types-support": "7.11.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.9.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;
}
// 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> {
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
function extractArgs (args: unknown[], needsCallback: boolean): [unknown[], Callback<Codec> | undefined] {
let callback: Callback<Codec> | undefined;
const actualArgs = args.slice();
// 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`
if (args.length && isFunction(args[args.length - 1])) {
callback = actualArgs.pop() as Callback<Codec>;
}
const callback = (args.length && isFunction(args[args.length - 1]))
? actualArgs.pop() as Callback<Codec>
: undefined;
// 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');
@@ -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
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 => {
// single result tracker - either reject with Error or resolve with Codec result
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
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 => {
// either reject with error or resolve with unsubscribe callback
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
*/
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'));
return function (...args: unknown[]): Promise<ObsInnerType<ReturnType<M>>> | UnsubscribePromise {
return function (...args: unknown[]): Promise<CodecReturnType<M>> | UnsubscribePromise {
const [actualArgs, resultCb] = extractArgs(args, needsCallback);
return resultCb
+30 -19
View File
@@ -3,7 +3,7 @@
/* 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 { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
import type { Registry } from '@polkadot/types-codec/types';
@@ -24,6 +24,11 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
decorateMethod: ApiBase<ApiType>['_decorateMethod'];
}
interface UpdateInfo {
options: SignatureOptions;
updateId: number;
}
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 {
@@ -174,7 +179,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
return decorateMethod(
(): Observable<this> =>
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(
(): Observable<Codec> => (
this.#observeSign(account, options).pipe(
switchMap((updateId: number | undefined): Observable<ISubmittableResult> | Observable<Hash> =>
switchMap((info): Observable<ISubmittableResult> | Observable<Hash> =>
isSubscription
? this.#observeSubscribe(updateId)
: this.#observeSend(updateId)
? this.#observeSubscribe(info)
: this.#observeSend(info)
)
) as Observable<Codec>) // FIXME This is wrong, SubmittableResult is _not_ a codec
)(statusCb);
@@ -213,23 +218,24 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
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 options = optionsOrNonce(partialOptions);
let updateId: number | undefined;
return api.derive.tx.signingInfo(address, options.nonce, options.era).pipe(
first(),
mergeMap(async (signingInfo): Promise<void> => {
mergeMap(async (signingInfo): Promise<UpdateInfo> => {
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
let updateId = -1;
if (isKeyringPair(account)) {
this.sign(account, eraOptions);
} else {
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(
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;
return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
@@ -279,7 +285,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
this.#observeStatus(txHash, status)
),
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;
if (signer.signPayload) {
if (isFunction(signer.signPayload)) {
result = await signer.signPayload(payload.toPayload());
} else if (signer.signRaw) {
} else if (isFunction(signer.signRaw)) {
result = await signer.signRaw(payload.toRaw());
} else {
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;
};
#updateSigner = (updateId: number, status: Hash | ISubmittableResult): void => {
if ((updateId !== -1) && api.signer && api.signer.update) {
api.signer.update(updateId, status);
#updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
if (info && (info.updateId !== -1)) {
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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/rpc-core": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/rpc-core": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/rpc-augment": "7.9.1",
"@polkadot/rpc-provider": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/util": "^8.4.1",
"rxjs": "^7.5.4"
},
"devDependencies": {
"@polkadot/keyring": "^8.4.1",
"@polkadot/rpc-augment": "7.9.1"
"@polkadot/rpc-augment": "7.11.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-support": "7.9.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-support": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^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
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -30,18 +30,18 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
},
"dependencies": {
"@babel/core": "^7.17.4",
"@babel/core": "^7.17.5",
"@babel/register": "^7.17.0",
"@babel/runtime": "^7.17.2",
"@polkadot/api": "7.9.1",
"@polkadot/api-augment": "7.9.1",
"@polkadot/rpc-augment": "7.9.1",
"@polkadot/rpc-provider": "7.9.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-augment": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-create": "7.9.1",
"@polkadot/types-support": "7.9.1",
"@polkadot/api": "7.11.1",
"@polkadot/api-augment": "7.11.1",
"@polkadot/rpc-augment": "7.11.1",
"@polkadot/rpc-provider": "7.11.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.11.1",
"@polkadot/types-support": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/x-ws": "^8.4.1",
"handlebars": "^4.7.7",
@@ -50,6 +50,6 @@
},
"devDependencies": {
"@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
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/types": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1"
}
}
+4 -48
View File
@@ -11,30 +11,7 @@ export default {
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
},
/**
* Lookup105: polkadot_runtime_parachains::disputes::pallet::Event<T>
**/
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
* Lookup251: kusama_runtime::SessionKeys
**/
KusamaRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
@@ -45,7 +22,7 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
},
/**
* Lookup321: kusama_runtime::OriginCaller
* Lookup325: kusama_runtime::OriginCaller
**/
KusamaRuntimeOriginCaller: {
_enum: {
@@ -152,7 +129,7 @@ export default {
}
},
/**
* Lookup386: kusama_runtime::NposCompactSolution24
* Lookup390: kusama_runtime::NposCompactSolution24
**/
KusamaRuntimeNposCompactSolution24: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -181,28 +158,7 @@ export default {
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
},
/**
* Lookup506: polkadot_runtime_parachains::disputes::pallet::Call<T>
**/
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
* Lookup742: kusama_runtime::Runtime
**/
KusamaRuntimeRuntime: 'Null'
};
+168 -124
View File
@@ -148,7 +148,30 @@ export default {
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: {
_enum: {
@@ -158,7 +181,7 @@ export default {
}
},
/**
* Lookup103: polkadot_runtime_common::slots::pallet::Event<T>
* Lookup107: polkadot_runtime_common::slots::pallet::Event<T>
**/
PolkadotRuntimeCommonSlotsPalletEvent: {
_enum: {
@@ -167,7 +190,7 @@ export default {
}
},
/**
* Lookup104: polkadot_runtime_common::auctions::pallet::Event<T>
* Lookup108: polkadot_runtime_common::auctions::pallet::Event<T>
**/
PolkadotRuntimeCommonAuctionsPalletEvent: {
_enum: {
@@ -181,7 +204,7 @@ export default {
}
},
/**
* Lookup105: polkadot_runtime_common::crowdloan::pallet::Event<T>
* Lookup109: polkadot_runtime_common::crowdloan::pallet::Event<T>
**/
PolkadotRuntimeCommonCrowdloanPalletEvent: {
_enum: {
@@ -198,7 +221,7 @@ export default {
}
},
/**
* Lookup106: pallet_xcm::pallet::Event<T>
* Lookup110: pallet_xcm::pallet::Event<T>
**/
PalletXcmEvent: {
_enum: {
@@ -221,14 +244,14 @@ export default {
}
},
/**
* Lookup107: xcm::v1::multilocation::MultiLocation
* Lookup111: xcm::v1::multilocation::MultiLocation
**/
XcmV1MultiLocation: {
parents: 'u8',
interior: 'XcmV1MultilocationJunctions'
},
/**
* Lookup108: xcm::v1::multilocation::Junctions
* Lookup112: xcm::v1::multilocation::Junctions
**/
XcmV1MultilocationJunctions: {
_enum: {
@@ -244,7 +267,7 @@ export default {
}
},
/**
* Lookup109: xcm::v1::junction::Junction
* Lookup113: xcm::v1::junction::Junction
**/
XcmV1Junction: {
_enum: {
@@ -272,7 +295,7 @@ export default {
}
},
/**
* Lookup111: xcm::v0::junction::NetworkId
* Lookup115: xcm::v0::junction::NetworkId
**/
XcmV0JunctionNetworkId: {
_enum: {
@@ -283,7 +306,7 @@ export default {
}
},
/**
* Lookup113: xcm::v0::junction::BodyId
* Lookup117: xcm::v0::junction::BodyId
**/
XcmV0JunctionBodyId: {
_enum: {
@@ -297,7 +320,7 @@ export default {
}
},
/**
* Lookup114: xcm::v0::junction::BodyPart
* Lookup118: xcm::v0::junction::BodyPart
**/
XcmV0JunctionBodyPart: {
_enum: {
@@ -320,11 +343,11 @@ export default {
}
},
/**
* Lookup115: xcm::v2::Xcm<Call>
* Lookup119: xcm::v2::Xcm<Call>
**/
XcmV2Xcm: 'Vec<XcmV2Instruction>',
/**
* Lookup117: xcm::v2::Instruction<Call>
* Lookup121: xcm::v2::Instruction<Call>
**/
XcmV2Instruction: {
_enum: {
@@ -422,18 +445,18 @@ export default {
}
},
/**
* Lookup118: xcm::v1::multiasset::MultiAssets
* Lookup122: xcm::v1::multiasset::MultiAssets
**/
XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
/**
* Lookup120: xcm::v1::multiasset::MultiAsset
* Lookup124: xcm::v1::multiasset::MultiAsset
**/
XcmV1MultiAsset: {
id: 'XcmV1MultiassetAssetId',
fun: 'XcmV1MultiassetFungibility'
},
/**
* Lookup121: xcm::v1::multiasset::AssetId
* Lookup125: xcm::v1::multiasset::AssetId
**/
XcmV1MultiassetAssetId: {
_enum: {
@@ -442,7 +465,7 @@ export default {
}
},
/**
* Lookup122: xcm::v1::multiasset::Fungibility
* Lookup126: xcm::v1::multiasset::Fungibility
**/
XcmV1MultiassetFungibility: {
_enum: {
@@ -451,7 +474,7 @@ export default {
}
},
/**
* Lookup123: xcm::v1::multiasset::AssetInstance
* Lookup127: xcm::v1::multiasset::AssetInstance
**/
XcmV1MultiassetAssetInstance: {
_enum: {
@@ -465,7 +488,7 @@ export default {
}
},
/**
* Lookup125: xcm::v2::Response
* Lookup129: xcm::v2::Response
**/
XcmV2Response: {
_enum: {
@@ -476,19 +499,19 @@ export default {
}
},
/**
* Lookup128: xcm::v0::OriginKind
* Lookup132: xcm::v0::OriginKind
**/
XcmV0OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
* Lookup129: xcm::double_encoded::DoubleEncoded<T>
* Lookup133: xcm::double_encoded::DoubleEncoded<T>
**/
XcmDoubleEncoded: {
encoded: 'Bytes'
},
/**
* Lookup130: xcm::v1::multiasset::MultiAssetFilter
* Lookup134: xcm::v1::multiasset::MultiAssetFilter
**/
XcmV1MultiassetMultiAssetFilter: {
_enum: {
@@ -497,7 +520,7 @@ export default {
}
},
/**
* Lookup131: xcm::v1::multiasset::WildMultiAsset
* Lookup135: xcm::v1::multiasset::WildMultiAsset
**/
XcmV1MultiassetWildMultiAsset: {
_enum: {
@@ -509,13 +532,13 @@ export default {
}
},
/**
* Lookup132: xcm::v1::multiasset::WildFungibility
* Lookup136: xcm::v1::multiasset::WildFungibility
**/
XcmV1MultiassetWildFungibility: {
_enum: ['Fungible', 'NonFungible']
},
/**
* Lookup133: xcm::v2::WeightLimit
* Lookup137: xcm::v2::WeightLimit
**/
XcmV2WeightLimit: {
_enum: {
@@ -524,7 +547,7 @@ export default {
}
},
/**
* Lookup135: xcm::VersionedMultiAssets
* Lookup139: xcm::VersionedMultiAssets
**/
XcmVersionedMultiAssets: {
_enum: {
@@ -533,7 +556,7 @@ export default {
}
},
/**
* Lookup137: xcm::v0::multi_asset::MultiAsset
* Lookup141: xcm::v0::multi_asset::MultiAsset
**/
XcmV0MultiAsset: {
_enum: {
@@ -572,7 +595,7 @@ export default {
}
},
/**
* Lookup138: xcm::v0::multi_location::MultiLocation
* Lookup142: xcm::v0::multi_location::MultiLocation
**/
XcmV0MultiLocation: {
_enum: {
@@ -588,7 +611,7 @@ export default {
}
},
/**
* Lookup139: xcm::v0::junction::Junction
* Lookup143: xcm::v0::junction::Junction
**/
XcmV0Junction: {
_enum: {
@@ -617,7 +640,7 @@ export default {
}
},
/**
* Lookup140: xcm::VersionedMultiLocation
* Lookup144: xcm::VersionedMultiLocation
**/
XcmVersionedMultiLocation: {
_enum: {
@@ -626,7 +649,7 @@ export default {
}
},
/**
* Lookup198: polkadot_runtime::SessionKeys
* Lookup204: polkadot_runtime::SessionKeys
**/
PolkadotRuntimeSessionKeys: {
grandpa: 'SpFinalityGrandpaAppPublic',
@@ -637,15 +660,15 @@ export default {
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
},
/**
* Lookup199: polkadot_primitives::v0::validator_app::Public
* Lookup205: polkadot_primitives::v0::validator_app::Public
**/
PolkadotPrimitivesV0ValidatorAppPublic: 'SpCoreSr25519Public',
/**
* Lookup200: polkadot_primitives::v1::assignment_app::Public
* Lookup206: polkadot_primitives::v1::assignment_app::Public
**/
PolkadotPrimitivesV1AssignmentAppPublic: 'SpCoreSr25519Public',
/**
* Lookup229: polkadot_runtime_common::claims::pallet::Call<T>
* Lookup236: polkadot_runtime_common::claims::pallet::Call<T>
**/
PolkadotRuntimeCommonClaimsPalletCall: {
_enum: {
@@ -678,17 +701,17 @@ export default {
}
},
/**
* Lookup230: polkadot_runtime_common::claims::EcdsaSignature
* Lookup237: polkadot_runtime_common::claims::EcdsaSignature
**/
PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]',
/**
* Lookup235: polkadot_runtime_common::claims::StatementKind
* Lookup242: polkadot_runtime_common::claims::StatementKind
**/
PolkadotRuntimeCommonClaimsStatementKind: {
_enum: ['Regular', 'Saft']
},
/**
* Lookup240: polkadot_runtime::OriginCaller
* Lookup247: polkadot_runtime::OriginCaller
**/
PolkadotRuntimeOriginCaller: {
_enum: {
@@ -795,7 +818,7 @@ export default {
}
},
/**
* Lookup244: polkadot_runtime_parachains::origin::pallet::Origin
* Lookup251: polkadot_runtime_parachains::origin::pallet::Origin
**/
PolkadotRuntimeParachainsOriginPalletOrigin: {
_enum: {
@@ -803,7 +826,7 @@ export default {
}
},
/**
* Lookup245: pallet_xcm::pallet::Origin
* Lookup252: pallet_xcm::pallet::Origin
**/
PalletXcmOrigin: {
_enum: {
@@ -812,7 +835,7 @@ export default {
}
},
/**
* Lookup296: polkadot_runtime::NposCompactSolution16
* Lookup303: polkadot_runtime::NposCompactSolution16
**/
PolkadotRuntimeNposCompactSolution16: {
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
@@ -833,7 +856,7 @@ export default {
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: {
_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',
/**
* Lookup356: polkadot_runtime_parachains::inclusion::pallet::Call<T>
* Lookup363: polkadot_runtime_parachains::inclusion::pallet::Call<T>
**/
PolkadotRuntimeParachainsInclusionPalletCall: 'Null',
/**
* Lookup357: polkadot_runtime_parachains::paras_inherent::pallet::Call<T>
* Lookup364: polkadot_runtime_parachains::paras_inherent::pallet::Call<T>
**/
PolkadotRuntimeParachainsParasInherentPalletCall: {
_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: {
bitfields: 'Vec<PolkadotPrimitivesV1SignedUncheckedSigned>',
@@ -1137,7 +1160,7 @@ export default {
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: {
payload: 'BitVec',
@@ -1145,15 +1168,15 @@ export default {
signature: 'PolkadotPrimitivesV0ValidatorAppSignature'
},
/**
* Lookup363: bitvec::order::Lsb0
* Lookup370: bitvec::order::Lsb0
**/
BitvecOrderLsb0: 'Null',
/**
* Lookup365: polkadot_primitives::v0::validator_app::Signature
* Lookup372: polkadot_primitives::v0::validator_app::Signature
**/
PolkadotPrimitivesV0ValidatorAppSignature: 'SpCoreSr25519Signature',
/**
* Lookup367: polkadot_primitives::v1::BackedCandidate<primitive_types::H256>
* Lookup374: polkadot_primitives::v1::BackedCandidate<primitive_types::H256>
**/
PolkadotPrimitivesV1BackedCandidate: {
candidate: 'PolkadotPrimitivesV1CommittedCandidateReceipt',
@@ -1161,14 +1184,14 @@ export default {
validatorIndices: 'BitVec'
},
/**
* Lookup368: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256>
* Lookup375: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256>
**/
PolkadotPrimitivesV1CommittedCandidateReceipt: {
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
commitments: 'PolkadotPrimitivesV1CandidateCommitments'
},
/**
* Lookup369: polkadot_primitives::v1::CandidateCommitments<N>
* Lookup376: polkadot_primitives::v1::CandidateCommitments<N>
**/
PolkadotPrimitivesV1CandidateCommitments: {
upwardMessages: 'Vec<Bytes>',
@@ -1179,14 +1202,14 @@ export default {
hrmpWatermark: 'u32'
},
/**
* Lookup371: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
* Lookup378: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
**/
PolkadotCorePrimitivesOutboundHrmpMessage: {
recipient: 'u32',
data: 'Bytes'
},
/**
* Lookup375: polkadot_primitives::v0::ValidityAttestation
* Lookup382: polkadot_primitives::v0::ValidityAttestation
**/
PolkadotPrimitivesV0ValidityAttestation: {
_enum: {
@@ -1196,7 +1219,7 @@ export default {
}
},
/**
* Lookup377: polkadot_primitives::v1::DisputeStatementSet
* Lookup384: polkadot_primitives::v1::DisputeStatementSet
**/
PolkadotPrimitivesV1DisputeStatementSet: {
candidateHash: 'H256',
@@ -1204,7 +1227,7 @@ export default {
statements: 'Vec<(PolkadotPrimitivesV1DisputeStatement,u32,PolkadotPrimitivesV0ValidatorAppSignature)>'
},
/**
* Lookup381: polkadot_primitives::v1::DisputeStatement
* Lookup387: polkadot_primitives::v1::DisputeStatement
**/
PolkadotPrimitivesV1DisputeStatement: {
_enum: {
@@ -1213,7 +1236,7 @@ export default {
}
},
/**
* Lookup382: polkadot_primitives::v1::ValidDisputeStatementKind
* Lookup388: polkadot_primitives::v1::ValidDisputeStatementKind
**/
PolkadotPrimitivesV1ValidDisputeStatementKind: {
_enum: {
@@ -1224,13 +1247,13 @@ export default {
}
},
/**
* Lookup383: polkadot_primitives::v1::InvalidDisputeStatementKind
* Lookup389: polkadot_primitives::v1::InvalidDisputeStatementKind
**/
PolkadotPrimitivesV1InvalidDisputeStatementKind: {
_enum: ['Explicit']
},
/**
* Lookup384: polkadot_runtime_parachains::paras::pallet::Call<T>
* Lookup390: polkadot_runtime_parachains::paras::pallet::Call<T>
**/
PolkadotRuntimeParachainsParasPalletCall: {
_enum: {
@@ -1267,7 +1290,7 @@ export default {
}
},
/**
* Lookup385: polkadot_primitives::v2::PvfCheckStatement
* Lookup391: polkadot_primitives::v2::PvfCheckStatement
**/
PolkadotPrimitivesV2PvfCheckStatement: {
accept: 'bool',
@@ -1276,7 +1299,7 @@ export default {
validatorIndex: 'u32'
},
/**
* Lookup386: polkadot_runtime_parachains::initializer::pallet::Call<T>
* Lookup392: polkadot_runtime_parachains::initializer::pallet::Call<T>
**/
PolkadotRuntimeParachainsInitializerPalletCall: {
_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',
/**
* Lookup388: polkadot_runtime_parachains::ump::pallet::Call<T>
* Lookup394: polkadot_runtime_parachains::ump::pallet::Call<T>
**/
PolkadotRuntimeParachainsUmpPalletCall: {
_enum: {
@@ -1301,7 +1324,7 @@ export default {
}
},
/**
* Lookup389: polkadot_runtime_parachains::hrmp::pallet::Call<T>
* Lookup395: polkadot_runtime_parachains::hrmp::pallet::Call<T>
**/
PolkadotRuntimeParachainsHrmpPalletCall: {
_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: {
_enum: {
@@ -1364,7 +1393,7 @@ export default {
}
},
/**
* Lookup391: polkadot_runtime_common::slots::pallet::Call<T>
* Lookup398: polkadot_runtime_common::slots::pallet::Call<T>
**/
PolkadotRuntimeCommonSlotsPalletCall: {
_enum: {
@@ -1384,7 +1413,7 @@ export default {
}
},
/**
* Lookup392: polkadot_runtime_common::auctions::pallet::Call<T>
* Lookup399: polkadot_runtime_common::auctions::pallet::Call<T>
**/
PolkadotRuntimeCommonAuctionsPalletCall: {
_enum: {
@@ -1403,7 +1432,7 @@ export default {
}
},
/**
* Lookup394: polkadot_runtime_common::crowdloan::pallet::Call<T>
* Lookup401: polkadot_runtime_common::crowdloan::pallet::Call<T>
**/
PolkadotRuntimeCommonCrowdloanPalletCall: {
_enum: {
@@ -1452,7 +1481,7 @@ export default {
}
},
/**
* Lookup396: sp_runtime::MultiSigner
* Lookup403: sp_runtime::MultiSigner
**/
SpRuntimeMultiSigner: {
_enum: {
@@ -1462,11 +1491,11 @@ export default {
}
},
/**
* Lookup397: sp_core::ecdsa::Public
* Lookup404: sp_core::ecdsa::Public
**/
SpCoreEcdsaPublic: '[u8;33]',
/**
* Lookup402: pallet_xcm::pallet::Call<T>
* Lookup409: pallet_xcm::pallet::Call<T>
**/
PalletXcmCall: {
_enum: {
@@ -1520,7 +1549,7 @@ export default {
}
},
/**
* Lookup403: xcm::VersionedXcm<Call>
* Lookup410: xcm::VersionedXcm<Call>
**/
XcmVersionedXcm: {
_enum: {
@@ -1530,7 +1559,7 @@ export default {
}
},
/**
* Lookup404: xcm::v0::Xcm<Call>
* Lookup411: xcm::v0::Xcm<Call>
**/
XcmV0Xcm: {
_enum: {
@@ -1584,7 +1613,7 @@ export default {
}
},
/**
* Lookup406: xcm::v0::order::Order<Call>
* Lookup413: xcm::v0::order::Order<Call>
**/
XcmV0Order: {
_enum: {
@@ -1627,7 +1656,7 @@ export default {
}
},
/**
* Lookup408: xcm::v0::Response
* Lookup415: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -1635,7 +1664,7 @@ export default {
}
},
/**
* Lookup409: xcm::v1::Xcm<Call>
* Lookup416: xcm::v1::Xcm<Call>
**/
XcmV1Xcm: {
_enum: {
@@ -1694,7 +1723,7 @@ export default {
}
},
/**
* Lookup411: xcm::v1::order::Order<Call>
* Lookup418: xcm::v1::order::Order<Call>
**/
XcmV1Order: {
_enum: {
@@ -1739,7 +1768,7 @@ export default {
}
},
/**
* Lookup413: xcm::v1::Response
* Lookup420: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -1748,13 +1777,13 @@ export default {
}
},
/**
* Lookup530: polkadot_runtime_common::claims::pallet::Error<T>
* Lookup538: polkadot_runtime_common::claims::pallet::Error<T>
**/
PolkadotRuntimeCommonClaimsPalletError: {
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
},
/**
* Lookup582: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
* Lookup590: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
**/
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
maxCodeSize: 'u32',
@@ -1802,7 +1831,7 @@ export default {
minimumValidationUpgradeDelay: 'u32'
},
/**
* Lookup583: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
* Lookup591: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
**/
PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: {
maxCodeSize: 'u32',
@@ -1847,20 +1876,20 @@ export default {
umpMaxIndividualWeight: 'u64'
},
/**
* Lookup586: polkadot_runtime_parachains::configuration::pallet::Error<T>
* Lookup594: polkadot_runtime_parachains::configuration::pallet::Error<T>
**/
PolkadotRuntimeParachainsConfigurationPalletError: {
_enum: ['InvalidNewValue']
},
/**
* Lookup589: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
* Lookup597: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
**/
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
bitfield: 'BitVec',
submittedAt: 'u32'
},
/**
* Lookup590: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
* Lookup598: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
**/
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
_alias: {
@@ -1876,13 +1905,13 @@ export default {
backingGroup: 'u32'
},
/**
* Lookup591: polkadot_runtime_parachains::inclusion::pallet::Error<T>
* Lookup599: polkadot_runtime_parachains::inclusion::pallet::Error<T>
**/
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']
},
/**
* Lookup592: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
* Lookup600: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
**/
PolkadotPrimitivesV1ScrapedOnChainVotes: {
session: 'u32',
@@ -1890,38 +1919,38 @@ export default {
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>'
},
/**
* Lookup597: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
* Lookup605: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
**/
PolkadotRuntimeParachainsParasInherentPalletError: {
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
},
/**
* Lookup599: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
* Lookup607: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
**/
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
nextCoreOffset: 'u32'
},
/**
* Lookup601: polkadot_runtime_parachains::scheduler::QueuedParathread
* Lookup609: polkadot_runtime_parachains::scheduler::QueuedParathread
**/
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
claim: 'PolkadotPrimitivesV1ParathreadEntry',
coreOffset: 'u32'
},
/**
* Lookup602: polkadot_primitives::v1::ParathreadEntry
* Lookup610: polkadot_primitives::v1::ParathreadEntry
**/
PolkadotPrimitivesV1ParathreadEntry: {
claim: 'PolkadotPrimitivesV1ParathreadClaim',
retries: 'u32'
},
/**
* Lookup603: polkadot_primitives::v1::ParathreadClaim
* Lookup611: polkadot_primitives::v1::ParathreadClaim
**/
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
/**
* Lookup606: polkadot_primitives::v1::CoreOccupied
* Lookup614: polkadot_primitives::v1::CoreOccupied
**/
PolkadotPrimitivesV1CoreOccupied: {
_enum: {
@@ -1930,7 +1959,7 @@ export default {
}
},
/**
* Lookup609: polkadot_runtime_parachains::scheduler::CoreAssignment
* Lookup617: polkadot_runtime_parachains::scheduler::CoreAssignment
**/
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
core: 'u32',
@@ -1939,7 +1968,7 @@ export default {
groupIdx: 'u32'
},
/**
* Lookup610: polkadot_runtime_parachains::scheduler::AssignmentKind
* Lookup618: polkadot_runtime_parachains::scheduler::AssignmentKind
**/
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
_enum: {
@@ -1948,7 +1977,7 @@ export default {
}
},
/**
* Lookup611: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
* Lookup619: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
**/
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
votesAccept: 'BitVec',
@@ -1958,7 +1987,7 @@ export default {
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
},
/**
* Lookup613: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
* Lookup621: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
**/
PolkadotRuntimeParachainsParasPvfCheckCause: {
_enum: {
@@ -1970,39 +1999,39 @@ export default {
}
},
/**
* Lookup615: polkadot_runtime_parachains::paras::ParaLifecycle
* Lookup623: polkadot_runtime_parachains::paras::ParaLifecycle
**/
PolkadotRuntimeParachainsParasParaLifecycle: {
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
},
/**
* Lookup617: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
* Lookup625: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
**/
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
lastPruned: 'Option<u32>'
},
/**
* Lookup619: polkadot_runtime_parachains::paras::ReplacementTimes<N>
* Lookup627: polkadot_runtime_parachains::paras::ReplacementTimes<N>
**/
PolkadotRuntimeParachainsParasReplacementTimes: {
expectedAt: 'u32',
activatedAt: 'u32'
},
/**
* Lookup621: polkadot_primitives::v1::UpgradeGoAhead
* Lookup629: polkadot_primitives::v1::UpgradeGoAhead
**/
PolkadotPrimitivesV1UpgradeGoAhead: {
_enum: ['Abort', 'GoAhead']
},
/**
* Lookup622: polkadot_primitives::v1::UpgradeRestriction
* Lookup630: polkadot_primitives::v1::UpgradeRestriction
**/
PolkadotPrimitivesV1UpgradeRestriction: {
_enum: ['Present']
},
/**
* Lookup623: polkadot_runtime_parachains::paras::ParaGenesisArgs
* Lookup631: polkadot_runtime_parachains::paras::ParaGenesisArgs
**/
PolkadotRuntimeParachainsParasParaGenesisArgs: {
genesisHead: 'Bytes',
@@ -2010,13 +2039,13 @@ export default {
parachain: 'bool'
},
/**
* Lookup624: polkadot_runtime_parachains::paras::pallet::Error<T>
* Lookup632: polkadot_runtime_parachains::paras::pallet::Error<T>
**/
PolkadotRuntimeParachainsParasPalletError: {
_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: {
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
@@ -2024,20 +2053,20 @@ export default {
sessionIndex: 'u32'
},
/**
* Lookup628: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
* Lookup636: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundDownwardMessage: {
sentAt: 'u32',
msg: 'Bytes'
},
/**
* Lookup630: polkadot_runtime_parachains::ump::pallet::Error<T>
* Lookup638: polkadot_runtime_parachains::ump::pallet::Error<T>
**/
PolkadotRuntimeParachainsUmpPalletError: {
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
},
/**
* Lookup631: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
* Lookup639: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
**/
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
confirmed: 'bool',
@@ -2048,7 +2077,7 @@ export default {
maxTotalSize: 'u32'
},
/**
* Lookup633: polkadot_runtime_parachains::hrmp::HrmpChannel
* Lookup641: polkadot_runtime_parachains::hrmp::HrmpChannel
**/
PolkadotRuntimeParachainsHrmpHrmpChannel: {
maxCapacity: 'u32',
@@ -2061,20 +2090,20 @@ export default {
recipientDeposit: 'u128'
},
/**
* Lookup636: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
* Lookup644: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundHrmpMessage: {
sentAt: 'u32',
data: 'Bytes'
},
/**
* Lookup639: polkadot_runtime_parachains::hrmp::pallet::Error<T>
* Lookup647: polkadot_runtime_parachains::hrmp::pallet::Error<T>
**/
PolkadotRuntimeParachainsHrmpPalletError: {
_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: {
activeValidatorIndices: 'Vec<u32>',
@@ -2092,7 +2121,22 @@ export default {
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: {
manager: 'AccountId32',
@@ -2100,25 +2144,25 @@ export default {
locked: 'bool'
},
/**
* Lookup644: polkadot_runtime_common::paras_registrar::pallet::Error<T>
* Lookup655: polkadot_runtime_common::paras_registrar::pallet::Error<T>
**/
PolkadotRuntimeCommonParasRegistrarPalletError: {
_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: {
_enum: ['ParaNotOnboarding', 'LeaseError']
},
/**
* Lookup651: polkadot_runtime_common::auctions::pallet::Error<T>
* Lookup662: polkadot_runtime_common::auctions::pallet::Error<T>
**/
PolkadotRuntimeCommonAuctionsPalletError: {
_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: {
depositor: 'AccountId32',
@@ -2133,7 +2177,7 @@ export default {
fundIndex: 'u32'
},
/**
* Lookup653: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
* Lookup664: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
**/
PolkadotRuntimeCommonCrowdloanLastContribution: {
_enum: {
@@ -2143,13 +2187,13 @@ export default {
}
},
/**
* Lookup654: polkadot_runtime_common::crowdloan::pallet::Error<T>
* Lookup665: polkadot_runtime_common::crowdloan::pallet::Error<T>
**/
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']
},
/**
* Lookup655: pallet_xcm::pallet::QueryStatus<BlockNumber>
* Lookup666: pallet_xcm::pallet::QueryStatus<BlockNumber>
**/
PalletXcmQueryStatus: {
_enum: {
@@ -2169,7 +2213,7 @@ export default {
}
},
/**
* Lookup658: xcm::VersionedResponse
* Lookup669: xcm::VersionedResponse
**/
XcmVersionedResponse: {
_enum: {
@@ -2179,7 +2223,7 @@ export default {
}
},
/**
* Lookup664: pallet_xcm::pallet::VersionMigrationStage
* Lookup675: pallet_xcm::pallet::VersionMigrationStage
**/
PalletXcmVersionMigrationStage: {
_enum: {
@@ -2190,21 +2234,21 @@ export default {
}
},
/**
* Lookup665: pallet_xcm::pallet::Error<T>
* Lookup676: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_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>',
/**
* Lookup677: polkadot_runtime_common::claims::PrevalidateAttests<T>
* Lookup688: polkadot_runtime_common::claims::PrevalidateAttests<T>
**/
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
/**
* Lookup678: polkadot_runtime::Runtime
* Lookup689: polkadot_runtime::Runtime
**/
PolkadotRuntimeRuntime: 'Null'
};
File diff suppressed because it is too large Load Diff
@@ -2,9 +2,9 @@
/* eslint-disable */
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 { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
/** @name KusamaRuntimeProxyType (75) */
export interface KusamaRuntimeProxyType extends Enum {
@@ -19,34 +19,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
}
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (105) */
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) */
/** @name KusamaRuntimeSessionKeys (251) */
export interface KusamaRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
@@ -56,7 +29,7 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}
/** @name KusamaRuntimeOriginCaller (321) */
/** @name KusamaRuntimeOriginCaller (325) */
export interface KusamaRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -72,7 +45,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name KusamaRuntimeNposCompactSolution24 (386) */
/** @name KusamaRuntimeNposCompactSolution24 (390) */
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
@@ -100,33 +73,7 @@ declare module '@polkadot/types/lookup' {
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
}
/** @name PolkadotRuntimeParachainsDisputesPalletCall (506) */
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) */
/** @name KusamaRuntimeRuntime (742) */
export type KusamaRuntimeRuntime = Null;
} // declare module
@@ -165,7 +165,34 @@ declare module '@polkadot/types/lookup' {
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 {
readonly isRegistered: boolean;
readonly asRegistered: ITuple<[u32, AccountId32]>;
@@ -176,7 +203,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Registered' | 'Deregistered' | 'Reserved';
}
/** @name PolkadotRuntimeCommonSlotsPalletEvent (103) */
/** @name PolkadotRuntimeCommonSlotsPalletEvent (107) */
export interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum {
readonly isNewLeasePeriod: boolean;
readonly asNewLeasePeriod: u32;
@@ -185,7 +212,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NewLeasePeriod' | 'Leased';
}
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (104) */
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (108) */
export interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum {
readonly isAuctionStarted: boolean;
readonly asAuctionStarted: ITuple<[u32, u32, u32]>;
@@ -204,7 +231,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (105) */
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (109) */
export interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum {
readonly isCreated: boolean;
readonly asCreated: u32;
@@ -229,7 +256,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
}
/** @name PalletXcmEvent (106) */
/** @name PalletXcmEvent (110) */
export interface PalletXcmEvent extends Enum {
readonly isAttempted: boolean;
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';
}
/** @name XcmV1MultiLocation (107) */
/** @name XcmV1MultiLocation (111) */
export interface XcmV1MultiLocation extends Struct {
readonly parents: u8;
readonly interior: XcmV1MultilocationJunctions;
}
/** @name XcmV1MultilocationJunctions (108) */
/** @name XcmV1MultilocationJunctions (112) */
export interface XcmV1MultilocationJunctions extends Enum {
readonly isHere: boolean;
readonly isX1: boolean;
@@ -294,7 +321,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name XcmV1Junction (109) */
/** @name XcmV1Junction (113) */
export interface XcmV1Junction extends Enum {
readonly isParachain: boolean;
readonly asParachain: Compact<u32>;
@@ -328,7 +355,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name XcmV0JunctionNetworkId (111) */
/** @name XcmV0JunctionNetworkId (115) */
export interface XcmV0JunctionNetworkId extends Enum {
readonly isAny: boolean;
readonly isNamed: boolean;
@@ -338,7 +365,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
}
/** @name XcmV0JunctionBodyId (113) */
/** @name XcmV0JunctionBodyId (117) */
export interface XcmV0JunctionBodyId extends Enum {
readonly isUnit: boolean;
readonly isNamed: boolean;
@@ -352,7 +379,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
}
/** @name XcmV0JunctionBodyPart (114) */
/** @name XcmV0JunctionBodyPart (118) */
export interface XcmV0JunctionBodyPart extends Enum {
readonly isVoice: boolean;
readonly isMembers: boolean;
@@ -377,10 +404,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
/** @name XcmV2Xcm (115) */
/** @name XcmV2Xcm (119) */
export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
/** @name XcmV2Instruction (117) */
/** @name XcmV2Instruction (121) */
export interface XcmV2Instruction extends Enum {
readonly isWithdrawAsset: boolean;
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';
}
/** @name XcmV1MultiassetMultiAssets (118) */
/** @name XcmV1MultiassetMultiAssets (122) */
export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
/** @name XcmV1MultiAsset (120) */
/** @name XcmV1MultiAsset (124) */
export interface XcmV1MultiAsset extends Struct {
readonly id: XcmV1MultiassetAssetId;
readonly fun: XcmV1MultiassetFungibility;
}
/** @name XcmV1MultiassetAssetId (121) */
/** @name XcmV1MultiassetAssetId (125) */
export interface XcmV1MultiassetAssetId extends Enum {
readonly isConcrete: boolean;
readonly asConcrete: XcmV1MultiLocation;
@@ -518,7 +545,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Concrete' | 'Abstract';
}
/** @name XcmV1MultiassetFungibility (122) */
/** @name XcmV1MultiassetFungibility (126) */
export interface XcmV1MultiassetFungibility extends Enum {
readonly isFungible: boolean;
readonly asFungible: Compact<u128>;
@@ -527,7 +554,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV1MultiassetAssetInstance (123) */
/** @name XcmV1MultiassetAssetInstance (127) */
export interface XcmV1MultiassetAssetInstance extends Enum {
readonly isUndefined: boolean;
readonly isIndex: boolean;
@@ -545,7 +572,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
}
/** @name XcmV2Response (125) */
/** @name XcmV2Response (129) */
export interface XcmV2Response extends Enum {
readonly isNull: boolean;
readonly isAssets: boolean;
@@ -557,7 +584,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
}
/** @name XcmV0OriginKind (128) */
/** @name XcmV0OriginKind (132) */
export interface XcmV0OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
@@ -566,12 +593,12 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name XcmDoubleEncoded (129) */
/** @name XcmDoubleEncoded (133) */
export interface XcmDoubleEncoded extends Struct {
readonly encoded: Bytes;
}
/** @name XcmV1MultiassetMultiAssetFilter (130) */
/** @name XcmV1MultiassetMultiAssetFilter (134) */
export interface XcmV1MultiassetMultiAssetFilter extends Enum {
readonly isDefinite: boolean;
readonly asDefinite: XcmV1MultiassetMultiAssets;
@@ -580,7 +607,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Definite' | 'Wild';
}
/** @name XcmV1MultiassetWildMultiAsset (131) */
/** @name XcmV1MultiassetWildMultiAsset (135) */
export interface XcmV1MultiassetWildMultiAsset extends Enum {
readonly isAll: boolean;
readonly isAllOf: boolean;
@@ -591,14 +618,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'All' | 'AllOf';
}
/** @name XcmV1MultiassetWildFungibility (132) */
/** @name XcmV1MultiassetWildFungibility (136) */
export interface XcmV1MultiassetWildFungibility extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV2WeightLimit (133) */
/** @name XcmV2WeightLimit (137) */
export interface XcmV2WeightLimit extends Enum {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
@@ -606,7 +633,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Unlimited' | 'Limited';
}
/** @name XcmVersionedMultiAssets (135) */
/** @name XcmVersionedMultiAssets (139) */
export interface XcmVersionedMultiAssets extends Enum {
readonly isV0: boolean;
readonly asV0: Vec<XcmV0MultiAsset>;
@@ -615,7 +642,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1';
}
/** @name XcmV0MultiAsset (137) */
/** @name XcmV0MultiAsset (141) */
export interface XcmV0MultiAsset extends Enum {
readonly isNone: 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';
}
/** @name XcmV0MultiLocation (138) */
/** @name XcmV0MultiLocation (142) */
export interface XcmV0MultiLocation extends Enum {
readonly isNull: boolean;
readonly isX1: boolean;
@@ -682,7 +709,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name XcmV0Junction (139) */
/** @name XcmV0Junction (143) */
export interface XcmV0Junction extends Enum {
readonly isParent: 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';
}
/** @name XcmVersionedMultiLocation (140) */
/** @name XcmVersionedMultiLocation (144) */
export interface XcmVersionedMultiLocation extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0MultiLocation;
@@ -726,7 +753,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1';
}
/** @name PolkadotRuntimeSessionKeys (198) */
/** @name PolkadotRuntimeSessionKeys (204) */
export interface PolkadotRuntimeSessionKeys extends Struct {
readonly grandpa: SpFinalityGrandpaAppPublic;
readonly babe: SpConsensusBabeAppPublic;
@@ -736,13 +763,13 @@ declare module '@polkadot/types/lookup' {
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
}
/** @name PolkadotPrimitivesV0ValidatorAppPublic (199) */
/** @name PolkadotPrimitivesV0ValidatorAppPublic (205) */
export interface PolkadotPrimitivesV0ValidatorAppPublic extends SpCoreSr25519Public {}
/** @name PolkadotPrimitivesV1AssignmentAppPublic (200) */
/** @name PolkadotPrimitivesV1AssignmentAppPublic (206) */
export interface PolkadotPrimitivesV1AssignmentAppPublic extends SpCoreSr25519Public {}
/** @name PolkadotRuntimeCommonClaimsPalletCall (229) */
/** @name PolkadotRuntimeCommonClaimsPalletCall (236) */
export interface PolkadotRuntimeCommonClaimsPalletCall extends Enum {
readonly isClaim: boolean;
readonly asClaim: {
@@ -775,17 +802,17 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim';
}
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (230) */
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (237) */
export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
/** @name PolkadotRuntimeCommonClaimsStatementKind (235) */
/** @name PolkadotRuntimeCommonClaimsStatementKind (242) */
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
readonly isRegular: boolean;
readonly isSaft: boolean;
readonly type: 'Regular' | 'Saft';
}
/** @name PolkadotRuntimeOriginCaller (240) */
/** @name PolkadotRuntimeOriginCaller (247) */
export interface PolkadotRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -801,14 +828,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (244) */
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (251) */
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
readonly isParachain: boolean;
readonly asParachain: u32;
readonly type: 'Parachain';
}
/** @name PalletXcmOrigin (245) */
/** @name PalletXcmOrigin (252) */
export interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation;
@@ -817,7 +844,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Xcm' | 'Response';
}
/** @name PolkadotRuntimeNposCompactSolution16 (296) */
/** @name PolkadotRuntimeNposCompactSolution16 (303) */
export interface PolkadotRuntimeNposCompactSolution16 extends Struct {
readonly votes1: Vec<ITuple<[Compact<u32>, 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>]>>;
}
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (354) */
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (361) */
export interface PolkadotRuntimeParachainsConfigurationPalletCall extends Enum {
readonly isSetValidationUpgradeCooldown: boolean;
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';
}
/** @name PolkadotRuntimeParachainsSharedPalletCall (355) */
/** @name PolkadotRuntimeParachainsSharedPalletCall (362) */
export type PolkadotRuntimeParachainsSharedPalletCall = Null;
/** @name PolkadotRuntimeParachainsInclusionPalletCall (356) */
/** @name PolkadotRuntimeParachainsInclusionPalletCall (363) */
export type PolkadotRuntimeParachainsInclusionPalletCall = Null;
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (357) */
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (364) */
export interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum {
readonly isEnter: boolean;
readonly asEnter: {
@@ -1037,7 +1064,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Enter';
}
/** @name PolkadotPrimitivesV1InherentData (358) */
/** @name PolkadotPrimitivesV1InherentData (365) */
export interface PolkadotPrimitivesV1InherentData extends Struct {
readonly bitfields: Vec<PolkadotPrimitivesV1SignedUncheckedSigned>;
readonly backedCandidates: Vec<PolkadotPrimitivesV1BackedCandidate>;
@@ -1045,33 +1072,33 @@ declare module '@polkadot/types/lookup' {
readonly parentHeader: SpRuntimeHeader;
}
/** @name PolkadotPrimitivesV1SignedUncheckedSigned (360) */
/** @name PolkadotPrimitivesV1SignedUncheckedSigned (367) */
export interface PolkadotPrimitivesV1SignedUncheckedSigned extends Struct {
readonly payload: BitVec;
readonly validatorIndex: u32;
readonly signature: PolkadotPrimitivesV0ValidatorAppSignature;
}
/** @name BitvecOrderLsb0 (363) */
/** @name BitvecOrderLsb0 (370) */
export type BitvecOrderLsb0 = Null;
/** @name PolkadotPrimitivesV0ValidatorAppSignature (365) */
/** @name PolkadotPrimitivesV0ValidatorAppSignature (372) */
export interface PolkadotPrimitivesV0ValidatorAppSignature extends SpCoreSr25519Signature {}
/** @name PolkadotPrimitivesV1BackedCandidate (367) */
/** @name PolkadotPrimitivesV1BackedCandidate (374) */
export interface PolkadotPrimitivesV1BackedCandidate extends Struct {
readonly candidate: PolkadotPrimitivesV1CommittedCandidateReceipt;
readonly validityVotes: Vec<PolkadotPrimitivesV0ValidityAttestation>;
readonly validatorIndices: BitVec;
}
/** @name PolkadotPrimitivesV1CommittedCandidateReceipt (368) */
/** @name PolkadotPrimitivesV1CommittedCandidateReceipt (375) */
export interface PolkadotPrimitivesV1CommittedCandidateReceipt extends Struct {
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
readonly commitments: PolkadotPrimitivesV1CandidateCommitments;
}
/** @name PolkadotPrimitivesV1CandidateCommitments (369) */
/** @name PolkadotPrimitivesV1CandidateCommitments (376) */
export interface PolkadotPrimitivesV1CandidateCommitments extends Struct {
readonly upwardMessages: Vec<Bytes>;
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
@@ -1081,13 +1108,13 @@ declare module '@polkadot/types/lookup' {
readonly hrmpWatermark: u32;
}
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (371) */
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (378) */
export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
readonly recipient: u32;
readonly data: Bytes;
}
/** @name PolkadotPrimitivesV0ValidityAttestation (375) */
/** @name PolkadotPrimitivesV0ValidityAttestation (382) */
export interface PolkadotPrimitivesV0ValidityAttestation extends Enum {
readonly isImplicit: boolean;
readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature;
@@ -1096,14 +1123,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Implicit' | 'Explicit';
}
/** @name PolkadotPrimitivesV1DisputeStatementSet (377) */
/** @name PolkadotPrimitivesV1DisputeStatementSet (384) */
export interface PolkadotPrimitivesV1DisputeStatementSet extends Struct {
readonly candidateHash: H256;
readonly session: u32;
readonly statements: Vec<ITuple<[PolkadotPrimitivesV1DisputeStatement, u32, PolkadotPrimitivesV0ValidatorAppSignature]>>;
}
/** @name PolkadotPrimitivesV1DisputeStatement (381) */
/** @name PolkadotPrimitivesV1DisputeStatement (387) */
export interface PolkadotPrimitivesV1DisputeStatement extends Enum {
readonly isValid: boolean;
readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind;
@@ -1112,7 +1139,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Valid' | 'Invalid';
}
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (382) */
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (388) */
export interface PolkadotPrimitivesV1ValidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly isBackingSeconded: boolean;
@@ -1123,13 +1150,13 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
}
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (383) */
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (389) */
export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly type: 'Explicit';
}
/** @name PolkadotRuntimeParachainsParasPalletCall (384) */
/** @name PolkadotRuntimeParachainsParasPalletCall (390) */
export interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
readonly isForceSetCurrentCode: boolean;
readonly asForceSetCurrentCode: {
@@ -1172,7 +1199,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
}
/** @name PolkadotPrimitivesV2PvfCheckStatement (385) */
/** @name PolkadotPrimitivesV2PvfCheckStatement (391) */
export interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
readonly accept: bool;
readonly subject: H256;
@@ -1180,7 +1207,7 @@ declare module '@polkadot/types/lookup' {
readonly validatorIndex: u32;
}
/** @name PolkadotRuntimeParachainsInitializerPalletCall (386) */
/** @name PolkadotRuntimeParachainsInitializerPalletCall (392) */
export interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
readonly isForceApprove: boolean;
readonly asForceApprove: {
@@ -1189,10 +1216,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceApprove';
}
/** @name PolkadotRuntimeParachainsDmpPalletCall (387) */
/** @name PolkadotRuntimeParachainsDmpPalletCall (393) */
export type PolkadotRuntimeParachainsDmpPalletCall = Null;
/** @name PolkadotRuntimeParachainsUmpPalletCall (388) */
/** @name PolkadotRuntimeParachainsUmpPalletCall (394) */
export interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -1202,7 +1229,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ServiceOverweight';
}
/** @name PolkadotRuntimeParachainsHrmpPalletCall (389) */
/** @name PolkadotRuntimeParachainsHrmpPalletCall (395) */
export interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
readonly isHrmpInitOpenChannel: boolean;
readonly asHrmpInitOpenChannel: {
@@ -1240,7 +1267,13 @@ declare module '@polkadot/types/lookup' {
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 {
readonly isRegister: boolean;
readonly asRegister: {
@@ -1273,7 +1306,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'ForceRemoveLock' | 'Reserve';
}
/** @name PolkadotRuntimeCommonSlotsPalletCall (391) */
/** @name PolkadotRuntimeCommonSlotsPalletCall (398) */
export interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
readonly isForceLease: boolean;
readonly asForceLease: {
@@ -1294,7 +1327,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
}
/** @name PolkadotRuntimeCommonAuctionsPalletCall (392) */
/** @name PolkadotRuntimeCommonAuctionsPalletCall (399) */
export interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
readonly isNewAuction: boolean;
readonly asNewAuction: {
@@ -1313,7 +1346,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (394) */
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (401) */
export interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
readonly isCreate: boolean;
readonly asCreate: {
@@ -1369,7 +1402,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
}
/** @name SpRuntimeMultiSigner (396) */
/** @name SpRuntimeMultiSigner (403) */
export interface SpRuntimeMultiSigner extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Public;
@@ -1380,10 +1413,10 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
/** @name SpCoreEcdsaPublic (397) */
/** @name SpCoreEcdsaPublic (404) */
export interface SpCoreEcdsaPublic extends U8aFixed {}
/** @name PalletXcmCall (402) */
/** @name PalletXcmCall (409) */
export interface PalletXcmCall extends Enum {
readonly isSend: boolean;
readonly asSend: {
@@ -1445,7 +1478,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
/** @name XcmVersionedXcm (403) */
/** @name XcmVersionedXcm (410) */
export interface XcmVersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Xcm;
@@ -1456,7 +1489,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name XcmV0Xcm (404) */
/** @name XcmV0Xcm (411) */
export interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -1519,7 +1552,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
/** @name XcmV0Order (406) */
/** @name XcmV0Order (413) */
export interface XcmV0Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
@@ -1567,14 +1600,14 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmV0Response (408) */
/** @name XcmV0Response (415) */
export interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets';
}
/** @name XcmV1Xcm (409) */
/** @name XcmV1Xcm (416) */
export interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
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';
}
/** @name XcmV1Order (411) */
/** @name XcmV1Order (418) */
export interface XcmV1Order extends Enum {
readonly isNoop: boolean;
readonly isDepositAsset: boolean;
@@ -1693,7 +1726,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmV1Response (413) */
/** @name XcmV1Response (420) */
export interface XcmV1Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -1702,7 +1735,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Assets' | 'Version';
}
/** @name PolkadotRuntimeCommonClaimsPalletError (530) */
/** @name PolkadotRuntimeCommonClaimsPalletError (538) */
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
readonly isInvalidEthereumSignature: boolean;
readonly isSignerHasNoClaim: boolean;
@@ -1713,7 +1746,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
}
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (582) */
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (590) */
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
@@ -1760,7 +1793,7 @@ declare module '@polkadot/types/lookup' {
readonly minimumValidationUpgradeDelay: u32;
}
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (583) */
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (591) */
export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
@@ -1804,19 +1837,19 @@ declare module '@polkadot/types/lookup' {
readonly umpMaxIndividualWeight: u64;
}
/** @name PolkadotRuntimeParachainsConfigurationPalletError (586) */
/** @name PolkadotRuntimeParachainsConfigurationPalletError (594) */
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
readonly isInvalidNewValue: boolean;
readonly type: 'InvalidNewValue';
}
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (589) */
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (597) */
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
readonly bitfield: BitVec;
readonly submittedAt: u32;
}
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (590) */
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (598) */
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
readonly core: u32;
readonly hash_: H256;
@@ -1828,7 +1861,7 @@ declare module '@polkadot/types/lookup' {
readonly backingGroup: u32;
}
/** @name PolkadotRuntimeParachainsInclusionPalletError (591) */
/** @name PolkadotRuntimeParachainsInclusionPalletError (599) */
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
readonly isUnsortedOrDuplicateValidatorIndices: 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';
}
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (592) */
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (600) */
export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct {
readonly session: u32;
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>;
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
}
/** @name PolkadotRuntimeParachainsParasInherentPalletError (597) */
/** @name PolkadotRuntimeParachainsParasInherentPalletError (605) */
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
readonly isTooManyInclusionInherents: boolean;
readonly isInvalidParentHeader: boolean;
@@ -1880,28 +1913,28 @@ declare module '@polkadot/types/lookup' {
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
}
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (599) */
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (607) */
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
readonly nextCoreOffset: u32;
}
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (601) */
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (609) */
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
readonly coreOffset: u32;
}
/** @name PolkadotPrimitivesV1ParathreadEntry (602) */
/** @name PolkadotPrimitivesV1ParathreadEntry (610) */
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
readonly retries: u32;
}
/** @name PolkadotPrimitivesV1ParathreadClaim (603) */
/** @name PolkadotPrimitivesV1ParathreadClaim (611) */
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
/** @name PolkadotPrimitivesV1CoreOccupied (606) */
/** @name PolkadotPrimitivesV1CoreOccupied (614) */
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
readonly isParathread: boolean;
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
@@ -1909,7 +1942,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parathread' | 'Parachain';
}
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (609) */
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (617) */
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
readonly core: u32;
readonly paraId: u32;
@@ -1917,7 +1950,7 @@ declare module '@polkadot/types/lookup' {
readonly groupIdx: u32;
}
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (610) */
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (618) */
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
readonly isParachain: boolean;
readonly isParathread: boolean;
@@ -1925,7 +1958,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Parachain' | 'Parathread';
}
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (611) */
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (619) */
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
readonly votesAccept: BitVec;
readonly votesReject: BitVec;
@@ -1934,7 +1967,7 @@ declare module '@polkadot/types/lookup' {
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
}
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (613) */
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (621) */
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
readonly isOnboarding: boolean;
readonly asOnboarding: u32;
@@ -1946,7 +1979,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Onboarding' | 'Upgrade';
}
/** @name PolkadotRuntimeParachainsParasParaLifecycle (615) */
/** @name PolkadotRuntimeParachainsParasParaLifecycle (623) */
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
readonly isOnboarding: boolean;
readonly isParathread: boolean;
@@ -1958,39 +1991,39 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
}
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (617) */
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (625) */
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
readonly lastPruned: Option<u32>;
}
/** @name PolkadotRuntimeParachainsParasReplacementTimes (619) */
/** @name PolkadotRuntimeParachainsParasReplacementTimes (627) */
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
readonly expectedAt: u32;
readonly activatedAt: u32;
}
/** @name PolkadotPrimitivesV1UpgradeGoAhead (621) */
/** @name PolkadotPrimitivesV1UpgradeGoAhead (629) */
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead';
}
/** @name PolkadotPrimitivesV1UpgradeRestriction (622) */
/** @name PolkadotPrimitivesV1UpgradeRestriction (630) */
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (623) */
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (631) */
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
readonly genesisHead: Bytes;
readonly validationCode: Bytes;
readonly parachain: bool;
}
/** @name PolkadotRuntimeParachainsParasPalletError (624) */
/** @name PolkadotRuntimeParachainsParasPalletError (632) */
export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
readonly isNotRegistered: 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';
}
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (626) */
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (634) */
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
readonly sessionIndex: u32;
}
/** @name PolkadotCorePrimitivesInboundDownwardMessage (628) */
/** @name PolkadotCorePrimitivesInboundDownwardMessage (636) */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
readonly sentAt: u32;
readonly msg: Bytes;
}
/** @name PolkadotRuntimeParachainsUmpPalletError (630) */
/** @name PolkadotRuntimeParachainsUmpPalletError (638) */
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
readonly isUnknownMessageIndex: boolean;
readonly isWeightOverLimit: boolean;
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
}
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (631) */
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (639) */
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
readonly confirmed: bool;
readonly age: u32;
@@ -2037,7 +2070,7 @@ declare module '@polkadot/types/lookup' {
readonly maxTotalSize: u32;
}
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (633) */
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (641) */
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
@@ -2049,13 +2082,13 @@ declare module '@polkadot/types/lookup' {
readonly recipientDeposit: u128;
}
/** @name PolkadotCorePrimitivesInboundHrmpMessage (636) */
/** @name PolkadotCorePrimitivesInboundHrmpMessage (644) */
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
readonly sentAt: u32;
readonly data: Bytes;
}
/** @name PolkadotRuntimeParachainsHrmpPalletError (639) */
/** @name PolkadotRuntimeParachainsHrmpPalletError (647) */
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
readonly isOpenHrmpChannelToSelf: 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';
}
/** @name PolkadotPrimitivesV2SessionInfo (641) */
/** @name PolkadotPrimitivesV2SessionInfo (649) */
export interface PolkadotPrimitivesV2SessionInfo extends Struct {
readonly activeValidatorIndices: Vec<u32>;
readonly randomSeed: U8aFixed;
@@ -2096,14 +2129,34 @@ declare module '@polkadot/types/lookup' {
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 {
readonly manager: AccountId32;
readonly deposit: u128;
readonly locked: bool;
}
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (644) */
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (655) */
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
readonly isNotRegistered: boolean;
readonly isAlreadyRegistered: boolean;
@@ -2122,14 +2175,14 @@ declare module '@polkadot/types/lookup' {
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 {
readonly isParaNotOnboarding: boolean;
readonly isLeaseError: boolean;
readonly type: 'ParaNotOnboarding' | 'LeaseError';
}
/** @name PolkadotRuntimeCommonAuctionsPalletError (651) */
/** @name PolkadotRuntimeCommonAuctionsPalletError (662) */
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
readonly isAuctionInProgress: boolean;
readonly isLeasePeriodInPast: boolean;
@@ -2141,7 +2194,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
}
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (652) */
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (663) */
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
readonly depositor: AccountId32;
readonly verifier: Option<SpRuntimeMultiSigner>;
@@ -2155,7 +2208,7 @@ declare module '@polkadot/types/lookup' {
readonly fundIndex: u32;
}
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (653) */
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (664) */
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
readonly isNever: boolean;
readonly isPreEnding: boolean;
@@ -2165,7 +2218,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Never' | 'PreEnding' | 'Ending';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletError (654) */
/** @name PolkadotRuntimeCommonCrowdloanPalletError (665) */
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
readonly isFirstPeriodInPast: boolean;
readonly isFirstPeriodTooFarInFuture: boolean;
@@ -2193,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';
}
/** @name PalletXcmQueryStatus (655) */
/** @name PalletXcmQueryStatus (666) */
export interface PalletXcmQueryStatus extends Enum {
readonly isPending: boolean;
readonly asPending: {
@@ -2214,7 +2267,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
}
/** @name XcmVersionedResponse (658) */
/** @name XcmVersionedResponse (669) */
export interface XcmVersionedResponse extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Response;
@@ -2225,7 +2278,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name PalletXcmVersionMigrationStage (664) */
/** @name PalletXcmVersionMigrationStage (675) */
export interface PalletXcmVersionMigrationStage extends Enum {
readonly isMigrateSupportedVersion: boolean;
readonly isMigrateVersionNotifiers: boolean;
@@ -2235,7 +2288,7 @@ declare module '@polkadot/types/lookup' {
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
}
/** @name PalletXcmError (665) */
/** @name PalletXcmError (676) */
export interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
@@ -2253,13 +2306,13 @@ declare module '@polkadot/types/lookup' {
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> {}
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (677) */
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (688) */
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
/** @name PolkadotRuntimeRuntime (678) */
/** @name PolkadotRuntimeRuntime (689) */
export type PolkadotRuntimeRuntime = Null;
} // declare module
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/util": "^8.4.1"
},
"devDependencies": {
"@polkadot/types": "7.9.1",
"@polkadot/types-augment": "7.9.1",
"@polkadot/types-support": "7.9.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-augment": "7.11.1",
"@polkadot/types-support": "7.11.1",
"@polkadot/util-crypto": "^8.4.1"
}
}
@@ -126,52 +126,78 @@ describe('BTreeSet', (): void => {
).toThrowError(/BTreeSet: cannot decode type/);
});
it('correctly encodes length', (): void => {
expect(
new (
BTreeSet.with(U32))(registry, mockU32Set).encodedLength
).toEqual(17);
describe('enocodedLength & initialU8aLength', (): void => {
it('correctly encodes length', (): void => {
expect(
new (
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 => {
expect(
Array.from(new (BTreeSet.with(I32))(registry, mockI32SetObj)).map((k) => k.toNumber())
).toEqual([-1000, -255, 0, 255, 1000]);
});
describe('sorting', (): void => {
it('correctly sorts numeric values', (): void => {
expect(
Array.from(new (BTreeSet.with(I32))(registry, mockI32SetObj)).map((k) => k.toNumber())
).toEqual([-1000, -255, 0, 255, 1000]);
});
it('correctly sorts text values', (): void => {
expect(
Array.from(new (BTreeSet.with(Text))(registry, mockTextSetObj)).map((k) => k.toString())
).toEqual(['b', 'ba', 'baz', 'bb', 'c']);
});
it('correctly sorts text values', (): void => {
expect(
Array.from(new (BTreeSet.with(Text))(registry, mockTextSetObj)).map((k) => k.toString())
).toEqual(['b', 'ba', 'baz', 'bb', 'c']);
});
it('correctly sorts complex tuple values', (): void => {
expect(
Array.from(new (BTreeSet.with(U32TextTuple))(registry, mockTupleSetObj)).map((k) => k.toJSON())
).toEqual([[1, 'baz'], [2, 'b'], [2, 'ba'], [2, 'bb']]);
});
it('correctly sorts complex tuple values', (): void => {
expect(
Array.from(new (BTreeSet.with(U32TextTuple))(registry, mockTupleSetObj)).map((k) => k.toJSON())
).toEqual([[1, 'baz'], [2, 'b'], [2, 'ba'], [2, 'bb']]);
});
it('correctly sorts complex struct values', (): void => {
expect(
Array.from(new (BTreeSet.with(MockStruct))(registry, mockStructSetObj)).map((k) => k.toJSON())
).toEqual([
{ int: -1, text: 'b' },
{ int: 1, text: 'b' },
{ int: -1, text: 'ba' },
{ int: -2, text: 'baz' }
]);
});
it('correctly sorts complex struct values', (): void => {
expect(
Array.from(new (BTreeSet.with(MockStruct))(registry, mockStructSetObj)).map((k) => k.toJSON())
).toEqual([
{ int: -1, text: 'b' },
{ int: 1, text: 'b' },
{ int: -1, text: 'ba' },
{ int: -2, text: 'baz' }
]);
});
it('correctly sorts complex enum values', (): void => {
expect(
Array.from(new (BTreeSet.with(MockEnum))(registry, mockEnumSetObj)).map((k) => k.toJSON())
).toEqual([
{ key1: { int: -1, text: 'b' } },
{ key1: { int: 1, text: 'b' } },
{ key2: { int: -1, text: 'b' } },
{ key3: [2, 'b'] },
{ key3: [2, 'ba'] }
]);
it('correctly sorts complex enum values', (): void => {
expect(
Array.from(new (BTreeSet.with(MockEnum))(registry, mockEnumSetObj)).map((k) => k.toJSON())
).toEqual([
{ key1: { int: -1, text: 'b' } },
{ key1: { int: 1, text: 'b' } },
{ key2: { int: -1, text: 'b' } },
{ key3: [2, 'b'] },
{ key3: [2, 'ba'] }
]);
});
});
it('generates sane toRawTypes', (): void => {
@@ -20,7 +20,7 @@ function decodeSetFromU8a<V extends Codec> (registry: Registry, ValClass: CodecC
output.add(values[i]);
}
return [output, decodedLength + offset];
return [output, decodedLength];
}
/** @internal */
@@ -75,6 +75,33 @@ describe('CodecMap', (): void => {
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 => {
expect(
new CodecMap(registry, Text, Text, new Map([
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/util": "^8.4.1"
},
"devDependencies": {
"@polkadot/types": "7.9.1"
"@polkadot/types": "7.11.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/networks": "^8.4.1",
"@polkadot/types": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-create": "7.9.1",
"@polkadot/types": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.9.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],
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
[11006614, 9151], [11404482, 9160]
[11006614, 9151], [11404482, 9160], [11601803, 9170]
];
export default upgrades;
@@ -10,7 +10,7 @@ const upgrades: ChainUpgradesRaw = [
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140], [8638103, 9151]
[8115869, 9140], [8638103, 9151], [9280179, 9170]
];
export default upgrades;
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@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
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '7.9.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"
],
"type": "module",
"version": "7.9.1",
"version": "7.11.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.2",
"@polkadot/keyring": "^8.4.1",
"@polkadot/types-augment": "7.9.1",
"@polkadot/types-codec": "7.9.1",
"@polkadot/types-create": "7.9.1",
"@polkadot/types-augment": "7.11.1",
"@polkadot/types-codec": "7.11.1",
"@polkadot/types-create": "7.11.1",
"@polkadot/util": "^8.4.1",
"@polkadot/util-crypto": "^8.4.1",
"rxjs": "^7.5.4"
},
"devDependencies": {
"@polkadot/keyring": "^8.4.1",
"@polkadot/types-support": "7.9.1"
"@polkadot/types-support": "7.11.1"
}
}
+8 -4
View File
@@ -230,13 +230,11 @@ export class TypeRegistry implements Registry {
}
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 {
assert(this.#metadata, 'Metadata has not been set on this registry');
return this.#metadata;
return assertReturn(this.#metadata, 'Metadata has not been set on this registry');
}
public get unknownTypes (): string[] {
@@ -485,6 +483,9 @@ export class TypeRegistry implements Registry {
setLookup (lookup: PortableRegistry): void {
this.#lookup = lookup;
// register all applicable types found
lookup.register();
}
// sets the metadata
@@ -492,6 +493,9 @@ export class TypeRegistry implements Registry {
this.#metadata = metadata.asLatest;
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);
injectErrors(this, this.#metadata, this.#metadataVersion, this.#metadataErrors);
injectEvents(this, this.#metadata, this.#metadataVersion, this.#metadataEvents);
@@ -9,9 +9,7 @@ import type { SiField, SiLookupTypeId, SiPath, SiType, SiTypeDefArray, SiTypeDef
import { sanitize, Struct, u32 } from '@polkadot/types-codec';
import { getTypeDef, TypeDefInfo, withTypeString } from '@polkadot/types-create';
import { assert, isNumber, isString, logger, objectSpread, stringCamelCase, stringify, stringPascalCase } from '@polkadot/util';
import { assertUnreachable } from './util';
import { assert, assertUnreachable, isNumber, isString, logger, objectSpread, stringCamelCase, stringify, stringPascalCase } from '@polkadot/util';
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)
function getAliasPath (path: SiPath): string | null {
// 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()
: null;
}
@@ -345,7 +343,9 @@ function extractTypeInfo (lookup: PortableRegistry, portable: PortableType[]): [
export class PortableRegistry extends Struct implements ILookup {
#alias: Record<number, string>;
#lookups: Record<string, string>;
#names: Record<number, string>;
#params: Record<string, SiTypeParameter[]>;
#typeDefs: Record<number, TypeDef> = {};
#types: Record<number, PortableType>;
@@ -359,11 +359,11 @@ export class PortableRegistry extends Struct implements ILookup {
const [types, lookups, names, params] = extractTypeInfo(this, this.types);
this.#alias = extractAliases(params, isContract);
this.#lookups = lookups;
this.#names = names;
this.#params = params;
this.#types = types;
registerTypes(this, lookups, names, params);
// console.timeEnd('PortableRegistry')
}
@@ -378,6 +378,10 @@ export class PortableRegistry extends Struct implements ILookup {
return this.getT('types');
}
public register (): void {
registerTypes(this, this.#lookups, this.#names, this.#params);
}
/**
* @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 {
const bitOrder = this.#createSiDef(bitOrderType);
const bitStore = this.#createSiDef(bitStoreType);
// With the v3 of scale-info this swapped around, but obviously the decoder cannot determine
// 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
// 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]);
}
const sub = ids.map((type) => this.#createSiDef(type));
const sub = ids.map((t) => this.#createSiDef(t));
return withTypeString(this.registry, {
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 { Registry } from '../../types';
import { assertUnreachable } from './util';
import { assertUnreachable } from '@polkadot/util';
function convertType (key: 'Compact' | 'Sequence'): (registry: Registry, si: Si0TypeDefSequence) => SiTypeDef {
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
* @internal
**/
function compatType (compatTypes: TypeSpec[], _type: Text | string): number {
function compatType (specs: TypeSpec[], _type: Text | string): number {
const type = _type.toString();
const index = compatTypes.findIndex(({ def }) =>
const index = specs.findIndex(({ def }) =>
def.HistoricMetaCompat === type
);
@@ -44,23 +44,29 @@ function compatType (compatTypes: TypeSpec[], _type: Text | string): number {
return index;
}
return compatTypes.push({
return specs.push({
def: {
HistoricMetaCompat: type
}
}) - 1;
}
function makeTupleType (compatTypes: TypeSpec[], entries: number[]): number {
return compatTypes.push({
function compatTypes (specs: TypeSpec[], ...types: (Text | string)[]): void {
for (let i = 0; i < types.length; i++) {
compatType(specs, types[i]);
}
}
function makeTupleType (specs: TypeSpec[], entries: number[]): number {
return specs.push({
def: {
Tuple: entries
}
}) - 1;
}
function makeVariantType (modName: Text, variantType: string, compatTypes: TypeSpec[], variants: SiVariant[]): number {
return compatTypes.push({
function makeVariantType (modName: Text, variantType: string, specs: TypeSpec[], variants: SiVariant[]): number {
return specs.push({
def: {
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)
* @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 => {
setTypeOverride(sectionTypes, args.map(({ type }) => type));
return registry.createTypeUnsafe('SiVariant', [{
docs,
fields: args.map(({ name, type }) =>
registry.createTypeUnsafe('SiField', [{ name, type: compatType(compatTypes, type) }])
registry.createTypeUnsafe('SiField', [{ name, type: compatType(specs, type) }])
),
index,
name
@@ -141,7 +147,7 @@ function convertCalls (compatTypes: TypeSpec[], registry: Registry, modName: Tex
});
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)
* @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 => {
setTypeOverride(sectionTypes, [type]);
return registry.createTypeUnsafe('PalletConstantMetadataV14', [{
docs,
name,
type: compatType(compatTypes, type),
type: compatType(specs, type),
value
}]);
});
@@ -167,7 +173,7 @@ function convertConstants (compatTypes: TypeSpec[], registry: Registry, constant
* @internal
*/
// 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 =>
registry.createTypeUnsafe('SiVariant', [{
docs,
@@ -178,7 +184,7 @@ function convertErrors (compatTypes: TypeSpec[], registry: Registry, modName: Te
);
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)
* @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 => {
setTypeOverride(sectionTypes, args);
return registry.createTypeUnsafe('SiVariant', [{
docs,
fields: args.map((t) =>
registry.createTypeUnsafe('SiField', [{ type: compatType(compatTypes, t) }])
registry.createTypeUnsafe('SiField', [{ type: compatType(specs, t) }])
),
index,
name
@@ -201,20 +207,20 @@ function convertEvents (compatTypes: TypeSpec[], registry: Registry, modName: Te
});
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])]);
return registry.createTypeUnsafe('StorageEntryTypeV14', [{
Map: {
hashers,
key: hashers.length === 1
? compatType(compatTypes, keys[0])
: makeTupleType(compatTypes, keys.map((t) => compatType(compatTypes, t))),
value: compatType(compatTypes, value)
? compatType(specs, keys[0])
: makeTupleType(specs, keys.map((t) => compatType(specs, t))),
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)
* @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', [{
items: items.map(({ docs, fallback, modifier, name, type }): StorageEntryMetadataV14 => {
let entryType: StorageEntryTypeV14;
@@ -234,12 +240,12 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
setTypeOverride(sectionTypes, [plain]);
entryType = registry.createTypeUnsafe('StorageEntryTypeV14', [{
Plain: compatType(compatTypes, plain)
Plain: compatType(specs, plain)
}]);
} else if (type.isMap) {
const map = type.asMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, {
entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: [map.hasher],
keys: [map.key],
value: map.value
@@ -247,7 +253,7 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
} else if (type.isDoubleMap) {
const dm = type.asDoubleMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, {
entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: [dm.hasher, dm.key2Hasher],
keys: [dm.key1, dm.key2],
value: dm.value
@@ -255,7 +261,7 @@ function convertStorage (compatTypes: TypeSpec[], registry: Registry, { items, p
} else {
const nm = type.asNMap;
entryType = createMapEntry(compatTypes, registry, sectionTypes, {
entryType = createMapEntry(specs, registry, sectionTypes, {
hashers: nm.hashers,
keys: nm.keyVec,
value: nm.value
@@ -288,17 +294,17 @@ function convertExtrinsic (registry: Registry, { signedExtensions, version }: Ex
}
/** @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));
return registry.createTypeUnsafe('PalletMetadataV14', [{
calls: calls && convertCalls(compatTypes, registry, mod.name, calls, sectionTypes),
constants: convertConstants(compatTypes, registry, constants, sectionTypes),
errors: errors && convertErrors(compatTypes, registry, mod.name, errors, sectionTypes),
events: events && convertEvents(compatTypes, registry, mod.name, events, sectionTypes),
calls: calls && convertCalls(specs, registry, mod.name, calls, sectionTypes),
constants: convertConstants(specs, registry, constants, sectionTypes),
errors: errors && convertErrors(specs, registry, mod.name, errors, sectionTypes),
events: events && convertEvents(specs, registry, mod.name, events, sectionTypes),
index: mod.index,
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
**/
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);
const extrinsic = convertExtrinsic(registry, v13.extrinsic);
const pallets = v13.modules.map((mod) =>
createPallet(compatTypes, registry, mod, {
createPallet(specs, registry, mod, {
calls: mod.calls.unwrapOr(null),
constants: mod.constants,
errors: mod.errors.length ? mod.errors : null,
@@ -326,7 +333,7 @@ export function toV14 (registry: Registry, v13: MetadataV13, metaVersion: number
return registry.createTypeUnsafe('MetadataV14', [{
extrinsic,
lookup: {
types: compatTypes.map((type, id) =>
types: specs.map((type, id) =>
registry.createTypeUnsafe('PortableType', [{ id, type }])
)
},
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '7.9.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
// 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 { AllHashers } from '../interfaces/metadata/definitions';
import type { SiLookupTypeId } from '../interfaces/scaleInfo';
@@ -44,7 +44,7 @@ export function unwrapStorageSi (type: StorageEntryTypeLatest): SiLookupTypeId {
/** @internal */
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
? `Option<${outputType}>` as unknown as keyof InterfaceTypes
@@ -90,7 +90,7 @@ function decodeStorageKey (value?: string | Uint8Array | StorageKey | StorageEnt
}
/** @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
let offset = 32;
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 [hashLen, canDecode] = HASHER_MAP[hasher.type as 'Identity'];
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)]);
offset += hashLen + (canDecode ? decoded.encodedLength : 0);
+1
View File
@@ -8,6 +8,7 @@
{ "path": "./packages/api/tsconfig.spec.json" },
{ "path": "./packages/api-augment/tsconfig.build.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-base/tsconfig.build.json" },
{ "path": "./packages/api-contract/tsconfig.build.json" },
+248 -246
View File
@@ -14,9 +14,9 @@ __metadata:
languageName: node
linkType: hard
"@babel/cli@npm:^7.17.3":
version: 7.17.3
resolution: "@babel/cli@npm:7.17.3"
"@babel/cli@npm:^7.17.6":
version: 7.17.6
resolution: "@babel/cli@npm:7.17.6"
dependencies:
"@jridgewell/trace-mapping": ^0.3.4
"@nicolo-ribaudo/chokidar-2": 2.1.8-no-fsevents.3
@@ -38,7 +38,7 @@ __metadata:
bin:
babel: ./bin/babel.js
babel-external-helpers: ./bin/babel-external-helpers.js
checksum: 83e4fe9f7236c1eb4bf5786c71e3d9a4f462aed1dca3096eeb12ab1d3927349ac9c2aedd6c59857fbe0a6a0b485216c454e1dd63264d6c18d2229c94b95a0653
checksum: 362c9baf14e3984bad2388647941e0ce3bf1894a5f25cd8595ca0b9bdcd8b94eb06d15eef6590e2215cfc5a191e186ae65c0c6214ed4a3eec226bd0eacc37c44
languageName: node
linkType: hard
@@ -58,9 +58,9 @@ __metadata:
languageName: node
linkType: hard
"@babel/core@npm:^7.1.0, @babel/core@npm:^7.12.3, @babel/core@npm:^7.17.4, @babel/core@npm:^7.7.2, @babel/core@npm:^7.8.0":
version: 7.17.4
resolution: "@babel/core@npm:7.17.4"
"@babel/core@npm:^7.1.0, @babel/core@npm:^7.12.3, @babel/core@npm:^7.17.5, @babel/core@npm:^7.7.2, @babel/core@npm:^7.8.0":
version: 7.17.5
resolution: "@babel/core@npm:7.17.5"
dependencies:
"@ampproject/remapping": ^2.1.0
"@babel/code-frame": ^7.16.7
@@ -77,7 +77,7 @@ __metadata:
gensync: ^1.0.0-beta.2
json5: ^2.1.2
semver: ^6.3.0
checksum: d367259b188fde69493fea407a1c134d6bb7a0d859cbe2c0f0d1f2464143bdee0fdfd3c8d45a2cdabdf321b95dd392cbc4f55e2d0c41a842a581d37fee4cef64
checksum: c5e7dddb4feaacb91175d22a6edc8e93804242328a82b80732c6e84a0647bc0a9c9d5b05f3ce13138b8e59bf7aba4ff9f7b7446302f141f243ba51df02c318a5
languageName: node
linkType: hard
@@ -1441,9 +1441,9 @@ __metadata:
languageName: node
linkType: hard
"@eslint/eslintrc@npm:^1.1.0":
version: 1.1.0
resolution: "@eslint/eslintrc@npm:1.1.0"
"@eslint/eslintrc@npm:^1.2.0":
version: 1.2.0
resolution: "@eslint/eslintrc@npm:1.2.0"
dependencies:
ajv: ^6.12.4
debug: ^4.3.2
@@ -1454,7 +1454,7 @@ __metadata:
js-yaml: ^4.1.0
minimatch: ^3.0.4
strip-json-comments: ^3.1.1
checksum: 784aa2157e2808b52bbbaf1d1cfca9a6ba0b2faaa3696eb7a1229d4b357400fbd8a6aa09a16e7ae0868ea075d3a8f365cf5928b6d05a1df47f40a1167423a4fa
checksum: a5e51dcf02627363567094456d7880b46b6a14a285d7a057f083ca903bdd862483bb6314cbc9fb6fa2d2c4537d50e0d28bd5e39650840241ae4796faaec65d2e
languageName: node
linkType: hard
@@ -1902,27 +1902,28 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@7.9.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@7.11.1, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/api-base": 7.9.1
"@polkadot/rpc-augment": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/types-augment": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/api-base": 7.11.1
"@polkadot/rpc-augment": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/types-augment": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/api-base@7.9.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@7.11.1, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/rpc-core": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/rpc-core": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/util": ^8.4.1
rxjs: ^7.5.4
languageName: unknown
@@ -1933,56 +1934,56 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/api": 7.9.1
"@polkadot/api-augment": 7.9.1
"@polkadot/api": 7.11.1
"@polkadot/api-augment": 7.11.1
"@polkadot/keyring": ^8.4.1
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-create": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-create": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
rxjs: ^7.5.4
languageName: unknown
linkType: soft
"@polkadot/api-derive@7.9.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@7.11.1, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/api": 7.9.1
"@polkadot/api-augment": 7.9.1
"@polkadot/api-base": 7.9.1
"@polkadot/rpc-augment": 7.9.1
"@polkadot/rpc-core": 7.9.1
"@polkadot/rpc-provider": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/api": 7.11.1
"@polkadot/api-augment": 7.11.1
"@polkadot/api-base": 7.11.1
"@polkadot/rpc-augment": 7.11.1
"@polkadot/rpc-core": 7.11.1
"@polkadot/rpc-provider": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
rxjs: ^7.5.4
languageName: unknown
linkType: soft
"@polkadot/api@7.9.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@7.11.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/api-augment": 7.9.1
"@polkadot/api-base": 7.9.1
"@polkadot/api-derive": 7.9.1
"@polkadot/api-augment": 7.11.1
"@polkadot/api-base": 7.11.1
"@polkadot/api-derive": 7.11.1
"@polkadot/keyring": ^8.4.1
"@polkadot/rpc-augment": 7.9.1
"@polkadot/rpc-core": 7.9.1
"@polkadot/rpc-provider": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/types-augment": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-create": 7.9.1
"@polkadot/types-known": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/rpc-augment": 7.11.1
"@polkadot/rpc-core": 7.11.1
"@polkadot/rpc-provider": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/types-augment": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-create": 7.11.1
"@polkadot/types-known": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
eventemitter3: ^4.0.7
@@ -1990,12 +1991,12 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.65.60":
version: 0.65.60
resolution: "@polkadot/dev@npm:0.65.60"
"@polkadot/dev@npm:^0.65.84":
version: 0.65.84
resolution: "@polkadot/dev@npm:0.65.84"
dependencies:
"@babel/cli": ^7.17.3
"@babel/core": ^7.17.4
"@babel/cli": ^7.17.6
"@babel/core": ^7.17.5
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.16.7
"@babel/plugin-proposal-numeric-separator": ^7.16.7
"@babel/plugin-proposal-optional-chaining": ^7.16.7
@@ -2011,33 +2012,33 @@ __metadata:
"@babel/register": ^7.17.0
"@babel/runtime": ^7.17.2
"@rollup/plugin-alias": ^3.1.9
"@rollup/plugin-commonjs": ^21.0.1
"@rollup/plugin-commonjs": ^21.0.2
"@rollup/plugin-inject": ^4.0.4
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^13.1.3
"@rushstack/eslint-patch": ^1.1.0
"@typescript-eslint/eslint-plugin": 5.12.0
"@typescript-eslint/parser": 5.12.0
"@typescript-eslint/eslint-plugin": 5.13.0
"@typescript-eslint/parser": 5.13.0
"@vue/component-compiler-utils": ^3.3.0
babel-jest: ^27.5.1
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
babel-plugin-module-resolver: ^4.1.0
babel-plugin-styled-components: ^2.0.2
browserslist: ^4.19.1
babel-plugin-styled-components: ^2.0.6
browserslist: ^4.19.3
coveralls: ^3.1.1
eslint: ^8.9.0
eslint: ^8.10.0
eslint-config-standard: ^16.0.3
eslint-import-resolver-node: ^0.3.6
eslint-plugin-header: ^3.1.1
eslint-plugin-import: ^2.25.4
eslint-plugin-import-newlines: ^1.2.0
eslint-plugin-import-newlines: ^1.2.1
eslint-plugin-node: ^11.1.0
eslint-plugin-promise: ^6.0.0
eslint-plugin-react: ^7.28.0
eslint-plugin-react: ^7.29.3
eslint-plugin-react-hooks: ^4.3.0
eslint-plugin-simple-import-sort: ^7.0.0
eslint-plugin-sort-destructure-keys: ^1.4.0
fs-extra: ^10.0.0
fs-extra: ^10.0.1
gh-pages: ^3.2.3
gh-release: ^6.0.1
glob: ^7.2.0
@@ -2048,13 +2049,13 @@ __metadata:
jest-haste-map: ^27.5.1
jest-resolve: ^27.5.1
madge: ^5.0.1
minimatch: ^5.0.0
minimatch: ^5.0.1
mkdirp: ^1.0.4
prettier: ^2.5.1
rimraf: ^3.0.2
rollup: ^2.67.2
rollup: ^2.69.1
rollup-plugin-cleanup: ^3.2.1
typescript: ^4.5.5
typescript: ^4.6.2
yargs: ^17.3.1
bin:
polkadot-ci-ghact-build: scripts/polkadot-ci-ghact-build.mjs
@@ -2078,7 +2079,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: b99c43951367d2e74aea08072e7a37aa256fe59af9f24de4de09c9175426b7515c9b61080662f407c309585df6ddb8d496c1b44fa23580f76c77faab03976924
checksum: d3f35de43f5f8688678efa2a97d12db32ac7980d15513a52e34c32dfb211fea3005b215879f84b4465574915430866410af08f0dc59de9b46deebeb35df95199
languageName: node
linkType: hard
@@ -2107,40 +2108,40 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@7.9.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@7.11.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/rpc-core": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/rpc-core": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/util": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/rpc-core@7.9.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@7.11.1, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/keyring": ^8.4.1
"@polkadot/rpc-augment": 7.9.1
"@polkadot/rpc-provider": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/rpc-augment": 7.11.1
"@polkadot/rpc-provider": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/util": ^8.4.1
rxjs: ^7.5.4
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@7.9.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@7.11.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/keyring": ^8.4.1
"@polkadot/types": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
"@polkadot/x-fetch": ^8.4.1
@@ -2156,22 +2157,22 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@babel/core": ^7.17.4
"@babel/core": ^7.17.5
"@babel/register": ^7.17.0
"@babel/runtime": ^7.17.2
"@polkadot/api": 7.9.1
"@polkadot/api-augment": 7.9.1
"@polkadot/rpc-augment": 7.9.1
"@polkadot/rpc-provider": 7.9.1
"@polkadot/types": 7.9.1
"@polkadot/types-augment": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-create": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/api": 7.11.1
"@polkadot/api-augment": 7.11.1
"@polkadot/rpc-augment": 7.11.1
"@polkadot/rpc-provider": 7.11.1
"@polkadot/types": 7.11.1
"@polkadot/types-augment": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-create": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/x-ws": ^8.4.1
"@types/websocket": ^1.0.5
"@types/yargs": ^17.0.8
"@types/yargs": ^17.0.9
handlebars: ^4.7.7
websocket: ^1.0.34
yargs: ^17.3.1
@@ -2184,55 +2185,55 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@7.9.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@7.11.1, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/util": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/types-codec@7.9.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@7.11.1, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/types": 7.9.1
"@polkadot/types-augment": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-augment": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/types-create@7.9.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@7.11.1, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/util": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/types-known@7.9.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@7.11.1, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/networks": ^8.4.1
"@polkadot/types": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-create": 7.9.1
"@polkadot/types": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-create": 7.11.1
"@polkadot/util": ^8.4.1
languageName: unknown
linkType: soft
"@polkadot/types-support@7.9.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@7.11.1, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -2241,16 +2242,16 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@7.9.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@7.11.1, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.17.2
"@polkadot/keyring": ^8.4.1
"@polkadot/types-augment": 7.9.1
"@polkadot/types-codec": 7.9.1
"@polkadot/types-create": 7.9.1
"@polkadot/types-support": 7.9.1
"@polkadot/types-augment": 7.11.1
"@polkadot/types-codec": 7.11.1
"@polkadot/types-create": 7.11.1
"@polkadot/types-support": 7.11.1
"@polkadot/util": ^8.4.1
"@polkadot/util-crypto": ^8.4.1
rxjs: ^7.5.4
@@ -2410,9 +2411,9 @@ __metadata:
languageName: node
linkType: hard
"@rollup/plugin-commonjs@npm:^21.0.1":
version: 21.0.1
resolution: "@rollup/plugin-commonjs@npm:21.0.1"
"@rollup/plugin-commonjs@npm:^21.0.2":
version: 21.0.2
resolution: "@rollup/plugin-commonjs@npm:21.0.2"
dependencies:
"@rollup/pluginutils": ^3.1.0
commondir: ^1.0.1
@@ -2423,7 +2424,7 @@ __metadata:
resolve: ^1.17.0
peerDependencies:
rollup: ^2.38.3
checksum: 3e56be58c72d655face6f361f85923ddcc3cc07760b5a3a91cfc728115dfed358fc595781148c512d53a03be8c703133379f228e78fd2aed8655fae9d83800b6
checksum: 5fd4c7b75d7881070f4395d7ba5f9035934f53b25e92d136583cc794461a456efc1e2a2204f946ec567dfea58073c38cb48f24d27155b89af0df0447c2cd0758
languageName: node
linkType: hard
@@ -2640,13 +2641,13 @@ __metadata:
languageName: node
linkType: hard
"@types/jest@npm:^27.4.0":
version: 27.4.0
resolution: "@types/jest@npm:27.4.0"
"@types/jest@npm:^27.4.1":
version: 27.4.1
resolution: "@types/jest@npm:27.4.1"
dependencies:
jest-diff: ^27.0.0
jest-matcher-utils: ^27.0.0
pretty-format: ^27.0.0
checksum: d2350267f954f9a2e4a15e5f02fbf19a77abfb9fd9e57a954de1fb0e9a0d3d5f8d3646ac7d9c42aeb4b4d828d2e70624ec149c85bb50a48634a54eed8429e1f8
checksum: 5184f3eef4832d01ee8f59bed15eec45ccc8e29c724a5e6ce37bf74396b37bdf04f557000f45ba4fc38ae6075cf9cfcce3d7a75abc981023c61ceb27230a93e4
languageName: node
linkType: hard
@@ -2747,22 +2748,22 @@ __metadata:
languageName: node
linkType: hard
"@types/yargs@npm:^17.0.8":
version: 17.0.8
resolution: "@types/yargs@npm:17.0.8"
"@types/yargs@npm:^17.0.9":
version: 17.0.9
resolution: "@types/yargs@npm:17.0.9"
dependencies:
"@types/yargs-parser": "*"
checksum: 63d06700ffbed745f00d7994eb92416649c8a3ead22f26446979d383f3af52fa9400bb185268f3a44a2348749098ffe33a8185ca676b77bc3206c63b8b73fd01
checksum: 333621b33785622974bd10269201d999d48729d5ffa619930fcf1f85e2d0b4785cff3f7b08c8e0ee2e8f75b2ead846bb0acc90ec4d5a652f1a95388e51f84037
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.12.0"
"@typescript-eslint/eslint-plugin@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.13.0"
dependencies:
"@typescript-eslint/scope-manager": 5.12.0
"@typescript-eslint/type-utils": 5.12.0
"@typescript-eslint/utils": 5.12.0
"@typescript-eslint/scope-manager": 5.13.0
"@typescript-eslint/type-utils": 5.13.0
"@typescript-eslint/utils": 5.13.0
debug: ^4.3.2
functional-red-black-tree: ^1.0.1
ignore: ^5.1.8
@@ -2775,42 +2776,42 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: ac7074b51456748ef8770d82f5b4e691e1b93bb1353b448bb1b43db5b5a9722a6a012dc1dc0a3b35ab0c0ca7c1b5412f535ad992115132ed84ed6f4179778d37
checksum: ff8863b8c414eeed874c7ef4e5d540c918f9ee9be2e44fe30c6c22f2f59529a61e71afb3d7a90bff9a8f894098f11373989df91b11ef67a424c12f703021c174
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/parser@npm:5.12.0"
"@typescript-eslint/parser@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/parser@npm:5.13.0"
dependencies:
"@typescript-eslint/scope-manager": 5.12.0
"@typescript-eslint/types": 5.12.0
"@typescript-eslint/typescript-estree": 5.12.0
"@typescript-eslint/scope-manager": 5.13.0
"@typescript-eslint/types": 5.13.0
"@typescript-eslint/typescript-estree": 5.13.0
debug: ^4.3.2
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 0453c14d967ebba4ebe0d763882b7a1258f23a710d127f53196d360b78722d880cc8c0299feb52ecc4e10600834c22559bf543211249d878efad864f7ec856bc
checksum: 9ca74f891df82f4f93150f0b69fcd2d9fb138c75a4629a154256108fbaa1248a96f69627cb472423890ff291e7cec30c20da25a87a21ef53fc1149ac9c18bfac
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/scope-manager@npm:5.12.0"
"@typescript-eslint/scope-manager@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/scope-manager@npm:5.13.0"
dependencies:
"@typescript-eslint/types": 5.12.0
"@typescript-eslint/visitor-keys": 5.12.0
checksum: 87cc4e8ab3b495293e51685566cafca6f217c7328fc1210e4a9c3a89e864c5e3a04ddde11708e07820185fd158cb448980607a93fd658fa2089c152f27a847d0
"@typescript-eslint/types": 5.13.0
"@typescript-eslint/visitor-keys": 5.13.0
checksum: 43fade6759e751387ee91f85033c036f122b5051f7ad7baf35fe5db68e2129afc1cc1c12c2b0b8a25eb206092ad1073d8e640b21f6b04824413f40751d8e0d42
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/type-utils@npm:5.12.0"
"@typescript-eslint/type-utils@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/type-utils@npm:5.13.0"
dependencies:
"@typescript-eslint/utils": 5.12.0
"@typescript-eslint/utils": 5.13.0
debug: ^4.3.2
tsutils: ^3.21.0
peerDependencies:
@@ -2818,7 +2819,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 90390603319441493b62611730db78f8a732e32a5d9097d1e9c6581da6caeb71cc08a3ed6c716f2fc490b153f956c9a2471d9fbe97c22214ca86f58511c7581a
checksum: 454a2fe6c5faa211fec9d7992b44f377b9d492c3a18b8ce6d6da0077f0ea92320c7ee430cc33dcce8f0ec7afab7f8db59f39f9433be5358715754e64d7fbdef2
languageName: node
linkType: hard
@@ -2829,19 +2830,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/types@npm:5.12.0"
checksum: f5e7f8270cb0f9f18886bf00f8f1fd589b793f4c05dc2de53cc826beb969161e19ffc10f51237402fb9f3d24f5aaf3bb41b1d8da70e115ec3ff11e79b3471988
"@typescript-eslint/types@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/types@npm:5.13.0"
checksum: 2228935a9f7e80264a554ffadc458ee184259b56cd987bf10f12754183e032953fb93b7b31f8261dd0a40dbac4f341d4904ae7aa1f1aba9f2a92b1062f05c8dc
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/typescript-estree@npm:5.12.0"
"@typescript-eslint/typescript-estree@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/typescript-estree@npm:5.13.0"
dependencies:
"@typescript-eslint/types": 5.12.0
"@typescript-eslint/visitor-keys": 5.12.0
"@typescript-eslint/types": 5.13.0
"@typescript-eslint/visitor-keys": 5.13.0
debug: ^4.3.2
globby: ^11.0.4
is-glob: ^4.0.3
@@ -2850,7 +2851,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 6a8e852c210b20370eb564f3beb245c425e65a4de3e78a1e2f278a241b6acf72ba43b10767df18fc1654b529453529f721fa673569406ace4011712c9c837900
checksum: bcf2f94eb4b8e0a5f47fa1e04478aa3f36c8d2b629300bf3d3a375f87e8046cd7f2364cd7df8fceb97855e7789721de5c66dafcf17cfd93552a93a7d7733dfdb
languageName: node
linkType: hard
@@ -2872,19 +2873,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/utils@npm:5.12.0"
"@typescript-eslint/utils@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/utils@npm:5.13.0"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.12.0
"@typescript-eslint/types": 5.12.0
"@typescript-eslint/typescript-estree": 5.12.0
"@typescript-eslint/scope-manager": 5.13.0
"@typescript-eslint/types": 5.13.0
"@typescript-eslint/typescript-estree": 5.13.0
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 34c394db0510be78c5cbb8928c9eb81405a117dd9e5903a149e4f3c20218dcda89a29e5012984d07c8ce9e5c7f5d7c38f5c3061558028f3f518ac98bbeb9a006
checksum: cb93cddc83bd5f9cee7fc72ab64c509b285392a005fb1315522374991f18a1cb8f233ee0d1e828cc18570c3fe27e81cc28471c36142284bd39351b8a3f8a83bd
languageName: node
linkType: hard
@@ -2898,13 +2899,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.12.0":
version: 5.12.0
resolution: "@typescript-eslint/visitor-keys@npm:5.12.0"
"@typescript-eslint/visitor-keys@npm:5.13.0":
version: 5.13.0
resolution: "@typescript-eslint/visitor-keys@npm:5.13.0"
dependencies:
"@typescript-eslint/types": 5.12.0
"@typescript-eslint/types": 5.13.0
eslint-visitor-keys: ^3.0.0
checksum: c3774f542aae801926edf86fe6cab534c4cdac914b035730912443ed53fcc701b0f0e7b1a0d5fc959484637c55f63409fc43df5508c334e202d66d4654484d11
checksum: 3987217053e22a86f9105efe6250ca028ef437483b79d0dad45850edacfc273835b82178e77e5012a3c045df18561fef3eb4417cc26c328c901fbaa0da09e922
languageName: node
linkType: hard
@@ -3379,17 +3380,18 @@ __metadata:
languageName: node
linkType: hard
"babel-plugin-styled-components@npm:^2.0.2":
version: 2.0.2
resolution: "babel-plugin-styled-components@npm:2.0.2"
"babel-plugin-styled-components@npm:^2.0.6":
version: 2.0.6
resolution: "babel-plugin-styled-components@npm:2.0.6"
dependencies:
"@babel/helper-annotate-as-pure": ^7.16.0
"@babel/helper-module-imports": ^7.16.0
babel-plugin-syntax-jsx: ^6.18.0
lodash: ^4.17.11
picomatch: ^2.3.0
peerDependencies:
styled-components: ">= 2"
checksum: 3de729e909506b8dda27567fa561aa2f50822f1151f0d321303790afa45ffc0698f0d6836b8c8fd5f24845f4e1b181f8c51532dd9c1fa7a15fa37033a445c137
checksum: 7be16a06432e0acfdbef23688b0da7d2320f2c48b6639e6f18089d4cdba4784b68d99e9b90e6d2b6babfb5a370dbc71151f1160f2cd8ca611c1fbd2cb1aea0ab
languageName: node
linkType: hard
@@ -3547,18 +3549,18 @@ __metadata:
languageName: node
linkType: hard
"browserslist@npm:^4.17.5, browserslist@npm:^4.19.1":
version: 4.19.1
resolution: "browserslist@npm:4.19.1"
"browserslist@npm:^4.17.5, browserslist@npm:^4.19.1, browserslist@npm:^4.19.3":
version: 4.19.3
resolution: "browserslist@npm:4.19.3"
dependencies:
caniuse-lite: ^1.0.30001286
electron-to-chromium: ^1.4.17
caniuse-lite: ^1.0.30001312
electron-to-chromium: ^1.4.71
escalade: ^3.1.1
node-releases: ^2.0.1
node-releases: ^2.0.2
picocolors: ^1.0.0
bin:
browserslist: cli.js
checksum: c0777fd483691638fd6801e16c9d809e1d65f6d2b06db2e806654be51045cbab1452a89841a2c5caea2cbe19d621b4f1d391cffbb24512aa33280039ab345875
checksum: c28958313dd17f345dd6e26379cc863126cd7d855588e57a1ed9e552a1135d64f05ec57063b48fff0d94a9b785bd248e9472c2d63ce8460ca56fc2444f5a1e66
languageName: node
linkType: hard
@@ -3651,10 +3653,10 @@ __metadata:
languageName: node
linkType: hard
"caniuse-lite@npm:^1.0.30001286":
version: 1.0.30001286
resolution: "caniuse-lite@npm:1.0.30001286"
checksum: 04de4742552d4aeb713677b40693d9ac1fbd259573e0ff739565278bcecb6f398f3227546a4e930f4d5cf95b61458f4a53c9c1f90f5b0c4f6063b32e4c54b89e
"caniuse-lite@npm:^1.0.30001312":
version: 1.0.30001312
resolution: "caniuse-lite@npm:1.0.30001312"
checksum: 753fb9ea1e02e999430b323a71b5acab5120f3b5fc0161b01669f54a3ef5c5296240b6ae9b79b12a3742e3aed216aa9ee3d5398a23c16d08625ccd376b79545d
languageName: node
linkType: hard
@@ -4485,10 +4487,10 @@ __metadata:
languageName: node
linkType: hard
"electron-to-chromium@npm:^1.4.17":
version: 1.4.17
resolution: "electron-to-chromium@npm:1.4.17"
checksum: d0bafe96ea345167c1a4c5d4626a26a3bd7f75d3fe48bdc1a1dc53fad226b08245fa700f06c28d2366913ec506eba0e57f7fd9a630cc5669a08f27614c8e63a9
"electron-to-chromium@npm:^1.4.71":
version: 1.4.71
resolution: "electron-to-chromium@npm:1.4.71"
checksum: ecb2546eed6b0e95003d787c259de730f32e2f5c0fa2acb27069c0cd21378cbc2a6c7516f4ec677a5960db4e180644f87ed91a729825a238454e31e4e74617db
languageName: node
linkType: hard
@@ -4733,14 +4735,14 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-import-newlines@npm:^1.2.0":
version: 1.2.0
resolution: "eslint-plugin-import-newlines@npm:1.2.0"
"eslint-plugin-import-newlines@npm:^1.2.1":
version: 1.2.1
resolution: "eslint-plugin-import-newlines@npm:1.2.1"
peerDependencies:
eslint: ">=6.0.0"
bin:
import-linter: lib/index.js
checksum: aa6db47826dd11e775fd18a367b1cf14d411c371c6f5d421aeaca917b426934cff6b411de5c4253b03f8f962634d8b9d247ba874d5310296dc0a43690dc17d7e
checksum: c2eb87241f73d1a968a46a10c0529ea17ac00ef534571e0755bf6b3ed07b6ea2fa2152f19700fd9bfc91c32936cd65b69dc66c0cc23a752169b3409a176ddb7f
languageName: node
linkType: hard
@@ -4801,27 +4803,27 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-react@npm:^7.28.0":
version: 7.28.0
resolution: "eslint-plugin-react@npm:7.28.0"
"eslint-plugin-react@npm:^7.29.3":
version: 7.29.3
resolution: "eslint-plugin-react@npm:7.29.3"
dependencies:
array-includes: ^3.1.4
array.prototype.flatmap: ^1.2.5
doctrine: ^2.1.0
estraverse: ^5.3.0
jsx-ast-utils: ^2.4.1 || ^3.0.0
minimatch: ^3.0.4
minimatch: ^3.1.2
object.entries: ^1.1.5
object.fromentries: ^2.0.5
object.hasown: ^1.1.0
object.values: ^1.1.5
prop-types: ^15.7.2
prop-types: ^15.8.1
resolve: ^2.0.0-next.3
semver: ^6.3.0
string.prototype.matchall: ^4.0.6
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
checksum: 90293d0fd53bb1f735ffd32141cdd211fb1120c9f7bbe5342f9e923261a39e52a2b2575d4e46c9cd77d257f42db4a99b8b339689fc5b5c1c26048929f69b1784
checksum: 5a7b0b5700a3ed9bc52f5e7caab31a60bba586d356d07b49aa78c4b7b83fb54f2e4f6d59f61a9a315f1f89ea74f422a41846ff3432647dd1e8ae629a96dc2814
languageName: node
linkType: hard
@@ -4906,11 +4908,11 @@ __metadata:
languageName: node
linkType: hard
"eslint@npm:^8.9.0":
version: 8.9.0
resolution: "eslint@npm:8.9.0"
"eslint@npm:^8.10.0":
version: 8.10.0
resolution: "eslint@npm:8.10.0"
dependencies:
"@eslint/eslintrc": ^1.1.0
"@eslint/eslintrc": ^1.2.0
"@humanwhocodes/config-array": ^0.9.2
ajv: ^6.10.0
chalk: ^4.0.0
@@ -4947,7 +4949,7 @@ __metadata:
v8-compile-cache: ^2.0.3
bin:
eslint: bin/eslint.js
checksum: 8efecdb9752ee6cb4d2787a14e00cbeab29562ed95dd71c6f3f8ac410426a067d5aa659416d2290e46ca44bc5607e6a6e6c62f814694d8639f80666f522022a7
checksum: 8b31ab3de5b48b6828bf13c09c9e62ee0045fa0afa017efaa73eedcf4dc33bc204ee4c467d4677e37967d1645f73816ddef4271422e691fded352040f8f83093
languageName: node
linkType: hard
@@ -5357,14 +5359,14 @@ __metadata:
languageName: node
linkType: hard
"fs-extra@npm:^10.0.0":
version: 10.0.0
resolution: "fs-extra@npm:10.0.0"
"fs-extra@npm:^10.0.1":
version: 10.0.1
resolution: "fs-extra@npm:10.0.1"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: 5285a3d8f34b917cf2b66af8c231a40c1623626e9d701a20051d3337be16c6d7cac94441c8b3732d47a92a2a027886ca93c69b6a4ae6aee3c89650d2a8880c0a
checksum: c1faaa5eb9e1c5c7c7ff09f966e93922ecb068ae1b04801cfc983ef05fcc1f66bfbb8d8d0b745c910014c7a2e7317fb6cf3bfe7390450c1157e3cc1a218f221d
languageName: node
linkType: hard
@@ -6621,7 +6623,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"jest-diff@npm:^27.0.0, jest-diff@npm:^27.5.1":
"jest-diff@npm:^27.5.1":
version: 27.5.1
resolution: "jest-diff@npm:27.5.1"
dependencies:
@@ -6750,7 +6752,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"jest-matcher-utils@npm:^27.5.1":
"jest-matcher-utils@npm:^27.0.0, jest-matcher-utils@npm:^27.5.1":
version: 27.5.1
resolution: "jest-matcher-utils@npm:27.5.1"
dependencies:
@@ -7603,21 +7605,21 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"minimatch@npm:^3.0.3, minimatch@npm:^3.0.4":
version: 3.1.1
resolution: "minimatch@npm:3.1.1"
"minimatch@npm:^3.0.3, minimatch@npm:^3.0.4, minimatch@npm:^3.1.2":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
dependencies:
brace-expansion: ^1.1.7
checksum: e9e3772e4ea06ea3a888d39bc7690d3c812ee7e5a70c2d2f568ccadac0249a027f865589d19ad03ed937e6ca3b4ad35f85411db9670f7877d8fc2ed452f1cd37
checksum: c154e566406683e7bcb746e000b84d74465b3a832c45d59912b9b55cd50dee66e5c4b1e5566dba26154040e51672f9aa450a9aef0c97cfc7336b78b7afb9540a
languageName: node
linkType: hard
"minimatch@npm:^5.0.0":
version: 5.0.0
resolution: "minimatch@npm:5.0.0"
"minimatch@npm:^5.0.1":
version: 5.0.1
resolution: "minimatch@npm:5.0.1"
dependencies:
brace-expansion: ^2.0.1
checksum: 810d4165fa2b16d0ffe8eb7586b8b7b7122ab77efa8f351686ffd1e8cbe63997ae9d5e7404fe611a676e59e1a47f7f5e8d9a004e0fe5bb6d5ac35457469116a4
checksum: b34b98463da4754bc526b244d680c69d4d6089451ebe512edaf6dd9eeed0279399cfa3edb19233513b8f830bf4bfcad911dddcdf125e75074100d52f724774f0
languageName: node
linkType: hard
@@ -7819,10 +7821,10 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"node-releases@npm:^2.0.1":
version: 2.0.1
resolution: "node-releases@npm:2.0.1"
checksum: b20dd8d4bced11f75060f0387e05e76b9dc4a0451f7bb3516eade6f50499ea7768ba95d8a60d520c193402df1e58cb3fe301510cc1c1ad68949c3d57b5149866
"node-releases@npm:^2.0.2":
version: 2.0.2
resolution: "node-releases@npm:2.0.2"
checksum: da858bf86b4d512842379749f5a5e4196ddab05ba18ffcf29f05bf460beceaca927f070f4430bb5046efec18941ddbc85e4c5fdbb83afc28a38dd6069a2f255e
languageName: node
linkType: hard
@@ -8250,10 +8252,10 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.2.3":
version: 2.3.0
resolution: "picomatch@npm:2.3.0"
checksum: 16818720ea7c5872b6af110760dee856c8e4cd79aed1c7a006d076b1cc09eff3ae41ca5019966694c33fbd2e1cc6ea617ab10e4adac6df06556168f13be3fca2
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.2.3, picomatch@npm:^2.3.0":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf
languageName: node
linkType: hard
@@ -8486,14 +8488,14 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"prop-types@npm:^15.7.2":
version: 15.7.2
resolution: "prop-types@npm:15.7.2"
"prop-types@npm:^15.8.1":
version: 15.8.1
resolution: "prop-types@npm:15.8.1"
dependencies:
loose-envify: ^1.4.0
object-assign: ^4.1.1
react-is: ^16.8.1
checksum: 5eef82fdda64252c7e75aa5c8cc28a24bbdece0f540adb60ce67c205cf978a5bd56b83e4f269f91c6e4dcfd80b36f2a2dec24d362e278913db2086ca9c6f9430
react-is: ^16.13.1
checksum: c056d3f1c057cb7ff8344c645450e14f088a915d078dcda795041765047fa080d38e5d626560ccaac94a4e16e3aa15f3557c1a9a8d1174530955e992c675e459
languageName: node
linkType: hard
@@ -8583,7 +8585,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"react-is@npm:^16.8.1":
"react-is@npm:^16.13.1":
version: 16.13.1
resolution: "react-is@npm:16.13.1"
checksum: f7a19ac3496de32ca9ae12aa030f00f14a3d45374f1ceca0af707c831b2a6098ef0d6bdae51bd437b0a306d7f01d4677fcc8de7c0d331eb47ad0f46130e53c5f
@@ -8965,9 +8967,9 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"rollup@npm:^2.67.2":
version: 2.67.2
resolution: "rollup@npm:2.67.2"
"rollup@npm:^2.69.1":
version: 2.69.1
resolution: "rollup@npm:2.69.1"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
@@ -8975,7 +8977,7 @@ resolve@^2.0.0-next.3:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 9aca5251ba4b441064183cde2394b91567259002d68086bdd3906db66d55dd148ab27e57c51eb53830d7b9b813c2d4e834b7735d65e2a869780bc639d4a20c38
checksum: dc9b21b0ecfdbb5811b2110e80866f60420ffcd744faf38d58117f1c3ac2660d553196d2c4c343a9f9d67b5e83c23d4a3c6050524ae1b4159b8530f2593f2c07
languageName: node
linkType: hard
@@ -8983,12 +8985,12 @@ resolve@^2.0.0-next.3:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@babel/core": ^7.17.4
"@babel/core": ^7.17.5
"@babel/register": ^7.17.0
"@babel/runtime": ^7.17.2
"@polkadot/dev": ^0.65.60
"@polkadot/dev": ^0.65.84
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^27.4.0
"@types/jest": ^27.4.1
copyfiles: ^2.4.1
languageName: unknown
linkType: soft
@@ -9905,23 +9907,23 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"typescript@npm:^4.5.5":
version: 4.5.5
resolution: "typescript@npm:4.5.5"
"typescript@npm:^4.6.2":
version: 4.6.2
resolution: "typescript@npm:4.6.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 506f4c919dc8aeaafa92068c997f1d213b9df4d9756d0fae1a1e7ab66b585ab3498050e236113a1c9e57ee08c21ec6814ca7a7f61378c058d79af50a4b1f5a5e
checksum: 8a44ed7e6f6c4cb1ebe8cf236ecda2fb119d84dcf0fbd77e707b2dfea1bbcfc4e366493a143513ce7f57203c75da9d4e20af6fe46de89749366351046be7577c
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A^4.5.5#~builtin<compat/typescript>":
version: 4.5.5
resolution: "typescript@patch:typescript@npm%3A4.5.5#~builtin<compat/typescript>::version=4.5.5&hash=493e53"
"typescript@patch:typescript@npm%3A^4.6.2#~builtin<compat/typescript>":
version: 4.6.2
resolution: "typescript@patch:typescript@npm%3A4.6.2#~builtin<compat/typescript>::version=4.6.2&hash=493e53"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: c05c318d79c690f101d7ffb34cd6c7d6bbd884d3af9cefe7749ad0cd6be43c7082f098280982ca945dcba23fde34a08fed9602bb26540936baf8c0520727d3ba
checksum: efb83260a22ee49d4c8bdc59b3cefe54fdf51d6f563f5c3a35aa3d5e46fb12f3f1d33a36d6f9f64171e567ead1847e99cb612d0a9a74e7d44e16cad9d0bbc937
languageName: node
linkType: hard