Compare commits

..
22 Commits
Author SHA1 Message Date
github-actions[bot] 7a6d19d241 [CI Skip] release/stable 7.15.1
skip-checks: true
2022-04-03 06:07:54 +00:00
Jaco f4a590d7f8 7.15.1 (#4714) 2022-04-03 08:59:31 +03:00
github-actions[bot] 771e5f3bcf [CI Skip] release/beta 7.14.4-9
skip-checks: true
2022-04-02 16:32:54 +00:00
Jaco 1ba427356d Kusama & Westend upgrade blocks (#4713) 2022-04-02 19:24:34 +03:00
github-actions[bot] aad497e9d2 [CI Skip] release/beta 7.14.4-8
skip-checks: true
2022-04-02 10:38:12 +00:00
Jaco 95fc2b2c99 Bump static metadata (#4712) 2022-04-02 13:28:40 +03:00
github-actions[bot] b7b707249b [CI Skip] release/beta 7.14.4-7
skip-checks: true
2022-04-01 08:00:13 +00:00
Jaco ce95e305f3 Bump dev deps (#4711) 2022-04-01 10:50:46 +03:00
github-actions[bot] 4ea793f55e [CI Skip] release/beta 7.14.4-6
skip-checks: true
2022-03-31 13:52:55 +00:00
Jaco bb0b365dfe Lazy crypto init (#4709) 2022-03-31 16:45:09 +03:00
github-actions[bot] 756f817d93 [CI Skip] release/beta 7.14.4-5
skip-checks: true
2022-03-31 07:56:48 +00:00
Jaco df4bda1fc8 Promise cache for metadata from version (improves parallel) (#4708)
* Cache for metadata from version (improves parallel)

* Ordering

* Single waiting placeholder

* Dedupe

* Sprinkle in await

* Tighten up with HexString

* CHANGELOG
2022-03-31 10:46:46 +03:00
github-actions[bot] a98e9543b8 [CI Skip] release/beta 7.14.4-4
skip-checks: true
2022-03-30 15:07:08 +00:00
Jaco 84abaff414 DispatchError.error as [u8; 4] (#4570)
* DispatchError.error as [u8; 4]

* Adjust Error.is

* Adjust

* Adjust

* U8a applies to error only

* CHANGELOG
2022-03-30 17:57:41 +03:00
github-actions[bot] 29d5460cdd [CI Skip] release/beta 7.14.4-3
skip-checks: true
2022-03-30 14:51:41 +00:00
HackFisher e2d0de4f6c Update maxExtrinsic definition (#4703)
Related https://github.com/polkadot-js/api/pull/4702

Sorry thatI shouldn't modify the auto-generated file `types.ts` which was later get reverted by `[CI Skip] release/beta 7.14.4-1`:

https://github.com/polkadot-js/api/commit/6fb6c40c7dd073b7715f9a7fa7628f4b62ab99a8
2022-03-30 17:41:28 +03:00
github-actions[bot] 8e32777efa [CI Skip] release/beta 7.14.4-2
skip-checks: true
2022-03-30 08:26:59 +00:00
Xiliang Chen 39b1de326c implement entriesPaged and keysPages for query at (#4701)
* implement entriesPaged and keysPages for query at

* remove redudent declaration
2022-03-30 11:17:54 +03:00
github-actions[bot] 6fb6c40c7d [CI Skip] release/beta 7.14.4-1
skip-checks: true
2022-03-30 05:02:17 +00:00
HackFisher badb10bdd9 Fix types for maxExtrinsic (#4702)
Ref: https://github.com/paritytech/substrate/blob/41567c30da77a2546a90c1049042ebd7b0b09bc4/frame/system/src/limits.rs#L99-L102
2022-03-30 07:52:05 +03:00
github-actions[bot] 235a7b1aa9 [CI Skip] release/beta 7.14.4-0
skip-checks: true
2022-03-29 04:34:42 +00:00
Josep M Sobrepere b7d65fb506 fix: export substrate-connect WellKnownChain (#4700) 2022-03-29 07:24:57 +03:00
70 changed files with 977 additions and 574 deletions
+17
View File
@@ -1,5 +1,22 @@
# CHANGELOG
## 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:
+4 -3
View File
@@ -1,10 +1,10 @@
2886 Jaco 7.14.3 (#4699)
2893 Jaco 7.15.1 (#4714)
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)
@@ -30,8 +30,10 @@
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 Josep M Sobrepere fix: export substrate-connect `WellKnownChain` (#4700)
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
2 MOZGIII Follow-up fix after #4665 (#4666)
2 Nikos Kontakis Add auction in shared types (#4085)
@@ -65,7 +67,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)
+2 -2
View File
@@ -11,7 +11,7 @@
},
"sideEffects": false,
"type": "commonjs",
"version": "7.14.3",
"version": "7.15.1",
"workspaces": [
"packages/*"
],
@@ -34,7 +34,7 @@
"@babel/core": "^7.17.8",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.17.8",
"@polkadot/dev": "^0.65.101",
"@polkadot/dev": "^0.65.103",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^27.4.1",
"copyfiles": "^2.4.1"
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/api-base": "7.14.3",
"@polkadot/rpc-augment": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-augment": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/api-base": "7.15.1",
"@polkadot/rpc-augment": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-augment": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/util": "^8.7.1"
},
"devDependencies": {
"@polkadot/types-support": "7.14.3"
"@polkadot/types-support": "7.15.1"
}
}
+25 -19
View File
@@ -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,11 +182,6 @@ 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.
**/
@@ -279,6 +284,16 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
electionProviderMultiPhase: {
/**
* 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.
*
@@ -349,15 +364,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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
**/
@@ -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
**/
+18 -12
View File
@@ -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
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.15.1' };
+25 -19
View File
@@ -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,11 +182,6 @@ 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.
**/
@@ -279,6 +284,16 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
electionProviderMultiPhase: {
/**
* 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.
*
@@ -349,15 +364,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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
**/
@@ -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
**/
+18 -12
View File
@@ -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
+26 -30
View File
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, 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,11 +196,6 @@ 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.
**/
@@ -340,6 +345,16 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
electionProviderMultiPhase: {
/**
* 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.
*
@@ -410,15 +425,6 @@ declare module '@polkadot/api-base/types/consts' {
* 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 +835,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).
@@ -1451,6 +1451,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,
**/
@@ -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
**/
@@ -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
**/
+17 -1
View File
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { 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> {
@@ -3795,6 +3795,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 +3823,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
**/
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/rpc-core": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/rpc-core": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/util": "^8.7.1",
"rxjs": "^7.5.5"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.15.1' };
+2 -2
View File
@@ -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>;
}
+6 -6
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/api": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-create": "7.14.3",
"@polkadot/api": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/types-create": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/util-crypto": "^8.7.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api-augment": "7.14.3",
"@polkadot/api-augment": "7.15.1",
"@polkadot/keyring": "^8.7.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.15.1' };
+12 -12
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/api": "7.14.3",
"@polkadot/api-augment": "7.14.3",
"@polkadot/api-base": "7.14.3",
"@polkadot/rpc-core": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/api": "7.15.1",
"@polkadot/api-augment": "7.15.1",
"@polkadot/api-base": "7.15.1",
"@polkadot/rpc-core": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/util-crypto": "^8.7.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api": "7.14.3",
"@polkadot/api-augment": "7.14.3",
"@polkadot/rpc-augment": "7.14.3",
"@polkadot/rpc-provider": "7.14.3",
"@polkadot/types-support": "7.14.3"
"@polkadot/api": "7.15.1",
"@polkadot/api-augment": "7.15.1",
"@polkadot/rpc-augment": "7.15.1",
"@polkadot/rpc-provider": "7.15.1",
"@polkadot/types-support": "7.15.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.15.1' };
+14 -14
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/api-augment": "7.14.3",
"@polkadot/api-base": "7.14.3",
"@polkadot/api-derive": "7.14.3",
"@polkadot/api-augment": "7.15.1",
"@polkadot/api-base": "7.15.1",
"@polkadot/api-derive": "7.15.1",
"@polkadot/keyring": "^8.7.1",
"@polkadot/rpc-augment": "7.14.3",
"@polkadot/rpc-core": "7.14.3",
"@polkadot/rpc-provider": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-augment": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-create": "7.14.3",
"@polkadot/types-known": "7.14.3",
"@polkadot/rpc-augment": "7.15.1",
"@polkadot/rpc-core": "7.15.1",
"@polkadot/rpc-provider": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-augment": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/types-create": "7.15.1",
"@polkadot/types-known": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/util-crypto": "^8.7.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api-augment": "7.14.3",
"@polkadot/types-support": "7.14.3"
"@polkadot/api-augment": "7.15.1",
"@polkadot/types-support": "7.15.1"
}
}
+15 -7
View File
@@ -543,7 +543,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 +556,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 +610,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) {
@@ -703,13 +711,13 @@ 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);
return this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey).pipe(
return this._rpcCore.state.getKeysPaged(headKey, opts.pageSize, opts.startKey || headKey, at).pipe(
map((keys) => keys.map(setMeta))
);
}
@@ -732,11 +740,11 @@ 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][]> {
return this._retrieveMapKeysPaged(entry, at, opts).pipe(
switchMap((keys) =>
keys.length
? this._rpcCore.state.queryStorageAt(keys).pipe(
? this._rpcCore.state.queryStorageAt(keys, at).pipe(
map((valsArr) =>
valsArr.map((value, index): [StorageKey, Codec] => [keys[index], value])
)
+59 -57
View File
@@ -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();
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.15.1' };
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/rpc-core": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/rpc-core": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/util": "^8.7.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.15.1' };
+5 -5
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/rpc-augment": "7.14.3",
"@polkadot/rpc-provider": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/rpc-augment": "7.15.1",
"@polkadot/rpc-provider": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/util": "^8.7.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^8.7.1",
"@polkadot/rpc-augment": "7.14.3"
"@polkadot/rpc-augment": "7.15.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.15.1' };
+3 -3
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/keyring": "^8.7.1",
"@polkadot/types": "7.14.3",
"@polkadot/types-support": "7.14.3",
"@polkadot/types": "7.15.1",
"@polkadot/types-support": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/util-crypto": "^8.7.1",
"@polkadot/x-fetch": "^8.7.1",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.15.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;
+10 -10
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,15 +33,15 @@
"@babel/core": "^7.17.8",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.17.8",
"@polkadot/api": "7.14.3",
"@polkadot/api-augment": "7.14.3",
"@polkadot/rpc-augment": "7.14.3",
"@polkadot/rpc-provider": "7.14.3",
"@polkadot/types": "7.14.3",
"@polkadot/types-augment": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-create": "7.14.3",
"@polkadot/types-support": "7.14.3",
"@polkadot/api": "7.15.1",
"@polkadot/api-augment": "7.15.1",
"@polkadot/rpc-augment": "7.15.1",
"@polkadot/rpc-provider": "7.15.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-augment": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/types-create": "7.15.1",
"@polkadot/types-support": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/x-ws": "^8.7.1",
"handlebars": "^4.7.7",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.15.1' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/types": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/util": "^8.7.1"
}
}
+25 -10
View File
@@ -130,7 +130,7 @@ export default {
**/
SpRuntimeModuleError: {
index: 'u8',
error: 'u8'
error: '[u8;4]'
},
/**
* Lookup24: sp_runtime::TokenError
@@ -848,6 +848,12 @@ export default {
callHash: 'H256',
},
ProxyAdded: {
delegator: 'AccountId32',
delegatee: 'AccountId32',
proxyType: 'NodeRuntimeProxyType',
delay: 'u32',
},
ProxyRemoved: {
delegator: 'AccountId32',
delegatee: 'AccountId32',
proxyType: 'NodeRuntimeProxyType',
@@ -1281,7 +1287,7 @@ export default {
}
},
/**
* Lookup100: pallet_referenda::pallet::Event<T>
* Lookup100: pallet_referenda::pallet::Event<T, I>
**/
PalletReferendaEvent: {
_enum: {
@@ -1350,7 +1356,7 @@ export default {
turnout: 'u128'
},
/**
* Lookup102: pallet_conviction_voting::pallet::Event<T>
* Lookup102: pallet_conviction_voting::pallet::Event<T, I>
**/
PalletConvictionVotingEvent: {
_enum: {
@@ -3153,7 +3159,14 @@ export default {
migrate_custom_child: {
root: 'Bytes',
childKeys: 'Vec<Bytes>',
totalSize: 'u32'
totalSize: 'u32',
},
set_signed_max_limits: {
limits: 'PalletStateTrieMigrationMigrationLimits',
},
force_set_progress: {
progressTop: 'PalletStateTrieMigrationProgress',
progressChild: 'PalletStateTrieMigrationProgress'
}
}
},
@@ -3230,7 +3243,7 @@ export default {
}
},
/**
* Lookup329: pallet_referenda::pallet::Call<T>
* Lookup329: pallet_referenda::pallet::Call<T, I>
**/
PalletReferendaCall: {
_enum: {
@@ -3315,7 +3328,7 @@ export default {
}
},
/**
* Lookup336: pallet_conviction_voting::pallet::Call<T>
* Lookup336: pallet_conviction_voting::pallet::Call<T, I>
**/
PalletConvictionVotingCall: {
_enum: {
@@ -3592,7 +3605,7 @@ export default {
* Lookup401: pallet_staking::Releases
**/
PalletStakingReleases: {
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0']
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0', 'V9_0_0']
},
/**
* Lookup402: pallet_staking::pallet::pallet::Error<T>
@@ -3916,6 +3929,8 @@ export default {
},
caller: 'u64',
isContract: 'u64',
codeHash: 'u64',
ownCodeHash: 'u64',
callerIsOrigin: 'u64',
address: 'u64',
gasLeft: 'u64',
@@ -4412,7 +4427,7 @@ export default {
* Lookup558: pallet_state_trie_migration::pallet::Error<T>
**/
PalletStateTrieMigrationError: {
_enum: ['MaxSignedLimits', 'NotEnoughFunds', 'BadWitness', 'SizeUpperBoundExceeded']
_enum: ['MaxSignedLimits', 'NotEnoughFunds', 'BadWitness', 'SizeUpperBoundExceeded', 'SignedMigrationNotAllowed']
},
/**
* Lookup559: pallet_child_bounties::ChildBounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
@@ -4493,7 +4508,7 @@ export default {
confirming: 'Option<u32>'
},
/**
* Lookup571: pallet_referenda::pallet::Error<T>
* Lookup571: pallet_referenda::pallet::Error<T, I>
**/
PalletReferendaError: {
_enum: ['NotOngoing', 'HasDeposit', 'BadTrack', 'Full', 'QueueEmpty', 'BadReferendum', 'NothingToDo', 'NoTrack', 'Unfinished', 'NoPermission', 'NoDeposit']
@@ -4537,7 +4552,7 @@ export default {
prior: 'PalletConvictionVotingVotePriorLock'
},
/**
* Lookup583: pallet_conviction_voting::pallet::Error<T>
* Lookup583: pallet_conviction_voting::pallet::Error<T, I>
**/
PalletConvictionVotingError: {
_enum: ['NotOngoing', 'NotVoter', 'NoPermission', 'NoPermissionYet', 'AlreadyDelegating', 'AlreadyVoting', 'InsufficientFunds', 'NotDelegating', 'Nonsense', 'MaxVotesReached', 'ClassNeeded', 'BadClass']
@@ -129,7 +129,7 @@ declare module '@polkadot/types/lookup' {
/** @name SpRuntimeModuleError (23) */
export interface SpRuntimeModuleError extends Struct {
readonly index: u8;
readonly error: u8;
readonly error: U8aFixed;
}
/** @name SpRuntimeTokenError (24) */
@@ -941,7 +941,14 @@ declare module '@polkadot/types/lookup' {
readonly proxyType: NodeRuntimeProxyType;
readonly delay: u32;
} & Struct;
readonly type: 'ProxyExecuted' | 'AnonymousCreated' | 'Announced' | 'ProxyAdded';
readonly isProxyRemoved: boolean;
readonly asProxyRemoved: {
readonly delegator: AccountId32;
readonly delegatee: AccountId32;
readonly proxyType: NodeRuntimeProxyType;
readonly delay: u32;
} & Struct;
readonly type: 'ProxyExecuted' | 'AnonymousCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved';
}
/** @name NodeRuntimeProxyType (79) */
@@ -3408,7 +3415,16 @@ declare module '@polkadot/types/lookup' {
readonly childKeys: Vec<Bytes>;
readonly totalSize: u32;
} & Struct;
readonly type: 'ControlAutoMigration' | 'ContinueMigrate' | 'MigrateCustomTop' | 'MigrateCustomChild';
readonly isSetSignedMaxLimits: boolean;
readonly asSetSignedMaxLimits: {
readonly limits: PalletStateTrieMigrationMigrationLimits;
} & Struct;
readonly isForceSetProgress: boolean;
readonly asForceSetProgress: {
readonly progressTop: PalletStateTrieMigrationProgress;
readonly progressChild: PalletStateTrieMigrationProgress;
} & Struct;
readonly type: 'ControlAutoMigration' | 'ContinueMigrate' | 'MigrateCustomTop' | 'MigrateCustomChild' | 'SetSignedMaxLimits' | 'ForceSetProgress';
}
/** @name PalletStateTrieMigrationMigrationLimits (325) */
@@ -3874,7 +3890,8 @@ declare module '@polkadot/types/lookup' {
readonly isV600: boolean;
readonly isV700: boolean;
readonly isV800: boolean;
readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V700' | 'V800';
readonly isV900: boolean;
readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V700' | 'V800' | 'V900';
}
/** @name PalletStakingPalletError (402) */
@@ -4261,6 +4278,8 @@ declare module '@polkadot/types/lookup' {
export interface PalletContractsScheduleHostFnWeights extends Struct {
readonly caller: u64;
readonly isContract: u64;
readonly codeHash: u64;
readonly ownCodeHash: u64;
readonly callerIsOrigin: u64;
readonly address: u64;
readonly gasLeft: u64;
@@ -4907,7 +4926,8 @@ declare module '@polkadot/types/lookup' {
readonly isNotEnoughFunds: boolean;
readonly isBadWitness: boolean;
readonly isSizeUpperBoundExceeded: boolean;
readonly type: 'MaxSignedLimits' | 'NotEnoughFunds' | 'BadWitness' | 'SizeUpperBoundExceeded';
readonly isSignedMigrationNotAllowed: boolean;
readonly type: 'MaxSignedLimits' | 'NotEnoughFunds' | 'BadWitness' | 'SizeUpperBoundExceeded' | 'SignedMigrationNotAllowed';
}
/** @name PalletChildBountiesChildBounty (559) */
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '7.15.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;
+4 -4
View File
@@ -20,16 +20,16 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/util": "^8.7.1"
},
"devDependencies": {
"@polkadot/types": "7.14.3",
"@polkadot/types-augment": "7.14.3",
"@polkadot/types-support": "7.14.3",
"@polkadot/types": "7.15.1",
"@polkadot/types-augment": "7.15.1",
"@polkadot/types-support": "7.15.1",
"@polkadot/util-crypto": "^8.7.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '7.15.1' };
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-codec": "7.15.1",
"@polkadot/util": "^8.7.1"
},
"devDependencies": {
"@polkadot/types": "7.14.3"
"@polkadot/types": "7.15.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '7.15.1' };
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/networks": "^8.7.1",
"@polkadot/types": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-create": "7.14.3",
"@polkadot/types": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/types-create": "7.15.1",
"@polkadot/util": "^8.7.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '7.15.1' };
+1 -1
View File
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
[11006614, 9151], [11404482, 9160], [11601803, 9170]
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180]
];
export default upgrades;
+2 -1
View File
@@ -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]
];
export default upgrades;
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
File diff suppressed because one or more lines are too long
@@ -233,7 +233,7 @@
{
"name": "BlockWeights",
"type": 159,
"value": "0x00f2052a0100000000204aa9d1010000405973070000000001c0766c8f58010000010098f73e5d010000010000000000000000405973070000000001c0febef9cc0100000100204aa9d1010000010088526a740000004059730700000000000000",
"value": "0xb04971f80000000000204aa9d1010000300bca040000000001d0c4159258010000010098f73e5d010000010000000000000000300bca040000000001d04c68fccc0100000100204aa9d1010000010088526a74000000300bca0400000000000000",
"docs": [
" Block & extrinsics weights: base values and limits."
]
@@ -265,7 +265,7 @@
{
"name": "Version",
"type": 166,
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000dc2300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a05000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000dd2300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
"docs": [
" Get the chain's current version."
]
@@ -855,7 +855,7 @@
{
"name": "WeightToFee",
"type": 207,
"value": "0x0400000000000000000000000000000000a9e696010001",
"value": "0x0400000000000000000000000000000000700379020001",
"docs": [
" The polynomial that is applied in order to derive fee from weight."
]
@@ -4048,12 +4048,30 @@
]
},
{
"name": "BountyCuratorDeposit",
"name": "CuratorDepositMultiplier",
"type": 561,
"value": "0x20a10700",
"docs": [
" Percentage of the curator fee that will be reserved upfront as deposit for bounty",
" curator."
" The curator deposit is calculated as a percentage of the curator fee.",
"",
" This deposit has optional upper and lower bounds with `CuratorDepositMax` and",
" `CuratorDepositMin`."
]
},
{
"name": "CuratorDepositMax",
"type": 562,
"value": "0x01042669e1030000000000000000000000",
"docs": [
" Maximum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
"name": "CuratorDepositMin",
"type": 562,
"value": "0x015243de13000000000000000000000000",
"docs": [
" Minimum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
@@ -4198,15 +4216,6 @@
"docs": [
" Minimum value for a child-bounty."
]
},
{
"name": "ChildBountyCuratorDepositBase",
"type": 561,
"value": "0x10270000",
"docs": [
" Percentage of child-bounty value to be reserved as curator deposit",
" when curator fee is zero."
]
}
],
"errors": {
@@ -4523,7 +4532,7 @@
{
"name": "MinerMaxWeight",
"type": 8,
"value": "0xc084666557010000",
"value": "0x207ba49957010000",
"docs": [
" Maximum weight that the miner should consume.",
"",
@@ -4548,7 +4557,7 @@
{
"name": "SignedMaxWeight",
"type": 8,
"value": "0xc084666557010000",
"value": "0x207ba49957010000",
"docs": [
" Maximum weight of a signed solution.",
"",
@@ -4588,16 +4597,21 @@
]
},
{
"name": "VoterSnapshotPerBlock",
"name": "MaxElectingVoters",
"type": 4,
"value": "0xe4570000",
"value": "0xd4300000",
"docs": [
" 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."
" 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."
]
},
{
"name": "MaxElectableTargets",
"type": 76,
"value": "0xffff",
"docs": [
" The maximum number of electable targets to put in the snapshot."
]
},
{
@@ -1334,8 +1334,8 @@
},
{
"name": "error",
"type": 2,
"typeName": "u8",
"type": 14,
"typeName": "[u8; MAX_MODULE_ERROR_ENCODED_SIZE]",
"docs": []
}
]
@@ -5229,6 +5229,39 @@
"docs": [
"A proxy was added."
]
},
{
"name": "ProxyRemoved",
"fields": [
{
"name": "delegator",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "delegatee",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "proxy_type",
"type": 75,
"typeName": "T::ProxyType",
"docs": []
},
{
"name": "delay",
"type": 4,
"typeName": "T::BlockNumber",
"docs": []
}
],
"index": 4,
"docs": [
"A proxy was removed."
]
}
]
}
@@ -15084,6 +15117,12 @@
"fields": [],
"index": 7,
"docs": []
},
{
"name": "V9_0_0",
"fields": [],
"index": 8,
"docs": []
}
]
}
@@ -32015,9 +32054,9 @@
"docs": [
"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",
@@ -32060,12 +32099,12 @@
],
"index": 2,
"docs": [
"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",
@@ -32228,10 +32267,13 @@
],
"index": 8,
"docs": [
"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",
@@ -32283,7 +32325,10 @@
"docs": [
"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",
File diff suppressed because one or more lines are too long
@@ -233,7 +233,7 @@
{
"name": "BlockWeights",
"type": 156,
"value": "0x00f2052a0100000000204aa9d1010000405973070000000001c0766c8f58010000010098f73e5d010000010000000000000000405973070000000001c0febef9cc0100000100204aa9d1010000010088526a740000004059730700000000000000",
"value": "0xb0fc6d0c0100000000204aa9d10100005844f0040000000001a88bef9158010000010098f73e5d0100000100000000000000005844f0040000000001a81342fccc0100000100204aa9d1010000010088526a740000005844f00400000000000000",
"docs": [
" Block & extrinsics weights: base values and limits."
]
@@ -257,7 +257,7 @@
{
"name": "DbWeight",
"type": 162,
"value": "0x40787d010000000000e1f50500000000",
"value": "0x38ca38010000000098aaf90400000000",
"docs": [
" The weight of runtime database operations the runtime can invoke."
]
@@ -265,7 +265,7 @@
{
"name": "Version",
"type": 163,
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000dc2300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a05000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000dd2300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
"docs": [
" Get the chain's current version."
]
@@ -980,7 +980,7 @@
{
"name": "WeightToFee",
"type": 462,
"value": "0x040000000000000000000000000000000000b4c4040001",
"value": "0x040000000000000000000000000000000028a031070001",
"docs": [
" The polynomial that is applied in order to derive fee from weight."
]
@@ -3607,12 +3607,30 @@
]
},
{
"name": "BountyCuratorDeposit",
"name": "CuratorDepositMultiplier",
"type": 536,
"value": "0x20a10700",
"docs": [
" Percentage of the curator fee that will be reserved upfront as deposit for bounty",
" curator."
" The curator deposit is calculated as a percentage of the curator fee.",
"",
" This deposit has optional upper and lower bounds with `CuratorDepositMax` and",
" `CuratorDepositMin`."
]
},
{
"name": "CuratorDepositMax",
"type": 537,
"value": "0x0100204aa9d10100000000000000000000",
"docs": [
" Maximum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
"name": "CuratorDepositMin",
"type": 537,
"value": "0x0100e87648170000000000000000000000",
"docs": [
" Minimum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
@@ -3757,15 +3775,6 @@
"docs": [
" Minimum value for a child-bounty."
]
},
{
"name": "ChildBountyCuratorDepositBase",
"type": 536,
"value": "0x10270000",
"docs": [
" Percentage of child-bounty value to be reserved as curator deposit",
" when curator fee is zero."
]
}
],
"errors": {
@@ -4082,7 +4091,7 @@
{
"name": "MinerMaxWeight",
"type": 8,
"value": "0xc084666557010000",
"value": "0xf88e818557010000",
"docs": [
" Maximum weight that the miner should consume.",
"",
@@ -4107,7 +4116,7 @@
{
"name": "SignedMaxWeight",
"type": 8,
"value": "0xc084666557010000",
"value": "0xf88e818557010000",
"docs": [
" Maximum weight of a signed solution.",
"",
@@ -4147,16 +4156,21 @@
]
},
{
"name": "VoterSnapshotPerBlock",
"name": "MaxElectingVoters",
"type": 4,
"value": "0xe4570000",
"docs": [
" 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."
" 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."
]
},
{
"name": "MaxElectableTargets",
"type": 75,
"value": "0xffff",
"docs": [
" The maximum number of electable targets to put in the snapshot."
]
},
{
@@ -1295,8 +1295,8 @@
},
{
"name": "error",
"type": 2,
"typeName": "u8",
"type": 14,
"typeName": "[u8; MAX_MODULE_ERROR_ENCODED_SIZE]",
"docs": []
}
]
@@ -4795,6 +4795,39 @@
"docs": [
"A proxy was added."
]
},
{
"name": "ProxyRemoved",
"fields": [
{
"name": "delegator",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "delegatee",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "proxy_type",
"type": 74,
"typeName": "T::ProxyType",
"docs": []
},
{
"name": "delay",
"type": 4,
"typeName": "T::BlockNumber",
"docs": []
}
],
"index": 4,
"docs": [
"A proxy was removed."
]
}
]
}
@@ -26751,9 +26784,9 @@
"docs": [
"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",
@@ -26796,12 +26829,12 @@
],
"index": 2,
"docs": [
"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",
@@ -26964,10 +26997,13 @@
],
"index": 8,
"docs": [
"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",
@@ -27019,7 +27055,10 @@
"docs": [
"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",
@@ -31632,6 +31671,12 @@
"fields": [],
"index": 7,
"docs": []
},
{
"name": "V9_0_0",
"fields": [],
"index": 8,
"docs": []
}
]
}
File diff suppressed because one or more lines are too long
@@ -265,7 +265,7 @@
{
"name": "Version",
"type": 125,
"value": "0x106e6f6465387375627374726174652d6e6f64650a0000000c0100000000000034df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a05000000d2bc9897eed08f1503000000f78b278be53f454c02000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b010000000200000001",
"value": "0x106e6f6465387375627374726174652d6e6f64650a0000000c0100000000000034df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a80100000091d5df18b0d2cf5801000000ab3c0572291feb8b010000000200000001",
"docs": [
" Get the chain's current version."
]
@@ -1233,16 +1233,21 @@
]
},
{
"name": "VoterSnapshotPerBlock",
"name": "MaxElectingVoters",
"type": 4,
"value": "0x10270000",
"docs": [
" 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."
" 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."
]
},
{
"name": "MaxElectableTargets",
"type": 80,
"value": "0xffff",
"docs": [
" The maximum number of electable targets to put in the snapshot."
]
},
{
@@ -3130,7 +3135,7 @@
{
"name": "Schedule",
"type": 449,
"value": "0x0400000000000100008000000010000000001000000001000020000000200000000040000000000200020000009f0b00008a1b0000e01f00008417000051270000080c0000b31500008b1a000028000000c8040100754d01002b070000df0c0000d30e0000860b000089210000bd290000bf0e00007550b100c20b0000b80b0000540b0000b20c0000fa0a0000c80a0000cc0b000089120000fd1100004d12000007120000fd110000751200004312000039120000a712000025120000ad110000851100002b1100000b2c0000372d0000e32b0000c32d000053110000491100005d110000e9110000431200003912000007120000f31100001ab10700000000004ac7b501000000009648030000000000d2a8070000000000fa9907000000000020b6150000000000689f070000000000b093070000000000fea4070000000000589607000000000020f512000000000050e8030000000000727c070000000000730000000000000088d01f0000000000bc0000000000000088b5f52600000000746e180000000000b4462d00000000005241a107000000002603000000000000e6590600000000000843b2070000000017010000000000006a000000000000005658ef0700000000d452ae0700000000680000000000000042fdaa01000000005e000000000000004677af01000000007002000000000000941fb307000000007802000000000000e697830800000000f2243a130000000002a0460d00000000589785080000000020d401000000000096383f2e000000000120000000000000ef0500000000000038610c0000000000ba11000000000000a83f0e0000000000ad0b0000000000006eec0900000000008904000000000000f8d0090000000000890400000000000082d12f0900000000",
"value": "0x040000000000010000800000001000000000100000000100002000000020000000004000000000020002000000900b0000701c0000a82000005c17000006270000f40b00008a160000021c000028000000bc0b0100bc4c0100e0060000ea0b00003c0f0000d60b00005a230000842b0000380e00009118b000440c0000e00b00009a0b0000580c00004a0b00000e0b0000440c00008412000070120000481200005212000070120000e81200007a12000066120000341200005212000062110000a8110000a81100003e2b0000642d0000522b0000d22d00009411000080110000da11000084120000481200005c120000521200005c120000964e0700000000004c1fb60100000000fe65c201000000002e1008000000000036350300000000003055070000000000a238070000000000bcbf15000000000050620700000000009a540700000000009e55070000000000d64a070000000000289d12000000000020aa030000000000a02607000000000074000000000000000000000000000000c4000000000000008827e32600000000520918000000000082502d00000000003843a00700000000210300000000000016fd050000000000eae9b0070000000014010000000000006e000000000000004e08ed07000000004696ad0700000000640000000000000046dca901000000006300000000000000b008af01000000006f020000000000002cfbb2070000000080020000000000006a7f860800000000bab1531300000000121a620d0000000084f87f080000000002d4010000000000241e6c2e000000005c26000000000000f50500000000000008f10b0000000000cb11000000000000cec90d0000000000b60b0000000000008a800900000000008f04000000000000427d09000000000090040000000000003ca2470200000000",
"docs": [
" Cost schedule and limits."
]
@@ -3138,7 +3143,7 @@
{
"name": "DeletionQueueDepth",
"type": 4,
"value": "0x52440000",
"value": "0x0c570000",
"docs": [
" The maximum number of contracts that can be pending for deletion.",
"",
@@ -4542,12 +4547,30 @@
]
},
{
"name": "BountyCuratorDeposit",
"name": "CuratorDepositMultiplier",
"type": 440,
"value": "0x20a10700",
"docs": [
" Percentage of the curator fee that will be reserved upfront as deposit for bounty",
" curator."
" The curator deposit is calculated as a percentage of the curator fee.",
"",
" This deposit has optional upper and lower bounds with `CuratorDepositMax` and",
" `CuratorDepositMin`."
]
},
{
"name": "CuratorDepositMax",
"type": 441,
"value": "0x010000c16ff28623000000000000000000",
"docs": [
" Maximum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
"name": "CuratorDepositMin",
"type": 441,
"value": "0x0100407a10f35a00000000000000000000",
"docs": [
" Minimum amount of funds that should be placed in a deposit for making a proposal."
]
},
{
@@ -5665,6 +5688,19 @@
"",
" If set to None, then no automatic migration happens."
]
},
{
"name": "SignedMigrationMaxLimits",
"modifier": "Optional",
"type": {
"plain": 325
},
"fallback": "0x00",
"docs": [
" The maximum limits that the signed migration could use.",
"",
" If not set, no signed submission is allowed."
]
}
]
},
@@ -5674,16 +5710,7 @@
"events": {
"type": 97
},
"constants": [
{
"name": "SignedMigrationMaxLimits",
"type": 325,
"value": "0x0000080000020000",
"docs": [
" The maximum limits that the signed migration could use."
]
}
],
"constants": [],
"errors": {
"type": 558
},
@@ -5799,15 +5826,6 @@
"docs": [
" Minimum value for a child-bounty."
]
},
{
"name": "ChildBountyCuratorDepositBase",
"type": 440,
"value": "0xa0860100",
"docs": [
" Percentage of child-bounty value to be reserved as curator deposit",
" when curator fee is zero."
]
}
],
"errors": {
@@ -1321,8 +1321,8 @@
},
{
"name": "error",
"type": 2,
"typeName": "u8",
"type": 14,
"typeName": "[u8; MAX_MODULE_ERROR_ENCODED_SIZE]",
"docs": []
}
]
@@ -5696,6 +5696,39 @@
"docs": [
"A proxy was added."
]
},
{
"name": "ProxyRemoved",
"fields": [
{
"name": "delegator",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "delegatee",
"type": 0,
"typeName": "T::AccountId",
"docs": []
},
{
"name": "proxy_type",
"type": 79,
"typeName": "T::ProxyType",
"docs": []
},
{
"name": "delay",
"type": 4,
"typeName": "T::BlockNumber",
"docs": []
}
],
"index": 4,
"docs": [
"A proxy was removed."
]
}
]
}
@@ -8061,6 +8094,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
@@ -8080,7 +8117,7 @@
{
"name": "track",
"type": 2,
"typeName": "TrackIdOf<T>",
"typeName": "TrackIdOf<T, I>",
"docs": [
"The track (and by extension proposal dispatch origin) of this referendum."
]
@@ -8121,7 +8158,7 @@
{
"name": "amount",
"type": 6,
"typeName": "BalanceOf<T>",
"typeName": "BalanceOf<T, I>",
"docs": [
"The amount placed by the account."
]
@@ -8154,7 +8191,7 @@
{
"name": "amount",
"type": 6,
"typeName": "BalanceOf<T>",
"typeName": "BalanceOf<T, I>",
"docs": [
"The amount placed by the account."
]
@@ -8179,7 +8216,7 @@
{
"name": "amount",
"type": 6,
"typeName": "BalanceOf<T>",
"typeName": "BalanceOf<T, I>",
"docs": [
"The amount placed by the account."
]
@@ -8204,7 +8241,7 @@
{
"name": "track",
"type": 2,
"typeName": "TrackIdOf<T>",
"typeName": "TrackIdOf<T, I>",
"docs": [
"The track (and by extension proposal dispatch origin) of this referendum."
]
@@ -8468,6 +8505,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
@@ -23957,6 +23998,50 @@
"This does not affect the global migration process tracker ([`MigrationProcess`]), and",
"should only be used in case any keys are leftover due to a bug."
]
},
{
"name": "set_signed_max_limits",
"fields": [
{
"name": "limits",
"type": 325,
"typeName": "MigrationLimits",
"docs": []
}
],
"index": 4,
"docs": [
"Set the maximum limit of the signed migration."
]
},
{
"name": "force_set_progress",
"fields": [
{
"name": "progress_top",
"type": 327,
"typeName": "Progress",
"docs": []
},
{
"name": "progress_child",
"type": 327,
"typeName": "Progress",
"docs": []
}
],
"index": 5,
"docs": [
"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."
]
}
]
}
@@ -24475,6 +24560,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
@@ -24622,7 +24711,7 @@
{
"name": "track",
"type": 2,
"typeName": "TrackIdOf<T>",
"typeName": "TrackIdOf<T, I>",
"docs": []
}
],
@@ -24970,6 +25059,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
@@ -24981,13 +25074,13 @@
{
"name": "poll_index",
"type": 112,
"typeName": "PollIndexOf<T>",
"typeName": "PollIndexOf<T, I>",
"docs": []
},
{
"name": "vote",
"type": 337,
"typeName": "AccountVote<BalanceOf<T>>",
"typeName": "AccountVote<BalanceOf<T, I>>",
"docs": []
}
],
@@ -25010,7 +25103,7 @@
{
"name": "class",
"type": 2,
"typeName": "ClassOf<T>",
"typeName": "ClassOf<T, I>",
"docs": []
},
{
@@ -25028,7 +25121,7 @@
{
"name": "balance",
"type": 6,
"typeName": "BalanceOf<T>",
"typeName": "BalanceOf<T, I>",
"docs": []
}
],
@@ -25065,7 +25158,7 @@
{
"name": "class",
"type": 2,
"typeName": "ClassOf<T>",
"typeName": "ClassOf<T, I>",
"docs": []
}
],
@@ -25093,7 +25186,7 @@
{
"name": "class",
"type": 2,
"typeName": "ClassOf<T>",
"typeName": "ClassOf<T, I>",
"docs": []
},
{
@@ -25122,13 +25215,13 @@
{
"name": "class",
"type": 340,
"typeName": "Option<ClassOf<T>>",
"typeName": "Option<ClassOf<T, I>>",
"docs": []
},
{
"name": "index",
"type": 4,
"typeName": "PollIndexOf<T>",
"typeName": "PollIndexOf<T, I>",
"docs": []
}
],
@@ -25177,13 +25270,13 @@
{
"name": "class",
"type": 2,
"typeName": "ClassOf<T>",
"typeName": "ClassOf<T, I>",
"docs": []
},
{
"name": "index",
"type": 4,
"typeName": "PollIndexOf<T>",
"typeName": "PollIndexOf<T, I>",
"docs": []
}
],
@@ -27493,6 +27586,12 @@
"fields": [],
"index": 7,
"docs": []
},
{
"name": "V9_0_0",
"fields": [],
"index": 8,
"docs": []
}
]
}
@@ -30405,6 +30504,18 @@
"typeName": "Weight",
"docs": []
},
{
"name": "code_hash",
"type": 8,
"typeName": "Weight",
"docs": []
},
{
"name": "own_code_hash",
"type": 8,
"typeName": "Weight",
"docs": []
},
{
"name": "caller_is_origin",
"type": 8,
@@ -35798,6 +35909,14 @@
"docs": [
"upper bound of size is exceeded,"
]
},
{
"name": "SignedMigrationNotAllowed",
"fields": [],
"index": 4,
"docs": [
"Signed migration is not allowed because the maximum limit is not set yet."
]
}
]
}
@@ -36547,6 +36666,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
@@ -37015,6 +37138,10 @@
{
"name": "T",
"type": null
},
{
"name": "I",
"type": null
}
],
"def": {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '7.15.1' };
+5 -5
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "7.14.3",
"version": "7.15.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.8",
"@polkadot/keyring": "^8.7.1",
"@polkadot/types-augment": "7.14.3",
"@polkadot/types-codec": "7.14.3",
"@polkadot/types-create": "7.14.3",
"@polkadot/types-augment": "7.15.1",
"@polkadot/types-codec": "7.15.1",
"@polkadot/types-create": "7.15.1",
"@polkadot/util": "^8.7.1",
"@polkadot/util-crypto": "^8.7.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^8.7.1",
"@polkadot/types-support": "7.14.3"
"@polkadot/types-support": "7.15.1"
}
}
+8 -3
View File
@@ -4,7 +4,7 @@
import type { Codec, CodecClass, IU8a } from '@polkadot/types-codec/types';
import type { CreateOptions, TypeDef } from '@polkadot/types-create/types';
import type { ExtDef } from '../extrinsic/signedExtensions/types';
import type { ChainProperties, DispatchErrorModule, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant } from '../interfaces/types';
import type { ChainProperties, DispatchErrorModule, DispatchErrorModuleU8a, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant } from '../interfaces/types';
import type { CallFunction, CodecHasher, Definitions, DetectCodec, RegisteredTypes, Registry, RegistryError, RegistryTypes } from '../types';
import { DoNotConstruct, Json, Raw } from '@polkadot/types-codec';
@@ -288,10 +288,15 @@ export class TypeRegistry implements Registry {
}
// finds an error
public findMetaError (errorIndex: Uint8Array | DispatchErrorModule): RegistryError {
public findMetaError (errorIndex: Uint8Array | DispatchErrorModule | DispatchErrorModuleU8a): RegistryError {
const [section, method] = isU8a(errorIndex)
? [errorIndex[0], errorIndex[1]]
: [errorIndex.index.toNumber(), errorIndex.error.toNumber()];
: [
errorIndex.index.toNumber(),
isU8a(errorIndex.error)
? errorIndex.error[0]
: errorIndex.error.toNumber()
];
return assertReturn(
this.#metadataErrors[`${section}`] && this.#metadataErrors[`${section}`][`${method}`],
@@ -214,6 +214,10 @@ export default {
index: 'u8',
error: 'u8'
},
DispatchErrorModuleU8a: {
index: 'u8',
error: '[u8; 4]'
},
DispatchErrorTo198: {
module: 'Option<u8>',
error: 'u8'
@@ -395,7 +399,7 @@ export default {
},
WeightPerClass: {
baseExtrinsic: 'Weight',
maxExtrinsic: 'Weight',
maxExtrinsic: 'Option<Weight>',
maxTotal: 'Option<Weight>',
reserved: 'Option<Weight>'
}
@@ -125,6 +125,12 @@ export interface DispatchErrorModule extends Struct {
readonly error: u8;
}
/** @name DispatchErrorModuleU8a */
export interface DispatchErrorModuleU8a extends Struct {
readonly index: u8;
readonly error: U8aFixed;
}
/** @name DispatchErrorTo198 */
export interface DispatchErrorTo198 extends Struct {
readonly module: Option<u8>;
@@ -404,7 +410,7 @@ export interface UnknownTransaction extends Enum {
/** @name WeightPerClass */
export interface WeightPerClass extends Struct {
readonly baseExtrinsic: Weight;
readonly maxExtrinsic: Weight;
readonly maxExtrinsic: Option<Weight>;
readonly maxTotal: Option<Weight>;
readonly reserved: Option<Weight>;
}
@@ -3,11 +3,11 @@
import type { Text, u8 } from '@polkadot/types-codec';
import type { Registry } from '@polkadot/types-codec/types';
import type { DispatchErrorModule, MetadataLatest, SiField, SiVariant } from '../../../interfaces';
import type { DispatchErrorModule, DispatchErrorModuleU8a, MetadataLatest, SiField, SiVariant } from '../../../interfaces';
import type { PortableRegistry } from '../../../metadata';
import type { Errors, IsError } from '../types';
import { lazyMethod, objectSpread, stringCamelCase } from '@polkadot/util';
import { isU8a, lazyMethod, objectSpread, stringCamelCase } from '@polkadot/util';
import { lazyVariants } from '../../../create/lazy';
import { objectNameToString } from '../util';
@@ -39,9 +39,12 @@ export function decorateErrors (registry: Registry, { lookup, pallets }: Metadat
lazyMethod(result, stringCamelCase(name), () =>
lazyVariants(lookup, errors.unwrap(), objectNameToString, (variant: SiVariant): IsError => ({
is: ({ error, index }: DispatchErrorModule) =>
index.eq(sectionIndex) &&
error.eq(variant.index),
is: ({ error, index }: DispatchErrorModule | DispatchErrorModuleU8a) =>
index.eq(sectionIndex) && (
isU8a(error)
? error[0] === variant.index.toNumber()
: error.eq(variant.index)
),
meta: registry.createTypeUnsafe('ErrorMetadataLatest', [variantToMeta(lookup, variant)])
}))
);
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { AnyTuple, Codec, Registry } from '@polkadot/types-codec/types';
import type { DispatchErrorModule, ErrorMetadataLatest, EventMetadataLatest, PalletConstantMetadataLatest } from '../../interfaces';
import type { DispatchErrorModule, DispatchErrorModuleU8a, ErrorMetadataLatest, EventMetadataLatest, PalletConstantMetadataLatest } from '../../interfaces';
import type { StorageEntry } from '../../primitive/types';
import type { CallFunction, IEvent } from '../../types';
@@ -13,7 +13,7 @@ export interface ConstantCodec extends Codec {
export interface IsError {
readonly meta: ErrorMetadataLatest;
is: (moduleError: DispatchErrorModule) => boolean;
is: (moduleError: DispatchErrorModule | DispatchErrorModuleU8a) => boolean;
}
export interface IsEvent <T extends AnyTuple> {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '7.14.3' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '7.15.1' };
@@ -5,7 +5,6 @@ import '@polkadot/types-create/types/augmentRegistry';
import type { Codec, CodecClass } from '@polkadot/types-codec/types';
import type { TypeDef } from '@polkadot/types-create/types';
import type { BN } from '@polkadot/util';
import type { ExtDef } from '../extrinsic/signedExtensions/types';
import type { MetadataLatest } from '../interfaces/metadata';
import type { SiField, SiLookupTypeId } from '../interfaces/scaleInfo';
@@ -27,7 +26,6 @@ declare module '@polkadot/types-codec/types/registry' {
readonly signedExtensions: string[];
findMetaCall (callIndex: Uint8Array): CallFunctionExt;
findMetaError (errorIndex: Uint8Array | { error: BN, index: BN }): RegistryError;
clearCache (): void
+147 -147
View File
@@ -1902,28 +1902,28 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@7.14.3, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@7.15.1, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/api-base": 7.14.3
"@polkadot/rpc-augment": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/types-augment": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/api-base": 7.15.1
"@polkadot/rpc-augment": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/types-augment": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/api-base@7.14.3, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@7.15.1, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/rpc-core": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/rpc-core": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/util": ^8.7.1
rxjs: ^7.5.5
languageName: unknown
@@ -1934,56 +1934,56 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/api": 7.14.3
"@polkadot/api-augment": 7.14.3
"@polkadot/api": 7.15.1
"@polkadot/api-augment": 7.15.1
"@polkadot/keyring": ^8.7.1
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-create": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-create": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
"@polkadot/api-derive@7.14.3, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@7.15.1, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/api": 7.14.3
"@polkadot/api-augment": 7.14.3
"@polkadot/api-base": 7.14.3
"@polkadot/rpc-augment": 7.14.3
"@polkadot/rpc-core": 7.14.3
"@polkadot/rpc-provider": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/api": 7.15.1
"@polkadot/api-augment": 7.15.1
"@polkadot/api-base": 7.15.1
"@polkadot/rpc-augment": 7.15.1
"@polkadot/rpc-core": 7.15.1
"@polkadot/rpc-provider": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
"@polkadot/api@7.14.3, @polkadot/api@workspace:packages/api":
"@polkadot/api@7.15.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/api-augment": 7.14.3
"@polkadot/api-base": 7.14.3
"@polkadot/api-derive": 7.14.3
"@polkadot/api-augment": 7.15.1
"@polkadot/api-base": 7.15.1
"@polkadot/api-derive": 7.15.1
"@polkadot/keyring": ^8.7.1
"@polkadot/rpc-augment": 7.14.3
"@polkadot/rpc-core": 7.14.3
"@polkadot/rpc-provider": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/types-augment": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-create": 7.14.3
"@polkadot/types-known": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/rpc-augment": 7.15.1
"@polkadot/rpc-core": 7.15.1
"@polkadot/rpc-provider": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/types-augment": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-create": 7.15.1
"@polkadot/types-known": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
eventemitter3: ^4.0.7
@@ -1991,9 +1991,9 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.65.101":
version: 0.65.101
resolution: "@polkadot/dev@npm:0.65.101"
"@polkadot/dev@npm:^0.65.103":
version: 0.65.103
resolution: "@polkadot/dev@npm:0.65.103"
dependencies:
"@babel/cli": ^7.17.6
"@babel/core": ^7.17.8
@@ -2012,13 +2012,13 @@ __metadata:
"@babel/register": ^7.17.7
"@babel/runtime": ^7.17.8
"@rollup/plugin-alias": ^3.1.9
"@rollup/plugin-commonjs": ^21.0.2
"@rollup/plugin-commonjs": ^21.0.3
"@rollup/plugin-inject": ^4.0.4
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^13.1.3
"@rushstack/eslint-patch": ^1.1.1
"@typescript-eslint/eslint-plugin": 5.16.0
"@typescript-eslint/parser": 5.16.0
"@typescript-eslint/eslint-plugin": 5.17.0
"@typescript-eslint/parser": 5.17.0
"@vue/component-compiler-utils": ^3.3.0
babel-jest: ^27.5.1
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
@@ -2031,11 +2031,11 @@ __metadata:
eslint-import-resolver-node: ^0.3.6
eslint-plugin-header: ^3.1.1
eslint-plugin-import: ^2.25.4
eslint-plugin-import-newlines: ^1.2.1
eslint-plugin-import-newlines: ^1.2.2
eslint-plugin-node: ^11.1.0
eslint-plugin-promise: ^6.0.0
eslint-plugin-react: ^7.29.4
eslint-plugin-react-hooks: ^4.3.0
eslint-plugin-react-hooks: ^4.4.0
eslint-plugin-simple-import-sort: ^7.0.0
eslint-plugin-sort-destructure-keys: ^1.4.0
fs-extra: ^10.0.1
@@ -2079,7 +2079,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: de3f0b24ac45f8b10bb7a930932d4a209352675298276b9af4e3491232742199204e5c87c1e7757425e159fd4eb59b1589169ba797b7cdb21ce767ab1df0537a
checksum: 3dc7cab1cd556c70cf9aa8f4a48cc7d1985fbe5d74858f0c995ae363a4f7b5b5970b59d1a6066d7ded10eae3d664a64954c512406042a8a3140fc5d63ea5dc9b
languageName: node
linkType: hard
@@ -2108,40 +2108,40 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@7.14.3, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@7.15.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/rpc-core": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/rpc-core": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/util": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/rpc-core@7.14.3, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@7.15.1, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/keyring": ^8.7.1
"@polkadot/rpc-augment": 7.14.3
"@polkadot/rpc-provider": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/rpc-augment": 7.15.1
"@polkadot/rpc-provider": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/util": ^8.7.1
rxjs: ^7.5.5
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@7.14.3, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@7.15.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/keyring": ^8.7.1
"@polkadot/types": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
"@polkadot/x-fetch": ^8.7.1
@@ -2161,15 +2161,15 @@ __metadata:
"@babel/core": ^7.17.8
"@babel/register": ^7.17.7
"@babel/runtime": ^7.17.8
"@polkadot/api": 7.14.3
"@polkadot/api-augment": 7.14.3
"@polkadot/rpc-augment": 7.14.3
"@polkadot/rpc-provider": 7.14.3
"@polkadot/types": 7.14.3
"@polkadot/types-augment": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-create": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/api": 7.15.1
"@polkadot/api-augment": 7.15.1
"@polkadot/rpc-augment": 7.15.1
"@polkadot/rpc-provider": 7.15.1
"@polkadot/types": 7.15.1
"@polkadot/types-augment": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-create": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/x-ws": ^8.7.1
"@types/websocket": ^1.0.5
@@ -2186,55 +2186,55 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@7.14.3, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@7.15.1, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/util": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/types-codec@7.14.3, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@7.15.1, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/types": 7.14.3
"@polkadot/types-augment": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-augment": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/types-create@7.14.3, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@7.15.1, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/util": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/types-known@7.14.3, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@7.15.1, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/networks": ^8.7.1
"@polkadot/types": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-create": 7.14.3
"@polkadot/types": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-create": 7.15.1
"@polkadot/util": ^8.7.1
languageName: unknown
linkType: soft
"@polkadot/types-support@7.14.3, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@7.15.1, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -2243,16 +2243,16 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@7.14.3, @polkadot/types@workspace:packages/types":
"@polkadot/types@7.15.1, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.17.8
"@polkadot/keyring": ^8.7.1
"@polkadot/types-augment": 7.14.3
"@polkadot/types-codec": 7.14.3
"@polkadot/types-create": 7.14.3
"@polkadot/types-support": 7.14.3
"@polkadot/types-augment": 7.15.1
"@polkadot/types-codec": 7.15.1
"@polkadot/types-create": 7.15.1
"@polkadot/types-support": 7.15.1
"@polkadot/util": ^8.7.1
"@polkadot/util-crypto": ^8.7.1
rxjs: ^7.5.5
@@ -2416,9 +2416,9 @@ __metadata:
languageName: node
linkType: hard
"@rollup/plugin-commonjs@npm:^21.0.2":
version: 21.0.2
resolution: "@rollup/plugin-commonjs@npm:21.0.2"
"@rollup/plugin-commonjs@npm:^21.0.3":
version: 21.0.3
resolution: "@rollup/plugin-commonjs@npm:21.0.3"
dependencies:
"@rollup/pluginutils": ^3.1.0
commondir: ^1.0.1
@@ -2429,7 +2429,7 @@ __metadata:
resolve: ^1.17.0
peerDependencies:
rollup: ^2.38.3
checksum: 5fd4c7b75d7881070f4395d7ba5f9035934f53b25e92d136583cc794461a456efc1e2a2204f946ec567dfea58073c38cb48f24d27155b89af0df0447c2cd0758
checksum: 23307d3b7eb8d64dd966fbe380b85bf3b5f4908c7344427d45918d570cf6b48710ef6f155bea74545127c10de9d64f87dd2219078e83dbccf927505d38774de8
languageName: node
linkType: hard
@@ -2791,13 +2791,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.16.0"
"@typescript-eslint/eslint-plugin@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.17.0"
dependencies:
"@typescript-eslint/scope-manager": 5.16.0
"@typescript-eslint/type-utils": 5.16.0
"@typescript-eslint/utils": 5.16.0
"@typescript-eslint/scope-manager": 5.17.0
"@typescript-eslint/type-utils": 5.17.0
"@typescript-eslint/utils": 5.17.0
debug: ^4.3.2
functional-red-black-tree: ^1.0.1
ignore: ^5.1.8
@@ -2810,42 +2810,42 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 4007cc1599503424037300e7401fb969ca441b122ef8a8f2fc8d70f84d656fdf7ab7b0d00e506a3aaf702871616c3756da17eb1508ff315dfb25170f2d28a904
checksum: 62ec611fb384f27fc5b101fc8a0642ae94b2975618d37d3157c2f887cf89b389624e9d476bff303073d038076c05e6c00f3b205af3b2302967e720e99cd18d38
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/parser@npm:5.16.0"
"@typescript-eslint/parser@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/parser@npm:5.17.0"
dependencies:
"@typescript-eslint/scope-manager": 5.16.0
"@typescript-eslint/types": 5.16.0
"@typescript-eslint/typescript-estree": 5.16.0
"@typescript-eslint/scope-manager": 5.17.0
"@typescript-eslint/types": 5.17.0
"@typescript-eslint/typescript-estree": 5.17.0
debug: ^4.3.2
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 40006578e9ac451c80dc4b4b7e29af97b53fb9e9ea660d6ca17fb98b5c9858c648f9b17523c9de9b9b9e4155af17b65435e6163f02c4a2dfacf48274f45cba21
checksum: 15b855ea84e44371366d44b5add87ed0dc34b856ca8a6949ecc4066faaf3ea3d7e016ea92db06ab97a637530148c472c38c19cc5eff68b691701ff89dc5c1abc
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/scope-manager@npm:5.16.0"
"@typescript-eslint/scope-manager@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/scope-manager@npm:5.17.0"
dependencies:
"@typescript-eslint/types": 5.16.0
"@typescript-eslint/visitor-keys": 5.16.0
checksum: 008a6607d3e6ebcc59a9b28cddcc25703f39a88e27a96c69a6d988acc50a1ea7dbf50963c165ffa5b85a101209a0da3a7ec6832633a162ca4ecc78c0e54acd9f
"@typescript-eslint/types": 5.17.0
"@typescript-eslint/visitor-keys": 5.17.0
checksum: 8fc28d5742f36994ce05f09b0000f696a600d6f757f39ccae7875c08398b266f21d48ed1dfb027549d9c6692255a1fb3e8482ef94d765bb134371824da7d5ba7
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/type-utils@npm:5.16.0"
"@typescript-eslint/type-utils@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/type-utils@npm:5.17.0"
dependencies:
"@typescript-eslint/utils": 5.16.0
"@typescript-eslint/utils": 5.17.0
debug: ^4.3.2
tsutils: ^3.21.0
peerDependencies:
@@ -2853,7 +2853,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 86d9f1dff6a096c8465453b8c7d0cc667b87a769f19073bfa9bbd36f8baa772c0384ec396b1132052383846bbbcf0d051345ed7d373260c1b506ed27100b383d
checksum: 9aad46ea7a757ec4584b9d9c995e94543bf40af7d85b2f502d66db08d7f03468c858320fccb4942238b0bb9e2d432df3d9861cf21624b0c57660c88b1d91a7d4
languageName: node
linkType: hard
@@ -2864,19 +2864,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/types@npm:5.16.0"
checksum: 0450125741c3eef9581da0b75b4a987a633d77009cfb03507c3db29885b790ee80e3c0efc4f9a0dd3376ba758b49c7829722676153472616a57bb04bce5cc4fa
"@typescript-eslint/types@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/types@npm:5.17.0"
checksum: 06ed4c3c3f0a05bee9c23b6cb5eb679336c0f4769beb28848e8ce674f726fec88adba059f20e0b0f7271685d7f5480931b3bcafcf6b60044b93da162e29f3f68
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/typescript-estree@npm:5.16.0"
"@typescript-eslint/typescript-estree@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/typescript-estree@npm:5.17.0"
dependencies:
"@typescript-eslint/types": 5.16.0
"@typescript-eslint/visitor-keys": 5.16.0
"@typescript-eslint/types": 5.17.0
"@typescript-eslint/visitor-keys": 5.17.0
debug: ^4.3.2
globby: ^11.0.4
is-glob: ^4.0.3
@@ -2885,7 +2885,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 930ead4655712c3bd40885fb6b2074cd3c10fb03da864dd7a7dd2e43abfd330bb07e505f0aec8b4846178bff8befbb017f9f3370c67e9c717e4cb8d3df6e16ef
checksum: 589829b1bb1d7e704de6a35dd9a39c70a3ca54b0885b68aad54a864bc5e5a11ce43f917c3f15f0afe9bc734a250288efdf03dfbed70b8fe0cc12f759e2e1f8ef
languageName: node
linkType: hard
@@ -2907,19 +2907,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/utils@npm:5.16.0"
"@typescript-eslint/utils@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/utils@npm:5.17.0"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.16.0
"@typescript-eslint/types": 5.16.0
"@typescript-eslint/typescript-estree": 5.16.0
"@typescript-eslint/scope-manager": 5.17.0
"@typescript-eslint/types": 5.17.0
"@typescript-eslint/typescript-estree": 5.17.0
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 46749091a204d7cf80d81b04704e23a86903a142a7e35cc5068a821c147c3bf098a7eff99af2b0e2ea7310013ca90300db9bab33ae5e3b5f773ed1d2961a5ed4
checksum: 88de02eafb7d39950c520c53aa07ffe63c95ca7ef2262c39d2afd3c6aabcd5d717ba61f74314f5bc9c27588b721ff016b45af6fc1de88801c6ac4bf5ebaf8775
languageName: node
linkType: hard
@@ -2933,13 +2933,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.16.0":
version: 5.16.0
resolution: "@typescript-eslint/visitor-keys@npm:5.16.0"
"@typescript-eslint/visitor-keys@npm:5.17.0":
version: 5.17.0
resolution: "@typescript-eslint/visitor-keys@npm:5.17.0"
dependencies:
"@typescript-eslint/types": 5.16.0
"@typescript-eslint/types": 5.17.0
eslint-visitor-keys: ^3.0.0
checksum: b587bf3b0da95bb58ff877b75fefcee6472222de1e3ec76aa4b94cae66078b62a372c7d0343374a16aab15cdcbae3f9e019624028b35827f68ef6559389f7fd0
checksum: 333468277b50e2fc381ba1b99ccb410046c422e0329c791c51bea62e705edd16ba97f75b668c6945a3ea3dc43b89a1739693ea60bfa241c67ce42e8b474e5048
languageName: node
linkType: hard
@@ -4772,14 +4772,14 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-import-newlines@npm:^1.2.1":
version: 1.2.1
resolution: "eslint-plugin-import-newlines@npm:1.2.1"
"eslint-plugin-import-newlines@npm:^1.2.2":
version: 1.2.2
resolution: "eslint-plugin-import-newlines@npm:1.2.2"
peerDependencies:
eslint: ">=6.0.0"
bin:
import-linter: lib/index.js
checksum: c2eb87241f73d1a968a46a10c0529ea17ac00ef534571e0755bf6b3ed07b6ea2fa2152f19700fd9bfc91c32936cd65b69dc66c0cc23a752169b3409a176ddb7f
checksum: 3bb35817357aa47e2ec45b82e085605351f8f6050a0766b4f3ccd287ba81c7db72c33ac4c4ccea6cf90d66868ae141692897d6c84e08532d740672daeebcb789
languageName: node
linkType: hard
@@ -4831,12 +4831,12 @@ __metadata:
languageName: node
linkType: hard
"eslint-plugin-react-hooks@npm:^4.3.0":
version: 4.3.0
resolution: "eslint-plugin-react-hooks@npm:4.3.0"
"eslint-plugin-react-hooks@npm:^4.4.0":
version: 4.4.0
resolution: "eslint-plugin-react-hooks@npm:4.4.0"
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
checksum: 0ba1566ba0780bbc75a5921f49188edf232db2085ab32c8d3889592f0db9d6fadc97fcf639775e0101dec6b5409ca3c803ec44213b90c8bacaf0bdf921871c2e
checksum: 350b50d45677cb2df682b9e54475912746bd2f56fc342e4d47fad78d71eb1b2b742e702f1e6c04ab2196346d3d7a2e327b5eee826f5b96bfb84b5c41d35e44e9
languageName: node
linkType: hard
@@ -9023,7 +9023,7 @@ resolve@^2.0.0-next.3:
"@babel/core": ^7.17.8
"@babel/register": ^7.17.7
"@babel/runtime": ^7.17.8
"@polkadot/dev": ^0.65.101
"@polkadot/dev": ^0.65.103
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^27.4.1
copyfiles: ^2.4.1