Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5aae48cc28 | ||
|
|
4ab3b55383 | ||
|
|
6ea6b90e03 | ||
|
|
eb5c888cb8 | ||
|
|
cda07dfa0b | ||
|
|
4abae3200b | ||
|
|
b60895beb4 | ||
|
|
855d70a3b3 | ||
|
|
583d9bfe36 | ||
|
|
d519611a25 | ||
|
|
9a9bace8e8 | ||
|
|
40810f2fdb | ||
|
|
361a77580e | ||
|
|
ea45c7e689 | ||
|
|
cc1d51a6ca | ||
|
|
b8233fb7b8 | ||
|
|
5cbe80066d | ||
|
|
3f6c10256c | ||
|
|
609b2830b0 | ||
|
|
b7bbd2d615 | ||
|
|
41d6429782 | ||
|
|
ae168a00a9 | ||
|
|
79694d8a95 | ||
|
|
95be64cbd7 | ||
|
|
76bf7a0079 | ||
|
|
142390f27d | ||
|
|
d0145ce58c | ||
|
|
9217f83870 | ||
|
|
cf261724c3 | ||
|
|
375afb5dff | ||
|
|
9e5779644c | ||
|
|
a6a92837e4 | ||
|
|
d84f40dd77 | ||
|
|
5183c28d5e | ||
|
|
5ed3ea51d3 | ||
|
|
39d76c969d | ||
|
|
5cf4c4edbe | ||
|
|
f6c376a3e7 | ||
|
|
d9a2265b0f | ||
|
|
0c1b1c48f2 | ||
|
|
7c24998e28 |
+2
-1
@@ -6,7 +6,8 @@ const base = require('@polkadot/dev/config/eslint.cjs');
|
||||
module.exports = {
|
||||
...base,
|
||||
ignorePatterns: [
|
||||
...base.ignorePatterns
|
||||
...base.ignorePatterns,
|
||||
'/scripts'
|
||||
],
|
||||
parserOptions: {
|
||||
...base.parserOptions,
|
||||
|
||||
@@ -11,7 +11,10 @@ jobs:
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- uses: denoland/setup-deno@004814556e37c54a2f6e31384c9e18e983317366
|
||||
with:
|
||||
deno-version: vx.x.x
|
||||
|
||||
@@ -19,10 +19,13 @@ jobs:
|
||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GH_PAT_BOT }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- name: ${{ matrix.step }}
|
||||
run: |
|
||||
yarn install --immutable | grep -v 'YN0013'
|
||||
|
||||
@@ -1,5 +1,34 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 9.14.2 Feb 19, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Don't allow `WsProvider.connect()` on an open connection (creates resource leaks)
|
||||
- Adjust typegen to use metadata-defined aliases in query return decoration
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 9.14.1 Feb 12, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Extract aliases for `*_runtime::Runtime{Call, Event}` from metadata
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 9.13.6 Feb 5, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Align `eth_getTransactionCount` with frontier (Thanks to https://github.com/alko89)
|
||||
|
||||
Changes:
|
||||
|
||||
- Additional override for `Compact<{ refTime: u64 }>` chains
|
||||
- Add script to retrieve local rpc, version & metadata for typegen
|
||||
|
||||
|
||||
## 9.13.5 Feb 2, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
3354 Jaco Adjust for aliasses for Weight 1.5 (#5465)
|
||||
3374 Jaco 9.14.2 (#5500)
|
||||
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)
|
||||
@@ -46,6 +46,7 @@
|
||||
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
|
||||
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
|
||||
1 Aleš Ferlan fix: use H160 for address in getTransactionCount (#5472)
|
||||
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
||||
1 chriswmercer little readme tweak (#279)
|
||||
|
||||
+10
-9
@@ -11,10 +11,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"versions": {
|
||||
"git": "9.13.5",
|
||||
"npm": "9.13.5"
|
||||
"git": "9.14.2",
|
||||
"npm": "9.14.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -23,28 +23,29 @@
|
||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
|
||||
"build:interfaces": "polkadot-types-internal-interfaces",
|
||||
"build:metadata": "yarn build:interfaces && yarn test:one packages/types/src/metadata/v14",
|
||||
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||
"build:release": "polkadot-ci-ghact-build",
|
||||
"build:rollup": "polkadot-exec-rollup --config",
|
||||
"build:upgrades": "yarn test:one packages/types-known/src/upgrades/e2e",
|
||||
"build:upgrades": "polkadot-dev-run-test upgrades/e2e",
|
||||
"chain:info": "polkadot-types-chain-info",
|
||||
"clean": "polkadot-dev-clean-build",
|
||||
"deno": "yarn polkadot-dev-deno-map && yarn build && deno check --import-map=import_map.json mod.ts",
|
||||
"lint": "polkadot-dev-run-lint",
|
||||
"postinstall": "polkadot-dev-yarn-only",
|
||||
"test": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --coverage --forceExit --runInBand --testPathIgnorePatterns e2e",
|
||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||
"test": "polkadot-dev-run-test --env jest --coverage --forceExit --runInBand ^e2e",
|
||||
"test:node": "polkadot-dev-run-test --env node ^e2e",
|
||||
"test:one": "polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/dev": "^0.68.3",
|
||||
"@polkadot/dev": "^0.68.38",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^29.4.0",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^4.9.4"
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,15 +20,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api-base": "9.13.5",
|
||||
"@polkadot/rpc-augment": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-augment": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/api-base": "9.14.2",
|
||||
"@polkadot/rpc-augment": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-augment": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,18 +33,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The number of blocks back we should accept uncles.
|
||||
* This means that we will deal with uncle-parents that are
|
||||
* `UncleGenerations + 1` before `now`.
|
||||
**/
|
||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* The amount of time, in slots, that each epoch should last.
|
||||
@@ -399,6 +387,15 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||
* value should relate to the bonding duration of whatever staking system is
|
||||
* being used (if any). If equivocation handling is not enabled then this value
|
||||
* can be zero.
|
||||
**/
|
||||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -620,18 +617,28 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of candidates in a phragmen election.
|
||||
*
|
||||
* Warning: The election happens onchain, and this value will determine
|
||||
* the size of the election. When this limit is reached no more
|
||||
* candidates are accepted in the election.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When this limit is reached no more candidates are accepted in the election.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to allow in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When the limit is reached the new voters are ignored.
|
||||
**/
|
||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum numbers of votes per voter.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
**/
|
||||
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the elections-phragmen pallet's lock
|
||||
**/
|
||||
|
||||
@@ -45,40 +45,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The uncle is genesis.
|
||||
**/
|
||||
GenesisUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle parent not in the chain.
|
||||
**/
|
||||
InvalidUncleParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle isn't recent enough to be included.
|
||||
**/
|
||||
OldUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is too high in chain.
|
||||
**/
|
||||
TooHighUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many uncles.
|
||||
**/
|
||||
TooManyUncles: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is already included.
|
||||
**/
|
||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Uncles already set in the block.
|
||||
**/
|
||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
@@ -509,6 +475,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The given account did not vote on the referendum.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal still blacklisted
|
||||
**/
|
||||
@@ -724,6 +694,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No track exists for the proposal origin.
|
||||
**/
|
||||
NoTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
@@ -1478,12 +1452,20 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid signature on statement.
|
||||
**/
|
||||
InvalidSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A dispute vote from a malicious backer.
|
||||
**/
|
||||
MaliciousBacker: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No backing votes were provides along dispute statements.
|
||||
**/
|
||||
MissingBackingVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A dispute where there are only votes on one side.
|
||||
**/
|
||||
SingleSidedDispute: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unconfirmed dispute statement sets provided
|
||||
* Unconfirmed dispute statement sets provided.
|
||||
**/
|
||||
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1748,6 +1730,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No track exists for the proposal origin.
|
||||
**/
|
||||
NoTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -281,6 +281,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An external proposal has been tabled.
|
||||
**/
|
||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata has been transferred to new owner.
|
||||
**/
|
||||
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -451,6 +463,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A referendum has been killed.
|
||||
**/
|
||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||
/**
|
||||
* Metadata for a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -1025,6 +1045,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A referendum has been killed.
|
||||
**/
|
||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* Metadata for a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -1155,6 +1183,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A new \[max\] member count has been set
|
||||
**/
|
||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||
/**
|
||||
* A group of members has been choosen as Skeptics
|
||||
**/
|
||||
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||
/**
|
||||
* A suspended member has been judged.
|
||||
**/
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
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 { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -53,14 +53,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Author of current block.
|
||||
**/
|
||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether uncles were already set in this block.
|
||||
**/
|
||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Uncles
|
||||
**/
|
||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -411,6 +403,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||
**/
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
||||
/**
|
||||
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
||||
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||
@@ -612,6 +613,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The number of referenda being decided currently.
|
||||
**/
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
@@ -650,6 +660,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||
* members were responsible.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||
* was the owner of a given key on a given session, and what the active set ID was
|
||||
* during that session.
|
||||
*
|
||||
* TWOX-NOTE: `SetId` is not under user control.
|
||||
**/
|
||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
@@ -1280,6 +1296,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parasDisputes: {
|
||||
/**
|
||||
* Backing votes stored for each dispute.
|
||||
* This storage is used for slashing.
|
||||
**/
|
||||
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
@@ -1321,6 +1342,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
@@ -1444,6 +1469,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The number of referenda being decided currently.
|
||||
**/
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -33,18 +33,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The number of blocks back we should accept uncles.
|
||||
* This means that we will deal with uncle-parents that are
|
||||
* `UncleGenerations + 1` before `now`.
|
||||
**/
|
||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* The amount of time, in slots, that each epoch should last.
|
||||
@@ -350,6 +338,15 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||
* value should relate to the bonding duration of whatever staking system is
|
||||
* being used (if any). If equivocation handling is not enabled then this value
|
||||
* can be zero.
|
||||
**/
|
||||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -485,18 +482,28 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of candidates in a phragmen election.
|
||||
*
|
||||
* Warning: The election happens onchain, and this value will determine
|
||||
* the size of the election. When this limit is reached no more
|
||||
* candidates are accepted in the election.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When this limit is reached no more candidates are accepted in the election.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to allow in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When the limit is reached the new voters are ignored.
|
||||
**/
|
||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum numbers of votes per voter.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
**/
|
||||
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the elections-phragmen pallet's lock
|
||||
**/
|
||||
|
||||
@@ -45,40 +45,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The uncle is genesis.
|
||||
**/
|
||||
GenesisUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle parent not in the chain.
|
||||
**/
|
||||
InvalidUncleParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle isn't recent enough to be included.
|
||||
**/
|
||||
OldUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is too high in chain.
|
||||
**/
|
||||
TooHighUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many uncles.
|
||||
**/
|
||||
TooManyUncles: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is already included.
|
||||
**/
|
||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Uncles already set in the block.
|
||||
**/
|
||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
@@ -454,6 +420,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The given account did not vote on the referendum.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal still blacklisted
|
||||
**/
|
||||
@@ -1222,12 +1192,20 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid signature on statement.
|
||||
**/
|
||||
InvalidSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A dispute vote from a malicious backer.
|
||||
**/
|
||||
MaliciousBacker: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No backing votes were provides along dispute statements.
|
||||
**/
|
||||
MissingBackingVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A dispute where there are only votes on one side.
|
||||
**/
|
||||
SingleSidedDispute: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unconfirmed dispute statement sets provided
|
||||
* Unconfirmed dispute statement sets provided.
|
||||
**/
|
||||
UnconfirmedDispute: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -267,6 +267,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An external proposal has been tabled.
|
||||
**/
|
||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata has been transferred to new owner.
|
||||
**/
|
||||
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
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 { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -53,14 +53,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Author of current block.
|
||||
**/
|
||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether uncles were already set in this block.
|
||||
**/
|
||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Uncles
|
||||
**/
|
||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -394,6 +386,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||
**/
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
||||
/**
|
||||
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
||||
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||
@@ -579,6 +580,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||
* members were responsible.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||
* was the owner of a given key on a given session, and what the active set ID was
|
||||
* during that session.
|
||||
*
|
||||
* TWOX-NOTE: `SetId` is not under user control.
|
||||
**/
|
||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
@@ -1133,6 +1140,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parasDisputes: {
|
||||
/**
|
||||
* Backing votes stored for each dispute.
|
||||
* This storage is used for slashing.
|
||||
**/
|
||||
backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
@@ -1174,6 +1186,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
earliestStoredSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -79,18 +79,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The number of blocks back we should accept uncles.
|
||||
* This means that we will deal with uncle-parents that are
|
||||
* `UncleGenerations + 1` before `now`.
|
||||
**/
|
||||
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* The amount of time, in slots, that each epoch should last.
|
||||
@@ -473,18 +461,28 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of candidates in a phragmen election.
|
||||
*
|
||||
* Warning: The election happens onchain, and this value will determine
|
||||
* the size of the election. When this limit is reached no more
|
||||
* candidates are accepted in the election.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When this limit is reached no more candidates are accepted in the election.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to allow in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain.
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When the limit is reached the new voters are ignored.
|
||||
**/
|
||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum numbers of votes per voter.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
**/
|
||||
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the elections-phragmen pallet's lock
|
||||
**/
|
||||
@@ -527,6 +525,15 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||
* value should relate to the bonding duration of whatever staking system is
|
||||
* being used (if any). If equivocation handling is not enabled then this value
|
||||
* can be zero.
|
||||
**/
|
||||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -696,6 +703,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum length of an attribute key.
|
||||
**/
|
||||
keyLimit: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The max number of attributes a user could set per call.
|
||||
**/
|
||||
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The max duration in blocks for deadlines.
|
||||
**/
|
||||
|
||||
@@ -245,40 +245,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
authorship: {
|
||||
/**
|
||||
* The uncle is genesis.
|
||||
**/
|
||||
GenesisUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle parent not in the chain.
|
||||
**/
|
||||
InvalidUncleParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle isn't recent enough to be included.
|
||||
**/
|
||||
OldUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is too high in chain.
|
||||
**/
|
||||
TooHighUncle: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many uncles.
|
||||
**/
|
||||
TooManyUncles: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The uncle is already included.
|
||||
**/
|
||||
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Uncles already set in the block.
|
||||
**/
|
||||
UnclesAlreadySet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
@@ -448,10 +414,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Contract trapped during execution.
|
||||
**/
|
||||
ContractTrapped: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The debug message specified to `seal_debug_message` does contain invalid UTF-8.
|
||||
**/
|
||||
DebugMessageInvalidUTF8: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Input passed to a contract API function failed to decode as expected type.
|
||||
**/
|
||||
@@ -714,6 +676,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The given account did not vote on the referendum.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal still blacklisted
|
||||
**/
|
||||
@@ -1242,6 +1208,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The provided data is incorrect.
|
||||
**/
|
||||
IncorrectData: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided metadata might be too long.
|
||||
**/
|
||||
IncorrectMetadata: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The item is locked (non-transferable).
|
||||
**/
|
||||
@@ -1266,6 +1236,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Item's metadata is locked.
|
||||
**/
|
||||
LockedItemMetadata: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Can't set more attributes per one call.
|
||||
**/
|
||||
MaxAttributesLimitReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The max supply is locked and can't be changed.
|
||||
**/
|
||||
@@ -1346,6 +1320,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
||||
**/
|
||||
WrongDuration: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The extrinsic was sent by the wrong origin.
|
||||
**/
|
||||
WrongOrigin: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The owner turned out to be different to what was expected.
|
||||
**/
|
||||
@@ -1354,6 +1332,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The provided setting can't be set.
|
||||
**/
|
||||
WrongSetting: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided signature is incorrect.
|
||||
**/
|
||||
WrongSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1683,6 +1665,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No track exists for the proposal origin.
|
||||
**/
|
||||
NoTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
@@ -1807,6 +1793,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No track exists for the proposal origin.
|
||||
**/
|
||||
NoTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -437,6 +437,18 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An external proposal has been tabled.
|
||||
**/
|
||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata has been transferred to new owner.
|
||||
**/
|
||||
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -1140,6 +1152,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A referendum has been killed.
|
||||
**/
|
||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||
/**
|
||||
* Metadata for a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -1226,6 +1246,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A referendum has been killed.
|
||||
**/
|
||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* Metadata for a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
@@ -1341,6 +1369,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A new \[max\] member count has been set
|
||||
**/
|
||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||
/**
|
||||
* A group of members has been choosen as Skeptics
|
||||
**/
|
||||
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||
/**
|
||||
* A suspended member has been judged.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, 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 { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueueMockHelpersMessageOrigin, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueueMockHelpersMessageOrigin, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -128,14 +128,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Author of current block.
|
||||
**/
|
||||
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether uncles were already set in this block.
|
||||
**/
|
||||
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Uncles
|
||||
**/
|
||||
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -234,6 +226,17 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* epoch.
|
||||
**/
|
||||
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A list of the last 100 skipped epochs and the corresponding session index
|
||||
* when the epoch was skipped.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof
|
||||
* must contains a key-ownership proof for a given session, therefore we need a
|
||||
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
||||
* a validator was the owner of a given key on a given session, and what the
|
||||
* active epoch index was during that session.
|
||||
**/
|
||||
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
||||
**/
|
||||
@@ -471,6 +474,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||
**/
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
||||
/**
|
||||
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
||||
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||
@@ -674,6 +686,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
||||
* members were responsible.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
||||
* was the owner of a given key on a given session, and what the active set ID was
|
||||
* during that session.
|
||||
*
|
||||
* TWOX-NOTE: `SetId` is not under user control.
|
||||
**/
|
||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
@@ -1163,6 +1181,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The number of referenda being decided currently.
|
||||
**/
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
@@ -1211,6 +1238,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The number of referenda being decided currently.
|
||||
**/
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/rpc-core": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/rpc-core": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"rxjs": "^7.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/types-create": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/api": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/types-create": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"rxjs": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/keyring": "^10.3.1"
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/keyring": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import process from 'process';
|
||||
|
||||
import { TypeDefInfo } from '@polkadot/types/types';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
@@ -41,6 +42,9 @@ interface JSONAbi {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||
const cmpPath = path.join(process.cwd(), 'packages/api-contract/src/test/compare');
|
||||
|
||||
function stringifyInfo (key: string, value: unknown): unknown {
|
||||
return key === 'info'
|
||||
? TypeDefInfo[value as number]
|
||||
@@ -82,25 +86,23 @@ describe('Abi', (): void => {
|
||||
});
|
||||
|
||||
describe('TypeDef', (): void => {
|
||||
Object.keys(abis).forEach((abiName) => {
|
||||
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
||||
const abi = new Abi(abis[abiName]);
|
||||
const json = stringifyJson(abi.registry);
|
||||
const cmpPath = path.join(__dirname, `../test/compare/${abiName}.test.json`);
|
||||
it.each(Object.keys(abis))('initializes from a contract ABI: %s', (abiName): void => {
|
||||
const abi = new Abi(abis[abiName]);
|
||||
const json = stringifyJson(abi.registry);
|
||||
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
expect(JSON.parse(json)).toEqual(require(cmpPath));
|
||||
} catch (error) {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
console.error(json);
|
||||
try {
|
||||
expect(JSON.parse(json)).toEqual(JSON.parse(cmpText));
|
||||
} catch (error) {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
console.error(json);
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
fs.writeFileSync(cmpPath, json, { flag: 'w' });
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
|
||||
fs.writeFileSync(cmpFile, json, { flag: 'w' });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import process from 'process';
|
||||
|
||||
import { toPromiseMethod } from '@polkadot/api';
|
||||
|
||||
@@ -12,7 +13,8 @@ import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' a
|
||||
import { Code } from './Code';
|
||||
import { mockApi } from './mock';
|
||||
|
||||
const v0wasmFlipper = fs.readFileSync(path.join(__dirname, '../test/contracts/ink/v0/flipper.wasm'));
|
||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||
const v0wasmFlipper = fs.readFileSync(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
||||
|
||||
describe('Code', (): void => {
|
||||
it('can construct with an individual ABI/WASM combo', (): void => {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api": "9.13.5",
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/api-base": "9.13.5",
|
||||
"@polkadot/rpc-core": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/api": "9.14.2",
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/api-base": "9.14.2",
|
||||
"@polkadot/rpc-core": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"rxjs": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.13.5",
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/rpc-augment": "9.13.5",
|
||||
"@polkadot/rpc-provider": "9.13.5",
|
||||
"@polkadot/types-support": "9.13.5"
|
||||
"@polkadot/api": "9.14.2",
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/rpc-augment": "9.14.2",
|
||||
"@polkadot/rpc-provider": "9.14.2",
|
||||
"@polkadot/types-support": "9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,19 +27,20 @@ const testFunction = (api: ApiRx): any => {
|
||||
};
|
||||
};
|
||||
|
||||
function waitReady (api: ApiRx): Promise<ApiRx> {
|
||||
return new Promise<ApiRx>((resolve) =>
|
||||
api.isReady.subscribe((api) => resolve(api))
|
||||
);
|
||||
}
|
||||
|
||||
describe('derive', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
describe('builtin', (): void => {
|
||||
const api = new ApiRx({ provider: new MockProvider(registry), registry });
|
||||
|
||||
beforeAll((done): void => {
|
||||
api.isReady.subscribe(() => done());
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await api.disconnect();
|
||||
});
|
||||
beforeAll(() => waitReady(api));
|
||||
afterAll(() => api.disconnect());
|
||||
|
||||
testFunction(api)('accounts', 'idAndIndex', []);
|
||||
testFunction(api)('accounts', 'idToIndex', []);
|
||||
@@ -81,13 +82,8 @@ describe('derive', (): void => {
|
||||
throwOnConnect: true
|
||||
});
|
||||
|
||||
beforeAll((done): void => {
|
||||
api.isReady.subscribe(() => done());
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await api.disconnect();
|
||||
});
|
||||
beforeAll(() => waitReady(api));
|
||||
afterAll(() => api.disconnect());
|
||||
|
||||
// override
|
||||
testFunction(api)('balances', 'fees', ['a', 'b']);
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
+17
-17
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/api-base": "9.13.5",
|
||||
"@polkadot/api-derive": "9.13.5",
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/rpc-augment": "9.13.5",
|
||||
"@polkadot/rpc-core": "9.13.5",
|
||||
"@polkadot/rpc-provider": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-augment": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/types-create": "9.13.5",
|
||||
"@polkadot/types-known": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/api-base": "9.14.2",
|
||||
"@polkadot/api-derive": "9.14.2",
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
"@polkadot/rpc-augment": "9.14.2",
|
||||
"@polkadot/rpc-core": "9.14.2",
|
||||
"@polkadot/rpc-provider": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-augment": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/types-create": "9.14.2",
|
||||
"@polkadot/types-known": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"rxjs": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/types-support": "9.13.5"
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/types-support": "9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,8 +363,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
}
|
||||
}
|
||||
|
||||
const filterKey = (k: string) => !allKeys.includes(k);
|
||||
const unknown = exposed.filter(filterKey);
|
||||
const unknown = exposed.filter((k: string) =>
|
||||
!allKeys.includes(k) &&
|
||||
!k.includes('_unstable_')
|
||||
);
|
||||
|
||||
if (unknown.length && !this._options.noInitWarn) {
|
||||
l.warn(`RPC methods not decorated: ${unknown.join(', ')}`);
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { SubmittableExtrinsic } from '../types';
|
||||
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
import { createPair } from '@polkadot/keyring/pair';
|
||||
import { createTestKeyring } from '@polkadot/keyring/testing';
|
||||
import { MockProvider } from '@polkadot/rpc-provider/mock';
|
||||
@@ -47,7 +45,6 @@ describe('ApiPromise', (): void => {
|
||||
}
|
||||
|
||||
beforeEach((): void => {
|
||||
jest.setTimeout(10000);
|
||||
provider = new MockProvider(registry);
|
||||
});
|
||||
|
||||
|
||||
@@ -4,15 +4,14 @@
|
||||
import { augmentObject } from './augmentObject';
|
||||
|
||||
describe('augmentObject', (): void => {
|
||||
let spy: any;
|
||||
let spy: jest.SpyInstance;
|
||||
|
||||
beforeEach((): void => {
|
||||
spy = jest.spyOn(console, 'warn');
|
||||
});
|
||||
|
||||
afterEach((): void => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
|
||||
spy.mockClear();
|
||||
spy.mockRestore();
|
||||
});
|
||||
|
||||
it('logs added/removed sections and methods', (): void => {
|
||||
@@ -24,12 +23,12 @@ describe('augmentObject', (): void => {
|
||||
|
||||
expect(spy).toHaveBeenCalledWith(
|
||||
expect.anything(),
|
||||
expect.stringContaining('API/AUGMENT'),
|
||||
expect.stringMatching(/API\/AUGMENT/),
|
||||
'api.test: Found 1 added and 1 removed modules:\n\t added: new\n\tremoved: baz'
|
||||
);
|
||||
expect(spy).toHaveBeenCalledWith(
|
||||
expect.anything(),
|
||||
expect.stringContaining('API/AUGMENT'),
|
||||
expect.stringMatching(/API\/AUGMENT/),
|
||||
'api.test: Found 2 added and 3 removed calls:\n\t added: bar.b, foo.d\n\tremoved: bar.a, bar.c, foo.c'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/rpc-core": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/rpc-core": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
/**
|
||||
* Returns the number of transactions sent from given address at given time (block number).
|
||||
**/
|
||||
getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
||||
getTransactionCount: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
|
||||
/**
|
||||
* Returns transaction receipt by transaction hash.
|
||||
**/
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/rpc-augment": "9.13.5",
|
||||
"@polkadot/rpc-provider": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/rpc-augment": "9.14.2",
|
||||
"@polkadot/rpc-provider": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"rxjs": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/rpc-augment": "9.13.5"
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
"@polkadot/rpc-augment": "9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { jest } from '@jest/globals';
|
||||
import { of, timer } from 'rxjs';
|
||||
|
||||
import { drr } from '.';
|
||||
|
||||
describe('drr', (): void => {
|
||||
beforeEach((): void => {
|
||||
jest.setTimeout(15000);
|
||||
});
|
||||
|
||||
it('should not fire twice the same value', (done): void => {
|
||||
let count = 0;
|
||||
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-support": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/x-fetch": "^10.3.1",
|
||||
"@polkadot/x-global": "^10.3.1",
|
||||
"@polkadot/x-ws": "^10.3.1",
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-support": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"@polkadot/x-fetch": "^10.4.2",
|
||||
"@polkadot/x-global": "^10.4.2",
|
||||
"@polkadot/x-ws": "^10.4.2",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"mock-socket": "^9.1.5",
|
||||
"mock-socket": "^9.2.1",
|
||||
"nock": "^13.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -6,7 +6,9 @@ import type { Mock } from '../mock/types';
|
||||
import { mockHttp, TEST_HTTP_URL } from '../mock/mockHttp';
|
||||
import { HttpProvider } from './';
|
||||
|
||||
describe('send', (): void => {
|
||||
// Does not work with Node 18 (native fetch)
|
||||
// See https://github.com/nock/nock/issues/2397
|
||||
describe.skip('send', (): void => {
|
||||
let http: HttpProvider;
|
||||
let mock: Mock;
|
||||
|
||||
@@ -14,9 +16,9 @@ describe('send', (): void => {
|
||||
http = new HttpProvider(TEST_HTTP_URL);
|
||||
});
|
||||
|
||||
afterEach((): void => {
|
||||
afterEach(async () => {
|
||||
if (mock) {
|
||||
mock.done();
|
||||
await mock.done();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -69,11 +69,7 @@ export function mockWs (requests: Request[], wsUrl: string = TEST_WS_URL): Scope
|
||||
let requestCount = 0;
|
||||
const scope: Scope = {
|
||||
body: {},
|
||||
done: (): void => {
|
||||
server.stop((): void => {
|
||||
// ignore
|
||||
});
|
||||
},
|
||||
done: () => new Promise<void>((resolve) => server.stop(resolve)),
|
||||
requests: 0,
|
||||
server
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ export interface Mock {
|
||||
body: Record<string, Record<string, unknown>>;
|
||||
requests: number;
|
||||
server: Server;
|
||||
done: () => Record<string, unknown>;
|
||||
done: () => Promise<void>;
|
||||
}
|
||||
|
||||
export type MockStateSubscriptionCallback = (error: Error | null, value: any) => void;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -21,18 +21,33 @@
|
||||
import type Sc from '@substrate/connect';
|
||||
import type { HealthChecker, SmoldotHealth } from './types';
|
||||
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
import { ScProvider } from '.';
|
||||
|
||||
const wait = (ms: number) => new Promise((res) => setTimeout(res, ms));
|
||||
type MockChain = Sc.Chain & {
|
||||
_spec: () => string
|
||||
_recevedRequests: () => string[]
|
||||
_isTerminated: () => boolean
|
||||
_triggerCallback: (response: string | {}) => void
|
||||
_setTerminateInterceptor: (fn: () => void) => void
|
||||
_setSendJsonRpcInterceptor: (fn: (rpc: string) => void) => void
|
||||
_getLatestRequest: () => string
|
||||
}
|
||||
|
||||
type MockedHealthChecker = HealthChecker & {
|
||||
_isActive: () => boolean
|
||||
_triggerHealthUpdate: (update: SmoldotHealth) => void
|
||||
}
|
||||
|
||||
const healthCheckerMock = (): MockedHealthChecker => {
|
||||
enum WellKnownChain {
|
||||
polkadot = 'polkadot',
|
||||
ksmcc3 = 'ksmcc3',
|
||||
rococo_v2_2 = 'rococo_v2_2',
|
||||
westend2 = 'westend2'
|
||||
}
|
||||
|
||||
const wait = (ms: number) => new Promise((res) => setTimeout(res, ms));
|
||||
|
||||
function healthCheckerMock (): MockedHealthChecker {
|
||||
let cb: (health: SmoldotHealth) => void = () => {};
|
||||
|
||||
let sendJsonRpc: (request: string) => void = () => {};
|
||||
@@ -57,9 +72,9 @@ const healthCheckerMock = (): MockedHealthChecker => {
|
||||
cb(update);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
const healthCheckerFactory = () => {
|
||||
function healthCheckerFactory () {
|
||||
const _healthCheckers: MockedHealthChecker[] = [];
|
||||
|
||||
return {
|
||||
@@ -73,21 +88,9 @@ const healthCheckerFactory = () => {
|
||||
_healthCheckers,
|
||||
_latestHealthChecker: () => _healthCheckers.slice(-1)[0]
|
||||
};
|
||||
};
|
||||
|
||||
jest.mock('./Health', () => healthCheckerFactory());
|
||||
|
||||
type MockChain = Sc.Chain & {
|
||||
_spec: () => string
|
||||
_recevedRequests: () => string[]
|
||||
_isTerminated: () => boolean
|
||||
_triggerCallback: (response: string | {}) => void
|
||||
_setTerminateInterceptor: (fn: () => void) => void
|
||||
_setSendJsonRpcInterceptor: (fn: (rpc: string) => void) => void
|
||||
_getLatestRequest: () => string
|
||||
}
|
||||
|
||||
const getFakeChain = (spec: string, callback: Sc.JsonRpcCallback): MockChain => {
|
||||
function getFakeChain (spec: string, callback: Sc.JsonRpcCallback): MockChain {
|
||||
const _receivedRequests: string[] = [];
|
||||
let _isTerminated = false;
|
||||
|
||||
@@ -119,9 +122,9 @@ const getFakeChain = (spec: string, callback: Sc.JsonRpcCallback): MockChain =>
|
||||
},
|
||||
_getLatestRequest: () => _receivedRequests[_receivedRequests.length - 1]
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
const getFakeClient = () => {
|
||||
function getFakeClient () {
|
||||
const chains: MockChain[] = [];
|
||||
let addChainInterceptor: Promise<void> = Promise.resolve();
|
||||
let addWellKnownChainInterceptor: Promise<void> = Promise.resolve();
|
||||
@@ -154,16 +157,9 @@ const getFakeClient = () => {
|
||||
return result;
|
||||
})
|
||||
};
|
||||
};
|
||||
|
||||
enum WellKnownChain {
|
||||
polkadot = 'polkadot',
|
||||
ksmcc3 = 'ksmcc3',
|
||||
rococo_v2_2 = 'rococo_v2_2',
|
||||
westend2 = 'westend2'
|
||||
}
|
||||
|
||||
const connectorFactory = () => {
|
||||
function connectorFactory () {
|
||||
const clients: ReturnType<typeof getFakeClient>[] = [];
|
||||
const latestClient = () => clients[clients.length - 1];
|
||||
|
||||
@@ -181,26 +177,26 @@ const connectorFactory = () => {
|
||||
latestChain: () =>
|
||||
latestClient()._chains()[latestClient()._chains().length - 1]
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
let mockSc: typeof Sc & { latestChain: () => MockChain };
|
||||
let mockedHealthChecker: ReturnType<typeof healthCheckerFactory>;
|
||||
const getCurrentHealthChecker = () => mockedHealthChecker._latestHealthChecker();
|
||||
|
||||
const setChainSyncyingStatus = (isSyncing: boolean) => {
|
||||
function setChainSyncyingStatus (isSyncing: boolean) {
|
||||
getCurrentHealthChecker()._triggerHealthUpdate({
|
||||
isSyncing,
|
||||
peers: 1,
|
||||
shouldHavePeers: true
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
beforeAll(() => {
|
||||
mockSc = connectorFactory() as unknown as typeof Sc & { latestChain: () => MockChain };
|
||||
mockedHealthChecker = healthCheckerFactory();
|
||||
});
|
||||
let mockSc: typeof Sc & { latestChain: () => MockChain };
|
||||
let mockedHealthChecker: ReturnType<typeof healthCheckerFactory>;
|
||||
const getCurrentHealthChecker = () => mockedHealthChecker._latestHealthChecker();
|
||||
|
||||
describe('ScProvider', () => {
|
||||
beforeAll(() => {
|
||||
mockSc = connectorFactory() as unknown as typeof Sc & { latestChain: () => MockChain };
|
||||
mockedHealthChecker = healthCheckerFactory();
|
||||
});
|
||||
|
||||
describe('on', () => {
|
||||
it('emits `connected` as soon as the chain is not syncing', async () => {
|
||||
const provider = new ScProvider(mockSc, '');
|
||||
@@ -251,16 +247,15 @@ describe('ScProvider', () => {
|
||||
setChainSyncyingStatus(false);
|
||||
|
||||
const onConnected = jest.fn();
|
||||
|
||||
provider.on('connected', onConnected);
|
||||
const onDisconnected = jest.fn();
|
||||
|
||||
provider.on('connected', onConnected);
|
||||
provider.on('disconnected', onDisconnected);
|
||||
|
||||
expect(onConnected).toHaveBeenCalled();
|
||||
expect(onDisconnected).not.toHaveBeenCalled();
|
||||
|
||||
onConnected.mockRestore();
|
||||
onConnected.mockReset();
|
||||
setChainSyncyingStatus(true);
|
||||
|
||||
expect(onConnected).not.toHaveBeenCalled();
|
||||
@@ -284,7 +279,7 @@ describe('ScProvider', () => {
|
||||
|
||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||
|
||||
expect(() => provider.clone()).toThrowError();
|
||||
expect(() => provider.clone()).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -306,9 +301,9 @@ describe('ScProvider', () => {
|
||||
|
||||
setChainSyncyingStatus(false);
|
||||
|
||||
await expect(provider.connect(undefined, mockedHealthChecker.healthChecker)).rejects.toThrowError(
|
||||
'Already connected!'
|
||||
);
|
||||
await expect(
|
||||
provider.connect(undefined, mockedHealthChecker.healthChecker)
|
||||
).rejects.toThrow(/Already connected/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -328,9 +323,8 @@ describe('ScProvider', () => {
|
||||
const provider = new ScProvider(mockSc, '');
|
||||
|
||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||
|
||||
await provider.disconnect();
|
||||
await expect(provider.disconnect()).resolves.not.toThrow();
|
||||
await provider.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -402,9 +396,9 @@ describe('ScProvider', () => {
|
||||
throw new Error('boom!');
|
||||
});
|
||||
|
||||
await expect(provider.send('getData', ['foo'])).rejects.toThrowError(
|
||||
'Disconnected'
|
||||
);
|
||||
await expect(
|
||||
provider.send('getData', ['foo'])
|
||||
).rejects.toThrow(/Disconnected/);
|
||||
expect(provider.isConnected).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -551,8 +545,7 @@ describe('ScProvider', () => {
|
||||
|
||||
expect(token).toBe(unsubscribeToken);
|
||||
expect(cb).toHaveBeenCalledTimes(1);
|
||||
expect(cb.mock.lastCall![0]).toBeInstanceOf(Error);
|
||||
expect(cb.mock.lastCall![1]).toBe(undefined);
|
||||
expect(cb).toHaveBeenLastCalledWith(expect.any(Error), undefined);
|
||||
});
|
||||
|
||||
it('errors when subscribing to an unsupported method', async () => {
|
||||
@@ -561,11 +554,11 @@ describe('ScProvider', () => {
|
||||
await provider.connect(undefined, mockedHealthChecker.healthChecker);
|
||||
|
||||
setChainSyncyingStatus(false);
|
||||
await wait(0);
|
||||
|
||||
await wait(0);
|
||||
await expect(
|
||||
provider.subscribe('foo', 'bar', ['baz'], () => {})
|
||||
).rejects.toThrowError('Unsupported subscribe method: bar');
|
||||
).rejects.toThrow(/Unsupported subscribe method: bar/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -577,9 +570,9 @@ describe('ScProvider', () => {
|
||||
|
||||
setChainSyncyingStatus(false);
|
||||
|
||||
await expect(provider.unsubscribe('', '', '')).rejects.toThrowError(
|
||||
'Unable to find active subscription=::'
|
||||
);
|
||||
await expect(
|
||||
provider.unsubscribe('', '', '')
|
||||
).rejects.toThrow(/Unable to find active subscription/);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -3,97 +3,104 @@
|
||||
|
||||
import type { Mock } from '../mock/types';
|
||||
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
import { mockWs } from '../mock/mockWs';
|
||||
import { WsProvider } from './';
|
||||
|
||||
const TEST_WS_URL = 'ws://localhost-connect.spec.ts:9988';
|
||||
|
||||
function sleepMs (ms = 0): Promise<void> {
|
||||
function sleep (ms = 100): Promise<void> {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
describe('onConnect', (): void => {
|
||||
let mocks: Mock[];
|
||||
let provider: WsProvider | null;
|
||||
|
||||
beforeEach((): void => {
|
||||
jest.setTimeout(30000);
|
||||
mocks = [mockWs([], TEST_WS_URL)];
|
||||
});
|
||||
|
||||
afterEach((): void => {
|
||||
jest.setTimeout(5000);
|
||||
mocks.forEach((m) => {
|
||||
if (m) {
|
||||
m.done();
|
||||
}
|
||||
});
|
||||
afterEach(async () => {
|
||||
if (provider) {
|
||||
await provider.disconnect();
|
||||
await sleep();
|
||||
|
||||
provider = null;
|
||||
}
|
||||
|
||||
await Promise.all(mocks.map((m) => m.done()));
|
||||
await sleep();
|
||||
});
|
||||
|
||||
it('Does not connect when autoConnect is false', async () => {
|
||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, 0);
|
||||
provider = new WsProvider(TEST_WS_URL, 0);
|
||||
|
||||
await sleep();
|
||||
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
expect(provider.isConnected).toBe(false);
|
||||
|
||||
await provider.connect();
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
await sleep();
|
||||
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
await provider.disconnect();
|
||||
await sleep();
|
||||
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
expect(provider.isConnected).toBe(false);
|
||||
});
|
||||
|
||||
it('Does connect when autoConnect is true', async () => {
|
||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, 1);
|
||||
provider = new WsProvider(TEST_WS_URL, 1);
|
||||
|
||||
await sleep();
|
||||
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
await provider.disconnect();
|
||||
});
|
||||
|
||||
it('Creates a new WebSocket instance by calling the connect() method', async () => {
|
||||
const provider: WsProvider = new WsProvider(TEST_WS_URL, false);
|
||||
provider = new WsProvider(TEST_WS_URL, false);
|
||||
|
||||
expect(provider.isConnected).toBe(false);
|
||||
expect(mocks[0].server.clients().length).toBe(0);
|
||||
|
||||
await provider.connect();
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
await sleep();
|
||||
|
||||
expect(provider.isConnected).toBe(true);
|
||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||
|
||||
await provider.disconnect();
|
||||
});
|
||||
|
||||
it('Connects to first endpoint when an array is given', async () => {
|
||||
const provider: WsProvider = new WsProvider([TEST_WS_URL], 1);
|
||||
provider = new WsProvider([TEST_WS_URL], 1);
|
||||
|
||||
await provider.connect();
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
await sleep();
|
||||
|
||||
expect(provider.isConnected).toBe(true);
|
||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('Does not allow connect() on already-connected', async () => {
|
||||
provider = new WsProvider([TEST_WS_URL], 1);
|
||||
|
||||
await sleep();
|
||||
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
await provider.disconnect();
|
||||
await expect(
|
||||
provider.connect()
|
||||
).rejects.toThrow(/already connected/);
|
||||
});
|
||||
|
||||
it('Connects to the second endpoint when the first is unreachable', async () => {
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
jest.spyOn(console, 'error').mockImplementation((): void => {});
|
||||
const endpoints: string[] = ['ws://localhost-unreachable-connect.spec.ts:9956', TEST_WS_URL];
|
||||
|
||||
const endpoints: string[] = ['ws://localhost-connect.spec.ts:9956', TEST_WS_URL];
|
||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
||||
provider = new WsProvider(endpoints, 1);
|
||||
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
await sleep();
|
||||
|
||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
await provider.disconnect();
|
||||
});
|
||||
|
||||
it('Connects to the second endpoint when the first is dropped', async () => {
|
||||
@@ -101,22 +108,22 @@ describe('onConnect', (): void => {
|
||||
|
||||
mocks.push(mockWs([], endpoints[1]));
|
||||
|
||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
||||
provider = new WsProvider(endpoints, 1);
|
||||
|
||||
await sleep();
|
||||
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
// Check that first server is connected
|
||||
expect(mocks[0].server.clients()).toHaveLength(1);
|
||||
expect(mocks[1].server.clients()).toHaveLength(0);
|
||||
|
||||
// Close connection from first server
|
||||
mocks[0].server.clients()[0].close();
|
||||
await sleepMs(100);
|
||||
|
||||
await sleep();
|
||||
|
||||
// Check that second server is connected
|
||||
expect(mocks[1].server.clients()).toHaveLength(1);
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
await provider.disconnect();
|
||||
});
|
||||
|
||||
it('Round-robin of endpoints on WsProvider', async () => {
|
||||
@@ -138,22 +145,21 @@ describe('onConnect', (): void => {
|
||||
mocks[3],
|
||||
mocks[0]
|
||||
];
|
||||
const provider: WsProvider = new WsProvider(endpoints, 1);
|
||||
|
||||
for (let round = 0; round < 5; round++) {
|
||||
provider = new WsProvider(endpoints, 1);
|
||||
|
||||
for (let round = 0; round < 2; round++) {
|
||||
for (let mock = 0; mock < mocks.length; mock++) {
|
||||
await sleepMs(100); // Hack to give the provider time to connect
|
||||
await sleep();
|
||||
|
||||
// Check that first server is connected and the next one isn't
|
||||
// Wwe are connected, the current mock has the connection and the next doesn't
|
||||
expect(provider.isConnected).toBe(true);
|
||||
expect(mocks[mock].server.clients()).toHaveLength(1);
|
||||
expect(mockNext[mock].server.clients()).toHaveLength(0);
|
||||
expect(provider.isConnected).toBe(true);
|
||||
|
||||
// Close connection from first server
|
||||
mocks[mock].server.clients()[0].close();
|
||||
}
|
||||
}
|
||||
|
||||
await provider.disconnect();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ function createWs (requests: Request[], autoConnect = 1000, headers?: Record<str
|
||||
describe('Ws', (): void => {
|
||||
afterEach(async () => {
|
||||
if (mock) {
|
||||
mock.done();
|
||||
await mock.done();
|
||||
}
|
||||
|
||||
if (provider) {
|
||||
@@ -58,7 +58,7 @@ describe('Endpoint Parsing', (): void => {
|
||||
it('Throws when WsProvider endpoint is an invalid string', () => {
|
||||
expect(
|
||||
() => new WsProvider('http://127.0.0.1:9955', 0)
|
||||
).toThrowError(/^Endpoint should start with /);
|
||||
).toThrow(/^Endpoint should start with /);
|
||||
});
|
||||
|
||||
it('Succeeds when WsProvider endpoint is a valid array', () => {
|
||||
@@ -73,7 +73,7 @@ describe('Endpoint Parsing', (): void => {
|
||||
|
||||
expect(
|
||||
() => new WsProvider(endpoints, 0)
|
||||
).toThrowError('WsProvider requires at least one Endpoint');
|
||||
).toThrow('WsProvider requires at least one Endpoint');
|
||||
});
|
||||
|
||||
it('Throws when WsProvider endpoint is an invalid array', () => {
|
||||
@@ -81,6 +81,6 @@ describe('Endpoint Parsing', (): void => {
|
||||
|
||||
expect(
|
||||
() => new WsProvider(endpoints, 0)
|
||||
).toThrowError(/^Endpoint should start with /);
|
||||
).toThrow(/^Endpoint should start with /);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -188,6 +188,10 @@ export class WsProvider implements ProviderInterface {
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/require-await
|
||||
public async connect (): Promise<void> {
|
||||
if (this.#websocket) {
|
||||
throw new Error('WebSocket is already connected');
|
||||
}
|
||||
|
||||
try {
|
||||
this.#endpointIndex = (this.#endpointIndex + 1) % this.#endpoints.length;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('send', (): void => {
|
||||
global.WebSocket = globalWs;
|
||||
|
||||
if (mock) {
|
||||
mock.done();
|
||||
await mock.done();
|
||||
}
|
||||
|
||||
if (provider) {
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('subscribe', (): void => {
|
||||
global.WebSocket = globalWs;
|
||||
|
||||
if (mock) {
|
||||
mock.done();
|
||||
await mock.done();
|
||||
}
|
||||
|
||||
if (provider) {
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('subscribe', (): void => {
|
||||
global.WebSocket = globalWs;
|
||||
|
||||
if (mock) {
|
||||
mock.done();
|
||||
await mock.done();
|
||||
}
|
||||
|
||||
if (provider) {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -33,18 +33,18 @@
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api": "9.13.5",
|
||||
"@polkadot/api-augment": "9.13.5",
|
||||
"@polkadot/rpc-augment": "9.13.5",
|
||||
"@polkadot/rpc-provider": "9.13.5",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-augment": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/types-create": "9.13.5",
|
||||
"@polkadot/types-support": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/x-ws": "^10.3.1",
|
||||
"@polkadot/api": "9.14.2",
|
||||
"@polkadot/api-augment": "9.14.2",
|
||||
"@polkadot/rpc-augment": "9.14.2",
|
||||
"@polkadot/rpc-provider": "9.14.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-augment": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/types-create": "9.14.2",
|
||||
"@polkadot/types-support": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"@polkadot/x-ws": "^10.4.2",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.6.2"
|
||||
|
||||
@@ -50,16 +50,14 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
|
||||
storageEntry.modifier.isOptional
|
||||
? 'Option'
|
||||
: null,
|
||||
defValue.lookupName
|
||||
? undefined
|
||||
: defValue.type
|
||||
defValue.lookupName || defValue.type
|
||||
]);
|
||||
|
||||
return [
|
||||
storageEntry.modifier.isOptional,
|
||||
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
|
||||
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
|
||||
formatType(registry, allDefs, outputType, imports)
|
||||
outputType.lookupName || formatType(registry, allDefs, outputType, imports)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import process from 'process';
|
||||
|
||||
import { packageInfo } from '../packageInfo';
|
||||
|
||||
@@ -25,7 +26,7 @@ export function writeFile (dest: string, generator: () => string, noLog?: boolea
|
||||
export function readTemplate (template: string): string {
|
||||
// Inside the api repo itself, it will be 'auto'
|
||||
const rootDir = packageInfo.path === 'auto'
|
||||
? path.join(__dirname, '..')
|
||||
? path.join(process.cwd(), 'packages/typegen/src')
|
||||
: packageInfo.path;
|
||||
|
||||
// NOTE With cjs in a subdir, search one lower as well
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup108: kusama_runtime::SessionKeys
|
||||
* Lookup107: kusama_runtime::SessionKeys
|
||||
**/
|
||||
KusamaRuntimeSessionKeys: {
|
||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||
@@ -164,7 +164,7 @@ export default {
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup873: kusama_runtime::Runtime
|
||||
* Lookup876: kusama_runtime::Runtime
|
||||
**/
|
||||
KusamaRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name KusamaRuntimeSessionKeys (108) */
|
||||
/** @name KusamaRuntimeSessionKeys (107) */
|
||||
interface KusamaRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
@@ -111,7 +111,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (873) */
|
||||
/** @name KusamaRuntimeRuntime (876) */
|
||||
type KusamaRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (73) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (74) */
|
||||
interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
|
||||
readonly isClaimed: boolean;
|
||||
readonly asClaimed: {
|
||||
@@ -22,7 +22,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Claimed';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeProxyType (80) */
|
||||
/** @name PolkadotRuntimeProxyType (81) */
|
||||
interface PolkadotRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
@@ -34,7 +34,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (98) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (99) */
|
||||
interface PolkadotRuntimeParachainsInclusionPalletEvent extends Enum {
|
||||
readonly isCandidateBacked: boolean;
|
||||
readonly asCandidateBacked: ITuple<[PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
@@ -45,13 +45,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CandidateBacked' | 'CandidateIncluded' | 'CandidateTimedOut';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateReceipt (99) */
|
||||
/** @name PolkadotPrimitivesV2CandidateReceipt (100) */
|
||||
interface PolkadotPrimitivesV2CandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV2CandidateDescriptor;
|
||||
readonly commitmentsHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateDescriptor (100) */
|
||||
/** @name PolkadotPrimitivesV2CandidateDescriptor (101) */
|
||||
interface PolkadotPrimitivesV2CandidateDescriptor extends Struct {
|
||||
readonly paraId: u32;
|
||||
readonly relayParent: H256;
|
||||
@@ -64,13 +64,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly validationCodeHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CollatorAppPublic (102) */
|
||||
/** @name PolkadotPrimitivesV2CollatorAppPublic (103) */
|
||||
interface PolkadotPrimitivesV2CollatorAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CollatorAppSignature (103) */
|
||||
/** @name PolkadotPrimitivesV2CollatorAppSignature (104) */
|
||||
interface PolkadotPrimitivesV2CollatorAppSignature extends SpCoreSr25519Signature {}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (110) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (111) */
|
||||
interface PolkadotRuntimeParachainsParasPalletEvent extends Enum {
|
||||
readonly isCurrentCodeUpdated: boolean;
|
||||
readonly asCurrentCodeUpdated: u32;
|
||||
@@ -91,7 +91,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued' | 'PvfCheckStarted' | 'PvfCheckAccepted' | 'PvfCheckRejected';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (111) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (112) */
|
||||
interface PolkadotRuntimeParachainsUmpPalletEvent extends Enum {
|
||||
readonly isInvalidFormat: boolean;
|
||||
readonly asInvalidFormat: U8aFixed;
|
||||
@@ -110,7 +110,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedUpward' | 'WeightExhausted' | 'UpwardMessagesReceived' | 'OverweightEnqueued' | 'OverweightServiced';
|
||||
}
|
||||
|
||||
/** @name XcmV3TraitsOutcome (112) */
|
||||
/** @name XcmV3TraitsOutcome (113) */
|
||||
interface XcmV3TraitsOutcome extends Enum {
|
||||
readonly isComplete: boolean;
|
||||
readonly asComplete: SpWeightsWeightV2Weight;
|
||||
@@ -121,7 +121,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Complete' | 'Incomplete' | 'Error';
|
||||
}
|
||||
|
||||
/** @name XcmV3TraitsError (113) */
|
||||
/** @name XcmV3TraitsError (114) */
|
||||
interface XcmV3TraitsError extends Enum {
|
||||
readonly isOverflow: boolean;
|
||||
readonly isUnimplemented: boolean;
|
||||
@@ -168,7 +168,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (114) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (115) */
|
||||
interface PolkadotRuntimeParachainsHrmpPalletEvent extends Enum {
|
||||
readonly isOpenChannelRequested: boolean;
|
||||
readonly asOpenChannelRequested: ITuple<[u32, u32, u32, u32]>;
|
||||
@@ -183,13 +183,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'OpenChannelRequested' | 'OpenChannelCanceled' | 'OpenChannelAccepted' | 'ChannelClosed' | 'HrmpChannelForceOpened';
|
||||
}
|
||||
|
||||
/** @name PolkadotParachainPrimitivesHrmpChannelId (115) */
|
||||
/** @name PolkadotParachainPrimitivesHrmpChannelId (116) */
|
||||
interface PolkadotParachainPrimitivesHrmpChannelId extends Struct {
|
||||
readonly sender: u32;
|
||||
readonly recipient: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (116) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (117) */
|
||||
interface PolkadotRuntimeParachainsDisputesPalletEvent extends Enum {
|
||||
readonly isDisputeInitiated: boolean;
|
||||
readonly asDisputeInitiated: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||
@@ -202,21 +202,21 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'DisputeTimedOut' | 'Revert';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (118) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (119) */
|
||||
interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
|
||||
readonly isLocal: boolean;
|
||||
readonly isRemote: boolean;
|
||||
readonly type: 'Local' | 'Remote';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (119) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (120) */
|
||||
interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly isInvalid: boolean;
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (120) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (121) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletEvent extends Enum {
|
||||
readonly isRegistered: boolean;
|
||||
readonly asRegistered: {
|
||||
@@ -235,7 +235,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Registered' | 'Deregistered' | 'Reserved';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (121) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (122) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum {
|
||||
readonly isNewLeasePeriod: boolean;
|
||||
readonly asNewLeasePeriod: {
|
||||
@@ -253,7 +253,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewLeasePeriod' | 'Leased';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (122) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (123) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum {
|
||||
readonly isAuctionStarted: boolean;
|
||||
readonly asAuctionStarted: {
|
||||
@@ -298,7 +298,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (123) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (124) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum {
|
||||
readonly isCreated: boolean;
|
||||
readonly asCreated: {
|
||||
@@ -350,7 +350,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
|
||||
}
|
||||
|
||||
/** @name PalletXcmEvent (124) */
|
||||
/** @name PalletXcmEvent (125) */
|
||||
interface PalletXcmEvent extends Enum {
|
||||
readonly isAttempted: boolean;
|
||||
readonly asAttempted: XcmV3TraitsOutcome;
|
||||
@@ -401,13 +401,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiLocation (125) */
|
||||
/** @name XcmV3MultiLocation (126) */
|
||||
interface XcmV3MultiLocation extends Struct {
|
||||
readonly parents: u8;
|
||||
readonly interior: XcmV3Junctions;
|
||||
}
|
||||
|
||||
/** @name XcmV3Junctions (126) */
|
||||
/** @name XcmV3Junctions (127) */
|
||||
interface XcmV3Junctions extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
@@ -429,7 +429,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
|
||||
}
|
||||
|
||||
/** @name XcmV3Junction (127) */
|
||||
/** @name XcmV3Junction (128) */
|
||||
interface XcmV3Junction extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
@@ -453,7 +453,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isGeneralIndex: boolean;
|
||||
readonly asGeneralIndex: Compact<u128>;
|
||||
readonly isGeneralKey: boolean;
|
||||
readonly asGeneralKey: U8aFixed;
|
||||
readonly asGeneralKey: {
|
||||
readonly length: u8;
|
||||
readonly data: U8aFixed;
|
||||
} & Struct;
|
||||
readonly isOnlyChild: boolean;
|
||||
readonly isPlurality: boolean;
|
||||
readonly asPlurality: {
|
||||
@@ -465,7 +468,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';
|
||||
}
|
||||
|
||||
/** @name XcmV3JunctionNetworkId (130) */
|
||||
/** @name XcmV3JunctionNetworkId (131) */
|
||||
interface XcmV3JunctionNetworkId extends Enum {
|
||||
readonly isByGenesis: boolean;
|
||||
readonly asByGenesis: U8aFixed;
|
||||
@@ -488,7 +491,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ByGenesis' | 'ByFork' | 'Polkadot' | 'Kusama' | 'Westend' | 'Rococo' | 'Wococo' | 'Ethereum' | 'BitcoinCore' | 'BitcoinCash';
|
||||
}
|
||||
|
||||
/** @name XcmV3JunctionBodyId (131) */
|
||||
/** @name XcmV3JunctionBodyId (132) */
|
||||
interface XcmV3JunctionBodyId extends Enum {
|
||||
readonly isUnit: boolean;
|
||||
readonly isMoniker: boolean;
|
||||
@@ -505,7 +508,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unit' | 'Moniker' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';
|
||||
}
|
||||
|
||||
/** @name XcmV3JunctionBodyPart (132) */
|
||||
/** @name XcmV3JunctionBodyPart (133) */
|
||||
interface XcmV3JunctionBodyPart extends Enum {
|
||||
readonly isVoice: boolean;
|
||||
readonly isMembers: boolean;
|
||||
@@ -530,10 +533,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
|
||||
}
|
||||
|
||||
/** @name XcmV3Xcm (133) */
|
||||
/** @name XcmV3Xcm (134) */
|
||||
interface XcmV3Xcm extends Vec<XcmV3Instruction> {}
|
||||
|
||||
/** @name XcmV3Instruction (135) */
|
||||
/** @name XcmV3Instruction (136) */
|
||||
interface XcmV3Instruction extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: XcmV3MultiassetMultiAssets;
|
||||
@@ -715,16 +718,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' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetMultiAssets (136) */
|
||||
/** @name XcmV3MultiassetMultiAssets (137) */
|
||||
interface XcmV3MultiassetMultiAssets extends Vec<XcmV3MultiAsset> {}
|
||||
|
||||
/** @name XcmV3MultiAsset (138) */
|
||||
/** @name XcmV3MultiAsset (139) */
|
||||
interface XcmV3MultiAsset extends Struct {
|
||||
readonly id: XcmV3MultiassetAssetId;
|
||||
readonly fun: XcmV3MultiassetFungibility;
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetAssetId (139) */
|
||||
/** @name XcmV3MultiassetAssetId (140) */
|
||||
interface XcmV3MultiassetAssetId extends Enum {
|
||||
readonly isConcrete: boolean;
|
||||
readonly asConcrete: XcmV3MultiLocation;
|
||||
@@ -733,7 +736,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Concrete' | 'Abstract';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetFungibility (140) */
|
||||
/** @name XcmV3MultiassetFungibility (141) */
|
||||
interface XcmV3MultiassetFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly asFungible: Compact<u128>;
|
||||
@@ -742,7 +745,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetAssetInstance (141) */
|
||||
/** @name XcmV3MultiassetAssetInstance (142) */
|
||||
interface XcmV3MultiassetAssetInstance extends Enum {
|
||||
readonly isUndefined: boolean;
|
||||
readonly isIndex: boolean;
|
||||
@@ -758,7 +761,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32';
|
||||
}
|
||||
|
||||
/** @name XcmV3Response (143) */
|
||||
/** @name XcmV3Response (144) */
|
||||
interface XcmV3Response extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isAssets: boolean;
|
||||
@@ -768,15 +771,12 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isVersion: boolean;
|
||||
readonly asVersion: u32;
|
||||
readonly isPalletsInfo: boolean;
|
||||
readonly asPalletsInfo: XcmV3VecPalletInfo;
|
||||
readonly asPalletsInfo: Vec<XcmV3PalletInfo>;
|
||||
readonly isDispatchResult: boolean;
|
||||
readonly asDispatchResult: XcmV3MaybeErrorCode;
|
||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult';
|
||||
}
|
||||
|
||||
/** @name XcmV3VecPalletInfo (146) */
|
||||
interface XcmV3VecPalletInfo extends Vec<XcmV3PalletInfo> {}
|
||||
|
||||
/** @name XcmV3PalletInfo (148) */
|
||||
interface XcmV3PalletInfo extends Struct {
|
||||
readonly index: Compact<u32>;
|
||||
@@ -787,7 +787,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly patch: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name XcmV3MaybeErrorCode (149) */
|
||||
/** @name XcmV3MaybeErrorCode (151) */
|
||||
interface XcmV3MaybeErrorCode extends Enum {
|
||||
readonly isSuccess: boolean;
|
||||
readonly isError: boolean;
|
||||
@@ -797,7 +797,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Success' | 'Error' | 'TruncatedError';
|
||||
}
|
||||
|
||||
/** @name XcmV2OriginKind (151) */
|
||||
/** @name XcmV2OriginKind (154) */
|
||||
interface XcmV2OriginKind extends Enum {
|
||||
readonly isNative: boolean;
|
||||
readonly isSovereignAccount: boolean;
|
||||
@@ -806,19 +806,19 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
||||
}
|
||||
|
||||
/** @name XcmDoubleEncoded (152) */
|
||||
/** @name XcmDoubleEncoded (155) */
|
||||
interface XcmDoubleEncoded extends Struct {
|
||||
readonly encoded: Bytes;
|
||||
}
|
||||
|
||||
/** @name XcmV3QueryResponseInfo (153) */
|
||||
/** @name XcmV3QueryResponseInfo (156) */
|
||||
interface XcmV3QueryResponseInfo extends Struct {
|
||||
readonly destination: XcmV3MultiLocation;
|
||||
readonly queryId: Compact<u64>;
|
||||
readonly maxWeight: SpWeightsWeightV2Weight;
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetMultiAssetFilter (154) */
|
||||
/** @name XcmV3MultiassetMultiAssetFilter (157) */
|
||||
interface XcmV3MultiassetMultiAssetFilter extends Enum {
|
||||
readonly isDefinite: boolean;
|
||||
readonly asDefinite: XcmV3MultiassetMultiAssets;
|
||||
@@ -827,7 +827,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Definite' | 'Wild';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetWildMultiAsset (155) */
|
||||
/** @name XcmV3MultiassetWildMultiAsset (158) */
|
||||
interface XcmV3MultiassetWildMultiAsset extends Enum {
|
||||
readonly isAll: boolean;
|
||||
readonly isAllOf: boolean;
|
||||
@@ -846,14 +846,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetWildFungibility (156) */
|
||||
/** @name XcmV3MultiassetWildFungibility (159) */
|
||||
interface XcmV3MultiassetWildFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly isNonFungible: boolean;
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV3WeightLimit (157) */
|
||||
/** @name XcmV3WeightLimit (160) */
|
||||
interface XcmV3WeightLimit extends Enum {
|
||||
readonly isUnlimited: boolean;
|
||||
readonly isLimited: boolean;
|
||||
@@ -861,7 +861,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unlimited' | 'Limited';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiAssets (158) */
|
||||
/** @name XcmVersionedMultiAssets (161) */
|
||||
interface XcmVersionedMultiAssets extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2MultiassetMultiAssets;
|
||||
@@ -870,16 +870,16 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetMultiAssets (159) */
|
||||
/** @name XcmV2MultiassetMultiAssets (162) */
|
||||
interface XcmV2MultiassetMultiAssets extends Vec<XcmV2MultiAsset> {}
|
||||
|
||||
/** @name XcmV2MultiAsset (161) */
|
||||
/** @name XcmV2MultiAsset (164) */
|
||||
interface XcmV2MultiAsset extends Struct {
|
||||
readonly id: XcmV2MultiassetAssetId;
|
||||
readonly fun: XcmV2MultiassetFungibility;
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetAssetId (162) */
|
||||
/** @name XcmV2MultiassetAssetId (165) */
|
||||
interface XcmV2MultiassetAssetId extends Enum {
|
||||
readonly isConcrete: boolean;
|
||||
readonly asConcrete: XcmV2MultiLocation;
|
||||
@@ -888,13 +888,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Concrete' | 'Abstract';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiLocation (163) */
|
||||
/** @name XcmV2MultiLocation (166) */
|
||||
interface XcmV2MultiLocation extends Struct {
|
||||
readonly parents: u8;
|
||||
readonly interior: XcmV2MultilocationJunctions;
|
||||
}
|
||||
|
||||
/** @name XcmV2MultilocationJunctions (164) */
|
||||
/** @name XcmV2MultilocationJunctions (167) */
|
||||
interface XcmV2MultilocationJunctions extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
@@ -916,7 +916,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
|
||||
}
|
||||
|
||||
/** @name XcmV2Junction (165) */
|
||||
/** @name XcmV2Junction (168) */
|
||||
interface XcmV2Junction extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
@@ -950,7 +950,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
|
||||
}
|
||||
|
||||
/** @name XcmV2NetworkId (166) */
|
||||
/** @name XcmV2NetworkId (169) */
|
||||
interface XcmV2NetworkId extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -960,7 +960,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
|
||||
}
|
||||
|
||||
/** @name XcmV2BodyId (168) */
|
||||
/** @name XcmV2BodyId (171) */
|
||||
interface XcmV2BodyId extends Enum {
|
||||
readonly isUnit: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -977,7 +977,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';
|
||||
}
|
||||
|
||||
/** @name XcmV2BodyPart (169) */
|
||||
/** @name XcmV2BodyPart (172) */
|
||||
interface XcmV2BodyPart extends Enum {
|
||||
readonly isVoice: boolean;
|
||||
readonly isMembers: boolean;
|
||||
@@ -1002,7 +1002,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetFungibility (170) */
|
||||
/** @name XcmV2MultiassetFungibility (173) */
|
||||
interface XcmV2MultiassetFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly asFungible: Compact<u128>;
|
||||
@@ -1011,7 +1011,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetAssetInstance (171) */
|
||||
/** @name XcmV2MultiassetAssetInstance (174) */
|
||||
interface XcmV2MultiassetAssetInstance extends Enum {
|
||||
readonly isUndefined: boolean;
|
||||
readonly isIndex: boolean;
|
||||
@@ -1029,7 +1029,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiLocation (172) */
|
||||
/** @name XcmVersionedMultiLocation (175) */
|
||||
interface XcmVersionedMultiLocation extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2MultiLocation;
|
||||
@@ -1038,7 +1038,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeSessionKeys (229) */
|
||||
/** @name PolkadotRuntimeSessionKeys (230) */
|
||||
interface PolkadotRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
@@ -1048,13 +1048,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppPublic (230) */
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppPublic (231) */
|
||||
interface PolkadotPrimitivesV2ValidatorAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2AssignmentAppPublic (231) */
|
||||
/** @name PolkadotPrimitivesV2AssignmentAppPublic (232) */
|
||||
interface PolkadotPrimitivesV2AssignmentAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletCall (262) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletCall (264) */
|
||||
interface PolkadotRuntimeCommonClaimsPalletCall extends Enum {
|
||||
readonly isClaim: boolean;
|
||||
readonly asClaim: {
|
||||
@@ -1087,17 +1087,17 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (263) */
|
||||
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (265) */
|
||||
interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsStatementKind (268) */
|
||||
/** @name PolkadotRuntimeCommonClaimsStatementKind (270) */
|
||||
interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
|
||||
readonly isRegular: boolean;
|
||||
readonly isSaft: boolean;
|
||||
readonly type: 'Regular' | 'Saft';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeOriginCaller (273) */
|
||||
/** @name PolkadotRuntimeOriginCaller (275) */
|
||||
interface PolkadotRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
@@ -1113,14 +1113,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (277) */
|
||||
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (279) */
|
||||
interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: u32;
|
||||
readonly type: 'Parachain';
|
||||
}
|
||||
|
||||
/** @name PalletXcmOrigin (278) */
|
||||
/** @name PalletXcmOrigin (280) */
|
||||
interface PalletXcmOrigin extends Enum {
|
||||
readonly isXcm: boolean;
|
||||
readonly asXcm: XcmV3MultiLocation;
|
||||
@@ -1129,7 +1129,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Xcm' | 'Response';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeNposCompactSolution16 (329) */
|
||||
/** @name PolkadotRuntimeNposCompactSolution16 (331) */
|
||||
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>]>>;
|
||||
@@ -1149,7 +1149,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (392) */
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (394) */
|
||||
interface PolkadotRuntimeParachainsConfigurationPalletCall extends Enum {
|
||||
readonly isSetValidationUpgradeCooldown: boolean;
|
||||
readonly asSetValidationUpgradeCooldown: {
|
||||
@@ -1330,13 +1330,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | '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 (393) */
|
||||
/** @name PolkadotRuntimeParachainsSharedPalletCall (395) */
|
||||
type PolkadotRuntimeParachainsSharedPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletCall (394) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletCall (396) */
|
||||
type PolkadotRuntimeParachainsInclusionPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (395) */
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (397) */
|
||||
interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum {
|
||||
readonly isEnter: boolean;
|
||||
readonly asEnter: {
|
||||
@@ -1345,7 +1345,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Enter';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2InherentData (396) */
|
||||
/** @name PolkadotPrimitivesV2InherentData (398) */
|
||||
interface PolkadotPrimitivesV2InherentData extends Struct {
|
||||
readonly bitfields: Vec<PolkadotPrimitivesV2SignedUncheckedSigned>;
|
||||
readonly backedCandidates: Vec<PolkadotPrimitivesV2BackedCandidate>;
|
||||
@@ -1353,33 +1353,33 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly parentHeader: SpRuntimeHeader;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2SignedUncheckedSigned (398) */
|
||||
/** @name PolkadotPrimitivesV2SignedUncheckedSigned (400) */
|
||||
interface PolkadotPrimitivesV2SignedUncheckedSigned extends Struct {
|
||||
readonly payload: BitVec;
|
||||
readonly validatorIndex: u32;
|
||||
readonly signature: PolkadotPrimitivesV2ValidatorAppSignature;
|
||||
}
|
||||
|
||||
/** @name BitvecOrderLsb0 (401) */
|
||||
/** @name BitvecOrderLsb0 (403) */
|
||||
type BitvecOrderLsb0 = Null;
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppSignature (403) */
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppSignature (405) */
|
||||
interface PolkadotPrimitivesV2ValidatorAppSignature extends SpCoreSr25519Signature {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2BackedCandidate (405) */
|
||||
/** @name PolkadotPrimitivesV2BackedCandidate (407) */
|
||||
interface PolkadotPrimitivesV2BackedCandidate extends Struct {
|
||||
readonly candidate: PolkadotPrimitivesV2CommittedCandidateReceipt;
|
||||
readonly validityVotes: Vec<PolkadotPrimitivesV2ValidityAttestation>;
|
||||
readonly validatorIndices: BitVec;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CommittedCandidateReceipt (406) */
|
||||
/** @name PolkadotPrimitivesV2CommittedCandidateReceipt (408) */
|
||||
interface PolkadotPrimitivesV2CommittedCandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV2CandidateDescriptor;
|
||||
readonly commitments: PolkadotPrimitivesV2CandidateCommitments;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateCommitments (407) */
|
||||
/** @name PolkadotPrimitivesV2CandidateCommitments (409) */
|
||||
interface PolkadotPrimitivesV2CandidateCommitments extends Struct {
|
||||
readonly upwardMessages: Vec<Bytes>;
|
||||
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
|
||||
@@ -1389,13 +1389,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly hrmpWatermark: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (409) */
|
||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (412) */
|
||||
interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
||||
readonly recipient: u32;
|
||||
readonly data: Bytes;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidityAttestation (413) */
|
||||
/** @name PolkadotPrimitivesV2ValidityAttestation (417) */
|
||||
interface PolkadotPrimitivesV2ValidityAttestation extends Enum {
|
||||
readonly isImplicit: boolean;
|
||||
readonly asImplicit: PolkadotPrimitivesV2ValidatorAppSignature;
|
||||
@@ -1404,14 +1404,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Implicit' | 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeStatementSet (415) */
|
||||
/** @name PolkadotPrimitivesV2DisputeStatementSet (419) */
|
||||
interface PolkadotPrimitivesV2DisputeStatementSet extends Struct {
|
||||
readonly candidateHash: H256;
|
||||
readonly session: u32;
|
||||
readonly statements: Vec<ITuple<[PolkadotPrimitivesV2DisputeStatement, u32, PolkadotPrimitivesV2ValidatorAppSignature]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeStatement (418) */
|
||||
/** @name PolkadotPrimitivesV2DisputeStatement (422) */
|
||||
interface PolkadotPrimitivesV2DisputeStatement extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly asValid: PolkadotPrimitivesV2ValidDisputeStatementKind;
|
||||
@@ -1420,7 +1420,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (419) */
|
||||
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (423) */
|
||||
interface PolkadotPrimitivesV2ValidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly isBackingSeconded: boolean;
|
||||
@@ -1431,13 +1431,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (420) */
|
||||
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (424) */
|
||||
interface PolkadotPrimitivesV2InvalidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly type: 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletCall (421) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletCall (425) */
|
||||
interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
|
||||
readonly isForceSetCurrentCode: boolean;
|
||||
readonly asForceSetCurrentCode: {
|
||||
@@ -1480,7 +1480,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2PvfCheckStatement (422) */
|
||||
/** @name PolkadotPrimitivesV2PvfCheckStatement (426) */
|
||||
interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
|
||||
readonly accept: bool;
|
||||
readonly subject: H256;
|
||||
@@ -1488,7 +1488,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly validatorIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInitializerPalletCall (423) */
|
||||
/** @name PolkadotRuntimeParachainsInitializerPalletCall (427) */
|
||||
interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
|
||||
readonly isForceApprove: boolean;
|
||||
readonly asForceApprove: {
|
||||
@@ -1497,10 +1497,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceApprove';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDmpPalletCall (424) */
|
||||
/** @name PolkadotRuntimeParachainsDmpPalletCall (428) */
|
||||
type PolkadotRuntimeParachainsDmpPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletCall (425) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletCall (429) */
|
||||
interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
|
||||
readonly isServiceOverweight: boolean;
|
||||
readonly asServiceOverweight: {
|
||||
@@ -1510,7 +1510,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ServiceOverweight';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletCall (426) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletCall (430) */
|
||||
interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
|
||||
readonly isHrmpInitOpenChannel: boolean;
|
||||
readonly asHrmpInitOpenChannel: {
|
||||
@@ -1555,13 +1555,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest' | 'ForceOpenHrmpChannel';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (427) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (431) */
|
||||
interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
||||
readonly isForceUnfreeze: boolean;
|
||||
readonly type: 'ForceUnfreeze';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (428) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (432) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
|
||||
readonly isRegister: boolean;
|
||||
readonly asRegister: {
|
||||
@@ -1608,7 +1608,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'RemoveLock' | 'Reserve' | 'AddLock' | 'ScheduleCodeUpgrade' | 'SetCurrentHead';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (429) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (433) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
|
||||
readonly isForceLease: boolean;
|
||||
readonly asForceLease: {
|
||||
@@ -1629,7 +1629,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (430) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (434) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
|
||||
readonly isNewAuction: boolean;
|
||||
readonly asNewAuction: {
|
||||
@@ -1648,7 +1648,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (432) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (436) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
|
||||
readonly isCreate: boolean;
|
||||
readonly asCreate: {
|
||||
@@ -1704,7 +1704,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeMultiSigner (434) */
|
||||
/** @name SpRuntimeMultiSigner (438) */
|
||||
interface SpRuntimeMultiSigner extends Enum {
|
||||
readonly isEd25519: boolean;
|
||||
readonly asEd25519: SpCoreEd25519Public;
|
||||
@@ -1715,10 +1715,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||
}
|
||||
|
||||
/** @name SpCoreEcdsaPublic (435) */
|
||||
/** @name SpCoreEcdsaPublic (439) */
|
||||
interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||
|
||||
/** @name PalletXcmCall (440) */
|
||||
/** @name PalletXcmCall (444) */
|
||||
interface PalletXcmCall extends Enum {
|
||||
readonly isSend: boolean;
|
||||
readonly asSend: {
|
||||
@@ -1780,7 +1780,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedXcm (441) */
|
||||
/** @name XcmVersionedXcm (445) */
|
||||
interface XcmVersionedXcm extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2Xcm;
|
||||
@@ -1789,10 +1789,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name XcmV2Xcm (442) */
|
||||
/** @name XcmV2Xcm (446) */
|
||||
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
|
||||
|
||||
/** @name XcmV2Instruction (444) */
|
||||
/** @name XcmV2Instruction (448) */
|
||||
interface XcmV2Instruction extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;
|
||||
@@ -1912,7 +1912,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
||||
}
|
||||
|
||||
/** @name XcmV2Response (445) */
|
||||
/** @name XcmV2Response (449) */
|
||||
interface XcmV2Response extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isAssets: boolean;
|
||||
@@ -1924,7 +1924,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
|
||||
}
|
||||
|
||||
/** @name XcmV2TraitsError (448) */
|
||||
/** @name XcmV2TraitsError (452) */
|
||||
interface XcmV2TraitsError extends Enum {
|
||||
readonly isOverflow: boolean;
|
||||
readonly isUnimplemented: boolean;
|
||||
@@ -1957,7 +1957,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetMultiAssetFilter (449) */
|
||||
/** @name XcmV2MultiassetMultiAssetFilter (453) */
|
||||
interface XcmV2MultiassetMultiAssetFilter extends Enum {
|
||||
readonly isDefinite: boolean;
|
||||
readonly asDefinite: XcmV2MultiassetMultiAssets;
|
||||
@@ -1966,7 +1966,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Definite' | 'Wild';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetWildMultiAsset (450) */
|
||||
/** @name XcmV2MultiassetWildMultiAsset (454) */
|
||||
interface XcmV2MultiassetWildMultiAsset extends Enum {
|
||||
readonly isAll: boolean;
|
||||
readonly isAllOf: boolean;
|
||||
@@ -1977,14 +1977,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'All' | 'AllOf';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetWildFungibility (451) */
|
||||
/** @name XcmV2MultiassetWildFungibility (455) */
|
||||
interface XcmV2MultiassetWildFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly isNonFungible: boolean;
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV2WeightLimit (452) */
|
||||
/** @name XcmV2WeightLimit (456) */
|
||||
interface XcmV2WeightLimit extends Enum {
|
||||
readonly isUnlimited: boolean;
|
||||
readonly isLimited: boolean;
|
||||
@@ -2295,13 +2295,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly recipientDeposit: u128;
|
||||
}
|
||||
|
||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (700) */
|
||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (699) */
|
||||
interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||
readonly sentAt: u32;
|
||||
readonly data: Bytes;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (703) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (702) */
|
||||
interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
||||
readonly isOpenHrmpChannelToSelf: boolean;
|
||||
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
||||
@@ -2325,7 +2325,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 (705) */
|
||||
/** @name PolkadotPrimitivesV2SessionInfo (704) */
|
||||
interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
||||
readonly activeValidatorIndices: Vec<u32>;
|
||||
readonly randomSeed: U8aFixed;
|
||||
@@ -2342,13 +2342,29 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly neededApprovals: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2IndexedVecValidatorIndex (706) */
|
||||
/** @name PolkadotPrimitivesV2IndexedVecValidatorIndex (705) */
|
||||
interface PolkadotPrimitivesV2IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV2ValidatorAppPublic> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2IndexedVecGroupIndex (708) */
|
||||
/** @name PolkadotPrimitivesV2IndexedVecGroupIndex (707) */
|
||||
interface PolkadotPrimitivesV2IndexedVecGroupIndex extends Vec<Vec<u32>> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeState (710) */
|
||||
/** @name PolkadotPrimitivesVstagingExecutorParams (708) */
|
||||
interface PolkadotPrimitivesVstagingExecutorParams extends Vec<PolkadotPrimitivesVstagingExecutorParamsExecutorParam> {}
|
||||
|
||||
/** @name PolkadotPrimitivesVstagingExecutorParamsExecutorParam (710) */
|
||||
interface PolkadotPrimitivesVstagingExecutorParamsExecutorParam extends Enum {
|
||||
readonly isMaxMemoryPages: boolean;
|
||||
readonly asMaxMemoryPages: u32;
|
||||
readonly isStackLogicalMax: boolean;
|
||||
readonly asStackLogicalMax: u32;
|
||||
readonly isStackNativeMax: boolean;
|
||||
readonly asStackNativeMax: u32;
|
||||
readonly isPrecheckingMaxMemory: boolean;
|
||||
readonly asPrecheckingMaxMemory: u64;
|
||||
readonly type: 'MaxMemoryPages' | 'StackLogicalMax' | 'StackNativeMax' | 'PrecheckingMaxMemory';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeState (712) */
|
||||
interface PolkadotPrimitivesV2DisputeState extends Struct {
|
||||
readonly validatorsFor: BitVec;
|
||||
readonly validatorsAgainst: BitVec;
|
||||
@@ -2356,7 +2372,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly concludedAt: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (711) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (714) */
|
||||
interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
||||
readonly isDuplicateDisputeStatementSets: boolean;
|
||||
readonly isAncientDisputeStatement: boolean;
|
||||
@@ -2364,18 +2380,20 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isInvalidSignature: boolean;
|
||||
readonly isDuplicateStatement: boolean;
|
||||
readonly isSingleSidedDispute: boolean;
|
||||
readonly isMaliciousBacker: boolean;
|
||||
readonly isMissingBackingVotes: boolean;
|
||||
readonly isUnconfirmedDispute: boolean;
|
||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'UnconfirmedDispute';
|
||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'MaliciousBacker' | 'MissingBackingVotes' | 'UnconfirmedDispute';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (712) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (715) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||
readonly manager: AccountId32;
|
||||
readonly deposit: u128;
|
||||
readonly locked: bool;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (713) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (716) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
||||
readonly isNotRegistered: boolean;
|
||||
readonly isAlreadyRegistered: boolean;
|
||||
@@ -2394,14 +2412,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletError (715) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletError (718) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
||||
readonly isParaNotOnboarding: boolean;
|
||||
readonly isLeaseError: boolean;
|
||||
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (720) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (723) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
||||
readonly isAuctionInProgress: boolean;
|
||||
readonly isLeasePeriodInPast: boolean;
|
||||
@@ -2413,7 +2431,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (721) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (724) */
|
||||
interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||
readonly depositor: AccountId32;
|
||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||
@@ -2427,7 +2445,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly fundIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (722) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (725) */
|
||||
interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||
readonly isNever: boolean;
|
||||
readonly isPreEnding: boolean;
|
||||
@@ -2437,7 +2455,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (723) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (726) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
||||
readonly isFirstPeriodInPast: boolean;
|
||||
readonly isFirstPeriodTooFarInFuture: boolean;
|
||||
@@ -2465,7 +2483,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 (724) */
|
||||
/** @name PalletXcmQueryStatus (727) */
|
||||
interface PalletXcmQueryStatus extends Enum {
|
||||
readonly isPending: boolean;
|
||||
readonly asPending: {
|
||||
@@ -2487,7 +2505,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedResponse (728) */
|
||||
/** @name XcmVersionedResponse (731) */
|
||||
interface XcmVersionedResponse extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2Response;
|
||||
@@ -2496,7 +2514,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name PalletXcmVersionMigrationStage (734) */
|
||||
/** @name PalletXcmVersionMigrationStage (737) */
|
||||
interface PalletXcmVersionMigrationStage extends Enum {
|
||||
readonly isMigrateSupportedVersion: boolean;
|
||||
readonly isMigrateVersionNotifiers: boolean;
|
||||
@@ -2506,14 +2524,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedAssetId (737) */
|
||||
/** @name XcmVersionedAssetId (740) */
|
||||
interface XcmVersionedAssetId extends Enum {
|
||||
readonly isV3: boolean;
|
||||
readonly asV3: XcmV3MultiassetAssetId;
|
||||
readonly type: 'V3';
|
||||
}
|
||||
|
||||
/** @name PalletXcmRemoteLockedFungibleRecord (738) */
|
||||
/** @name PalletXcmRemoteLockedFungibleRecord (741) */
|
||||
interface PalletXcmRemoteLockedFungibleRecord extends Struct {
|
||||
readonly amount: u128;
|
||||
readonly owner: XcmVersionedMultiLocation;
|
||||
@@ -2521,7 +2539,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly users: u32;
|
||||
}
|
||||
|
||||
/** @name PalletXcmError (742) */
|
||||
/** @name PalletXcmError (745) */
|
||||
interface PalletXcmError extends Enum {
|
||||
readonly isUnreachable: boolean;
|
||||
readonly isSendFailure: boolean;
|
||||
@@ -2546,13 +2564,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentChargeTransactionPayment (753) */
|
||||
/** @name PalletTransactionPaymentChargeTransactionPayment (756) */
|
||||
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (754) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (757) */
|
||||
type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||
|
||||
/** @name PolkadotRuntimeRuntime (755) */
|
||||
/** @name PolkadotRuntimeRuntime (758) */
|
||||
type PolkadotRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -52,7 +52,7 @@ import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/ty
|
||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
@@ -875,10 +875,12 @@ declare module '@polkadot/types/types/registry' {
|
||||
RoundSnapshot: RoundSnapshot;
|
||||
RoundState: RoundState;
|
||||
RpcMethods: RpcMethods;
|
||||
RuntimeCall: RuntimeCall;
|
||||
RuntimeDbWeight: RuntimeDbWeight;
|
||||
RuntimeDispatchInfo: RuntimeDispatchInfo;
|
||||
RuntimeDispatchInfoV1: RuntimeDispatchInfoV1;
|
||||
RuntimeDispatchInfoV2: RuntimeDispatchInfoV2;
|
||||
RuntimeEvent: RuntimeEvent;
|
||||
RuntimeVersion: RuntimeVersion;
|
||||
RuntimeVersionApi: RuntimeVersionApi;
|
||||
RuntimeVersionPartial: RuntimeVersionPartial;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/x-bigint": "^10.3.1"
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/x-bigint": "^10.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-augment": "9.13.5",
|
||||
"@polkadot/types-support": "9.13.5",
|
||||
"@polkadot/util-crypto": "^10.3.1"
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-augment": "9.14.2",
|
||||
"@polkadot/types-support": "9.14.2",
|
||||
"@polkadot/util-crypto": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,6 +305,7 @@ describe('Enum', (): void => {
|
||||
'0x0134120000'
|
||||
).inspect()
|
||||
).toEqual({
|
||||
inner: undefined,
|
||||
outer: [new Uint8Array([0x01]), new Uint8Array([0x34, 0x12, 0x00, 0x00])]
|
||||
});
|
||||
});
|
||||
|
||||
@@ -200,6 +200,7 @@ describe('Option', (): void => {
|
||||
expect(
|
||||
new Option(registry, U32, '1234').inspect()
|
||||
).toEqual({
|
||||
inner: undefined,
|
||||
outer: [new Uint8Array([0x01]), new Uint8Array([210, 4, 0, 0])]
|
||||
});
|
||||
});
|
||||
|
||||
@@ -81,7 +81,7 @@ describe('BTreeMap', (): void => {
|
||||
(): BTreeMap<Text, U32> => new (
|
||||
BTreeMap.with(Text, U32)
|
||||
)(registry, 'ABC')
|
||||
).toThrowError(/Map: cannot decode type/);
|
||||
).toThrow(/Map: cannot decode type/);
|
||||
});
|
||||
|
||||
it('correctly encodes length', (): void => {
|
||||
|
||||
@@ -123,7 +123,7 @@ describe('BTreeSet', (): void => {
|
||||
(): BTreeSet<U32> => new (
|
||||
BTreeSet.with(U32)
|
||||
)(registry, 'ABC')
|
||||
).toThrowError(/BTreeSet: cannot decode type/);
|
||||
).toThrow(/BTreeSet: cannot decode type/);
|
||||
});
|
||||
|
||||
describe('enocodedLength & initialU8aLength', (): void => {
|
||||
|
||||
@@ -134,7 +134,7 @@ describe('Struct', (): void => {
|
||||
u32: U32
|
||||
})
|
||||
)(registry, 'ABC')
|
||||
).toThrowError(/Cannot decode value/);
|
||||
).toThrow(/Cannot decode value/);
|
||||
});
|
||||
|
||||
it('throws a sensical error on incorrect array values passed to structs', (): void => {
|
||||
@@ -392,6 +392,7 @@ describe('Struct', (): void => {
|
||||
outer: [new Uint8Array([1 << 2]), new Uint8Array([0x99])]
|
||||
},
|
||||
{
|
||||
inner: undefined,
|
||||
name: 'bar',
|
||||
outer: [new Uint8Array([1]), new Uint8Array([1, 0, 0, 0])]
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -42,14 +42,14 @@ ${formatFixed(micro).padStart(NUM_PAD + PRE_PAD + 1)} μs/op`;
|
||||
}
|
||||
|
||||
export function perf (name: string, count: number, inputs: unknown[][], exec: ExecFn): void {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
return;
|
||||
}
|
||||
const test = process.env.GITHUB_REPOSITORY
|
||||
? it.skip
|
||||
: it;
|
||||
|
||||
it(`performance: ${name}`, (): void => {
|
||||
test(`performance: ${name}`, (): void => {
|
||||
const [time] = loop(count, inputs, exec);
|
||||
|
||||
console.log(`
|
||||
console.error(`
|
||||
performance run for ${name} completed with ${formatNumber(count)} iterations.
|
||||
|
||||
${`${name}:`.padStart(PRE_PAD)} ${time.toFixed(2).padStart(NUM_PAD)} ms${formatOps(count, time)}
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.13.5"
|
||||
"@polkadot/types": "9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -9,7 +9,9 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('()')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [],
|
||||
type: '()'
|
||||
});
|
||||
@@ -19,14 +21,20 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('BTreeMap<u32, Text>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.BTreeMap,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Text'
|
||||
}
|
||||
],
|
||||
@@ -38,9 +46,13 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('BTreeSet<Text>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.BTreeSet,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Text'
|
||||
},
|
||||
type: 'BTreeSet<Text>'
|
||||
@@ -51,14 +63,20 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Result<u32, Text>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Result,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Text'
|
||||
}
|
||||
],
|
||||
@@ -70,24 +88,34 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Result<Result<Null,u32>,Text>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Result,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Result,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Null'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
}
|
||||
],
|
||||
type: 'Result<Null,u32>'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Text'
|
||||
}
|
||||
],
|
||||
@@ -99,54 +127,82 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('(u32, Compact<u32>, Vec<u64>, Option<u128>, (Text,Vec<(Bool,u128)>))')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Compact,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
type: 'Compact<u32>'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u64'
|
||||
},
|
||||
type: 'Vec<u64>'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Option,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u128'
|
||||
},
|
||||
type: 'Option<u128>'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Text'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Bool'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u128'
|
||||
}
|
||||
],
|
||||
@@ -166,20 +222,30 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Vec<(Box<PropIndex>, Proposal,Lookup::Target)>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'PropIndex'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Proposal'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'LookupTarget'
|
||||
}
|
||||
],
|
||||
@@ -193,20 +259,30 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Vec<(PropIndex, Proposal, AccountId)>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'PropIndex'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Proposal'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'AccountId'
|
||||
}
|
||||
],
|
||||
@@ -220,28 +296,39 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('{"balance":"Balance","account_id":"AccountId","log":"(u64, Signature)"}')
|
||||
).toEqual({
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'balance',
|
||||
type: 'Balance'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'account_id',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: 'log',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u64'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Signature'
|
||||
}
|
||||
],
|
||||
@@ -256,16 +343,24 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('[[[bool; 3]; 6]; 9]')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 9,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 6,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 3,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
},
|
||||
type: '[bool;3]'
|
||||
@@ -283,11 +378,16 @@ describe('getTypeDef', (): void => {
|
||||
displayName: 'MyType',
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 3,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 6,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
},
|
||||
type: '[bool;6]'
|
||||
@@ -300,24 +400,34 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('((u32, u64), u128)')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u64'
|
||||
}
|
||||
],
|
||||
type: '(u32,u64)'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u128'
|
||||
}
|
||||
],
|
||||
@@ -338,41 +448,55 @@ describe('getTypeDef', (): void => {
|
||||
}
|
||||
}))
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Enum,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
index: 0,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'A',
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
index: 1,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: 'B',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
}
|
||||
],
|
||||
type: '(u32,bool)'
|
||||
},
|
||||
{
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
index: 2,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: 'C',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'd',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'e',
|
||||
type: 'Balance'
|
||||
@@ -396,38 +520,53 @@ describe('getTypeDef', (): void => {
|
||||
}
|
||||
}))
|
||||
).toEqual({
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'a',
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: 'b',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
}
|
||||
],
|
||||
type: '(u32,bool)'
|
||||
},
|
||||
{
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: 'c',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'd',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'e',
|
||||
type: 'Balance'
|
||||
@@ -444,18 +583,28 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Vec<[[[bool; 3]; 6]; 9]>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 9,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 6,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.VecFixed,
|
||||
length: 3,
|
||||
name: undefined,
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
},
|
||||
type: '[bool;3]'
|
||||
@@ -472,25 +621,37 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef('Vec<{ "a": "u32", "b": "(u32, bool)" }>')
|
||||
).toEqual({
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: undefined,
|
||||
sub: {
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: undefined,
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: 'a',
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Tuple,
|
||||
name: 'b',
|
||||
sub: [
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'u32'
|
||||
},
|
||||
{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'bool'
|
||||
}
|
||||
],
|
||||
@@ -517,12 +678,19 @@ describe('getTypeDef', (): void => {
|
||||
expect(
|
||||
getTypeDef(raw)
|
||||
).toEqual({
|
||||
alias: undefined,
|
||||
displayName: undefined,
|
||||
fallbackType: undefined,
|
||||
info: TypeDefInfo.Struct,
|
||||
name: undefined,
|
||||
sub: [{
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Vec,
|
||||
name: 'data',
|
||||
sub: {
|
||||
displayName: undefined,
|
||||
info: TypeDefInfo.Plain,
|
||||
name: undefined,
|
||||
type: 'Recursive'
|
||||
},
|
||||
type: 'Vec<Recursive>'
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/networks": "^10.3.1",
|
||||
"@polkadot/types": "9.13.5",
|
||||
"@polkadot/types-codec": "9.13.5",
|
||||
"@polkadot/types-create": "9.13.5",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/networks": "^10.4.2",
|
||||
"@polkadot/types": "9.14.2",
|
||||
"@polkadot/types-codec": "9.14.2",
|
||||
"@polkadot/types-create": "9.14.2",
|
||||
"@polkadot/util": "^10.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.13.5"
|
||||
"@polkadot/api": "9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.13.5' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.14.2' };
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.5",
|
||||
"version": "9.14.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/util": "^10.3.1"
|
||||
"@polkadot/util": "^10.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import metadata from './v14/kusama-hex';
|
||||
import rpc from './v14/kusama-rpc';
|
||||
import version from './v14/kusama-ver';
|
||||
|
||||
export { rpc, version };
|
||||
|
||||
export default metadata;
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import metadata from './v14/polkadot-hex';
|
||||
import rpc from './v14/polkadot-rpc';
|
||||
import version from './v14/polkadot-ver';
|
||||
|
||||
export { rpc, version };
|
||||
|
||||
export default metadata;
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import metadata from './v14/substrate-hex';
|
||||
import rpc from './v14/substrate-rpc';
|
||||
import version from './v14/substrate-ver';
|
||||
|
||||
export { rpc, version };
|
||||
|
||||
export default metadata;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,123 @@
|
||||
// Copyright 2017-2023 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --chain kusama-dev && cargo run --release -- --chain kusama-dev --alice --force-authoring
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_unstable_body",
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_follow",
|
||||
"chainHead_unstable_genesisHash",
|
||||
"chainHead_unstable_header",
|
||||
"chainHead_unstable_stopBody",
|
||||
"chainHead_unstable_stopCall",
|
||||
"chainHead_unstable_stopStorage",
|
||||
"chainHead_unstable_storage",
|
||||
"chainHead_unstable_unfollow",
|
||||
"chainHead_unstable_unpin",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transaction_unstable_submitAndWatch",
|
||||
"transaction_unstable_unwatch",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,82 @@
|
||||
// Copyright 2017-2023 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --chain kusama-dev && cargo run --release -- --chain kusama-dev --alice --force-authoring
|
||||
|
||||
export default {
|
||||
"specName": "kusama",
|
||||
"implName": "parity-kusama",
|
||||
"authoringVersion": 2,
|
||||
"specVersion": 9370,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 19,
|
||||
"stateVersion": 0
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,123 @@
|
||||
// Copyright 2017-2023 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"beefy_getFinalizedHead",
|
||||
"beefy_subscribeJustifications",
|
||||
"beefy_unsubscribeJustifications",
|
||||
"chainHead_unstable_body",
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_follow",
|
||||
"chainHead_unstable_genesisHash",
|
||||
"chainHead_unstable_header",
|
||||
"chainHead_unstable_stopBody",
|
||||
"chainHead_unstable_stopCall",
|
||||
"chainHead_unstable_stopStorage",
|
||||
"chainHead_unstable_storage",
|
||||
"chainHead_unstable_unfollow",
|
||||
"chainHead_unstable_unpin",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transaction_unstable_submitAndWatch",
|
||||
"transaction_unstable_unwatch",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,82 @@
|
||||
// Copyright 2017-2023 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"specName": "polkadot",
|
||||
"implName": "parity-polkadot",
|
||||
"authoringVersion": 0,
|
||||
"specVersion": 9370,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0x17a6bc0d0062aeb3",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xaf2c0297a23e6d3d",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xed99c5acb25eedf5",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xcbca25e39f142387",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x687ad44ad37f03c2",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
]
|
||||
],
|
||||
"transactionVersion": 20,
|
||||
"stateVersion": 0
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,124 @@
|
||||
// Copyright 2017-2023 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"babe_epochAuthorship",
|
||||
"chainHead_unstable_body",
|
||||
"chainHead_unstable_call",
|
||||
"chainHead_unstable_follow",
|
||||
"chainHead_unstable_genesisHash",
|
||||
"chainHead_unstable_header",
|
||||
"chainHead_unstable_stopBody",
|
||||
"chainHead_unstable_stopCall",
|
||||
"chainHead_unstable_stopStorage",
|
||||
"chainHead_unstable_storage",
|
||||
"chainHead_unstable_unfollow",
|
||||
"chainHead_unstable_unpin",
|
||||
"chainSpec_unstable_chainName",
|
||||
"chainSpec_unstable_genesisHash",
|
||||
"chainSpec_unstable_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"grandpa_proveFinality",
|
||||
"grandpa_roundState",
|
||||
"grandpa_subscribeJustifications",
|
||||
"grandpa_unsubscribeJustifications",
|
||||
"mmr_generateProof",
|
||||
"mmr_root",
|
||||
"mmr_verifyProof",
|
||||
"mmr_verifyProofStateless",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"sync_state_genSyncSpec",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transaction_unstable_submitAndWatch",
|
||||
"transaction_unstable_unwatch",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user