Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
967f5e980a | ||
|
|
00a27efaee | ||
|
|
a7163fb1ba | ||
|
|
4c6dd53c3b | ||
|
|
61199ffb2b | ||
|
|
dbfb03760c | ||
|
|
c9b1fcdb0a | ||
|
|
29953edd24 | ||
|
|
96a23bda50 | ||
|
|
09a8d80144 | ||
|
|
5637579879 | ||
|
|
448ce0a76e | ||
|
|
a6a062378d | ||
|
|
40c78f95d2 | ||
|
|
b0e135c5ca | ||
|
|
22218bd9b0 | ||
|
|
149b7d9ee6 | ||
|
|
9a7b91a6f5 | ||
|
|
80b165ba34 | ||
|
|
95a4512530 | ||
|
|
15a315dede | ||
|
|
32548a34a4 | ||
|
|
50142d7e63 | ||
|
|
1ed6117e3f | ||
|
|
a392025a15 | ||
|
|
fbeb478602 | ||
|
|
2cdd24445c | ||
|
|
e545f6f2b3 | ||
|
|
1aa2b7e1ff | ||
|
|
677d0c9969 | ||
|
|
775fff5333 | ||
|
|
9345a18de0 | ||
|
|
a4256396ee | ||
|
|
776600ef00 | ||
|
|
1a31043cc4 | ||
|
|
66159955ac | ||
|
|
03c725f637 | ||
|
|
e5708a7e7e | ||
|
|
fb5ce83f74 | ||
|
|
6c3bd2f408 | ||
|
|
66e01afe26 | ||
|
|
71f9bdf368 | ||
|
|
7af9330026 | ||
|
|
d5aff171e4 | ||
|
|
543de63af8 | ||
|
|
cdcdf589dd | ||
|
|
1330b58afd | ||
|
|
0b2ec65e88 | ||
|
|
8840e29063 | ||
|
|
b9925b569d | ||
|
|
2640b65be9 | ||
|
|
d64a0ca295 | ||
|
|
79eeed3f9a | ||
|
|
d154b535e6 | ||
|
|
87c2690fc2 | ||
|
|
8f0ca37c60 | ||
|
|
f7dd4a3552 | ||
|
|
abcad05a91 | ||
|
|
ba188dcc0d | ||
|
|
ae2422f350 | ||
|
|
576efc0239 | ||
|
|
111540177f | ||
|
|
43ee566669 | ||
|
|
39299188b0 | ||
|
|
5d13bfb925 | ||
|
|
c759ff0c12 | ||
|
|
0cc34dff85 | ||
|
|
1682a8f096 | ||
|
|
be572aabf0 | ||
|
|
7a6d19d241 | ||
|
|
f4a590d7f8 | ||
|
|
771e5f3bcf | ||
|
|
1ba427356d | ||
|
|
aad497e9d2 | ||
|
|
95fc2b2c99 | ||
|
|
b7b707249b | ||
|
|
ce95e305f3 | ||
|
|
4ea793f55e | ||
|
|
bb0b365dfe | ||
|
|
756f817d93 | ||
|
|
df4bda1fc8 | ||
|
|
a98e9543b8 | ||
|
|
84abaff414 | ||
|
|
29d5460cdd | ||
|
|
e2d0de4f6c | ||
|
|
8e32777efa | ||
|
|
39b1de326c | ||
|
|
6fb6c40c7d | ||
|
|
badb10bdd9 | ||
|
|
235a7b1aa9 | ||
|
|
b7d65fb506 | ||
|
|
8eb0524fed | ||
|
|
bab50b2d74 |
+3
-1
@@ -49,4 +49,6 @@
|
||||
|
||||
7.0.2
|
||||
|
||||
7.14.2
|
||||
7.14.2
|
||||
7.14.3
|
||||
8.0.2
|
||||
@@ -1,5 +1,7 @@
|
||||
_book/
|
||||
build/
|
||||
build-cjs/
|
||||
build-esm/
|
||||
build-docs/
|
||||
coverage/
|
||||
docs/.vuepress/dist/
|
||||
|
||||
+82
-1
@@ -1,6 +1,87 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 7.14.2 Mat 28, 2022
|
||||
## 8.2.1 Apr 24, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Make WS timeout check configurable (Thanks to https://github.com/isSerge)
|
||||
|
||||
Changes:
|
||||
|
||||
- Don't fake signature for `paymentInfo` if already signed
|
||||
- Remove `api.derive.balances.fees` (use direct constants as applicable)
|
||||
- Add Westend 9190 upgrade block
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
|
||||
|
||||
## 8.1.1 Apr 17, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Adjust typegen for `Vec<{ struct: <type> }>` (Thanks to https://github.com/zannis)
|
||||
- Adjust typegen __dirname for ESM (Thanks to https://github.com/drewstone)
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix `entriesPaged` where no `at?: BlockHash` is specified
|
||||
- Apply windcard matches for `democracy::vote::Vote` and `identity::type::Data`
|
||||
- Adjust default "no RPC response" timeout to 60s
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
|
||||
|
||||
## 8.0.2 Apr 11, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
- Detect typegen template location for commonjs execution
|
||||
|
||||
|
||||
## 8.0.1 Apr 10, 2022
|
||||
|
||||
- **Breaking change** In this major version the commonjs outputs are moved to a sub-folder. Since the export map and main field in package.json does reflect this change, there should be no usage changes. However the packages here will all need to be on the same version for internal linkage.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Improve `rpc-provider` README (Thanks to https://github.com/josepot)
|
||||
- Add handling for `Vec<[<Type>;<length>]>` in typegen (Thanks to https://github.com/zannis)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add support for `apiAt.tx(...)` to construct at a specific point
|
||||
- Add basic `api.derive.bagsList.*` support
|
||||
- Return sorted names for `api.registry.lookup.names`
|
||||
- Optimize JSONRPC requests/response handling
|
||||
- Output commonjs files under the `cjs/**` root
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
- Add latest Polkadot 9180 upgrade block
|
||||
- Update to `@polkadot/util` 9.0.1
|
||||
|
||||
|
||||
## 7.15.1 Apr 3, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Export `WellKnownChain` for `substrate-connect` (Thanks to https://github.com/josepot)
|
||||
- Add support for `{entries, keys}Paged` in `.at` (Thanks to https://github.com/xlc)
|
||||
- Align `WeightsPerClass` interface on `maxExtrinsic` (Thanks to https://github.com/HackFisher)
|
||||
|
||||
Changes:
|
||||
|
||||
- Cater for `DispatchError` with `error` as `[u8; 4]`
|
||||
- Add in-flight cache for parallel same-version metadata queries
|
||||
- Cater for lazy `@polkadot/util-crypto` init (adjustment for React Native)
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
- Update latest Westend & Kusama (up to 9180) upgrade blocks
|
||||
|
||||
|
||||
## 7.14.3 Mar 28, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
- Ensure `BitVec` with MSB does not fail (used in Polkadot `DeliveredMessages`)
|
||||
|
||||
|
||||
## 7.14.2 Mar 28, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
|
||||
+6
-3
@@ -1,10 +1,10 @@
|
||||
2885 Jaco Don't export `ScProvider` top-level in `@polkadot/rpc-provider` (#4694)
|
||||
2924 Jaco 8.2.1 (#4766)
|
||||
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)
|
||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||
16 Xiliang Chen implement entriesPaged and keysPages for query at (#4701)
|
||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||
15 Xiliang Chen add Authority origin (#3645)
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
@@ -22,6 +22,7 @@
|
||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||
3 hamidra add support for n key entries for NMaps (#3886)
|
||||
3 Hamza Tokuchi more typos (#2532)
|
||||
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
||||
3 Julien Eluard Fixed typos about module balances (#1402)
|
||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||
@@ -30,6 +31,7 @@
|
||||
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||
2 Branan Riley Add proxy type for Centrifuge (#3940)
|
||||
2 Caio Add `Range` and `RangeInclusive` types (#3791)
|
||||
2 HackFisher Update maxExtrinsic definition (#4703)
|
||||
2 Jakub Pánik All heads subscription (#1899)
|
||||
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||
@@ -39,6 +41,7 @@
|
||||
2 sung wu Update tx.md (#2485)
|
||||
2 Veliko Abi constructor takes different parameters (#3347)
|
||||
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
|
||||
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
|
||||
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||
1 Andreea Eftene Add storage deposit support (#4304)
|
||||
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||
@@ -65,7 +68,6 @@
|
||||
1 JesseAbram added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
|
||||
1 Joey don't throw error at `onSocketClose` (#4363)
|
||||
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||
1 Josep M Sobrepere Add smoldot rpc provider (#4672)
|
||||
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
||||
1 Kian Paimani Update definitions.ts (#2514)
|
||||
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
||||
@@ -91,6 +93,7 @@
|
||||
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||
1 Sean Young Solang requires u256 and i256 types (#2752)
|
||||
1 serge make WS provider timeout configurable (#4758)
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
|
||||
+4
-4
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "commonjs",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
@@ -31,10 +31,10 @@
|
||||
"test:watch": "polkadot-dev-run-test --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.17.8",
|
||||
"@babel/core": "^7.17.9",
|
||||
"@babel/register": "^7.17.7",
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/dev": "^0.65.101",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/dev": "^0.66.9",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^27.4.1",
|
||||
"copyfiles": "^2.4.1"
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/api-base": "7.14.2",
|
||||
"@polkadot/rpc-augment": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-augment": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api-base": "8.2.1",
|
||||
"@polkadot/rpc-augment": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-augment": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "7.14.2"
|
||||
"@polkadot/types-support": "8.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,11 +135,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* Percentage of the curator fee that will be reserved upfront as deposit for bounty
|
||||
* curator.
|
||||
**/
|
||||
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a bounty proposal.
|
||||
**/
|
||||
@@ -156,6 +151,21 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Minimum value for a bounty.
|
||||
**/
|
||||
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The curator deposit is calculated as a percentage of the curator fee.
|
||||
*
|
||||
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
||||
* `CuratorDepositMin`.
|
||||
**/
|
||||
curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||
**/
|
||||
@@ -172,17 +182,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Percentage of child-bounty value to be reserved as curator deposit
|
||||
* when curator fee is zero.
|
||||
**/
|
||||
childBountyCuratorDepositBase: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum value for a child-bounty.
|
||||
**/
|
||||
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of child-bounties that can be added to a parent bounty.
|
||||
* Maximum number of child bounties that can be added to a parent bounty.
|
||||
**/
|
||||
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -279,6 +284,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum length (bytes) that the mined solution should consume.
|
||||
*
|
||||
@@ -316,6 +341,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -340,24 +369,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to put in the snapshot. At the moment, snapshots are only
|
||||
* over a single block, but once multi-block elections are introduced they will take place
|
||||
* over multiple blocks.
|
||||
*
|
||||
* Also, note the data type: If the voters are represented by a `u32` in `type
|
||||
* CompactSolution`, the same `u32` is used here to ensure bounds are respected.
|
||||
**/
|
||||
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -835,6 +850,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from length.
|
||||
**/
|
||||
lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* `priority`
|
||||
@@ -859,10 +878,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* transactions.
|
||||
**/
|
||||
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The fee to be paid for making a transaction; the per-byte portion.
|
||||
**/
|
||||
transactionByteFee: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from weight.
|
||||
**/
|
||||
|
||||
@@ -149,7 +149,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child-bounties.
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
**/
|
||||
HasActiveChildBounty: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -208,7 +208,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
ParentBountyNotActive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
**/
|
||||
TooManyChildBounties: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/events' {
|
||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||
@@ -722,6 +722,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A proxy was executed correctly, with the given.
|
||||
**/
|
||||
ProxyExecuted: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
|
||||
/**
|
||||
* A proxy was removed.
|
||||
**/
|
||||
ProxyRemoved: AugmentedEvent<ApiType, [AccountId32, AccountId32, KusamaRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -942,6 +946,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has unbonded this amount. \[stash, amount\]
|
||||
**/
|
||||
Unbonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
||||
/**
|
||||
* A validator has set their preferences.
|
||||
**/
|
||||
ValidatorPrefsSet: AugmentedEvent<ApiType, [AccountId32, PalletStakingValidatorPrefs]>;
|
||||
/**
|
||||
* An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
|
||||
* from the unlocking queue. \[stash, amount\]
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/storage' {
|
||||
@@ -259,7 +259,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child-bounties that have been added.
|
||||
* Child bounties that have been added.
|
||||
**/
|
||||
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
@@ -275,7 +275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Number of child-bounties per parent bounty.
|
||||
* Number of child bounties per parent bounty.
|
||||
* Map of parent bounty index to number of child bounties.
|
||||
**/
|
||||
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -317,12 +317,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* is meant to be used only as the last resort.
|
||||
**/
|
||||
bypassConsistencyCheck: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Pending configuration (if any) for the next session.
|
||||
*
|
||||
* DEPRECATED: This is no longer used, and will be removed in the future.
|
||||
**/
|
||||
pendingConfig: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Pending configuration changes.
|
||||
*
|
||||
@@ -1680,8 +1674,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Events deposited for the current block.
|
||||
*
|
||||
* NOTE: This storage item is explicitly unbounded since it is never intended to be read
|
||||
* from within the runtime.
|
||||
* NOTE: The item is unbound and should therefore never be read on chain.
|
||||
* It could otherwise inflate the PoV size of a block.
|
||||
*
|
||||
* Events have a large in-memory size. Box the events to not go out-of-memory
|
||||
* just in case someone still reads them from within the runtime.
|
||||
**/
|
||||
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -367,7 +367,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* parent bounty to child-bounty account, if parent bounty has enough
|
||||
* funds, else the call fails.
|
||||
*
|
||||
* Upper bound to maximum number of active child-bounties that can be
|
||||
* Upper bound to maximum number of active child bounties that can be
|
||||
* added are managed via runtime trait config
|
||||
* [`Config::MaxActiveChildBountyCount`].
|
||||
*
|
||||
@@ -384,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The beneficiary will be able to claim the funds after a delay.
|
||||
*
|
||||
* The dispatch origin for this call must be the master curator or
|
||||
* The dispatch origin for this call must be the parent curator or
|
||||
* curator of this child-bounty.
|
||||
*
|
||||
* Parent bounty must be in active state, for this child-bounty call to
|
||||
@@ -468,12 +468,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the curator of the parent bounty, or any signed origin.
|
||||
*
|
||||
* For the origin other than T::RejectOrigin and the child-bounty
|
||||
* curator, parent-bounty must be in active state, for this call to
|
||||
* curator, parent bounty must be in active state, for this call to
|
||||
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
||||
* this call irrespective of the parent-bounty state.
|
||||
* this call irrespective of the parent bounty state.
|
||||
*
|
||||
* If this function is called by the `RejectOrigin` or the
|
||||
* parent-bounty curator, we assume that the child-bounty curator is
|
||||
* parent bounty curator, we assume that the child-bounty curator is
|
||||
* malicious or inactive. As a result, child-bounty curator deposit is
|
||||
* slashed.
|
||||
*
|
||||
@@ -3529,7 +3529,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the controller of a stash.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
||||
*
|
||||
@@ -3579,7 +3579,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the payment target for a controller.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||
*
|
||||
@@ -4408,10 +4408,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
|
||||
/**
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
||||
* a notification XCM.
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||
* chain and forward a notification XCM.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
||||
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
||||
* at risk.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -4428,7 +4431,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Teleport some assets from the local chain to some destination chain.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
||||
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
||||
* at risk.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -4443,12 +4449,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
||||
/**
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
||||
* a notification XCM.
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||
* chain and forward a notification XCM.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
||||
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
||||
* local weights.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
||||
* with all fees taken as needed from the asset.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -4465,9 +4471,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Teleport some assets from the local chain to some destination chain.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
||||
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
||||
* local weights.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
||||
* with all fees taken as needed from the asset.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -135,11 +135,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* Percentage of the curator fee that will be reserved upfront as deposit for bounty
|
||||
* curator.
|
||||
**/
|
||||
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a bounty proposal.
|
||||
**/
|
||||
@@ -156,6 +151,21 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Minimum value for a bounty.
|
||||
**/
|
||||
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The curator deposit is calculated as a percentage of the curator fee.
|
||||
*
|
||||
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
||||
* `CuratorDepositMin`.
|
||||
**/
|
||||
curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||
**/
|
||||
@@ -172,17 +182,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Percentage of child-bounty value to be reserved as curator deposit
|
||||
* when curator fee is zero.
|
||||
**/
|
||||
childBountyCuratorDepositBase: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum value for a child-bounty.
|
||||
**/
|
||||
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of child-bounties that can be added to a parent bounty.
|
||||
* Maximum number of child bounties that can be added to a parent bounty.
|
||||
**/
|
||||
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -279,6 +284,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum length (bytes) that the mined solution should consume.
|
||||
*
|
||||
@@ -316,6 +341,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -340,24 +369,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to put in the snapshot. At the moment, snapshots are only
|
||||
* over a single block, but once multi-block elections are introduced they will take place
|
||||
* over multiple blocks.
|
||||
*
|
||||
* Also, note the data type: If the voters are represented by a `u32` in `type
|
||||
* CompactSolution`, the same `u32` is used here to ensure bounds are respected.
|
||||
**/
|
||||
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -702,6 +717,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from length.
|
||||
**/
|
||||
lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* `priority`
|
||||
@@ -726,10 +745,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* transactions.
|
||||
**/
|
||||
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The fee to be paid for making a transaction; the per-byte portion.
|
||||
**/
|
||||
transactionByteFee: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from weight.
|
||||
**/
|
||||
|
||||
@@ -149,7 +149,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child-bounties.
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
**/
|
||||
HasActiveChildBounty: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -208,7 +208,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
ParentBountyNotActive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
**/
|
||||
TooManyChildBounties: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/events' {
|
||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||
@@ -700,6 +700,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A proxy was executed correctly, with the given.
|
||||
**/
|
||||
ProxyExecuted: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
|
||||
/**
|
||||
* A proxy was removed.
|
||||
**/
|
||||
ProxyRemoved: AugmentedEvent<ApiType, [AccountId32, AccountId32, PolkadotRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -817,6 +821,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has unbonded this amount. \[stash, amount\]
|
||||
**/
|
||||
Unbonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
||||
/**
|
||||
* A validator has set their preferences.
|
||||
**/
|
||||
ValidatorPrefsSet: AugmentedEvent<ApiType, [AccountId32, PalletStakingValidatorPrefs]>;
|
||||
/**
|
||||
* An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
|
||||
* from the unlocking queue. \[stash, amount\]
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, 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, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/storage' {
|
||||
@@ -259,7 +259,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child-bounties that have been added.
|
||||
* Child bounties that have been added.
|
||||
**/
|
||||
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
@@ -275,7 +275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Number of child-bounties per parent bounty.
|
||||
* Number of child bounties per parent bounty.
|
||||
* Map of parent bounty index to number of child bounties.
|
||||
**/
|
||||
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -317,12 +317,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* is meant to be used only as the last resort.
|
||||
**/
|
||||
bypassConsistencyCheck: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Pending configuration (if any) for the next session.
|
||||
*
|
||||
* DEPRECATED: This is no longer used, and will be removed in the future.
|
||||
**/
|
||||
pendingConfig: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Pending configuration changes.
|
||||
*
|
||||
@@ -1560,8 +1554,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Events deposited for the current block.
|
||||
*
|
||||
* NOTE: This storage item is explicitly unbounded since it is never intended to be read
|
||||
* from within the runtime.
|
||||
* NOTE: The item is unbound and should therefore never be read on chain.
|
||||
* It could otherwise inflate the PoV size of a block.
|
||||
*
|
||||
* Events have a large in-memory size. Box the events to not go out-of-memory
|
||||
* just in case someone still reads them from within the runtime.
|
||||
**/
|
||||
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -367,7 +367,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* parent bounty to child-bounty account, if parent bounty has enough
|
||||
* funds, else the call fails.
|
||||
*
|
||||
* Upper bound to maximum number of active child-bounties that can be
|
||||
* Upper bound to maximum number of active child bounties that can be
|
||||
* added are managed via runtime trait config
|
||||
* [`Config::MaxActiveChildBountyCount`].
|
||||
*
|
||||
@@ -384,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The beneficiary will be able to claim the funds after a delay.
|
||||
*
|
||||
* The dispatch origin for this call must be the master curator or
|
||||
* The dispatch origin for this call must be the parent curator or
|
||||
* curator of this child-bounty.
|
||||
*
|
||||
* Parent bounty must be in active state, for this child-bounty call to
|
||||
@@ -468,12 +468,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the curator of the parent bounty, or any signed origin.
|
||||
*
|
||||
* For the origin other than T::RejectOrigin and the child-bounty
|
||||
* curator, parent-bounty must be in active state, for this call to
|
||||
* curator, parent bounty must be in active state, for this call to
|
||||
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
||||
* this call irrespective of the parent-bounty state.
|
||||
* this call irrespective of the parent bounty state.
|
||||
*
|
||||
* If this function is called by the `RejectOrigin` or the
|
||||
* parent-bounty curator, we assume that the child-bounty curator is
|
||||
* parent bounty curator, we assume that the child-bounty curator is
|
||||
* malicious or inactive. As a result, child-bounty curator deposit is
|
||||
* slashed.
|
||||
*
|
||||
@@ -2947,7 +2947,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the controller of a stash.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
||||
*
|
||||
@@ -2997,7 +2997,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the payment target for a controller.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||
*
|
||||
@@ -3826,10 +3826,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;
|
||||
/**
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
||||
* a notification XCM.
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||
* chain and forward a notification XCM.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
||||
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
||||
* at risk.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -3846,7 +3849,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Teleport some assets from the local chain to some destination chain.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
||||
* is needed than `weight_limit`, then the operation will fail and the assets send may be
|
||||
* at risk.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -3861,12 +3867,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;
|
||||
/**
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination chain and forward
|
||||
* a notification XCM.
|
||||
* Transfer some assets from the local chain to the sovereign account of a destination
|
||||
* chain and forward a notification XCM.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
||||
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
||||
* local weights.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
||||
* with all fees taken as needed from the asset.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
@@ -3883,9 +3889,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Teleport some assets from the local chain to some destination chain.
|
||||
*
|
||||
* Fee payment on the destination side is made from the first asset listed in the `assets` vector and
|
||||
* fee-weight is calculated locally and thus remote weights are assumed to be equal to
|
||||
* local weights.
|
||||
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
||||
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
||||
* with all fees taken as needed from the asset.
|
||||
*
|
||||
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
||||
* - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletStateTrieMigrationMigrationLimits, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/consts' {
|
||||
export interface AugmentedConsts<ApiType extends ApiTypes> {
|
||||
@@ -149,11 +149,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* Percentage of the curator fee that will be reserved upfront as deposit for bounty
|
||||
* curator.
|
||||
**/
|
||||
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a bounty proposal.
|
||||
**/
|
||||
@@ -170,6 +165,21 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Minimum value for a bounty.
|
||||
**/
|
||||
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The curator deposit is calculated as a percentage of the curator fee.
|
||||
*
|
||||
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
||||
* `CuratorDepositMin`.
|
||||
**/
|
||||
curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||
**/
|
||||
@@ -186,17 +196,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Percentage of child-bounty value to be reserved as curator deposit
|
||||
* when curator fee is zero.
|
||||
**/
|
||||
childBountyCuratorDepositBase: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum value for a child-bounty.
|
||||
**/
|
||||
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of child-bounties that can be added to a parent bounty.
|
||||
* Maximum number of child bounties that can be added to a parent bounty.
|
||||
**/
|
||||
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -340,6 +345,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum length (bytes) that the mined solution should consume.
|
||||
*
|
||||
@@ -377,6 +402,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -401,24 +430,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to put in the snapshot. At the moment, snapshots are only
|
||||
* over a single block, but once multi-block elections are introduced they will take place
|
||||
* over multiple blocks.
|
||||
*
|
||||
* Also, note the data type: If the voters are represented by a `u32` in `type
|
||||
* CompactSolution`, the same `u32` is used here to ensure bounds are respected.
|
||||
**/
|
||||
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -829,16 +844,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The maximum limits that the signed migration could use.
|
||||
**/
|
||||
signedMigrationMaxLimits: PalletStateTrieMigrationMigrationLimits & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
||||
@@ -915,6 +920,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from length.
|
||||
**/
|
||||
lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* `priority`
|
||||
@@ -939,10 +948,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* transactions.
|
||||
**/
|
||||
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The fee to be paid for making a transaction; the per-byte portion.
|
||||
**/
|
||||
transactionByteFee: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The polynomial that is applied in order to derive fee from weight.
|
||||
**/
|
||||
|
||||
@@ -183,7 +183,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child-bounties.
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
**/
|
||||
HasActiveChildBounty: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -242,7 +242,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
ParentBountyNotActive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
**/
|
||||
TooManyChildBounties: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1206,6 +1206,20 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Attempted to call `store` outside of block execution.
|
||||
**/
|
||||
BadContext: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Attempting to store empty data.
|
||||
**/
|
||||
Empty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* Failed to schedule a call
|
||||
@@ -1451,6 +1465,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* submitter does not have enough funds.
|
||||
**/
|
||||
NotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Signed migration is not allowed because the maximum limit is not set yet.
|
||||
**/
|
||||
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* upper bound of size is exceeded,
|
||||
**/
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/events' {
|
||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||
@@ -663,6 +663,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A proxy was executed correctly, with the given.
|
||||
**/
|
||||
ProxyExecuted: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
|
||||
/**
|
||||
* A proxy was removed.
|
||||
**/
|
||||
ProxyRemoved: AugmentedEvent<ApiType, [AccountId32, AccountId32, NodeRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -750,6 +754,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Stored data off chain.
|
||||
**/
|
||||
Stored: AugmentedEvent<ApiType, [AccountId32, H256]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* The call for the provided hash was not found so the task has been aborted.
|
||||
@@ -909,6 +923,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has unbonded this amount. \[stash, amount\]
|
||||
**/
|
||||
Unbonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
||||
/**
|
||||
* A validator has set their preferences.
|
||||
**/
|
||||
ValidatorPrefsSet: AugmentedEvent<ApiType, [AccountId32, PalletStakingValidatorPrefs]>;
|
||||
/**
|
||||
* An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
|
||||
* from the unlocking queue. \[stash, amount\]
|
||||
|
||||
@@ -267,7 +267,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child-bounties that have been added.
|
||||
* Child bounties that have been added.
|
||||
**/
|
||||
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
@@ -283,7 +283,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Number of child-bounties per parent bounty.
|
||||
* Number of child bounties per parent bounty.
|
||||
* Map of parent bounty index to number of child bounties.
|
||||
**/
|
||||
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -1282,6 +1282,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* forward by any of the means provided by this pallet.
|
||||
**/
|
||||
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum limits that the signed migration could use.
|
||||
*
|
||||
* If not set, no signed submission is allowed.
|
||||
**/
|
||||
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1325,8 +1331,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Events deposited for the current block.
|
||||
*
|
||||
* NOTE: This storage item is explicitly unbounded since it is never intended to be read
|
||||
* from within the runtime.
|
||||
* NOTE: The item is unbound and should therefore never be read on chain.
|
||||
* It could otherwise inflate the PoV size of a block.
|
||||
*
|
||||
* Events have a large in-memory size. Box the events to not go out-of-memory
|
||||
* just in case someone still reads them from within the runtime.
|
||||
**/
|
||||
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/submittable' {
|
||||
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||
@@ -761,7 +761,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* parent bounty to child-bounty account, if parent bounty has enough
|
||||
* funds, else the call fails.
|
||||
*
|
||||
* Upper bound to maximum number of active child-bounties that can be
|
||||
* Upper bound to maximum number of active child bounties that can be
|
||||
* added are managed via runtime trait config
|
||||
* [`Config::MaxActiveChildBountyCount`].
|
||||
*
|
||||
@@ -778,7 +778,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The beneficiary will be able to claim the funds after a delay.
|
||||
*
|
||||
* The dispatch origin for this call must be the master curator or
|
||||
* The dispatch origin for this call must be the parent curator or
|
||||
* curator of this child-bounty.
|
||||
*
|
||||
* Parent bounty must be in active state, for this child-bounty call to
|
||||
@@ -862,12 +862,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the curator of the parent bounty, or any signed origin.
|
||||
*
|
||||
* For the origin other than T::RejectOrigin and the child-bounty
|
||||
* curator, parent-bounty must be in active state, for this call to
|
||||
* curator, parent bounty must be in active state, for this call to
|
||||
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
||||
* this call irrespective of the parent-bounty state.
|
||||
* this call irrespective of the parent bounty state.
|
||||
*
|
||||
* If this function is called by the `RejectOrigin` or the
|
||||
* parent-bounty curator, we assume that the child-bounty curator is
|
||||
* parent bounty curator, we assume that the child-bounty curator is
|
||||
* malicious or inactive. As a result, child-bounty curator deposit is
|
||||
* slashed.
|
||||
*
|
||||
@@ -2954,6 +2954,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Index and store data off chain.
|
||||
**/
|
||||
store: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* Cancel an anonymously scheduled task.
|
||||
@@ -3614,7 +3624,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the controller of a stash.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
||||
*
|
||||
@@ -3664,7 +3674,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* (Re-)set the payment target for a controller.
|
||||
*
|
||||
* Effects will be felt at the beginning of the next era.
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||
*
|
||||
@@ -3795,6 +3805,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
||||
**/
|
||||
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
||||
/**
|
||||
* Forcefully set the progress the running migration.
|
||||
*
|
||||
* This is only useful in one case: the next key to migrate is too big to be migrated with
|
||||
* a signed account, in a parachain context, and we simply want to skip it. A reasonable
|
||||
* example of this would be `:code:`, which is both very expensive to migrate, and commonly
|
||||
* used, so probably it is already migrated.
|
||||
*
|
||||
* In case you mess things up, you can also, in principle, use this to reset the migration
|
||||
* process.
|
||||
**/
|
||||
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | { ToStart: any } | { LastKey: any } | { Complete: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;
|
||||
/**
|
||||
* Migrate the list of child keys by iterating each of them one by one.
|
||||
*
|
||||
@@ -3811,6 +3833,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* should only be used in case any keys are leftover due to a bug.
|
||||
**/
|
||||
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
||||
/**
|
||||
* Set the maximum limit of the signed migration.
|
||||
**/
|
||||
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -4335,7 +4361,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||
/**
|
||||
* Index and store data on chain. Minimum data size is 1 bytes, maximum is
|
||||
* Index and store data off chain. Minimum data size is 1 bytes, maximum is
|
||||
* `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
|
||||
* is called. # <weight>
|
||||
* - n*log(n) of data size, as all data is pushed to an in-memory trie.
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/rpc-core": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-core": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"rxjs": "^7.5.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -74,12 +74,10 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
|
||||
* @deprecated Use api.at(<blockHash>)
|
||||
*/
|
||||
entriesAt: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
/**
|
||||
* @deprecated Use api.at(<blockHash>)
|
||||
*/
|
||||
keysAt: <K extends AnyTuple = A> (hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||
keysPaged: <K extends AnyTuple = A> (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||
/**
|
||||
* @deprecated The underlying RPC this been marked unsafe and is generally not exposed
|
||||
*/
|
||||
@@ -95,11 +93,13 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
|
||||
|
||||
export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
|
||||
entries: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
||||
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
||||
key: (...args: Parameters<F>) => string;
|
||||
keyPrefix: (...args: DropLast<Parameters<F>>) => string;
|
||||
keys: <K extends AnyTuple = A> (...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||
keysPaged: <K extends AnyTuple = A> (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||
size: (...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/api": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/types-create": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@polkadot/util-crypto": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/types-create": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/keyring": "^8.7.1"
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/keyring": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/api": "7.14.2",
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/api-base": "7.14.2",
|
||||
"@polkadot/rpc-core": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@polkadot/util-crypto": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.2.1",
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/api-base": "8.2.1",
|
||||
"@polkadot/rpc-core": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "7.14.2",
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/rpc-augment": "7.14.2",
|
||||
"@polkadot/rpc-provider": "7.14.2",
|
||||
"@polkadot/types-support": "7.14.2"
|
||||
"@polkadot/api": "8.2.1",
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/rpc-augment": "8.2.1",
|
||||
"@polkadot/rpc-provider": "8.2.1",
|
||||
"@polkadot/types-support": "8.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { PalletBagsListListBag } from '@polkadot/types/lookup';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { Bag } from './types';
|
||||
|
||||
import { map, of, switchMap } from 'rxjs';
|
||||
|
||||
import { BN_ZERO, bnToBn } from '@polkadot/util';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
function orderBags (ids: BN[], bags: Option<PalletBagsListListBag>[]): Bag[] {
|
||||
const sorted = ids
|
||||
.map((id, index) => ({
|
||||
bag: bags[index].unwrapOr(null),
|
||||
id,
|
||||
key: id.toString()
|
||||
}))
|
||||
.sort((a, b) => b.id.cmp(a.id))
|
||||
.map((base, index): Bag => ({
|
||||
...base,
|
||||
bagLower: BN_ZERO,
|
||||
bagUpper: base.id,
|
||||
index
|
||||
}));
|
||||
const max = sorted.length - 1;
|
||||
|
||||
return sorted.map((entry, index) =>
|
||||
index === max
|
||||
? entry
|
||||
// We could probably use a .add(BN_ONE) here
|
||||
: { ...entry, bagLower: sorted[index + 1].bagUpper }
|
||||
);
|
||||
}
|
||||
|
||||
export function _getIds (instanceId: string, api: DeriveApi): (ids: (BN | number)[]) => Observable<Bag[]> {
|
||||
return memo(instanceId, (_ids: (BN | number)[]): Observable<Bag[]> => {
|
||||
const ids = _ids.map((id) => bnToBn(id));
|
||||
|
||||
return ids.length
|
||||
? api.query.listBags.multi<Option<PalletBagsListListBag>[]>(ids).pipe(
|
||||
map((bags) => orderBags(ids, bags))
|
||||
)
|
||||
: of([]);
|
||||
});
|
||||
}
|
||||
|
||||
export function all (instanceId: string, api: DeriveApi): () => Observable<Bag[]> {
|
||||
return memo(instanceId, (): Observable<Bag[]> =>
|
||||
api.query.bagsList.listBags.keys().pipe(
|
||||
switchMap((keys) =>
|
||||
api.derive.bagsList._getIds(keys.map(({ args: [id] }) => id))
|
||||
),
|
||||
map((list) =>
|
||||
list.filter(({ bag }) => bag)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export function get (instanceId: string, api: DeriveApi): (id: BN | number) => Observable<Bag> {
|
||||
return memo(instanceId, (id: BN | number): Observable<Bag> =>
|
||||
api.derive.bagsList._getIds([bnToBn(id)]).pipe(
|
||||
map((bags) => bags[0])
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { Bag, BagExpanded } from './types';
|
||||
|
||||
import { map, switchMap } from 'rxjs';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
export function expand (instanceId: string, api: DeriveApi): (bag: Bag) => Observable<BagExpanded> {
|
||||
return memo(instanceId, (bag: Bag): Observable<BagExpanded> =>
|
||||
api.derive.bagsList.listNodes(bag.bag).pipe(
|
||||
map((nodes) => ({ ...bag, nodes }))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export function getExpanded (instanceId: string, api: DeriveApi): (id: BN | number) => Observable<BagExpanded> {
|
||||
return memo(instanceId, (id: BN | number): Observable<BagExpanded> =>
|
||||
api.derive.bagsList.get(id).pipe(
|
||||
switchMap((bag) =>
|
||||
api.derive.bagsList.expand(bag)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './get';
|
||||
export * from './getExpanded';
|
||||
export * from './listNodes';
|
||||
@@ -0,0 +1,41 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { AccountId32 } from '@polkadot/types/interfaces';
|
||||
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
||||
import type { DeriveApi } from '../types';
|
||||
|
||||
import { BehaviorSubject, map, of, switchMap, tap, toArray } from 'rxjs';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<PalletBagsListListNode[]> {
|
||||
const subject = new BehaviorSubject<AccountId32 | string>(head);
|
||||
|
||||
return subject.pipe(
|
||||
switchMap((account) =>
|
||||
api.query.bagsList.listNodes(account)
|
||||
),
|
||||
tap((node: Option<PalletBagsListListNode>): void => {
|
||||
setTimeout((): void => {
|
||||
node.isSome && (node.value as PalletBagsListListNode).next.isSome
|
||||
? subject.next(node.unwrap().next.unwrap())
|
||||
: subject.complete();
|
||||
}, 0);
|
||||
}),
|
||||
toArray(), // toArray since we want to startSubject to be completed
|
||||
map((all: Option<PalletBagsListListNode>[]) =>
|
||||
all.map((o) => o.unwrap())
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export function listNodes (instanceId: string, api: DeriveApi): (bag: PalletBagsListListBag | null) => Observable<PalletBagsListListNode[]> {
|
||||
return memo(instanceId, (bag: PalletBagsListListBag | null): Observable<PalletBagsListListNode[]> =>
|
||||
bag && bag.head.isSome
|
||||
? traverseLinks(api, bag.head.unwrap())
|
||||
: of([])
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { PalletBagsListListBag, PalletBagsListListNode } from '@polkadot/types/lookup';
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
export interface Bag {
|
||||
bag: PalletBagsListListBag | null;
|
||||
bagUpper: BN;
|
||||
bagLower: BN;
|
||||
id: BN;
|
||||
index: number;
|
||||
key: string;
|
||||
}
|
||||
|
||||
export interface BagExpanded extends Bag {
|
||||
nodes: PalletBagsListListNode[];
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Balance } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveFees } from '../types';
|
||||
|
||||
import { map, of } from 'rxjs';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
* @name fees
|
||||
* @returns An object containing the combined results of the storage queries for
|
||||
* all relevant fees as declared in the substrate chain spec.
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* api.derive.balances.fees(({ creationFee, transferFee }) => {
|
||||
* console.log(`The fee for creating a new account on this chain is ${creationFee} units. The fee required for making a transfer is ${transferFee} units.`);
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function fees (instanceId: string, api: DeriveApi): () => Observable<DeriveFees> {
|
||||
return memo(instanceId, (): Observable<DeriveFees> =>
|
||||
of([
|
||||
// deprecated - remove
|
||||
(api.consts.balances?.creationFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.balances?.transferFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
|
||||
// current
|
||||
(api.consts.balances?.existentialDeposit as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.transactionPayment?.transactionBaseFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.transactionPayment?.transactionByteFee as Balance) || api.registry.createType('Balance')
|
||||
]).pipe(
|
||||
map(([creationFee, transferFee, existentialDeposit, transactionBaseFee, transactionByteFee]): DeriveFees => ({
|
||||
creationFee,
|
||||
existentialDeposit,
|
||||
transactionBaseFee,
|
||||
transactionByteFee,
|
||||
transferFee
|
||||
}))
|
||||
));
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
import { all } from './all';
|
||||
|
||||
export * from './account';
|
||||
export * from './fees';
|
||||
export * from './votingBalances';
|
||||
|
||||
const votingBalance = all;
|
||||
|
||||
@@ -22,6 +22,10 @@ export { lazyDeriveSection };
|
||||
|
||||
// Enable derive only if some of these modules are available
|
||||
const checks: Record<string, Avail> = {
|
||||
bagsList: {
|
||||
instances: ['bagsList'],
|
||||
methods: []
|
||||
},
|
||||
contracts: {
|
||||
instances: ['contracts'],
|
||||
methods: []
|
||||
|
||||
@@ -60,17 +60,17 @@ function _eventTriggerAll (api: DeriveApi, paraId: string | number | BN): Observ
|
||||
}
|
||||
|
||||
function _getKeysPaged (api: DeriveApi, childKey: string): Observable<StorageKey[]> {
|
||||
const startSubject = new BehaviorSubject<string | undefined>(undefined);
|
||||
const subject = new BehaviorSubject<string | undefined>(undefined);
|
||||
|
||||
return startSubject.pipe(
|
||||
return subject.pipe(
|
||||
switchMap((startKey) =>
|
||||
api.rpc.childstate.getKeysPaged(childKey, '0x', PAGE_SIZE_K, startKey)
|
||||
),
|
||||
tap((keys): void => {
|
||||
setTimeout((): void => {
|
||||
keys.length === PAGE_SIZE_K
|
||||
? startSubject.next(keys[PAGE_SIZE_K - 1].toHex())
|
||||
: startSubject.complete();
|
||||
? subject.next(keys[PAGE_SIZE_K - 1].toHex())
|
||||
: subject.complete();
|
||||
}, 0);
|
||||
}),
|
||||
toArray(), // toArray since we want to startSubject to be completed
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import type { AnyFunction } from '@polkadot/types/types';
|
||||
|
||||
import * as accounts from './accounts';
|
||||
import * as bagsList from './bagsList';
|
||||
import * as balances from './balances';
|
||||
import * as bounties from './bounties';
|
||||
import * as chain from './chain';
|
||||
@@ -22,7 +23,7 @@ import * as technicalCommittee from './technicalCommittee';
|
||||
import * as treasury from './treasury';
|
||||
import * as tx from './tx';
|
||||
|
||||
export const derive = { accounts, balances, bounties, chain, contracts, council, crowdloan, democracy, elections, imOnline, membership, parachains, session, society, staking, technicalCommittee, treasury, tx };
|
||||
export const derive = { accounts, bagsList, balances, bounties, chain, contracts, council, crowdloan, democracy, elections, imOnline, membership, parachains, session, society, staking, technicalCommittee, treasury, tx };
|
||||
|
||||
type DeriveSection<Section> = {
|
||||
[M in keyof Section]: Section[M] extends AnyFunction
|
||||
|
||||
@@ -47,7 +47,6 @@ describe('derive', (): void => {
|
||||
testFunction(api)('accounts', 'indexToId', []);
|
||||
|
||||
testFunction(api)('balances', 'all', []);
|
||||
testFunction(api)('balances', 'fees', []);
|
||||
testFunction(api)('balances', 'votingBalance', []);
|
||||
testFunction(api)('balances', 'votingBalances', []);
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -23,17 +23,17 @@ const ERA_CHUNK_SIZE = 14;
|
||||
function chunkEras <T> (eras: EraIndex[], fn: (eras: EraIndex[]) => Observable<T[]>): Observable<T[]> {
|
||||
const chunked = arrayChunk(eras, ERA_CHUNK_SIZE);
|
||||
let index = 0;
|
||||
const startSubject = new BehaviorSubject<EraIndex[]>(chunked[index]);
|
||||
const subject = new BehaviorSubject<EraIndex[]>(chunked[index]);
|
||||
|
||||
return startSubject.pipe(
|
||||
return subject.pipe(
|
||||
switchMap(fn),
|
||||
tap((): void => {
|
||||
setTimeout((): void => {
|
||||
index++;
|
||||
|
||||
index === chunked.length
|
||||
? startSubject.complete()
|
||||
: startSubject.next(chunked[index]);
|
||||
? subject.complete()
|
||||
: subject.next(chunked[index]);
|
||||
}, 0);
|
||||
}),
|
||||
toArray(),
|
||||
|
||||
@@ -10,6 +10,7 @@ import type { ExactDerive } from './derive';
|
||||
|
||||
export * from './accounts/types';
|
||||
export * from './balances/types';
|
||||
export * from './bagsList/types';
|
||||
export * from './council/types';
|
||||
export * from './crowdloan/types';
|
||||
export * from './democracy/types';
|
||||
|
||||
+18
-18
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/api-base": "7.14.2",
|
||||
"@polkadot/api-derive": "7.14.2",
|
||||
"@polkadot/keyring": "^8.7.1",
|
||||
"@polkadot/rpc-augment": "7.14.2",
|
||||
"@polkadot/rpc-core": "7.14.2",
|
||||
"@polkadot/rpc-provider": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-augment": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/types-create": "7.14.2",
|
||||
"@polkadot/types-known": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@polkadot/util-crypto": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/api-base": "8.2.1",
|
||||
"@polkadot/api-derive": "8.2.1",
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/rpc-augment": "8.2.1",
|
||||
"@polkadot/rpc-core": "8.2.1",
|
||||
"@polkadot/rpc-provider": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-augment": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/types-create": "8.2.1",
|
||||
"@polkadot/types-known": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/types-support": "7.14.2"
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/types-support": "8.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,18 +199,23 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
return this._rpcCore.provider.hasSubscriptions || !!this._rpcCore.state.queryStorageAt;
|
||||
}
|
||||
|
||||
protected _emptyDecorated (registry: Registry, blockHash?: Uint8Array): ApiDecoration<ApiType> {
|
||||
return {
|
||||
consts: {},
|
||||
errors: {},
|
||||
events: {},
|
||||
query: {},
|
||||
registry,
|
||||
rx: {
|
||||
query: {}
|
||||
},
|
||||
tx: createSubmittable(this._type, this._rx, this._decorateMethod, registry, blockHash)
|
||||
} as ApiDecoration<ApiType>;
|
||||
}
|
||||
|
||||
protected _createDecorated (registry: VersionedRegistry<ApiType>, fromEmpty: boolean, decoratedApi: ApiDecoration<ApiType> | null, blockHash?: Uint8Array): FullDecoration<ApiType> {
|
||||
if (!decoratedApi) {
|
||||
decoratedApi = {
|
||||
consts: {},
|
||||
errors: {},
|
||||
events: {},
|
||||
query: {},
|
||||
registry: registry.registry,
|
||||
rx: {
|
||||
query: {}
|
||||
}
|
||||
} as ApiDecoration<ApiType>;
|
||||
decoratedApi = this._emptyDecorated(registry.registry, blockHash);
|
||||
}
|
||||
|
||||
if (fromEmpty || !registry.decoratedMeta) {
|
||||
@@ -243,16 +248,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
protected _injectMetadata (registry: VersionedRegistry<ApiType>, fromEmpty = false): void {
|
||||
// clear the decoration, we are redoing it here
|
||||
if (fromEmpty || !registry.decoratedApi) {
|
||||
registry.decoratedApi = {
|
||||
consts: {},
|
||||
errors: {},
|
||||
events: {},
|
||||
query: {},
|
||||
registry: registry.registry,
|
||||
rx: {
|
||||
query: {}
|
||||
}
|
||||
} as ApiDecoration<ApiType>;
|
||||
registry.decoratedApi = this._emptyDecorated(registry.registry);
|
||||
}
|
||||
|
||||
const { decoratedApi, decoratedMeta } = this._createDecorated(registry, fromEmpty, registry.decoratedApi);
|
||||
@@ -543,7 +539,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
decorated.entriesPaged = decorateMethod(
|
||||
memo(this.#instanceId, (opts: PaginationOptions): Observable<[StorageKey, Codec][]> =>
|
||||
this._retrieveMapEntriesPaged(creator, opts)));
|
||||
this._retrieveMapEntriesPaged(creator, undefined, opts)));
|
||||
|
||||
decorated.keys = decorateMethod(
|
||||
memo(this.#instanceId, (...args: unknown[]): Observable<StorageKey[]> =>
|
||||
@@ -556,7 +552,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
decorated.keysPaged = decorateMethod(
|
||||
memo(this.#instanceId, (opts: PaginationOptions): Observable<StorageKey[]> =>
|
||||
this._retrieveMapKeysPaged(creator, opts)));
|
||||
this._retrieveMapKeysPaged(creator, undefined, opts)));
|
||||
}
|
||||
|
||||
if (this.supportMulti && creator.meta.type.isMap) {
|
||||
@@ -610,9 +606,17 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
memo(this.#instanceId, (...args: unknown[]): Observable<[StorageKey, Codec][]> =>
|
||||
this._retrieveMapEntries(creator, blockHash, args)));
|
||||
|
||||
decorated.entriesPaged = decorateMethod(
|
||||
memo(this.#instanceId, (opts: PaginationOptions): Observable<[StorageKey, Codec][]> =>
|
||||
this._retrieveMapEntriesPaged(creator, blockHash, opts)));
|
||||
|
||||
decorated.keys = decorateMethod(
|
||||
memo(this.#instanceId, (...args: unknown[]): Observable<StorageKey[]> =>
|
||||
this._retrieveMapKeys(creator, blockHash, args)));
|
||||
|
||||
decorated.keysPaged = decorateMethod(
|
||||
memo(this.#instanceId, (opts: PaginationOptions): Observable<StorageKey[]> =>
|
||||
this._retrieveMapKeysPaged(creator, blockHash, opts)));
|
||||
}
|
||||
|
||||
if (this.supportMulti && creator.meta.type.isMap) {
|
||||
@@ -683,13 +687,13 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
const headKey = iterKey(...args).toHex();
|
||||
const startSubject = new BehaviorSubject<string>(headKey);
|
||||
const queryCall = at
|
||||
const getKeysPaged = at
|
||||
? (startKey: string) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey, at)
|
||||
: (startKey: string) => this._rpcCore.state.getKeysPaged(headKey, PAGE_SIZE_K, startKey);
|
||||
const setMeta = (key: StorageKey) => key.setMeta(meta, section, method);
|
||||
|
||||
return startSubject.pipe(
|
||||
switchMap(queryCall),
|
||||
switchMap(getKeysPaged),
|
||||
map((keys) => keys.map(setMeta)),
|
||||
tap((keys): void => {
|
||||
setTimeout((): void => {
|
||||
@@ -703,26 +707,28 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
);
|
||||
}
|
||||
|
||||
private _retrieveMapKeysPaged ({ iterKey, meta, method, section }: StorageEntry, opts: PaginationOptions): Observable<StorageKey[]> {
|
||||
private _retrieveMapKeysPaged ({ iterKey, meta, method, section }: StorageEntry, at: Hash | Uint8Array | string | undefined, opts: PaginationOptions): Observable<StorageKey[]> {
|
||||
assert(iterKey && meta.type.isMap, 'keys can only be retrieved on maps');
|
||||
|
||||
const headKey = iterKey(...opts.args).toHex();
|
||||
const setMeta = (key: StorageKey) => key.setMeta(meta, section, method);
|
||||
const getKeysPaged = at
|
||||
? (headKey: string) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey, at)
|
||||
: (headKey: string) => this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey);
|
||||
|
||||
return this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey).pipe(
|
||||
return getKeysPaged(iterKey(...opts.args).toHex()).pipe(
|
||||
map((keys) => keys.map(setMeta))
|
||||
);
|
||||
}
|
||||
|
||||
private _retrieveMapEntries (entry: StorageEntry, at: Hash | Uint8Array | string | null, args: unknown[]): Observable<[StorageKey, Codec][]> {
|
||||
const query = at
|
||||
? (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt(keyset, at)
|
||||
: (keyset: StorageKey[]) => this._rpcCore.state.queryStorageAt(keyset);
|
||||
const queryStorageAt = at
|
||||
? (keys: StorageKey[]) => this._rpcCore.state.queryStorageAt(keys, at)
|
||||
: (keys: StorageKey[]) => this._rpcCore.state.queryStorageAt(keys);
|
||||
|
||||
return this._retrieveMapKeys(entry, at, args).pipe(
|
||||
switchMap((keys) =>
|
||||
keys.length
|
||||
? combineLatest(arrayChunk(keys, PAGE_SIZE_V).map(query)).pipe(
|
||||
? combineLatest(arrayChunk(keys, PAGE_SIZE_V).map(queryStorageAt)).pipe(
|
||||
map((valsArr) =>
|
||||
arrayFlatten(valsArr).map((value, index): [StorageKey, Codec] => [keys[index], value])
|
||||
)
|
||||
@@ -732,11 +738,15 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
);
|
||||
}
|
||||
|
||||
private _retrieveMapEntriesPaged (entry: StorageEntry, opts: PaginationOptions): Observable<[StorageKey, Codec][]> {
|
||||
return this._retrieveMapKeysPaged(entry, opts).pipe(
|
||||
private _retrieveMapEntriesPaged (entry: StorageEntry, at: Hash | Uint8Array | string | undefined, opts: PaginationOptions): Observable<[StorageKey, Codec][]> {
|
||||
const queryStorageAt = at
|
||||
? (keys: StorageKey[]) => this._rpcCore.state.queryStorageAt(keys, at)
|
||||
: (keys: StorageKey[]) => this._rpcCore.state.queryStorageAt(keys);
|
||||
|
||||
return this._retrieveMapKeysPaged(entry, at, opts).pipe(
|
||||
switchMap((keys) =>
|
||||
keys.length
|
||||
? this._rpcCore.state.queryStorageAt(keys).pipe(
|
||||
? queryStorageAt(keys).pipe(
|
||||
map((valsArr) =>
|
||||
valsArr.map((value, index): [StorageKey, Codec] => [keys[index], value])
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { Observable, Subscription } from 'rxjs';
|
||||
import type { Text } from '@polkadot/types';
|
||||
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
|
||||
import type { ChainProperties, Hash, RuntimeVersion, RuntimeVersionPartial } from '@polkadot/types/interfaces';
|
||||
import type { ChainProperties, Hash, HeaderPartial, RuntimeVersion, RuntimeVersionPartial } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
@@ -35,7 +35,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
|
||||
#updateSub?: Subscription | null = null;
|
||||
|
||||
#waitingRegistries: Record<string, Promise<VersionedRegistry<ApiType>>> = {};
|
||||
#waitingRegistries: Record<HexString, Promise<VersionedRegistry<ApiType>>> = {};
|
||||
|
||||
constructor (options: ApiOptions, type: ApiTypes, decorateMethod: DecorateMethod<ApiType>) {
|
||||
super(options, type, decorateMethod);
|
||||
@@ -120,6 +120,44 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
return this._createDecorated(registry, true, null, u8aHash).decoratedApi;
|
||||
}
|
||||
|
||||
private async _createBlockRegistry (blockHash: Uint8Array, header: HeaderPartial, version: RuntimeVersionPartial): Promise<VersionedRegistry<ApiType>> {
|
||||
const registry = new TypeRegistry(blockHash);
|
||||
const metadata = new Metadata(registry,
|
||||
await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(header.parentHash))
|
||||
);
|
||||
|
||||
this._initRegistry(registry, this._runtimeChain as Text, version, metadata);
|
||||
|
||||
// add our new registry
|
||||
const result = { lastBlockHash: blockHash, metadata, registry, specName: version.specName, specVersion: version.specVersion };
|
||||
|
||||
this.#registries.push(result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private _cacheBlockRegistryProgress (key: HexString, creator: () => Promise<VersionedRegistry<ApiType>>): Promise<VersionedRegistry<ApiType>> {
|
||||
// look for waiting resolves
|
||||
let waiting = this.#waitingRegistries[key];
|
||||
|
||||
if (isUndefined(waiting)) {
|
||||
// nothing waiting, construct new
|
||||
waiting = this.#waitingRegistries[key] = new Promise<VersionedRegistry<ApiType>>((resolve, reject): void => {
|
||||
creator()
|
||||
.then((registry): void => {
|
||||
delete this.#waitingRegistries[key];
|
||||
resolve(registry);
|
||||
})
|
||||
.catch((error): void => {
|
||||
delete this.#waitingRegistries[key];
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return waiting;
|
||||
}
|
||||
|
||||
private _getBlockRegistryViaVersion (blockHash: Uint8Array, version?: RuntimeVersionPartial): VersionedRegistry<ApiType> | null {
|
||||
if (version) {
|
||||
// check for pre-existing registries. We also check specName, e.g. it
|
||||
@@ -139,7 +177,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
return null;
|
||||
}
|
||||
|
||||
private async _getBlockRegistry (blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>> {
|
||||
private async _getBlockRegistryViaHash (blockHash: Uint8Array): Promise<VersionedRegistry<ApiType>> {
|
||||
// ensure we have everything required
|
||||
assert(this._genesisHash && this._runtimeVersion, 'Cannot retrieve data on an uninitialized chain');
|
||||
|
||||
@@ -161,62 +199,28 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
: await firstValueFrom(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))
|
||||
);
|
||||
|
||||
const existingViaVersion = this._getBlockRegistryViaVersion(blockHash, version);
|
||||
|
||||
if (existingViaVersion) {
|
||||
return existingViaVersion;
|
||||
}
|
||||
|
||||
// nothing has been found, construct new
|
||||
const registry = new TypeRegistry(blockHash);
|
||||
const metadata = new Metadata(registry,
|
||||
await firstValueFrom(this._rpcCore.state.getMetadata.raw<HexString>(header.parentHash))
|
||||
return (
|
||||
// try to find via version
|
||||
this._getBlockRegistryViaVersion(blockHash, version) ||
|
||||
// return new or in-flight result
|
||||
await this._cacheBlockRegistryProgress(version.toHex(), () => this._createBlockRegistry(blockHash, header, version))
|
||||
);
|
||||
|
||||
this._initRegistry(registry, this._runtimeChain as Text, version, metadata);
|
||||
|
||||
// add our new registry
|
||||
const result = { lastBlockHash: blockHash, metadata, registry, specName: version.specName, specVersion: version.specVersion };
|
||||
|
||||
this.#registries.push(result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Sets up a registry based on the block hash defined
|
||||
*/
|
||||
public async getBlockRegistry (blockHash: Uint8Array, knownVersion?: RuntimeVersion): Promise<VersionedRegistry<ApiType>> {
|
||||
const existingViaHash = this.#registries.find(({ lastBlockHash }) =>
|
||||
lastBlockHash && u8aEq(lastBlockHash, blockHash)
|
||||
return (
|
||||
// try to find via blockHash
|
||||
this.#registries.find(({ lastBlockHash }) =>
|
||||
lastBlockHash && u8aEq(lastBlockHash, blockHash)
|
||||
) ||
|
||||
// try to find via version
|
||||
this._getBlockRegistryViaVersion(blockHash, knownVersion) ||
|
||||
// return new or in-flight result
|
||||
await this._cacheBlockRegistryProgress(u8aToHex(blockHash), () => this._getBlockRegistryViaHash(blockHash))
|
||||
);
|
||||
|
||||
if (existingViaHash) {
|
||||
return existingViaHash;
|
||||
}
|
||||
|
||||
const existingViaVersion = this._getBlockRegistryViaVersion(blockHash, knownVersion);
|
||||
|
||||
if (existingViaVersion) {
|
||||
return existingViaVersion;
|
||||
}
|
||||
|
||||
const blockHashHex = u8aToHex(blockHash);
|
||||
let waiting = this.#waitingRegistries[blockHashHex];
|
||||
|
||||
if (isUndefined(waiting)) {
|
||||
waiting = this._getBlockRegistry(blockHash);
|
||||
this.#waitingRegistries[blockHashHex] = waiting;
|
||||
|
||||
// when we have resolved, remove this from the waiting list
|
||||
waiting
|
||||
.then((): void => {
|
||||
delete this.#waitingRegistries[blockHashHex];
|
||||
})
|
||||
.catch(() => undefined);
|
||||
}
|
||||
|
||||
return waiting;
|
||||
}
|
||||
|
||||
protected async _loadMeta (): Promise<boolean> {
|
||||
@@ -387,12 +391,10 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
this.emit('connected');
|
||||
|
||||
try {
|
||||
const [hasMeta, cryptoReady] = await Promise.all([
|
||||
this._loadMeta(),
|
||||
this._options.initWasm === false
|
||||
? Promise.resolve(true)
|
||||
: cryptoWaitReady()
|
||||
]);
|
||||
const cryptoReady = this._options.initWasm === false
|
||||
? true
|
||||
: await cryptoWaitReady();
|
||||
const hasMeta = await this._loadMeta();
|
||||
|
||||
this._subscribeHealth();
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@ async function derive (api: ApiPromise): Promise<void> {
|
||||
console.log('current author:', header.author);
|
||||
});
|
||||
|
||||
const fees = await api.derive.balances.fees();
|
||||
const info = await api.derive.balances.account('0x1234');
|
||||
|
||||
console.log('fees', fees);
|
||||
console.log('info', info);
|
||||
}
|
||||
|
||||
function errors (api: ApiPromise): void {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -21,6 +21,7 @@ import { SubmittableResult } from './Result';
|
||||
interface SubmittableOptions<ApiType extends ApiTypes> {
|
||||
api: ApiInterfaceRx;
|
||||
apiType: ApiTypes;
|
||||
blockHash?: Uint8Array;
|
||||
decorateMethod: ApiBase<ApiType>['_decorateMethod'];
|
||||
}
|
||||
|
||||
@@ -80,7 +81,7 @@ function optionsOrNonce (partialOptions: Partial<SignerOptions> = {}): Partial<S
|
||||
: partialOptions;
|
||||
}
|
||||
|
||||
export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorateMethod }: SubmittableOptions<ApiType>): Constructor<SubmittableExtrinsic<ApiType>> {
|
||||
export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHash, decorateMethod }: SubmittableOptions<ApiType>): Constructor<SubmittableExtrinsic<ApiType>> {
|
||||
// an instance of the base extrinsic for us to extend
|
||||
const ExtrinsicBase = api.registry.createClass('Extrinsic');
|
||||
|
||||
@@ -97,10 +98,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
||||
|
||||
// dry run an extrinsic
|
||||
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
||||
if (isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return decorateMethod(
|
||||
() => api.rpc.system.dryRun(this.toHex(), optionsOrHash)
|
||||
() => api.rpc.system.dryRun(this.toHex(), blockHash || optionsOrHash as string)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -115,10 +116,17 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
||||
|
||||
// calculate the payment info for this transaction (if signed and submitted)
|
||||
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
||||
if (isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return decorateMethod(
|
||||
(): Observable<RuntimeDispatchInfo> => api.rpc.payment.queryInfo(this.toHex(), optionsOrHash)
|
||||
(): Observable<RuntimeDispatchInfo> =>
|
||||
api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
|
||||
);
|
||||
} else if (this.isSigned) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return,@typescript-eslint/no-unsafe-call
|
||||
return decorateMethod(
|
||||
(): Observable<RuntimeDispatchInfo> =>
|
||||
api.rpc.payment.queryInfo(this.toHex())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Call, Extrinsic } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { ApiInterfaceRx, ApiTypes } from '../types';
|
||||
import type { SubmittableExtrinsic } from './types';
|
||||
|
||||
@@ -10,9 +11,9 @@ import { createClass } from './createClass';
|
||||
|
||||
type Creator<ApiType extends ApiTypes> = (extrinsic: Call | Uint8Array | string) => SubmittableExtrinsic<ApiType>;
|
||||
|
||||
export function createSubmittable<ApiType extends ApiTypes> (apiType: ApiTypes, api: ApiInterfaceRx, decorateMethod: ApiBase<ApiType>['_decorateMethod']): Creator<ApiType> {
|
||||
const Submittable = createClass<ApiType>({ api, apiType, decorateMethod });
|
||||
export function createSubmittable<ApiType extends ApiTypes> (apiType: ApiTypes, api: ApiInterfaceRx, decorateMethod: ApiBase<ApiType>['_decorateMethod'], registry?: Registry, blockHash?: Uint8Array): Creator<ApiType> {
|
||||
const Submittable = createClass<ApiType>({ api, apiType, blockHash, decorateMethod });
|
||||
|
||||
return (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType> =>
|
||||
new Submittable(api.registry, extrinsic);
|
||||
new Submittable(registry || api.registry, extrinsic);
|
||||
}
|
||||
|
||||
@@ -9,11 +9,12 @@ import type { DecoratedEvents } from '@polkadot/api-base/types/events';
|
||||
import type { QueryableStorage } from '@polkadot/api-base/types/storage';
|
||||
import type { ProviderInterface, ProviderInterfaceEmitted } from '@polkadot/rpc-provider/types';
|
||||
import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types';
|
||||
import type { Hash } from '@polkadot/types/interfaces';
|
||||
import type { Call, Extrinsic, Hash } from '@polkadot/types/interfaces';
|
||||
import type { CallFunction, DefinitionRpc, DefinitionRpcSub, RegisteredTypes, Registry, RegistryError, SignatureOptions, Signer } from '@polkadot/types/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ApiBase } from '../base';
|
||||
import type { SubmittableExtrinsic } from '../types/submittable';
|
||||
import type { AllDerives } from '../util/decorate';
|
||||
|
||||
export * from '@polkadot/api-base/types';
|
||||
@@ -96,7 +97,8 @@ export interface ApiDecoration<ApiType extends ApiTypes> {
|
||||
registry: Registry;
|
||||
rx: {
|
||||
query: QueryableStorage<'rxjs'>;
|
||||
}
|
||||
};
|
||||
tx: (extrinsic: Call | Extrinsic | Uint8Array | string) => SubmittableExtrinsic<ApiType>;
|
||||
|
||||
findCall (callIndex: Uint8Array | string): CallFunction;
|
||||
findError (errorIndex: Uint8Array | string): RegistryError;
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/rpc-core": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-core": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/rpc-augment": "7.14.2",
|
||||
"@polkadot/rpc-provider": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-augment": "8.2.1",
|
||||
"@polkadot/rpc-provider": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^8.7.1",
|
||||
"@polkadot/rpc-augment": "7.14.2"
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/rpc-augment": "8.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -44,18 +44,18 @@ console.log('latest block Hash', hash);
|
||||
|
||||
Instantiating a Provider for the Polkadot Relay Chain:
|
||||
```javascript
|
||||
import { ScProvider } from '@polkadot/rpc-provider';
|
||||
import { ScProvider, WellKnownChain } from '@polkadot/rpc-provider/substrate-connect';
|
||||
|
||||
const provider = new ScProvider(SupportedChains.polkadot);
|
||||
const provider = new ScProvider(WellKnownChain.polkadot);
|
||||
await provider.connect();
|
||||
const version = await provider.send('chain_getBlockHash', []);
|
||||
```
|
||||
|
||||
Instantiating a Provider for a Polkadot parachain:
|
||||
Instantiating a Provider for a Polkadot parachain:
|
||||
```javascript
|
||||
import { ScProvider } from '@polkadot/rpc-provider';
|
||||
import { ScProvider, WellKnownChain } from '@polkadot/rpc-provider/substrate-connect';
|
||||
|
||||
const polkadotProvider = new ScProvider(SupportedChains.polkadot);
|
||||
const polkadotProvider = new ScProvider(WellKnownChain.polkadot);
|
||||
const parachainProvider = new ScProvider(parachainSpec, polkadotProvider);
|
||||
await parachainProvider.connect();
|
||||
const version = await parachainProvider.send('chain_getBlockHash', []);
|
||||
|
||||
@@ -20,21 +20,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/keyring": "^8.7.1",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-support": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@polkadot/util-crypto": "^8.7.1",
|
||||
"@polkadot/x-fetch": "^8.7.1",
|
||||
"@polkadot/x-global": "^8.7.1",
|
||||
"@polkadot/x-ws": "^8.7.1",
|
||||
"@substrate/connect": "0.7.0-alpha.0",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-support": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/x-fetch": "^9.0.1",
|
||||
"@polkadot/x-global": "^9.0.1",
|
||||
"@polkadot/x-ws": "^9.0.1",
|
||||
"@substrate/connect": "0.7.2",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"mock-socket": "^9.1.2",
|
||||
"mock-socket": "^9.1.3",
|
||||
"nock": "^13.2.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ describe('decodeResponse', (): void => {
|
||||
it('expects a non-empty input object', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse(undefined as unknown as JsonRpcResponse)
|
||||
).toThrow(/Empty response/);
|
||||
).toThrow(/Invalid jsonrpc/);
|
||||
});
|
||||
|
||||
it('expects a valid jsonrpc field', (): void => {
|
||||
|
||||
@@ -13,6 +13,6 @@ describe('encodeJson', (): void => {
|
||||
it('encodes a valid JsonRPC JSON string', (): void => {
|
||||
expect(
|
||||
coder.encodeJson('method', ['params'])
|
||||
).toEqual('{"id":1,"jsonrpc":"2.0","method":"method","params":["params"]}');
|
||||
).toEqual([1, '{"id":1,"jsonrpc":"2.0","method":"method","params":["params"]}']);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,19 +10,14 @@ describe('encodeObject', (): void => {
|
||||
coder = new RpcCoder();
|
||||
});
|
||||
|
||||
it('starts with id === 0 (nothing sent)', (): void => {
|
||||
expect(coder.getId()).toEqual(0);
|
||||
});
|
||||
|
||||
it('encodes a valid JsonRPC object', (): void => {
|
||||
expect(
|
||||
coder.encodeObject('method', ['a', 'b'])
|
||||
).toEqual({
|
||||
).toEqual([1, {
|
||||
id: 1,
|
||||
jsonrpc: '2.0',
|
||||
method: 'method',
|
||||
params: ['a', 'b']
|
||||
});
|
||||
expect(coder.getId()).toEqual(1);
|
||||
}]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -20,27 +20,34 @@ function formatErrorData (data?: string | number): string {
|
||||
// very nested, pick a number and trim the result display to it
|
||||
return formatted.length <= 256
|
||||
? formatted
|
||||
: `${formatted.substr(0, 255)}…`;
|
||||
: `${formatted.substring(0, 255)}…`;
|
||||
}
|
||||
|
||||
function checkError (error?: JsonRpcResponseBaseError): void {
|
||||
if (error) {
|
||||
const { code, data, message } = error;
|
||||
|
||||
throw new RpcError(`${code}: ${message}${formatErrorData(data)}`, code, data);
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export class RpcCoder {
|
||||
#id = 0;
|
||||
|
||||
public decodeResponse (response: JsonRpcResponse): unknown {
|
||||
assert(response, 'Empty response object received');
|
||||
assert(response.jsonrpc === '2.0', 'Invalid jsonrpc field in decoded object');
|
||||
public decodeResponse (response?: JsonRpcResponse): unknown {
|
||||
assert(response && response.jsonrpc === '2.0', 'Invalid jsonrpc field in decoded object');
|
||||
|
||||
const isSubscription = !isUndefined(response.params) && !isUndefined(response.method);
|
||||
|
||||
assert(isNumber(response.id) || (isSubscription && (isNumber(response.params.subscription) || isString(response.params.subscription))), 'Invalid id field in decoded object');
|
||||
|
||||
this._checkError(response.error);
|
||||
checkError(response.error);
|
||||
|
||||
assert(!isUndefined(response.result) || isSubscription, 'No result found in JsonRpc response');
|
||||
assert(!isUndefined(response.result) || isSubscription, 'No result found in jsonrpc response');
|
||||
|
||||
if (isSubscription) {
|
||||
this._checkError(response.params.error);
|
||||
checkError(response.params.error);
|
||||
|
||||
return response.params.result;
|
||||
}
|
||||
@@ -48,31 +55,20 @@ export class RpcCoder {
|
||||
return response.result;
|
||||
}
|
||||
|
||||
public encodeJson (method: string, params: unknown[]): string {
|
||||
return stringify(
|
||||
this.encodeObject(method, params)
|
||||
);
|
||||
public encodeJson (method: string, params: unknown[]): [number, string] {
|
||||
const [id, data] = this.encodeObject(method, params);
|
||||
|
||||
return [id, stringify(data)];
|
||||
}
|
||||
|
||||
public encodeObject (method: string, params: unknown[]): JsonRpcRequest {
|
||||
return {
|
||||
id: ++this.#id,
|
||||
public encodeObject (method: string, params: unknown[]): [number, JsonRpcRequest] {
|
||||
const id = ++this.#id;
|
||||
|
||||
return [id, {
|
||||
id,
|
||||
jsonrpc: '2.0',
|
||||
method,
|
||||
params
|
||||
};
|
||||
}
|
||||
|
||||
public getId (): number {
|
||||
return this.#id;
|
||||
}
|
||||
|
||||
private _checkError (error?: JsonRpcResponseBaseError): void {
|
||||
if (error) {
|
||||
const { code, data, message } = error;
|
||||
const fmtMessage = `${code}: ${message}${formatErrorData(data)}`;
|
||||
|
||||
throw new RpcError(fmtMessage, code, data);
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ export class HttpProvider implements ProviderInterface {
|
||||
public async send <T> (method: string, params: unknown[], isCacheable?: boolean): Promise<T> {
|
||||
this.#stats.total.requests++;
|
||||
|
||||
const body = this.#coder.encodeJson(method, params);
|
||||
const [, body] = this.#coder.encodeJson(method, params);
|
||||
let resultPromise: Promise<T> | null = isCacheable
|
||||
? this.#callCache.get(body) as Promise<T>
|
||||
: null;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -34,6 +34,7 @@ const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
||||
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||
|
||||
export { WellKnownChain };
|
||||
export class ScProvider implements ProviderInterface {
|
||||
readonly #coder: RpcCoder = new RpcCoder();
|
||||
readonly #spec: string | WellKnownChain;
|
||||
@@ -150,14 +151,19 @@ export class ScProvider implements ProviderInterface {
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const { id, unsubscribeMethod } = staleSubscriptions.pop()!;
|
||||
const stale = staleSubscriptions.pop();
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
Promise.race([
|
||||
this.send(unsubscribeMethod, [id]).catch(Function.prototype as () => void),
|
||||
new Promise((resolve) => setTimeout(resolve, 500))
|
||||
]).then(killStaleSubscriptions);
|
||||
assert(stale, 'Unable to get stale subscription');
|
||||
|
||||
const { id, unsubscribeMethod } = stale;
|
||||
|
||||
Promise
|
||||
.race([
|
||||
this.send(unsubscribeMethod, [id]).catch(() => undefined),
|
||||
new Promise((resolve) => setTimeout(resolve, 500))
|
||||
])
|
||||
.then(killStaleSubscriptions)
|
||||
.catch(() => undefined);
|
||||
};
|
||||
|
||||
hc.start((health) => {
|
||||
@@ -255,12 +261,10 @@ export class ScProvider implements ProviderInterface {
|
||||
}
|
||||
|
||||
public async send<T = any> (method: string, params: unknown[]): Promise<T> {
|
||||
assert(this.isConnected, 'Provider is not connected');
|
||||
assert(this.isConnected && this.#chain, 'Provider is not connected');
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const chain = await this.#chain!;
|
||||
const json = this.#coder.encodeJson(method, params);
|
||||
const id = this.#coder.getId();
|
||||
const chain = await this.#chain;
|
||||
const [id, json] = this.#coder.encodeJson(method, params);
|
||||
|
||||
const result = new Promise<T>((resolve, reject): void => {
|
||||
this.#requests.set(id, (response) => {
|
||||
@@ -311,8 +315,9 @@ export class ScProvider implements ProviderInterface {
|
||||
}
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method)!;
|
||||
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method);
|
||||
|
||||
assert(unsubscribeMethod, 'Invalid unsubscribe method found');
|
||||
|
||||
this.#subscriptions.set(subscriptionId, [cb, { id, unsubscribeMethod }]);
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ const TEST_WS_URL = 'ws://localhost-index.spec.ts:9977';
|
||||
let provider: WsProvider | null;
|
||||
let mock: Mock;
|
||||
|
||||
function createWs (requests: Request[], autoConnect = 1000, headers?: Record<string, string>): WsProvider {
|
||||
function createWs (requests: Request[], autoConnect = 1000, headers?: Record<string, string>, timeout?: number): WsProvider {
|
||||
mock = mockWs(requests, TEST_WS_URL);
|
||||
provider = new WsProvider(TEST_WS_URL, autoConnect, headers);
|
||||
provider = new WsProvider(TEST_WS_URL, autoConnect, headers, timeout);
|
||||
|
||||
return provider;
|
||||
}
|
||||
@@ -40,6 +40,13 @@ describe('Ws', (): void => {
|
||||
it('allows you to initialize the provider with custom headers', () => {
|
||||
createWs([], 100, { foo: 'bar' });
|
||||
});
|
||||
|
||||
it('allows you to set custom timeout value for handlers', () => {
|
||||
const CUSTOM_TIMEOUT_S = 90;
|
||||
const CUSTOM_TIMEOUT_MS = CUSTOM_TIMEOUT_S * 1000;
|
||||
|
||||
createWs([], 100, { foo: 'bar' }, CUSTOM_TIMEOUT_MS);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Endpoint Parsing', (): void => {
|
||||
|
||||
@@ -42,8 +42,7 @@ const ALIASES: { [index: string]: string } = {
|
||||
|
||||
const RETRY_DELAY = 2_500;
|
||||
|
||||
const TIMEOUT_S = 30;
|
||||
const TIMEOUT_MS = TIMEOUT_S * 1000;
|
||||
const DEFAULT_TIMEOUT_MS = 60 * 1000;
|
||||
const TIMEOUT_INTERVAL = 5_000;
|
||||
|
||||
const MEGABYTE = 1024 * 1024;
|
||||
@@ -111,11 +110,14 @@ export class WsProvider implements ProviderInterface {
|
||||
|
||||
#websocket: WebSocket | null;
|
||||
|
||||
#timeout: number;
|
||||
|
||||
/**
|
||||
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
|
||||
* @param {boolean} autoConnect Whether to connect automatically or not.
|
||||
* @param {number} [timeout] Custom timeout value
|
||||
*/
|
||||
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}) {
|
||||
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number) {
|
||||
const endpoints = Array.isArray(endpoint)
|
||||
? endpoint
|
||||
: [endpoint];
|
||||
@@ -137,6 +139,7 @@ export class WsProvider implements ProviderInterface {
|
||||
active: { requests: 0, subscriptions: 0 },
|
||||
total: { bytesRecv: 0, bytesSent: 0, cached: 0, requests: 0, subscriptions: 0, timeout: 0 }
|
||||
};
|
||||
this.#timeout = timeout || DEFAULT_TIMEOUT_MS;
|
||||
|
||||
if (autoConnectMs > 0) {
|
||||
this.connectWithRetry().catch((): void => {
|
||||
@@ -210,7 +213,7 @@ export class WsProvider implements ProviderInterface {
|
||||
this.#websocket.onopen = this.#onSocketOpen;
|
||||
|
||||
// timeout any handlers that have not had a response
|
||||
this.#timeoutId = setInterval(() => this.#timeout(), TIMEOUT_INTERVAL);
|
||||
this.#timeoutId = setInterval(() => this.#timeoutHandlers(), TIMEOUT_INTERVAL);
|
||||
} catch (error) {
|
||||
l.error(error);
|
||||
|
||||
@@ -295,13 +298,13 @@ export class WsProvider implements ProviderInterface {
|
||||
public send <T = any> (method: string, params: unknown[], isCacheable?: boolean, subscription?: SubscriptionHandler): Promise<T> {
|
||||
this.#stats.total.requests++;
|
||||
|
||||
const body = this.#coder.encodeJson(method, params);
|
||||
const [id, body] = this.#coder.encodeJson(method, params);
|
||||
let resultPromise: Promise<T> | null = isCacheable
|
||||
? this.#callCache.get(body) as Promise<T>
|
||||
: null;
|
||||
|
||||
if (!resultPromise) {
|
||||
resultPromise = this.#send(body, method, params, subscription);
|
||||
resultPromise = this.#send(id, body, method, params, subscription);
|
||||
|
||||
if (isCacheable) {
|
||||
this.#callCache.set(body, resultPromise);
|
||||
@@ -313,20 +316,18 @@ export class WsProvider implements ProviderInterface {
|
||||
return resultPromise;
|
||||
}
|
||||
|
||||
async #send <T> (json: string, method: string, params: unknown[], subscription?: SubscriptionHandler): Promise<T> {
|
||||
async #send <T> (id: number, body: string, method: string, params: unknown[], subscription?: SubscriptionHandler): Promise<T> {
|
||||
return new Promise<T>((resolve, reject): void => {
|
||||
try {
|
||||
assert(this.isConnected && !isNull(this.#websocket), 'WebSocket is not connected');
|
||||
|
||||
const id = this.#coder.getId();
|
||||
|
||||
const callback = (error?: Error | null, result?: T): void => {
|
||||
error
|
||||
? reject(error)
|
||||
: resolve(result as T);
|
||||
};
|
||||
|
||||
l.debug(() => ['calling', method, json]);
|
||||
l.debug(() => ['calling', method, body]);
|
||||
|
||||
this.#handlers[id] = {
|
||||
callback,
|
||||
@@ -335,8 +336,8 @@ export class WsProvider implements ProviderInterface {
|
||||
start: Date.now(),
|
||||
subscription
|
||||
};
|
||||
this.#stats.total.bytesSent += json.length;
|
||||
this.#websocket.send(json);
|
||||
this.#stats.total.bytesSent += body.length;
|
||||
this.#websocket.send(body);
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
@@ -559,16 +560,16 @@ export class WsProvider implements ProviderInterface {
|
||||
})).catch(l.error);
|
||||
};
|
||||
|
||||
#timeout = (): void => {
|
||||
#timeoutHandlers = (): void => {
|
||||
const now = Date.now();
|
||||
const ids = Object.keys(this.#handlers);
|
||||
|
||||
for (let i = 0; i < ids.length; i++) {
|
||||
const handler = this.#handlers[ids[i]];
|
||||
|
||||
if ((now - handler.start) > TIMEOUT_MS) {
|
||||
if ((now - handler.start) > this.#timeout) {
|
||||
try {
|
||||
handler.callback(new Error(`No response received from RPC endpoint in ${TIMEOUT_S}s`), undefined);
|
||||
handler.callback(new Error(`No response received from RPC endpoint in ${this.#timeout / 1000}s`), undefined);
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -30,23 +30,23 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.17.8",
|
||||
"@babel/core": "^7.17.9",
|
||||
"@babel/register": "^7.17.7",
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/api": "7.14.2",
|
||||
"@polkadot/api-augment": "7.14.2",
|
||||
"@polkadot/rpc-augment": "7.14.2",
|
||||
"@polkadot/rpc-provider": "7.14.2",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-augment": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/types-create": "7.14.2",
|
||||
"@polkadot/types-support": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1",
|
||||
"@polkadot/x-ws": "^8.7.1",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.2.1",
|
||||
"@polkadot/api-augment": "8.2.1",
|
||||
"@polkadot/rpc-augment": "8.2.1",
|
||||
"@polkadot/rpc-provider": "8.2.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-augment": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/types-create": "8.2.1",
|
||||
"@polkadot/types-support": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/x-ws": "^9.0.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.4.0"
|
||||
"yargs": "^17.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = function (file) {
|
||||
let main;
|
||||
|
||||
try {
|
||||
main = require(`../${file}.cjs`).main;
|
||||
main = require(`../cjs/${file}.js`).main;
|
||||
} catch (error) {
|
||||
// required for dev-only setups
|
||||
process.env.JEST_WORKER_ID = '123';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -8,26 +8,54 @@ import { getSimilarTypes } from './derived';
|
||||
describe('getSimilarTypes', (): void => {
|
||||
let registry: TypeRegistry;
|
||||
|
||||
const mockImports = {
|
||||
codecTypes: {},
|
||||
definitions: {},
|
||||
extrinsicTypes: {},
|
||||
genericTypes: {},
|
||||
ignoredTypes: [],
|
||||
localTypes: {},
|
||||
lookupTypes: {},
|
||||
metadataTypes: {},
|
||||
primitiveTypes: {},
|
||||
typeToModule: {},
|
||||
typesTypes: {}
|
||||
};
|
||||
|
||||
beforeAll((): void => {
|
||||
registry = new TypeRegistry();
|
||||
});
|
||||
|
||||
it('handles nested Tuples', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, '(AccountId, (Balance, u32), u64)', {
|
||||
codecTypes: {},
|
||||
definitions: {},
|
||||
extrinsicTypes: {},
|
||||
genericTypes: {},
|
||||
ignoredTypes: [],
|
||||
localTypes: {},
|
||||
lookupTypes: {},
|
||||
metadataTypes: {},
|
||||
primitiveTypes: {},
|
||||
typeToModule: {},
|
||||
typesTypes: {}
|
||||
})).toEqual([
|
||||
expect(getSimilarTypes(registry, {}, '(AccountId, (Balance, u32), u64)', mockImports)).toEqual([
|
||||
'ITuple<[AccountId, ITuple<[Balance, u32]>, u64]>',
|
||||
'[AccountId | string | Uint8Array, ITuple<[Balance, u32]> | [Balance | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], u64 | AnyNumber | Uint8Array]'
|
||||
]);
|
||||
});
|
||||
|
||||
it('handles vectors of slices', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, 'Vec<[u8;4]>', mockImports)).toEqual([
|
||||
'Vec<U8aFixed>'
|
||||
]);
|
||||
expect(getSimilarTypes(registry, {}, 'Vec<[Balance;8]>', mockImports)).toEqual([
|
||||
'Vec<Vec<Balance>>'
|
||||
]);
|
||||
});
|
||||
|
||||
it('handles structs', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, '{ "a": "u8", "b": "Vec<u8>" }', mockImports)).toEqual([
|
||||
`{
|
||||
readonly a: u8;
|
||||
readonly b: Bytes;
|
||||
} & Struct`, '{ a?: any; b?: any }', 'string', 'Uint8Array'
|
||||
]);
|
||||
});
|
||||
it('handles vectors of structs', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, 'Vec<{ "a": "H256", "b": "Vec<H256>" }>', mockImports)).toEqual([
|
||||
`Vec<{
|
||||
readonly a: H256;
|
||||
readonly b: Vec<H256>;
|
||||
} & Struct>`
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -58,6 +58,10 @@ export function getSimilarTypes (registry: Registry, definitions: Record<string,
|
||||
);
|
||||
|
||||
possibleTypes.push(`([${subs.join(', ')}])[]`);
|
||||
} else if (subDef.info === TypeDefInfo.VecFixed) {
|
||||
// TODO: Add possibleTypes so imports work
|
||||
} else if (subDef.info === TypeDefInfo.Struct) {
|
||||
// TODO: Add possibleTypes so imports work
|
||||
} else {
|
||||
throw new Error(`Unhandled subtype in Vec, ${stringify(subDef)}`);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import { packageInfo } from '../packageInfo';
|
||||
|
||||
export function writeFile (dest: string, generator: () => string, noLog?: boolean): void {
|
||||
!noLog && console.log(`${dest}\n\tGenerating`);
|
||||
|
||||
@@ -21,5 +25,17 @@ export function writeFile (dest: string, generator: () => string, noLog?: boolea
|
||||
}
|
||||
|
||||
export function readTemplate (template: string): string {
|
||||
return fs.readFileSync(path.join(__dirname, `../templates/${template}.hbs`)).toString();
|
||||
// Inside the api repo itself, it will be 'auto'
|
||||
const rootDir = packageInfo.path === 'auto'
|
||||
? path.join(__dirname, '..')
|
||||
: packageInfo.path;
|
||||
|
||||
// NOTE With cjs in a subdir, search one lower as well
|
||||
const file = ['./templates', '../templates']
|
||||
.map((p) => path.join(rootDir, p, `${template}.hbs`))
|
||||
.find((p) => fs.existsSync(p));
|
||||
|
||||
assert(file, `Unable to locate ${template}.hbs from ${rootDir}`);
|
||||
|
||||
return fs.readFileSync(file).toString();
|
||||
}
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup75: kusama_runtime::ProxyType
|
||||
* Lookup79: kusama_runtime::ProxyType
|
||||
**/
|
||||
KusamaRuntimeProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||
},
|
||||
/**
|
||||
* Lookup252: kusama_runtime::SessionKeys
|
||||
* Lookup253: kusama_runtime::SessionKeys
|
||||
**/
|
||||
KusamaRuntimeSessionKeys: {
|
||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup326: kusama_runtime::OriginCaller
|
||||
* Lookup327: kusama_runtime::OriginCaller
|
||||
**/
|
||||
KusamaRuntimeOriginCaller: {
|
||||
_enum: {
|
||||
@@ -129,7 +129,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup392: kusama_runtime::NposCompactSolution24
|
||||
* Lookup393: kusama_runtime::NposCompactSolution24
|
||||
**/
|
||||
KusamaRuntimeNposCompactSolution24: {
|
||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup67: polkadot_runtime_common::claims::pallet::Event<T>
|
||||
* Lookup71: polkadot_runtime_common::claims::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -13,13 +13,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup74: polkadot_runtime::ProxyType
|
||||
* Lookup78: polkadot_runtime::ProxyType
|
||||
**/
|
||||
PolkadotRuntimeProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', '__Unused4', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
||||
},
|
||||
/**
|
||||
* Lookup85: polkadot_runtime_parachains::inclusion::pallet::Event<T>
|
||||
* Lookup89: polkadot_runtime_parachains::inclusion::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionPalletEvent: {
|
||||
_enum: {
|
||||
@@ -29,14 +29,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup86: polkadot_primitives::v2::CandidateReceipt<primitive_types::H256>
|
||||
* Lookup90: polkadot_primitives::v2::CandidateReceipt<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV2CandidateReceipt: {
|
||||
descriptor: 'PolkadotPrimitivesV2CandidateDescriptor',
|
||||
commitmentsHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup87: polkadot_primitives::v2::CandidateDescriptor<primitive_types::H256>
|
||||
* Lookup91: polkadot_primitives::v2::CandidateDescriptor<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV2CandidateDescriptor: {
|
||||
paraId: 'u32',
|
||||
@@ -50,15 +50,15 @@ export default {
|
||||
validationCodeHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup89: polkadot_primitives::v2::collator_app::Public
|
||||
* Lookup93: polkadot_primitives::v2::collator_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV2CollatorAppPublic: 'SpCoreSr25519Public',
|
||||
/**
|
||||
* Lookup90: polkadot_primitives::v2::collator_app::Signature
|
||||
* Lookup94: polkadot_primitives::v2::collator_app::Signature
|
||||
**/
|
||||
PolkadotPrimitivesV2CollatorAppSignature: 'SpCoreSr25519Signature',
|
||||
/**
|
||||
* Lookup97: polkadot_runtime_parachains::paras::pallet::Event
|
||||
* Lookup101: polkadot_runtime_parachains::paras::pallet::Event
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPalletEvent: {
|
||||
_enum: {
|
||||
@@ -73,7 +73,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup98: polkadot_runtime_parachains::ump::pallet::Event
|
||||
* Lookup102: polkadot_runtime_parachains::ump::pallet::Event
|
||||
**/
|
||||
PolkadotRuntimeParachainsUmpPalletEvent: {
|
||||
_enum: {
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup99: xcm::v2::traits::Outcome
|
||||
* Lookup103: xcm::v2::traits::Outcome
|
||||
**/
|
||||
XcmV2TraitsOutcome: {
|
||||
_enum: {
|
||||
@@ -97,7 +97,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup100: xcm::v2::traits::Error
|
||||
* Lookup104: xcm::v2::traits::Error
|
||||
**/
|
||||
XcmV2TraitsError: {
|
||||
_enum: {
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup101: polkadot_runtime_parachains::hrmp::pallet::Event<T>
|
||||
* Lookup105: polkadot_runtime_parachains::hrmp::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpPalletEvent: {
|
||||
_enum: {
|
||||
@@ -141,14 +141,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup102: polkadot_parachain::primitives::HrmpChannelId
|
||||
* Lookup106: polkadot_parachain::primitives::HrmpChannelId
|
||||
**/
|
||||
PolkadotParachainPrimitivesHrmpChannelId: {
|
||||
sender: 'u32',
|
||||
recipient: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup103: polkadot_runtime_parachains::disputes::pallet::Event<T>
|
||||
* Lookup107: polkadot_runtime_parachains::disputes::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesPalletEvent: {
|
||||
_enum: {
|
||||
@@ -159,19 +159,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup105: polkadot_runtime_parachains::disputes::DisputeLocation
|
||||
* Lookup109: polkadot_runtime_parachains::disputes::DisputeLocation
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesDisputeLocation: {
|
||||
_enum: ['Local', 'Remote']
|
||||
},
|
||||
/**
|
||||
* Lookup106: polkadot_runtime_parachains::disputes::DisputeResult
|
||||
* Lookup110: polkadot_runtime_parachains::disputes::DisputeResult
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesDisputeResult: {
|
||||
_enum: ['Valid', 'Invalid']
|
||||
},
|
||||
/**
|
||||
* Lookup107: polkadot_runtime_common::paras_registrar::pallet::Event<T>
|
||||
* Lookup111: polkadot_runtime_common::paras_registrar::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarPalletEvent: {
|
||||
_enum: {
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup108: polkadot_runtime_common::slots::pallet::Event<T>
|
||||
* Lookup112: polkadot_runtime_common::slots::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonSlotsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -190,7 +190,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup109: polkadot_runtime_common::auctions::pallet::Event<T>
|
||||
* Lookup113: polkadot_runtime_common::auctions::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonAuctionsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -204,7 +204,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup110: polkadot_runtime_common::crowdloan::pallet::Event<T>
|
||||
* Lookup114: polkadot_runtime_common::crowdloan::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanPalletEvent: {
|
||||
_enum: {
|
||||
@@ -221,7 +221,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup111: pallet_xcm::pallet::Event<T>
|
||||
* Lookup115: pallet_xcm::pallet::Event<T>
|
||||
**/
|
||||
PalletXcmEvent: {
|
||||
_enum: {
|
||||
@@ -244,14 +244,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup112: xcm::v1::multilocation::MultiLocation
|
||||
* Lookup116: xcm::v1::multilocation::MultiLocation
|
||||
**/
|
||||
XcmV1MultiLocation: {
|
||||
parents: 'u8',
|
||||
interior: 'XcmV1MultilocationJunctions'
|
||||
},
|
||||
/**
|
||||
* Lookup113: xcm::v1::multilocation::Junctions
|
||||
* Lookup117: xcm::v1::multilocation::Junctions
|
||||
**/
|
||||
XcmV1MultilocationJunctions: {
|
||||
_enum: {
|
||||
@@ -267,7 +267,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup114: xcm::v1::junction::Junction
|
||||
* Lookup118: xcm::v1::junction::Junction
|
||||
**/
|
||||
XcmV1Junction: {
|
||||
_enum: {
|
||||
@@ -295,7 +295,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup116: xcm::v0::junction::NetworkId
|
||||
* Lookup120: xcm::v0::junction::NetworkId
|
||||
**/
|
||||
XcmV0JunctionNetworkId: {
|
||||
_enum: {
|
||||
@@ -306,7 +306,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup118: xcm::v0::junction::BodyId
|
||||
* Lookup122: xcm::v0::junction::BodyId
|
||||
**/
|
||||
XcmV0JunctionBodyId: {
|
||||
_enum: {
|
||||
@@ -320,7 +320,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup119: xcm::v0::junction::BodyPart
|
||||
* Lookup123: xcm::v0::junction::BodyPart
|
||||
**/
|
||||
XcmV0JunctionBodyPart: {
|
||||
_enum: {
|
||||
@@ -343,11 +343,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup120: xcm::v2::Xcm<Call>
|
||||
* Lookup124: xcm::v2::Xcm<Call>
|
||||
**/
|
||||
XcmV2Xcm: 'Vec<XcmV2Instruction>',
|
||||
/**
|
||||
* Lookup122: xcm::v2::Instruction<Call>
|
||||
* Lookup126: xcm::v2::Instruction<Call>
|
||||
**/
|
||||
XcmV2Instruction: {
|
||||
_enum: {
|
||||
@@ -445,18 +445,18 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup123: xcm::v1::multiasset::MultiAssets
|
||||
* Lookup127: xcm::v1::multiasset::MultiAssets
|
||||
**/
|
||||
XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
|
||||
/**
|
||||
* Lookup125: xcm::v1::multiasset::MultiAsset
|
||||
* Lookup129: xcm::v1::multiasset::MultiAsset
|
||||
**/
|
||||
XcmV1MultiAsset: {
|
||||
id: 'XcmV1MultiassetAssetId',
|
||||
fun: 'XcmV1MultiassetFungibility'
|
||||
},
|
||||
/**
|
||||
* Lookup126: xcm::v1::multiasset::AssetId
|
||||
* Lookup130: xcm::v1::multiasset::AssetId
|
||||
**/
|
||||
XcmV1MultiassetAssetId: {
|
||||
_enum: {
|
||||
@@ -465,7 +465,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup127: xcm::v1::multiasset::Fungibility
|
||||
* Lookup131: xcm::v1::multiasset::Fungibility
|
||||
**/
|
||||
XcmV1MultiassetFungibility: {
|
||||
_enum: {
|
||||
@@ -474,7 +474,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup128: xcm::v1::multiasset::AssetInstance
|
||||
* Lookup132: xcm::v1::multiasset::AssetInstance
|
||||
**/
|
||||
XcmV1MultiassetAssetInstance: {
|
||||
_enum: {
|
||||
@@ -488,7 +488,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup130: xcm::v2::Response
|
||||
* Lookup134: xcm::v2::Response
|
||||
**/
|
||||
XcmV2Response: {
|
||||
_enum: {
|
||||
@@ -499,19 +499,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup133: xcm::v0::OriginKind
|
||||
* Lookup137: xcm::v0::OriginKind
|
||||
**/
|
||||
XcmV0OriginKind: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
},
|
||||
/**
|
||||
* Lookup134: xcm::double_encoded::DoubleEncoded<T>
|
||||
* Lookup138: xcm::double_encoded::DoubleEncoded<T>
|
||||
**/
|
||||
XcmDoubleEncoded: {
|
||||
encoded: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup135: xcm::v1::multiasset::MultiAssetFilter
|
||||
* Lookup139: xcm::v1::multiasset::MultiAssetFilter
|
||||
**/
|
||||
XcmV1MultiassetMultiAssetFilter: {
|
||||
_enum: {
|
||||
@@ -520,7 +520,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup136: xcm::v1::multiasset::WildMultiAsset
|
||||
* Lookup140: xcm::v1::multiasset::WildMultiAsset
|
||||
**/
|
||||
XcmV1MultiassetWildMultiAsset: {
|
||||
_enum: {
|
||||
@@ -532,13 +532,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup137: xcm::v1::multiasset::WildFungibility
|
||||
* Lookup141: xcm::v1::multiasset::WildFungibility
|
||||
**/
|
||||
XcmV1MultiassetWildFungibility: {
|
||||
_enum: ['Fungible', 'NonFungible']
|
||||
},
|
||||
/**
|
||||
* Lookup138: xcm::v2::WeightLimit
|
||||
* Lookup142: xcm::v2::WeightLimit
|
||||
**/
|
||||
XcmV2WeightLimit: {
|
||||
_enum: {
|
||||
@@ -547,7 +547,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup140: xcm::VersionedMultiAssets
|
||||
* Lookup144: xcm::VersionedMultiAssets
|
||||
**/
|
||||
XcmVersionedMultiAssets: {
|
||||
_enum: {
|
||||
@@ -556,7 +556,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup142: xcm::v0::multi_asset::MultiAsset
|
||||
* Lookup146: xcm::v0::multi_asset::MultiAsset
|
||||
**/
|
||||
XcmV0MultiAsset: {
|
||||
_enum: {
|
||||
@@ -595,7 +595,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup143: xcm::v0::multi_location::MultiLocation
|
||||
* Lookup147: xcm::v0::multi_location::MultiLocation
|
||||
**/
|
||||
XcmV0MultiLocation: {
|
||||
_enum: {
|
||||
@@ -611,7 +611,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup144: xcm::v0::junction::Junction
|
||||
* Lookup148: xcm::v0::junction::Junction
|
||||
**/
|
||||
XcmV0Junction: {
|
||||
_enum: {
|
||||
@@ -640,7 +640,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup145: xcm::VersionedMultiLocation
|
||||
* Lookup149: xcm::VersionedMultiLocation
|
||||
**/
|
||||
XcmVersionedMultiLocation: {
|
||||
_enum: {
|
||||
@@ -649,7 +649,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup205: polkadot_runtime::SessionKeys
|
||||
* Lookup206: polkadot_runtime::SessionKeys
|
||||
**/
|
||||
PolkadotRuntimeSessionKeys: {
|
||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||
@@ -660,15 +660,15 @@ export default {
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup206: polkadot_primitives::v2::validator_app::Public
|
||||
* Lookup207: polkadot_primitives::v2::validator_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV2ValidatorAppPublic: 'SpCoreSr25519Public',
|
||||
/**
|
||||
* Lookup207: polkadot_primitives::v2::assignment_app::Public
|
||||
* Lookup208: polkadot_primitives::v2::assignment_app::Public
|
||||
**/
|
||||
PolkadotPrimitivesV2AssignmentAppPublic: 'SpCoreSr25519Public',
|
||||
/**
|
||||
* Lookup237: polkadot_runtime_common::claims::pallet::Call<T>
|
||||
* Lookup238: polkadot_runtime_common::claims::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPalletCall: {
|
||||
_enum: {
|
||||
@@ -701,17 +701,17 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup238: polkadot_runtime_common::claims::EcdsaSignature
|
||||
* Lookup239: polkadot_runtime_common::claims::EcdsaSignature
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]',
|
||||
/**
|
||||
* Lookup243: polkadot_runtime_common::claims::StatementKind
|
||||
* Lookup244: polkadot_runtime_common::claims::StatementKind
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsStatementKind: {
|
||||
_enum: ['Regular', 'Saft']
|
||||
},
|
||||
/**
|
||||
* Lookup248: polkadot_runtime::OriginCaller
|
||||
* Lookup249: polkadot_runtime::OriginCaller
|
||||
**/
|
||||
PolkadotRuntimeOriginCaller: {
|
||||
_enum: {
|
||||
@@ -818,7 +818,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup252: polkadot_runtime_parachains::origin::pallet::Origin
|
||||
* Lookup253: polkadot_runtime_parachains::origin::pallet::Origin
|
||||
**/
|
||||
PolkadotRuntimeParachainsOriginPalletOrigin: {
|
||||
_enum: {
|
||||
@@ -826,7 +826,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup253: pallet_xcm::pallet::Origin
|
||||
* Lookup254: pallet_xcm::pallet::Origin
|
||||
**/
|
||||
PalletXcmOrigin: {
|
||||
_enum: {
|
||||
@@ -835,7 +835,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup305: polkadot_runtime::NposCompactSolution16
|
||||
* Lookup306: polkadot_runtime::NposCompactSolution16
|
||||
**/
|
||||
PolkadotRuntimeNposCompactSolution16: {
|
||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||
@@ -856,7 +856,7 @@ export default {
|
||||
votes16: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);15],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup363: polkadot_runtime_parachains::configuration::pallet::Call<T>
|
||||
* Lookup364: polkadot_runtime_parachains::configuration::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsConfigurationPalletCall: {
|
||||
_enum: {
|
||||
@@ -1133,15 +1133,15 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup364: polkadot_runtime_parachains::shared::pallet::Call<T>
|
||||
* Lookup365: polkadot_runtime_parachains::shared::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsSharedPalletCall: 'Null',
|
||||
/**
|
||||
* Lookup365: polkadot_runtime_parachains::inclusion::pallet::Call<T>
|
||||
* Lookup366: polkadot_runtime_parachains::inclusion::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionPalletCall: 'Null',
|
||||
/**
|
||||
* Lookup366: polkadot_runtime_parachains::paras_inherent::pallet::Call<T>
|
||||
* Lookup367: polkadot_runtime_parachains::paras_inherent::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasInherentPalletCall: {
|
||||
_enum: {
|
||||
@@ -1151,7 +1151,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup367: polkadot_primitives::v2::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>>
|
||||
* Lookup368: polkadot_primitives::v2::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>>
|
||||
**/
|
||||
PolkadotPrimitivesV2InherentData: {
|
||||
bitfields: 'Vec<PolkadotPrimitivesV2SignedUncheckedSigned>',
|
||||
@@ -1160,7 +1160,7 @@ export default {
|
||||
parentHeader: 'SpRuntimeHeader'
|
||||
},
|
||||
/**
|
||||
* Lookup369: polkadot_primitives::v2::signed::UncheckedSigned<polkadot_primitives::v2::AvailabilityBitfield, polkadot_primitives::v2::AvailabilityBitfield>
|
||||
* Lookup370: polkadot_primitives::v2::signed::UncheckedSigned<polkadot_primitives::v2::AvailabilityBitfield, polkadot_primitives::v2::AvailabilityBitfield>
|
||||
**/
|
||||
PolkadotPrimitivesV2SignedUncheckedSigned: {
|
||||
payload: 'BitVec',
|
||||
@@ -1168,15 +1168,15 @@ export default {
|
||||
signature: 'PolkadotPrimitivesV2ValidatorAppSignature'
|
||||
},
|
||||
/**
|
||||
* Lookup372: bitvec::order::Lsb0
|
||||
* Lookup373: bitvec::order::Lsb0
|
||||
**/
|
||||
BitvecOrderLsb0: 'Null',
|
||||
/**
|
||||
* Lookup374: polkadot_primitives::v2::validator_app::Signature
|
||||
* Lookup375: polkadot_primitives::v2::validator_app::Signature
|
||||
**/
|
||||
PolkadotPrimitivesV2ValidatorAppSignature: 'SpCoreSr25519Signature',
|
||||
/**
|
||||
* Lookup376: polkadot_primitives::v2::BackedCandidate<primitive_types::H256>
|
||||
* Lookup377: polkadot_primitives::v2::BackedCandidate<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV2BackedCandidate: {
|
||||
candidate: 'PolkadotPrimitivesV2CommittedCandidateReceipt',
|
||||
@@ -1184,14 +1184,14 @@ export default {
|
||||
validatorIndices: 'BitVec'
|
||||
},
|
||||
/**
|
||||
* Lookup377: polkadot_primitives::v2::CommittedCandidateReceipt<primitive_types::H256>
|
||||
* Lookup378: polkadot_primitives::v2::CommittedCandidateReceipt<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV2CommittedCandidateReceipt: {
|
||||
descriptor: 'PolkadotPrimitivesV2CandidateDescriptor',
|
||||
commitments: 'PolkadotPrimitivesV2CandidateCommitments'
|
||||
},
|
||||
/**
|
||||
* Lookup378: polkadot_primitives::v2::CandidateCommitments<N>
|
||||
* Lookup379: polkadot_primitives::v2::CandidateCommitments<N>
|
||||
**/
|
||||
PolkadotPrimitivesV2CandidateCommitments: {
|
||||
upwardMessages: 'Vec<Bytes>',
|
||||
@@ -1202,14 +1202,14 @@ export default {
|
||||
hrmpWatermark: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup380: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
||||
* Lookup381: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
||||
**/
|
||||
PolkadotCorePrimitivesOutboundHrmpMessage: {
|
||||
recipient: 'u32',
|
||||
data: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup384: polkadot_primitives::v2::ValidityAttestation
|
||||
* Lookup385: polkadot_primitives::v2::ValidityAttestation
|
||||
**/
|
||||
PolkadotPrimitivesV2ValidityAttestation: {
|
||||
_enum: {
|
||||
@@ -1219,7 +1219,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup386: polkadot_primitives::v2::DisputeStatementSet
|
||||
* Lookup387: polkadot_primitives::v2::DisputeStatementSet
|
||||
**/
|
||||
PolkadotPrimitivesV2DisputeStatementSet: {
|
||||
candidateHash: 'H256',
|
||||
@@ -1227,7 +1227,7 @@ export default {
|
||||
statements: 'Vec<(PolkadotPrimitivesV2DisputeStatement,u32,PolkadotPrimitivesV2ValidatorAppSignature)>'
|
||||
},
|
||||
/**
|
||||
* Lookup389: polkadot_primitives::v2::DisputeStatement
|
||||
* Lookup390: polkadot_primitives::v2::DisputeStatement
|
||||
**/
|
||||
PolkadotPrimitivesV2DisputeStatement: {
|
||||
_enum: {
|
||||
@@ -1236,7 +1236,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup390: polkadot_primitives::v2::ValidDisputeStatementKind
|
||||
* Lookup391: polkadot_primitives::v2::ValidDisputeStatementKind
|
||||
**/
|
||||
PolkadotPrimitivesV2ValidDisputeStatementKind: {
|
||||
_enum: {
|
||||
@@ -1247,13 +1247,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup391: polkadot_primitives::v2::InvalidDisputeStatementKind
|
||||
* Lookup392: polkadot_primitives::v2::InvalidDisputeStatementKind
|
||||
**/
|
||||
PolkadotPrimitivesV2InvalidDisputeStatementKind: {
|
||||
_enum: ['Explicit']
|
||||
},
|
||||
/**
|
||||
* Lookup392: polkadot_runtime_parachains::paras::pallet::Call<T>
|
||||
* Lookup393: polkadot_runtime_parachains::paras::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPalletCall: {
|
||||
_enum: {
|
||||
@@ -1290,7 +1290,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup393: polkadot_primitives::v2::PvfCheckStatement
|
||||
* Lookup394: polkadot_primitives::v2::PvfCheckStatement
|
||||
**/
|
||||
PolkadotPrimitivesV2PvfCheckStatement: {
|
||||
accept: 'bool',
|
||||
@@ -1299,7 +1299,7 @@ export default {
|
||||
validatorIndex: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup394: polkadot_runtime_parachains::initializer::pallet::Call<T>
|
||||
* Lookup395: polkadot_runtime_parachains::initializer::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInitializerPalletCall: {
|
||||
_enum: {
|
||||
@@ -1309,11 +1309,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup395: polkadot_runtime_parachains::dmp::pallet::Call<T>
|
||||
* Lookup396: polkadot_runtime_parachains::dmp::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDmpPalletCall: 'Null',
|
||||
/**
|
||||
* Lookup396: polkadot_runtime_parachains::ump::pallet::Call<T>
|
||||
* Lookup397: polkadot_runtime_parachains::ump::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsUmpPalletCall: {
|
||||
_enum: {
|
||||
@@ -1324,7 +1324,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup397: polkadot_runtime_parachains::hrmp::pallet::Call<T>
|
||||
* Lookup398: polkadot_runtime_parachains::hrmp::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpPalletCall: {
|
||||
_enum: {
|
||||
@@ -1357,13 +1357,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup398: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
||||
* Lookup399: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesPalletCall: {
|
||||
_enum: ['force_unfreeze']
|
||||
},
|
||||
/**
|
||||
* Lookup399: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
||||
* Lookup400: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarPalletCall: {
|
||||
_enum: {
|
||||
@@ -1393,7 +1393,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup400: polkadot_runtime_common::slots::pallet::Call<T>
|
||||
* Lookup401: polkadot_runtime_common::slots::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonSlotsPalletCall: {
|
||||
_enum: {
|
||||
@@ -1413,7 +1413,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup401: polkadot_runtime_common::auctions::pallet::Call<T>
|
||||
* Lookup402: polkadot_runtime_common::auctions::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonAuctionsPalletCall: {
|
||||
_enum: {
|
||||
@@ -1432,7 +1432,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup403: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
||||
* Lookup404: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanPalletCall: {
|
||||
_enum: {
|
||||
@@ -1481,7 +1481,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup405: sp_runtime::MultiSigner
|
||||
* Lookup406: sp_runtime::MultiSigner
|
||||
**/
|
||||
SpRuntimeMultiSigner: {
|
||||
_enum: {
|
||||
@@ -1491,11 +1491,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup406: sp_core::ecdsa::Public
|
||||
* Lookup407: sp_core::ecdsa::Public
|
||||
**/
|
||||
SpCoreEcdsaPublic: '[u8;33]',
|
||||
/**
|
||||
* Lookup411: pallet_xcm::pallet::Call<T>
|
||||
* Lookup412: pallet_xcm::pallet::Call<T>
|
||||
**/
|
||||
PalletXcmCall: {
|
||||
_enum: {
|
||||
@@ -1549,7 +1549,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup412: xcm::VersionedXcm<Call>
|
||||
* Lookup413: xcm::VersionedXcm<Call>
|
||||
**/
|
||||
XcmVersionedXcm: {
|
||||
_enum: {
|
||||
@@ -1559,7 +1559,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup413: xcm::v0::Xcm<Call>
|
||||
* Lookup414: xcm::v0::Xcm<Call>
|
||||
**/
|
||||
XcmV0Xcm: {
|
||||
_enum: {
|
||||
@@ -1613,7 +1613,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup415: xcm::v0::order::Order<Call>
|
||||
* Lookup416: xcm::v0::order::Order<Call>
|
||||
**/
|
||||
XcmV0Order: {
|
||||
_enum: {
|
||||
@@ -1656,7 +1656,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup417: xcm::v0::Response
|
||||
* Lookup418: xcm::v0::Response
|
||||
**/
|
||||
XcmV0Response: {
|
||||
_enum: {
|
||||
@@ -1664,7 +1664,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup418: xcm::v1::Xcm<Call>
|
||||
* Lookup419: xcm::v1::Xcm<Call>
|
||||
**/
|
||||
XcmV1Xcm: {
|
||||
_enum: {
|
||||
@@ -1723,7 +1723,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup420: xcm::v1::order::Order<Call>
|
||||
* Lookup421: xcm::v1::order::Order<Call>
|
||||
**/
|
||||
XcmV1Order: {
|
||||
_enum: {
|
||||
@@ -1768,7 +1768,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup422: xcm::v1::Response
|
||||
* Lookup423: xcm::v1::Response
|
||||
**/
|
||||
XcmV1Response: {
|
||||
_enum: {
|
||||
@@ -1777,13 +1777,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup540: polkadot_runtime_common::claims::pallet::Error<T>
|
||||
* Lookup541: polkadot_runtime_common::claims::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPalletError: {
|
||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||
},
|
||||
/**
|
||||
* Lookup595: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||
* Lookup596: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||
maxCodeSize: 'u32',
|
||||
@@ -1830,51 +1830,6 @@ export default {
|
||||
pvfVotingTtl: 'u32',
|
||||
minimumValidationUpgradeDelay: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup596: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: {
|
||||
maxCodeSize: 'u32',
|
||||
maxHeadDataSize: 'u32',
|
||||
maxUpwardQueueCount: 'u32',
|
||||
maxUpwardQueueSize: 'u32',
|
||||
maxUpwardMessageSize: 'u32',
|
||||
maxUpwardMessageNumPerCandidate: 'u32',
|
||||
hrmpMaxMessageNumPerCandidate: 'u32',
|
||||
validationUpgradeFrequency: 'u32',
|
||||
validationUpgradeDelay: 'u32',
|
||||
maxPovSize: 'u32',
|
||||
maxDownwardMessageSize: 'u32',
|
||||
umpServiceTotalWeight: 'u64',
|
||||
hrmpMaxParachainOutboundChannels: 'u32',
|
||||
hrmpMaxParathreadOutboundChannels: 'u32',
|
||||
hrmpSenderDeposit: 'u128',
|
||||
hrmpRecipientDeposit: 'u128',
|
||||
hrmpChannelMaxCapacity: 'u32',
|
||||
hrmpChannelMaxTotalSize: 'u32',
|
||||
hrmpMaxParachainInboundChannels: 'u32',
|
||||
hrmpMaxParathreadInboundChannels: 'u32',
|
||||
hrmpChannelMaxMessageSize: 'u32',
|
||||
codeRetentionPeriod: 'u32',
|
||||
parathreadCores: 'u32',
|
||||
parathreadRetries: 'u32',
|
||||
groupRotationFrequency: 'u32',
|
||||
chainAvailabilityPeriod: 'u32',
|
||||
threadAvailabilityPeriod: 'u32',
|
||||
schedulingLookahead: 'u32',
|
||||
maxValidatorsPerCore: 'Option<u32>',
|
||||
maxValidators: 'Option<u32>',
|
||||
disputePeriod: 'u32',
|
||||
disputePostConclusionAcceptancePeriod: 'u32',
|
||||
disputeMaxSpamSlots: 'u32',
|
||||
disputeConclusionByTimeOutPeriod: 'u32',
|
||||
noShowSlots: 'u32',
|
||||
nDelayTranches: 'u32',
|
||||
zerothDelayTrancheWidth: 'u32',
|
||||
neededApprovals: 'u32',
|
||||
relayVrfModuloSamples: 'u32',
|
||||
umpMaxIndividualWeight: 'u64'
|
||||
},
|
||||
/**
|
||||
* Lookup599: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||
**/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ declare module '@polkadot/types/lookup' {
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name KusamaRuntimeProxyType (75) */
|
||||
/** @name KusamaRuntimeProxyType (79) */
|
||||
export interface KusamaRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
@@ -19,7 +19,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeSessionKeys (252) */
|
||||
/** @name KusamaRuntimeSessionKeys (253) */
|
||||
export interface KusamaRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
@@ -29,7 +29,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeOriginCaller (326) */
|
||||
/** @name KusamaRuntimeOriginCaller (327) */
|
||||
export interface KusamaRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
@@ -45,7 +45,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (392) */
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (393) */
|
||||
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||
|
||||
@@ -7,14 +7,14 @@ declare module '@polkadot/types/lookup' {
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (67) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (71) */
|
||||
export interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
|
||||
readonly isClaimed: boolean;
|
||||
readonly asClaimed: ITuple<[AccountId32, EthereumAddress, u128]>;
|
||||
readonly type: 'Claimed';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeProxyType (74) */
|
||||
/** @name PolkadotRuntimeProxyType (78) */
|
||||
export interface PolkadotRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
@@ -26,7 +26,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (85) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (89) */
|
||||
export interface PolkadotRuntimeParachainsInclusionPalletEvent extends Enum {
|
||||
readonly isCandidateBacked: boolean;
|
||||
readonly asCandidateBacked: ITuple<[PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
@@ -37,13 +37,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CandidateBacked' | 'CandidateIncluded' | 'CandidateTimedOut';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateReceipt (86) */
|
||||
/** @name PolkadotPrimitivesV2CandidateReceipt (90) */
|
||||
export interface PolkadotPrimitivesV2CandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV2CandidateDescriptor;
|
||||
readonly commitmentsHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateDescriptor (87) */
|
||||
/** @name PolkadotPrimitivesV2CandidateDescriptor (91) */
|
||||
export interface PolkadotPrimitivesV2CandidateDescriptor extends Struct {
|
||||
readonly paraId: u32;
|
||||
readonly relayParent: H256;
|
||||
@@ -56,13 +56,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly validationCodeHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CollatorAppPublic (89) */
|
||||
/** @name PolkadotPrimitivesV2CollatorAppPublic (93) */
|
||||
export interface PolkadotPrimitivesV2CollatorAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CollatorAppSignature (90) */
|
||||
/** @name PolkadotPrimitivesV2CollatorAppSignature (94) */
|
||||
export interface PolkadotPrimitivesV2CollatorAppSignature extends SpCoreSr25519Signature {}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (97) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (101) */
|
||||
export interface PolkadotRuntimeParachainsParasPalletEvent extends Enum {
|
||||
readonly isCurrentCodeUpdated: boolean;
|
||||
readonly asCurrentCodeUpdated: u32;
|
||||
@@ -83,7 +83,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued' | 'PvfCheckStarted' | 'PvfCheckAccepted' | 'PvfCheckRejected';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (98) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (102) */
|
||||
export interface PolkadotRuntimeParachainsUmpPalletEvent extends Enum {
|
||||
readonly isInvalidFormat: boolean;
|
||||
readonly asInvalidFormat: U8aFixed;
|
||||
@@ -102,7 +102,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedUpward' | 'WeightExhausted' | 'UpwardMessagesReceived' | 'OverweightEnqueued' | 'OverweightServiced';
|
||||
}
|
||||
|
||||
/** @name XcmV2TraitsOutcome (99) */
|
||||
/** @name XcmV2TraitsOutcome (103) */
|
||||
export interface XcmV2TraitsOutcome extends Enum {
|
||||
readonly isComplete: boolean;
|
||||
readonly asComplete: u64;
|
||||
@@ -113,7 +113,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Complete' | 'Incomplete' | 'Error';
|
||||
}
|
||||
|
||||
/** @name XcmV2TraitsError (100) */
|
||||
/** @name XcmV2TraitsError (104) */
|
||||
export interface XcmV2TraitsError extends Enum {
|
||||
readonly isOverflow: boolean;
|
||||
readonly isUnimplemented: boolean;
|
||||
@@ -146,7 +146,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 PolkadotRuntimeParachainsHrmpPalletEvent (101) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (105) */
|
||||
export interface PolkadotRuntimeParachainsHrmpPalletEvent extends Enum {
|
||||
readonly isOpenChannelRequested: boolean;
|
||||
readonly asOpenChannelRequested: ITuple<[u32, u32, u32, u32]>;
|
||||
@@ -159,13 +159,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'OpenChannelRequested' | 'OpenChannelCanceled' | 'OpenChannelAccepted' | 'ChannelClosed';
|
||||
}
|
||||
|
||||
/** @name PolkadotParachainPrimitivesHrmpChannelId (102) */
|
||||
/** @name PolkadotParachainPrimitivesHrmpChannelId (106) */
|
||||
export interface PolkadotParachainPrimitivesHrmpChannelId extends Struct {
|
||||
readonly sender: u32;
|
||||
readonly recipient: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (103) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (107) */
|
||||
export interface PolkadotRuntimeParachainsDisputesPalletEvent extends Enum {
|
||||
readonly isDisputeInitiated: boolean;
|
||||
readonly asDisputeInitiated: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||
@@ -178,21 +178,21 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'DisputeTimedOut' | 'Revert';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (105) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (109) */
|
||||
export interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
|
||||
readonly isLocal: boolean;
|
||||
readonly isRemote: boolean;
|
||||
readonly type: 'Local' | 'Remote';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (106) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (110) */
|
||||
export interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly isInvalid: boolean;
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (107) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (111) */
|
||||
export interface PolkadotRuntimeCommonParasRegistrarPalletEvent extends Enum {
|
||||
readonly isRegistered: boolean;
|
||||
readonly asRegistered: ITuple<[u32, AccountId32]>;
|
||||
@@ -203,7 +203,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Registered' | 'Deregistered' | 'Reserved';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (108) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (112) */
|
||||
export interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum {
|
||||
readonly isNewLeasePeriod: boolean;
|
||||
readonly asNewLeasePeriod: u32;
|
||||
@@ -212,7 +212,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewLeasePeriod' | 'Leased';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (109) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (113) */
|
||||
export interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum {
|
||||
readonly isAuctionStarted: boolean;
|
||||
readonly asAuctionStarted: ITuple<[u32, u32, u32]>;
|
||||
@@ -231,7 +231,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (110) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (114) */
|
||||
export interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum {
|
||||
readonly isCreated: boolean;
|
||||
readonly asCreated: u32;
|
||||
@@ -256,7 +256,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
|
||||
}
|
||||
|
||||
/** @name PalletXcmEvent (111) */
|
||||
/** @name PalletXcmEvent (115) */
|
||||
export interface PalletXcmEvent extends Enum {
|
||||
readonly isAttempted: boolean;
|
||||
readonly asAttempted: XcmV2TraitsOutcome;
|
||||
@@ -293,13 +293,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiLocation (112) */
|
||||
/** @name XcmV1MultiLocation (116) */
|
||||
export interface XcmV1MultiLocation extends Struct {
|
||||
readonly parents: u8;
|
||||
readonly interior: XcmV1MultilocationJunctions;
|
||||
}
|
||||
|
||||
/** @name XcmV1MultilocationJunctions (113) */
|
||||
/** @name XcmV1MultilocationJunctions (117) */
|
||||
export interface XcmV1MultilocationJunctions extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
@@ -321,7 +321,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
|
||||
}
|
||||
|
||||
/** @name XcmV1Junction (114) */
|
||||
/** @name XcmV1Junction (118) */
|
||||
export interface XcmV1Junction extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
@@ -355,7 +355,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
|
||||
}
|
||||
|
||||
/** @name XcmV0JunctionNetworkId (116) */
|
||||
/** @name XcmV0JunctionNetworkId (120) */
|
||||
export interface XcmV0JunctionNetworkId extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -365,7 +365,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
|
||||
}
|
||||
|
||||
/** @name XcmV0JunctionBodyId (118) */
|
||||
/** @name XcmV0JunctionBodyId (122) */
|
||||
export interface XcmV0JunctionBodyId extends Enum {
|
||||
readonly isUnit: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -379,7 +379,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
|
||||
}
|
||||
|
||||
/** @name XcmV0JunctionBodyPart (119) */
|
||||
/** @name XcmV0JunctionBodyPart (123) */
|
||||
export interface XcmV0JunctionBodyPart extends Enum {
|
||||
readonly isVoice: boolean;
|
||||
readonly isMembers: boolean;
|
||||
@@ -404,10 +404,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
|
||||
}
|
||||
|
||||
/** @name XcmV2Xcm (120) */
|
||||
/** @name XcmV2Xcm (124) */
|
||||
export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
|
||||
|
||||
/** @name XcmV2Instruction (122) */
|
||||
/** @name XcmV2Instruction (126) */
|
||||
export interface XcmV2Instruction extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;
|
||||
@@ -527,16 +527,16 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetMultiAssets (123) */
|
||||
/** @name XcmV1MultiassetMultiAssets (127) */
|
||||
export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
|
||||
|
||||
/** @name XcmV1MultiAsset (125) */
|
||||
/** @name XcmV1MultiAsset (129) */
|
||||
export interface XcmV1MultiAsset extends Struct {
|
||||
readonly id: XcmV1MultiassetAssetId;
|
||||
readonly fun: XcmV1MultiassetFungibility;
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetAssetId (126) */
|
||||
/** @name XcmV1MultiassetAssetId (130) */
|
||||
export interface XcmV1MultiassetAssetId extends Enum {
|
||||
readonly isConcrete: boolean;
|
||||
readonly asConcrete: XcmV1MultiLocation;
|
||||
@@ -545,7 +545,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Concrete' | 'Abstract';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetFungibility (127) */
|
||||
/** @name XcmV1MultiassetFungibility (131) */
|
||||
export interface XcmV1MultiassetFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly asFungible: Compact<u128>;
|
||||
@@ -554,7 +554,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetAssetInstance (128) */
|
||||
/** @name XcmV1MultiassetAssetInstance (132) */
|
||||
export interface XcmV1MultiassetAssetInstance extends Enum {
|
||||
readonly isUndefined: boolean;
|
||||
readonly isIndex: boolean;
|
||||
@@ -572,7 +572,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
|
||||
}
|
||||
|
||||
/** @name XcmV2Response (130) */
|
||||
/** @name XcmV2Response (134) */
|
||||
export interface XcmV2Response extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isAssets: boolean;
|
||||
@@ -584,7 +584,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
|
||||
}
|
||||
|
||||
/** @name XcmV0OriginKind (133) */
|
||||
/** @name XcmV0OriginKind (137) */
|
||||
export interface XcmV0OriginKind extends Enum {
|
||||
readonly isNative: boolean;
|
||||
readonly isSovereignAccount: boolean;
|
||||
@@ -593,12 +593,12 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
||||
}
|
||||
|
||||
/** @name XcmDoubleEncoded (134) */
|
||||
/** @name XcmDoubleEncoded (138) */
|
||||
export interface XcmDoubleEncoded extends Struct {
|
||||
readonly encoded: Bytes;
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetMultiAssetFilter (135) */
|
||||
/** @name XcmV1MultiassetMultiAssetFilter (139) */
|
||||
export interface XcmV1MultiassetMultiAssetFilter extends Enum {
|
||||
readonly isDefinite: boolean;
|
||||
readonly asDefinite: XcmV1MultiassetMultiAssets;
|
||||
@@ -607,7 +607,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Definite' | 'Wild';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetWildMultiAsset (136) */
|
||||
/** @name XcmV1MultiassetWildMultiAsset (140) */
|
||||
export interface XcmV1MultiassetWildMultiAsset extends Enum {
|
||||
readonly isAll: boolean;
|
||||
readonly isAllOf: boolean;
|
||||
@@ -618,14 +618,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'All' | 'AllOf';
|
||||
}
|
||||
|
||||
/** @name XcmV1MultiassetWildFungibility (137) */
|
||||
/** @name XcmV1MultiassetWildFungibility (141) */
|
||||
export interface XcmV1MultiassetWildFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly isNonFungible: boolean;
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV2WeightLimit (138) */
|
||||
/** @name XcmV2WeightLimit (142) */
|
||||
export interface XcmV2WeightLimit extends Enum {
|
||||
readonly isUnlimited: boolean;
|
||||
readonly isLimited: boolean;
|
||||
@@ -633,7 +633,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unlimited' | 'Limited';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiAssets (140) */
|
||||
/** @name XcmVersionedMultiAssets (144) */
|
||||
export interface XcmVersionedMultiAssets extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly asV0: Vec<XcmV0MultiAsset>;
|
||||
@@ -642,7 +642,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V0' | 'V1';
|
||||
}
|
||||
|
||||
/** @name XcmV0MultiAsset (142) */
|
||||
/** @name XcmV0MultiAsset (146) */
|
||||
export interface XcmV0MultiAsset extends Enum {
|
||||
readonly isNone: boolean;
|
||||
readonly isAll: boolean;
|
||||
@@ -687,7 +687,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV0MultiLocation (143) */
|
||||
/** @name XcmV0MultiLocation (147) */
|
||||
export interface XcmV0MultiLocation extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isX1: boolean;
|
||||
@@ -709,7 +709,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
|
||||
}
|
||||
|
||||
/** @name XcmV0Junction (144) */
|
||||
/** @name XcmV0Junction (148) */
|
||||
export interface XcmV0Junction extends Enum {
|
||||
readonly isParent: boolean;
|
||||
readonly isParachain: boolean;
|
||||
@@ -744,7 +744,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiLocation (145) */
|
||||
/** @name XcmVersionedMultiLocation (149) */
|
||||
export interface XcmVersionedMultiLocation extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly asV0: XcmV0MultiLocation;
|
||||
@@ -753,7 +753,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V0' | 'V1';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeSessionKeys (205) */
|
||||
/** @name PolkadotRuntimeSessionKeys (206) */
|
||||
export interface PolkadotRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
@@ -763,13 +763,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppPublic (206) */
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppPublic (207) */
|
||||
export interface PolkadotPrimitivesV2ValidatorAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2AssignmentAppPublic (207) */
|
||||
/** @name PolkadotPrimitivesV2AssignmentAppPublic (208) */
|
||||
export interface PolkadotPrimitivesV2AssignmentAppPublic extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletCall (237) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletCall (238) */
|
||||
export interface PolkadotRuntimeCommonClaimsPalletCall extends Enum {
|
||||
readonly isClaim: boolean;
|
||||
readonly asClaim: {
|
||||
@@ -802,17 +802,17 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (238) */
|
||||
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (239) */
|
||||
export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsStatementKind (243) */
|
||||
/** @name PolkadotRuntimeCommonClaimsStatementKind (244) */
|
||||
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
|
||||
readonly isRegular: boolean;
|
||||
readonly isSaft: boolean;
|
||||
readonly type: 'Regular' | 'Saft';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeOriginCaller (248) */
|
||||
/** @name PolkadotRuntimeOriginCaller (249) */
|
||||
export interface PolkadotRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
@@ -828,14 +828,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (252) */
|
||||
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (253) */
|
||||
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: u32;
|
||||
readonly type: 'Parachain';
|
||||
}
|
||||
|
||||
/** @name PalletXcmOrigin (253) */
|
||||
/** @name PalletXcmOrigin (254) */
|
||||
export interface PalletXcmOrigin extends Enum {
|
||||
readonly isXcm: boolean;
|
||||
readonly asXcm: XcmV1MultiLocation;
|
||||
@@ -844,7 +844,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Xcm' | 'Response';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeNposCompactSolution16 (305) */
|
||||
/** @name PolkadotRuntimeNposCompactSolution16 (306) */
|
||||
export interface PolkadotRuntimeNposCompactSolution16 extends Struct {
|
||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||
@@ -864,7 +864,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (363) */
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletCall (364) */
|
||||
export interface PolkadotRuntimeParachainsConfigurationPalletCall extends Enum {
|
||||
readonly isSetValidationUpgradeCooldown: boolean;
|
||||
readonly asSetValidationUpgradeCooldown: {
|
||||
@@ -1049,13 +1049,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeMaxSpamSlots' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight' | 'SetPvfCheckingEnabled' | 'SetPvfVotingTtl' | 'SetMinimumValidationUpgradeDelay' | 'SetBypassConsistencyCheck';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsSharedPalletCall (364) */
|
||||
/** @name PolkadotRuntimeParachainsSharedPalletCall (365) */
|
||||
export type PolkadotRuntimeParachainsSharedPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletCall (365) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletCall (366) */
|
||||
export type PolkadotRuntimeParachainsInclusionPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (366) */
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletCall (367) */
|
||||
export interface PolkadotRuntimeParachainsParasInherentPalletCall extends Enum {
|
||||
readonly isEnter: boolean;
|
||||
readonly asEnter: {
|
||||
@@ -1064,7 +1064,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Enter';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2InherentData (367) */
|
||||
/** @name PolkadotPrimitivesV2InherentData (368) */
|
||||
export interface PolkadotPrimitivesV2InherentData extends Struct {
|
||||
readonly bitfields: Vec<PolkadotPrimitivesV2SignedUncheckedSigned>;
|
||||
readonly backedCandidates: Vec<PolkadotPrimitivesV2BackedCandidate>;
|
||||
@@ -1072,33 +1072,33 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly parentHeader: SpRuntimeHeader;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2SignedUncheckedSigned (369) */
|
||||
/** @name PolkadotPrimitivesV2SignedUncheckedSigned (370) */
|
||||
export interface PolkadotPrimitivesV2SignedUncheckedSigned extends Struct {
|
||||
readonly payload: BitVec;
|
||||
readonly validatorIndex: u32;
|
||||
readonly signature: PolkadotPrimitivesV2ValidatorAppSignature;
|
||||
}
|
||||
|
||||
/** @name BitvecOrderLsb0 (372) */
|
||||
/** @name BitvecOrderLsb0 (373) */
|
||||
export type BitvecOrderLsb0 = Null;
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppSignature (374) */
|
||||
/** @name PolkadotPrimitivesV2ValidatorAppSignature (375) */
|
||||
export interface PolkadotPrimitivesV2ValidatorAppSignature extends SpCoreSr25519Signature {}
|
||||
|
||||
/** @name PolkadotPrimitivesV2BackedCandidate (376) */
|
||||
/** @name PolkadotPrimitivesV2BackedCandidate (377) */
|
||||
export interface PolkadotPrimitivesV2BackedCandidate extends Struct {
|
||||
readonly candidate: PolkadotPrimitivesV2CommittedCandidateReceipt;
|
||||
readonly validityVotes: Vec<PolkadotPrimitivesV2ValidityAttestation>;
|
||||
readonly validatorIndices: BitVec;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CommittedCandidateReceipt (377) */
|
||||
/** @name PolkadotPrimitivesV2CommittedCandidateReceipt (378) */
|
||||
export interface PolkadotPrimitivesV2CommittedCandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV2CandidateDescriptor;
|
||||
readonly commitments: PolkadotPrimitivesV2CandidateCommitments;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2CandidateCommitments (378) */
|
||||
/** @name PolkadotPrimitivesV2CandidateCommitments (379) */
|
||||
export interface PolkadotPrimitivesV2CandidateCommitments extends Struct {
|
||||
readonly upwardMessages: Vec<Bytes>;
|
||||
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
|
||||
@@ -1108,13 +1108,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly hrmpWatermark: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (380) */
|
||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (381) */
|
||||
export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
||||
readonly recipient: u32;
|
||||
readonly data: Bytes;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidityAttestation (384) */
|
||||
/** @name PolkadotPrimitivesV2ValidityAttestation (385) */
|
||||
export interface PolkadotPrimitivesV2ValidityAttestation extends Enum {
|
||||
readonly isImplicit: boolean;
|
||||
readonly asImplicit: PolkadotPrimitivesV2ValidatorAppSignature;
|
||||
@@ -1123,14 +1123,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Implicit' | 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeStatementSet (386) */
|
||||
/** @name PolkadotPrimitivesV2DisputeStatementSet (387) */
|
||||
export interface PolkadotPrimitivesV2DisputeStatementSet extends Struct {
|
||||
readonly candidateHash: H256;
|
||||
readonly session: u32;
|
||||
readonly statements: Vec<ITuple<[PolkadotPrimitivesV2DisputeStatement, u32, PolkadotPrimitivesV2ValidatorAppSignature]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2DisputeStatement (389) */
|
||||
/** @name PolkadotPrimitivesV2DisputeStatement (390) */
|
||||
export interface PolkadotPrimitivesV2DisputeStatement extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly asValid: PolkadotPrimitivesV2ValidDisputeStatementKind;
|
||||
@@ -1139,7 +1139,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (390) */
|
||||
/** @name PolkadotPrimitivesV2ValidDisputeStatementKind (391) */
|
||||
export interface PolkadotPrimitivesV2ValidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly isBackingSeconded: boolean;
|
||||
@@ -1150,13 +1150,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (391) */
|
||||
/** @name PolkadotPrimitivesV2InvalidDisputeStatementKind (392) */
|
||||
export interface PolkadotPrimitivesV2InvalidDisputeStatementKind extends Enum {
|
||||
readonly isExplicit: boolean;
|
||||
readonly type: 'Explicit';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletCall (392) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletCall (393) */
|
||||
export interface PolkadotRuntimeParachainsParasPalletCall extends Enum {
|
||||
readonly isForceSetCurrentCode: boolean;
|
||||
readonly asForceSetCurrentCode: {
|
||||
@@ -1199,7 +1199,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction' | 'AddTrustedValidationCode' | 'PokeUnusedValidationCode' | 'IncludePvfCheckStatement';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV2PvfCheckStatement (393) */
|
||||
/** @name PolkadotPrimitivesV2PvfCheckStatement (394) */
|
||||
export interface PolkadotPrimitivesV2PvfCheckStatement extends Struct {
|
||||
readonly accept: bool;
|
||||
readonly subject: H256;
|
||||
@@ -1207,7 +1207,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly validatorIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInitializerPalletCall (394) */
|
||||
/** @name PolkadotRuntimeParachainsInitializerPalletCall (395) */
|
||||
export interface PolkadotRuntimeParachainsInitializerPalletCall extends Enum {
|
||||
readonly isForceApprove: boolean;
|
||||
readonly asForceApprove: {
|
||||
@@ -1216,10 +1216,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceApprove';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDmpPalletCall (395) */
|
||||
/** @name PolkadotRuntimeParachainsDmpPalletCall (396) */
|
||||
export type PolkadotRuntimeParachainsDmpPalletCall = Null;
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletCall (396) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletCall (397) */
|
||||
export interface PolkadotRuntimeParachainsUmpPalletCall extends Enum {
|
||||
readonly isServiceOverweight: boolean;
|
||||
readonly asServiceOverweight: {
|
||||
@@ -1229,7 +1229,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ServiceOverweight';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletCall (397) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletCall (398) */
|
||||
export interface PolkadotRuntimeParachainsHrmpPalletCall extends Enum {
|
||||
readonly isHrmpInitOpenChannel: boolean;
|
||||
readonly asHrmpInitOpenChannel: {
|
||||
@@ -1267,13 +1267,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (398) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (399) */
|
||||
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
||||
readonly isForceUnfreeze: boolean;
|
||||
readonly type: 'ForceUnfreeze';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (399) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (400) */
|
||||
export interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
|
||||
readonly isRegister: boolean;
|
||||
readonly asRegister: {
|
||||
@@ -1306,7 +1306,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'ForceRemoveLock' | 'Reserve';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (400) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (401) */
|
||||
export interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
|
||||
readonly isForceLease: boolean;
|
||||
readonly asForceLease: {
|
||||
@@ -1327,7 +1327,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (401) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (402) */
|
||||
export interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
|
||||
readonly isNewAuction: boolean;
|
||||
readonly asNewAuction: {
|
||||
@@ -1346,7 +1346,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (403) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (404) */
|
||||
export interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
|
||||
readonly isCreate: boolean;
|
||||
readonly asCreate: {
|
||||
@@ -1402,7 +1402,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeMultiSigner (405) */
|
||||
/** @name SpRuntimeMultiSigner (406) */
|
||||
export interface SpRuntimeMultiSigner extends Enum {
|
||||
readonly isEd25519: boolean;
|
||||
readonly asEd25519: SpCoreEd25519Public;
|
||||
@@ -1413,10 +1413,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||
}
|
||||
|
||||
/** @name SpCoreEcdsaPublic (406) */
|
||||
/** @name SpCoreEcdsaPublic (407) */
|
||||
export interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||
|
||||
/** @name PalletXcmCall (411) */
|
||||
/** @name PalletXcmCall (412) */
|
||||
export interface PalletXcmCall extends Enum {
|
||||
readonly isSend: boolean;
|
||||
readonly asSend: {
|
||||
@@ -1478,7 +1478,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedXcm (412) */
|
||||
/** @name XcmVersionedXcm (413) */
|
||||
export interface XcmVersionedXcm extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly asV0: XcmV0Xcm;
|
||||
@@ -1489,7 +1489,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V0' | 'V1' | 'V2';
|
||||
}
|
||||
|
||||
/** @name XcmV0Xcm (413) */
|
||||
/** @name XcmV0Xcm (414) */
|
||||
export interface XcmV0Xcm extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: {
|
||||
@@ -1552,7 +1552,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
|
||||
}
|
||||
|
||||
/** @name XcmV0Order (415) */
|
||||
/** @name XcmV0Order (416) */
|
||||
export interface XcmV0Order extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isDepositAsset: boolean;
|
||||
@@ -1600,14 +1600,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
|
||||
}
|
||||
|
||||
/** @name XcmV0Response (417) */
|
||||
/** @name XcmV0Response (418) */
|
||||
export interface XcmV0Response extends Enum {
|
||||
readonly isAssets: boolean;
|
||||
readonly asAssets: Vec<XcmV0MultiAsset>;
|
||||
readonly type: 'Assets';
|
||||
}
|
||||
|
||||
/** @name XcmV1Xcm (418) */
|
||||
/** @name XcmV1Xcm (419) */
|
||||
export interface XcmV1Xcm extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: {
|
||||
@@ -1676,7 +1676,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
||||
}
|
||||
|
||||
/** @name XcmV1Order (420) */
|
||||
/** @name XcmV1Order (421) */
|
||||
export interface XcmV1Order extends Enum {
|
||||
readonly isNoop: boolean;
|
||||
readonly isDepositAsset: boolean;
|
||||
@@ -1726,7 +1726,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
|
||||
}
|
||||
|
||||
/** @name XcmV1Response (422) */
|
||||
/** @name XcmV1Response (423) */
|
||||
export interface XcmV1Response extends Enum {
|
||||
readonly isAssets: boolean;
|
||||
readonly asAssets: XcmV1MultiassetMultiAssets;
|
||||
@@ -1735,7 +1735,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Assets' | 'Version';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletError (540) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletError (541) */
|
||||
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
||||
readonly isInvalidEthereumSignature: boolean;
|
||||
readonly isSignerHasNoClaim: boolean;
|
||||
@@ -1746,7 +1746,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (595) */
|
||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (596) */
|
||||
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||
readonly maxCodeSize: u32;
|
||||
readonly maxHeadDataSize: u32;
|
||||
@@ -1793,50 +1793,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly minimumValidationUpgradeDelay: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (596) */
|
||||
export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct {
|
||||
readonly maxCodeSize: u32;
|
||||
readonly maxHeadDataSize: u32;
|
||||
readonly maxUpwardQueueCount: u32;
|
||||
readonly maxUpwardQueueSize: u32;
|
||||
readonly maxUpwardMessageSize: u32;
|
||||
readonly maxUpwardMessageNumPerCandidate: u32;
|
||||
readonly hrmpMaxMessageNumPerCandidate: u32;
|
||||
readonly validationUpgradeFrequency: u32;
|
||||
readonly validationUpgradeDelay: u32;
|
||||
readonly maxPovSize: u32;
|
||||
readonly maxDownwardMessageSize: u32;
|
||||
readonly umpServiceTotalWeight: u64;
|
||||
readonly hrmpMaxParachainOutboundChannels: u32;
|
||||
readonly hrmpMaxParathreadOutboundChannels: u32;
|
||||
readonly hrmpSenderDeposit: u128;
|
||||
readonly hrmpRecipientDeposit: u128;
|
||||
readonly hrmpChannelMaxCapacity: u32;
|
||||
readonly hrmpChannelMaxTotalSize: u32;
|
||||
readonly hrmpMaxParachainInboundChannels: u32;
|
||||
readonly hrmpMaxParathreadInboundChannels: u32;
|
||||
readonly hrmpChannelMaxMessageSize: u32;
|
||||
readonly codeRetentionPeriod: u32;
|
||||
readonly parathreadCores: u32;
|
||||
readonly parathreadRetries: u32;
|
||||
readonly groupRotationFrequency: u32;
|
||||
readonly chainAvailabilityPeriod: u32;
|
||||
readonly threadAvailabilityPeriod: u32;
|
||||
readonly schedulingLookahead: u32;
|
||||
readonly maxValidatorsPerCore: Option<u32>;
|
||||
readonly maxValidators: Option<u32>;
|
||||
readonly disputePeriod: u32;
|
||||
readonly disputePostConclusionAcceptancePeriod: u32;
|
||||
readonly disputeMaxSpamSlots: u32;
|
||||
readonly disputeConclusionByTimeOutPeriod: u32;
|
||||
readonly noShowSlots: u32;
|
||||
readonly nDelayTranches: u32;
|
||||
readonly zerothDelayTrancheWidth: u32;
|
||||
readonly neededApprovals: u32;
|
||||
readonly relayVrfModuloSamples: u32;
|
||||
readonly umpMaxIndividualWeight: u64;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (599) */
|
||||
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
||||
readonly isInvalidNewValue: boolean;
|
||||
|
||||
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: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -53,7 +53,7 @@ import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, Vouching
|
||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
||||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
||||
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
||||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
||||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModuleU8a, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
||||
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||
import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||
import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';
|
||||
@@ -307,6 +307,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
DispatchClass: DispatchClass;
|
||||
DispatchError: DispatchError;
|
||||
DispatchErrorModule: DispatchErrorModule;
|
||||
DispatchErrorModuleU8a: DispatchErrorModuleU8a;
|
||||
DispatchErrorTo198: DispatchErrorTo198;
|
||||
DispatchFeePayment: DispatchFeePayment;
|
||||
DispatchInfo: DispatchInfo;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -20,16 +20,16 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-augment": "7.14.2",
|
||||
"@polkadot/types-support": "7.14.2",
|
||||
"@polkadot/util-crypto": "^8.7.1"
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-augment": "8.2.1",
|
||||
"@polkadot/types-support": "8.2.1",
|
||||
"@polkadot/util-crypto": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -60,7 +60,7 @@ export interface Registry {
|
||||
createdAtHash?: IU8a;
|
||||
|
||||
findMetaCall (callIndex: Uint8Array): CallFunction;
|
||||
findMetaError (errorIndex: Uint8Array | { error: BN, index: BN }): RegistryError;
|
||||
findMetaError (errorIndex: Uint8Array | { error: BN, index: BN } | { error: BN | Uint8Array, index: BN }): RegistryError;
|
||||
findMetaEvent (eventIndex: Uint8Array): CodecClass<any>;
|
||||
|
||||
isLookupType (value: string): boolean;
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "7.14.2"
|
||||
"@polkadot/types": "8.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/networks": "^8.7.1",
|
||||
"@polkadot/types": "7.14.2",
|
||||
"@polkadot/types-codec": "7.14.2",
|
||||
"@polkadot/types-create": "7.14.2",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/networks": "^9.0.1",
|
||||
"@polkadot/types": "8.2.1",
|
||||
"@polkadot/types-codec": "8.2.1",
|
||||
"@polkadot/types-create": "8.2.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.14.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '8.2.1' };
|
||||
|
||||
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
|
||||
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
|
||||
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
|
||||
[11006614, 9151], [11404482, 9160], [11601803, 9170]
|
||||
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -10,7 +10,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
|
||||
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
|
||||
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
|
||||
[8115869, 9140], [8638103, 9151], [9280179, 9170]
|
||||
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -12,7 +12,8 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[5124076, 50], [5478664, 900], [5482450, 9000], [5584305, 9010], [5784566, 9030],
|
||||
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
|
||||
[6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
|
||||
[7968866, 9121], [7982889, 9122]
|
||||
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
|
||||
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "7.14.2",
|
||||
"version": "8.2.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.8",
|
||||
"@polkadot/util": "^8.7.1"
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user