Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72d1326de6 | ||
|
|
27de09999c | ||
|
|
55c6a4f267 | ||
|
|
92dfe00851 | ||
|
|
f82c572704 | ||
|
|
119f88e6d2 | ||
|
|
e5dc4065ff | ||
|
|
e2b4e0d3e6 | ||
|
|
1921d75d01 | ||
|
|
216435e1a1 | ||
|
|
86398e21f8 | ||
|
|
fd84892dac | ||
|
|
2329af239e | ||
|
|
f95f36110f | ||
|
|
3b7b44f048 | ||
|
|
a1e7566114 | ||
|
|
ec4ec4fa5e | ||
|
|
cf26e34008 | ||
|
|
15c440d72f | ||
|
|
9b9c621265 | ||
|
|
eb7fd94c20 | ||
|
|
54baf26d4f | ||
|
|
1ab7475a58 | ||
|
|
b5adbe72f8 | ||
|
|
778d79a9a5 | ||
|
|
cd4b5e36dd | ||
|
|
9de00f5a46 | ||
|
|
60e8148e8c | ||
|
|
56358b1016 | ||
|
|
68ce512573 | ||
|
|
b0b2145d15 | ||
|
|
ab683fb3f8 | ||
|
|
bfb92e6d8b | ||
|
|
65b019e635 | ||
|
|
dac94c5196 | ||
|
|
83204f15fc | ||
|
|
fe6473351c | ||
|
|
90efba4c36 | ||
|
|
771d06b2a2 | ||
|
|
217da1451a | ||
|
|
f92f2ea357 | ||
|
|
38a978b9be | ||
|
|
0945d26c03 | ||
|
|
3f38963e85 | ||
|
|
534e7e3650 | ||
|
|
c6d3a68dd0 | ||
|
|
bad574609c | ||
|
|
35132f4b28 | ||
|
|
49e8e18a0f | ||
|
|
436bd956b6 | ||
|
|
9ead1a8c46 | ||
|
|
0f61aa2ace | ||
|
|
4a2a70c0fb | ||
|
|
97d553c52f | ||
|
|
23586f9849 | ||
|
|
dda0c3b980 | ||
|
|
aafd0a90c7 | ||
|
|
e64eb91ba9 | ||
|
|
02947a1c08 | ||
|
|
5a44d3b6e0 | ||
|
|
0bac3d4915 | ||
|
|
ab3f0253bd | ||
|
|
6f199db86a | ||
|
|
a95bca939d | ||
|
|
c5446d6fef | ||
|
|
b1ec8d160a | ||
|
|
b0acdbd96c | ||
|
|
af3d20ebe1 | ||
|
|
5897fb7e3b | ||
|
|
bdafcd9e97 | ||
|
|
095710349a | ||
|
|
586f02f831 | ||
|
|
5ca873b501 | ||
|
|
058a3ac640 | ||
|
|
5a4d11cb39 | ||
|
|
fb0796d408 | ||
|
|
e21b101ef7 | ||
|
|
79e828837f | ||
|
|
21aeb17a34 | ||
|
|
642414295c | ||
|
|
28c2e5524d | ||
|
|
5e1ccd177e | ||
|
|
c300e1b63d | ||
|
|
e2859e4761 | ||
|
|
4f06d6d2c5 | ||
|
|
67d617ce11 | ||
|
|
ab3a22a207 | ||
|
|
7b00fd3925 | ||
|
|
2b703062d0 | ||
|
|
0bca92cdb8 | ||
|
|
a437f98b31 | ||
|
|
8666d580df | ||
|
|
651bb35acf | ||
|
|
f78a00cd7f | ||
|
|
e55c9d248c | ||
|
|
986355b56f | ||
|
|
dd9123f790 | ||
|
|
d28d2b5f48 | ||
|
|
0b3cad94bc | ||
|
|
2b29dda2ad | ||
|
|
3d3af779c1 | ||
|
|
d04cc7b940 | ||
|
|
2ef84c5dcd | ||
|
|
36c24826ec | ||
|
|
184f702efd | ||
|
|
b392c19922 | ||
|
|
38de00d8d8 | ||
|
|
f9c58203a0 | ||
|
|
baaa27ba9e | ||
|
|
365fde895a | ||
|
|
b17a6d3920 | ||
|
|
0d8df6380e | ||
|
|
52cd797488 | ||
|
|
a71d401f1d | ||
|
|
61b68393e7 | ||
|
|
7d6933ed39 | ||
|
|
32a04fd24f | ||
|
|
009461f564 | ||
|
|
00cb2ef875 | ||
|
|
fed0d5bf0d | ||
|
|
53e9305f41 | ||
|
|
2ca9da3304 | ||
|
|
7a4d32710c | ||
|
|
15c8859b06 | ||
|
|
e0e9829417 | ||
|
|
00bc5c818b | ||
|
|
f43600d773 | ||
|
|
fc112988f0 | ||
|
|
a9fa603ad8 | ||
|
|
d86bff91a7 | ||
|
|
26b5303c2d | ||
|
|
b4ebdc29a1 | ||
|
|
6e4dc0b52d | ||
|
|
02ec613def | ||
|
|
a83e1da941 | ||
|
|
c4e8270b45 | ||
|
|
ddb9b44460 | ||
|
|
887812eeaa | ||
|
|
6415eb6515 | ||
|
|
06c829d30f | ||
|
|
efd6ba9a4c | ||
|
|
a1f2473fb4 | ||
|
|
9e53fc060d | ||
|
|
364001f287 | ||
|
|
5bcd56d6c3 | ||
|
|
5b3f18e6fd | ||
|
|
8ab79958f0 | ||
|
|
1343aa4651 | ||
|
|
a311fed87e | ||
|
|
c0590bc5fe | ||
|
|
d650744984 | ||
|
|
7baf2ecf7a | ||
|
|
accfce9785 | ||
|
|
0349c39907 | ||
|
|
155701a7b1 | ||
|
|
c6e5cb812b | ||
|
|
63f3fc8a89 | ||
|
|
591e9b145d | ||
|
|
caca8ce345 | ||
|
|
ccae7c9421 | ||
|
|
be0a764be7 | ||
|
|
4be19804b2 | ||
|
|
7874a8e723 | ||
|
|
5e9eed426a | ||
|
|
ff3b798ea4 | ||
|
|
62163ea5a7 | ||
|
|
96cde82c60 | ||
|
|
a2ea6a36d1 | ||
|
|
5531d180d7 | ||
|
|
aacf0726e4 | ||
|
|
9fde30a1d6 | ||
|
|
0982f68507 | ||
|
|
bfabfcd99f | ||
|
|
64ac37ee4d | ||
|
|
442a0fbbf8 | ||
|
|
615e4c67fd | ||
|
|
1c7f3b157d | ||
|
|
b0ce49de18 |
@@ -11,8 +11,8 @@ jobs:
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- uses: denoland/setup-deno@v1
|
||||
|
||||
@@ -18,11 +18,11 @@ jobs:
|
||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GH_PAT_BOT }}
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- name: ${{ matrix.step }}
|
||||
|
||||
Vendored
-893
File diff suppressed because one or more lines are too long
+925
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.4.0.cjs
|
||||
|
||||
+243
@@ -1,5 +1,248 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 12.4.1 Aug 16, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add a check for tip in Submittable (Thanks to https://github.com/gupnik) ([#5953](https://github.com/polkadot-js/api/pull/5953))
|
||||
|
||||
Changes:
|
||||
|
||||
- Bump yarn to 4.4.0 ([#5952](https://github.com/polkadot-js/api/pull/5952))
|
||||
- Update General Deps (patch only) ([#5954](https://github.com/polkadot-js/api/pull/5954))
|
||||
- Rework api.derive.balance.{account, all} to work with the new frame account data ([#5955](https://github.com/polkadot-js/api/pull/5955))
|
||||
- Adds `transferable` and `frameSystemAccountInfo` to the output of `api.derive.balance.all`
|
||||
- Revise api.derive.balances.all to include ED when necessary ([#5957](https://github.com/polkadot-js/api/pull/5957))
|
||||
- Fixes the formula used for transferable balance
|
||||
|
||||
|
||||
## 12.3.1 Aug 5, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Revert alias for Noir types (Thanks to https://github.com/conr2d) ([#5946](https://github.com/polkadot-js/api/pull/5946))
|
||||
- Increase Vec Max Length (Thanks to https://github.com/rzadp) ([#5947](https://github.com/polkadot-js/api/pull/5947))
|
||||
|
||||
Changes:
|
||||
|
||||
- Upgrade known Polkadot and Westend CodeUpdated blocks ([#5948](https://github.com/polkadot-js/api/pull/5948))
|
||||
- Update substrate types via metadata ([#5949](https://github.com/polkadot-js/api/pull/5949))
|
||||
- Note: Please review the above PR for any changes to the augmented types.
|
||||
- Support for BeefyApi v4 ([#5950](https://github.com/polkadot-js/api/pull/5950))
|
||||
|
||||
|
||||
## 12.2.3 July 29, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Fix Fungible Api (Thanks to https://github.com/bkontur)
|
||||
|
||||
|
||||
## 12.2.2 July 25, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix toHuman error on mode
|
||||
|
||||
|
||||
## 12.2.1 July 13, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Bump polkadot/common to 13.0.2
|
||||
- This contains the latest changes to the Ledger interface in `@polkadot/hw-ledger`. For more info please see ([13.0.1](https://github.com/polkadot-js/common/releases/tag/v13.0.1))
|
||||
- Bump Substrate Metadata to Latest
|
||||
- This includes additions and removals to the api's type augmentation. For more info please see ([#5936](https://github.com/polkadot-js/api/pull/5936))
|
||||
- Update Polkadot 1002006 types-known
|
||||
- Bump yarn to 4.3.1
|
||||
|
||||
|
||||
## 12.1.1 July 2, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Implement xcm payment api (Thanks to https://github.com/girazoki)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update Augmented types for polkadot 1002005
|
||||
- Update Augmented types for kusama 1002006
|
||||
- Note: This removes type support for the Identity pallet for Kusama, and stateTrieMigration
|
||||
- Update upgrade blocks for {Kusama, Polkadot}
|
||||
|
||||
|
||||
## 12.0.2 June 27, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- `withSignedTransaction`: This option has been added to `SignerOptions`. When using `signAndSend`, `signAsync`, and `dryRun` you may now enable or disable the use of the `signedTransaction` field by adding the `withSignedTransaction` option. When withSignedTransaction is not enabled but the signer adds a signedTransaction the api will error.
|
||||
- Always disabled by default.
|
||||
- This ensures no big breaking changes happen to the interface of `signPayload`.
|
||||
- `withSignedTransaction` has also been added to the `SignerPayload` type which allows for `payload.toPayload()` to include the option.
|
||||
- `signAsync`: now accepts the `signedTransaction` field as well. This means that if `withSignedTransaction` is enabled, and `signedTransaction` is present the api will adjust the current payload attached to the SubmittableExtrinsic, and add the signature. Then the user can call `.send()` as they please.
|
||||
- `dryRun`: All steps will be the same as signAsync with the exception that .send() has never needed to be called.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add LocationToAccountApi::convert_location runtime API (Thanks to https://github.com/bkontur)
|
||||
|
||||
|
||||
## 12.0.1 June 24, 2024
|
||||
|
||||
**Important Changes**:
|
||||
|
||||
- Addition of an optional `signedTransaction` field to the [`SignerResult`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L138-L158) response for injected signers. This only applies to the `signPayload` method exposed in the [`Signer`](https://github.com/polkadot-js/api/blob/586f02f8310529f16e4047fd94e31bc6c6573366/packages/types/src/types/extrinsic.ts#L160-L175) interface for polkadot-js. As the name suggests the field expects a signed transaction (extrinsic) when inputted. When its present, the api will not add the signature to the payload, but instead broadcast the inputted signed transaction. This means the signer may modify the payload it's given. The only part of the payload that may not be modified is the call data. This is verified on the api, and will throw an error if it does not match the initial payloads call data.
|
||||
- This is very useful for signers that want to adjust the `mode` and `metadataHash` field for the `CheckMetadataHash` signed extension.
|
||||
- Note that this is not your traditional breaking change since it more-so acts as an addition, but since this is a high magnitude change it is going to be considered a MAJOR bump.
|
||||
- For more info please review the following PR [(#5914)](https://github.com/polkadot-js/api/pull/5914)
|
||||
|
||||
Changes:
|
||||
|
||||
- Replace `system_accountNextIndex` with runtime api call `accountNonceApi` for `api.derive.tx.signingInfo`
|
||||
- Sanitize `eras` for `api.derive.staking._stakerRewards`
|
||||
|
||||
|
||||
## 11.3.1 June 17, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix period assumption on signingInfo (derive)
|
||||
- Bump dev to 0.79.3
|
||||
- Update {Polkadot, Kusama, Westend} types-known
|
||||
- Bump Substrate metadata to latest
|
||||
- NOTE: Moving forward when bumping the metadata for {Polkadot, Kusama, Substrate} the version will
|
||||
always be a minor bump since it can add, modify, remove augmented types.
|
||||
|
||||
|
||||
## 11.2.1 May 28, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- fix: Re-subscribe to chain updates on reconnection if not a clone (Thanks to https://github.com/F-OBrien)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add support for AuraUnincludedSegmentApi (Thanks to https://github.com/bee344)
|
||||
- Add support for ParachainHost v11 Api
|
||||
- Update Kusama and Westend block upgrades
|
||||
- Update Substrate metadata to latest
|
||||
|
||||
|
||||
## 11.1.1 May 21, 2024
|
||||
|
||||
Changes
|
||||
|
||||
- Dedupe nextElected accountIds in `api.derive.staking.nextElected`
|
||||
- Bump @polkadot/dev to 0.79.1 w/ topo sort
|
||||
- Bump yarn to 4.2.2
|
||||
- fix: updated extrinsics' assetId `toHuman` (Thanks to https://github.com/bee344)
|
||||
- fix `api.derive.accounts.{info && identity}`
|
||||
- feat: Add support for `CheckMetadataHash` signedExtension (Thanks to https://github.com/bee344)
|
||||
|
||||
|
||||
## 11.0.3 May 8, 2024
|
||||
|
||||
Changes
|
||||
|
||||
- Make `api.derive.staking.*` backwards compatible
|
||||
- Fix `claimedRewards` regression in `api.derive.staking.queryMulti`
|
||||
- Update Substrate to latest
|
||||
|
||||
|
||||
## 11.0.2 Apr 24, 2024
|
||||
|
||||
Changes
|
||||
|
||||
- Fix type for TAssetConversion in Polkadot Asset hub
|
||||
|
||||
|
||||
## 11.0.1 Apr 23, 2024
|
||||
|
||||
Breaking Changes:
|
||||
|
||||
Note! The following breaking changes only refer to `@polkadot/api-derive` calls under `api.derive.staking.*` due to the most recent breaking changes in runtime version v1.2. Please refer to the link next to the bullet points for more information.
|
||||
|
||||
- Update` api.derive.staking` calls with breaking changes ([#5860](https://github.com/polkadot-js/api/pull/5860))
|
||||
- Add `claimedRewardsEra` to api.derive.staking.query for compatibility with legacyClaimedRewards ([#5862](https://github.com/polkadot-js/api/pull/5862))
|
||||
|
||||
Contributed:
|
||||
|
||||
- Bump @substrate/connect to 0.8.10 (Thanks to https://github.com/kratico)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update polkadot types-known for latest runtime upgrades
|
||||
|
||||
|
||||
## 10.13.1 Apr 16, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Update CI actions and setup_node to v4
|
||||
- Update substrate metadata to latest
|
||||
- Support ParachainHost runtime api v6, 7, 8, 9, 10
|
||||
- Resolve correct module for council derive
|
||||
- Update westend types-known for 1010000
|
||||
- Update kusama types-known for 1001003
|
||||
|
||||
|
||||
## 10.12.6 Apr 2, 2024
|
||||
|
||||
**NOTE**: Because of a broken CI build for 10.12.5 -> 10.12.6 is a replacement
|
||||
|
||||
Contributed:
|
||||
|
||||
- chore: fix typos in error (Thanks to https://github.com/xiaoxianBoy)
|
||||
|
||||
Changes:
|
||||
|
||||
- Upgrade westend types-known for 1009000
|
||||
- Add `disableAscii` option for toHuman, and toPrimitive
|
||||
- V14 Update substrate latest metadata
|
||||
- V15 Update substrate latest metadata
|
||||
- Bump yarn to 4.1.1
|
||||
- Add `assetId` getter field to to necessary ExtrinsicPayloads
|
||||
- Add Updated Runtime Defintions
|
||||
- ValidateStatement
|
||||
- MMRApi
|
||||
- mmr_root
|
||||
- mmr_leaf_count
|
||||
- Core v5
|
||||
- GenesisBuilder
|
||||
- MixnetApi
|
||||
|
||||
|
||||
## 10.12.5 Apr 2, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- chore: fix typos in error (Thanks to https://github.com/xiaoxianBoy)
|
||||
|
||||
Changes:
|
||||
|
||||
- Upgrade westend types-known for 1009000
|
||||
- Add `disableAscii` option for toHuman, and toPrimitive
|
||||
- V14 Update substrate latest metadata
|
||||
- V15 Update substrate latest metadata
|
||||
- Bump yarn to 4.1.1
|
||||
- Add `assetId` getter field to to necessary ExtrinsicPayloads
|
||||
- Add Updated Runtime Defintions
|
||||
- ValidateStatement
|
||||
- MMRApi
|
||||
- mmr_root
|
||||
- mmr_leaf_count
|
||||
- Core v5
|
||||
- GenesisBuilder
|
||||
- MixnetApi
|
||||
|
||||
|
||||
## 10.12.4 Mar 19, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Fix add muln(2) to signingInfo Derive (Thanks to https://github.com/pepoviola)
|
||||
|
||||
|
||||
## 10.12.3 Mar 18, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
+12
-6
@@ -1,39 +1,40 @@
|
||||
3512 Jaco Bump deps (#5785)
|
||||
90 Tarik Gul 12.4.1 (#5958)
|
||||
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)
|
||||
19 Xiliang Chen no warm for unknown signed extensions (#5601)
|
||||
16 Tarik Gul 10.12.3 (#5828)
|
||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
6 Andreea Eftene Update check for contract instantiation (#5699)
|
||||
6 Branislav Kontur Fix for fungiblesApi (#5944)
|
||||
5 Alberto Nicolas Penayo added use of accountNonceApi (#5915)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||
5 Matias Volpe Bump @substrate/connect to 0.8.10 (#5863)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||
4 Alexander Popiak Add asset id in signing (#4009)
|
||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||
4 Matias Volpe Bump @substrate/connect to 0.8.8 (#5817)
|
||||
4 Nantian fix bigint type (#3869)
|
||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||
4 Thibaut Sardan no subscription for http (#3127)
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
3 Branislav Kontur Added FungiblesApi version 2 (#5687)
|
||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||
3 hamidra add support for n key entries for NMaps (#3886)
|
||||
3 Hamza Tokuchi more typos (#2532)
|
||||
3 Jeeyong Um Revert "Alias for Noir types (#5678)" (#5946)
|
||||
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||
3 YJ feat: Vote interface as U8a (#1061)
|
||||
2 Alberto Nicolas Penayo updated remaining assetId for ChargeAssetTxPayment (#5763)
|
||||
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)
|
||||
@@ -41,7 +42,7 @@
|
||||
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 Jeeyong Um Alias for Noir types (#5678)
|
||||
2 Javier Viola add muln(2), as was in the old code (#5829)
|
||||
2 Jegor Sidorenko Use Box<XcmV3MultiLocation> instead of MultiAssetId (#5700)
|
||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||
2 MOZGIII Follow-up fix after #4665 (#4666)
|
||||
@@ -74,15 +75,17 @@
|
||||
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Francis O'Brien fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
|
||||
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
|
||||
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
|
||||
1 girazoki Implement xcm payment api (#5911)
|
||||
1 gupnik Adds a check for tip in Submittable (#5953)
|
||||
1 HackFisher fix OutboundLaneData types (#3992)
|
||||
1 Hoani Bryson Multiple Endpoint support for WsProvider (#2234)
|
||||
1 Hyungsuk Kang Update fees.ts (#1014)
|
||||
1 icodezjb Update SessionKeys (#3035)
|
||||
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
||||
1 Javier Viola fix: check if minimumPeriod is zero (#5827)
|
||||
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)
|
||||
@@ -92,6 +95,7 @@
|
||||
1 Kian Paimani Update definitions.ts (#2514)
|
||||
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
||||
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||
1 Lauro Gripa Fix multi call of `defenderVotes` and `isDefenderVoter` flag in `society.members` derivation (#5834)
|
||||
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
|
||||
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
|
||||
1 Marc Fornós add beefy compact signed commitment definition (#5781)
|
||||
@@ -109,6 +113,7 @@
|
||||
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
||||
1 polymath-eric Allow unset external signer (#5649)
|
||||
1 Przemek Rzad Increase Vec max length (#5947)
|
||||
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
|
||||
1 qiuhao update DeriveCustom type (#2581)
|
||||
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||
@@ -125,6 +130,7 @@
|
||||
1 serge make WS provider timeout configurable (#4758)
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 Shunji Zhan small polish (#5276)
|
||||
1 Snoppy chore: fix typos (#5835)
|
||||
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
||||
1 Tim B added EthRTApiV5 ifaces (#5680)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
|
||||
+6
-6
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "yarn@4.1.0",
|
||||
"packageManager": "yarn@4.4.0",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"versions": {
|
||||
"git": "10.12.3",
|
||||
"npm": "10.12.3"
|
||||
"git": "12.4.1",
|
||||
"npm": "12.4.1"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,9 +40,9 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.78.9",
|
||||
"@polkadot/dev": "^0.79.3",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^20.11.6"
|
||||
"@types/node": "^20.15.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.3.3"
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.12.3",
|
||||
"@polkadot/rpc-augment": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-augment": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/api-base": "12.4.1",
|
||||
"@polkadot/rpc-augment": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-augment": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,47 +370,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* The amount held on deposit for a registered identity.
|
||||
**/
|
||||
basicDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per encoded byte for a registered identity.
|
||||
**/
|
||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* of, e.g., updating judgements.
|
||||
**/
|
||||
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of sub-accounts allowed per identified account.
|
||||
**/
|
||||
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a suffix.
|
||||
**/
|
||||
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a username, including its suffix and any system-added delimiters.
|
||||
**/
|
||||
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks within which a username grant must be accepted.
|
||||
**/
|
||||
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for a registered subaccount. This should account for the fact
|
||||
* that one storage item's value will increase by the size of an account ID, and there will
|
||||
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
||||
**/
|
||||
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The deposit needed for reserving an index.
|
||||
@@ -887,36 +846,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Maximal number of bytes that a key can have.
|
||||
*
|
||||
* FRAME itself does not limit the key length.
|
||||
* The concrete value must therefore depend on your storage usage.
|
||||
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
||||
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
||||
*
|
||||
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
||||
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
||||
*
|
||||
* The migration will halt with a `Halted` event if this value is too small.
|
||||
* Since there is no real penalty from over-estimating, it is advised to use a large
|
||||
* value. The default is 512 byte.
|
||||
*
|
||||
* Some key lengths for reference:
|
||||
* - [`frame_support::storage::StorageValue`]: 32 byte
|
||||
* - [`frame_support::storage::StorageMap`]: 64 byte
|
||||
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
||||
*
|
||||
* For more info see
|
||||
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
||||
**/
|
||||
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
||||
|
||||
@@ -783,116 +783,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* Account ID is already named.
|
||||
**/
|
||||
AlreadyClaimed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Empty index.
|
||||
**/
|
||||
EmptyIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Fee is changed.
|
||||
**/
|
||||
FeeChanged: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The index is invalid.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid judgement.
|
||||
**/
|
||||
InvalidJudgement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The signature on a username was not valid.
|
||||
**/
|
||||
InvalidSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided suffix is too long.
|
||||
**/
|
||||
InvalidSuffix: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The target is invalid.
|
||||
**/
|
||||
InvalidTarget: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username does not meet the requirements.
|
||||
**/
|
||||
InvalidUsername: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided judgement was for a different identity.
|
||||
**/
|
||||
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Judgement given.
|
||||
**/
|
||||
JudgementGiven: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Error that occurs when there is an issue paying for judgement.
|
||||
**/
|
||||
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The authority cannot allocate any more usernames.
|
||||
**/
|
||||
NoAllocation: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No identity found.
|
||||
**/
|
||||
NoIdentity: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username cannot be forcefully removed because it can still be accepted.
|
||||
**/
|
||||
NotExpired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account isn't found.
|
||||
**/
|
||||
NotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account isn't named.
|
||||
**/
|
||||
NotNamed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sub-account isn't owned by sender.
|
||||
**/
|
||||
NotOwned: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sender is not a sub-account.
|
||||
**/
|
||||
NotSub: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The sender does not have permission to issue a username.
|
||||
**/
|
||||
NotUsernameAuthority: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The requested username does not exist.
|
||||
**/
|
||||
NoUsername: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Setting this username requires a signature, but none was provided.
|
||||
**/
|
||||
RequiresSignature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sticky judgement.
|
||||
**/
|
||||
StickyJudgement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum amount of registrars reached. Cannot add any more.
|
||||
**/
|
||||
TooManyRegistrars: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many subs-accounts.
|
||||
**/
|
||||
TooManySubAccounts: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The username is already taken.
|
||||
**/
|
||||
UsernameTaken: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The index was not available.
|
||||
@@ -2106,6 +1996,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
||||
**/
|
||||
CannotChillOther: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot reset a ledger.
|
||||
**/
|
||||
CannotRestoreLedger: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Commission is too low. Must be at least `MinCommission`.
|
||||
**/
|
||||
@@ -2195,42 +2089,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Bad child root provided.
|
||||
**/
|
||||
BadChildRoot: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bad witness data provided.
|
||||
**/
|
||||
BadWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key was longer than the configured maximum.
|
||||
*
|
||||
* This means that the migration halted at the current [`Progress`] and
|
||||
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
||||
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
||||
* The value should only be increased to avoid a storage migration for the currently
|
||||
* stored [`crate::Progress::LastKey`].
|
||||
**/
|
||||
KeyTooLong: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Max signed limits not respected.
|
||||
**/
|
||||
MaxSignedLimits: AugmentedError<ApiType>;
|
||||
/**
|
||||
* 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>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The origin filter prevent the call to be dispatched.
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -502,7 +502,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
|
||||
/**
|
||||
* An HRMP channel was opened between two system chains.
|
||||
* An HRMP channel was opened with a system chain.
|
||||
**/
|
||||
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
|
||||
/**
|
||||
@@ -526,82 +526,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* A username authority was added.
|
||||
**/
|
||||
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A username authority was removed.
|
||||
**/
|
||||
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A dangling username (as in, a username corresponding to an account that has removed its
|
||||
* identity) has been removed.
|
||||
**/
|
||||
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A name was cleared, and the given balance returned.
|
||||
**/
|
||||
IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A name was removed and the given balance slashed.
|
||||
**/
|
||||
IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A name was set or reset (which will remove all judgements).
|
||||
**/
|
||||
IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* A judgement was given by a registrar.
|
||||
**/
|
||||
JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], { target: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A judgement was asked from a registrar.
|
||||
**/
|
||||
JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A judgement request was retracted.
|
||||
**/
|
||||
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A queued username passed its expiration without being claimed and was removed.
|
||||
**/
|
||||
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
|
||||
/**
|
||||
* A username was set as a primary and can be looked up from `who`.
|
||||
**/
|
||||
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A registrar was added.
|
||||
**/
|
||||
RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], { registrarIndex: u32 }>;
|
||||
/**
|
||||
* A sub-identity was added to an identity and the deposit paid.
|
||||
**/
|
||||
SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A sub-identity was removed from an identity and the deposit freed.
|
||||
**/
|
||||
SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A sub-identity was cleared, and the given deposit repatriated from the
|
||||
* main identity account to the sub-identity account.
|
||||
**/
|
||||
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A username was queued, but `who` must accept it prior to `expiration`.
|
||||
**/
|
||||
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
|
||||
/**
|
||||
* A username was set for `who`.
|
||||
**/
|
||||
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* A account index was assigned.
|
||||
@@ -1296,6 +1220,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has stopped participating as either a validator or nominator.
|
||||
**/
|
||||
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
||||
/**
|
||||
* Report of a controller batch deprecation.
|
||||
**/
|
||||
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], { failures: u32 }>;
|
||||
/**
|
||||
* The era payout has been set; the first balance is the validator-payout; the second is
|
||||
* the remainder from the maximum amount of reward.
|
||||
@@ -1365,29 +1293,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The auto migration task finished.
|
||||
**/
|
||||
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Migration got halted due to an error or miss-configuration.
|
||||
**/
|
||||
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
|
||||
/**
|
||||
* Given number of `(top, child)` keys were migrated respectively, with the given
|
||||
* `compute`.
|
||||
**/
|
||||
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
|
||||
/**
|
||||
* Some account got slashed by the given amount.
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* `:code` was updated.
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -816,60 +815,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
||||
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
||||
*
|
||||
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
||||
* primary username.
|
||||
**/
|
||||
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* Information that is pertinent to identify the entity behind an account. First item is the
|
||||
* registration, second is the account's primary username.
|
||||
*
|
||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||
**/
|
||||
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Usernames that an authority has granted, but that the account controller has not confirmed
|
||||
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
||||
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
||||
* [`Call::accept_username`].
|
||||
*
|
||||
* First tuple item is the account and second is the acceptance deadline.
|
||||
**/
|
||||
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* The set of registrars. Not expected to get very big as can only be added through a
|
||||
* special origin (likely a council motion).
|
||||
*
|
||||
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
||||
**/
|
||||
registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Alternative "sub" identities of this account.
|
||||
*
|
||||
* The first item is the deposit, the second is a vector of the accounts.
|
||||
*
|
||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||
**/
|
||||
subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The super-identity of an alternative "sub" identity together with its name, within that
|
||||
* context. If the account is not some other account's sub-identity, then just `None`.
|
||||
**/
|
||||
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* A map of the accounts who are authorized to grant usernames.
|
||||
**/
|
||||
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* The lookup from index to account.
|
||||
@@ -2068,31 +2013,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The limits that are imposed on automatic migrations.
|
||||
*
|
||||
* If set to None, then no automatic migration happens.
|
||||
**/
|
||||
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Migration progress.
|
||||
*
|
||||
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
||||
* forward by any of the means provided by this pallet.
|
||||
**/
|
||||
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* 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
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The full account information for a particular account ID.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
@@ -14,12 +14,16 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
@@ -163,6 +167,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
grandpaApi: {
|
||||
/**
|
||||
@@ -211,10 +230,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
@@ -258,6 +281,129 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/10 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Approval voting configuration parameters
|
||||
**/
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
**/
|
||||
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
|
||||
/**
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
|
||||
**/
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
|
||||
/**
|
||||
* Yields information on all availability cores as relevant to the child block.
|
||||
**/
|
||||
availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
|
||||
/**
|
||||
* Get a vector of events concerning candidates that occurred within a block.
|
||||
**/
|
||||
candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
|
||||
/**
|
||||
* Get the receipt of a candidate pending availability.
|
||||
**/
|
||||
candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
|
||||
/**
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns a list of all disabled validators at the given block
|
||||
**/
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||
/**
|
||||
* Get all the pending inbound messages in the downward message queue for a para.
|
||||
**/
|
||||
dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
|
||||
/**
|
||||
* Get the contents of all channels addressed to the given recipient.
|
||||
**/
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
||||
/**
|
||||
* Returns a merkle proof of a validator session key
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get node features. This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
|
||||
/**
|
||||
* Returns the state of parachain backing for a given para
|
||||
**/
|
||||
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
|
||||
/**
|
||||
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
||||
**/
|
||||
persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
|
||||
/**
|
||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||
**/
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||
/**
|
||||
* Returns execution parameters for the session.
|
||||
**/
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||
/**
|
||||
* Returns the session index expected at a child of the block.
|
||||
**/
|
||||
sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
|
||||
/**
|
||||
* Get the session info for the given session, if stored.
|
||||
**/
|
||||
sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
|
||||
/**
|
||||
* Submits a PVF pre-checking statement into the transaction pool.
|
||||
**/
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
||||
**/
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Returns a list of validators that lost a past session dispute and need to be slashed
|
||||
**/
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
**/
|
||||
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
/**
|
||||
* Get the validation code from its hash.
|
||||
**/
|
||||
validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
/**
|
||||
* Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
**/
|
||||
validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
|
||||
/**
|
||||
* Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
|
||||
**/
|
||||
validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
|
||||
/**
|
||||
* Get the current validators.
|
||||
**/
|
||||
validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/1 */
|
||||
sessionKeys: {
|
||||
/**
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
import '@polkadot/api-base/types/submittable';
|
||||
|
||||
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeSessionKeys, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeSessionKeys, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -650,6 +649,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
hrmp: {
|
||||
/**
|
||||
* See [`Pallet::establish_channel_with_system`].
|
||||
**/
|
||||
establishChannelWithSystem: AugmentedSubmittable<(targetSystemChain: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::establish_system_channel`].
|
||||
**/
|
||||
@@ -695,100 +698,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* See [`Pallet::accept_username`].
|
||||
**/
|
||||
acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* See [`Pallet::add_registrar`].
|
||||
**/
|
||||
addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::add_sub`].
|
||||
**/
|
||||
addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
||||
/**
|
||||
* See [`Pallet::add_username_authority`].
|
||||
**/
|
||||
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, u32]>;
|
||||
/**
|
||||
* See [`Pallet::cancel_request`].
|
||||
**/
|
||||
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::clear_identity`].
|
||||
**/
|
||||
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* See [`Pallet::kill_identity`].
|
||||
**/
|
||||
killIdentity: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::provide_judgement`].
|
||||
**/
|
||||
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
||||
/**
|
||||
* See [`Pallet::quit_sub`].
|
||||
**/
|
||||
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* See [`Pallet::remove_dangling_username`].
|
||||
**/
|
||||
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* See [`Pallet::remove_expired_approval`].
|
||||
**/
|
||||
removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* See [`Pallet::remove_sub`].
|
||||
**/
|
||||
removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::remove_username_authority`].
|
||||
**/
|
||||
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::rename_sub`].
|
||||
**/
|
||||
renameSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
||||
/**
|
||||
* See [`Pallet::request_judgement`].
|
||||
**/
|
||||
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::set_account_id`].
|
||||
**/
|
||||
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
/**
|
||||
* See [`Pallet::set_fee`].
|
||||
**/
|
||||
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::set_fields`].
|
||||
**/
|
||||
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
|
||||
/**
|
||||
* See [`Pallet::set_identity`].
|
||||
**/
|
||||
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
|
||||
/**
|
||||
* See [`Pallet::set_primary_username`].
|
||||
**/
|
||||
setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* See [`Pallet::set_subs`].
|
||||
**/
|
||||
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
||||
/**
|
||||
* See [`Pallet::set_username_for`].
|
||||
**/
|
||||
setUsernameFor: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | { Ed25519: any } | { Sr25519: any } | { Ecdsa: any } | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* See [`Pallet::claim`].
|
||||
@@ -1159,7 +1068,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::add_proxy`].
|
||||
**/
|
||||
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
||||
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* See [`Pallet::announce`].
|
||||
**/
|
||||
@@ -1167,19 +1076,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::create_pure`].
|
||||
**/
|
||||
createPure: AugmentedSubmittable<(proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeProxyType, u32, u16]>;
|
||||
createPure: AugmentedSubmittable<(proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeProxyType, u32, u16]>;
|
||||
/**
|
||||
* See [`Pallet::kill_pure`].
|
||||
**/
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
/**
|
||||
* See [`Pallet::proxy`].
|
||||
**/
|
||||
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
||||
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* See [`Pallet::proxy_announced`].
|
||||
**/
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* See [`Pallet::reject_announcement`].
|
||||
**/
|
||||
@@ -1195,7 +1104,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* See [`Pallet::remove_proxy`].
|
||||
**/
|
||||
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
||||
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1548,6 +1457,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::rebond`].
|
||||
**/
|
||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::restore_ledger`].
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | { value?: any; era?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PalletStakingUnlockChunk>>]>;
|
||||
/**
|
||||
* See [`Pallet::scale_validator_count`].
|
||||
**/
|
||||
@@ -1597,36 +1510,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* See [`Pallet::continue_migrate`].
|
||||
**/
|
||||
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
|
||||
/**
|
||||
* See [`Pallet::control_auto_migration`].
|
||||
**/
|
||||
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
||||
/**
|
||||
* See [`Pallet::force_set_progress`].
|
||||
**/
|
||||
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]>;
|
||||
/**
|
||||
* See [`Pallet::migrate_custom_child`].
|
||||
**/
|
||||
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
|
||||
/**
|
||||
* See [`Pallet::migrate_custom_top`].
|
||||
**/
|
||||
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
||||
/**
|
||||
* See [`Pallet::set_signed_max_limits`].
|
||||
**/
|
||||
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* See [`Pallet::apply_authorized_upgrade`].
|
||||
@@ -1882,6 +1765,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::transfer_assets`].
|
||||
**/
|
||||
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
|
||||
/**
|
||||
* See [`Pallet::transfer_assets_using_type_and_then`].
|
||||
**/
|
||||
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -661,6 +661,36 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Maximal number of bytes that a key can have.
|
||||
*
|
||||
* FRAME itself does not limit the key length.
|
||||
* The concrete value must therefore depend on your storage usage.
|
||||
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
||||
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
||||
*
|
||||
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
||||
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
||||
*
|
||||
* The migration will halt with a `Halted` event if this value is too small.
|
||||
* Since there is no real penalty from over-estimating, it is advised to use a large
|
||||
* value. The default is 512 byte.
|
||||
*
|
||||
* Some key lengths for reference:
|
||||
* - [`frame_support::storage::StorageValue`]: 32 byte
|
||||
* - [`frame_support::storage::StorageMap`]: 64 byte
|
||||
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
||||
*
|
||||
* For more info see
|
||||
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
||||
**/
|
||||
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
||||
|
||||
@@ -1619,6 +1619,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
||||
**/
|
||||
CannotChillOther: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot reset a ledger.
|
||||
**/
|
||||
CannotRestoreLedger: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Commission is too low. Must be at least `MinCommission`.
|
||||
**/
|
||||
@@ -1708,6 +1712,42 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Bad child root provided.
|
||||
**/
|
||||
BadChildRoot: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bad witness data provided.
|
||||
**/
|
||||
BadWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key was longer than the configured maximum.
|
||||
*
|
||||
* This means that the migration halted at the current [`Progress`] and
|
||||
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
||||
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
||||
* The value should only be increased to avoid a storage migration for the currently
|
||||
* stored [`crate::Progress::LastKey`].
|
||||
**/
|
||||
KeyTooLong: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Max signed limits not respected.
|
||||
**/
|
||||
MaxSignedLimits: AugmentedError<ApiType>;
|
||||
/**
|
||||
* 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>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The origin filter prevent the call to be dispatched.
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -397,7 +397,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
HrmpChannelForceOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
|
||||
/**
|
||||
* An HRMP channel was opened between two system chains.
|
||||
* An HRMP channel was opened with a system chain.
|
||||
**/
|
||||
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], { sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32 }>;
|
||||
/**
|
||||
@@ -940,6 +940,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has stopped participating as either a validator or nominator.
|
||||
**/
|
||||
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
||||
/**
|
||||
* Report of a controller batch deprecation.
|
||||
**/
|
||||
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], { failures: u32 }>;
|
||||
/**
|
||||
* The era payout has been set; the first balance is the validator-payout; the second is
|
||||
* the remainder from the maximum amount of reward.
|
||||
@@ -1009,6 +1013,29 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The auto migration task finished.
|
||||
**/
|
||||
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Migration got halted due to an error or miss-configuration.
|
||||
**/
|
||||
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
|
||||
/**
|
||||
* Given number of `(top, child)` keys were migrated respectively, with the given
|
||||
* `compute`.
|
||||
**/
|
||||
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
|
||||
/**
|
||||
* Some account got slashed by the given amount.
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* `:code` was updated.
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -1760,6 +1760,31 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The limits that are imposed on automatic migrations.
|
||||
*
|
||||
* If set to None, then no automatic migration happens.
|
||||
**/
|
||||
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Migration progress.
|
||||
*
|
||||
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
||||
* forward by any of the means provided by this pallet.
|
||||
**/
|
||||
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* 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
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The full account information for a particular account ID.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
@@ -14,14 +14,16 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
@@ -165,6 +167,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
grandpaApi: {
|
||||
/**
|
||||
@@ -213,10 +230,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
@@ -260,12 +281,20 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/5 */
|
||||
/** 0xaf2c0297a23e6d3d/10 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Approval voting configuration parameters
|
||||
**/
|
||||
approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
**/
|
||||
assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
|
||||
/**
|
||||
* Returns candidate's acceptance limitations for asynchronous backing for a relay parent
|
||||
**/
|
||||
asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
|
||||
/**
|
||||
* Yields information on all availability cores as relevant to the child block.
|
||||
**/
|
||||
@@ -282,6 +311,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns a list of all disabled validators at the given block
|
||||
**/
|
||||
disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
@@ -298,10 +331,22 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns a merkle proof of a validator session key
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
|
||||
/**
|
||||
* Get node features. This is a staging method! Do not use on production runtimes!
|
||||
**/
|
||||
nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
|
||||
/**
|
||||
* Returns the state of parachain backing for a given para
|
||||
**/
|
||||
paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
|
||||
/**
|
||||
* Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
|
||||
**/
|
||||
@@ -337,7 +382,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
**/
|
||||
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
|
||||
validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
|
||||
/**
|
||||
* Get the validation code from its hash.
|
||||
**/
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -560,6 +560,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
hrmp: {
|
||||
/**
|
||||
* See [`Pallet::establish_channel_with_system`].
|
||||
**/
|
||||
establishChannelWithSystem: AugmentedSubmittable<(targetSystemChain: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* See [`Pallet::establish_system_channel`].
|
||||
**/
|
||||
@@ -1244,6 +1248,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::rebond`].
|
||||
**/
|
||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||
/**
|
||||
* See [`Pallet::restore_ledger`].
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | { value?: any; era?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PalletStakingUnlockChunk>>]>;
|
||||
/**
|
||||
* See [`Pallet::scale_validator_count`].
|
||||
**/
|
||||
@@ -1293,6 +1301,36 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* See [`Pallet::continue_migrate`].
|
||||
**/
|
||||
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | { progressTop?: any; progressChild?: any; size_?: any; topItems?: any; childItems?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
|
||||
/**
|
||||
* See [`Pallet::control_auto_migration`].
|
||||
**/
|
||||
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
||||
/**
|
||||
* See [`Pallet::force_set_progress`].
|
||||
**/
|
||||
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]>;
|
||||
/**
|
||||
* See [`Pallet::migrate_custom_child`].
|
||||
**/
|
||||
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
|
||||
/**
|
||||
* See [`Pallet::migrate_custom_top`].
|
||||
**/
|
||||
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
||||
/**
|
||||
* See [`Pallet::set_signed_max_limits`].
|
||||
**/
|
||||
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | { size_?: any; item?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* See [`Pallet::apply_authorized_upgrade`].
|
||||
@@ -1548,6 +1586,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* See [`Pallet::transfer_assets`].
|
||||
**/
|
||||
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
|
||||
/**
|
||||
* See [`Pallet::transfer_assets_using_type_and_then`].
|
||||
**/
|
||||
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | { Teleport: any } | { LocalReserve: any } | { DestinationReserve: any } | { RemoteReserve: any } | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
|
||||
@@ -170,10 +170,14 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
*
|
||||
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
maxLocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of named reserves that can exist on an account.
|
||||
*
|
||||
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
maxReserves: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -349,6 +353,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum allowable length in bytes for storage keys.
|
||||
**/
|
||||
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum size of the transient storage in bytes.
|
||||
* This includes keys, values, and previous entries used for storage rollback.
|
||||
**/
|
||||
maxTransientStorageSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Cost schedule and limits.
|
||||
**/
|
||||
@@ -395,6 +404,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum size in bytes submitted evidence is allowed to be.
|
||||
**/
|
||||
evidenceSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Represents the highest possible rank in this pallet.
|
||||
*
|
||||
* Increasing this value is supported, but decreasing it may lead to a broken state.
|
||||
**/
|
||||
maxRank: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -534,18 +549,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this value.
|
||||
**/
|
||||
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the signed phase.
|
||||
**/
|
||||
signedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -659,7 +666,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* of, e.g., updating judgements.
|
||||
**/
|
||||
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
||||
@@ -742,6 +749,14 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
||||
**/
|
||||
heapSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
||||
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
||||
* Useful for parachains to process messages at the same block they are received.
|
||||
*
|
||||
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
||||
**/
|
||||
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
||||
* can happen. Once there are more stale pages than this, then historical pages may be
|
||||
@@ -750,10 +765,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maxStale: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of weight (if any) which should be provided to the message queue for
|
||||
* servicing enqueued items.
|
||||
* servicing enqueued items `on_initialize`.
|
||||
*
|
||||
* This may be legitimately `None` in the case that you will call
|
||||
* `ServiceQueues::service_queues` manually.
|
||||
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
||||
* it run in `on_idle`.
|
||||
**/
|
||||
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -813,6 +829,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The maximal length of an encoded cursor.
|
||||
*
|
||||
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
||||
* above this limit. This is statically checked in `integrity_test`.
|
||||
**/
|
||||
cursorMaxLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximal length of an encoded identifier.
|
||||
*
|
||||
* A good default needs to selected such that no migration will ever have an identifier
|
||||
* with MEL above this limit. This is statically checked in `integrity_test`.
|
||||
**/
|
||||
identifierMaxLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
@@ -1484,7 +1520,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Get the chain's current version.
|
||||
* Get the chain's in-code version.
|
||||
**/
|
||||
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1598,19 +1634,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The period during which an approved treasury spend has to be claimed.
|
||||
**/
|
||||
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
||||
* An accepted proposal gets these back. A rejected proposal does not.
|
||||
**/
|
||||
proposalBond: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||
**/
|
||||
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Period between successive spends.
|
||||
**/
|
||||
|
||||
@@ -265,6 +265,28 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
assetConversionMigration: {
|
||||
/**
|
||||
* Provided asset pair is not supported for pool.
|
||||
**/
|
||||
InvalidAssetPair: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Indicates a partial transfer of balance to the new account during a migration.
|
||||
**/
|
||||
PartialTransfer: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool doesn't exist.
|
||||
**/
|
||||
PoolNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Pool's balance cannot be zero.
|
||||
**/
|
||||
ZeroBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
assetRate: {
|
||||
/**
|
||||
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
||||
@@ -292,6 +314,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The asset is not live, and likely being destroyed.
|
||||
**/
|
||||
AssetNotLive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset ID must be equal to the [`NextAssetId`].
|
||||
**/
|
||||
BadAssetId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid metadata given.
|
||||
**/
|
||||
@@ -458,9 +484,21 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
InvalidConfiguration: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An equivocation proof provided as part of an equivocation report is invalid.
|
||||
* A double voting proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidEquivocationProof: AugmentedError<ApiType>;
|
||||
InvalidDoubleVotingProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The session of the equivocation proof is invalid
|
||||
**/
|
||||
InvalidEquivocationProofSession: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A fork voting proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidForkVotingProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A future block voting proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidFutureBlockVotingProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key ownership proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
@@ -547,6 +585,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The configuration could not be applied because it is invalid.
|
||||
**/
|
||||
InvalidConfig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The revenue must be claimed for 1 or more timeslices.
|
||||
**/
|
||||
NoClaimTimeslices: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The history item does not exist.
|
||||
**/
|
||||
@@ -725,7 +767,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
DuplicateContract: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An indetermistic code was used in a context where this is not permitted.
|
||||
* An indeterministic code was used in a context where this is not permitted.
|
||||
**/
|
||||
Indeterministic: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -771,6 +813,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The executed contract exhausted its gas limit.
|
||||
**/
|
||||
OutOfGas: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Can not add more data to transient storage.
|
||||
**/
|
||||
OutOfTransientStorage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The output buffer supplied to a contract API call was too small.
|
||||
**/
|
||||
@@ -786,6 +832,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* contract code execution which is not supported.
|
||||
**/
|
||||
ReentranceDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
||||
**/
|
||||
StateChangeDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* More storage was created than allowed by the storage deposit limit.
|
||||
**/
|
||||
@@ -1105,7 +1155,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
OcwCallWrongEra: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Sumission was prepared for a different round.
|
||||
* Submission was prepared for a different round.
|
||||
**/
|
||||
PreDispatchDifferentRound: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1535,6 +1585,16 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The operation cannot complete since some MBMs are ongoing.
|
||||
**/
|
||||
Ongoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* Call is already approved by this signatory.
|
||||
@@ -1836,7 +1896,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
DurationTooSmall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The operation would result in a receipt worth an insignficant value.
|
||||
* The operation would result in a receipt worth an insignificant value.
|
||||
**/
|
||||
MakesDust: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1878,6 +1938,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* pool at a time.
|
||||
**/
|
||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has already migrated to delegate stake.
|
||||
**/
|
||||
AlreadyMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bonding extra is restricted to the exact pending reward amount.
|
||||
**/
|
||||
@@ -1969,10 +2033,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No imbalance in the ED deposit for the pool.
|
||||
**/
|
||||
NothingToAdjust: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No slash pending that can be applied to the member.
|
||||
**/
|
||||
NothingToSlash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||
**/
|
||||
NotKickerOrDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool or member delegation has not migrated yet to delegate stake.
|
||||
**/
|
||||
NotMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller does not have nominating permissions for the pool.
|
||||
**/
|
||||
@@ -1981,6 +2053,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The pool is not open to join
|
||||
**/
|
||||
NotOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This call is not allowed in the current state of the pallet.
|
||||
**/
|
||||
NotSupported: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction could not be executed due to overflow risk for the pool.
|
||||
**/
|
||||
@@ -2023,6 +2099,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The asset is not live, and likely being destroyed.
|
||||
**/
|
||||
AssetNotLive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset ID must be equal to the [`NextAssetId`].
|
||||
**/
|
||||
BadAssetId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid metadata given.
|
||||
**/
|
||||
@@ -2108,6 +2188,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Preimage has already been noted on-chain.
|
||||
**/
|
||||
AlreadyNoted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
||||
**/
|
||||
NoCost: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The user is not authorized to perform this action.
|
||||
**/
|
||||
@@ -2220,6 +2304,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The new member to exchange is the same as the old member
|
||||
**/
|
||||
SameMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The max member count for the rank has been reached.
|
||||
**/
|
||||
TooManyMembers: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -2270,6 +2358,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage is stored with a different length than the one provided.
|
||||
**/
|
||||
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
@@ -2398,6 +2490,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage is stored with a different length than the one provided.
|
||||
**/
|
||||
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
@@ -2733,6 +2829,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
||||
**/
|
||||
CannotChillOther: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot reset a ledger.
|
||||
**/
|
||||
CannotRestoreLedger: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Commission is too low. Must be at least `MinCommission`.
|
||||
**/
|
||||
@@ -2791,6 +2891,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Not a controller account.
|
||||
**/
|
||||
NotController: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough funds available to withdraw.
|
||||
**/
|
||||
NotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Items are not sorted and unique.
|
||||
**/
|
||||
@@ -2803,6 +2907,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Can not rebond without unlocking chunks.
|
||||
**/
|
||||
NoUnlockChunk: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Provided reward destination is not allowed.
|
||||
**/
|
||||
RewardDestinationRestricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There are too many nominators in the system. Governance needs to adjust the staking
|
||||
* settings to keep things safe for the runtime.
|
||||
@@ -2817,6 +2925,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* staking settings to keep things safe for the runtime.
|
||||
**/
|
||||
TooManyValidators: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Operation not allowed for virtual stakers.
|
||||
**/
|
||||
VirtualStakerNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -2884,6 +2996,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* and the new runtime.
|
||||
**/
|
||||
InvalidSpecName: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
||||
**/
|
||||
MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Suicide called when the account has non-default composite data.
|
||||
**/
|
||||
@@ -3044,7 +3160,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
MissingProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unable to verify proof becasue state data is missing.
|
||||
* Unable to verify proof because state data is missing.
|
||||
**/
|
||||
MissingStateData: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -3098,10 +3214,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* amount to be spent.
|
||||
**/
|
||||
InsufficientPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposer's balance is too low.
|
||||
**/
|
||||
InsufficientProposersBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No proposal, bounty or spend at that index.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -119,7 +119,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
|
||||
/**
|
||||
* A successful call of the `CretaPool` extrinsic will create this event.
|
||||
* A successful call of the `CreatePool` extrinsic will create this event.
|
||||
**/
|
||||
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32 }>;
|
||||
/**
|
||||
@@ -131,6 +131,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* and `SwapTokenForExactToken` will generate this event.
|
||||
**/
|
||||
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
|
||||
/**
|
||||
* Pool has been touched in order to fulfill operational requirements.
|
||||
**/
|
||||
Touched: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetConversionMigration: {
|
||||
/**
|
||||
* Indicates that a pool has been migrated to the new account ID.
|
||||
**/
|
||||
MigratedToNewAccount: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -205,6 +219,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset class was created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were deposited (e.g. for transaction fees).
|
||||
**/
|
||||
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An asset class was destroyed.
|
||||
**/
|
||||
@@ -258,6 +276,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* the approved `delegate`.
|
||||
**/
|
||||
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -421,10 +443,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
|
||||
/**
|
||||
* A Region has been assigned to a particular task.
|
||||
**/
|
||||
@@ -486,6 +504,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A Region has been added to the Instantaneous Coretime Pool.
|
||||
**/
|
||||
Pooled: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32], { regionId: PalletBrokerRegionId, duration: u32 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
PotentialRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
|
||||
/**
|
||||
* A Region of Bulk Coretime has been purchased.
|
||||
**/
|
||||
@@ -525,7 +547,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A new sale has been initialized.
|
||||
**/
|
||||
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
|
||||
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, endPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
|
||||
/**
|
||||
* The sale rotation has been started and a new sale is imminent.
|
||||
**/
|
||||
@@ -533,7 +555,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Ownership of a Region has been transferred.
|
||||
**/
|
||||
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32 }>;
|
||||
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32>], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -668,7 +690,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Parameters for the pallet have changed.
|
||||
**/
|
||||
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsType], { params: PalletCoreFellowshipParamsType }>;
|
||||
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsTypeU128], { params: PalletCoreFellowshipParamsTypeU128 }>;
|
||||
/**
|
||||
* Member has been promoted to the given rank.
|
||||
**/
|
||||
@@ -772,7 +794,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||
/**
|
||||
* An account has secconded a proposal
|
||||
* An account has seconded a proposal
|
||||
**/
|
||||
Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], { seconder: AccountId32, propIndex: u32 }>;
|
||||
/**
|
||||
@@ -827,7 +849,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A solution was stored with the given compute.
|
||||
*
|
||||
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
|
||||
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
|
||||
* the stored solution was submitted in the signed phase by a miner with the `AccountId`.
|
||||
* Otherwise, the solution was stored either during the unsigned phase or by
|
||||
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
|
||||
* room for this one.
|
||||
@@ -911,6 +933,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
glutton: {
|
||||
/**
|
||||
* The block length limit has been updated.
|
||||
**/
|
||||
BlockLengthLimitSet: AugmentedEvent<ApiType, [blockLength: u64], { blockLength: u64 }>;
|
||||
/**
|
||||
* The computation limit has been updated.
|
||||
**/
|
||||
@@ -1102,6 +1128,52 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The set of historical migrations has been cleared.
|
||||
**/
|
||||
HistoricCleared: AugmentedEvent<ApiType, [nextCursor: Option<Bytes>], { nextCursor: Option<Bytes> }>;
|
||||
/**
|
||||
* A migration progressed.
|
||||
**/
|
||||
MigrationAdvanced: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
|
||||
/**
|
||||
* A Migration completed.
|
||||
**/
|
||||
MigrationCompleted: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
|
||||
/**
|
||||
* A Migration failed.
|
||||
*
|
||||
* This implies that the whole upgrade failed and governance intervention is required.
|
||||
**/
|
||||
MigrationFailed: AugmentedEvent<ApiType, [index: u32, took: u32], { index: u32, took: u32 }>;
|
||||
/**
|
||||
* A migration was skipped since it was already executed in the past.
|
||||
**/
|
||||
MigrationSkipped: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* The current runtime upgrade completed.
|
||||
*
|
||||
* This implies that all of its migrations completed successfully as well.
|
||||
**/
|
||||
UpgradeCompleted: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Runtime upgrade failed.
|
||||
*
|
||||
* This is very bad and will require governance intervention.
|
||||
**/
|
||||
UpgradeFailed: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A Runtime upgrade started.
|
||||
*
|
||||
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
||||
**/
|
||||
UpgradeStarted: AugmentedEvent<ApiType, [migrations: u32], { migrations: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* A multisig operation has been approved by someone.
|
||||
@@ -1325,7 +1397,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
|
||||
/**
|
||||
* A receipt was transfered.
|
||||
* A receipt was transferred.
|
||||
**/
|
||||
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
|
||||
/**
|
||||
@@ -1498,6 +1570,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset class was created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were deposited (e.g. for transaction fees).
|
||||
**/
|
||||
Deposited: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An asset class was destroyed.
|
||||
**/
|
||||
@@ -1551,6 +1627,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* the approved `delegate`.
|
||||
**/
|
||||
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
Withdrawn: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, amount: u128], { assetId: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -2034,6 +2114,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account has stopped participating as either a validator or nominator.
|
||||
**/
|
||||
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
||||
/**
|
||||
* Report of a controller batch deprecation.
|
||||
**/
|
||||
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], { failures: u32 }>;
|
||||
/**
|
||||
* The era payout has been set; the first balance is the validator-payout; the second is
|
||||
* the remainder from the maximum amount of reward.
|
||||
@@ -2342,14 +2426,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A payment failed and can be retried.
|
||||
**/
|
||||
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
|
||||
/**
|
||||
* New proposal.
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
|
||||
/**
|
||||
* A proposal was rejected; funds were slashed.
|
||||
**/
|
||||
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
|
||||
/**
|
||||
* Spending has finished; this is the amount that rolls over until next spend.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -61,7 +61,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
* The prime member that helps determine the default vote behavior in case of abstentions.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -132,6 +132,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Metadata of an asset.
|
||||
**/
|
||||
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
||||
* item has no effect.
|
||||
*
|
||||
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
||||
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
||||
* auto-increment model can be applied to all new asset IDs.
|
||||
*
|
||||
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
||||
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
||||
**/
|
||||
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -305,11 +317,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -317,10 +329,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Any liquidity locks on some account balances.
|
||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||
*
|
||||
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Named reserves on some account balances.
|
||||
*
|
||||
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
||||
**/
|
||||
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -392,10 +408,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Records of allowed renewals.
|
||||
**/
|
||||
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
|
||||
/**
|
||||
* The current configuration of this pallet.
|
||||
**/
|
||||
@@ -421,13 +433,23 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current (unassigned) Regions.
|
||||
* Records of potential renewals.
|
||||
*
|
||||
* Renewals will only actually be allowed if `CompletionStatus` is actually `Complete`.
|
||||
**/
|
||||
potentialRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerPotentialRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerPotentialRenewalRecord>>, [PalletBrokerPotentialRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerPotentialRenewalId]>;
|
||||
/**
|
||||
* The current (unassigned or provisionally assigend) Regions.
|
||||
**/
|
||||
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => Observable<Option<PalletBrokerRegionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
|
||||
/**
|
||||
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
|
||||
**/
|
||||
reservations: AugmentedQuery<ApiType, () => Observable<Vec<Vec<PalletBrokerScheduleItem>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Received revenue info from the relay chain.
|
||||
**/
|
||||
revenueInbox: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerOnDemandRevenueRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The details of the current sale, including its properties and status.
|
||||
**/
|
||||
@@ -567,7 +589,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The overall status of the system.
|
||||
**/
|
||||
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsType>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsTypeU128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -579,7 +601,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
* The prime member that helps determine the default vote behavior in case of abstentions.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -838,6 +860,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* over `1.0` could stall the chain.
|
||||
**/
|
||||
compute: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The proportion of the `block length` to consume on each block.
|
||||
*
|
||||
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
||||
* over `1.0` could stall the chain.
|
||||
**/
|
||||
length: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The proportion of the remaining `proof_size` to consume during `on_idle`.
|
||||
*
|
||||
@@ -1134,6 +1163,25 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The currently active migration to run and its cursor.
|
||||
*
|
||||
* `None` indicates that no migration is running.
|
||||
**/
|
||||
cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Set of all successfully executed migrations.
|
||||
*
|
||||
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
||||
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
||||
**/
|
||||
historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The set of open multisig operations.
|
||||
@@ -1376,11 +1424,21 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
palletExampleMbms: {
|
||||
/**
|
||||
* Define a storage item to illustrate multi-block migrations.
|
||||
**/
|
||||
myMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parameters: {
|
||||
/**
|
||||
* Stored parameters.
|
||||
**/
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contract: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1405,6 +1463,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Metadata of an asset.
|
||||
**/
|
||||
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
||||
* item has no effect.
|
||||
*
|
||||
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
||||
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
||||
* auto-increment model can be applied to all new asset IDs.
|
||||
*
|
||||
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
||||
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
||||
**/
|
||||
nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1838,6 +1908,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current era index.
|
||||
*
|
||||
@@ -1851,6 +1925,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
||||
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
||||
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
||||
* implicitly means that the implementor also controls the max number of disabled validators.
|
||||
*
|
||||
* The vec is always kept sorted so that we can find whether a given validator has previously
|
||||
* offended using binary search.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
@@ -2019,18 +2103,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
||||
**/
|
||||
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era and whether they are currently
|
||||
* disabled.
|
||||
*
|
||||
* This value should be a superset of disabled validators since not all offences lead to the
|
||||
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
||||
* validators that have offended in the current era, ensuring a new era is forced if
|
||||
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
||||
* whether a given validator has previously offended using binary search. It gets cleared when
|
||||
* the era ends.
|
||||
**/
|
||||
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Where the reward payment should be made. Keyed by stash.
|
||||
*
|
||||
@@ -2071,6 +2143,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* and slash value of the era.
|
||||
**/
|
||||
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Stakers whose funds are managed by other pallets.
|
||||
*
|
||||
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
||||
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
||||
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
||||
* via low level apis. We keep track of them to do minimal integrity checks.
|
||||
**/
|
||||
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -2175,6 +2256,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
||||
**/
|
||||
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Whether all inherents have been applied.
|
||||
**/
|
||||
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
||||
**/
|
||||
@@ -2221,7 +2306,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
* The prime member that helps determine the default vote behavior in case of abstentions.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -6,27 +6,30 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, U64, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { Mixnode, MixnodesErr, SessionStatus } from '@polkadot/types/interfaces/mixnet';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
||||
import type { SpConsensusBeefyDoubleVotingProof, SpStatementStoreStatement, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -117,7 +120,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
/** 0x49eaaf1b548a0cb0/4 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
@@ -128,9 +131,9 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
* Submits an unsigned extrinsic to report a double voting equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
@@ -186,7 +189,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xdf6acb689907609b/4 */
|
||||
/** 0xdf6acb689907609b/5 */
|
||||
core: {
|
||||
/**
|
||||
* Execute the given block.
|
||||
@@ -195,7 +198,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/**
|
||||
* Initialize a block with the given header.
|
||||
**/
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
||||
initializeBlock: AugmentedCall<ApiType, (header: Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
|
||||
/**
|
||||
* Returns the version of the runtime.
|
||||
**/
|
||||
@@ -205,6 +208,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xfbc577b9d747efd6/1 */
|
||||
genesisBuilder: {
|
||||
/**
|
||||
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
||||
**/
|
||||
buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
|
||||
/**
|
||||
* Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
|
||||
**/
|
||||
createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xed99c5acb25eedf5/3 */
|
||||
grandpaApi: {
|
||||
/**
|
||||
@@ -247,16 +265,43 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x6fd7c327202e4a8d/1 */
|
||||
mixnetApi: {
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
**/
|
||||
currentMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
||||
/**
|
||||
* Try to register a mixnode for the next session.
|
||||
**/
|
||||
maybeRegister: AugmentedCall<ApiType, (session_index: u32 | AnyNumber | Uint8Array, mixnode: Mixnode | { externalAddresses?: any; kxPublic?: any; peerId?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
**/
|
||||
prevMixnodes: AugmentedCall<ApiType, () => Observable<Result<Mixnode, MixnodesErr>>>;
|
||||
/**
|
||||
* Get the index and phase of the current session.
|
||||
**/
|
||||
sessionStatus: AugmentedCall<ApiType, () => Observable<SessionStatus>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the number of MMR blocks in the chain.
|
||||
**/
|
||||
mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
@@ -414,5 +459,16 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xbe9fb0c91a8046cf/1 */
|
||||
validateStatement: {
|
||||
/**
|
||||
* Validate the statement.
|
||||
**/
|
||||
valdateStatement: AugmentedCall<ApiType, (source: StatementStoreStatementSource | 'Chain' | 'Network' | 'Local' | number | Uint8Array, statement: SpStatementStoreStatement | { proof?: any; decryptionKey?: any; channel?: any; priority?: any; numTopics?: any; topics?: any; data?: any } | string | Uint8Array) => Observable<Result<StatementStoreValidStatement, StatementStoreInvalidStatement>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
} // AugmentedCalls
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/rpc-core": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
"tslib": "^2.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
|
||||
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||
import type { AnyFunction, AnyNumber, AnyTuple, AnyU8a, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
|
||||
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
|
||||
|
||||
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
|
||||
@@ -17,6 +17,9 @@ export interface SignerOptions {
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
mode?: AnyNumber;
|
||||
metadataHash?: AnyU8a;
|
||||
withSignedTransaction?: boolean;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
@@ -64,8 +67,27 @@ export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmi
|
||||
|
||||
send (statusCb: Callback<R>): SubmittableResultSubscription<ApiType, R>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.2 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will modify the payload. This
|
||||
* The api will ensure that the Call Data is not changed. This allows for the signer to modify the payload to add
|
||||
* things like `mode`, and `metadataHash` for signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAsync (account: AddressOrPair, _options?: Partial<SignerOptions>): PromiseOrObs<ApiType, this>;
|
||||
|
||||
/**
|
||||
* @description Sign and broadcast the constructued transaction.
|
||||
*
|
||||
* Note for injected signers:
|
||||
* As of v12.0.1 and up the `SignerResult` return type for `signPayload` allows for the `signedTransaction` field.
|
||||
* This allows the signer to input a signed transaction that will be directly broadcasted. This
|
||||
* bypasses the api adding the signature to the payload. The api will ensure that the Call Data is not changed before it broadcasts the
|
||||
* transaction. This allows for the signer to modify the payload to add things like `mode`, and `metadataHash` for
|
||||
* signedExtensions such as `CheckMetadataHash`.
|
||||
*/
|
||||
signAndSend (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableResultResult<ApiType, R>;
|
||||
|
||||
signAndSend (account: AddressOrPair, statusCb: Callback<R>): SubmittableResultSubscription<ApiType>;
|
||||
|
||||
@@ -18,22 +18,22 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.12.3",
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/types-create": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/api": "12.4.1",
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/types-create": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/util-crypto": "^13.0.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "10.12.3"
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/keyring": "^13.0.2",
|
||||
"@polkadot/types-support": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.12.3",
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/api-base": "10.12.3",
|
||||
"@polkadot/rpc-core": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/api": "12.4.1",
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/api-base": "12.4.1",
|
||||
"@polkadot/rpc-core": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/util-crypto": "^13.0.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.12.3",
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/rpc-augment": "10.12.3",
|
||||
"@polkadot/rpc-provider": "10.12.3",
|
||||
"@polkadot/types-support": "10.12.3"
|
||||
"@polkadot/api": "12.4.1",
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/rpc-augment": "12.4.1",
|
||||
"@polkadot/rpc-provider": "12.4.1",
|
||||
"@polkadot/types-support": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Bytes, Data } from '@polkadot/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { Bytes, Data, Struct } from '@polkadot/types';
|
||||
import type { AccountId, H160 } from '@polkadot/types/interfaces';
|
||||
import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
||||
import type { Option } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
@@ -17,9 +17,26 @@ import { firstMemo, memo } from '../util/index.js';
|
||||
|
||||
type IdentityInfoAdditional = PalletIdentityLegacyIdentityInfo['additional'][0];
|
||||
|
||||
interface PeopleIdentityInfo extends Struct {
|
||||
display: Data;
|
||||
legal: Data;
|
||||
web: Data;
|
||||
matrix: Data;
|
||||
email: Data;
|
||||
pgpFingerprint: Option<H160>;
|
||||
image: Data;
|
||||
twitter: Data;
|
||||
github: Data;
|
||||
discord: Data;
|
||||
}
|
||||
|
||||
const UNDEF_HEX = { toHex: () => undefined };
|
||||
|
||||
function dataAsString (data: Data): string | undefined {
|
||||
if (!data) {
|
||||
return data;
|
||||
}
|
||||
|
||||
return data.isRaw
|
||||
? u8aToString(data.asRaw.toU8a(true))
|
||||
: data.isNone
|
||||
@@ -58,13 +75,16 @@ function extractIdentity (identityOfOpt?: Option<ITuple<[PalletIdentityRegistrat
|
||||
const topDisplay = dataAsString(info.display);
|
||||
|
||||
return {
|
||||
discord: dataAsString((info as unknown as PeopleIdentityInfo).discord),
|
||||
display: (superOf && dataAsString(superOf[1])) || topDisplay,
|
||||
displayParent: superOf && topDisplay,
|
||||
email: dataAsString(info.email),
|
||||
github: dataAsString((info as unknown as PeopleIdentityInfo).github),
|
||||
image: dataAsString(info.image),
|
||||
judgements,
|
||||
legal: dataAsString(info.legal),
|
||||
other: extractOther(info.additional),
|
||||
matrix: dataAsString((info as unknown as PeopleIdentityInfo).matrix),
|
||||
other: info.additional ? extractOther(info.additional) : {},
|
||||
parent: superOf?.[0],
|
||||
pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(),
|
||||
riot: dataAsString(info.riot),
|
||||
|
||||
@@ -8,11 +8,14 @@ export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined
|
||||
export type AccountIndexes = Record<string, AccountIndex>;
|
||||
|
||||
export interface DeriveAccountRegistration {
|
||||
discord?: string | undefined;
|
||||
display?: string | undefined;
|
||||
displayParent?: string | undefined;
|
||||
email?: string | undefined;
|
||||
github?: string | undefined;
|
||||
image?: string | undefined;
|
||||
legal?: string | undefined;
|
||||
matrix?: string | undefined;
|
||||
other?: Record<string, string> | undefined;
|
||||
parent?: AccountId | undefined;
|
||||
pgp?: string | undefined;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { AccountData, AccountId, AccountIndex, AccountInfo, Address, Balance, Index } from '@polkadot/types/interfaces';
|
||||
import type { FrameSystemAccountInfo, PalletBalancesAccountData } from '@polkadot/types/lookup';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { DeriveApi, DeriveBalancesAccount, DeriveBalancesAccountData } from '../types.js';
|
||||
|
||||
@@ -15,7 +16,9 @@ import { memo } from '../util/index.js';
|
||||
|
||||
type BalanceResult = [Balance, Balance, Balance, Balance];
|
||||
|
||||
type Result = [Index, BalanceResult[]];
|
||||
type Result = [Index, BalanceResult[], AccountType];
|
||||
|
||||
interface AccountType { isFrameAccountData: boolean }
|
||||
|
||||
type DeriveCustomAccount = DeriveApi['derive'] & Record<string, {
|
||||
customAccount?: DeriveApi['query']['balances']['account']
|
||||
@@ -25,24 +28,38 @@ function zeroBalance (api: DeriveApi) {
|
||||
return api.registry.createType('Balance');
|
||||
}
|
||||
|
||||
function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFee, frozenMisc]: BalanceResult): DeriveBalancesAccountData {
|
||||
function getBalance (api: DeriveApi, [freeBalance, reservedBalance, frozenFeeOrFrozen, frozenMiscOrFlags]: BalanceResult, accType: AccountType): DeriveBalancesAccountData {
|
||||
const votingBalance = api.registry.createType('Balance', freeBalance.toBn());
|
||||
|
||||
if (accType.isFrameAccountData) {
|
||||
return {
|
||||
frameSystemAccountInfo: {
|
||||
flags: frozenMiscOrFlags,
|
||||
frozen: frozenFeeOrFrozen
|
||||
},
|
||||
freeBalance,
|
||||
frozenFee: api.registry.createType('Balance', 0),
|
||||
frozenMisc: api.registry.createType('Balance', 0),
|
||||
reservedBalance,
|
||||
votingBalance
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
freeBalance,
|
||||
frozenFee,
|
||||
frozenMisc,
|
||||
frozenFee: frozenFeeOrFrozen,
|
||||
frozenMisc: frozenMiscOrFlags,
|
||||
reservedBalance,
|
||||
votingBalance
|
||||
};
|
||||
}
|
||||
|
||||
function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional]]]: [AccountId, Result]): DeriveBalancesAccount {
|
||||
function calcBalances (api: DeriveApi, [accountId, [accountNonce, [primary, ...additional], accType]]: [AccountId, Result]): DeriveBalancesAccount {
|
||||
return objectSpread({
|
||||
accountId,
|
||||
accountNonce,
|
||||
additional: additional.map((b) => getBalance(api, b))
|
||||
}, getBalance(api, primary));
|
||||
additional: additional.map((b) => getBalance(api, b, accType))
|
||||
}, getBalance(api, primary, accType));
|
||||
}
|
||||
|
||||
// old
|
||||
@@ -54,7 +71,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
|
||||
]).pipe(
|
||||
map(([freeBalance, reservedBalance, accountNonce]): Result => [
|
||||
accountNonce,
|
||||
[[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]]
|
||||
[[freeBalance, reservedBalance, zeroBalance(api), zeroBalance(api)]],
|
||||
{ isFrameAccountData: false }
|
||||
])
|
||||
);
|
||||
}
|
||||
@@ -62,7 +80,8 @@ function queryBalancesFree (api: DeriveApi, accountId: AccountId): Observable<Re
|
||||
function queryNonceOnly (api: DeriveApi, accountId: AccountId): Observable<Result> {
|
||||
const fill = (nonce: Index): Result => [
|
||||
nonce,
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
|
||||
{ isFrameAccountData: false }
|
||||
];
|
||||
|
||||
return isFunction(api.query.system.account)
|
||||
@@ -83,7 +102,8 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
|
||||
|
||||
const extract = (nonce: Index, data: AccountData[]): Result => [
|
||||
nonce,
|
||||
data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen])
|
||||
data.map(({ feeFrozen, free, miscFrozen, reserved }): BalanceResult => [free, reserved, feeFrozen, miscFrozen]),
|
||||
{ isFrameAccountData: false }
|
||||
];
|
||||
|
||||
// NOTE this is for the first case where we do have instances specified
|
||||
@@ -106,7 +126,7 @@ function queryBalancesAccount (api: DeriveApi, accountId: AccountId, modules: st
|
||||
|
||||
function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<Result> {
|
||||
// AccountInfo is current, support old, eg. Edgeware
|
||||
return api.query.system.account<AccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe(
|
||||
return api.query.system.account<AccountInfo | FrameSystemAccountInfo | ITuple<[Index, AccountData]>>(accountId).pipe(
|
||||
map((infoOrTuple): Result => {
|
||||
const data = (infoOrTuple as AccountInfo).nonce
|
||||
? (infoOrTuple as AccountInfo).data
|
||||
@@ -117,16 +137,30 @@ function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<R
|
||||
if (!data || data.isEmpty) {
|
||||
return [
|
||||
nonce,
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
|
||||
{ isFrameAccountData: false }
|
||||
];
|
||||
}
|
||||
|
||||
const { feeFrozen, free, miscFrozen, reserved } = data;
|
||||
const isFrameType = !!(infoOrTuple as FrameSystemAccountInfo).data.frozen;
|
||||
|
||||
return [
|
||||
nonce,
|
||||
[[free, reserved, feeFrozen, miscFrozen]]
|
||||
];
|
||||
if (isFrameType) {
|
||||
const { flags, free, frozen, reserved } = (data as unknown as PalletBalancesAccountData);
|
||||
|
||||
return [
|
||||
nonce,
|
||||
[[free, reserved, frozen, flags]],
|
||||
{ isFrameAccountData: true }
|
||||
];
|
||||
} else {
|
||||
const { feeFrozen, free, miscFrozen, reserved } = data;
|
||||
|
||||
return [
|
||||
nonce,
|
||||
[[free, reserved, feeFrozen, miscFrozen]],
|
||||
{ isFrameAccountData: false }
|
||||
];
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -168,7 +202,8 @@ export function account (instanceId: string, api: DeriveApi): (address: AccountI
|
||||
])
|
||||
: of([api.registry.createType('AccountId'), [
|
||||
api.registry.createType('Index'),
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]]
|
||||
[[zeroBalance(api), zeroBalance(api), zeroBalance(api), zeroBalance(api)]],
|
||||
{ isFrameAccountData: false }
|
||||
]])
|
||||
)
|
||||
),
|
||||
|
||||
@@ -54,11 +54,28 @@ function calcLocked (api: DeriveApi, bestNumber: BlockNumber, locks: (PalletBala
|
||||
|
||||
function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData {
|
||||
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
|
||||
let transferable = null;
|
||||
|
||||
if (data.frameSystemAccountInfo?.frozen) {
|
||||
const { frameSystemAccountInfo, freeBalance, reservedBalance } = data;
|
||||
const noFrozenReserved = frameSystemAccountInfo.frozen.isZero() && reservedBalance.isZero();
|
||||
const ED = api.consts.balances.existentialDeposit;
|
||||
const maybeED = noFrozenReserved ? new BN(0) : ED;
|
||||
const frozenReserveDif = frameSystemAccountInfo.frozen.sub(reservedBalance);
|
||||
|
||||
transferable = api.registry.createType(
|
||||
'Balance',
|
||||
allLocked
|
||||
? 0
|
||||
: freeBalance.sub(bnMax(maybeED, frozenReserveDif))
|
||||
);
|
||||
}
|
||||
|
||||
return objectSpread({}, data, {
|
||||
availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new BN(0))),
|
||||
lockedBalance,
|
||||
lockedBreakdown,
|
||||
transferable,
|
||||
vestingLocked
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,6 +6,10 @@ import type { PalletBalancesBalanceLock, PalletBalancesReserveData } from '@polk
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
export interface DeriveBalancesAccountData {
|
||||
frameSystemAccountInfo?: {
|
||||
frozen: Balance;
|
||||
flags: Balance;
|
||||
}
|
||||
freeBalance: Balance;
|
||||
frozenFee: Balance;
|
||||
frozenMisc: Balance;
|
||||
@@ -20,9 +24,34 @@ export interface DeriveBalancesAccount extends DeriveBalancesAccountData {
|
||||
}
|
||||
|
||||
export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData {
|
||||
/**
|
||||
* Calculated available balance. This uses the formula: max(0, free - locked)
|
||||
* This is only correct when the return type of `api.query.system.account` is `AccountInfo` which was replaced by `FrameSystemAccountInfo`.
|
||||
* See `transferable` for the correct balance calculation.
|
||||
*
|
||||
* ref: https://github.com/paritytech/substrate/pull/12951
|
||||
*/
|
||||
availableBalance: Balance;
|
||||
/**
|
||||
* The amount of balance locked away.
|
||||
*/
|
||||
lockedBalance: Balance;
|
||||
/**
|
||||
* The breakdown of locked balances.
|
||||
*/
|
||||
lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[];
|
||||
/**
|
||||
* Calculated transferable balance. This uses the formula: free - max(maybeEd, frozen - reserve)
|
||||
* Where `maybeEd` means if there is no frozen and reserves it will be zero, else it will be the existential deposit.
|
||||
* This is only correct when the return type of `api.query.system.account` is `FrameSystemAccountInfo`.
|
||||
* Which is the most up to date calulcation for transferrable balances.
|
||||
*
|
||||
* ref: https://github.com/paritytech/polkadot-sdk/issues/1833
|
||||
*/
|
||||
transferable: Balance | null;
|
||||
/**
|
||||
* Amount locked in vesting.
|
||||
*/
|
||||
vestingLocked: Balance;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ describe('bounties derive', () => {
|
||||
council: {
|
||||
proposals: () => of([
|
||||
{ proposal: createProposal(api.tx.bounties.approveBounty(1)) },
|
||||
{ proposal: createProposal(api.tx.treasury.approveProposal(1)) }] as DeriveCollectiveProposal[])
|
||||
{ proposal: api.tx.treasury['approveProposal'] && createProposal(api.tx.treasury['approveProposal'](1)) }] as DeriveCollectiveProposal[])
|
||||
}
|
||||
}
|
||||
} as unknown as DeriveApi;
|
||||
|
||||
@@ -67,8 +67,11 @@ function getModules (api: DeriveApi): [string, string | null] {
|
||||
: api.query.elections
|
||||
? 'elections'
|
||||
: null;
|
||||
// In some cases council here can refer to `generalCouncil` depending on what the chain specific override is.
|
||||
// Therefore, we check to see if it exists in the query field. If it does not we default to `council`.
|
||||
const resolvedCouncil = api.query[council] ? council : 'council';
|
||||
|
||||
return [council, elections];
|
||||
return [resolvedCouncil, elections];
|
||||
}
|
||||
|
||||
function queryAll (api: DeriveApi, council: string, elections: string): Observable<[AccountId32[], Candidate[], Member[], Member[]]> {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -40,7 +40,11 @@ function _membersCurr (api: DeriveApi, accountIds: AccountId[]): Observable<Deri
|
||||
of(accountIds),
|
||||
api.query.society.members.multi(accountIds),
|
||||
api.query.society.payouts.multi(accountIds),
|
||||
api.query.society.defenderVotes.multi(accountIds),
|
||||
api.query.society.challengeRoundCount().pipe(
|
||||
switchMap((round) =>
|
||||
api.query.society.defenderVotes.multi(accountIds.map((accountId) => [round, accountId]))
|
||||
)
|
||||
),
|
||||
api.query.society.suspendedMembers.multi(accountIds)
|
||||
]).pipe(
|
||||
map(([accountIds, members, payouts, defenderVotes, suspendedMembers]) =>
|
||||
@@ -49,9 +53,7 @@ function _membersCurr (api: DeriveApi, accountIds: AccountId[]): Observable<Deri
|
||||
members[index].isSome
|
||||
? {
|
||||
accountId,
|
||||
isDefenderVoter: defenderVotes[index].isSome
|
||||
? defenderVotes[index].unwrap().approve.isTrue
|
||||
: false,
|
||||
isDefenderVoter: defenderVotes[index].isSome,
|
||||
isSuspended: suspendedMembers[index].isSome,
|
||||
member: members[index].unwrap(),
|
||||
payouts: payouts[index].payouts
|
||||
|
||||
@@ -17,11 +17,11 @@ function combineAccounts (nextElected: AccountId[], validators: AccountId[]): Ac
|
||||
return arrayFlatten([nextElected, validators.filter((v) => !nextElected.find((n) => n.eq(v)))]);
|
||||
}
|
||||
|
||||
export function electedInfo (instanceId: string, api: DeriveApi): (flags?: StakingQueryFlags) => Observable<DeriveStakingElected> {
|
||||
return memo(instanceId, (flags: StakingQueryFlags = DEFAULT_FLAGS): Observable<DeriveStakingElected> =>
|
||||
export function electedInfo (instanceId: string, api: DeriveApi): (flags?: StakingQueryFlags, page?: number) => Observable<DeriveStakingElected> {
|
||||
return memo(instanceId, (flags: StakingQueryFlags = DEFAULT_FLAGS, page = 0): Observable<DeriveStakingElected> =>
|
||||
api.derive.staking.validators().pipe(
|
||||
switchMap(({ nextElected, validators }): Observable<DeriveStakingElected> =>
|
||||
api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags).pipe(
|
||||
api.derive.staking.queryMulti(combineAccounts(nextElected, validators), flags, page).pipe(
|
||||
map((info): DeriveStakingElected => ({
|
||||
info,
|
||||
nextElected,
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option, u32 } from '@polkadot/types';
|
||||
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||
import type { SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { AnyNumber } from '@polkadot/types-codec/types';
|
||||
import type { DeriveApi, DeriveOwnExposure } from '../types.js';
|
||||
|
||||
import { combineLatest, map, of } from 'rxjs';
|
||||
@@ -10,24 +13,42 @@ import { combineLatest, map, of } from 'rxjs';
|
||||
import { firstMemo, memo } from '../util/index.js';
|
||||
import { erasHistoricApplyAccount } from './util.js';
|
||||
|
||||
export function _ownExposures (instanceId: string, api: DeriveApi): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean) => Observable<DeriveOwnExposure[]> {
|
||||
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveOwnExposure[]> =>
|
||||
eras.length
|
||||
export function _ownExposures (instanceId: string, api: DeriveApi): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean, page: u32 | AnyNumber) => Observable<DeriveOwnExposure[]> {
|
||||
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean, page: u32 | AnyNumber): Observable<DeriveOwnExposure[]> => {
|
||||
const emptyStakingExposure = api.registry.createType<SpStakingExposure>('Exposure');
|
||||
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
|
||||
// on construction. Therefore we just make an empty option.
|
||||
const emptyOptionPage = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
|
||||
const emptyOptionMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
|
||||
|
||||
return eras.length
|
||||
? combineLatest([
|
||||
combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))),
|
||||
combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId)))
|
||||
// Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`
|
||||
api.query.staking.erasStakersClipped
|
||||
? combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId)))
|
||||
: of(eras.map((_) => emptyStakingExposure)),
|
||||
api.query.staking.erasStakers
|
||||
? combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId)))
|
||||
: of(eras.map((_) => emptyStakingExposure)),
|
||||
api.query.staking.erasStakersPaged
|
||||
? combineLatest(eras.map((e) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(e, accountId, page)))
|
||||
: of(eras.map((_) => emptyOptionPage)),
|
||||
api.query.staking.erasStakersOverview
|
||||
? combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, accountId)))
|
||||
: of(eras.map((_) => emptyOptionMeta))
|
||||
]).pipe(
|
||||
map(([clp, exp]): DeriveOwnExposure[] =>
|
||||
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index] }))
|
||||
map(([clp, exp, paged, expMeta]): DeriveOwnExposure[] =>
|
||||
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index], exposureMeta: expMeta[index], exposurePaged: paged[index] }))
|
||||
)
|
||||
)
|
||||
: of([])
|
||||
: of([]);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export const ownExposure = /*#__PURE__*/ firstMemo(
|
||||
(api: DeriveApi, accountId: Uint8Array | string, era: EraIndex) =>
|
||||
api.derive.staking._ownExposures(accountId, [era], true)
|
||||
(api: DeriveApi, accountId: Uint8Array | string, era: EraIndex, page?: u32 | AnyNumber) =>
|
||||
api.derive.staking._ownExposures(accountId, [era], true, page || 0)
|
||||
);
|
||||
|
||||
export const ownExposures = /*#__PURE__*/ erasHistoricApplyAccount('_ownExposures');
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { Option, StorageKey, u32, Vec } from '@polkadot/types';
|
||||
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
|
||||
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure } from '@polkadot/types/lookup';
|
||||
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { AnyNumber } from '@polkadot/types-codec/types';
|
||||
import type { DeriveApi, DeriveStakingQuery, StakingQueryFlags } from '../types.js';
|
||||
|
||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
@@ -19,11 +20,70 @@ function rewardDestinationCompat (rewardDestination: PalletStakingRewardDestinat
|
||||
: (rewardDestination as PalletStakingRewardDestination);
|
||||
}
|
||||
|
||||
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: SpStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
|
||||
function filterClaimedRewards (api: DeriveApi, cl: number[]): Vec<u32> {
|
||||
return api.registry.createType('Vec<u32>', cl.filter((c) => c !== -1));
|
||||
}
|
||||
|
||||
function filterRewards (stashIds: AccountId[], eras: number[], claimedRewards: [StorageKey<[u32, AccountId]>, Vec<u32>][], stakersOverview: [StorageKey<[u32, AccountId]>, Option<SpStakingPagedExposureMetadata>][]): number[][] {
|
||||
const claimedData: Record<string, Map<number, u32[]>> = {};
|
||||
const overviewData: Record<string, Map<number, u32>> = {};
|
||||
const ids = stashIds.map((i) => i.toString());
|
||||
|
||||
claimedRewards.forEach(([keys, rewards]) => {
|
||||
const id = keys.args[1].toString();
|
||||
const era = keys.args[0].toNumber();
|
||||
|
||||
if (ids.includes(id)) {
|
||||
if (claimedData[id]) {
|
||||
claimedData[id].set(era, rewards.toArray());
|
||||
} else {
|
||||
claimedData[id] = new Map();
|
||||
claimedData[id].set(era, rewards.toArray());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
stakersOverview.forEach(([keys, overview]) => {
|
||||
const id = keys.args[1].toString();
|
||||
const era = keys.args[0].toNumber();
|
||||
|
||||
if (ids.includes(id) && overview.isSome) {
|
||||
if (overviewData[id]) {
|
||||
overviewData[id].set(era, overview.unwrap().pageCount);
|
||||
} else {
|
||||
overviewData[id] = new Map();
|
||||
overviewData[id].set(era, overview.unwrap().pageCount);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return stashIds.map((id) => {
|
||||
const rewardsPerEra = claimedData[id.toString()];
|
||||
const overviewPerEra = overviewData[id.toString()];
|
||||
|
||||
return eras.map((era) => {
|
||||
if (rewardsPerEra && rewardsPerEra.has(era) && overviewPerEra && overviewPerEra.has(era)) {
|
||||
const rewards = rewardsPerEra.get(era) as unknown as u32[];
|
||||
const pageCount = overviewPerEra.get(era) as unknown as u32;
|
||||
|
||||
return rewards.length === pageCount.toNumber()
|
||||
? era
|
||||
: -1;
|
||||
}
|
||||
|
||||
return -1;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function parseDetails (api: DeriveApi, stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: Option<SpStakingExposurePage>, stakingLedgerOpt: Option<PalletStakingStakingLedger>, exposureMeta: Option<SpStakingPagedExposureMetadata>, claimedRewards: number[], exposureEraStakers: SpStakingExposure): DeriveStakingQuery {
|
||||
return {
|
||||
accountId: stashId,
|
||||
claimedRewardsEras: filterClaimedRewards(api, claimedRewards),
|
||||
controllerId: controllerIdOpt?.unwrapOr(null) || null,
|
||||
exposure,
|
||||
exposureEraStakers,
|
||||
exposureMeta,
|
||||
exposurePaged: exposure,
|
||||
nominators: nominatorsOpt.isSome
|
||||
? nominatorsOpt.unwrap().targets
|
||||
: [],
|
||||
@@ -57,11 +117,25 @@ function getLedgers (api: DeriveApi, optIds: (Option<AccountId> | null)[], { wit
|
||||
);
|
||||
}
|
||||
|
||||
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], SpStakingExposure[]]> {
|
||||
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withClaimedRewardsEras, withController, withDestination, withExposure, withExposureErasStakersLegacy, withExposureMeta, withLedger, withNominations, withPrefs }: StakingQueryFlags, page: u32 | AnyNumber): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], Option<SpStakingExposurePage>[], Option<SpStakingPagedExposureMetadata>[], number[][], SpStakingExposure[]]> {
|
||||
const emptyNoms = api.registry.createType<Option<PalletStakingNominations>>('Option<Nominations>');
|
||||
const emptyRewa = api.registry.createType<Option<PalletStakingRewardDestination>>('RewardDestination');
|
||||
const emptyExpo = api.registry.createType<SpStakingExposure>('Exposure');
|
||||
const emptyExpoEraStakers = api.registry.createType<SpStakingExposure>('Exposure');
|
||||
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
|
||||
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
|
||||
// on construction. Therefore we just make an empty option.
|
||||
const emptyExpo = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
|
||||
const emptyExpoMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
|
||||
const emptyClaimedRewards = [-1];
|
||||
|
||||
const depth = Number(api.consts.staking.historyDepth.toNumber());
|
||||
const eras = new Array(depth).fill(0).map((_, idx) => {
|
||||
if (idx === 0) {
|
||||
return activeEra.toNumber() - 1;
|
||||
}
|
||||
|
||||
return activeEra.toNumber() - idx - 1;
|
||||
});
|
||||
|
||||
return combineLatest([
|
||||
withController || withLedger
|
||||
@@ -76,19 +150,33 @@ function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraInde
|
||||
withPrefs
|
||||
? combineLatest(stashIds.map((s) => api.query.staking.validators(s)))
|
||||
: of(stashIds.map(() => emptyPrefs)),
|
||||
withExposure
|
||||
withExposure && api.query.staking.erasStakersPaged
|
||||
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(activeEra, s, page)))
|
||||
: of(stashIds.map(() => emptyExpo)),
|
||||
withExposureMeta && api.query.staking.erasStakersOverview
|
||||
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersOverview(activeEra, s)))
|
||||
: of(stashIds.map(() => emptyExpoMeta)),
|
||||
withClaimedRewardsEras && api.query.staking.claimedRewards
|
||||
? combineLatest([
|
||||
api.query.staking.claimedRewards.entries<Vec<u32>>(),
|
||||
api.query.staking.erasStakersOverview.entries<Option<SpStakingPagedExposureMetadata>>()
|
||||
]).pipe(
|
||||
map(([rewardsStorageVec, overviewStorageVec]) => filterRewards(stashIds, eras, rewardsStorageVec, overviewStorageVec))
|
||||
)
|
||||
: of(stashIds.map(() => emptyClaimedRewards)),
|
||||
withExposureErasStakersLegacy && api.query.staking.erasStakers
|
||||
? combineLatest(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s)))
|
||||
: of(stashIds.map(() => emptyExpo))
|
||||
: of(stashIds.map(() => emptyExpoEraStakers))
|
||||
]);
|
||||
}
|
||||
|
||||
function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> {
|
||||
return getStashInfo(api, stashIds, activeEra, flags).pipe(
|
||||
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure]): Observable<DeriveStakingQuery[]> =>
|
||||
function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], flags: StakingQueryFlags, page: u32 | AnyNumber): Observable<DeriveStakingQuery[]> {
|
||||
return getStashInfo(api, stashIds, activeEra, flags, page).pipe(
|
||||
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure, exposureMeta, claimedRewardsEras, exposureEraStakers]): Observable<DeriveStakingQuery[]> =>
|
||||
getLedgers(api, controllerIdOpt, flags).pipe(
|
||||
map((stakingLedgerOpts) =>
|
||||
stashIds.map((stashId, index) =>
|
||||
parseDetails(stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index])
|
||||
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index], exposureEraStakers[index])
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -101,18 +189,19 @@ function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], f
|
||||
* @description From a stash, retrieve the controllerId and all relevant details
|
||||
*/
|
||||
export const query = /*#__PURE__*/ firstMemo(
|
||||
(api: DeriveApi, accountId: Uint8Array | string, flags: StakingQueryFlags) =>
|
||||
api.derive.staking.queryMulti([accountId], flags)
|
||||
(api: DeriveApi, accountId: Uint8Array | string, flags: StakingQueryFlags, page?: u32) =>
|
||||
api.derive.staking.queryMulti([accountId], flags, page)
|
||||
);
|
||||
|
||||
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags) => Observable<DeriveStakingQuery[]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags): Observable<DeriveStakingQuery[]> =>
|
||||
export function queryMulti (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags, page?: u32 | AnyNumber) => Observable<DeriveStakingQuery[]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], flags: StakingQueryFlags, page?: u32 | AnyNumber): Observable<DeriveStakingQuery[]> =>
|
||||
api.derive.session.indexes().pipe(
|
||||
switchMap(({ activeEra }): Observable<DeriveStakingQuery[]> => {
|
||||
const stashIds = accountIds.map((a) => api.registry.createType('AccountId', a));
|
||||
const p = page || 0;
|
||||
|
||||
return stashIds.length
|
||||
? getBatch(api, activeEra, stashIds, flags)
|
||||
? getBatch(api, activeEra, stashIds, flags, p)
|
||||
: of([]);
|
||||
})
|
||||
)
|
||||
|
||||
@@ -18,13 +18,15 @@ import { firstMemo, memo } from '../util/index.js';
|
||||
type ErasResult = [DeriveEraPoints[], DeriveEraPrefs[], DeriveEraRewards[]];
|
||||
|
||||
// handle compatibility between generations of structures
|
||||
function extractCompatRewards (ledger?: PalletStakingStakingLedger): u32[] {
|
||||
return ledger
|
||||
function extractCompatRewards (claimedRewardsEras: Vec<u32>, ledger?: PalletStakingStakingLedger): u32[] {
|
||||
const l = ledger
|
||||
? (
|
||||
ledger.legacyClaimedRewards ||
|
||||
(ledger as PalletStakingStakingLedger & { claimedRewards: Vec<u32> }).claimedRewards
|
||||
)
|
||||
: [];
|
||||
(ledger as PalletStakingStakingLedger & { claimedRewards: Vec<u32> }).claimedRewards
|
||||
).toArray()
|
||||
: [] as unknown as Vec<u32>;
|
||||
|
||||
return claimedRewardsEras.toArray().concat(l);
|
||||
}
|
||||
|
||||
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
|
||||
@@ -111,7 +113,7 @@ function allUniqValidators (rewards: DeriveStakerReward[][]): [string[], string[
|
||||
}, [[], []]);
|
||||
}
|
||||
|
||||
function removeClaimed (validators: string[], queryValidators: DeriveStakingQuery[], reward: DeriveStakerReward): void {
|
||||
function removeClaimed (validators: string[], queryValidators: DeriveStakingQuery[], reward: DeriveStakerReward, claimedRewardsEras: Vec<u32>): void {
|
||||
const rm: string[] = [];
|
||||
|
||||
Object.keys(reward.validators).forEach((validatorId): void => {
|
||||
@@ -120,7 +122,7 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
|
||||
if (index !== -1) {
|
||||
const valLedger = queryValidators[index].stakingLedger;
|
||||
|
||||
if (extractCompatRewards(valLedger).some((e) => reward.era.eq(e))) {
|
||||
if (extractCompatRewards(claimedRewardsEras, valLedger).some((e) => reward.era.eq(e))) {
|
||||
rm.push(validatorId);
|
||||
}
|
||||
}
|
||||
@@ -131,8 +133,8 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
|
||||
});
|
||||
}
|
||||
|
||||
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: PalletStakingStakingLedger }): DeriveStakerReward[] {
|
||||
const filter = eras.filter((e) => !extractCompatRewards(stakingLedger).some((s) => s.eq(e)));
|
||||
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { claimedRewardsEras, rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: PalletStakingStakingLedger, claimedRewardsEras: Vec<u32> }): DeriveStakerReward[] {
|
||||
const filter = eras.filter((e) => !extractCompatRewards(claimedRewardsEras, stakingLedger).some((s) => s.eq(e)));
|
||||
const validators = valInfo.map(([v]) => v);
|
||||
const queryValidators = valInfo.map(([, q]) => q);
|
||||
|
||||
@@ -143,7 +145,7 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
|
||||
return false;
|
||||
}
|
||||
|
||||
removeClaimed(validators, queryValidators, reward);
|
||||
removeClaimed(validators, queryValidators, reward, claimedRewardsEras);
|
||||
|
||||
return true;
|
||||
})
|
||||
@@ -166,15 +168,19 @@ export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras:
|
||||
}
|
||||
|
||||
export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerReward[][]> {
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> =>
|
||||
combineLatest([
|
||||
api.derive.staking.queryMulti(accountIds, { withLedger: true }),
|
||||
api.derive.staking._stakerExposures(accountIds, eras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(eras, withActive)
|
||||
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> => {
|
||||
// Ensures that when number or string types are passed in they are sanitized
|
||||
// Ref: https://github.com/polkadot-js/api/issues/5910
|
||||
const sanitizedEras: EraIndex[] = eras.map((e) => typeof e === 'number' || typeof e === 'string' ? api.registry.createType('u32', e) : e);
|
||||
|
||||
return combineLatest([
|
||||
api.derive.staking.queryMulti(accountIds, { withClaimedRewardsEras: true, withLedger: true }),
|
||||
api.derive.staking._stakerExposures(accountIds, sanitizedEras, withActive),
|
||||
api.derive.staking._stakerRewardsEras(sanitizedEras, withActive)
|
||||
]).pipe(
|
||||
switchMap(([queries, exposures, erasResult]): Observable<DeriveStakerReward[][]> => {
|
||||
const allRewards = queries.map(({ stakingLedger, stashId }, index): DeriveStakerReward[] =>
|
||||
(!stashId || !stakingLedger)
|
||||
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
|
||||
(!stashId || (!stakingLedger && !claimedRewardsEras))
|
||||
? []
|
||||
: parseRewards(api, stashId, erasResult, exposures[index])
|
||||
);
|
||||
@@ -185,9 +191,9 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
|
||||
const [allValidators, stashValidators] = allUniqValidators(allRewards);
|
||||
|
||||
return api.derive.staking.queryMulti(allValidators, { withLedger: true }).pipe(
|
||||
return api.derive.staking.queryMulti(allValidators, { withClaimedRewardsEras: true, withLedger: true }).pipe(
|
||||
map((queriedVals): DeriveStakerReward[][] =>
|
||||
queries.map(({ stakingLedger }, index): DeriveStakerReward[] =>
|
||||
queries.map(({ claimedRewardsEras, stakingLedger }, index): DeriveStakerReward[] =>
|
||||
filterRewards(
|
||||
eras,
|
||||
stashValidators[index]
|
||||
@@ -197,6 +203,7 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
])
|
||||
.filter((v): v is [string, DeriveStakingQuery] => !!v[1]),
|
||||
{
|
||||
claimedRewardsEras,
|
||||
rewards: allRewards[index],
|
||||
stakingLedger
|
||||
}
|
||||
@@ -205,7 +212,8 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
|
||||
)
|
||||
);
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
// Copyright 2017-2024 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Option, u32, Vec } from '@polkadot/types';
|
||||
import type { AccountId, Balance, EraIndex, RewardPoint } from '@polkadot/types/interfaces';
|
||||
import type { PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage } from '@polkadot/types/lookup';
|
||||
import type { PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { DeriveSessionIndexes } from '../session/types.js';
|
||||
|
||||
@@ -42,8 +43,10 @@ export interface DeriveStakerPoints {
|
||||
|
||||
export interface DeriveOwnExposure {
|
||||
clipped: SpStakingExposure;
|
||||
exposurePaged: Option<SpStakingExposurePage>;
|
||||
era: EraIndex;
|
||||
exposure: SpStakingExposure;
|
||||
exposureMeta: Option<SpStakingPagedExposureMetadata>;
|
||||
}
|
||||
|
||||
export interface DeriveEraExposureNominating {
|
||||
@@ -115,11 +118,15 @@ export interface DeriveStakingValidators {
|
||||
|
||||
export interface DeriveStakingStash {
|
||||
controllerId: AccountId | null;
|
||||
exposure: SpStakingExposure;
|
||||
// Legacy Support for erasStakers
|
||||
exposureEraStakers: SpStakingExposure;
|
||||
exposurePaged: Option<SpStakingExposurePage>;
|
||||
exposureMeta: Option<SpStakingPagedExposureMetadata>;
|
||||
nominators: AccountId[];
|
||||
rewardDestination: PalletStakingRewardDestination | null;
|
||||
stashId: AccountId;
|
||||
validatorPrefs: PalletStakingValidatorPrefs;
|
||||
claimedRewardsEras: Vec<u32>
|
||||
}
|
||||
|
||||
export interface DeriveStakingQuery extends DeriveStakingStash {
|
||||
@@ -157,7 +164,10 @@ export interface StakingQueryFlags {
|
||||
withController?: boolean;
|
||||
withDestination?: boolean;
|
||||
withExposure?: boolean;
|
||||
withExposureErasStakersLegacy?: boolean,
|
||||
withLedger?: boolean;
|
||||
withNominations?: boolean;
|
||||
withPrefs?: boolean;
|
||||
withExposureMeta?: boolean;
|
||||
withClaimedRewardsEras?: boolean;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { ObsInnerType } from '@polkadot/api-base/types';
|
||||
import type { u32 } from '@polkadot/types';
|
||||
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||
import type { AnyNumber } from '@polkadot/types-codec/types';
|
||||
import type { ExactDerive } from '../derive.js';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
@@ -60,9 +62,9 @@ export function erasHistoricApplyAccount <F extends '_ownExposures' | '_ownSlash
|
||||
return (instanceId: string, api: DeriveApi) =>
|
||||
// Cannot quite get the typing right, but it is right in the code
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
memo(instanceId, (accountId: string | Uint8Array, withActive = false) =>
|
||||
memo(instanceId, (accountId: string | Uint8Array, withActive = false, page?: u32 | AnyNumber) =>
|
||||
api.derive.staking.erasHistoric(withActive).pipe(
|
||||
switchMap((e) => api.derive.staking[fn](accountId, e, withActive))
|
||||
switchMap((e) => api.derive.staking[fn](accountId, e, withActive, page || 0))
|
||||
)
|
||||
) as any;
|
||||
}
|
||||
|
||||
@@ -11,14 +11,24 @@ import { memo } from '../util/index.js';
|
||||
|
||||
export function nextElected (instanceId: string, api: DeriveApi): () => Observable<AccountId[]> {
|
||||
return memo(instanceId, (): Observable<AccountId[]> =>
|
||||
api.query.staking.erasStakers
|
||||
// Compatibility for future generation changes in staking.
|
||||
api.query.staking.erasStakersPaged
|
||||
? api.derive.session.indexes().pipe(
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
|
||||
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.keys(currentEra)),
|
||||
// Dedupe any duplicates
|
||||
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
|
||||
)
|
||||
: api.query.staking['currentElected']<AccountId[]>()
|
||||
: api.query.staking.erasStakers
|
||||
? api.derive.session.indexes().pipe(
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
|
||||
// Dedupe any duplicates
|
||||
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
|
||||
)
|
||||
: api.query.staking['currentElected']<AccountId[]>()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@ function parseResult (api: DeriveApi, { allIds, allProposals, approvalIds, counc
|
||||
const approvals: DeriveTreasuryProposal[] = [];
|
||||
const proposals: DeriveTreasuryProposal[] = [];
|
||||
const councilTreasury = councilProposals.filter(({ proposal }) =>
|
||||
// FIXME `approveProposal` and `rejectProposal` have been removed in substrate and released in 1.14
|
||||
// in favor of `spend`. See: https://github.com/paritytech/polkadot-sdk/pull/3820
|
||||
proposal && (
|
||||
api.tx.treasury.approveProposal.is(proposal) ||
|
||||
api.tx.treasury.rejectProposal.is(proposal)
|
||||
(api.tx.treasury['approveProposal'] && api.tx.treasury['approveProposal'].is(proposal)) ||
|
||||
(api.tx.treasury['rejectProposal'] && api.tx.treasury['rejectProposal'].is(proposal))
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -29,9 +29,13 @@ function latestNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
}
|
||||
|
||||
function nextNonce (api: DeriveApi, address: string): Observable<Index> {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
if (api.call.accountNonceApi) {
|
||||
return api.call.accountNonceApi.accountNonce(address);
|
||||
} else {
|
||||
return api.rpc.system?.accountNextIndex
|
||||
? api.rpc.system.accountNextIndex(address)
|
||||
: latestNonce(api, address);
|
||||
}
|
||||
}
|
||||
|
||||
function signingHeader (api: DeriveApi): Observable<Header> {
|
||||
@@ -74,9 +78,9 @@ function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
|
||||
const period = api.consts.babe?.expectedBlockTime ||
|
||||
// this will be present ones https://github.com/paritytech/polkadot-sdk/pull/3732 is merged
|
||||
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
|
||||
api.consts.timestamp?.minimumPeriod;
|
||||
api.consts.timestamp?.minimumPeriod.muln(2);
|
||||
|
||||
return !period.isZero() ? period : undefined;
|
||||
return period && period.isZero && !period.isZero() ? period : undefined;
|
||||
}
|
||||
|
||||
export function signingInfo (_instanceId: string, api: DeriveApi): (address: string, nonce?: AnyNumber | Codec, era?: IExtrinsicEra | number) => Observable<Result> {
|
||||
|
||||
+18
-18
@@ -18,29 +18,29 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/api-base": "10.12.3",
|
||||
"@polkadot/api-derive": "10.12.3",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "10.12.3",
|
||||
"@polkadot/rpc-core": "10.12.3",
|
||||
"@polkadot/rpc-provider": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-augment": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/types-create": "10.12.3",
|
||||
"@polkadot/types-known": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/api-base": "12.4.1",
|
||||
"@polkadot/api-derive": "12.4.1",
|
||||
"@polkadot/keyring": "^13.0.2",
|
||||
"@polkadot/rpc-augment": "12.4.1",
|
||||
"@polkadot/rpc-core": "12.4.1",
|
||||
"@polkadot/rpc-provider": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-augment": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/types-create": "12.4.1",
|
||||
"@polkadot/types-known": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/util-crypto": "^13.0.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/types-support": "10.12.3"
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/types-support": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,6 +244,11 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
protected async _loadMeta (): Promise<boolean> {
|
||||
// on re-connection to the same chain, we don't want to re-do everything from chain again
|
||||
if (this._isReady) {
|
||||
// on re-connection only re-subscribe to chain updates if we are not a clone
|
||||
if (!this._options.source) {
|
||||
this._subscribeUpdates();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -15,7 +15,7 @@ import { hexToU8a } from '@polkadot/util';
|
||||
import { SingleAccountSigner } from '../test/index.js';
|
||||
import { ApiPromise } from './index.js';
|
||||
|
||||
const TRANSFER_SIG = '0xcc277eb341d3801c08f149508221583fa3185cc3944e6cb376cd061640305edd7dc24dfd754adb24768f1d8547389b7720e6f626bc81f5593fba1141e7f7ba07';
|
||||
const TRANSFER_SIG = '0xbb861f9c905d860d303101dfd23a6042251721ca65fb1a58e317d628f08484767a3604afeaede64a4116d08daae3c285ea2ea97c8b6c7b3548e90df327c4e60c';
|
||||
|
||||
describe('ApiPromise', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -7,6 +7,7 @@ import type { Observable } from 'rxjs';
|
||||
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
|
||||
import type { Callback, Codec, CodecClass, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ApiBase } from '../base/index.js';
|
||||
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types/index.js';
|
||||
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types.js';
|
||||
@@ -28,6 +29,12 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
|
||||
interface UpdateInfo {
|
||||
options: SignatureOptions;
|
||||
updateId: number;
|
||||
signedTransaction: HexString | Uint8Array | null;
|
||||
}
|
||||
|
||||
interface SignerInfo {
|
||||
id: number;
|
||||
signedTransaction?: HexString | Uint8Array;
|
||||
}
|
||||
|
||||
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
||||
@@ -246,14 +253,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
mergeMap(async (signingInfo): Promise<UpdateInfo> => {
|
||||
const eraOptions = makeEraOptions(api, this.registry, options, signingInfo);
|
||||
let updateId = -1;
|
||||
let signedTx = null;
|
||||
|
||||
if (isKeyringPair(account)) {
|
||||
this.sign(account, eraOptions);
|
||||
} else {
|
||||
updateId = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
const result = await this.#signViaSigner(address, eraOptions, signingInfo.header);
|
||||
|
||||
updateId = result.id;
|
||||
|
||||
if (result.signedTransaction) {
|
||||
signedTx = result.signedTransaction;
|
||||
}
|
||||
}
|
||||
|
||||
return { options: eraOptions, updateId };
|
||||
return { options: eraOptions, signedTransaction: signedTx, updateId };
|
||||
})
|
||||
);
|
||||
};
|
||||
@@ -288,18 +302,18 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#observeSend = (info: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(this).pipe(
|
||||
#observeSend = (info?: UpdateInfo): Observable<Hash> => {
|
||||
return api.rpc.author.submitExtrinsic(info?.signedTransaction || this).pipe(
|
||||
tap((hash): void => {
|
||||
this.#updateSigner(hash, info);
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
#observeSubscribe = (info: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
#observeSubscribe = (info?: UpdateInfo): Observable<ISubmittableResult> => {
|
||||
const txHash = this.hash;
|
||||
|
||||
return api.rpc.author.submitAndWatchExtrinsic(this).pipe(
|
||||
return api.rpc.author.submitAndWatchExtrinsic(info?.signedTransaction || this).pipe(
|
||||
switchMap((status): Observable<ISubmittableResult> =>
|
||||
this.#observeStatus(txHash, status)
|
||||
),
|
||||
@@ -309,7 +323,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
);
|
||||
};
|
||||
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<number> => {
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<SignerInfo> => {
|
||||
const signer = options.signer || api.signer;
|
||||
|
||||
if (!signer) {
|
||||
@@ -325,6 +339,41 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
if (isFunction(signer.signPayload)) {
|
||||
result = await signer.signPayload(payload.toPayload());
|
||||
|
||||
if (result.signedTransaction && !options.withSignedTransaction) {
|
||||
throw new Error('The `signedTransaction` field may not be submitted when `withSignedTransaction` is disabled');
|
||||
}
|
||||
|
||||
if (result.signedTransaction && options.withSignedTransaction) {
|
||||
const ext = this.registry.createTypeUnsafe<Extrinsic>('Extrinsic', [result.signedTransaction]);
|
||||
const newSignerPayload = this.registry.createTypeUnsafe<SignerPayload>('SignerPayload', [objectSpread({}, {
|
||||
address,
|
||||
assetId: ext.assetId ? ext.assetId.toHex() : null,
|
||||
blockHash: payload.blockHash,
|
||||
blockNumber: header ? header.number : 0,
|
||||
era: ext.era.toHex(),
|
||||
genesisHash: payload.genesisHash,
|
||||
metadataHash: ext.metadataHash ? ext.metadataHash.toHex() : null,
|
||||
method: ext.method.toHex(),
|
||||
mode: ext.mode ? ext.mode.toHex() : null,
|
||||
nonce: ext.nonce.toHex(),
|
||||
runtimeVersion: payload.runtimeVersion,
|
||||
signedExtensions: payload.signedExtensions,
|
||||
tip: ext.tip ? ext.tip.toHex() : null,
|
||||
version: payload.version
|
||||
})]);
|
||||
|
||||
if (!ext.isSigned) {
|
||||
throw new Error(`When using the signedTransaction field, the transaction must be signed. Recieved isSigned: ${ext.isSigned}`);
|
||||
}
|
||||
|
||||
this.#validateSignedTransaction(payload, ext);
|
||||
// This is only used for signAsync - signAndSend does not need to adjust the super payload or
|
||||
// add the signature.
|
||||
super.addSignature(address, result.signature, newSignerPayload.toPayload());
|
||||
|
||||
return { id: result.id, signedTransaction: result.signedTransaction };
|
||||
}
|
||||
} else if (isFunction(signer.signRaw)) {
|
||||
result = await signer.signRaw(payload.toRaw());
|
||||
} else {
|
||||
@@ -336,7 +385,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
// payload data is not modified from our inputs, but the signer
|
||||
super.addSignature(address, result.signature, payload.toPayload());
|
||||
|
||||
return result.id;
|
||||
return { id: result.id };
|
||||
};
|
||||
|
||||
#updateSigner = (status: Hash | ISubmittableResult, info?: UpdateInfo): void => {
|
||||
@@ -349,6 +398,20 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* When a signer includes `signedTransaction` within the SignerResult this will validate
|
||||
* specific fields within the signed extrinsic against the original payload that was passed
|
||||
* to the signer.
|
||||
*/
|
||||
#validateSignedTransaction = (signerPayload: SignerPayload, signedExt: Extrinsic): void => {
|
||||
const payload = signerPayload.toPayload();
|
||||
const errMsg = (field: string) => `signAndSend: ${field} does not match the original payload`;
|
||||
|
||||
if (payload.method !== signedExt.method.toHex()) {
|
||||
throw new Error(errMsg('call data'));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return Submittable;
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/rpc-core": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.12.3",
|
||||
"@polkadot/rpc-provider": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "12.4.1",
|
||||
"@polkadot/rpc-provider": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/rpc-augment": "10.12.3"
|
||||
"@polkadot/keyring": "^13.0.2",
|
||||
"@polkadot/rpc-augment": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -18,26 +18,26 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-support": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-fetch": "^12.6.2",
|
||||
"@polkadot/x-global": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
"@polkadot/keyring": "^13.0.2",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-support": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/util-crypto": "^13.0.2",
|
||||
"@polkadot/x-fetch": "^13.0.2",
|
||||
"@polkadot/x-global": "^13.0.2",
|
||||
"@polkadot/x-ws": "^13.0.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"nock": "^13.5.0",
|
||||
"tslib": "^2.6.2"
|
||||
"nock": "^13.5.4",
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.8.8"
|
||||
"@substrate/connect": "0.8.11"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@substrate/connect": "0.8.8"
|
||||
"@substrate/connect": "0.8.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -118,7 +118,7 @@ export class ScProvider implements ProviderInterface {
|
||||
: this.#Sc.createScClient(config);
|
||||
|
||||
if (!client) {
|
||||
throw new Error('Unkown ScProvider!');
|
||||
throw new Error('Unknown ScProvider!');
|
||||
}
|
||||
|
||||
scClients.set(this, client);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,23 +28,23 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.12.3",
|
||||
"@polkadot/api-augment": "10.12.3",
|
||||
"@polkadot/rpc-augment": "10.12.3",
|
||||
"@polkadot/rpc-provider": "10.12.3",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-augment": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/types-create": "10.12.3",
|
||||
"@polkadot/types-support": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"@polkadot/x-ws": "^12.6.2",
|
||||
"@polkadot/api": "12.4.1",
|
||||
"@polkadot/api-augment": "12.4.1",
|
||||
"@polkadot/rpc-augment": "12.4.1",
|
||||
"@polkadot/rpc-provider": "12.4.1",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-augment": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/types-create": "12.4.1",
|
||||
"@polkadot/types-support": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/util-crypto": "^13.0.2",
|
||||
"@polkadot/x-ws": "^13.0.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"tslib": "^2.6.2",
|
||||
"tslib": "^2.6.3",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/yargs": "^17.0.32"
|
||||
"@types/yargs": "^17.0.33"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,25 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup121: staging_kusama_runtime::SessionKeys
|
||||
* Lookup49: staging_kusama_runtime::pallet_im_online::pallet::Event<T>
|
||||
**/
|
||||
StagingKusamaRuntimePalletImOnlinePalletEvent: {
|
||||
_enum: {
|
||||
HeartbeatReceived: {
|
||||
authorityId: 'StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public',
|
||||
},
|
||||
AllGood: 'Null',
|
||||
SomeOffline: {
|
||||
offline: 'Vec<(AccountId32,SpStakingExposure)>'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup50: staging_kusama_runtime::pallet_im_online::sr25519::app_sr25519::Public
|
||||
**/
|
||||
StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public: 'SpCoreSr25519Public',
|
||||
/**
|
||||
* Lookup134: staging_kusama_runtime::SessionKeys
|
||||
**/
|
||||
StagingKusamaRuntimeSessionKeys: {
|
||||
grandpa: 'SpConsensusGrandpaAppPublic',
|
||||
@@ -16,7 +34,7 @@ export default {
|
||||
beefy: 'SpConsensusBeefyEcdsaCryptoPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup148: staging_kusama_runtime::OriginCaller
|
||||
* Lookup161: staging_kusama_runtime::OriginCaller
|
||||
**/
|
||||
StagingKusamaRuntimeOriginCaller: {
|
||||
_enum: {
|
||||
@@ -123,19 +141,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup150: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||
* Lookup163: staging_kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||
**/
|
||||
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
|
||||
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan', 'WishForChange']
|
||||
},
|
||||
/**
|
||||
* Lookup224: staging_kusama_runtime::ProxyType
|
||||
* Lookup192: staging_kusama_runtime::ProxyType
|
||||
**/
|
||||
StagingKusamaRuntimeProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', '__Unused4', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
|
||||
},
|
||||
/**
|
||||
* Lookup234: staging_kusama_runtime::NposCompactSolution24
|
||||
* Lookup202: staging_kusama_runtime::NposCompactSolution24
|
||||
**/
|
||||
StagingKusamaRuntimeNposCompactSolution24: {
|
||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||
@@ -164,7 +182,7 @@ export default {
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup391: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
|
||||
* Lookup360: polkadot_runtime_parachains::assigner_on_demand::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletCall: {
|
||||
_enum: {
|
||||
@@ -179,7 +197,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup399: polkadot_runtime_parachains::coretime::pallet::Call<T>
|
||||
* Lookup371: polkadot_runtime_parachains::coretime::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletCall: {
|
||||
_enum: {
|
||||
@@ -198,7 +216,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup543: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
|
||||
* Lookup512: polkadot_runtime_parachains::assigner_on_demand::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletEvent: {
|
||||
_enum: {
|
||||
@@ -212,7 +230,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup548: polkadot_runtime_parachains::coretime::pallet::Event<T>
|
||||
* Lookup517: polkadot_runtime_parachains::coretime::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletEvent: {
|
||||
_enum: {
|
||||
@@ -225,7 +243,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup600: staging_kusama_runtime::RuntimeHoldReason
|
||||
* Lookup566: staging_kusama_runtime::RuntimeHoldReason
|
||||
**/
|
||||
StagingKusamaRuntimeRuntimeHoldReason: {
|
||||
_enum: {
|
||||
@@ -267,71 +285,11 @@ export default {
|
||||
__Unused35: 'Null',
|
||||
__Unused36: 'Null',
|
||||
__Unused37: 'Null',
|
||||
Nis: 'PalletNisHoldReason',
|
||||
__Unused39: 'Null',
|
||||
__Unused40: 'Null',
|
||||
__Unused41: 'Null',
|
||||
__Unused42: 'Null',
|
||||
__Unused43: 'Null',
|
||||
__Unused44: 'Null',
|
||||
__Unused45: 'Null',
|
||||
__Unused46: 'Null',
|
||||
__Unused47: 'Null',
|
||||
__Unused48: 'Null',
|
||||
__Unused49: 'Null',
|
||||
__Unused50: 'Null',
|
||||
__Unused51: 'Null',
|
||||
__Unused52: 'Null',
|
||||
__Unused53: 'Null',
|
||||
__Unused54: 'Null',
|
||||
__Unused55: 'Null',
|
||||
__Unused56: 'Null',
|
||||
__Unused57: 'Null',
|
||||
__Unused58: 'Null',
|
||||
__Unused59: 'Null',
|
||||
__Unused60: 'Null',
|
||||
__Unused61: 'Null',
|
||||
__Unused62: 'Null',
|
||||
__Unused63: 'Null',
|
||||
__Unused64: 'Null',
|
||||
__Unused65: 'Null',
|
||||
__Unused66: 'Null',
|
||||
__Unused67: 'Null',
|
||||
__Unused68: 'Null',
|
||||
__Unused69: 'Null',
|
||||
__Unused70: 'Null',
|
||||
__Unused71: 'Null',
|
||||
__Unused72: 'Null',
|
||||
__Unused73: 'Null',
|
||||
__Unused74: 'Null',
|
||||
__Unused75: 'Null',
|
||||
__Unused76: 'Null',
|
||||
__Unused77: 'Null',
|
||||
__Unused78: 'Null',
|
||||
__Unused79: 'Null',
|
||||
__Unused80: 'Null',
|
||||
__Unused81: 'Null',
|
||||
__Unused82: 'Null',
|
||||
__Unused83: 'Null',
|
||||
__Unused84: 'Null',
|
||||
__Unused85: 'Null',
|
||||
__Unused86: 'Null',
|
||||
__Unused87: 'Null',
|
||||
__Unused88: 'Null',
|
||||
__Unused89: 'Null',
|
||||
__Unused90: 'Null',
|
||||
__Unused91: 'Null',
|
||||
__Unused92: 'Null',
|
||||
__Unused93: 'Null',
|
||||
__Unused94: 'Null',
|
||||
__Unused95: 'Null',
|
||||
__Unused96: 'Null',
|
||||
__Unused97: 'Null',
|
||||
StateTrieMigration: 'PalletStateTrieMigrationHoldReason'
|
||||
Nis: 'PalletNisHoldReason'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup607: staging_kusama_runtime::RuntimeFreezeReason
|
||||
* Lookup572: staging_kusama_runtime::RuntimeFreezeReason
|
||||
**/
|
||||
StagingKusamaRuntimeRuntimeFreezeReason: {
|
||||
_enum: {
|
||||
@@ -380,33 +338,33 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup800: pallet_balances::types::IdAmount<Id, Balance>
|
||||
* Lookup742: pallet_balances::types::IdAmount<Id, Balance>
|
||||
**/
|
||||
PalletBalancesIdAmount: {
|
||||
id: 'Null',
|
||||
amount: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup899: polkadot_runtime_parachains::assigner_on_demand::EnqueuedOrder
|
||||
* Lookup841: polkadot_runtime_parachains::assigner_on_demand::EnqueuedOrder
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder: {
|
||||
paraId: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup900: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
|
||||
* Lookup842: polkadot_runtime_parachains::assigner_on_demand::CoreAffinityCount
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount: {
|
||||
coreIdx: 'u32',
|
||||
count: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup901: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
|
||||
* Lookup843: polkadot_runtime_parachains::assigner_on_demand::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerOnDemandPalletError: {
|
||||
_enum: ['InvalidParaId', 'QueueFull', 'SpotPriceHigherThanMaxAmount']
|
||||
},
|
||||
/**
|
||||
* Lookup903: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
|
||||
* Lookup845: polkadot_runtime_parachains::assigner_coretime::Schedule<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeSchedule: {
|
||||
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,u16)>',
|
||||
@@ -414,21 +372,21 @@ export default {
|
||||
nextSchedule: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup904: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
|
||||
* Lookup846: polkadot_runtime_parachains::assigner_coretime::CoreDescriptor<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor: {
|
||||
queue: 'Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>',
|
||||
currentWork: 'Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>'
|
||||
},
|
||||
/**
|
||||
* Lookup906: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
|
||||
* Lookup848: polkadot_runtime_parachains::assigner_coretime::QueueDescriptor<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor: {
|
||||
first: 'u32',
|
||||
last: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup908: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
|
||||
* Lookup850: polkadot_runtime_parachains::assigner_coretime::WorkState<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeWorkState: {
|
||||
assignments: 'Vec<(PalletBrokerCoretimeInterfaceCoreAssignment,PolkadotRuntimeParachainsAssignerCoretimeAssignmentState)>',
|
||||
@@ -437,26 +395,26 @@ export default {
|
||||
step: 'u16'
|
||||
},
|
||||
/**
|
||||
* Lookup911: polkadot_runtime_parachains::assigner_coretime::AssignmentState
|
||||
* Lookup853: polkadot_runtime_parachains::assigner_coretime::AssignmentState
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimeAssignmentState: {
|
||||
ratio: 'u16',
|
||||
remaining: 'u16'
|
||||
},
|
||||
/**
|
||||
* Lookup912: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
|
||||
* Lookup854: polkadot_runtime_parachains::assigner_coretime::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsAssignerCoretimePalletError: {
|
||||
_enum: ['AssignmentsEmpty', 'OverScheduled', 'UnderScheduled', 'DisallowedInsert', 'DuplicateInsert', 'AssignmentsNotSorted']
|
||||
},
|
||||
/**
|
||||
* Lookup926: polkadot_runtime_parachains::coretime::pallet::Error<T>
|
||||
* Lookup868: polkadot_runtime_parachains::coretime::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsCoretimePalletError: {
|
||||
_enum: ['NotBroker']
|
||||
},
|
||||
/**
|
||||
* Lookup972: staging_kusama_runtime::Runtime
|
||||
* Lookup915: staging_kusama_runtime::Runtime
|
||||
**/
|
||||
StagingKusamaRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -7,10 +7,27 @@ import '@polkadot/types/lookup';
|
||||
|
||||
import type { Compact, Enum, Null, Option, Struct, Vec, u128, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId32, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name StagingKusamaRuntimeSessionKeys (121) */
|
||||
/** @name StagingKusamaRuntimePalletImOnlinePalletEvent (49) */
|
||||
interface StagingKusamaRuntimePalletImOnlinePalletEvent extends Enum {
|
||||
readonly isHeartbeatReceived: boolean;
|
||||
readonly asHeartbeatReceived: {
|
||||
readonly authorityId: StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public;
|
||||
} & Struct;
|
||||
readonly isAllGood: boolean;
|
||||
readonly isSomeOffline: boolean;
|
||||
readonly asSomeOffline: {
|
||||
readonly offline: Vec<ITuple<[AccountId32, SpStakingExposure]>>;
|
||||
} & Struct;
|
||||
readonly type: 'HeartbeatReceived' | 'AllGood' | 'SomeOffline';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public (50) */
|
||||
interface StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public extends SpCoreSr25519Public {}
|
||||
|
||||
/** @name StagingKusamaRuntimeSessionKeys (134) */
|
||||
interface StagingKusamaRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpConsensusGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
@@ -20,7 +37,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly beefy: SpConsensusBeefyEcdsaCryptoPublic;
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeOriginCaller (148) */
|
||||
/** @name StagingKusamaRuntimeOriginCaller (161) */
|
||||
interface StagingKusamaRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
@@ -34,7 +51,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (150) */
|
||||
/** @name StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (163) */
|
||||
interface StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
||||
readonly isStakingAdmin: boolean;
|
||||
readonly isTreasurer: boolean;
|
||||
@@ -67,21 +84,20 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan' | 'WishForChange';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeProxyType (224) */
|
||||
/** @name StagingKusamaRuntimeProxyType (192) */
|
||||
interface StagingKusamaRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
readonly isGovernance: boolean;
|
||||
readonly isStaking: boolean;
|
||||
readonly isIdentityJudgement: boolean;
|
||||
readonly isCancelProxy: boolean;
|
||||
readonly isAuction: boolean;
|
||||
readonly isSociety: boolean;
|
||||
readonly isNominationPools: boolean;
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeNposCompactSolution24 (234) */
|
||||
/** @name StagingKusamaRuntimeNposCompactSolution24 (202) */
|
||||
interface StagingKusamaRuntimeNposCompactSolution24 extends Struct {
|
||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||
@@ -109,7 +125,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (391) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletCall (360) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletCall extends Enum {
|
||||
readonly isPlaceOrderAllowDeath: boolean;
|
||||
readonly asPlaceOrderAllowDeath: {
|
||||
@@ -124,7 +140,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'PlaceOrderAllowDeath' | 'PlaceOrderKeepAlive';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletCall (399) */
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletCall (371) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletCall extends Enum {
|
||||
readonly isRequestCoreCount: boolean;
|
||||
readonly asRequestCoreCount: {
|
||||
@@ -140,7 +156,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'RequestCoreCount' | 'AssignCore';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (543) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletEvent (512) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletEvent extends Enum {
|
||||
readonly isOnDemandOrderPlaced: boolean;
|
||||
readonly asOnDemandOrderPlaced: {
|
||||
@@ -154,7 +170,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'OnDemandOrderPlaced' | 'SpotTrafficSet';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (548) */
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletEvent (517) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletEvent extends Enum {
|
||||
readonly isRevenueInfoRequested: boolean;
|
||||
readonly asRevenueInfoRequested: {
|
||||
@@ -167,42 +183,40 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'RevenueInfoRequested' | 'CoreAssigned';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntimeHoldReason (600) */
|
||||
/** @name StagingKusamaRuntimeRuntimeHoldReason (566) */
|
||||
interface StagingKusamaRuntimeRuntimeHoldReason extends Enum {
|
||||
readonly isPreimage: boolean;
|
||||
readonly asPreimage: PalletPreimageHoldReason;
|
||||
readonly isNis: boolean;
|
||||
readonly asNis: PalletNisHoldReason;
|
||||
readonly isStateTrieMigration: boolean;
|
||||
readonly asStateTrieMigration: PalletStateTrieMigrationHoldReason;
|
||||
readonly type: 'Preimage' | 'Nis' | 'StateTrieMigration';
|
||||
readonly type: 'Preimage' | 'Nis';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntimeFreezeReason (607) */
|
||||
/** @name StagingKusamaRuntimeRuntimeFreezeReason (572) */
|
||||
interface StagingKusamaRuntimeRuntimeFreezeReason extends Enum {
|
||||
readonly isNominationPools: boolean;
|
||||
readonly asNominationPools: PalletNominationPoolsFreezeReason;
|
||||
readonly type: 'NominationPools';
|
||||
}
|
||||
|
||||
/** @name PalletBalancesIdAmount (800) */
|
||||
/** @name PalletBalancesIdAmount (742) */
|
||||
interface PalletBalancesIdAmount extends Struct {
|
||||
readonly id: Null;
|
||||
readonly amount: u128;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder (899) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder (841) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder extends Struct {
|
||||
readonly paraId: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount (900) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount (842) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount extends Struct {
|
||||
readonly coreIdx: u32;
|
||||
readonly count: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (901) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerOnDemandPalletError (843) */
|
||||
interface PolkadotRuntimeParachainsAssignerOnDemandPalletError extends Enum {
|
||||
readonly isInvalidParaId: boolean;
|
||||
readonly isQueueFull: boolean;
|
||||
@@ -210,26 +224,26 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidParaId' | 'QueueFull' | 'SpotPriceHigherThanMaxAmount';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (903) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeSchedule (845) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeSchedule extends Struct {
|
||||
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>;
|
||||
readonly endHint: Option<u32>;
|
||||
readonly nextSchedule: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (904) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor (846) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor extends Struct {
|
||||
readonly queue: Option<PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor>;
|
||||
readonly currentWork: Option<PolkadotRuntimeParachainsAssignerCoretimeWorkState>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (906) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor (848) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor extends Struct {
|
||||
readonly first: u32;
|
||||
readonly last: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (908) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeWorkState (850) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeWorkState extends Struct {
|
||||
readonly assignments: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState]>>;
|
||||
readonly endHint: Option<u32>;
|
||||
@@ -237,13 +251,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly step: u16;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (911) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimeAssignmentState (853) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimeAssignmentState extends Struct {
|
||||
readonly ratio: u16;
|
||||
readonly remaining: u16;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (912) */
|
||||
/** @name PolkadotRuntimeParachainsAssignerCoretimePalletError (854) */
|
||||
interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
|
||||
readonly isAssignmentsEmpty: boolean;
|
||||
readonly isOverScheduled: boolean;
|
||||
@@ -254,13 +268,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AssignmentsEmpty' | 'OverScheduled' | 'UnderScheduled' | 'DisallowedInsert' | 'DuplicateInsert' | 'AssignmentsNotSorted';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletError (926) */
|
||||
/** @name PolkadotRuntimeParachainsCoretimePalletError (868) */
|
||||
interface PolkadotRuntimeParachainsCoretimePalletError extends Enum {
|
||||
readonly isNotBroker: boolean;
|
||||
readonly type: 'NotBroker';
|
||||
}
|
||||
|
||||
/** @name StagingKusamaRuntimeRuntime (972) */
|
||||
/** @name StagingKusamaRuntimeRuntime (915) */
|
||||
type StagingKusamaRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -37,31 +37,34 @@ import type { EvmAccount, EvmCallInfo, EvmCallInfoV2, EvmCreateInfo, EvmCreateIn
|
||||
import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { FungiblesAccessError } from '@polkadot/types/interfaces/fungibles';
|
||||
import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';
|
||||
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
||||
import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';
|
||||
import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';
|
||||
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
|
||||
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
|
||||
import type { CustomMetadata15, CustomValueMetadata15, ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, ExtrinsicMetadataV15, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV15, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, OuterEnums15, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletMetadataV15, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, RuntimeApiMetadataLatest, RuntimeApiMetadataV15, RuntimeApiMethodMetadataV15, RuntimeApiMethodParamMetadataV15, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { Mixnode, MixnodesErr, SessionPhase, SessionStatus } from '@polkadot/types/interfaces/mixnet';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeProof, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DisputesTimeSlot, DoubleVoteReport, DownwardMessage, ExecutorParam, ExecutorParams, ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PendingSlashes, PersistedValidationData, PvfCheckStatement, PvfExecTimeoutKind, PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlashingOffenceKind, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, ApprovalVotingParams, AssignmentId, AssignmentKind, AsyncBackingParams, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, BackingState, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, Constraints, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeProof, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DisputesTimeSlot, DoubleVoteReport, DownwardMessage, ExecutorParam, ExecutorParams, ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpLimitations, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, NodeFeatures, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpChannelLimitations, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PendingSlashes, PersistedValidationData, PvfCheckStatement, PvfExecTimeoutKind, PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlashingOffenceKind, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo, RuntimeDispatchInfoV1, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';
|
||||
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
||||
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||
import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicInclusionMode, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeCall, RuntimeDbWeight, RuntimeEvent, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV0, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';
|
||||
import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||
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, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
||||
import type { StatementStoreInvalidStatement, StatementStoreStatementSource, StatementStoreValidStatement } from '@polkadot/types/interfaces/statement';
|
||||
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
||||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ApplyExtrinsicResultPre6, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModulePre6, DispatchErrorModuleU8, DispatchErrorModuleU8a, DispatchErrorPre6, DispatchErrorPre6First, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchOutcomePre6, 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, TransactionalError, 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';
|
||||
@@ -71,6 +74,8 @@ import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalan
|
||||
import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||
import type { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||
import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';
|
||||
import type { XcmPaymentApiError } from '@polkadot/types/interfaces/xcmPaymentApi';
|
||||
import type { Error } from '@polkadot/types/interfaces/xcmRuntimeApi';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -109,6 +114,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6;
|
||||
ApprovalFlag: ApprovalFlag;
|
||||
Approvals: Approvals;
|
||||
ApprovalVotingParams: ApprovalVotingParams;
|
||||
ArithmeticError: ArithmeticError;
|
||||
AssetApproval: AssetApproval;
|
||||
AssetApprovalKey: AssetApprovalKey;
|
||||
@@ -124,6 +130,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
AssetOptions: AssetOptions;
|
||||
AssignmentId: AssignmentId;
|
||||
AssignmentKind: AssignmentKind;
|
||||
AsyncBackingParams: AsyncBackingParams;
|
||||
AttestedCandidate: AttestedCandidate;
|
||||
AuctionIndex: AuctionIndex;
|
||||
AuthIndex: AuthIndex;
|
||||
@@ -146,6 +153,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
BabeGenesisConfigurationV1: BabeGenesisConfigurationV1;
|
||||
BabeWeight: BabeWeight;
|
||||
BackedCandidate: BackedCandidate;
|
||||
BackingState: BackingState;
|
||||
Balance: Balance;
|
||||
BalanceLock: BalanceLock;
|
||||
BalanceLockTo212: BalanceLockTo212;
|
||||
@@ -248,6 +256,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ConfigData: ConfigData;
|
||||
Consensus: Consensus;
|
||||
ConsensusEngineId: ConsensusEngineId;
|
||||
Constraints: Constraints;
|
||||
ConsumedWeight: ConsumedWeight;
|
||||
ContractCallFlags: ContractCallFlags;
|
||||
ContractCallRequest: ContractCallRequest;
|
||||
@@ -393,6 +402,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
EraPoints: EraPoints;
|
||||
EraRewardPoints: EraRewardPoints;
|
||||
EraRewards: EraRewards;
|
||||
Error: Error;
|
||||
ErrorMetadataLatest: ErrorMetadataLatest;
|
||||
ErrorMetadataV10: ErrorMetadataV10;
|
||||
ErrorMetadataV11: ErrorMetadataV11;
|
||||
@@ -471,6 +481,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ExtendedBalance: ExtendedBalance;
|
||||
Extrinsic: Extrinsic;
|
||||
ExtrinsicEra: ExtrinsicEra;
|
||||
ExtrinsicInclusionMode: ExtrinsicInclusionMode;
|
||||
ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;
|
||||
ExtrinsicMetadataV11: ExtrinsicMetadataV11;
|
||||
ExtrinsicMetadataV12: ExtrinsicMetadataV12;
|
||||
@@ -524,6 +535,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
FungibilityV2: FungibilityV2;
|
||||
FungiblesAccessError: FungiblesAccessError;
|
||||
Gas: Gas;
|
||||
GenesisBuildErr: GenesisBuildErr;
|
||||
GiltBid: GiltBid;
|
||||
GlobalValidationData: GlobalValidationData;
|
||||
GlobalValidationSchedule: GlobalValidationSchedule;
|
||||
@@ -580,6 +592,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
ImmortalEra: ImmortalEra;
|
||||
ImportedAux: ImportedAux;
|
||||
InboundDownwardMessage: InboundDownwardMessage;
|
||||
InboundHrmpLimitations: InboundHrmpLimitations;
|
||||
InboundHrmpMessage: InboundHrmpMessage;
|
||||
InboundHrmpMessages: InboundHrmpMessages;
|
||||
InboundLaneData: InboundLaneData;
|
||||
@@ -668,6 +681,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
MetadataV15: MetadataV15;
|
||||
MetadataV9: MetadataV9;
|
||||
MigrationStatusResult: MigrationStatusResult;
|
||||
Mixnode: Mixnode;
|
||||
MixnodesErr: MixnodesErr;
|
||||
MmrBatchProof: MmrBatchProof;
|
||||
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
|
||||
MmrError: MmrError;
|
||||
@@ -723,6 +738,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
NextConfigDescriptorV1: NextConfigDescriptorV1;
|
||||
NftCollectionId: NftCollectionId;
|
||||
NftItemId: NftItemId;
|
||||
NodeFeatures: NodeFeatures;
|
||||
NodeRole: NodeRole;
|
||||
Nominations: Nominations;
|
||||
NominatorIndex: NominatorIndex;
|
||||
@@ -756,6 +772,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
OriginKindV0: OriginKindV0;
|
||||
OriginKindV1: OriginKindV1;
|
||||
OriginKindV2: OriginKindV2;
|
||||
OutboundHrmpChannelLimitations: OutboundHrmpChannelLimitations;
|
||||
OutboundHrmpMessage: OutboundHrmpMessage;
|
||||
OutboundLaneData: OutboundLaneData;
|
||||
OutboundMessageFee: OutboundMessageFee;
|
||||
@@ -961,6 +978,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
SessionKeys8B: SessionKeys8B;
|
||||
SessionKeys9: SessionKeys9;
|
||||
SessionKeys9B: SessionKeys9B;
|
||||
SessionPhase: SessionPhase;
|
||||
SessionStatus: SessionStatus;
|
||||
SetId: SetId;
|
||||
SetIndex: SetIndex;
|
||||
Si0Field: Si0Field;
|
||||
@@ -1045,6 +1064,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
StakingLedgerTo240: StakingLedgerTo240;
|
||||
Statement: Statement;
|
||||
StatementKind: StatementKind;
|
||||
StatementStoreInvalidStatement: StatementStoreInvalidStatement;
|
||||
StatementStoreStatementSource: StatementStoreStatementSource;
|
||||
StatementStoreValidStatement: StatementStoreValidStatement;
|
||||
StorageChangeSet: StorageChangeSet;
|
||||
StorageData: StorageData;
|
||||
StorageDeposit: StorageDeposit;
|
||||
@@ -1228,6 +1250,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
XcmOrderV2: XcmOrderV2;
|
||||
XcmOrigin: XcmOrigin;
|
||||
XcmOriginKind: XcmOriginKind;
|
||||
XcmPaymentApiError: XcmPaymentApiError;
|
||||
XcmpMessageFormat: XcmpMessageFormat;
|
||||
XcmV0: XcmV0;
|
||||
XcmV1: XcmV1;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { PalletBalancesIdAmount, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { PalletBalancesIdAmount, PolkadotRuntimeParachainsAssignerCoretimeAssignmentState, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimePalletError, PolkadotRuntimeParachainsAssignerCoretimeQueueDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerCoretimeWorkState, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandPalletCall, PolkadotRuntimeParachainsAssignerOnDemandPalletError, PolkadotRuntimeParachainsAssignerOnDemandPalletEvent, PolkadotRuntimeParachainsCoretimePalletCall, PolkadotRuntimeParachainsCoretimePalletError, PolkadotRuntimeParachainsCoretimePalletEvent, StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, StagingKusamaRuntimeNposCompactSolution24, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimePalletImOnlinePalletEvent, StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntime, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -27,6 +27,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: StagingKusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
|
||||
StagingKusamaRuntimeNposCompactSolution24: StagingKusamaRuntimeNposCompactSolution24;
|
||||
StagingKusamaRuntimeOriginCaller: StagingKusamaRuntimeOriginCaller;
|
||||
StagingKusamaRuntimePalletImOnlinePalletEvent: StagingKusamaRuntimePalletImOnlinePalletEvent;
|
||||
StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public: StagingKusamaRuntimePalletImOnlineSr25519AppSr25519Public;
|
||||
StagingKusamaRuntimeProxyType: StagingKusamaRuntimeProxyType;
|
||||
StagingKusamaRuntimeRuntime: StagingKusamaRuntimeRuntime;
|
||||
StagingKusamaRuntimeRuntimeFreezeReason: StagingKusamaRuntimeRuntimeFreezeReason;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/x-bigint": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"@polkadot/x-bigint": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-augment": "10.12.3",
|
||||
"@polkadot/types-support": "10.12.3",
|
||||
"@polkadot/util-crypto": "^12.6.2"
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-augment": "12.4.1",
|
||||
"@polkadot/types-support": "12.4.1",
|
||||
"@polkadot/util-crypto": "^13.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,12 +123,12 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
const count = this.length;
|
||||
const result = new Array<AnyJson>(count);
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
result[i] = this[i] && this[i].toHuman(isExtended);
|
||||
result[i] = this[i] && this[i].toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -153,12 +153,12 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
const count = this.length;
|
||||
const result = new Array<AnyJson>(count);
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
result[i] = this[i] && this[i].toPrimitive();
|
||||
result[i] = this[i] && this[i].toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -75,8 +75,8 @@ export abstract class AbstractBase<T extends Codec> implements Codec {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended);
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -89,8 +89,8 @@ export abstract class AbstractBase<T extends Codec> implements Codec {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
return this.#raw.toPrimitive();
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
return this.#raw.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,7 @@ export abstract class AbstractObject<T extends ToString> implements CodecObject<
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public abstract toHuman (isExtended?: boolean): AnyJson;
|
||||
public abstract toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson;
|
||||
|
||||
/**
|
||||
* @description Converts the Object to JSON, typically used for RPC transfers
|
||||
@@ -70,7 +70,7 @@ export abstract class AbstractObject<T extends ToString> implements CodecObject<
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public abstract toPrimitive (): AnyJson;
|
||||
public abstract toPrimitive (disableAscii?: boolean): AnyJson;
|
||||
|
||||
/**
|
||||
* @description Returns the string representation of the value
|
||||
|
||||
@@ -143,8 +143,8 @@ export class Compact<T extends INumber> implements ICompact<T> {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended);
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -164,8 +164,8 @@ export class Compact<T extends INumber> implements ICompact<T> {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): string | number {
|
||||
return this.#raw.toPrimitive();
|
||||
public toPrimitive (disableAscii?: boolean): string | number {
|
||||
return this.#raw.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -374,10 +374,10 @@ export class Enum implements IEnum {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.#isBasic || this.isNone
|
||||
? this.type
|
||||
: { [this.type]: this.#raw.toHuman(isExtended) };
|
||||
: { [this.type]: this.#raw.toHuman(isExtended, disableAscii) };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -399,10 +399,10 @@ export class Enum implements IEnum {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
return this.#isBasic
|
||||
? this.type
|
||||
: { [stringCamelCase(this.type)]: this.#raw.toPrimitive() };
|
||||
: { [stringCamelCase(this.type)]: this.#raw.toPrimitive(disableAscii) };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -183,8 +183,8 @@ export class Option<T extends Codec> implements IOption<T> {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended);
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.#raw.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -199,10 +199,10 @@ export class Option<T extends Codec> implements IOption<T> {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
return this.isNone
|
||||
? null
|
||||
: this.#raw.toPrimitive();
|
||||
: this.#raw.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import { compactFromU8aLim, identity, isHex, isU8a, logger, stringify, u8aToU8a
|
||||
import { AbstractArray } from '../abstract/Array.js';
|
||||
import { decodeU8aVec, typeToConstructor } from '../utils/index.js';
|
||||
|
||||
const MAX_LENGTH = 64 * 1024;
|
||||
const MAX_LENGTH = 512 * 1024;
|
||||
|
||||
const l = logger('Vec');
|
||||
|
||||
|
||||
@@ -163,11 +163,11 @@ export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V>
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
const json: AnyJson = [];
|
||||
|
||||
for (const v of this.values()) {
|
||||
json.push(v.toHuman(isExtended));
|
||||
json.push(v.toHuman(isExtended, disableAscii));
|
||||
}
|
||||
|
||||
return json;
|
||||
@@ -196,11 +196,11 @@ export class BTreeSet<V extends Codec = Codec> extends Set<V> implements ISet<V>
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
const json: AnyJson = [];
|
||||
|
||||
for (const v of this.values()) {
|
||||
json.push(v.toPrimitive());
|
||||
json.push(v.toPrimitive(disableAscii));
|
||||
}
|
||||
|
||||
return json;
|
||||
|
||||
@@ -177,15 +177,15 @@ export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): Record<string, AnyJson> {
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): Record<string, AnyJson> {
|
||||
const json: Record<string, AnyJson> = {};
|
||||
|
||||
for (const [k, v] of this.entries()) {
|
||||
json[
|
||||
k instanceof Raw && k.isAscii
|
||||
k instanceof Raw && !disableAscii && k.isAscii
|
||||
? k.toUtf8()
|
||||
: k.toString()
|
||||
] = v.toHuman(isExtended);
|
||||
] = v.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
return json;
|
||||
@@ -207,15 +207,15 @@ export class CodecMap<K extends Codec = Codec, V extends Codec = Codec> extends
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
const json: Record<string, AnyJson> = {};
|
||||
|
||||
for (const [k, v] of this.entries()) {
|
||||
json[
|
||||
k instanceof Raw && k.isAscii
|
||||
k instanceof Raw && !disableAscii && k.isAscii
|
||||
? k.toUtf8()
|
||||
: k.toString()
|
||||
] = v.toPrimitive();
|
||||
] = v.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
return json;
|
||||
|
||||
@@ -84,19 +84,19 @@ export class WrapperKeepOpaque<T extends Codec> extends Bytes {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public override toHuman (isExtended?: boolean): AnyJson {
|
||||
public override toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.#decoded
|
||||
? this.#decoded.toHuman(isExtended)
|
||||
: super.toHuman();
|
||||
? this.#decoded.toHuman(isExtended, disableAscii)
|
||||
: super.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public override toPrimitive (): any {
|
||||
public override toPrimitive (disableAscii?: boolean): any {
|
||||
return this.#decoded
|
||||
? this.#decoded.toPrimitive()
|
||||
: super.toPrimitive();
|
||||
? this.#decoded.toPrimitive(disableAscii)
|
||||
: super.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -114,10 +114,10 @@ export class Json extends Map<string, any> implements Codec {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): Record<string, AnyJson> {
|
||||
public toPrimitive (disableAscii?: boolean): Record<string, AnyJson> {
|
||||
return [...this.entries()].reduce<Record<string, AnyJson>>((json, [key, value]): Record<string, AnyJson> => {
|
||||
json[key] = isFunction((value as Codec).toPrimitive)
|
||||
? (value as Codec).toPrimitive()
|
||||
? (value as Codec).toPrimitive(disableAscii)
|
||||
: value as AnyJson;
|
||||
|
||||
return json;
|
||||
|
||||
@@ -82,6 +82,10 @@ describe('Raw', (): void => {
|
||||
expect(new Raw(registry, '0x2021222324').isAscii).toBe(true);
|
||||
});
|
||||
|
||||
it('has valid toHuman with disableAscii option set as true', (): void => {
|
||||
expect(new Raw(registry, new Uint8Array([85, 85, 85, 85, 85, 85, 85, 85])).toHuman(undefined, true)).toEqual('0x5555555555555555');
|
||||
});
|
||||
|
||||
it('has valid toPrimitive', (): void => {
|
||||
expect(new Raw(registry, 'testing').toPrimitive()).toEqual('testing');
|
||||
expect(new Raw(registry, '0xe4bda0e5a5bd').toPrimitive()).toEqual('0xe4bda0e5a5bd');
|
||||
|
||||
@@ -110,8 +110,8 @@ export class Raw extends Uint8Array implements IU8a {
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (): AnyJson {
|
||||
return this.toPrimitive();
|
||||
public toHuman (_isExtended?: boolean, disableAscii?: boolean): AnyJson {
|
||||
return this.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -124,8 +124,8 @@ export class Raw extends Uint8Array implements IU8a {
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
if (this.isAscii) {
|
||||
public toPrimitive (disableAscii?: boolean): AnyJson {
|
||||
if (!disableAscii && this.isAscii) {
|
||||
const text = this.toUtf8();
|
||||
|
||||
// ensure we didn't end up with multibyte codepoints
|
||||
|
||||
@@ -268,11 +268,11 @@ export class Struct<
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): Record<string, AnyJson> {
|
||||
public toHuman (isExtended?: boolean, disableAscii?: boolean): Record<string, AnyJson> {
|
||||
const json: Record<string, AnyJson> = {};
|
||||
|
||||
for (const [k, v] of this.entries()) {
|
||||
json[k as string] = v.toHuman(isExtended);
|
||||
json[k as string] = v.toHuman(isExtended, disableAscii);
|
||||
}
|
||||
|
||||
return json;
|
||||
@@ -296,11 +296,11 @@ export class Struct<
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): Record<string, AnyJson> {
|
||||
public toPrimitive (disableAscii?: boolean): Record<string, AnyJson> {
|
||||
const json: Record<string, AnyJson> = {};
|
||||
|
||||
for (const [k, v] of this.entries()) {
|
||||
json[k as string] = v.toPrimitive();
|
||||
json[k as string] = v.toPrimitive(disableAscii);
|
||||
}
|
||||
|
||||
return json;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -86,8 +86,10 @@ export interface Codec {
|
||||
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
* @param isExtended When set, for some (e.g. call) it can add more info, e.g. metadata documentation. (Generally not needed in all cases, but can be useful in Events, Calls, ...)
|
||||
* @param disableAscii When set, for some (e.g. `Raw` types) it will disable converting the value to ascii.
|
||||
*/
|
||||
toHuman (isExtended?: boolean): AnyJson;
|
||||
toHuman (isExtended?: boolean, disableAscii?: boolean): AnyJson;
|
||||
|
||||
/**
|
||||
* @description Converts the Object to JSON, typically used for RPC transfers
|
||||
@@ -96,8 +98,9 @@ export interface Codec {
|
||||
|
||||
/**
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
* @param disableAscii
|
||||
*/
|
||||
toPrimitive (): AnyJson;
|
||||
toPrimitive (disableAscii?: boolean): AnyJson;
|
||||
|
||||
/**
|
||||
* @description Returns the base runtime type name for this instance
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface INumber extends Codec {
|
||||
toBigInt (): bigint;
|
||||
toBn (): BN;
|
||||
toNumber (): number;
|
||||
toPrimitive (): string | number;
|
||||
toPrimitive (disableAscii?: boolean): string | number;
|
||||
}
|
||||
|
||||
export interface IFloat extends Codec {
|
||||
@@ -78,7 +78,7 @@ export interface IU8a extends Uint8Array, Codec {
|
||||
readonly isUtf8: boolean
|
||||
|
||||
bitLength (): number;
|
||||
toHuman (isExtended?: boolean): any;
|
||||
toHuman (isExtended?: boolean, disableAscii?: boolean): any;
|
||||
toJSON (): any;
|
||||
toUtf8 (): string;
|
||||
}
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.12.3"
|
||||
"@polkadot/types": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.12.3",
|
||||
"version": "12.4.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.6.2",
|
||||
"@polkadot/types": "10.12.3",
|
||||
"@polkadot/types-codec": "10.12.3",
|
||||
"@polkadot/types-create": "10.12.3",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
"@polkadot/networks": "^13.0.2",
|
||||
"@polkadot/types": "12.4.1",
|
||||
"@polkadot/types-codec": "12.4.1",
|
||||
"@polkadot/types-create": "12.4.1",
|
||||
"@polkadot/util": "^13.0.2",
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.12.3"
|
||||
"@polkadot/api": "12.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '10.12.3' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '12.4.1' };
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user