Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca692cc7c0 | ||
|
|
f5f5b540af | ||
|
|
8b3b1b4611 | ||
|
|
21cb76e517 | ||
|
|
d774a3c2ab | ||
|
|
0c08e8ba9e | ||
|
|
c2549ec166 | ||
|
|
d27fce3b29 | ||
|
|
849588e305 | ||
|
|
4f3fedc27e | ||
|
|
57a5892f99 | ||
|
|
f5499ca4ed | ||
|
|
37ae595f03 | ||
|
|
868a4a2964 | ||
|
|
3656480cff | ||
|
|
37cf4b5e88 | ||
|
|
75a4e7b5d7 | ||
|
|
12d6cf8a5b | ||
|
|
aa7e5ea601 | ||
|
|
9f5232019e | ||
|
|
3063763a18 | ||
|
|
b76f9e7e21 | ||
|
|
558636b6b0 | ||
|
|
8b92772b2f | ||
|
|
cf0881f704 | ||
|
|
1adc17b598 | ||
|
|
a55256a247 | ||
|
|
faaa4e9480 | ||
|
|
ba52ab450e | ||
|
|
0660d0cf15 | ||
|
|
fa1a3315f8 | ||
|
|
5f281b07fe | ||
|
|
e5bc2601cc | ||
|
|
6132a34333 | ||
|
|
697e6d8b8b | ||
|
|
33c4d82293 | ||
|
|
c46e0e9d5b | ||
|
|
4b9f987203 | ||
|
|
a650ae195e | ||
|
|
0dca7bacc2 | ||
|
|
87f79151b4 | ||
|
|
480ae203b4 | ||
|
|
c4427c0497 | ||
|
|
f130f55167 | ||
|
|
2009483542 | ||
|
|
ca50309554 | ||
|
|
db5b0986c4 | ||
|
|
b94cf566c9 | ||
|
|
ff24cec841 | ||
|
|
e16d20e996 | ||
|
|
bfab0f8538 | ||
|
|
4752a98456 | ||
|
|
e63a3ec6a9 | ||
|
|
4dc30d7d98 | ||
|
|
71f6825b00 | ||
|
|
d56b0bfccc | ||
|
|
39ff956076 | ||
|
|
faa22fc634 | ||
|
|
f5ce395371 | ||
|
|
b986d4cb5d | ||
|
|
9c39cd9255 | ||
|
|
43e2c44ac1 | ||
|
|
3507a74d60 | ||
|
|
97797d64f1 | ||
|
|
88d7207102 | ||
|
|
1616b014b3 | ||
|
|
c20538f6f7 | ||
|
|
e77c2dd78c | ||
|
|
6e7ce901ab | ||
|
|
3396ed6010 | ||
|
|
09ec89ae62 | ||
|
|
a7d78ff6eb | ||
|
|
868043a22b | ||
|
|
0310582056 | ||
|
|
629b9b486e | ||
|
|
500e2022c3 | ||
|
|
f8c2701751 | ||
|
|
d70ef05b54 | ||
|
|
4b1d4c7335 | ||
|
|
c79939e650 | ||
|
|
8f298ba2a0 | ||
|
|
da6311d584 | ||
|
|
d589adf208 | ||
|
|
dfbfaf12eb | ||
|
|
91989e1a2b | ||
|
|
86c2a96ed4 | ||
|
|
9f3dab39c0 | ||
|
|
a02687c9fb | ||
|
|
80399fefcd | ||
|
|
ff9a0b3d44 | ||
|
|
8df82af638 | ||
|
|
ddfcc5624c | ||
|
|
7b08fbb695 | ||
|
|
07d85783d8 | ||
|
|
f0d6fc0167 | ||
|
|
7b085307f8 | ||
|
|
e22a38dd9c | ||
|
|
2ceb727ee6 | ||
|
|
bc4e656745 | ||
|
|
6d2b3b8463 | ||
|
|
5369b6cb10 | ||
|
|
53fd71b732 | ||
|
|
63e38b3d1c | ||
|
|
cd98ac65f3 | ||
|
|
7bd0819cbb | ||
|
|
e84c2a5180 | ||
|
|
aabf4b3e45 | ||
|
|
0f67d3e54d | ||
|
|
8cbc36550b | ||
|
|
25c46f2a0d |
@@ -6,6 +6,7 @@ docs/.vuepress/dist/
|
|||||||
docs/substrate/*.md
|
docs/substrate/*.md
|
||||||
node_modules/
|
node_modules/
|
||||||
tmp/
|
tmp/
|
||||||
|
NOTES.md
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.env.local
|
.env.local
|
||||||
.env.development.local
|
.env.development.local
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
Jaco <jacogr@gmail.com>
|
Jaco <jacogr@gmail.com>
|
||||||
|
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> <action@github.com>
|
||||||
|
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Github Actions <action@github.com>
|
||||||
|
|||||||
+75
-2
@@ -1,5 +1,78 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 7.7.1 Feb 6, 2022
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended for users with long-running scripts.
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix rpc-provider LRU memory leak (Thanks to https://github.com/gdethier)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Don't warn on `Lookup*` types missing (these are resolvable)
|
||||||
|
- Don't clear injected `PortableRegistry` types on runtime upgrade
|
||||||
|
- Clear warning for `Call`/`Event` on non-meta v14 runtimes
|
||||||
|
- Add `beefy_getFinalizedHead` RPC support
|
||||||
|
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 7.6.1 Jan 30, 2022
|
||||||
|
|
||||||
|
Upgdare priority: Low. Recommended for users with long-running scripts and those chains based around the latest Substrate master versions.
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Fix memory leak on `.raw` RPC calls (Thanks to https://github.com/r0t0r-r0t0r)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust extraction of `Call` & `Event` types for metadata v14
|
||||||
|
- Adjust historic `WinningData` and `SlotRange` types (36-entry variant)
|
||||||
|
- Emit `decorated` event on API on metadata decoration
|
||||||
|
- Dedupe and extend `WrapperKeepOpaque/WrapperOpaque`
|
||||||
|
- Align `Range/RangeInclusive` usage with similar types
|
||||||
|
- Adjust bounty derive, return empty on no `{treasury, bounties}.bounties`
|
||||||
|
- Ensure handling of all `TypeDefInfo` keys in extraction
|
||||||
|
- Add support for `rpc.contracts.uploadCode`
|
||||||
|
- Workaround for generators where `#private = { this... }` yields undefined
|
||||||
|
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 7.5.1 Jan 23, 2022
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended for users of the latest contract pallet and ink! versions.
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Add additional namespaced contract tests (Thanks to https://github.com/VargSupercolony)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `Registry` consistency, augment extensions
|
||||||
|
- Add `.multi` support on `api.at(...).<section>.<method>`
|
||||||
|
- Add support for ink! metadata V3 with payable constructors
|
||||||
|
- Cleanup ink! metadata parsing, allowing for easier extension
|
||||||
|
- Expose `contract.{query, tx}.<method>.meta`, aligning with API
|
||||||
|
- Fix storage metadata, aligning method with decorated name
|
||||||
|
- Adjust typegen, only using exportInterface
|
||||||
|
- Added Kusama/Polkadot 9151 upgrade block (known types)
|
||||||
|
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 7.4.1 Jan 15, 2022
|
||||||
|
|
||||||
|
Upgrade priority: Medium. Required for all chains using `Range` and `RangeInclusive` types. Also includes better error handling for number conversions.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Asserts for invalid number format inputs (MAX_SAFE_INTEGER, float)
|
||||||
|
- Ensure `Range/RangeInclusive` variant check does not fail on encoding
|
||||||
|
- Ensure non-option calls in api-contract are marked as `@deprecated`
|
||||||
|
- Added Kusama 9150 upgrade block (known types)
|
||||||
|
- Update `@polkadot/util` to 8.3.2
|
||||||
|
|
||||||
|
|
||||||
## 7.3.1 Jan 9, 2022
|
## 7.3.1 Jan 9, 2022
|
||||||
|
|
||||||
Upgrade priority: Low. Maintenance upgrade, tracking the latest `@polkadot` libraries.
|
Upgrade priority: Low. Maintenance upgrade, tracking the latest `@polkadot` libraries.
|
||||||
@@ -57,9 +130,9 @@ Changes:
|
|||||||
|
|
||||||
Upgrade priority: Low. Recommended for TS users with their own non-Polkadot/Kusama chains.
|
Upgrade priority: Low. Recommended for TS users with their own non-Polkadot/Kusama chains.
|
||||||
|
|
||||||
- **Breaking changes** For TS users the default API augmentation is now optional. This means that the API, for TypeScript, is not decorated by default with the Substrate types and encpoints. TS users should add a singular `import '@polkadot/api-augment';` in their code to retore old behavior.
|
- **Breaking changes** For TS users the default API augmentation is now optional. This means that the API, for TypeScript, is not decorated by default with the Substrate types and encpoints. TS users should add a singular `import '@polkadot/api-augment';` in their code to restore old behavior. A full writeup of the rationale and other options can be found [in the FAQ](https://polkadot.js.org/docs/api/FAQ#since-upgrading-to-the-7x-series-typescript-augmentation-is-missing)
|
||||||
|
|
||||||
- **Breaking change** To cater for the above, chain-specific interfaces generated with older versions may not be compaitible with the current version of the API. Additionally, TS interfaces generated with this version of the API is not compatible with older API versions.
|
- **Breaking change** To cater for the above, chain-specific interfaces generated with older versions may not be compatible with the current version of the API. Additionally, TS interfaces generated with this version of the API is not compatible with older API versions.
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|
||||||
|
|||||||
+94
-91
@@ -1,91 +1,94 @@
|
|||||||
2752 Jaco
|
2805 Jaco 7.7.1 (#4535)
|
||||||
83 Amaury Martiny
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
36 Keith Ingram
|
36 Keith Ingram Storage deposit limit changes (#4370)
|
||||||
35 Stefanie Doll
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
20 Luke Schoen
|
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||||
15 Jeremías Díaz
|
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||||
15 Xiliang Chen
|
15 Xiliang Chen add Authority origin (#3645)
|
||||||
11 Ian He
|
11 Ian He HttpProvider support clone() (#3949)
|
||||||
10 Axel Chalon
|
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||||
5 Chevdor
|
5 Chevdor Fix metadata package link (#3458)
|
||||||
5 Jake Naviasky
|
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||||
4 Alex Wang
|
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||||
4 Alexander Popiak
|
4 Alexander Popiak Add asset id in signing (#4009)
|
||||||
4 Joshy Orndorff
|
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||||
4 Nantian
|
4 Nantian fix bigint type (#3869)
|
||||||
4 Thibaut Sardan
|
4 Thibaut Sardan no subscription for http (#3127)
|
||||||
3 Alex D
|
3 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||||
3 André Silva
|
3 André Silva add support for ValidationCodeHash (#3640)
|
||||||
3 Antoine Estienne
|
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||||
3 Arjan Zijderveld
|
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||||
3 Ewa Kowalska
|
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||||
3 hamidra
|
3 hamidra add support for n key entries for NMaps (#3886)
|
||||||
3 Hamza Tokuchi
|
3 Hamza Tokuchi more typos (#2532)
|
||||||
3 Julien Eluard
|
3 Julien Eluard Fixed typos about module balances (#1402)
|
||||||
3 KarishmaBothara
|
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||||
3 Miguel Hervas
|
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||||
3 Shawn Tabrizi
|
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||||
3 YJ
|
3 YJ feat: Vote interface as U8a (#1061)
|
||||||
2 Alexander Krupenkin
|
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||||
2 Branan Riley
|
2 Branan Riley Add proxy type for Centrifuge (#3940)
|
||||||
2 Caio
|
2 Caio Add `Range` and `RangeInclusive` types (#3791)
|
||||||
2 Jakub Pánik
|
2 Jakub Pánik All heads subscription (#1899)
|
||||||
2 James Lefrère
|
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||||
2 Keith Yeung
|
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||||
2 Nikos Kontakis
|
2 Nikos Kontakis Add auction in shared types (#4085)
|
||||||
2 Paweł Nguyen
|
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
||||||
2 sung wu
|
2 sung wu Update tx.md (#2485)
|
||||||
2 Veliko
|
2 Veliko Abi constructor takes different parameters (#3347)
|
||||||
2 Wei Tang
|
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
|
||||||
2 扩散性百万甜面包
|
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
|
||||||
1 Andreea Eftene
|
1 Andreea Eftene Add storage deposit support (#4304)
|
||||||
1 Brad Larson
|
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||||
1 chriswmercer
|
1 chriswmercer little readme tweak (#279)
|
||||||
1 codingsh
|
1 codingsh #2182 - add: search for docs (#2232)
|
||||||
1 Dan Forbes
|
1 Dan Forbes Add WeightToFeeCoefficient type (#2296)
|
||||||
1 Daniel Maricic
|
1 Daniel Maricic Fixed typo in README (#2402)
|
||||||
1 Daniel Savu
|
1 Daniel Savu fix: Generate custom type definitions (#4224)
|
||||||
1 David
|
1 David Don't log full error (#2952)
|
||||||
1 Denis Tsai
|
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
|
||||||
1 djuanito.eth
|
1 djuanito.eth Update fees to current constants (#2320)
|
||||||
1 Drew Stone
|
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||||
1 Dylan Galea
|
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||||
1 flex
|
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||||
1 Furqan A
|
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||||
1 Gerben van de Wiel
|
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
|
||||||
1 HackFisher
|
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
|
||||||
1 Hoani Bryson
|
1 HackFisher fix OutboundLaneData types (#3992)
|
||||||
1 Hyungsuk Kang
|
1 Hoani Bryson Multiple Endpoint support for WsProvider (#2234)
|
||||||
1 icodezjb
|
1 Hyungsuk Kang Update fees.ts (#1014)
|
||||||
1 iiiiiiii
|
1 icodezjb Update SessionKeys (#3035)
|
||||||
1 JesseAbram
|
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
||||||
1 Joey
|
1 JesseAbram added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
|
||||||
1 Jordan
|
1 Joey don't throw error at `onSocketClose` (#4363)
|
||||||
1 JQQQ
|
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||||
1 Kian Paimani
|
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
||||||
1 Krzysztof Jelski
|
1 Kian Paimani Update definitions.ts (#2514)
|
||||||
1 Lae
|
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
||||||
1 Lezek123
|
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||||
1 Lovesh Harchandani
|
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
|
||||||
1 Mario Neises
|
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
|
||||||
1 Mario Pino
|
1 Mario Neises fix usage with typescript (#405)
|
||||||
1 Mark Robert Henderson
|
1 Mario Pino Add PolkaStats to API users (#1593)
|
||||||
1 Matej Nemček
|
1 Mark Robert Henderson Update warnings.ts to have the latest URLs (#2720)
|
||||||
1 Mokhtar Naamani
|
1 Matej Nemček added Kodadot to @polkadot/api users section (#2220)
|
||||||
1 Nazar Mokrynskyi
|
1 Mokhtar Naamani Disable websocket outgoing message fragmentation for w3cwebsocket (#2738)
|
||||||
1 Nikhil Ranjan
|
1 Nazar Mokrynskyi Performance tweaks (#4143)
|
||||||
1 Nikolay Volf
|
1 Nikhil Ranjan add vestingPerBlock and vestingEndBlock in DeriveBalancesAll when doing calcBalances (#2563)
|
||||||
1 Paul M Fox
|
1 Nikolay Volf Fix typo (#1730)
|
||||||
1 philipstanislaus
|
1 Oleksandr Mykhailenko Add more complex namespaced contracts & test cases for them (#4472)
|
||||||
1 qiuhao
|
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
||||||
1 Rocco Musolino
|
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||||
1 satellitex
|
1 qiuhao update DeriveCustom type (#2581)
|
||||||
1 satellitex
|
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||||
1 Satyam Agrawal
|
1 Rocco Musolino remove broken link (#2671)
|
||||||
1 Sean Young
|
1 satellitex Add BTreeSet<V> Codec (#1639)
|
||||||
1 Sergei Pepyakin
|
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||||
1 WoeOm
|
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||||
1 Xat_MassacrE
|
1 Sean Young Solang requires u256 and i256 types (#2752)
|
||||||
1 yjh
|
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||||
1 Yuri
|
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||||
1 Zeke Mostov
|
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||||
|
1 yjh fix MetadataVersioned.asV12 (#2983)
|
||||||
|
1 Yuri fixes #3693 Fix uniques return types (#3694)
|
||||||
|
1 Zeke Mostov fix: Allow sudo for polkadot indexed proxy enum (#3286)
|
||||||
+7
-7
@@ -2,7 +2,7 @@
|
|||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||||
"license": "Apache-2",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@3.0.1",
|
"packageManager": "yarn@3.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
@@ -31,15 +31,15 @@
|
|||||||
"test:watch": "polkadot-dev-run-test --watch"
|
"test:watch": "polkadot-dev-run-test --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.16.7",
|
"@babel/core": "^7.17.0",
|
||||||
"@babel/register": "^7.16.7",
|
"@babel/register": "^7.17.0",
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/dev": "^0.65.23",
|
"@polkadot/dev": "^0.65.50",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^27.4.0",
|
"@types/jest": "^27.4.0",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.5.3"
|
"typescript": "^4.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/api-base": "7.3.1",
|
"@polkadot/api-base": "7.7.1",
|
||||||
"@polkadot/rpc-augment": "7.3.1",
|
"@polkadot/rpc-augment": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-augment": "7.3.1",
|
"@polkadot/types-augment": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1"
|
"@polkadot/util": "^8.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
||||||
@@ -703,7 +703,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of eras that staked funds must remain bonded for.
|
* Number of eras that staked funds must remain bonded for.
|
||||||
**/
|
**/
|
||||||
bondingDuration: u32 & AugmentedConst<ApiType>;
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
||||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of nominators rewarded for each validator.
|
* The maximum number of nominators rewarded for each validator.
|
||||||
*
|
*
|
||||||
@@ -858,6 +857,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* An accepted proposal gets these back. A rejected proposal does not.
|
* An accepted proposal gets these back. A rejected proposal does not.
|
||||||
**/
|
**/
|
||||||
proposalBond: Permill & AugmentedConst<ApiType>;
|
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.
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -503,6 +503,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
CallNotAllowed: AugmentedError<ApiType>;
|
CallNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The fallback failed
|
||||||
|
**/
|
||||||
|
FallbackFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* `Self::insert_submission` returned an invalid index.
|
* `Self::insert_submission` returned an invalid index.
|
||||||
**/
|
**/
|
||||||
@@ -696,6 +700,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The requested maximum message size is 0.
|
* The requested maximum message size is 0.
|
||||||
**/
|
**/
|
||||||
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided witness data is wrong.
|
||||||
|
**/
|
||||||
|
WrongWitness: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -874,6 +882,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
paraInclusion: {
|
paraInclusion: {
|
||||||
|
/**
|
||||||
|
* Bitfield consists of zeros only.
|
||||||
|
**/
|
||||||
|
BitfieldAllZeros: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Multiple bitfields submitted by same validator or validators out of order by index.
|
* Multiple bitfields submitted by same validator or validators out of order by index.
|
||||||
**/
|
**/
|
||||||
@@ -953,10 +965,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Scheduled cores out of order.
|
* Scheduled cores out of order.
|
||||||
**/
|
**/
|
||||||
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A different relay parent was provided compared to the on-chain stored one.
|
||||||
|
**/
|
||||||
|
UnexpectedRelayParent: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Candidate submitted but para not scheduled.
|
* Candidate submitted but para not scheduled.
|
||||||
**/
|
**/
|
||||||
UnscheduledCandidate: AugmentedError<ApiType>;
|
UnscheduledCandidate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Backed candidates are out of order (core index) or contain duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Dispute statement sets are out of order or contain duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Validator indices are out of order or contains duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The validation data hash does not match expected.
|
* The validation data hash does not match expected.
|
||||||
**/
|
**/
|
||||||
@@ -983,6 +1011,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Disputed candidate that was concluded invalid.
|
* Disputed candidate that was concluded invalid.
|
||||||
**/
|
**/
|
||||||
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A dispute statement was invalid.
|
||||||
|
**/
|
||||||
|
DisputeInvalid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The ordering of dispute statements was invalid.
|
||||||
|
**/
|
||||||
|
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The data given to the inherent will result in an overweight block.
|
* The data given to the inherent will result in an overweight block.
|
||||||
**/
|
**/
|
||||||
@@ -1022,6 +1058,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Para is not registered in our system.
|
* Para is not registered in our system.
|
||||||
**/
|
**/
|
||||||
NotRegistered: AugmentedError<ApiType>;
|
NotRegistered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
|
||||||
|
* is disabled.
|
||||||
|
**/
|
||||||
|
PvfCheckDisabled: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The given validator already has cast a vote.
|
* The given validator already has cast a vote.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -574,6 +574,21 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A new head has been noted for a Para. `para_id`
|
* A new head has been noted for a Para. `para_id`
|
||||||
**/
|
**/
|
||||||
NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
|
NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The given validation code was rejected by the PVF pre-checking vote.
|
||||||
|
* `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
|
/**
|
||||||
|
* The given validation code was accepted by the PVF pre-checking vote.
|
||||||
|
* `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
|
/**
|
||||||
|
* The given para either initiated or subscribed to a PVF check for the given validation
|
||||||
|
* code. `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckStarted: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -185,8 +185,29 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The balance of an account.
|
* The Balances pallet example of storing the balance of an account.
|
||||||
*
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* You can also store the balance of an account in the `System` pallet.
|
||||||
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = System
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
||||||
|
* `frame_system` data alongside the account data contrary to storing account balances in the
|
||||||
|
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
@@ -596,13 +617,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
/**
|
/**
|
||||||
* Maintains a mapping that can be used to answer the question:
|
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
||||||
* What paras sent a message at the given block number for a given receiver.
|
* the given block number for a given receiver. Invariants:
|
||||||
* Invariants:
|
|
||||||
* - The inner `Vec<ParaId>` is never empty.
|
* - The inner `Vec<ParaId>` is never empty.
|
||||||
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
||||||
* - The outer vector is sorted ascending by block number and cannot store two items with the same
|
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
||||||
* block number.
|
* same block number.
|
||||||
**/
|
**/
|
||||||
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -612,8 +632,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
/**
|
/**
|
||||||
* A set of pending HRMP close channel requests that are going to be closed during the session change.
|
* A set of pending HRMP close channel requests that are going to be closed during the session
|
||||||
* Used for checking if a given channel is registered for closure.
|
* change. Used for checking if a given channel is registered for closure.
|
||||||
*
|
*
|
||||||
* The set is accompanied by a list for iteration.
|
* The set is accompanied by a list for iteration.
|
||||||
*
|
*
|
||||||
@@ -624,25 +644,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Ingress/egress indexes allow to find all the senders and receivers given the opposite
|
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
||||||
* side. I.e.
|
* I.e.
|
||||||
*
|
*
|
||||||
* (a) ingress index allows to find all the senders for a given recipient.
|
* (a) ingress index allows to find all the senders for a given recipient.
|
||||||
* (b) egress index allows to find all the recipients for a given sender.
|
* (b) egress index allows to find all the recipients for a given sender.
|
||||||
*
|
*
|
||||||
* Invariants:
|
* Invariants:
|
||||||
* - for each ingress index entry for `P` each item `I` in the index should present in `HrmpChannels`
|
* - for each ingress index entry for `P` each item `I` in the index should present in
|
||||||
* as `(I, P)`.
|
* `HrmpChannels` as `(I, P)`.
|
||||||
* - for each egress index entry for `P` each item `E` in the index should present in `HrmpChannels`
|
* - for each egress index entry for `P` each item `E` in the index should present in
|
||||||
* as `(P, E)`.
|
* `HrmpChannels` as `(P, E)`.
|
||||||
* - there should be no other dangling channels in `HrmpChannels`.
|
* - there should be no other dangling channels in `HrmpChannels`.
|
||||||
* - the vectors are sorted.
|
* - the vectors are sorted.
|
||||||
**/
|
**/
|
||||||
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
||||||
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has `(X, _)`
|
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
||||||
* as the number of `HrmpOpenChannelRequestCount` for `X`.
|
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
||||||
**/
|
**/
|
||||||
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1223,12 +1243,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Lookup from identity to the block number and index of the task.
|
* Lookup from identity to the block number and index of the task.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* New networks start with last version.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1534,7 +1548,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from nominator stash key to the set of stash keys of all validators to nominate.
|
* The map from nominator stash key to their nomination preferences, namely the validators that
|
||||||
|
* they wish to support.
|
||||||
|
*
|
||||||
|
* Note that the keys of this storage map might become non-decodable in case the
|
||||||
|
* [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
|
||||||
|
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
||||||
|
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
||||||
|
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
||||||
|
* is within the bounds of the newly set `Config::MaxNominations`.
|
||||||
|
*
|
||||||
|
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
||||||
|
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
||||||
|
* number of keys that exist.
|
||||||
|
*
|
||||||
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the balances of a given account.
|
* Set the balances of a given account.
|
||||||
*
|
*
|
||||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
||||||
* also decrease the total issuance of the system (`TotalIssuance`).
|
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
||||||
* If the new free or reserved balance is below the existential deposit,
|
* If the new free or reserved balance is below the existential deposit,
|
||||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
* it will reset the account nonce (`frame_system::AccountNonce`).
|
||||||
*
|
*
|
||||||
@@ -150,7 +150,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Transfer some liquid free balance to another account.
|
* Transfer some liquid free balance to another account.
|
||||||
*
|
*
|
||||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
||||||
* It will decrease the total issuance of the system by the `TransferFee`.
|
|
||||||
* If the sender's account is below the existential deposit as a result
|
* If the sender's account is below the existential deposit as a result
|
||||||
* of the transfer, the account will be reaped.
|
* of the transfer, the account will be reaped.
|
||||||
*
|
*
|
||||||
@@ -1199,6 +1198,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Trigger the governance fallback.
|
||||||
|
*
|
||||||
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
||||||
|
* calling [`Call::set_emergency_election_result`].
|
||||||
|
**/
|
||||||
|
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
||||||
* call to `ElectionProvider::elect`.
|
* call to `ElectionProvider::elect`.
|
||||||
@@ -1349,22 +1355,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* you to trigger the cleanup immediately for a specific parachain.
|
* you to trigger the cleanup immediately for a specific parachain.
|
||||||
*
|
*
|
||||||
* Origin must be Root.
|
* Origin must be Root.
|
||||||
|
*
|
||||||
|
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP close channel requests.
|
* Force process HRMP close channel requests.
|
||||||
*
|
*
|
||||||
* If there are pending HRMP close channel requests, you can use this
|
* If there are pending HRMP close channel requests, you can use this
|
||||||
* function process all of those requests immediately.
|
* function process all of those requests immediately.
|
||||||
|
*
|
||||||
|
* Total number of closing channels must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceProcessHrmpClose: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceProcessHrmpClose: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP open channel requests.
|
* Force process HRMP open channel requests.
|
||||||
*
|
*
|
||||||
* If there are pending HRMP open channel requests, you can use this
|
* If there are pending HRMP open channel requests, you can use this
|
||||||
* function process all of those requests immediately.
|
* function process all of those requests immediately.
|
||||||
|
*
|
||||||
|
* Total number of opening channels must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceProcessHrmpOpen: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceProcessHrmpOpen: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Accept a pending open channel request from the given sender.
|
* Accept a pending open channel request from the given sender.
|
||||||
*
|
*
|
||||||
@@ -1372,13 +1384,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This cancels a pending open channel request. It can be canceled be either of the sender
|
* This cancels a pending open channel request. It can be canceled by either of the sender
|
||||||
* or the recipient for that request. The origin must be either of those.
|
* or the recipient for that request. The origin must be either of those.
|
||||||
*
|
*
|
||||||
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
||||||
* already accepted.
|
* already accepted.
|
||||||
|
*
|
||||||
|
* Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as
|
||||||
|
* witness data.
|
||||||
**/
|
**/
|
||||||
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
|
||||||
/**
|
/**
|
||||||
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
||||||
* recipient in the channel being closed.
|
* recipient in the channel being closed.
|
||||||
@@ -2133,7 +2148,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - be less than the number of possible candidates. Note that all current members and
|
* - be less than the number of possible candidates. Note that all current members and
|
||||||
* runners-up are also automatically candidates for the next round.
|
* runners-up are also automatically candidates for the next round.
|
||||||
*
|
*
|
||||||
* If `value` is more than `who`'s total balance, then the maximum of the two is used.
|
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed.
|
* The dispatch origin of this call must be signed.
|
||||||
*
|
*
|
||||||
@@ -3141,14 +3156,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Can be called by the `T::SlashCancelOrigin`.
|
* Can be called by the `T::SlashCancelOrigin`.
|
||||||
*
|
*
|
||||||
* Parameters: era and indices of the slashes for that era to kill.
|
* Parameters: era and indices of the slashes for that era to kill.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* Complexity: O(U + S)
|
|
||||||
* with U unapplied slashes weighted with U=1000
|
|
||||||
* and S is the number of slash indices to be canceled.
|
|
||||||
* - Read: Unapplied Slashes
|
|
||||||
* - Write: Unapplied Slashes
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -3177,6 +3184,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If the caller is different than the controller being targeted, the following conditions
|
* If the caller is different than the controller being targeted, the following conditions
|
||||||
* must be met:
|
* must be met:
|
||||||
|
*
|
||||||
|
* * `controller` must belong to a nominator who has become non-decodable,
|
||||||
|
*
|
||||||
|
* Or:
|
||||||
|
*
|
||||||
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
||||||
* nominators or validators we must reach before users can start chilling one-another.
|
* nominators or validators we must reach before users can start chilling one-another.
|
||||||
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
||||||
@@ -3218,11 +3230,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The election process starts multiple blocks before the end of the era.
|
* The election process starts multiple blocks before the end of the era.
|
||||||
* If this is called just before a new era is triggered, the election process may not
|
* If this is called just before a new era is triggered, the election process may not
|
||||||
* have enough blocks to get a result.
|
* have enough blocks to get a result.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - Weight: O(1)
|
|
||||||
* - Write: ForceEra
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
@@ -3247,13 +3254,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Force a current staker to become completely unstaked, immediately.
|
* Force a current staker to become completely unstaked, immediately.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* O(S) where S is the number of slashing spans to be removed
|
|
||||||
* Reads: Bonded, Slashing Spans, Account, Locks
|
|
||||||
* Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
|
|
||||||
* Account, Locks Writes Each: SpanSlash * S
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -3289,7 +3289,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - The transaction's complexity is proportional to the size of `targets` (N)
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
||||||
* which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||||
* - Both the reads and writes follow a similar pattern.
|
* - Both the reads and writes follow a similar pattern.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
@@ -3403,11 +3403,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the validators who cannot be slashed (if any).
|
* Set the validators who cannot be slashed (if any).
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - O(V)
|
|
||||||
* - Write: Invulnerables
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -3539,11 +3534,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Make some on-chain remark and emit event.
|
* Make some on-chain remark and emit event.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - `O(b)` where b is the length of the remark.
|
|
||||||
* - 1 event.
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
||||||
@@ -575,7 +575,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of eras that staked funds must remain bonded for.
|
* Number of eras that staked funds must remain bonded for.
|
||||||
**/
|
**/
|
||||||
bondingDuration: u32 & AugmentedConst<ApiType>;
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
||||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of nominators rewarded for each validator.
|
* The maximum number of nominators rewarded for each validator.
|
||||||
*
|
*
|
||||||
@@ -730,6 +729,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* An accepted proposal gets these back. A rejected proposal does not.
|
* An accepted proposal gets these back. A rejected proposal does not.
|
||||||
**/
|
**/
|
||||||
proposalBond: Permill & AugmentedConst<ApiType>;
|
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.
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -503,6 +503,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
CallNotAllowed: AugmentedError<ApiType>;
|
CallNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The fallback failed
|
||||||
|
**/
|
||||||
|
FallbackFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* `Self::insert_submission` returned an invalid index.
|
* `Self::insert_submission` returned an invalid index.
|
||||||
**/
|
**/
|
||||||
@@ -657,6 +661,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The requested maximum message size is 0.
|
* The requested maximum message size is 0.
|
||||||
**/
|
**/
|
||||||
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
OpenHrmpChannelZeroMessageSize: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The provided witness data is wrong.
|
||||||
|
**/
|
||||||
|
WrongWitness: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -835,6 +843,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
paraInclusion: {
|
paraInclusion: {
|
||||||
|
/**
|
||||||
|
* Bitfield consists of zeros only.
|
||||||
|
**/
|
||||||
|
BitfieldAllZeros: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Multiple bitfields submitted by same validator or validators out of order by index.
|
* Multiple bitfields submitted by same validator or validators out of order by index.
|
||||||
**/
|
**/
|
||||||
@@ -914,10 +926,26 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Scheduled cores out of order.
|
* Scheduled cores out of order.
|
||||||
**/
|
**/
|
||||||
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
ScheduledOutOfOrder: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A different relay parent was provided compared to the on-chain stored one.
|
||||||
|
**/
|
||||||
|
UnexpectedRelayParent: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Candidate submitted but para not scheduled.
|
* Candidate submitted but para not scheduled.
|
||||||
**/
|
**/
|
||||||
UnscheduledCandidate: AugmentedError<ApiType>;
|
UnscheduledCandidate: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Backed candidates are out of order (core index) or contain duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateBackedCandidates: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Dispute statement sets are out of order or contain duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateDisputeStatementSet: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Validator indices are out of order or contains duplicates.
|
||||||
|
**/
|
||||||
|
UnsortedOrDuplicateValidatorIndices: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The validation data hash does not match expected.
|
* The validation data hash does not match expected.
|
||||||
**/
|
**/
|
||||||
@@ -944,6 +972,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Disputed candidate that was concluded invalid.
|
* Disputed candidate that was concluded invalid.
|
||||||
**/
|
**/
|
||||||
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
CandidateConcludedInvalid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* A dispute statement was invalid.
|
||||||
|
**/
|
||||||
|
DisputeInvalid: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The ordering of dispute statements was invalid.
|
||||||
|
**/
|
||||||
|
DisputeStatementsUnsortedOrDuplicates: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The data given to the inherent will result in an overweight block.
|
* The data given to the inherent will result in an overweight block.
|
||||||
**/
|
**/
|
||||||
@@ -983,6 +1019,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Para is not registered in our system.
|
* Para is not registered in our system.
|
||||||
**/
|
**/
|
||||||
NotRegistered: AugmentedError<ApiType>;
|
NotRegistered: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
|
||||||
|
* is disabled.
|
||||||
|
**/
|
||||||
|
PvfCheckDisabled: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The given validator already has cast a vote.
|
* The given validator already has cast a vote.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -552,6 +552,21 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A new head has been noted for a Para. `para_id`
|
* A new head has been noted for a Para. `para_id`
|
||||||
**/
|
**/
|
||||||
NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
|
NewHeadNoted: AugmentedEvent<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* The given validation code was rejected by the PVF pre-checking vote.
|
||||||
|
* `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckAccepted: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
|
/**
|
||||||
|
* The given validation code was accepted by the PVF pre-checking vote.
|
||||||
|
* `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckRejected: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
|
/**
|
||||||
|
* The given para either initiated or subscribed to a PVF check for the given validation
|
||||||
|
* code. `code_hash` `para_id`
|
||||||
|
**/
|
||||||
|
PvfCheckStarted: AugmentedEvent<ApiType, [H256, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
|
|||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -185,8 +185,29 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The balance of an account.
|
* The Balances pallet example of storing the balance of an account.
|
||||||
*
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* You can also store the balance of an account in the `System` pallet.
|
||||||
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = System
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
||||||
|
* `frame_system` data alongside the account data contrary to storing account balances in the
|
||||||
|
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
@@ -570,13 +591,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
/**
|
/**
|
||||||
* Maintains a mapping that can be used to answer the question:
|
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
||||||
* What paras sent a message at the given block number for a given receiver.
|
* the given block number for a given receiver. Invariants:
|
||||||
* Invariants:
|
|
||||||
* - The inner `Vec<ParaId>` is never empty.
|
* - The inner `Vec<ParaId>` is never empty.
|
||||||
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
||||||
* - The outer vector is sorted ascending by block number and cannot store two items with the same
|
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
||||||
* block number.
|
* same block number.
|
||||||
**/
|
**/
|
||||||
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpChannelDigests: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Vec<u32>]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -586,8 +606,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
/**
|
/**
|
||||||
* A set of pending HRMP close channel requests that are going to be closed during the session change.
|
* A set of pending HRMP close channel requests that are going to be closed during the session
|
||||||
* Used for checking if a given channel is registered for closure.
|
* change. Used for checking if a given channel is registered for closure.
|
||||||
*
|
*
|
||||||
* The set is accompanied by a list for iteration.
|
* The set is accompanied by a list for iteration.
|
||||||
*
|
*
|
||||||
@@ -598,25 +618,25 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Ingress/egress indexes allow to find all the senders and receivers given the opposite
|
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
||||||
* side. I.e.
|
* I.e.
|
||||||
*
|
*
|
||||||
* (a) ingress index allows to find all the senders for a given recipient.
|
* (a) ingress index allows to find all the senders for a given recipient.
|
||||||
* (b) egress index allows to find all the recipients for a given sender.
|
* (b) egress index allows to find all the recipients for a given sender.
|
||||||
*
|
*
|
||||||
* Invariants:
|
* Invariants:
|
||||||
* - for each ingress index entry for `P` each item `I` in the index should present in `HrmpChannels`
|
* - for each ingress index entry for `P` each item `I` in the index should present in
|
||||||
* as `(I, P)`.
|
* `HrmpChannels` as `(I, P)`.
|
||||||
* - for each egress index entry for `P` each item `E` in the index should present in `HrmpChannels`
|
* - for each egress index entry for `P` each item `E` in the index should present in
|
||||||
* as `(P, E)`.
|
* `HrmpChannels` as `(P, E)`.
|
||||||
* - there should be no other dangling channels in `HrmpChannels`.
|
* - there should be no other dangling channels in `HrmpChannels`.
|
||||||
* - the vectors are sorted.
|
* - the vectors are sorted.
|
||||||
**/
|
**/
|
||||||
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpIngressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
||||||
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has `(X, _)`
|
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
||||||
* as the number of `HrmpOpenChannelRequestCount` for `X`.
|
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
||||||
**/
|
**/
|
||||||
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
hrmpOpenChannelRequestCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1139,12 +1159,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Lookup from identity to the block number and index of the task.
|
* Lookup from identity to the block number and index of the task.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* New networks start with last version.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1379,7 +1393,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from nominator stash key to the set of stash keys of all validators to nominate.
|
* The map from nominator stash key to their nomination preferences, namely the validators that
|
||||||
|
* they wish to support.
|
||||||
|
*
|
||||||
|
* Note that the keys of this storage map might become non-decodable in case the
|
||||||
|
* [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
|
||||||
|
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
||||||
|
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
||||||
|
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
||||||
|
* is within the bounds of the newly set `Config::MaxNominations`.
|
||||||
|
*
|
||||||
|
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
||||||
|
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
||||||
|
* number of keys that exist.
|
||||||
|
*
|
||||||
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the balances of a given account.
|
* Set the balances of a given account.
|
||||||
*
|
*
|
||||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
||||||
* also decrease the total issuance of the system (`TotalIssuance`).
|
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
||||||
* If the new free or reserved balance is below the existential deposit,
|
* If the new free or reserved balance is below the existential deposit,
|
||||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
* it will reset the account nonce (`frame_system::AccountNonce`).
|
||||||
*
|
*
|
||||||
@@ -150,7 +150,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Transfer some liquid free balance to another account.
|
* Transfer some liquid free balance to another account.
|
||||||
*
|
*
|
||||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
||||||
* It will decrease the total issuance of the system by the `TransferFee`.
|
|
||||||
* If the sender's account is below the existential deposit as a result
|
* If the sender's account is below the existential deposit as a result
|
||||||
* of the transfer, the account will be reaped.
|
* of the transfer, the account will be reaped.
|
||||||
*
|
*
|
||||||
@@ -1199,6 +1198,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Trigger the governance fallback.
|
||||||
|
*
|
||||||
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
||||||
|
* calling [`Call::set_emergency_election_result`].
|
||||||
|
**/
|
||||||
|
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
||||||
* call to `ElectionProvider::elect`.
|
* call to `ElectionProvider::elect`.
|
||||||
@@ -1298,22 +1304,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* you to trigger the cleanup immediately for a specific parachain.
|
* you to trigger the cleanup immediately for a specific parachain.
|
||||||
*
|
*
|
||||||
* Origin must be Root.
|
* Origin must be Root.
|
||||||
|
*
|
||||||
|
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP close channel requests.
|
* Force process HRMP close channel requests.
|
||||||
*
|
*
|
||||||
* If there are pending HRMP close channel requests, you can use this
|
* If there are pending HRMP close channel requests, you can use this
|
||||||
* function process all of those requests immediately.
|
* function process all of those requests immediately.
|
||||||
|
*
|
||||||
|
* Total number of closing channels must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceProcessHrmpClose: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceProcessHrmpClose: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP open channel requests.
|
* Force process HRMP open channel requests.
|
||||||
*
|
*
|
||||||
* If there are pending HRMP open channel requests, you can use this
|
* If there are pending HRMP open channel requests, you can use this
|
||||||
* function process all of those requests immediately.
|
* function process all of those requests immediately.
|
||||||
|
*
|
||||||
|
* Total number of opening channels must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceProcessHrmpOpen: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceProcessHrmpOpen: AugmentedSubmittable<(channels: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Accept a pending open channel request from the given sender.
|
* Accept a pending open channel request from the given sender.
|
||||||
*
|
*
|
||||||
@@ -1321,13 +1333,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
hrmpAcceptOpenChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* This cancels a pending open channel request. It can be canceled be either of the sender
|
* This cancels a pending open channel request. It can be canceled by either of the sender
|
||||||
* or the recipient for that request. The origin must be either of those.
|
* or the recipient for that request. The origin must be either of those.
|
||||||
*
|
*
|
||||||
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
* The cancellation happens immediately. It is not possible to cancel the request if it is
|
||||||
* already accepted.
|
* already accepted.
|
||||||
|
*
|
||||||
|
* Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as
|
||||||
|
* witness data.
|
||||||
**/
|
**/
|
||||||
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId]>;
|
hrmpCancelOpenRequest: AugmentedSubmittable<(channelId: PolkadotParachainPrimitivesHrmpChannelId | { sender?: any; recipient?: any } | string | Uint8Array, openRequests: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotParachainPrimitivesHrmpChannelId, u32]>;
|
||||||
/**
|
/**
|
||||||
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
* Initiate unilateral closing of a channel. The origin must be either the sender or the
|
||||||
* recipient in the channel being closed.
|
* recipient in the channel being closed.
|
||||||
@@ -2075,7 +2090,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - be less than the number of possible candidates. Note that all current members and
|
* - be less than the number of possible candidates. Note that all current members and
|
||||||
* runners-up are also automatically candidates for the next round.
|
* runners-up are also automatically candidates for the next round.
|
||||||
*
|
*
|
||||||
* If `value` is more than `who`'s total balance, then the maximum of the two is used.
|
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed.
|
* The dispatch origin of this call must be signed.
|
||||||
*
|
*
|
||||||
@@ -2552,14 +2567,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Can be called by the `T::SlashCancelOrigin`.
|
* Can be called by the `T::SlashCancelOrigin`.
|
||||||
*
|
*
|
||||||
* Parameters: era and indices of the slashes for that era to kill.
|
* Parameters: era and indices of the slashes for that era to kill.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* Complexity: O(U + S)
|
|
||||||
* with U unapplied slashes weighted with U=1000
|
|
||||||
* and S is the number of slash indices to be canceled.
|
|
||||||
* - Read: Unapplied Slashes
|
|
||||||
* - Write: Unapplied Slashes
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -2588,6 +2595,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If the caller is different than the controller being targeted, the following conditions
|
* If the caller is different than the controller being targeted, the following conditions
|
||||||
* must be met:
|
* must be met:
|
||||||
|
*
|
||||||
|
* * `controller` must belong to a nominator who has become non-decodable,
|
||||||
|
*
|
||||||
|
* Or:
|
||||||
|
*
|
||||||
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
||||||
* nominators or validators we must reach before users can start chilling one-another.
|
* nominators or validators we must reach before users can start chilling one-another.
|
||||||
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
||||||
@@ -2629,11 +2641,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The election process starts multiple blocks before the end of the era.
|
* The election process starts multiple blocks before the end of the era.
|
||||||
* If this is called just before a new era is triggered, the election process may not
|
* If this is called just before a new era is triggered, the election process may not
|
||||||
* have enough blocks to get a result.
|
* have enough blocks to get a result.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - Weight: O(1)
|
|
||||||
* - Write: ForceEra
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
@@ -2658,13 +2665,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Force a current staker to become completely unstaked, immediately.
|
* Force a current staker to become completely unstaked, immediately.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* O(S) where S is the number of slashing spans to be removed
|
|
||||||
* Reads: Bonded, Slashing Spans, Account, Locks
|
|
||||||
* Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
|
|
||||||
* Account, Locks Writes Each: SpanSlash * S
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -2700,7 +2700,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - The transaction's complexity is proportional to the size of `targets` (N)
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
||||||
* which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||||
* - Both the reads and writes follow a similar pattern.
|
* - Both the reads and writes follow a similar pattern.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
@@ -2814,11 +2814,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the validators who cannot be slashed (if any).
|
* Set the validators who cannot be slashed (if any).
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - O(V)
|
|
||||||
* - Write: Invulnerables
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -2950,11 +2945,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Make some on-chain remark and emit event.
|
* Make some on-chain remark and emit event.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - `O(b)` where b is the length of the remark.
|
|
||||||
* - 1 event.
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { ApiTypes } from '@polkadot/api-base/types';
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
||||||
import type { U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
||||||
@@ -747,7 +747,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Number of eras that staked funds must remain bonded for.
|
* Number of eras that staked funds must remain bonded for.
|
||||||
**/
|
**/
|
||||||
bondingDuration: u32 & AugmentedConst<ApiType>;
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
||||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The maximum number of nominators rewarded for each validator.
|
* The maximum number of nominators rewarded for each validator.
|
||||||
*
|
*
|
||||||
@@ -902,6 +901,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* An accepted proposal gets these back. A rejected proposal does not.
|
* An accepted proposal gets these back. A rejected proposal does not.
|
||||||
**/
|
**/
|
||||||
proposalBond: Permill & AugmentedConst<ApiType>;
|
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.
|
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -255,6 +255,12 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* No code could be found at the supplied code hash.
|
* No code could be found at the supplied code hash.
|
||||||
**/
|
**/
|
||||||
CodeNotFound: AugmentedError<ApiType>;
|
CodeNotFound: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The contract's code was found to be invalid during validation or instrumentation.
|
||||||
|
* A more detailed error can be found on the node console if debug messages are enabled
|
||||||
|
* or in the debug buffer which is returned to RPC clients.
|
||||||
|
**/
|
||||||
|
CodeRejected: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
|
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
|
||||||
* current schedule.
|
* current schedule.
|
||||||
@@ -545,6 +551,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
CallNotAllowed: AugmentedError<ApiType>;
|
CallNotAllowed: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The fallback failed
|
||||||
|
**/
|
||||||
|
FallbackFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* `Self::insert_submission` returned an invalid index.
|
* `Self::insert_submission` returned an invalid index.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
|
|||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api-base/types/storage' {
|
declare module '@polkadot/api-base/types/storage' {
|
||||||
@@ -193,8 +193,29 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
};
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The balance of an account.
|
* The Balances pallet example of storing the balance of an account.
|
||||||
*
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* You can also store the balance of an account in the `System` pallet.
|
||||||
|
*
|
||||||
|
* # Example
|
||||||
|
*
|
||||||
|
* ```nocompile
|
||||||
|
* impl pallet_balances::Config for Runtime {
|
||||||
|
* type AccountStore = System
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
||||||
|
* `frame_system` data alongside the account data contrary to storing account balances in the
|
||||||
|
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||||
**/
|
**/
|
||||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
@@ -829,12 +850,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Lookup from identity to the block number and index of the task.
|
* Lookup from identity to the block number and index of the task.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* New networks start with last version.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1115,7 +1130,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The map from nominator stash key to the set of stash keys of all validators to nominate.
|
* The map from nominator stash key to their nomination preferences, namely the validators that
|
||||||
|
* they wish to support.
|
||||||
|
*
|
||||||
|
* Note that the keys of this storage map might become non-decodable in case the
|
||||||
|
* [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
|
||||||
|
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
||||||
|
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
||||||
|
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
||||||
|
* is within the bounds of the newly set `Config::MaxNominations`.
|
||||||
|
*
|
||||||
|
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
||||||
|
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
||||||
|
* number of keys that exist.
|
||||||
|
*
|
||||||
|
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
||||||
|
* [`Call::chill_other`] dispatchable by anyone.
|
||||||
**/
|
**/
|
||||||
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1477,6 +1477,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Trigger the governance fallback.
|
||||||
|
*
|
||||||
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
||||||
|
* calling [`Call::set_emergency_election_result`].
|
||||||
|
**/
|
||||||
|
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
||||||
* call to `ElectionProvider::elect`.
|
* call to `ElectionProvider::elect`.
|
||||||
@@ -1624,7 +1631,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - be less than the number of possible candidates. Note that all current members and
|
* - be less than the number of possible candidates. Note that all current members and
|
||||||
* runners-up are also automatically candidates for the next round.
|
* runners-up are also automatically candidates for the next round.
|
||||||
*
|
*
|
||||||
* If `value` is more than `who`'s total balance, then the maximum of the two is used.
|
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be signed.
|
* The dispatch origin of this call must be signed.
|
||||||
*
|
*
|
||||||
@@ -3203,14 +3210,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Can be called by the `T::SlashCancelOrigin`.
|
* Can be called by the `T::SlashCancelOrigin`.
|
||||||
*
|
*
|
||||||
* Parameters: era and indices of the slashes for that era to kill.
|
* Parameters: era and indices of the slashes for that era to kill.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* Complexity: O(U + S)
|
|
||||||
* with U unapplied slashes weighted with U=1000
|
|
||||||
* and S is the number of slash indices to be canceled.
|
|
||||||
* - Read: Unapplied Slashes
|
|
||||||
* - Write: Unapplied Slashes
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -3239,6 +3238,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* If the caller is different than the controller being targeted, the following conditions
|
* If the caller is different than the controller being targeted, the following conditions
|
||||||
* must be met:
|
* must be met:
|
||||||
|
*
|
||||||
|
* * `controller` must belong to a nominator who has become non-decodable,
|
||||||
|
*
|
||||||
|
* Or:
|
||||||
|
*
|
||||||
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
* * A `ChillThreshold` must be set and checked which defines how close to the max
|
||||||
* nominators or validators we must reach before users can start chilling one-another.
|
* nominators or validators we must reach before users can start chilling one-another.
|
||||||
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
* * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
|
||||||
@@ -3280,11 +3284,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The election process starts multiple blocks before the end of the era.
|
* The election process starts multiple blocks before the end of the era.
|
||||||
* If this is called just before a new era is triggered, the election process may not
|
* If this is called just before a new era is triggered, the election process may not
|
||||||
* have enough blocks to get a result.
|
* have enough blocks to get a result.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - Weight: O(1)
|
|
||||||
* - Write: ForceEra
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
@@ -3309,13 +3308,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Force a current staker to become completely unstaked, immediately.
|
* Force a current staker to become completely unstaked, immediately.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* O(S) where S is the number of slashing spans to be removed
|
|
||||||
* Reads: Bonded, Slashing Spans, Account, Locks
|
|
||||||
* Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
|
|
||||||
* Account, Locks Writes Each: SpanSlash * S
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -3351,7 +3343,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - The transaction's complexity is proportional to the size of `targets` (N)
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
||||||
* which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||||
* - Both the reads and writes follow a similar pattern.
|
* - Both the reads and writes follow a similar pattern.
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
@@ -3465,11 +3457,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Set the validators who cannot be slashed (if any).
|
* Set the validators who cannot be slashed (if any).
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - O(V)
|
|
||||||
* - Write: Invulnerables
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -3660,11 +3647,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Make some on-chain remark and emit event.
|
* Make some on-chain remark and emit event.
|
||||||
*
|
|
||||||
* # <weight>
|
|
||||||
* - `O(b)` where b is the length of the remark.
|
|
||||||
* - 1 event.
|
|
||||||
* # </weight>
|
|
||||||
**/
|
**/
|
||||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "..",
|
||||||
|
"outDir": "./build",
|
||||||
|
"rootDir": "./src"
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"**/kusama/*.ts",
|
||||||
|
"**/polkadot/*.ts"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-augment/tsconfig.build.json" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": "..",
|
|
||||||
"outDir": "./build",
|
|
||||||
"rootDir": "./src"
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"**/kusama/*.ts",
|
|
||||||
"**/polkadot/*.ts"
|
|
||||||
],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../api-base" },
|
|
||||||
{ "path": "../rpc-augment" },
|
|
||||||
{ "path": "../types" },
|
|
||||||
{ "path": "../types-codec" },
|
|
||||||
{ "path": "../types-augment" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -10,10 +10,10 @@
|
|||||||
"**/kusama/*.ts"
|
"**/kusama/*.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api-base" },
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-augment" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-augment" }
|
{ "path": "../types-augment/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
"**/polkadot/*.ts"
|
"**/polkadot/*.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api-base" },
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-augment" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-augment" }
|
{ "path": "../types-augment/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/rpc-core": "7.3.1",
|
"@polkadot/rpc-core": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"rxjs": "^7.5.1"
|
"rxjs": "^7.5.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"rootDir": "./src"
|
"rootDir": "./src"
|
||||||
},
|
},
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../types" },
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" }
|
{ "path": "../types/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/api": "7.3.1",
|
"@polkadot/api": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/types-create": "7.3.1",
|
"@polkadot/types-create": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"@polkadot/util-crypto": "^8.3.1",
|
"@polkadot/util-crypto": "^8.3.3",
|
||||||
"rxjs": "^7.5.1"
|
"rxjs": "^7.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/keyring": "^8.3.1"
|
"@polkadot/keyring": "^8.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ interface JSONAbi {
|
|||||||
},
|
},
|
||||||
V2: {
|
V2: {
|
||||||
spec: SpecDef;
|
spec: SpecDef;
|
||||||
|
},
|
||||||
|
V3: {
|
||||||
|
spec: SpecDef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,10 +59,10 @@ describe('Abi', (): void => {
|
|||||||
|
|
||||||
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
it(`initializes from a contract ABI (${abiName})`, (): void => {
|
||||||
try {
|
try {
|
||||||
const messageIds = (abi.V2 || abi.V1 || abi).spec.messages.map(({ label, name }) =>
|
const messageIds = (abi.V3 || abi.V2 || abi.V1 || abi).spec.messages.map(({ label, name }) =>
|
||||||
label || (
|
label || (
|
||||||
Array.isArray(name)
|
Array.isArray(name)
|
||||||
? name[0]
|
? name.join('::')
|
||||||
: name
|
: name
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { TypeRegistry } from '@polkadot/types';
|
|||||||
import { TypeDefInfo } from '@polkadot/types-create';
|
import { TypeDefInfo } from '@polkadot/types-create';
|
||||||
import { assert, assertReturn, compactAddLength, compactStripLength, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
import { assert, assertReturn, compactAddLength, compactStripLength, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
import { v0ToLatest, v1ToLatest } from './toLatest';
|
import { convertVersions, enumVersions } from './toLatest';
|
||||||
|
|
||||||
const l = logger('Abi');
|
const l = logger('Abi');
|
||||||
|
|
||||||
@@ -26,30 +26,25 @@ function findMessage <T extends AbiMessage> (list: T[], messageOrId: T | string
|
|||||||
return assertReturn(message, () => `Attempted to call an invalid contract interface, ${stringify(messageOrId)}`);
|
return assertReturn(message, () => `Attempted to call an invalid contract interface, ${stringify(messageOrId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This is still workable with V0, V1 & V2, but certainly is not a scalable
|
|
||||||
// approach (right at this point don't quite have better ideas that is not as complex
|
|
||||||
// as the conversion tactics in the runtime Metadata)
|
|
||||||
function getLatestMeta (registry: Registry, json: Record<string, unknown>): ContractMetadataLatest {
|
function getLatestMeta (registry: Registry, json: Record<string, unknown>): ContractMetadataLatest {
|
||||||
|
const vx = enumVersions.find((v) => isObject(json[v]));
|
||||||
const metadata = registry.createType('ContractMetadata',
|
const metadata = registry.createType('ContractMetadata',
|
||||||
isObject(json.V2)
|
vx
|
||||||
? { V2: json.V2 }
|
? { [vx]: json[vx] }
|
||||||
: isObject(json.V1)
|
: { V0: json }
|
||||||
? { V1: json.V1 }
|
|
||||||
: { V0: json }
|
|
||||||
) as unknown as ContractMetadata;
|
) as unknown as ContractMetadata;
|
||||||
|
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
||||||
|
|
||||||
return metadata.isV2
|
assert(converter, () => `Unable to convert ABI with version ${metadata.type} to latest`);
|
||||||
? metadata.asV2
|
|
||||||
: metadata.isV1
|
return converter[1](registry, metadata[`as${converter[0]}`]);
|
||||||
? v1ToLatest(registry, metadata.asV1)
|
|
||||||
: v0ToLatest(registry, metadata.asV0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataLatest, ContractProjectInfo] {
|
function parseJson (json: Record<string, unknown>, chainProperties?: ChainProperties): [Record<string, unknown>, Registry, ContractMetadataLatest, ContractProjectInfo] {
|
||||||
const registry = new TypeRegistry();
|
const registry = new TypeRegistry();
|
||||||
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
|
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
|
||||||
const latest = getLatestMeta(registry, json);
|
const latest = getLatestMeta(registry, json);
|
||||||
const lookup = registry.createType('PortableRegistry', { types: latest.types });
|
const lookup = registry.createType('PortableRegistry', { types: latest.types }, true);
|
||||||
|
|
||||||
// attach the lookup to the registry - now the types are known
|
// attach the lookup to the registry - now the types are known
|
||||||
registry.setLookup(lookup);
|
registry.setLookup(lookup);
|
||||||
@@ -90,7 +85,8 @@ export class Abi {
|
|||||||
);
|
);
|
||||||
this.constructors = this.metadata.spec.constructors.map((spec: ContractConstructorSpecLatest, index) =>
|
this.constructors = this.metadata.spec.constructors.map((spec: ContractConstructorSpecLatest, index) =>
|
||||||
this.#createMessage(spec, index, {
|
this.#createMessage(spec, index, {
|
||||||
isConstructor: true
|
isConstructor: true,
|
||||||
|
isPayable: spec.payable.isTrue
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
this.events = this.metadata.spec.events.map((spec: ContractEventSpecLatest, index) =>
|
this.events = this.metadata.spec.events.map((spec: ContractEventSpecLatest, index) =>
|
||||||
@@ -209,6 +205,7 @@ export class Abi {
|
|||||||
identifier,
|
identifier,
|
||||||
index,
|
index,
|
||||||
method: stringCamelCase(identifier),
|
method: stringCamelCase(identifier),
|
||||||
|
path: identifier.split('::').map((s) => stringCamelCase(s)),
|
||||||
selector: spec.selector,
|
selector: spec.selector,
|
||||||
toU8a: (params: unknown[]) =>
|
toU8a: (params: unknown[]) =>
|
||||||
this.#encodeArgs(spec, args, params)
|
this.#encodeArgs(spec, args, params)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { v0ToLatest, v1ToLatest } from '@polkadot/api-contract/Abi/toLatest';
|
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest } from '@polkadot/api-contract/Abi/toLatest';
|
||||||
import { TypeRegistry } from '@polkadot/types';
|
import { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
import abis from '../test/contracts';
|
import abis from '../test/contracts';
|
||||||
@@ -65,9 +65,58 @@ describe('v1ToLatest', (): void => {
|
|||||||
).toEqual(['flip', 'get']);
|
).toEqual(['flip', 'get']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('has the correct messages with namespaced method name', (): void => {
|
||||||
|
const contract = registry.createType('ContractMetadata', { V1: abis.ink_v1_psp22.V1 });
|
||||||
|
const latest = v1ToLatest(registry, contract.asV1);
|
||||||
|
|
||||||
|
expect(
|
||||||
|
latest.spec.messages.map(({ label }) => label.toString())
|
||||||
|
).toEqual([
|
||||||
|
'PSP22Metadata::token_name', 'PSP22Metadata::token_symbol', 'PSP22Metadata::token_decimals', 'PSP22Mintable::mint', 'PSP22::decrease_allowance', 'PSP22::transfer', 'PSP22::approve', 'PSP22::allowance', 'PSP22::transfer_from', 'PSP22::balance_of', 'PSP22::increase_allowance', 'PSP22::total_supply', 'pause', 'unpause'
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
it('has the correct constructor arguments', (): void => {
|
it('has the correct constructor arguments', (): void => {
|
||||||
expect(
|
expect(
|
||||||
latest.spec.constructors[0].args.map(({ label }) => label.toString())
|
latest.spec.constructors[0].args.map(({ label }) => label.toString())
|
||||||
).toEqual(['init_value']);
|
).toEqual(['init_value']);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('v2ToLatest', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
const contract = registry.createType('ContractMetadata', { V2: abis.ink_v2_flipper.V2 });
|
||||||
|
const latest = v2ToLatest(registry, contract.asV2);
|
||||||
|
|
||||||
|
it('has the correct constructor flag', (): void => {
|
||||||
|
expect(
|
||||||
|
latest.spec.constructors[0].payable.isTrue
|
||||||
|
).toEqual(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('v3ToLatest', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
const contract = registry.createType('ContractMetadata', { V3: abis.ink_v3_flipper.V3 });
|
||||||
|
const latest = v3ToLatest(registry, contract.asV3);
|
||||||
|
|
||||||
|
it('has the correct constructor flags', (): void => {
|
||||||
|
expect(
|
||||||
|
latest.spec.constructors[0].payable.isTrue
|
||||||
|
).toEqual(false);
|
||||||
|
expect(
|
||||||
|
latest.spec.constructors[1].payable.isTrue
|
||||||
|
).toEqual(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has the correct messages', (): void => {
|
||||||
|
const contract = registry.createType('ContractMetadata', { V3: abis.ink_v3_traitErc20.V3 });
|
||||||
|
const latest = v3ToLatest(registry, contract.asV3);
|
||||||
|
|
||||||
|
expect(
|
||||||
|
latest.spec.messages.map(({ label }) => label.toString())
|
||||||
|
).toEqual([
|
||||||
|
'BaseErc20::total_supply', 'BaseErc20::balance_of', 'BaseErc20::allowance', 'BaseErc20::transfer', 'BaseErc20::approve', 'BaseErc20::transfer_from'
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,16 +1,38 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
import type { ContractMetadataLatest, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { v0ToV1 } from './toV1';
|
import { v0ToV1 } from './toV1';
|
||||||
import { v1ToV2 } from './toV2';
|
import { v1ToV2 } from './toV2';
|
||||||
|
import { v2ToV3 } from './toV3';
|
||||||
|
|
||||||
export function v1ToLatest (registry: Registry, v1: ContractMetadataV1): ContractMetadataLatest {
|
type Versions = 'V3' | 'V2' | 'V1' | 'V0';
|
||||||
return v1ToV2(registry, v1);
|
|
||||||
|
type Converter = (registry: Registry, vx: any) => ContractMetadataLatest;
|
||||||
|
|
||||||
|
// Helper to convert metadata from one step to the next
|
||||||
|
function createConverter <I, O> (next: (registry: Registry, input: O) => ContractMetadataLatest, step: (registry: Registry, input: I) => O): (registry: Registry, input: I) => ContractMetadataLatest {
|
||||||
|
return (registry: Registry, input: I): ContractMetadataLatest =>
|
||||||
|
next(registry, step(registry, input));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function v0ToLatest (registry: Registry, v0: ContractMetadataV0): ContractMetadataLatest {
|
export function v3ToLatest (registry: Registry, v3: ContractMetadataV3): ContractMetadataLatest {
|
||||||
return v1ToLatest(registry, v0ToV1(registry, v0));
|
return v3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
||||||
|
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
||||||
|
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
||||||
|
|
||||||
|
// The versions where an enum is used, aka V0 is missing
|
||||||
|
// (Order from newest, i.e. we expect more on newest vs oldest)
|
||||||
|
export const enumVersions = ['V3', 'V2', 'V1'];
|
||||||
|
|
||||||
|
export const convertVersions: [Versions, Converter][] = [
|
||||||
|
['V3', v3ToLatest],
|
||||||
|
['V2', v2ToLatest],
|
||||||
|
['V1', v1ToLatest],
|
||||||
|
['V0', v0ToLatest]
|
||||||
|
];
|
||||||
|
|||||||
@@ -7,8 +7,25 @@ import type { Registry } from '@polkadot/types/types';
|
|||||||
import { convertSiV0toV1 } from '@polkadot/types';
|
import { convertSiV0toV1 } from '@polkadot/types';
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
|
interface Named {
|
||||||
|
name: unknown;
|
||||||
|
}
|
||||||
|
|
||||||
|
function v0ToV1Names (all: Named[]): unknown[] {
|
||||||
|
return all.map((e) =>
|
||||||
|
objectSpread({}, e, {
|
||||||
|
name: Array.isArray(e.name)
|
||||||
|
? e.name
|
||||||
|
: [e.name]
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
export function v0ToV1 (registry: Registry, v0: ContractMetadataV0): ContractMetadataV1 {
|
export function v0ToV1 (registry: Registry, v0: ContractMetadataV0): ContractMetadataV1 {
|
||||||
return registry.createType('ContractMetadataV1', objectSpread({}, v0, {
|
return registry.createType('ContractMetadataV1', objectSpread({}, v0, {
|
||||||
|
spec: objectSpread({}, v0.spec, {
|
||||||
|
constructors: v0ToV1Names(v0.spec.constructors),
|
||||||
|
messages: v0ToV1Names(v0.spec.messages)
|
||||||
|
}),
|
||||||
types: convertSiV0toV1(registry, v0.types)
|
types: convertSiV0toV1(registry, v0.types)
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const ARG_TYPES = {
|
|||||||
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
function v1ToV2Label (entry: NamedEntry): { label: Text } {
|
||||||
return objectSpread({}, entry, {
|
return objectSpread({}, entry, {
|
||||||
label: Array.isArray(entry.name)
|
label: Array.isArray(entry.name)
|
||||||
? entry.name[0]
|
? entry.name.join('::')
|
||||||
: entry.name
|
: entry.name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
||||||
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
import { objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
|
export function v2ToV3 (registry: Registry, v2: ContractMetadataV2): ContractMetadataV3 {
|
||||||
|
return registry.createType('ContractMetadataV3', objectSpread({}, v2, {
|
||||||
|
spec: objectSpread({}, v2.spec, {
|
||||||
|
constructors: v2.spec.constructors.map((c) =>
|
||||||
|
// V3 introduces the payable flag on constructors, for <V3, it is always true
|
||||||
|
registry.createType('ContractConstructorSpecV3', objectSpread({}, c, { payable: true }))
|
||||||
|
)
|
||||||
|
})
|
||||||
|
}));
|
||||||
|
}
|
||||||
@@ -47,7 +47,7 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
|
|
||||||
this.abi.constructors.forEach((c): void => {
|
this.abi.constructors.forEach((c): void => {
|
||||||
if (isUndefined(this.#tx[c.method])) {
|
if (isUndefined(this.#tx[c.method])) {
|
||||||
this.#tx[c.method] = createBluePrintTx((o, p) => this.#deploy(c, o, p));
|
this.#tx[c.method] = createBluePrintTx(c, (o, p) => this.#deploy(c, o, p));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
|
|
||||||
this.abi.constructors.forEach((c): void => {
|
this.abi.constructors.forEach((c): void => {
|
||||||
if (isUndefined(this.#tx[c.method])) {
|
if (isUndefined(this.#tx[c.method])) {
|
||||||
this.#tx[c.method] = createBluePrintTx((o, p) => this.#instantiate(c, o, p));
|
this.#tx[c.method] = createBluePrintTx(c, (o, p) => this.#instantiate(c, o, p));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import { assert, BN, BN_HUNDRED, BN_ONE, BN_ZERO, bnToBn, isFunction, isUndefine
|
|||||||
import { Abi } from '../Abi';
|
import { Abi } from '../Abi';
|
||||||
import { applyOnEvent, extractOptions, isOptions } from '../util';
|
import { applyOnEvent, extractOptions, isOptions } from '../util';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base';
|
||||||
|
import { withMeta } from './util';
|
||||||
|
|
||||||
export interface ContractConstructor<ApiType extends ApiTypes> {
|
export interface ContractConstructor<ApiType extends ApiTypes> {
|
||||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
||||||
@@ -29,18 +30,20 @@ const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is
|
|||||||
|
|
||||||
const l = logger('Contract');
|
const l = logger('Contract');
|
||||||
|
|
||||||
function createQuery <ApiType extends ApiTypes> (fn: (origin: string | AccountId | Uint8Array, options: ContractOptions, params: unknown[]) => ContractCallResult<ApiType, ContractCallOutcome>): ContractQuery<ApiType> {
|
function createQuery <ApiType extends ApiTypes> (meta: AbiMessage, fn: (origin: string | AccountId | Uint8Array, options: ContractOptions, params: unknown[]) => ContractCallResult<ApiType, ContractCallOutcome>): ContractQuery<ApiType> {
|
||||||
return (origin: string | AccountId | Uint8Array, options: bigint | string | number | BN | ContractOptions, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome> =>
|
return withMeta(meta, (origin: string | AccountId | Uint8Array, options: bigint | string | number | BN | ContractOptions, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome> =>
|
||||||
isOptions(options)
|
isOptions(options)
|
||||||
? fn(origin, options, params)
|
? fn(origin, options, params)
|
||||||
: fn(origin, ...extractOptions<ContractOptions>(options, params));
|
: fn(origin, ...extractOptions<ContractOptions>(options, params))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createTx <ApiType extends ApiTypes> (fn: (options: ContractOptions, params: unknown[]) => SubmittableExtrinsic<ApiType>): ContractTx<ApiType> {
|
function createTx <ApiType extends ApiTypes> (meta: AbiMessage, fn: (options: ContractOptions, params: unknown[]) => SubmittableExtrinsic<ApiType>): ContractTx<ApiType> {
|
||||||
return (options: bigint | string | number | BN | ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType> =>
|
return withMeta(meta, (options: bigint | string | number | BN | ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType> =>
|
||||||
isOptions(options)
|
isOptions(options)
|
||||||
? fn(options, params)
|
? fn(options, params)
|
||||||
: fn(...extractOptions<ContractOptions>(options, params));
|
: fn(...extractOptions<ContractOptions>(options, params))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ContractSubmittableResult extends SubmittableResult {
|
export class ContractSubmittableResult extends SubmittableResult {
|
||||||
@@ -70,11 +73,11 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
|
|
||||||
this.abi.messages.forEach((m): void => {
|
this.abi.messages.forEach((m): void => {
|
||||||
if (isUndefined(this.#tx[m.method])) {
|
if (isUndefined(this.#tx[m.method])) {
|
||||||
this.#tx[m.method] = createTx((o, p) => this.#exec(m, o, p));
|
this.#tx[m.method] = createTx(m, (o, p) => this.#exec(m, o, p));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUndefined(this.#query[m.method])) {
|
if (isUndefined(this.#query[m.method])) {
|
||||||
this.#query[m.method] = createQuery((f, o, p) => this.#read(m, o, p).send(f));
|
this.#query[m.method] = createQuery(m, (f, o, p) => this.#read(m, o, p).send(f));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,23 +8,31 @@ import type { AccountId } from '@polkadot/types/interfaces';
|
|||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types';
|
import type { AbiMessage, BlueprintOptions, ContractCallOutcome, ContractOptions } from '../types';
|
||||||
|
|
||||||
export interface BlueprintDeploy<ApiType extends ApiTypes> {
|
export interface MessageMeta {
|
||||||
|
readonly meta: AbiMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BlueprintDeploy<ApiType extends ApiTypes> extends MessageMeta {
|
||||||
(options: BlueprintOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
(options: BlueprintOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
||||||
|
// @deprecated Use options form (to be dropped in a major update)
|
||||||
(value: bigint | string | number | BN, gasLimit: bigint | string | number | BN, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
(value: bigint | string | number | BN, gasLimit: bigint | string | number | BN, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ContractQuery<ApiType extends ApiTypes> {
|
export interface ContractQuery<ApiType extends ApiTypes> extends MessageMeta {
|
||||||
(origin: AccountId | string | Uint8Array, options: ContractOptions, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome>;
|
(origin: AccountId | string | Uint8Array, options: ContractOptions, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome>;
|
||||||
|
// @deprecated Use options form (to be dropped in a major update)
|
||||||
(origin: AccountId | string | Uint8Array, value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome>;
|
(origin: AccountId | string | Uint8Array, value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): ContractCallResult<ApiType, ContractCallOutcome>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ContractTx<ApiType extends ApiTypes> {
|
export interface ContractTx<ApiType extends ApiTypes> extends MessageMeta {
|
||||||
(options: ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
(options: ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
||||||
|
// @deprecated Use options form (to be dropped in a major update)
|
||||||
(value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
(value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ContractGeneric<O, T> {
|
export interface ContractGeneric<O, T> {
|
||||||
(messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]): T;
|
(messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]): T;
|
||||||
|
// @deprecated Use options form (to be dropped in a major update)
|
||||||
(messageOrId: AbiMessage | string | number, value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): T;
|
(messageOrId: AbiMessage | string | number, value: bigint | BN | string | number, gasLimit: bigint | BN | string | number, ...params: unknown[]): T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { SubmittableResult } from '@polkadot/api';
|
|||||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||||
import type { ApiTypes } from '@polkadot/api/types';
|
import type { ApiTypes } from '@polkadot/api/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { AbiConstructor, BlueprintOptions } from '../types';
|
import type { AbiConstructor, AbiMessage, BlueprintOptions } from '../types';
|
||||||
import type { BlueprintDeploy, ContractGeneric } from './types';
|
import type { BlueprintDeploy, ContractGeneric } from './types';
|
||||||
|
|
||||||
import { Bytes } from '@polkadot/types';
|
import { Bytes } from '@polkadot/types';
|
||||||
@@ -16,11 +16,18 @@ import { extractOptions, isOptions } from '../util';
|
|||||||
|
|
||||||
export const EMPTY_SALT = new Uint8Array();
|
export const EMPTY_SALT = new Uint8Array();
|
||||||
|
|
||||||
export function createBluePrintTx <ApiType extends ApiTypes, R extends SubmittableResult> (fn: (options: BlueprintOptions, params: unknown[]) => SubmittableExtrinsic<ApiType, R>): BlueprintDeploy<ApiType> {
|
export function withMeta <T extends { meta: AbiMessage }> (meta: AbiMessage, creator: Omit<T, 'meta'>): T {
|
||||||
return (options: bigint | string | number | BN | BlueprintOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType, R> =>
|
(creator as T).meta = meta;
|
||||||
|
|
||||||
|
return creator as T;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function createBluePrintTx <ApiType extends ApiTypes, R extends SubmittableResult> (meta: AbiMessage, fn: (options: BlueprintOptions, params: unknown[]) => SubmittableExtrinsic<ApiType, R>): BlueprintDeploy<ApiType> {
|
||||||
|
return withMeta(meta, (options: bigint | string | number | BN | BlueprintOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType, R> =>
|
||||||
isOptions(options)
|
isOptions(options)
|
||||||
? fn(options, params)
|
? fn(options, params)
|
||||||
: fn(...extractOptions<BlueprintOptions>(options, params));
|
: fn(...extractOptions<BlueprintOptions>(options, params))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createBluePrintWithId <T> (fn: (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: unknown[]) => T): ContractGeneric<BlueprintOptions, T> {
|
export function createBluePrintWithId <T> (fn: (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: unknown[]) => T): ContractGeneric<BlueprintOptions, T> {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -0,0 +1,529 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"lookupName": "InkStorageCollectionsStashHeader",
|
||||||
|
"type": "{\"lastVacant\":\"u32\",\"len\":\"u32\",\"lenEntries\":\"u32\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::Header",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "lastVacant",
|
||||||
|
"typeName": "Index"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "len",
|
||||||
|
"typeName": "u32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "lenEntries",
|
||||||
|
"typeName": "u32"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"AccountId\"}}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::Entry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageCollectionsStashVacantEntry",
|
||||||
|
"type": "Lookup7",
|
||||||
|
"typeName": "VacantEntry",
|
||||||
|
"index": 0,
|
||||||
|
"name": "Vacant"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId",
|
||||||
|
"typeName": "T",
|
||||||
|
"index": 1,
|
||||||
|
"name": "Occupied"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageCollectionsStashVacantEntry",
|
||||||
|
"type": "{\"next\":\"u32\",\"prev\":\"u32\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::VacantEntry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "next",
|
||||||
|
"typeName": "Index"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "prev",
|
||||||
|
"typeName": "Index"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "{\"value\":\"u128\",\"keyIndex\":\"u32\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::hashmap::ValueEntry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "value",
|
||||||
|
"typeName": "V"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "keyIndex",
|
||||||
|
"typeName": "KeyIndex"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"(AccountId,AccountId)\"}}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::Entry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageCollectionsStashVacantEntry",
|
||||||
|
"type": "Lookup7",
|
||||||
|
"typeName": "VacantEntry",
|
||||||
|
"index": 0,
|
||||||
|
"name": "Vacant"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"typeName": "T",
|
||||||
|
"index": 1,
|
||||||
|
"name": "Occupied"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Text",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 12,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 13,
|
||||||
|
"type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"u32\"}}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::Entry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageCollectionsStashVacantEntry",
|
||||||
|
"type": "Lookup7",
|
||||||
|
"typeName": "VacantEntry",
|
||||||
|
"index": 0,
|
||||||
|
"name": "Vacant"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": "T",
|
||||||
|
"index": 1,
|
||||||
|
"name": "Occupied"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 14,
|
||||||
|
"type": "{\"value\":\"u32\",\"keyIndex\":\"u32\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::hashmap::ValueEntry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "value",
|
||||||
|
"typeName": "V"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "keyIndex",
|
||||||
|
"typeName": "KeyIndex"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 15,
|
||||||
|
"type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"(u32,AccountId)\"}}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::stash::Entry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"lookupName": "InkStorageCollectionsStashVacantEntry",
|
||||||
|
"type": "Lookup7",
|
||||||
|
"typeName": "VacantEntry",
|
||||||
|
"index": 0,
|
||||||
|
"name": "Vacant"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "(u32,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"typeName": "T",
|
||||||
|
"index": 1,
|
||||||
|
"name": "Occupied"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 16,
|
||||||
|
"type": "(u32,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 17,
|
||||||
|
"type": "{\"value\":\"Null\",\"keyIndex\":\"u32\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::collections::hashmap::ValueEntry",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "value",
|
||||||
|
"typeName": "V"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "u32",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"name": "keyIndex",
|
||||||
|
"typeName": "KeyIndex"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 19,
|
||||||
|
"type": "Option<Text>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Text",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 20,
|
||||||
|
"type": "Result<Null, ContractsErrorsPsp22Psp22Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 18,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"lookupName": "ContractsErrorsPsp22Psp22Error",
|
||||||
|
"type": "Lookup21"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 21,
|
||||||
|
"lookupName": "ContractsErrorsPsp22Psp22Error",
|
||||||
|
"type": "{\"_enum\":{\"Custom\":\"Text\",\"InsufficientBalance\":\"Null\",\"InsufficientAllowance\":\"Null\",\"ZeroRecipientAddress\":\"Null\",\"ZeroSenderAddress\":\"Null\",\"SafeTransferCheckFailed\":\"Text\"}}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "contracts::traits::errors::psp22::PSP22Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Text",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": "Text",
|
||||||
|
"index": 0,
|
||||||
|
"name": "Custom"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 2,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 3,
|
||||||
|
"name": "ZeroRecipientAddress"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 4,
|
||||||
|
"name": "ZeroSenderAddress"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Text",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"typeName": "Text",
|
||||||
|
"index": 5,
|
||||||
|
"name": "SafeTransferCheckFailed"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 22,
|
||||||
|
"type": "Bytes",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 23,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "bool",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 0,
|
||||||
|
"type": "u128",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 1,
|
||||||
|
"type": "{\"offsetKey\":\"InkPrimitivesKey\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"lookupName": "InkPrimitivesKey",
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
"typeName": "Key",
|
||||||
|
"name": "offsetKey"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 3,
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"lookupName": "InkPrimitivesKey",
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
"typeName": "[u8;32]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Struct",
|
||||||
|
"lookupIndex": 6,
|
||||||
|
"type": "{\"offsetKey\":\"InkPrimitivesKey\"}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_storage::lazy::mapping::Mapping",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "VecFixed",
|
||||||
|
"lookupIndex": 5,
|
||||||
|
"lookupName": "InkPrimitivesKey",
|
||||||
|
"type": "[u8;32]",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"length": 32,
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 4,
|
||||||
|
"type": "u8",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
"typeName": "Key",
|
||||||
|
"name": "offsetKey"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Tuple",
|
||||||
|
"lookupIndex": 7,
|
||||||
|
"type": "(AccountId,AccountId)",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Result",
|
||||||
|
"lookupIndex": 8,
|
||||||
|
"type": "Result<Null, TraitErc20Erc20Error>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Result",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"name": "Ok",
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Error",
|
||||||
|
"docs": [],
|
||||||
|
"info": "Si",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "TraitErc20Erc20Error",
|
||||||
|
"type": "Lookup10"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"lookupIndex": 9,
|
||||||
|
"type": "Null",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Enum",
|
||||||
|
"lookupIndex": 10,
|
||||||
|
"lookupName": "TraitErc20Erc20Error",
|
||||||
|
"type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "trait_erc20::erc20::Error",
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 0,
|
||||||
|
"name": "InsufficientBalance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Null",
|
||||||
|
"type": "Null",
|
||||||
|
"index": 1,
|
||||||
|
"name": "InsufficientAllowance"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"info": "Option",
|
||||||
|
"lookupIndex": 11,
|
||||||
|
"type": "Option<AccountId>",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "Option",
|
||||||
|
"sub": {
|
||||||
|
"info": "Plain",
|
||||||
|
"lookupIndex": 2,
|
||||||
|
"type": "AccountId",
|
||||||
|
"docs": [],
|
||||||
|
"namespace": "ink_env::types::AccountId",
|
||||||
|
"lookupNameRoot": "InkEnvAccountId"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -5,5 +5,6 @@ import { createVersionedExport } from '../util';
|
|||||||
import * as v0 from './v0';
|
import * as v0 from './v0';
|
||||||
import * as v1 from './v1';
|
import * as v1 from './v1';
|
||||||
import * as v2 from './v2';
|
import * as v2 from './v2';
|
||||||
|
import * as v3 from './v3';
|
||||||
|
|
||||||
export default createVersionedExport({ v0, v1, v2 });
|
export default createVersionedExport({ v0, v1, v2, v3 });
|
||||||
|
|||||||
@@ -2,3 +2,5 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as flipper } from './flipper.contract.json';
|
export { default as flipper } from './flipper.contract.json';
|
||||||
|
// A complex contract example with traits.
|
||||||
|
export { default as psp22 } from './psp22_minter_pauser.contract.json';
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,105 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"hash": "0xbb381c2fc980121b17c7b2bf2756d5964a12151cb846e0a9eff9cc337806456d",
|
||||||
|
"language": "ink! 3.0.0-rc7",
|
||||||
|
"compiler": "rustc 1.60.0-nightly",
|
||||||
|
"wasm": "0x0061736d0100000001280860027f7f0060000060037f7f7f0060017f006000017f60017f017f60037f7f7f017f60017f017e02880106057365616c30107365616c5f7365745f73746f726167650002057365616c30107365616c5f6765745f73746f726167650006057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e0002057365616c30167365616c5f76616c75655f7472616e73666572726564000003656e76066d656d6f727902010210030a090400050103070001000608017f01418080040b071102066465706c6f7900080463616c6c000c0ac40b096102027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a1004200028021c41114f0440000b2001290300210220002903082103200041206a2400410541042002200384501b0bc20101027f230041306b220224004101210302402000027f20014101714504404104100541ff01714105470d011a0b200241106a4200370300200241186a4200370300200241206a42003703002002420037030820024201370300200241808001360228200241086a41808004200241286a100120022802282201418180014f720d012002200136022c200241808004360228200241286a100741ff017122014102460d014100210320014100470b3a0001200020033a0000200241306a24000f0b000b4201027f230041106b22012400200141086a2000100d20012d0009210020012d00082102200141106a240041024101410220004101461b410020001b20024101711b0bd30202057f027e230041306b2200240020004180800136020c200041808004360208200041086a1009200020002903083703100240200041106a100a22054201832206a70d00200542807e8342002006501b22064280feffffff1f832205422088a721012005421888a721022005421088a7210302402006a741087641ff0171220441ed014704402004419b0147200341ff017141ae014772200241ff0171419d0147200141de004772720d02200041106a100741ff017122014102460d02100541ff01714105470d02200041286a4200370300200041206a4200370300200041186a4200370300200042003703102001410171200041106a100b0c010b200341ff017141cb0047200241ff0171419d0147722001411b47720d01200041286a4200370300200041206a4200370300200041186a4200370300200042003703104100200041106a100b0b200041306a24000f0b000b4101027f230041106b2201240020012000280204220236020c20002802002001410c6a10022002200128020c2202490440000b20002002360204200141106a24000b850102027f017e230041106b220124002001420437030841042102027f02400240034020012000100d20012d00004101710d01200141086a20026a20012d00013a0000200241016a22024108470d000b20012903082203a741044f0d01000b4101210241000c010b410021022003422088a70b2100200141106a24002002ad2000ad420886840b6b01017f230041306b220224004180800420003a0000200241286a200141186a290000370300200241206a200141106a290000370300200241186a200141086a2900003703002002420137030820022001290000370310200241106a4180800441011000200241306a24000b910302057f027e230041406a22002400024002400240100541ff01714105470d0020004180800136021c200041808004360218200041186a100920002000290318370320027f0240200041206a100a22054201832206a70d00200542807e8342002006501b22064280feffffff1f832205422088a721022005421888a721012005421088a721032006a741087641ff01712204412f470440200441e30047200341ff0171413a4772200141ff017141a50147200241d1004772720d014101210141000c020b200341ff017141860147200141ff017141db0047720d00410021014100200241d901460d011a0b4101210141010b0d00024020010440200041086a418002100620002d0009210120002d00084101710d01200041386a4200370300200041306a4200370300200041286a4200370300200042003703202001417f73410171200041206a100b0c040b200041106a4100100620002d0011210120002d0010410171450d020b20014105460d020b000b4180800420014101713a000041004180800441011003000b200041406b24000b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b"
|
||||||
|
},
|
||||||
|
"contract": {
|
||||||
|
"name": "flipper",
|
||||||
|
"version": "3.0.0-rc7",
|
||||||
|
"authors": [
|
||||||
|
"Parity Technologies <admin@parity.io>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"V3": {
|
||||||
|
"spec": {
|
||||||
|
"constructors": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
{
|
||||||
|
"label": "init_value",
|
||||||
|
"type": {
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [
|
||||||
|
"Creates a new flipper smart contract initialized with the given value."
|
||||||
|
],
|
||||||
|
"label": "new",
|
||||||
|
"payable": false,
|
||||||
|
"selector": "0x9bae9d5e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
"Creates a new flipper smart contract initialized to `false`."
|
||||||
|
],
|
||||||
|
"label": "default",
|
||||||
|
"payable": true,
|
||||||
|
"selector": "0xed4b9d1b"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"docs": [],
|
||||||
|
"events": [],
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
" Flips the current value of the Flipper's boolean."
|
||||||
|
],
|
||||||
|
"label": "flip",
|
||||||
|
"mutates": true,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": null,
|
||||||
|
"selector": "0x633aa551"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"docs": [
|
||||||
|
" Returns the current value of the Flipper's boolean."
|
||||||
|
],
|
||||||
|
"label": "get",
|
||||||
|
"mutates": false,
|
||||||
|
"payable": false,
|
||||||
|
"returnType": {
|
||||||
|
"displayName": [
|
||||||
|
"bool"
|
||||||
|
],
|
||||||
|
"type": 0
|
||||||
|
},
|
||||||
|
"selector": "0x2f865bd9"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"struct": {
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"layout": {
|
||||||
|
"cell": {
|
||||||
|
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"ty": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "value"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"id": 0,
|
||||||
|
"type": {
|
||||||
|
"def": {
|
||||||
|
"primitive": "bool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export { default as flipper } from './flipper.contract.json';
|
||||||
|
// A complex contract example with traits.
|
||||||
|
export { default as traitErc20 } from './trait_erc20.contract.json';
|
||||||
File diff suppressed because one or more lines are too long
@@ -40,6 +40,7 @@ export interface AbiMessage {
|
|||||||
isMutating?: boolean;
|
isMutating?: boolean;
|
||||||
isPayable?: boolean;
|
isPayable?: boolean;
|
||||||
method: string;
|
method: string;
|
||||||
|
path: string[];
|
||||||
returnType?: TypeDef | null;
|
returnType?: TypeDef | null;
|
||||||
selector: ContractSelector;
|
selector: ContractSelector;
|
||||||
toU8a: (params: unknown[]) => Uint8Array;
|
toU8a: (params: unknown[]) => Uint8Array;
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
"mock.ts"
|
"mock.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api" },
|
{ "path": "../api/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-create" }
|
{ "path": "../types-create/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -17,9 +17,9 @@
|
|||||||
"mock.ts"
|
"mock.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api" },
|
{ "path": "../api/tsconfig.build.json" },
|
||||||
{ "path": "../api-augment" },
|
{ "path": "../api-augment/tsconfig.build.json" },
|
||||||
{ "path": "../api-contract" },
|
{ "path": "../api-contract/tsconfig.build.json" },
|
||||||
{ "path": "../types" }
|
{ "path": "../types/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/api": "7.3.1",
|
"@polkadot/api": "7.7.1",
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/api-base": "7.3.1",
|
"@polkadot/api-base": "7.7.1",
|
||||||
"@polkadot/rpc-core": "7.3.1",
|
"@polkadot/rpc-core": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"@polkadot/util-crypto": "^8.3.1",
|
"@polkadot/util-crypto": "^8.3.3",
|
||||||
"rxjs": "^7.5.1"
|
"rxjs": "^7.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "7.3.1",
|
"@polkadot/api": "7.7.1",
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/rpc-augment": "7.3.1",
|
"@polkadot/rpc-augment": "7.7.1",
|
||||||
"@polkadot/rpc-provider": "7.3.1",
|
"@polkadot/rpc-provider": "7.7.1",
|
||||||
"@polkadot/types-support": "7.3.1"
|
"@polkadot/types-support": "7.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,29 +35,31 @@ export function bounties (instanceId: string, api: DeriveApi): () => Observable<
|
|||||||
const bountyBase = api.query.bounties || api.query.treasury;
|
const bountyBase = api.query.bounties || api.query.treasury;
|
||||||
|
|
||||||
return memo(instanceId, (): Observable<DeriveBounties> =>
|
return memo(instanceId, (): Observable<DeriveBounties> =>
|
||||||
combineLatest([
|
bountyBase.bounties
|
||||||
bountyBase.bountyCount(),
|
? combineLatest([
|
||||||
api.query.council
|
bountyBase.bountyCount(),
|
||||||
? api.query.council.proposalCount()
|
api.query.council
|
||||||
: of(0)
|
? api.query.council.proposalCount()
|
||||||
]).pipe(
|
: of(0)
|
||||||
switchMap(() => combineLatest([
|
]).pipe(
|
||||||
bountyBase.bounties.keys(),
|
switchMap(() => combineLatest([
|
||||||
api.derive.council
|
bountyBase.bounties.keys(),
|
||||||
? api.derive.council.proposals()
|
api.derive.council
|
||||||
: of([])
|
? api.derive.council.proposals()
|
||||||
])),
|
: of([])
|
||||||
switchMap(([keys, proposals]): Observable<Result> => {
|
])),
|
||||||
const ids = keys.map(({ args: [id] }) => id);
|
switchMap(([keys, proposals]): Observable<Result> => {
|
||||||
|
const ids = keys.map(({ args: [id] }) => id);
|
||||||
|
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
bountyBase.bounties.multi(ids),
|
bountyBase.bounties.multi(ids),
|
||||||
bountyBase.bountyDescriptions.multi(ids),
|
bountyBase.bountyDescriptions.multi(ids),
|
||||||
of(ids),
|
of(ids),
|
||||||
of(filterBountiesProposals(api, proposals))
|
of(filterBountiesProposals(api, proposals))
|
||||||
]);
|
]);
|
||||||
}),
|
}),
|
||||||
map(parseResult)
|
map(parseResult)
|
||||||
)
|
)
|
||||||
|
: of(parseResult([[], [], [], []]))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
|
||||||
import type { HeaderExtended } from '../type/types';
|
import type { HeaderExtended } from '../type/types';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types';
|
||||||
|
|
||||||
@@ -39,7 +38,7 @@ export function getHeader (instanceId: string, api: DeriveApi): (blockHash: Uint
|
|||||||
)
|
)
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([header, validators]) =>
|
map(([header, validators]) =>
|
||||||
createHeaderExtended(header.registry as Registry, header, validators)
|
createHeaderExtended(header.registry, header, validators)
|
||||||
),
|
),
|
||||||
catchError((): Observable<undefined> =>
|
catchError((): Observable<undefined> =>
|
||||||
// where rpc.chain.getHeader throws, we will land here - it can happen that
|
// where rpc.chain.getHeader throws, we will land here - it can happen that
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
|
||||||
import type { SignedBlockExtended } from '../type/types';
|
import type { SignedBlockExtended } from '../type/types';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types';
|
||||||
|
|
||||||
@@ -33,7 +32,7 @@ export function subscribeNewBlocks (instanceId: string, api: DeriveApi): () => O
|
|||||||
]);
|
]);
|
||||||
}),
|
}),
|
||||||
map(([header, block, events]) =>
|
map(([header, block, events]) =>
|
||||||
createSignedBlockExtended(block.registry as Registry, block, events, header.validators)
|
createSignedBlockExtended(block.registry, block, events, header.validators)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { Registry } from '@polkadot/types/types';
|
|
||||||
import type { HeaderExtended } from '../type/types';
|
import type { HeaderExtended } from '../type/types';
|
||||||
import type { DeriveApi } from '../types';
|
import type { DeriveApi } from '../types';
|
||||||
|
|
||||||
@@ -35,7 +34,7 @@ export function subscribeNewHeads (instanceId: string, api: DeriveApi): () => Ob
|
|||||||
map(([header, validators]): HeaderExtended => {
|
map(([header, validators]): HeaderExtended => {
|
||||||
header.createdAtHash = header.hash;
|
header.createdAtHash = header.hash;
|
||||||
|
|
||||||
return createHeaderExtended(header.registry as Registry, header, validators);
|
return createHeaderExtended(header.registry, header, validators);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "..",
|
||||||
|
"outDir": "./build",
|
||||||
|
"rootDir": "./src"
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"**/test/*",
|
||||||
|
"**/checkTypes.manual.ts",
|
||||||
|
"**/*.spec.ts"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
|
{ "path": "../api-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-codec/tsconfig.build.json" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": "..",
|
|
||||||
"outDir": "./build",
|
|
||||||
"rootDir": "./src"
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"**/test/*",
|
|
||||||
"**/checkTypes.manual.ts",
|
|
||||||
"**/*.spec.ts"
|
|
||||||
],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../api-base" },
|
|
||||||
{ "path": "../api-augment" },
|
|
||||||
{ "path": "../rpc-core" },
|
|
||||||
{ "path": "../types" },
|
|
||||||
{ "path": "../types-codec" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -13,15 +13,15 @@
|
|||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api" },
|
{ "path": "../api/tsconfig.build.json" },
|
||||||
{ "path": "../api-augment" },
|
{ "path": "../api-augment/tsconfig.build.json" },
|
||||||
{ "path": "../api-base" },
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
{ "path": "../api-derive" },
|
{ "path": "../api-derive/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-augment" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-provider" },
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-augment" },
|
{ "path": "../types-augment/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" },
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
{ "path": "../types-support" }
|
{ "path": "../types-support/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-19
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/api-base": "7.3.1",
|
"@polkadot/api-base": "7.7.1",
|
||||||
"@polkadot/api-derive": "7.3.1",
|
"@polkadot/api-derive": "7.7.1",
|
||||||
"@polkadot/keyring": "^8.3.1",
|
"@polkadot/keyring": "^8.3.3",
|
||||||
"@polkadot/rpc-augment": "7.3.1",
|
"@polkadot/rpc-augment": "7.7.1",
|
||||||
"@polkadot/rpc-core": "7.3.1",
|
"@polkadot/rpc-core": "7.7.1",
|
||||||
"@polkadot/rpc-provider": "7.3.1",
|
"@polkadot/rpc-provider": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-augment": "7.3.1",
|
"@polkadot/types-augment": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/types-create": "7.3.1",
|
"@polkadot/types-create": "7.7.1",
|
||||||
"@polkadot/types-known": "7.3.1",
|
"@polkadot/types-known": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"@polkadot/util-crypto": "^8.3.1",
|
"@polkadot/util-crypto": "^8.3.3",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"rxjs": "^7.5.1"
|
"rxjs": "^7.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/types-support": "7.3.1"
|
"@polkadot/types-support": "7.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
} as ApiDecoration<ApiType>;
|
} as ApiDecoration<ApiType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!registry.decoratedMeta) {
|
if (fromEmpty || !registry.decoratedMeta) {
|
||||||
registry.decoratedMeta = expandMetadata(registry.registry, registry.metadata);
|
registry.decoratedMeta = expandMetadata(registry.registry, registry.metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,6 +275,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
augmentObject(null, decoratedMeta.consts, this._rx.consts, fromEmpty);
|
augmentObject(null, decoratedMeta.consts, this._rx.consts, fromEmpty);
|
||||||
|
|
||||||
|
this.emit('decorated');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -472,7 +474,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
const lazySection = (section: string) =>
|
const lazySection = (section: string) =>
|
||||||
lazyMethods({}, Object.keys(query[section]), (method: string) =>
|
lazyMethods({}, Object.keys(query[section]), (method: string) =>
|
||||||
blockHash
|
blockHash
|
||||||
? this._decorateStorageEntryAt(registry as Registry, query[section][method], decorateMethod, blockHash)
|
? this._decorateStorageEntryAt(registry, query[section][method], decorateMethod, blockHash)
|
||||||
: this._decorateStorageEntry(query[section][method], decorateMethod)
|
: this._decorateStorageEntry(query[section][method], decorateMethod)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -526,7 +528,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
decorated.sizeAt = decorateMethod((blockHash: Hash | Uint8Array | string, ...args: unknown[]): Observable<u64> =>
|
decorated.sizeAt = decorateMethod((blockHash: Hash | Uint8Array | string, ...args: unknown[]): Observable<u64> =>
|
||||||
getQueryAt(blockHash).pipe(
|
getQueryAt(blockHash).pipe(
|
||||||
switchMap((q) =>
|
switchMap((q) =>
|
||||||
this._rpcCore.state.getStorageSize(getArgs(args, q.creator.meta.registry as Registry), blockHash))));
|
this._rpcCore.state.getStorageSize(getArgs(args, q.creator.meta.registry), blockHash))));
|
||||||
|
|
||||||
// .keys() & .entries() only available on map types
|
// .keys() & .entries() only available on map types
|
||||||
if (creator.iterKey && creator.meta.type.isMap) {
|
if (creator.iterKey && creator.meta.type.isMap) {
|
||||||
@@ -613,6 +615,15 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
this._retrieveMapKeys(creator, blockHash, args)));
|
this._retrieveMapKeys(creator, blockHash, args)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.supportMulti && creator.meta.type.isMap) {
|
||||||
|
// When using double map storage function, user need to pass double map key as an array
|
||||||
|
decorated.multi = decorateMethod((args: unknown[]): Observable<Codec[]> =>
|
||||||
|
creator.meta.type.asMap.hashers.length === 1
|
||||||
|
? this._retrieveMulti(args.map((a) => [creator, [a]]), blockHash)
|
||||||
|
: this._retrieveMulti(args.map((a) => [creator, a as unknown[]]), blockHash)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/* eslint-enable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment */
|
/* eslint-enable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment */
|
||||||
|
|
||||||
return this._decorateFunctionMeta(creator as unknown as MetaDecoration, decorated) as unknown as QueryableStorageEntry<ApiType>;
|
return this._decorateFunctionMeta(creator as unknown as MetaDecoration, decorated) as unknown as QueryableStorageEntry<ApiType>;
|
||||||
@@ -647,17 +658,21 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// retrieve a set of values for a specific set of keys - here we chunk the keys into PAGE_SIZE sizes
|
// retrieve a set of values for a specific set of keys - here we chunk the keys into PAGE_SIZE sizes
|
||||||
private _retrieveMulti (keys: [StorageEntry, unknown[]][]): Observable<Codec[]> {
|
private _retrieveMulti (keys: [StorageEntry, unknown[]][], blockHash?: Uint8Array): Observable<Codec[]> {
|
||||||
if (!keys.length) {
|
if (!keys.length) {
|
||||||
return of([]);
|
return of([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const queryCall = this.hasSubscriptions
|
const queryCall = this.hasSubscriptions && !blockHash
|
||||||
? this._rpcCore.state.subscribeStorage
|
? this._rpcCore.state.subscribeStorage
|
||||||
: this._rpcCore.state.queryStorageAt;
|
: this._rpcCore.state.queryStorageAt;
|
||||||
|
|
||||||
return combineLatest(
|
return combineLatest(
|
||||||
arrayChunk(keys, PAGE_SIZE_V).map((keys) => queryCall(keys))
|
arrayChunk(keys, PAGE_SIZE_V).map((k) =>
|
||||||
|
blockHash
|
||||||
|
? queryCall(k, blockHash)
|
||||||
|
: queryCall(k)
|
||||||
|
)
|
||||||
).pipe(
|
).pipe(
|
||||||
map(arrayFlatten)
|
map(arrayFlatten)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -65,9 +65,9 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
this._rpcCore.setRegistrySwap((blockHash: Uint8Array) => this.getBlockRegistry(blockHash));
|
this._rpcCore.setRegistrySwap((blockHash: Uint8Array) => this.getBlockRegistry(blockHash));
|
||||||
|
|
||||||
if (this.hasSubscriptions) {
|
if (this.hasSubscriptions) {
|
||||||
this._rpcCore.provider.on('disconnected', this.#onProviderDisconnect);
|
this._rpcCore.provider.on('disconnected', () => this.#onProviderDisconnect());
|
||||||
this._rpcCore.provider.on('error', this.#onProviderError);
|
this._rpcCore.provider.on('error', (e: Error) => this.#onProviderError(e));
|
||||||
this._rpcCore.provider.on('connected', this.#onProviderConnect);
|
this._rpcCore.provider.on('connected', () => this.#onProviderConnect());
|
||||||
} else {
|
} else {
|
||||||
l.warn('Api will be available in a limited mode since the provider does not support subscriptions');
|
l.warn('Api will be available in a limited mode since the provider does not support subscriptions');
|
||||||
}
|
}
|
||||||
@@ -85,6 +85,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
* @description Decorates a registry based on the runtime version
|
* @description Decorates a registry based on the runtime version
|
||||||
*/
|
*/
|
||||||
private _initRegistry (registry: Registry, chain: Text, version: { specName: Text, specVersion: BN }, metadata: Metadata, chainProps?: ChainProperties): void {
|
private _initRegistry (registry: Registry, chain: Text, version: { specName: Text, specVersion: BN }, metadata: Metadata, chainProps?: ChainProperties): void {
|
||||||
|
registry.clearCache();
|
||||||
registry.setChainProperties(chainProps || this.registry.getChainProperties());
|
registry.setChainProperties(chainProps || this.registry.getChainProperties());
|
||||||
registry.setKnownTypes(this._options);
|
registry.setKnownTypes(this._options);
|
||||||
registry.register(getSpecTypes(registry, chain, version.specName, version.specVersion));
|
registry.register(getSpecTypes(registry, chain, version.specName, version.specVersion));
|
||||||
@@ -284,9 +285,8 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
thisRegistry.metadata = metadata;
|
thisRegistry.metadata = metadata;
|
||||||
thisRegistry.specVersion = version.specVersion;
|
thisRegistry.specVersion = version.specVersion;
|
||||||
|
|
||||||
// clear the registry types to ensure that we override correctly
|
this._initRegistry(this.registry, this._runtimeChain as Text, version, metadata);
|
||||||
this._initRegistry(thisRegistry.registry.init(), this._runtimeChain as Text, version, metadata);
|
this._injectMetadata(thisRegistry, true);
|
||||||
this._injectMetadata(thisRegistry, false);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
@@ -380,7 +380,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
this._unsubscribeUpdates();
|
this._unsubscribeUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
#onProviderConnect = async (): Promise<void> => {
|
async #onProviderConnect (): Promise<void> {
|
||||||
this._isConnected.next(true);
|
this._isConnected.next(true);
|
||||||
this.emit('connected');
|
this.emit('connected');
|
||||||
|
|
||||||
@@ -406,15 +406,15 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
|
|
||||||
this.emit('error', error);
|
this.emit('error', error);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
#onProviderDisconnect = (): void => {
|
#onProviderDisconnect (): void {
|
||||||
this._isConnected.next(false);
|
this._isConnected.next(false);
|
||||||
this._unsubscribeHealth();
|
this._unsubscribeHealth();
|
||||||
this.emit('disconnected');
|
this.emit('disconnected');
|
||||||
};
|
}
|
||||||
|
|
||||||
#onProviderError = (error: Error): void => {
|
#onProviderError (error: Error): void {
|
||||||
this.emit('error', error);
|
this.emit('error', error);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import type { Observable, OperatorFunction } from 'rxjs';
|
import type { Observable, OperatorFunction } from 'rxjs';
|
||||||
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
|
import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo, SignerPayload } from '@polkadot/types/interfaces';
|
||||||
import type { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
|
import type { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, SignatureOptions } from '@polkadot/types/types';
|
||||||
import type { CodecRegistry } from '@polkadot/types-codec/types';
|
import type { Registry } from '@polkadot/types-codec/types';
|
||||||
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types';
|
import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types';
|
||||||
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types';
|
import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types';
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ interface SubmittableOptions<ApiType extends ApiTypes> {
|
|||||||
|
|
||||||
const identity = <T> (input: T): T => input;
|
const identity = <T> (input: T): T => input;
|
||||||
|
|
||||||
function makeEraOptions (api: ApiInterfaceRx, registry: CodecRegistry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
||||||
if (!header) {
|
if (!header) {
|
||||||
if (isNumber(partialOptions.era)) {
|
if (isNumber(partialOptions.era)) {
|
||||||
// since we have no header, it is immortal, remove any option overrides
|
// since we have no header, it is immortal, remove any option overrides
|
||||||
@@ -84,7 +84,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate
|
|||||||
|
|
||||||
#transformResult: (input: ISubmittableResult) => ISubmittableResult = identity;
|
#transformResult: (input: ISubmittableResult) => ISubmittableResult = identity;
|
||||||
|
|
||||||
constructor (registry: CodecRegistry, extrinsic: Call | Extrinsic | Uint8Array | string) {
|
constructor (registry: Registry, extrinsic: Call | Extrinsic | Uint8Array | string) {
|
||||||
super(registry, extrinsic, { version: api.extrinsicType });
|
super(registry, extrinsic, { version: api.extrinsicType });
|
||||||
|
|
||||||
this.#ignoreStatusCb = apiType === 'rxjs';
|
this.#ignoreStatusCb = apiType === 'rxjs';
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export interface ApiOptions extends RegisteredTypes {
|
|||||||
throwOnUnknown?: boolean;
|
throwOnUnknown?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApiInterfaceEvents = ProviderInterfaceEmitted | 'ready';
|
export type ApiInterfaceEvents = ProviderInterfaceEmitted | 'ready' | 'decorated';
|
||||||
|
|
||||||
export interface SignerOptions extends SignatureOptions {
|
export interface SignerOptions extends SignatureOptions {
|
||||||
blockNumber: BN;
|
blockNumber: BN;
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "..",
|
||||||
|
"outDir": "./build",
|
||||||
|
"rootDir": "./src"
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"**/checkTypes.manual.ts",
|
||||||
|
"**/*.spec.ts",
|
||||||
|
"**/test/**/*"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
|
{ "path": "../api-derive/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-known/tsconfig.build.json" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": "..",
|
|
||||||
"outDir": "./build",
|
|
||||||
"rootDir": "./src"
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"**/checkTypes.manual.ts",
|
|
||||||
"**/*.spec.ts",
|
|
||||||
"**/test/**/*"
|
|
||||||
],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../api-base" },
|
|
||||||
{ "path": "../api-derive" },
|
|
||||||
{ "path": "../rpc-augment" },
|
|
||||||
{ "path": "../rpc-core" },
|
|
||||||
{ "path": "../rpc-provider" },
|
|
||||||
{ "path": "../types" },
|
|
||||||
{ "path": "../types-codec" },
|
|
||||||
{ "path": "../types-known" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -13,14 +13,14 @@
|
|||||||
"**/test/**/*"
|
"**/test/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../api" },
|
{ "path": "../api/tsconfig.build.json" },
|
||||||
{ "path": "../api-augment" },
|
{ "path": "../api-augment/tsconfig.build.json" },
|
||||||
{ "path": "../api-base" },
|
{ "path": "../api-base/tsconfig.build.json" },
|
||||||
{ "path": "../api-derive" },
|
{ "path": "../api-derive/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-core" },
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-provider" },
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-known" },
|
{ "path": "../types-known/tsconfig.build.json" },
|
||||||
{ "path": "../types-support" }
|
{ "path": "../types-support/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/rpc-core": "7.3.1",
|
"@polkadot/rpc-core": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1"
|
"@polkadot/util": "^8.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
|
|||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
|
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
|
||||||
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
||||||
import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
||||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||||
@@ -68,6 +68,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|||||||
epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
|
epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
|
||||||
};
|
};
|
||||||
beefy: {
|
beefy: {
|
||||||
|
/**
|
||||||
|
* Returns hash of the latest BEEFY finalized block as seen by this client.
|
||||||
|
**/
|
||||||
|
getFinalizedHead: AugmentedRpc<() => Observable<H256>>;
|
||||||
/**
|
/**
|
||||||
* Returns the block most recently finalized by BEEFY, alongside side its justification.
|
* Returns the block most recently finalized by BEEFY, alongside side its justification.
|
||||||
**/
|
**/
|
||||||
@@ -146,6 +150,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|||||||
* Returns the projected time a given contract will be able to sustain paying its rent
|
* Returns the projected time a given contract will be able to sustain paying its rent
|
||||||
**/
|
**/
|
||||||
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
||||||
|
/**
|
||||||
|
* Upload new code without instantiating a contract from it
|
||||||
|
**/
|
||||||
|
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
|
||||||
};
|
};
|
||||||
engine: {
|
engine: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
"rootDir": "./src"
|
"rootDir": "./src"
|
||||||
},
|
},
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../rpc-core" },
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-codec" }
|
{ "path": "../types-codec/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/rpc-augment": "7.3.1",
|
"@polkadot/rpc-augment": "7.7.1",
|
||||||
"@polkadot/rpc-provider": "7.3.1",
|
"@polkadot/rpc-provider": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"rxjs": "^7.5.1"
|
"rxjs": "^7.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^8.3.1",
|
"@polkadot/keyring": "^8.3.3",
|
||||||
"@polkadot/rpc-augment": "7.3.1"
|
"@polkadot/rpc-augment": "7.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ interface StorageChangeSetJSON {
|
|||||||
changes: [string, string | null][];
|
changes: [string, string | null][];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MemoizedRpcInterfaceMethod = Memoized<RpcInterfaceMethod> & {
|
||||||
|
raw: Memoized<RpcInterfaceMethod>;
|
||||||
|
meta: DefinitionRpc;
|
||||||
|
}
|
||||||
|
|
||||||
const l = logger('rpc-core');
|
const l = logger('rpc-core');
|
||||||
|
|
||||||
const EMPTY_META = {
|
const EMPTY_META = {
|
||||||
@@ -174,14 +179,14 @@ export class RpcCore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _memomize (creator: <T> (isScale: boolean) => (...values: unknown[]) => Observable<T>, def: DefinitionRpc): Memoized<RpcInterfaceMethod> {
|
private _memomize (creator: <T> (isScale: boolean) => (...values: unknown[]) => Observable<T>, def: DefinitionRpc): MemoizedRpcInterfaceMethod {
|
||||||
const memoOpts = { getInstanceId: () => this.#instanceId };
|
const memoOpts = { getInstanceId: () => this.#instanceId };
|
||||||
const memoized = memoize(creator(true) as RpcInterfaceMethod, memoOpts);
|
const memoized = memoize(creator(true) as RpcInterfaceMethod, memoOpts);
|
||||||
|
|
||||||
memoized.raw = memoize(creator(false), memoOpts);
|
memoized.raw = memoize(creator(false), memoOpts);
|
||||||
memoized.meta = def;
|
memoized.meta = def;
|
||||||
|
|
||||||
return memoized;
|
return memoized as MemoizedRpcInterfaceMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _formatResult <T> (isScale: boolean, registry: Registry, blockHash: string | Uint8Array | null | undefined, method: string, def: DefinitionRpc, params: Codec[], result: unknown): T {
|
private _formatResult <T> (isScale: boolean, registry: Registry, blockHash: string | Uint8Array | null | undefined, method: string, def: DefinitionRpc, params: Codec[], result: unknown): T {
|
||||||
@@ -193,7 +198,7 @@ export class RpcCore {
|
|||||||
private _createMethodSend (section: string, method: string, def: DefinitionRpc): RpcInterfaceMethod {
|
private _createMethodSend (section: string, method: string, def: DefinitionRpc): RpcInterfaceMethod {
|
||||||
const rpcName = def.endpoint || `${section}_${method}`;
|
const rpcName = def.endpoint || `${section}_${method}`;
|
||||||
const hashIndex = def.params.findIndex(({ isHistoric }) => isHistoric);
|
const hashIndex = def.params.findIndex(({ isHistoric }) => isHistoric);
|
||||||
let memoized: null | Memoized<RpcInterfaceMethod> = null;
|
let memoized: null | MemoizedRpcInterfaceMethod = null;
|
||||||
|
|
||||||
// execute the RPC call, doing a registry swap for historic as applicable
|
// execute the RPC call, doing a registry swap for historic as applicable
|
||||||
const callWithRegistry = async <T> (isScale: boolean, values: unknown[]): Promise<T> => {
|
const callWithRegistry = async <T> (isScale: boolean, values: unknown[]): Promise<T> => {
|
||||||
@@ -229,7 +234,11 @@ export class RpcCore {
|
|||||||
|
|
||||||
return (): void => {
|
return (): void => {
|
||||||
// delete old results from cache
|
// delete old results from cache
|
||||||
memoized?.unmemoize(...values);
|
if (isScale) {
|
||||||
|
memoized?.unmemoize(...values);
|
||||||
|
} else {
|
||||||
|
memoized?.raw.unmemoize(...values);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}).pipe(
|
}).pipe(
|
||||||
publishReplay(1), // create a Replay(1)
|
publishReplay(1), // create a Replay(1)
|
||||||
@@ -262,7 +271,7 @@ export class RpcCore {
|
|||||||
const subName = `${section}_${subMethod}`;
|
const subName = `${section}_${subMethod}`;
|
||||||
const unsubName = `${section}_${unsubMethod}`;
|
const unsubName = `${section}_${unsubMethod}`;
|
||||||
const subType = `${section}_${updateType}`;
|
const subType = `${section}_${updateType}`;
|
||||||
let memoized: null | Memoized<RpcInterfaceMethod> = null;
|
let memoized: null | MemoizedRpcInterfaceMethod = null;
|
||||||
|
|
||||||
const creator = <T> (isScale: boolean) => (...values: unknown[]): Observable<T> => {
|
const creator = <T> (isScale: boolean) => (...values: unknown[]): Observable<T> => {
|
||||||
return new Observable((observer: Observer<T>): () => void => {
|
return new Observable((observer: Observer<T>): () => void => {
|
||||||
@@ -302,7 +311,11 @@ export class RpcCore {
|
|||||||
// Teardown logic
|
// Teardown logic
|
||||||
return (): void => {
|
return (): void => {
|
||||||
// Delete from cache, so old results don't hang around
|
// Delete from cache, so old results don't hang around
|
||||||
memoized?.unmemoize(...values);
|
if (isScale) {
|
||||||
|
memoized?.unmemoize(...values);
|
||||||
|
} else {
|
||||||
|
memoized?.raw.unmemoize(...values);
|
||||||
|
}
|
||||||
|
|
||||||
// Unsubscribe from provider
|
// Unsubscribe from provider
|
||||||
subscriptionPromise
|
subscriptionPromise
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../rpc-provider" },
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
{ "path": "../types" }
|
{ "path": "../types/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../rpc-core" },
|
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-augment" },
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
{ "path": "../rpc-provider" },
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
{ "path": "../types" }
|
{ "path": "../types/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/keyring": "^8.3.1",
|
"@polkadot/keyring": "^8.3.3",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-support": "7.3.1",
|
"@polkadot/types-support": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"@polkadot/util-crypto": "^8.3.1",
|
"@polkadot/util-crypto": "^8.3.3",
|
||||||
"@polkadot/x-fetch": "^8.3.1",
|
"@polkadot/x-fetch": "^8.3.3",
|
||||||
"@polkadot/x-global": "^8.3.1",
|
"@polkadot/x-global": "^8.3.3",
|
||||||
"@polkadot/x-ws": "^8.3.1",
|
"@polkadot/x-ws": "^8.3.3",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"mock-socket": "^9.0.8",
|
"mock-socket": "^9.1.2",
|
||||||
"nock": "^13.2.1"
|
"nock": "^13.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ export class LRUCache {
|
|||||||
this.#refs.delete(this.#tail.key);
|
this.#refs.delete(this.#tail.key);
|
||||||
|
|
||||||
this.#tail = this.#tail.prev;
|
this.#tail = this.#tail.prev;
|
||||||
|
this.#tail.next = this.#head;
|
||||||
} else {
|
} else {
|
||||||
this.#length += 1;
|
this.#length += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../types" },
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
{ "path": "../types-support" }
|
{ "path": "../types-support/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../rpc-provider" },
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
{ "path": "../types" }
|
{ "path": "../types/tsconfig.build.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -30,26 +30,26 @@
|
|||||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.16.7",
|
"@babel/core": "^7.17.0",
|
||||||
"@babel/register": "^7.16.7",
|
"@babel/register": "^7.17.0",
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/api": "7.3.1",
|
"@polkadot/api": "7.7.1",
|
||||||
"@polkadot/api-augment": "7.3.1",
|
"@polkadot/api-augment": "7.7.1",
|
||||||
"@polkadot/rpc-augment": "7.3.1",
|
"@polkadot/rpc-augment": "7.7.1",
|
||||||
"@polkadot/rpc-provider": "7.3.1",
|
"@polkadot/rpc-provider": "7.7.1",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-augment": "7.3.1",
|
"@polkadot/types-augment": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/types-create": "7.3.1",
|
"@polkadot/types-create": "7.7.1",
|
||||||
"@polkadot/types-support": "7.3.1",
|
"@polkadot/types-support": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1",
|
"@polkadot/util": "^8.3.3",
|
||||||
"@polkadot/x-ws": "^8.3.1",
|
"@polkadot/x-ws": "^8.3.3",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.3.1"
|
"yargs": "^17.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.4",
|
"@types/websocket": "^1.0.5",
|
||||||
"@types/yargs": "^17.0.8"
|
"@types/yargs": "^17.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import staticPolkadot from '@polkadot/types-support/metadata/static-polkadot';
|
|||||||
import staticSubstrate from '@polkadot/types-support/metadata/static-substrate';
|
import staticSubstrate from '@polkadot/types-support/metadata/static-substrate';
|
||||||
import { isString, stringify } from '@polkadot/util';
|
import { isString, stringify } from '@polkadot/util';
|
||||||
|
|
||||||
import { createImports, exportType, initMeta, readTemplate, writeFile } from '../util';
|
import { createImports, exportInterface, initMeta, readTemplate, writeFile } from '../util';
|
||||||
import { typeEncoders } from './tsDef';
|
import { typeEncoders } from './tsDef';
|
||||||
|
|
||||||
const WITH_TYPEDEF = false;
|
const WITH_TYPEDEF = false;
|
||||||
@@ -191,7 +191,7 @@ function generateLookupTypes (registry: Registry, filtered: [PortableType, TypeD
|
|||||||
typeDef.name = typeDef.lookupName;
|
typeDef.name = typeDef.lookupName;
|
||||||
|
|
||||||
return typeDef.lookupNameRoot && typeDef.lookupName
|
return typeDef.lookupNameRoot && typeDef.lookupName
|
||||||
? exportType(typeDef.lookupIndex, typeDef.lookupName, typeDef.lookupNameRoot)
|
? exportInterface(typeDef.lookupIndex, typeDef.lookupName, typeDef.lookupNameRoot)
|
||||||
: typeEncoders[typeDef.info](registry, imports.definitions, typeDef, imports);
|
: typeEncoders[typeDef.info](registry, imports.definitions, typeDef, imports);
|
||||||
}).filter((t): t is string => !!t);
|
}).filter((t): t is string => !!t);
|
||||||
|
|
||||||
@@ -219,8 +219,8 @@ function generateLookup (destDir: string, entries: [string | undefined, HexStrin
|
|||||||
const { lookup, registry } = initMeta(staticMeta).metadata.asLatest;
|
const { lookup, registry } = initMeta(staticMeta).metadata.asLatest;
|
||||||
const filtered = getFilteredTypes(lookup, exclude);
|
const filtered = getFilteredTypes(lookup, exclude);
|
||||||
|
|
||||||
generateLookupDefs(registry as Registry, filtered, destDir, subPath);
|
generateLookupDefs(registry, filtered, destDir, subPath);
|
||||||
generateLookupTypes(registry as Registry, filtered, destDir, subPath);
|
generateLookupTypes(registry, filtered, destDir, subPath);
|
||||||
|
|
||||||
return exclude.concat(
|
return exclude.concat(
|
||||||
...filtered
|
...filtered
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
|
|||||||
import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
||||||
import { assert, isString, stringify, stringPascalCase } from '@polkadot/util';
|
import { assert, isString, stringify, stringPascalCase } from '@polkadot/util';
|
||||||
|
|
||||||
import { createImports, exportInterface, exportType, formatType, readTemplate, setImports, TypeImports, writeFile } from '../util';
|
import { createImports, exportInterface, formatType, readTemplate, setImports, TypeImports, writeFile } from '../util';
|
||||||
|
|
||||||
interface Imports extends TypeImports {
|
interface Imports extends TypeImports {
|
||||||
interfaces: [string, string][];
|
interfaces: [string, string][];
|
||||||
@@ -204,11 +204,11 @@ function tsVec (registry: Registry, definitions: Record<string, ModuleTypes>, de
|
|||||||
if (def.info === TypeDefInfo.VecFixed) {
|
if (def.info === TypeDefInfo.VecFixed) {
|
||||||
setImports(definitions, imports, ['U8aFixed']);
|
setImports(definitions, imports, ['U8aFixed']);
|
||||||
|
|
||||||
return exportType(def.lookupIndex, def.name, 'U8aFixed');
|
return exportInterface(def.lookupIndex, def.name, 'U8aFixed');
|
||||||
} else {
|
} else {
|
||||||
setImports(definitions, imports, ['Bytes']);
|
setImports(definitions, imports, ['Bytes']);
|
||||||
|
|
||||||
return exportType(def.lookupIndex, def.name, 'Bytes');
|
return exportInterface(def.lookupIndex, def.name, 'Bytes');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,6 +235,7 @@ export const typeEncoders: Record<TypeDefInfo, (registry: Registry, definitions:
|
|||||||
[TypeDefInfo.Option]: tsOption,
|
[TypeDefInfo.Option]: tsOption,
|
||||||
[TypeDefInfo.Plain]: tsPlain,
|
[TypeDefInfo.Plain]: tsPlain,
|
||||||
[TypeDefInfo.Range]: errorUnhandled,
|
[TypeDefInfo.Range]: errorUnhandled,
|
||||||
|
[TypeDefInfo.RangeInclusive]: errorUnhandled,
|
||||||
[TypeDefInfo.Result]: tsResult,
|
[TypeDefInfo.Result]: tsResult,
|
||||||
[TypeDefInfo.Set]: tsSet,
|
[TypeDefInfo.Set]: tsSet,
|
||||||
[TypeDefInfo.Si]: tsSi,
|
[TypeDefInfo.Si]: tsSi,
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.3.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '7.7.1' };
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|
||||||
import type { Registry } from '@polkadot/types/types';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
import type { CodecRegistry } from '@polkadot/types-codec/types';
|
|
||||||
import type { TypeDef } from '@polkadot/types-create/types';
|
import type { TypeDef } from '@polkadot/types-create/types';
|
||||||
|
|
||||||
import Handlebars from 'handlebars';
|
import Handlebars from 'handlebars';
|
||||||
@@ -109,15 +108,7 @@ export function exportInterface (lookupIndex = -1, name = '', base: string, body
|
|||||||
return `${doc}export interface ${name} extends ${base} {${body.length ? '\n' : ''}${body}}`;
|
return `${doc}export interface ${name} extends ${base} {${body.length ? '\n' : ''}${body}}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper to create an `export type <Name> = <Base>`
|
function singleParamNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
||||||
// but since we don't want type alias (TS doesn't preserve names) we use
|
|
||||||
// interface here.
|
|
||||||
/** @internal */
|
|
||||||
export function exportType (lookupIndex = -1, name = '', base: string): string {
|
|
||||||
return exportInterface(lookupIndex, name, base);
|
|
||||||
}
|
|
||||||
|
|
||||||
function singleParamNotation (registry: CodecRegistry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
|
||||||
const sub = (typeDef.sub as TypeDef);
|
const sub = (typeDef.sub as TypeDef);
|
||||||
|
|
||||||
setImports(definitions, imports, [wrapper, sub.lookupName]);
|
setImports(definitions, imports, [wrapper, sub.lookupName]);
|
||||||
@@ -125,7 +116,7 @@ function singleParamNotation (registry: CodecRegistry, wrapper: string, typeDef:
|
|||||||
return paramsNotation(wrapper, sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
return paramsNotation(wrapper, sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
||||||
}
|
}
|
||||||
|
|
||||||
function dualParamsNotation (registry: CodecRegistry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
function dualParamsNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
||||||
const [a, b] = (typeDef.sub as TypeDef[]);
|
const [a, b] = (typeDef.sub as TypeDef[]);
|
||||||
|
|
||||||
setImports(definitions, imports, [wrapper, a.lookupName, b.lookupName]);
|
setImports(definitions, imports, [wrapper, a.lookupName, b.lookupName]);
|
||||||
@@ -136,18 +127,18 @@ function dualParamsNotation (registry: CodecRegistry, wrapper: string, typeDef:
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => string> = {
|
const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => string> = {
|
||||||
[TypeDefInfo.Compact]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Compact]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'Compact', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'Compact', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.DoNotConstruct]: (registry: CodecRegistry, { lookupName }: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.DoNotConstruct]: (registry: Registry, { lookupName }: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, ['DoNotConstruct']);
|
setImports(definitions, imports, ['DoNotConstruct']);
|
||||||
|
|
||||||
return 'DoNotConstruct';
|
return 'DoNotConstruct';
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Enum]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Enum]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
if (typeDef.lookupName) {
|
if (typeDef.lookupName) {
|
||||||
return typeDef.lookupName;
|
return typeDef.lookupName;
|
||||||
}
|
}
|
||||||
@@ -155,43 +146,47 @@ const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef
|
|||||||
throw new Error(`TypeDefInfo.Enum: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Enum: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Int]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Int]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Int: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Int: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.UInt]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.UInt]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.UInt: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.UInt: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Null]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Null]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, ['Null']);
|
setImports(definitions, imports, ['Null']);
|
||||||
|
|
||||||
return 'Null';
|
return 'Null';
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Option]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Option]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'Option', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'Option', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Plain]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Plain]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, [typeDef.type]);
|
setImports(definitions, imports, [typeDef.type]);
|
||||||
|
|
||||||
return typeDef.type;
|
return typeDef.type;
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Range]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Range]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Range: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Range: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Set]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.RangeInclusive]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
|
throw new Error(`TypeDefInfo.RangeInclusive: Not implemented on ${stringify(typeDef)}`);
|
||||||
|
},
|
||||||
|
|
||||||
|
[TypeDefInfo.Set]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Set: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Set: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Si]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Si]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return formatType(registry, definitions, (registry as Registry).lookup.getTypeDef(typeDef.type), imports, withShortcut);
|
return formatType(registry, definitions, (registry).lookup.getTypeDef(typeDef.type), imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Struct]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Struct]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
if (typeDef.lookupName) {
|
if (typeDef.lookupName) {
|
||||||
return typeDef.lookupName;
|
return typeDef.lookupName;
|
||||||
}
|
}
|
||||||
@@ -208,7 +203,7 @@ const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef
|
|||||||
}${withShortcut ? ' ' : '\n '}} & Struct`;
|
}${withShortcut ? ' ' : '\n '}} & Struct`;
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Tuple]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Tuple]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = typeDef.sub as TypeDef[];
|
const sub = typeDef.sub as TypeDef[];
|
||||||
|
|
||||||
setImports(definitions, imports, ['ITuple', ...sub.map(({ lookupName }) => lookupName)]);
|
setImports(definitions, imports, ['ITuple', ...sub.map(({ lookupName }) => lookupName)]);
|
||||||
@@ -221,11 +216,11 @@ const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef
|
|||||||
}]`);
|
}]`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Vec]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Vec]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.VecFixed]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.VecFixed]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = (typeDef.sub as TypeDef);
|
const sub = (typeDef.sub as TypeDef);
|
||||||
|
|
||||||
if (sub.type === 'u8') {
|
if (sub.type === 'u8') {
|
||||||
@@ -237,31 +232,31 @@ const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef
|
|||||||
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.BTreeMap]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.BTreeMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return dualParamsNotation(registry, 'BTreeMap', typeDef, definitions, imports, withShortcut);
|
return dualParamsNotation(registry, 'BTreeMap', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.BTreeSet]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.BTreeSet]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'BTreeSet', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'BTreeSet', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.HashMap]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.HashMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return dualParamsNotation(registry, 'HashMap', typeDef, definitions, imports, withShortcut);
|
return dualParamsNotation(registry, 'HashMap', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Linkage]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Linkage]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'Linkage', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'Linkage', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Result]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Result]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return dualParamsNotation(registry, 'Result', typeDef, definitions, imports, withShortcut);
|
return dualParamsNotation(registry, 'Result', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.WrapperKeepOpaque]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.WrapperKeepOpaque]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'WrapperKeepOpaque', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'WrapperKeepOpaque', typeDef, definitions, imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.WrapperOpaque]: (registry: CodecRegistry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.WrapperOpaque]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return singleParamNotation(registry, 'WrapperOpaque', typeDef, definitions, imports, withShortcut);
|
return singleParamNotation(registry, 'WrapperOpaque', typeDef, definitions, imports, withShortcut);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -271,7 +266,7 @@ const formatters: Record<TypeDefInfo, (registry: CodecRegistry, typeDef: TypeDef
|
|||||||
*/
|
*/
|
||||||
/** @internal */
|
/** @internal */
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
export function formatType (registry: CodecRegistry, definitions: Record<string, ModuleTypes>, type: string | String | TypeDef, imports: TypeImports, withShortcut = false): string {
|
export function formatType (registry: Registry, definitions: Record<string, ModuleTypes>, type: string | String | TypeDef, imports: TypeImports, withShortcut = false): string {
|
||||||
let typeDef: TypeDef;
|
let typeDef: TypeDef;
|
||||||
|
|
||||||
if (isString(type)) {
|
if (isString(type)) {
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "..",
|
||||||
|
"outDir": "./build",
|
||||||
|
"rootDir": "./src"
|
||||||
|
},
|
||||||
|
"references": [
|
||||||
|
{ "path": "../api/tsconfig.build.json" },
|
||||||
|
{ "path": "../api-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../rpc-provider/tsconfig.build.json" },
|
||||||
|
{ "path": "../types/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-augment/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-codec/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-create/tsconfig.build.json" },
|
||||||
|
{ "path": "../types-support/tsconfig.build.json" }
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": "..",
|
|
||||||
"outDir": "./build",
|
|
||||||
"rootDir": "./src"
|
|
||||||
},
|
|
||||||
"references": [
|
|
||||||
{ "path": "../api" },
|
|
||||||
{ "path": "../api-augment" },
|
|
||||||
{ "path": "../rpc-augment" },
|
|
||||||
{ "path": "../rpc-provider" },
|
|
||||||
{ "path": "../types" },
|
|
||||||
{ "path": "../types-augment" },
|
|
||||||
{ "path": "../types-codec" },
|
|
||||||
{ "path": "../types-create" },
|
|
||||||
{ "path": "../types-support" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "7.3.1",
|
"version": "7.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.7",
|
"@babel/runtime": "^7.17.0",
|
||||||
"@polkadot/types": "7.3.1",
|
"@polkadot/types": "7.7.1",
|
||||||
"@polkadot/types-codec": "7.3.1",
|
"@polkadot/types-codec": "7.7.1",
|
||||||
"@polkadot/util": "^8.3.1"
|
"@polkadot/util": "^8.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default {
|
|||||||
_enum: ['Valid', 'Invalid']
|
_enum: ['Valid', 'Invalid']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup246: kusama_runtime::SessionKeys
|
* Lookup247: kusama_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -45,7 +45,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup319: kusama_runtime::OriginCaller
|
* Lookup320: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -152,7 +152,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup384: kusama_runtime::NposCompactSolution24
|
* Lookup385: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -181,13 +181,13 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup504: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
* Lookup505: polkadot_runtime_parachains::disputes::pallet::Call<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDisputesPalletCall: {
|
PolkadotRuntimeParachainsDisputesPalletCall: {
|
||||||
_enum: ['force_unfreeze']
|
_enum: ['force_unfreeze']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup696: polkadot_primitives::v1::DisputeState<N>
|
* Lookup697: polkadot_primitives::v1::DisputeState<N>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1DisputeState: {
|
PolkadotPrimitivesV1DisputeState: {
|
||||||
validatorsFor: 'BitVec',
|
validatorsFor: 'BitVec',
|
||||||
@@ -196,13 +196,13 @@ export default {
|
|||||||
concludedAt: 'Option<u32>'
|
concludedAt: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup697: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
* Lookup698: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsDisputesPalletError: {
|
PolkadotRuntimeParachainsDisputesPalletError: {
|
||||||
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
|
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup732: kusama_runtime::Runtime
|
* Lookup733: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -66,7 +66,10 @@ export default {
|
|||||||
CurrentHeadUpdated: 'u32',
|
CurrentHeadUpdated: 'u32',
|
||||||
CodeUpgradeScheduled: 'u32',
|
CodeUpgradeScheduled: 'u32',
|
||||||
NewHeadNoted: 'u32',
|
NewHeadNoted: 'u32',
|
||||||
ActionQueued: '(u32,u32)'
|
ActionQueued: '(u32,u32)',
|
||||||
|
PvfCheckStarted: '(H256,u32)',
|
||||||
|
PvfCheckAccepted: '(H256,u32)',
|
||||||
|
PvfCheckRejected: '(H256,u32)'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -1315,11 +1318,18 @@ export default {
|
|||||||
},
|
},
|
||||||
force_clean_hrmp: {
|
force_clean_hrmp: {
|
||||||
para: 'u32',
|
para: 'u32',
|
||||||
|
inbound: 'u32',
|
||||||
|
outbound: 'u32',
|
||||||
|
},
|
||||||
|
force_process_hrmp_open: {
|
||||||
|
channels: 'u32',
|
||||||
|
},
|
||||||
|
force_process_hrmp_close: {
|
||||||
|
channels: 'u32',
|
||||||
},
|
},
|
||||||
force_process_hrmp_open: 'Null',
|
|
||||||
force_process_hrmp_close: 'Null',
|
|
||||||
hrmp_cancel_open_request: {
|
hrmp_cancel_open_request: {
|
||||||
channelId: 'PolkadotParachainPrimitivesHrmpChannelId'
|
channelId: 'PolkadotParachainPrimitivesHrmpChannelId',
|
||||||
|
openRequests: 'u32'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1738,13 +1748,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup528: polkadot_runtime_common::claims::pallet::Error<T>
|
* Lookup529: polkadot_runtime_common::claims::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPalletError: {
|
PolkadotRuntimeCommonClaimsPalletError: {
|
||||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup579: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
* Lookup580: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||||
maxCodeSize: 'u32',
|
maxCodeSize: 'u32',
|
||||||
@@ -1792,7 +1802,7 @@ export default {
|
|||||||
minimumValidationUpgradeDelay: 'u32'
|
minimumValidationUpgradeDelay: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup580: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
|
* Lookup581: polkadot_runtime_parachains::configuration::migration::v1::HostConfiguration<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: {
|
PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration: {
|
||||||
maxCodeSize: 'u32',
|
maxCodeSize: 'u32',
|
||||||
@@ -1837,20 +1847,20 @@ export default {
|
|||||||
umpMaxIndividualWeight: 'u64'
|
umpMaxIndividualWeight: 'u64'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup583: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
* Lookup584: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsConfigurationPalletError: {
|
PolkadotRuntimeParachainsConfigurationPalletError: {
|
||||||
_enum: ['InvalidNewValue']
|
_enum: ['InvalidNewValue']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup586: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
* Lookup587: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
||||||
bitfield: 'BitVec',
|
bitfield: 'BitVec',
|
||||||
submittedAt: 'u32'
|
submittedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup587: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
* Lookup588: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -1866,13 +1876,13 @@ export default {
|
|||||||
backingGroup: 'u32'
|
backingGroup: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup588: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
* Lookup589: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInclusionPalletError: {
|
PolkadotRuntimeParachainsInclusionPalletError: {
|
||||||
_enum: ['WrongBitfieldSize', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup589: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
|
* Lookup590: polkadot_primitives::v1::ScrapedOnChainVotes<primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1ScrapedOnChainVotes: {
|
PolkadotPrimitivesV1ScrapedOnChainVotes: {
|
||||||
session: 'u32',
|
session: 'u32',
|
||||||
@@ -1880,38 +1890,38 @@ export default {
|
|||||||
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>'
|
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup594: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
* Lookup595: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasInherentPalletError: {
|
PolkadotRuntimeParachainsParasInherentPalletError: {
|
||||||
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight']
|
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup596: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
* Lookup597: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
||||||
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
||||||
nextCoreOffset: 'u32'
|
nextCoreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup598: polkadot_runtime_parachains::scheduler::QueuedParathread
|
* Lookup599: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
||||||
claim: 'PolkadotPrimitivesV1ParathreadEntry',
|
claim: 'PolkadotPrimitivesV1ParathreadEntry',
|
||||||
coreOffset: 'u32'
|
coreOffset: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup599: polkadot_primitives::v1::ParathreadEntry
|
* Lookup600: polkadot_primitives::v1::ParathreadEntry
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1ParathreadEntry: {
|
PolkadotPrimitivesV1ParathreadEntry: {
|
||||||
claim: 'PolkadotPrimitivesV1ParathreadClaim',
|
claim: 'PolkadotPrimitivesV1ParathreadClaim',
|
||||||
retries: 'u32'
|
retries: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup600: polkadot_primitives::v1::ParathreadClaim
|
* Lookup601: polkadot_primitives::v1::ParathreadClaim
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
|
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
|
||||||
/**
|
/**
|
||||||
* Lookup603: polkadot_primitives::v1::CoreOccupied
|
* Lookup604: polkadot_primitives::v1::CoreOccupied
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1CoreOccupied: {
|
PolkadotPrimitivesV1CoreOccupied: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1920,7 +1930,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup606: polkadot_runtime_parachains::scheduler::CoreAssignment
|
* Lookup607: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
||||||
core: 'u32',
|
core: 'u32',
|
||||||
@@ -1929,7 +1939,7 @@ export default {
|
|||||||
groupIdx: 'u32'
|
groupIdx: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup607: polkadot_runtime_parachains::scheduler::AssignmentKind
|
* Lookup608: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1938,7 +1948,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup608: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
* Lookup609: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
||||||
votesAccept: 'BitVec',
|
votesAccept: 'BitVec',
|
||||||
@@ -1948,7 +1958,7 @@ export default {
|
|||||||
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup610: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
* Lookup611: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1960,39 +1970,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup612: polkadot_runtime_parachains::paras::ParaLifecycle
|
* Lookup613: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaLifecycle: {
|
PolkadotRuntimeParachainsParasParaLifecycle: {
|
||||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup614: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
* Lookup615: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
||||||
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
||||||
lastPruned: 'Option<u32>'
|
lastPruned: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup616: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
* Lookup617: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasReplacementTimes: {
|
PolkadotRuntimeParachainsParasReplacementTimes: {
|
||||||
expectedAt: 'u32',
|
expectedAt: 'u32',
|
||||||
activatedAt: 'u32'
|
activatedAt: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup618: polkadot_primitives::v1::UpgradeGoAhead
|
* Lookup619: polkadot_primitives::v1::UpgradeGoAhead
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1UpgradeGoAhead: {
|
PolkadotPrimitivesV1UpgradeGoAhead: {
|
||||||
_enum: ['Abort', 'GoAhead']
|
_enum: ['Abort', 'GoAhead']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup619: polkadot_primitives::v1::UpgradeRestriction
|
* Lookup620: polkadot_primitives::v1::UpgradeRestriction
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1UpgradeRestriction: {
|
PolkadotPrimitivesV1UpgradeRestriction: {
|
||||||
_enum: ['Present']
|
_enum: ['Present']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup620: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
* Lookup621: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
||||||
genesisHead: 'Bytes',
|
genesisHead: 'Bytes',
|
||||||
@@ -2000,13 +2010,13 @@ export default {
|
|||||||
parachain: 'bool'
|
parachain: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup621: polkadot_runtime_parachains::paras::pallet::Error<T>
|
* Lookup622: polkadot_runtime_parachains::paras::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsParasPalletError: {
|
PolkadotRuntimeParachainsParasPalletError: {
|
||||||
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid']
|
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup623: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
* Lookup624: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
||||||
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
||||||
@@ -2014,20 +2024,20 @@ export default {
|
|||||||
sessionIndex: 'u32'
|
sessionIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup625: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
* Lookup626: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundDownwardMessage: {
|
PolkadotCorePrimitivesInboundDownwardMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
msg: 'Bytes'
|
msg: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup627: polkadot_runtime_parachains::ump::pallet::Error<T>
|
* Lookup628: polkadot_runtime_parachains::ump::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsUmpPalletError: {
|
PolkadotRuntimeParachainsUmpPalletError: {
|
||||||
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup628: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
* Lookup629: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
||||||
confirmed: 'bool',
|
confirmed: 'bool',
|
||||||
@@ -2038,7 +2048,7 @@ export default {
|
|||||||
maxTotalSize: 'u32'
|
maxTotalSize: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup630: polkadot_runtime_parachains::hrmp::HrmpChannel
|
* Lookup631: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
||||||
maxCapacity: 'u32',
|
maxCapacity: 'u32',
|
||||||
@@ -2051,20 +2061,20 @@ export default {
|
|||||||
recipientDeposit: 'u128'
|
recipientDeposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup633: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
* Lookup634: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotCorePrimitivesInboundHrmpMessage: {
|
PolkadotCorePrimitivesInboundHrmpMessage: {
|
||||||
sentAt: 'u32',
|
sentAt: 'u32',
|
||||||
data: 'Bytes'
|
data: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup636: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
* Lookup637: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeParachainsHrmpPalletError: {
|
PolkadotRuntimeParachainsHrmpPalletError: {
|
||||||
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed']
|
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup638: polkadot_primitives::v2::SessionInfo
|
* Lookup639: polkadot_primitives::v2::SessionInfo
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV2SessionInfo: {
|
PolkadotPrimitivesV2SessionInfo: {
|
||||||
activeValidatorIndices: 'Vec<u32>',
|
activeValidatorIndices: 'Vec<u32>',
|
||||||
@@ -2082,7 +2092,7 @@ export default {
|
|||||||
neededApprovals: 'u32'
|
neededApprovals: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup640: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
* Lookup641: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
||||||
manager: 'AccountId32',
|
manager: 'AccountId32',
|
||||||
@@ -2090,25 +2100,25 @@ export default {
|
|||||||
locked: 'bool'
|
locked: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup641: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
* Lookup642: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
||||||
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode']
|
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup643: polkadot_runtime_common::slots::pallet::Error<T>
|
* Lookup644: polkadot_runtime_common::slots::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonSlotsPalletError: {
|
PolkadotRuntimeCommonSlotsPalletError: {
|
||||||
_enum: ['ParaNotOnboarding', 'LeaseError']
|
_enum: ['ParaNotOnboarding', 'LeaseError']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup648: polkadot_runtime_common::auctions::pallet::Error<T>
|
* Lookup649: polkadot_runtime_common::auctions::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonAuctionsPalletError: {
|
PolkadotRuntimeCommonAuctionsPalletError: {
|
||||||
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup649: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
* Lookup650: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
||||||
depositor: 'AccountId32',
|
depositor: 'AccountId32',
|
||||||
@@ -2123,7 +2133,7 @@ export default {
|
|||||||
trieIndex: 'u32'
|
trieIndex: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup650: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
* Lookup651: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2133,13 +2143,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup651: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
* Lookup652: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonCrowdloanPalletError: {
|
PolkadotRuntimeCommonCrowdloanPalletError: {
|
||||||
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup652: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
* Lookup653: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletXcmQueryStatus: {
|
PalletXcmQueryStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2159,7 +2169,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup655: xcm::VersionedResponse
|
* Lookup656: xcm::VersionedResponse
|
||||||
**/
|
**/
|
||||||
XcmVersionedResponse: {
|
XcmVersionedResponse: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2169,7 +2179,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup661: pallet_xcm::pallet::VersionMigrationStage
|
* Lookup662: pallet_xcm::pallet::VersionMigrationStage
|
||||||
**/
|
**/
|
||||||
PalletXcmVersionMigrationStage: {
|
PalletXcmVersionMigrationStage: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -2180,21 +2190,21 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup662: pallet_xcm::pallet::Error<T>
|
* Lookup663: pallet_xcm::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletXcmError: {
|
PalletXcmError: {
|
||||||
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
|
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup673: pallet_transaction_payment::ChargeTransactionPayment<T>
|
* Lookup674: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||||
**/
|
**/
|
||||||
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
||||||
/**
|
/**
|
||||||
* Lookup674: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
* Lookup675: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup675: polkadot_runtime::Runtime
|
* Lookup676: polkadot_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeRuntime: 'Null'
|
PolkadotRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1556,7 +1556,11 @@ export default {
|
|||||||
},
|
},
|
||||||
submit: {
|
submit: {
|
||||||
rawSolution: 'PalletElectionProviderMultiPhaseRawSolution',
|
rawSolution: 'PalletElectionProviderMultiPhaseRawSolution',
|
||||||
numSignedSubmissions: 'u32'
|
numSignedSubmissions: 'u32',
|
||||||
|
},
|
||||||
|
governance_fallback: {
|
||||||
|
maybeMaxVoters: 'Option<u32>',
|
||||||
|
maybeMaxTargets: 'Option<u32>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3120,14 +3124,14 @@ export default {
|
|||||||
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
|
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup346: pallet_election_provider_multi_phase::RoundSnapshot<sp_core::crypto::AccountId32>
|
* Lookup346: pallet_election_provider_multi_phase::RoundSnapshot<T>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseRoundSnapshot: {
|
PalletElectionProviderMultiPhaseRoundSnapshot: {
|
||||||
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
|
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
|
||||||
targets: 'Vec<AccountId32>'
|
targets: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup353: pallet_election_provider_multi_phase::signed::SignedSubmission<sp_core::crypto::AccountId32, Balance, node_runtime::NposSolution16>
|
* Lookup354: pallet_election_provider_multi_phase::signed::SignedSubmission<sp_core::crypto::AccountId32, Balance, node_runtime::NposSolution16>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseSignedSignedSubmission: {
|
PalletElectionProviderMultiPhaseSignedSignedSubmission: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -3136,13 +3140,13 @@ export default {
|
|||||||
reward: 'u128'
|
reward: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup354: pallet_election_provider_multi_phase::pallet::Error<T>
|
* Lookup355: pallet_election_provider_multi_phase::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseError: {
|
PalletElectionProviderMultiPhaseError: {
|
||||||
_enum: ['PreDispatchEarlySubmission', 'PreDispatchWrongWinnerCount', 'PreDispatchWeakSubmission', 'SignedQueueFull', 'SignedCannotPayDeposit', 'SignedInvalidWitness', 'SignedTooMuchWeight', 'OcwCallWrongEra', 'MissingSnapshotMetadata', 'InvalidSubmissionIndex', 'CallNotAllowed']
|
_enum: ['PreDispatchEarlySubmission', 'PreDispatchWrongWinnerCount', 'PreDispatchWeakSubmission', 'SignedQueueFull', 'SignedCannotPayDeposit', 'SignedInvalidWitness', 'SignedTooMuchWeight', 'OcwCallWrongEra', 'MissingSnapshotMetadata', 'InvalidSubmissionIndex', 'CallNotAllowed', 'FallbackFailed']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup355: pallet_staking::StakingLedger<sp_core::crypto::AccountId32, Balance>
|
* Lookup356: pallet_staking::StakingLedger<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingStakingLedger: {
|
PalletStakingStakingLedger: {
|
||||||
stash: 'AccountId32',
|
stash: 'AccountId32',
|
||||||
@@ -3152,14 +3156,14 @@ export default {
|
|||||||
claimedRewards: 'Vec<u32>'
|
claimedRewards: 'Vec<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup357: pallet_staking::UnlockChunk<Balance>
|
* Lookup358: pallet_staking::UnlockChunk<Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingUnlockChunk: {
|
PalletStakingUnlockChunk: {
|
||||||
value: 'Compact<u128>',
|
value: 'Compact<u128>',
|
||||||
era: 'Compact<u32>'
|
era: 'Compact<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup358: pallet_staking::Nominations<sp_core::crypto::AccountId32>
|
* Lookup359: pallet_staking::Nominations<T>
|
||||||
**/
|
**/
|
||||||
PalletStakingNominations: {
|
PalletStakingNominations: {
|
||||||
targets: 'Vec<AccountId32>',
|
targets: 'Vec<AccountId32>',
|
||||||
@@ -3167,27 +3171,27 @@ export default {
|
|||||||
suppressed: 'bool'
|
suppressed: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup359: pallet_staking::ActiveEraInfo
|
* Lookup360: pallet_staking::ActiveEraInfo
|
||||||
**/
|
**/
|
||||||
PalletStakingActiveEraInfo: {
|
PalletStakingActiveEraInfo: {
|
||||||
index: 'u32',
|
index: 'u32',
|
||||||
start: 'Option<u64>'
|
start: 'Option<u64>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup361: pallet_staking::EraRewardPoints<sp_core::crypto::AccountId32>
|
* Lookup362: pallet_staking::EraRewardPoints<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletStakingEraRewardPoints: {
|
PalletStakingEraRewardPoints: {
|
||||||
total: 'u32',
|
total: 'u32',
|
||||||
individual: 'BTreeMap<AccountId32, u32>'
|
individual: 'BTreeMap<AccountId32, u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup365: pallet_staking::Forcing
|
* Lookup366: pallet_staking::Forcing
|
||||||
**/
|
**/
|
||||||
PalletStakingForcing: {
|
PalletStakingForcing: {
|
||||||
_enum: ['NotForcing', 'ForceNew', 'ForceNone', 'ForceAlways']
|
_enum: ['NotForcing', 'ForceNew', 'ForceNone', 'ForceAlways']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup367: pallet_staking::UnappliedSlash<sp_core::crypto::AccountId32, Balance>
|
* Lookup368: pallet_staking::UnappliedSlash<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingUnappliedSlash: {
|
PalletStakingUnappliedSlash: {
|
||||||
validator: 'AccountId32',
|
validator: 'AccountId32',
|
||||||
@@ -3197,7 +3201,7 @@ export default {
|
|||||||
payout: 'u128'
|
payout: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup369: pallet_staking::slashing::SlashingSpans
|
* Lookup370: pallet_staking::slashing::SlashingSpans
|
||||||
**/
|
**/
|
||||||
PalletStakingSlashingSlashingSpans: {
|
PalletStakingSlashingSlashingSpans: {
|
||||||
spanIndex: 'u32',
|
spanIndex: 'u32',
|
||||||
@@ -3206,36 +3210,36 @@ export default {
|
|||||||
prior: 'Vec<u32>'
|
prior: 'Vec<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup370: pallet_staking::slashing::SpanRecord<Balance>
|
* Lookup371: pallet_staking::slashing::SpanRecord<Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingSlashingSpanRecord: {
|
PalletStakingSlashingSpanRecord: {
|
||||||
slashed: 'u128',
|
slashed: 'u128',
|
||||||
paidOut: 'u128'
|
paidOut: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup373: pallet_staking::Releases
|
* Lookup374: pallet_staking::Releases
|
||||||
**/
|
**/
|
||||||
PalletStakingReleases: {
|
PalletStakingReleases: {
|
||||||
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0']
|
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup374: pallet_staking::pallet::pallet::Error<T>
|
* Lookup375: pallet_staking::pallet::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletStakingPalletError: {
|
PalletStakingPalletError: {
|
||||||
_enum: ['NotController', 'NotStash', 'AlreadyBonded', 'AlreadyPaired', 'EmptyTargets', 'DuplicateIndex', 'InvalidSlashIndex', 'InsufficientBond', 'NoMoreChunks', 'NoUnlockChunk', 'FundedTarget', 'InvalidEraToReward', 'InvalidNumberOfNominations', 'NotSortedAndUnique', 'AlreadyClaimed', 'IncorrectHistoryDepth', 'IncorrectSlashingSpans', 'BadState', 'TooManyTargets', 'BadTarget', 'CannotChillOther', 'TooManyNominators', 'TooManyValidators', 'CommissionTooLow']
|
_enum: ['NotController', 'NotStash', 'AlreadyBonded', 'AlreadyPaired', 'EmptyTargets', 'DuplicateIndex', 'InvalidSlashIndex', 'InsufficientBond', 'NoMoreChunks', 'NoUnlockChunk', 'FundedTarget', 'InvalidEraToReward', 'InvalidNumberOfNominations', 'NotSortedAndUnique', 'AlreadyClaimed', 'IncorrectHistoryDepth', 'IncorrectSlashingSpans', 'BadState', 'TooManyTargets', 'BadTarget', 'CannotChillOther', 'TooManyNominators', 'TooManyValidators', 'CommissionTooLow']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup378: sp_core::crypto::KeyTypeId
|
* Lookup379: sp_core::crypto::KeyTypeId
|
||||||
**/
|
**/
|
||||||
SpCoreCryptoKeyTypeId: '[u8;4]',
|
SpCoreCryptoKeyTypeId: '[u8;4]',
|
||||||
/**
|
/**
|
||||||
* Lookup379: pallet_session::pallet::Error<T>
|
* Lookup380: pallet_session::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletSessionError: {
|
PalletSessionError: {
|
||||||
_enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount']
|
_enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup383: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
* Lookup384: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyPreimageStatus: {
|
PalletDemocracyPreimageStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3250,7 +3254,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup384: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
|
* Lookup385: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReferendumInfo: {
|
PalletDemocracyReferendumInfo: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3262,7 +3266,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup385: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
|
* Lookup386: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReferendumStatus: {
|
PalletDemocracyReferendumStatus: {
|
||||||
end: 'u32',
|
end: 'u32',
|
||||||
@@ -3272,7 +3276,7 @@ export default {
|
|||||||
tally: 'PalletDemocracyTally'
|
tally: 'PalletDemocracyTally'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup386: pallet_democracy::types::Tally<Balance>
|
* Lookup387: pallet_democracy::types::Tally<Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyTally: {
|
PalletDemocracyTally: {
|
||||||
ayes: 'u128',
|
ayes: 'u128',
|
||||||
@@ -3280,7 +3284,7 @@ export default {
|
|||||||
turnout: 'u128'
|
turnout: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup387: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup388: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyVoteVoting: {
|
PalletDemocracyVoteVoting: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3299,30 +3303,30 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup390: pallet_democracy::types::Delegations<Balance>
|
* Lookup391: pallet_democracy::types::Delegations<Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyDelegations: {
|
PalletDemocracyDelegations: {
|
||||||
votes: 'u128',
|
votes: 'u128',
|
||||||
capital: 'u128'
|
capital: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup391: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
|
* Lookup392: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyVotePriorLock: '(u32,u128)',
|
PalletDemocracyVotePriorLock: '(u32,u128)',
|
||||||
/**
|
/**
|
||||||
* Lookup394: pallet_democracy::Releases
|
* Lookup395: pallet_democracy::Releases
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReleases: {
|
PalletDemocracyReleases: {
|
||||||
_enum: ['V1']
|
_enum: ['V1']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup395: pallet_democracy::pallet::Error<T>
|
* Lookup396: pallet_democracy::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyError: {
|
PalletDemocracyError: {
|
||||||
_enum: ['ValueLow', 'ProposalMissing', 'AlreadyCanceled', 'DuplicateProposal', 'ProposalBlacklisted', 'NotSimpleMajority', 'InvalidHash', 'NoProposal', 'AlreadyVetoed', 'DuplicatePreimage', 'NotImminent', 'TooEarly', 'Imminent', 'PreimageMissing', 'ReferendumInvalid', 'PreimageInvalid', 'NoneWaiting', 'NotVoter', 'NoPermission', 'AlreadyDelegating', 'InsufficientFunds', 'NotDelegating', 'VotesExist', 'InstantNotAllowed', 'Nonsense', 'WrongUpperBound', 'MaxVotesReached', 'TooManyProposals']
|
_enum: ['ValueLow', 'ProposalMissing', 'AlreadyCanceled', 'DuplicateProposal', 'ProposalBlacklisted', 'NotSimpleMajority', 'InvalidHash', 'NoProposal', 'AlreadyVetoed', 'DuplicatePreimage', 'NotImminent', 'TooEarly', 'Imminent', 'PreimageMissing', 'ReferendumInvalid', 'PreimageInvalid', 'NoneWaiting', 'NotVoter', 'NoPermission', 'AlreadyDelegating', 'InsufficientFunds', 'NotDelegating', 'VotesExist', 'InstantNotAllowed', 'Nonsense', 'WrongUpperBound', 'MaxVotesReached', 'TooManyProposals']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup397: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup398: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletCollectiveVotes: {
|
PalletCollectiveVotes: {
|
||||||
index: 'u32',
|
index: 'u32',
|
||||||
@@ -3332,13 +3336,13 @@ export default {
|
|||||||
end: 'u32'
|
end: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup398: pallet_collective::pallet::Error<T, I>
|
* Lookup399: pallet_collective::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletCollectiveError: {
|
PalletCollectiveError: {
|
||||||
_enum: ['NotMember', 'DuplicateProposal', 'ProposalMissing', 'WrongIndex', 'DuplicateVote', 'AlreadyInitialized', 'TooEarly', 'TooManyProposals', 'WrongProposalWeight', 'WrongProposalLength']
|
_enum: ['NotMember', 'DuplicateProposal', 'ProposalMissing', 'WrongIndex', 'DuplicateVote', 'AlreadyInitialized', 'TooEarly', 'TooManyProposals', 'WrongProposalWeight', 'WrongProposalLength']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup402: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
|
* Lookup403: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletElectionsPhragmenSeatHolder: {
|
PalletElectionsPhragmenSeatHolder: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -3346,7 +3350,7 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup403: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
|
* Lookup404: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletElectionsPhragmenVoter: {
|
PalletElectionsPhragmenVoter: {
|
||||||
votes: 'Vec<AccountId32>',
|
votes: 'Vec<AccountId32>',
|
||||||
@@ -3354,19 +3358,19 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup404: pallet_elections_phragmen::pallet::Error<T>
|
* Lookup405: pallet_elections_phragmen::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletElectionsPhragmenError: {
|
PalletElectionsPhragmenError: {
|
||||||
_enum: ['UnableToVote', 'NoVotes', 'TooManyVotes', 'MaximumVotesExceeded', 'LowBalance', 'UnableToPayBond', 'MustBeVoter', 'ReportSelf', 'DuplicatedCandidate', 'MemberSubmit', 'RunnerUpSubmit', 'InsufficientCandidateFunds', 'NotMember', 'InvalidWitnessData', 'InvalidVoteCount', 'InvalidRenouncing', 'InvalidReplacement']
|
_enum: ['UnableToVote', 'NoVotes', 'TooManyVotes', 'MaximumVotesExceeded', 'LowBalance', 'UnableToPayBond', 'MustBeVoter', 'ReportSelf', 'DuplicatedCandidate', 'MemberSubmit', 'RunnerUpSubmit', 'InsufficientCandidateFunds', 'NotMember', 'InvalidWitnessData', 'InvalidVoteCount', 'InvalidRenouncing', 'InvalidReplacement']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup405: pallet_membership::pallet::Error<T, I>
|
* Lookup406: pallet_membership::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletMembershipError: {
|
PalletMembershipError: {
|
||||||
_enum: ['AlreadyMember', 'NotMember']
|
_enum: ['AlreadyMember', 'NotMember']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup406: pallet_grandpa::StoredState<N>
|
* Lookup407: pallet_grandpa::StoredState<N>
|
||||||
**/
|
**/
|
||||||
PalletGrandpaStoredState: {
|
PalletGrandpaStoredState: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3383,7 +3387,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup407: pallet_grandpa::StoredPendingChange<N, Limit>
|
* Lookup408: pallet_grandpa::StoredPendingChange<N, Limit>
|
||||||
**/
|
**/
|
||||||
PalletGrandpaStoredPendingChange: {
|
PalletGrandpaStoredPendingChange: {
|
||||||
scheduledAt: 'u32',
|
scheduledAt: 'u32',
|
||||||
@@ -3392,13 +3396,13 @@ export default {
|
|||||||
forced: 'Option<u32>'
|
forced: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup409: pallet_grandpa::pallet::Error<T>
|
* Lookup410: pallet_grandpa::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletGrandpaError: {
|
PalletGrandpaError: {
|
||||||
_enum: ['PauseFailed', 'ResumeFailed', 'ChangePending', 'TooSoon', 'InvalidKeyOwnershipProof', 'InvalidEquivocationProof', 'DuplicateOffenceReport']
|
_enum: ['PauseFailed', 'ResumeFailed', 'ChangePending', 'TooSoon', 'InvalidKeyOwnershipProof', 'InvalidEquivocationProof', 'DuplicateOffenceReport']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup410: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
|
* Lookup411: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletTreasuryProposal: {
|
PalletTreasuryProposal: {
|
||||||
proposer: 'AccountId32',
|
proposer: 'AccountId32',
|
||||||
@@ -3407,17 +3411,17 @@ export default {
|
|||||||
bond: 'u128'
|
bond: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup413: frame_support::PalletId
|
* Lookup415: frame_support::PalletId
|
||||||
**/
|
**/
|
||||||
FrameSupportPalletId: '[u8;8]',
|
FrameSupportPalletId: '[u8;8]',
|
||||||
/**
|
/**
|
||||||
* Lookup414: pallet_treasury::pallet::Error<T, I>
|
* Lookup416: pallet_treasury::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletTreasuryError: {
|
PalletTreasuryError: {
|
||||||
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals']
|
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup415: pallet_contracts::wasm::PrefabWasmModule<T>
|
* Lookup417: pallet_contracts::wasm::PrefabWasmModule<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsWasmPrefabWasmModule: {
|
PalletContractsWasmPrefabWasmModule: {
|
||||||
instructionWeightsVersion: 'Compact<u32>',
|
instructionWeightsVersion: 'Compact<u32>',
|
||||||
@@ -3426,7 +3430,7 @@ export default {
|
|||||||
code: 'Bytes'
|
code: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup416: pallet_contracts::wasm::OwnerInfo<T>
|
* Lookup418: pallet_contracts::wasm::OwnerInfo<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsWasmOwnerInfo: {
|
PalletContractsWasmOwnerInfo: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -3434,7 +3438,7 @@ export default {
|
|||||||
refcount: 'Compact<u64>'
|
refcount: 'Compact<u64>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup417: pallet_contracts::storage::RawContractInfo<primitive_types::H256, Balance>
|
* Lookup419: pallet_contracts::storage::RawContractInfo<primitive_types::H256, Balance>
|
||||||
**/
|
**/
|
||||||
PalletContractsStorageRawContractInfo: {
|
PalletContractsStorageRawContractInfo: {
|
||||||
trieId: 'Bytes',
|
trieId: 'Bytes',
|
||||||
@@ -3442,13 +3446,13 @@ export default {
|
|||||||
storageDeposit: 'u128'
|
storageDeposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup419: pallet_contracts::storage::DeletedContract
|
* Lookup421: pallet_contracts::storage::DeletedContract
|
||||||
**/
|
**/
|
||||||
PalletContractsStorageDeletedContract: {
|
PalletContractsStorageDeletedContract: {
|
||||||
trieId: 'Bytes'
|
trieId: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup420: pallet_contracts::schedule::Schedule<T>
|
* Lookup422: pallet_contracts::schedule::Schedule<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsSchedule: {
|
PalletContractsSchedule: {
|
||||||
limits: 'PalletContractsScheduleLimits',
|
limits: 'PalletContractsScheduleLimits',
|
||||||
@@ -3456,7 +3460,7 @@ export default {
|
|||||||
hostFnWeights: 'PalletContractsScheduleHostFnWeights'
|
hostFnWeights: 'PalletContractsScheduleHostFnWeights'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup421: pallet_contracts::schedule::Limits
|
* Lookup423: pallet_contracts::schedule::Limits
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleLimits: {
|
PalletContractsScheduleLimits: {
|
||||||
eventTopics: 'u32',
|
eventTopics: 'u32',
|
||||||
@@ -3472,7 +3476,7 @@ export default {
|
|||||||
codeLen: 'u32'
|
codeLen: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup422: pallet_contracts::schedule::InstructionWeights<T>
|
* Lookup424: pallet_contracts::schedule::InstructionWeights<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleInstructionWeights: {
|
PalletContractsScheduleInstructionWeights: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -3532,7 +3536,7 @@ export default {
|
|||||||
i64rotr: 'u32'
|
i64rotr: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup423: pallet_contracts::schedule::HostFnWeights<T>
|
* Lookup425: pallet_contracts::schedule::HostFnWeights<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleHostFnWeights: {
|
PalletContractsScheduleHostFnWeights: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -3559,10 +3563,16 @@ export default {
|
|||||||
depositEventPerByte: 'u64',
|
depositEventPerByte: 'u64',
|
||||||
debugMessage: 'u64',
|
debugMessage: 'u64',
|
||||||
setStorage: 'u64',
|
setStorage: 'u64',
|
||||||
setStoragePerByte: 'u64',
|
setStoragePerNewByte: 'u64',
|
||||||
|
setStoragePerOldByte: 'u64',
|
||||||
clearStorage: 'u64',
|
clearStorage: 'u64',
|
||||||
|
clearStoragePerByte: 'u64',
|
||||||
|
containsStorage: 'u64',
|
||||||
|
containsStoragePerByte: 'u64',
|
||||||
getStorage: 'u64',
|
getStorage: 'u64',
|
||||||
getStoragePerByte: 'u64',
|
getStoragePerByte: 'u64',
|
||||||
|
takeStorage: 'u64',
|
||||||
|
takeStoragePerByte: 'u64',
|
||||||
transfer: 'u64',
|
transfer: 'u64',
|
||||||
call: 'u64',
|
call: 'u64',
|
||||||
callTransferSurcharge: 'u64',
|
callTransferSurcharge: 'u64',
|
||||||
@@ -3583,39 +3593,39 @@ export default {
|
|||||||
ecdsaRecover: 'u64'
|
ecdsaRecover: 'u64'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup424: pallet_contracts::pallet::Error<T>
|
* Lookup426: pallet_contracts::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsError: {
|
PalletContractsError: {
|
||||||
_enum: ['InvalidScheduleVersion', 'OutOfGas', 'OutputBufferTooSmall', 'TransferFailed', 'MaxCallDepthReached', 'ContractNotFound', 'CodeTooLarge', 'CodeNotFound', 'OutOfBounds', 'DecodingFailed', 'ContractTrapped', 'ValueTooLarge', 'TerminatedWhileReentrant', 'InputForwarded', 'RandomSubjectTooLong', 'TooManyTopics', 'DuplicateTopics', 'NoChainExtension', 'DeletionQueueFull', 'DuplicateContract', 'TerminatedInConstructor', 'DebugMessageInvalidUTF8', 'ReentranceDenied', 'StorageDepositNotEnoughFunds', 'StorageDepositLimitExhausted', 'CodeInUse', 'ContractReverted']
|
_enum: ['InvalidScheduleVersion', 'OutOfGas', 'OutputBufferTooSmall', 'TransferFailed', 'MaxCallDepthReached', 'ContractNotFound', 'CodeTooLarge', 'CodeNotFound', 'OutOfBounds', 'DecodingFailed', 'ContractTrapped', 'ValueTooLarge', 'TerminatedWhileReentrant', 'InputForwarded', 'RandomSubjectTooLong', 'TooManyTopics', 'DuplicateTopics', 'NoChainExtension', 'DeletionQueueFull', 'DuplicateContract', 'TerminatedInConstructor', 'DebugMessageInvalidUTF8', 'ReentranceDenied', 'StorageDepositNotEnoughFunds', 'StorageDepositLimitExhausted', 'CodeInUse', 'ContractReverted', 'CodeRejected']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup425: pallet_sudo::pallet::Error<T>
|
* Lookup427: pallet_sudo::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletSudoError: {
|
PalletSudoError: {
|
||||||
_enum: ['RequireSudo']
|
_enum: ['RequireSudo']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup429: pallet_im_online::BoundedOpaqueNetworkState<PeerIdEncodingLimit, MultiAddrEncodingLimit, AddressesLimit>
|
* Lookup431: pallet_im_online::BoundedOpaqueNetworkState<PeerIdEncodingLimit, MultiAddrEncodingLimit, AddressesLimit>
|
||||||
**/
|
**/
|
||||||
PalletImOnlineBoundedOpaqueNetworkState: {
|
PalletImOnlineBoundedOpaqueNetworkState: {
|
||||||
peerId: 'Bytes',
|
peerId: 'Bytes',
|
||||||
externalAddresses: 'Vec<Bytes>'
|
externalAddresses: 'Vec<Bytes>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup433: pallet_im_online::pallet::Error<T>
|
* Lookup435: pallet_im_online::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletImOnlineError: {
|
PalletImOnlineError: {
|
||||||
_enum: ['InvalidKey', 'DuplicatedHeartbeat']
|
_enum: ['InvalidKey', 'DuplicatedHeartbeat']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup436: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
|
* Lookup438: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
|
||||||
**/
|
**/
|
||||||
SpStakingOffenceOffenceDetails: {
|
SpStakingOffenceOffenceDetails: {
|
||||||
offender: '(AccountId32,PalletStakingExposure)',
|
offender: '(AccountId32,PalletStakingExposure)',
|
||||||
reporters: 'Vec<AccountId32>'
|
reporters: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup438: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
|
* Lookup440: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
|
||||||
**/
|
**/
|
||||||
PalletIdentityRegistration: {
|
PalletIdentityRegistration: {
|
||||||
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
|
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
|
||||||
@@ -3623,7 +3633,7 @@ export default {
|
|||||||
info: 'PalletIdentityIdentityInfo'
|
info: 'PalletIdentityIdentityInfo'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup446: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
|
* Lookup448: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletIdentityRegistrarInfo: {
|
PalletIdentityRegistrarInfo: {
|
||||||
account: 'AccountId32',
|
account: 'AccountId32',
|
||||||
@@ -3631,13 +3641,13 @@ export default {
|
|||||||
fields: 'PalletIdentityBitFlags'
|
fields: 'PalletIdentityBitFlags'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup448: pallet_identity::pallet::Error<T>
|
* Lookup450: pallet_identity::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletIdentityError: {
|
PalletIdentityError: {
|
||||||
_enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned']
|
_enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup450: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
|
* Lookup452: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletSocietyBid: {
|
PalletSocietyBid: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -3645,7 +3655,7 @@ export default {
|
|||||||
value: 'u128'
|
value: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup451: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
|
* Lookup453: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletSocietyBidKind: {
|
PalletSocietyBidKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3654,25 +3664,25 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup453: pallet_society::VouchingStatus
|
* Lookup455: pallet_society::VouchingStatus
|
||||||
**/
|
**/
|
||||||
PalletSocietyVouchingStatus: {
|
PalletSocietyVouchingStatus: {
|
||||||
_enum: ['Vouching', 'Banned']
|
_enum: ['Vouching', 'Banned']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup457: pallet_society::Vote
|
* Lookup459: pallet_society::Vote
|
||||||
**/
|
**/
|
||||||
PalletSocietyVote: {
|
PalletSocietyVote: {
|
||||||
_enum: ['Skeptic', 'Reject', 'Approve']
|
_enum: ['Skeptic', 'Reject', 'Approve']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup458: pallet_society::pallet::Error<T, I>
|
* Lookup460: pallet_society::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletSocietyError: {
|
PalletSocietyError: {
|
||||||
_enum: ['BadPosition', 'NotMember', 'AlreadyMember', 'Suspended', 'NotSuspended', 'NoPayout', 'AlreadyFounded', 'InsufficientPot', 'AlreadyVouching', 'NotVouching', 'Head', 'Founder', 'AlreadyBid', 'AlreadyCandidate', 'NotCandidate', 'MaxMembers', 'NotFounder', 'NotHead']
|
_enum: ['BadPosition', 'NotMember', 'AlreadyMember', 'Suspended', 'NotSuspended', 'NoPayout', 'AlreadyFounded', 'InsufficientPot', 'AlreadyVouching', 'NotVouching', 'Head', 'Founder', 'AlreadyBid', 'AlreadyCandidate', 'NotCandidate', 'MaxMembers', 'NotFounder', 'NotHead']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup459: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup461: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletRecoveryRecoveryConfig: {
|
PalletRecoveryRecoveryConfig: {
|
||||||
delayPeriod: 'u32',
|
delayPeriod: 'u32',
|
||||||
@@ -3681,7 +3691,7 @@ export default {
|
|||||||
threshold: 'u16'
|
threshold: 'u16'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup460: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup462: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletRecoveryActiveRecovery: {
|
PalletRecoveryActiveRecovery: {
|
||||||
created: 'u32',
|
created: 'u32',
|
||||||
@@ -3689,25 +3699,25 @@ export default {
|
|||||||
friends: 'Vec<AccountId32>'
|
friends: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup461: pallet_recovery::pallet::Error<T>
|
* Lookup463: pallet_recovery::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletRecoveryError: {
|
PalletRecoveryError: {
|
||||||
_enum: ['NotAllowed', 'ZeroThreshold', 'NotEnoughFriends', 'MaxFriends', 'NotSorted', 'NotRecoverable', 'AlreadyRecoverable', 'AlreadyStarted', 'NotStarted', 'NotFriend', 'DelayPeriod', 'AlreadyVouched', 'Threshold', 'StillActive', 'AlreadyProxy', 'BadState']
|
_enum: ['NotAllowed', 'ZeroThreshold', 'NotEnoughFriends', 'MaxFriends', 'NotSorted', 'NotRecoverable', 'AlreadyRecoverable', 'AlreadyStarted', 'NotStarted', 'NotFriend', 'DelayPeriod', 'AlreadyVouched', 'Threshold', 'StillActive', 'AlreadyProxy', 'BadState']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup464: pallet_vesting::Releases
|
* Lookup466: pallet_vesting::Releases
|
||||||
**/
|
**/
|
||||||
PalletVestingReleases: {
|
PalletVestingReleases: {
|
||||||
_enum: ['V0', 'V1']
|
_enum: ['V0', 'V1']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup465: pallet_vesting::pallet::Error<T>
|
* Lookup467: pallet_vesting::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletVestingError: {
|
PalletVestingError: {
|
||||||
_enum: ['NotVesting', 'AtMaxVestingSchedules', 'AmountLow', 'ScheduleIndexOutOfBounds', 'InvalidScheduleParams']
|
_enum: ['NotVesting', 'AtMaxVestingSchedules', 'AmountLow', 'ScheduleIndexOutOfBounds', 'InvalidScheduleParams']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup468: pallet_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<node_runtime::Call, primitive_types::H256>, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
|
* Lookup470: pallet_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<node_runtime::Call, primitive_types::H256>, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletSchedulerScheduledV3: {
|
PalletSchedulerScheduledV3: {
|
||||||
maybeId: 'Option<Bytes>',
|
maybeId: 'Option<Bytes>',
|
||||||
@@ -3717,19 +3727,13 @@ export default {
|
|||||||
origin: 'NodeRuntimeOriginCaller'
|
origin: 'NodeRuntimeOriginCaller'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup469: pallet_scheduler::Releases
|
* Lookup471: pallet_scheduler::pallet::Error<T>
|
||||||
**/
|
|
||||||
PalletSchedulerReleases: {
|
|
||||||
_enum: ['V1', 'V2', 'V3']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup470: pallet_scheduler::pallet::Error<T>
|
|
||||||
**/
|
**/
|
||||||
PalletSchedulerError: {
|
PalletSchedulerError: {
|
||||||
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
|
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup471: pallet_preimage::RequestStatus<sp_core::crypto::AccountId32, Balance>
|
* Lookup472: pallet_preimage::RequestStatus<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletPreimageRequestStatus: {
|
PalletPreimageRequestStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3738,13 +3742,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup474: pallet_preimage::pallet::Error<T>
|
* Lookup475: pallet_preimage::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletPreimageError: {
|
PalletPreimageError: {
|
||||||
_enum: ['TooLarge', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested']
|
_enum: ['TooLarge', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup477: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
|
* Lookup478: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletProxyProxyDefinition: {
|
PalletProxyProxyDefinition: {
|
||||||
delegate: 'AccountId32',
|
delegate: 'AccountId32',
|
||||||
@@ -3752,7 +3756,7 @@ export default {
|
|||||||
delay: 'u32'
|
delay: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup481: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
|
* Lookup482: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletProxyAnnouncement: {
|
PalletProxyAnnouncement: {
|
||||||
real: 'AccountId32',
|
real: 'AccountId32',
|
||||||
@@ -3760,13 +3764,13 @@ export default {
|
|||||||
height: 'u32'
|
height: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup483: pallet_proxy::pallet::Error<T>
|
* Lookup484: pallet_proxy::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletProxyError: {
|
PalletProxyError: {
|
||||||
_enum: ['TooMany', 'NotFound', 'NotProxy', 'Unproxyable', 'Duplicate', 'NoPermission', 'Unannounced', 'NoSelfProxy']
|
_enum: ['TooMany', 'NotFound', 'NotProxy', 'Unproxyable', 'Duplicate', 'NoPermission', 'Unannounced', 'NoSelfProxy']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup485: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup486: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletMultisigMultisig: {
|
PalletMultisigMultisig: {
|
||||||
when: 'PalletMultisigTimepoint',
|
when: 'PalletMultisigTimepoint',
|
||||||
@@ -3775,13 +3779,13 @@ export default {
|
|||||||
approvals: 'Vec<AccountId32>'
|
approvals: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup487: pallet_multisig::pallet::Error<T>
|
* Lookup488: pallet_multisig::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletMultisigError: {
|
PalletMultisigError: {
|
||||||
_enum: ['MinimumThreshold', 'AlreadyApproved', 'NoApprovalsNeeded', 'TooFewSignatories', 'TooManySignatories', 'SignatoriesOutOfOrder', 'SenderInSignatories', 'NotFound', 'NotOwner', 'NoTimepoint', 'WrongTimepoint', 'UnexpectedTimepoint', 'MaxWeightTooLow', 'AlreadyStored']
|
_enum: ['MinimumThreshold', 'AlreadyApproved', 'NoApprovalsNeeded', 'TooFewSignatories', 'TooManySignatories', 'SignatoriesOutOfOrder', 'SenderInSignatories', 'NotFound', 'NotOwner', 'NoTimepoint', 'WrongTimepoint', 'UnexpectedTimepoint', 'MaxWeightTooLow', 'AlreadyStored']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup488: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
* Lookup489: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletBountiesBounty: {
|
PalletBountiesBounty: {
|
||||||
proposer: 'AccountId32',
|
proposer: 'AccountId32',
|
||||||
@@ -3792,7 +3796,7 @@ export default {
|
|||||||
status: 'PalletBountiesBountyStatus'
|
status: 'PalletBountiesBountyStatus'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup489: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup490: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletBountiesBountyStatus: {
|
PalletBountiesBountyStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3814,13 +3818,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup490: pallet_bounties::pallet::Error<T>
|
* Lookup491: pallet_bounties::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletBountiesError: {
|
PalletBountiesError: {
|
||||||
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'ReasonTooBig', 'UnexpectedStatus', 'RequireCurator', 'InvalidValue', 'InvalidFee', 'PendingPayout', 'Premature', 'HasActiveChildBounty']
|
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'ReasonTooBig', 'UnexpectedStatus', 'RequireCurator', 'InvalidValue', 'InvalidFee', 'PendingPayout', 'Premature', 'HasActiveChildBounty']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup491: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
|
* Lookup492: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PalletTipsOpenTip: {
|
PalletTipsOpenTip: {
|
||||||
reason: 'H256',
|
reason: 'H256',
|
||||||
@@ -3832,13 +3836,13 @@ export default {
|
|||||||
findersFee: 'bool'
|
findersFee: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup492: pallet_tips::pallet::Error<T>
|
* Lookup493: pallet_tips::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletTipsError: {
|
PalletTipsError: {
|
||||||
_enum: ['ReasonTooBig', 'AlreadyKnown', 'UnknownTip', 'NotFinder', 'StillOpen', 'Premature']
|
_enum: ['ReasonTooBig', 'AlreadyKnown', 'UnknownTip', 'NotFinder', 'StillOpen', 'Premature']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup493: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup494: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetDetails: {
|
PalletAssetsAssetDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -3855,7 +3859,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup494: pallet_assets::types::AssetAccount<Balance, DepositBalance, Extra>
|
* Lookup495: pallet_assets::types::AssetAccount<Balance, DepositBalance, Extra>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetAccount: {
|
PalletAssetsAssetAccount: {
|
||||||
balance: 'u128',
|
balance: 'u128',
|
||||||
@@ -3864,7 +3868,7 @@ export default {
|
|||||||
extra: 'Null'
|
extra: 'Null'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup495: pallet_assets::types::ExistenceReason<Balance>
|
* Lookup496: pallet_assets::types::ExistenceReason<Balance>
|
||||||
**/
|
**/
|
||||||
PalletAssetsExistenceReason: {
|
PalletAssetsExistenceReason: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -3875,14 +3879,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup497: pallet_assets::types::Approval<Balance, DepositBalance>
|
* Lookup498: pallet_assets::types::Approval<Balance, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletAssetsApproval: {
|
PalletAssetsApproval: {
|
||||||
amount: 'u128',
|
amount: 'u128',
|
||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup498: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
|
* Lookup499: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetMetadata: {
|
PalletAssetsAssetMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -3892,13 +3896,13 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup499: pallet_assets::pallet::Error<T, I>
|
* Lookup500: pallet_assets::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletAssetsError: {
|
PalletAssetsError: {
|
||||||
_enum: ['BalanceLow', 'NoAccount', 'NoPermission', 'Unknown', 'Frozen', 'InUse', 'BadWitness', 'MinBalanceZero', 'NoProvider', 'BadMetadata', 'Unapproved', 'WouldDie', 'AlreadyExists', 'NoDeposit', 'WouldBurn']
|
_enum: ['BalanceLow', 'NoAccount', 'NoPermission', 'Unknown', 'Frozen', 'InUse', 'BadWitness', 'MinBalanceZero', 'NoProvider', 'BadMetadata', 'Unapproved', 'WouldDie', 'AlreadyExists', 'NoDeposit', 'WouldBurn']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup500: pallet_lottery::LotteryConfig<BlockNumber, Balance>
|
* Lookup501: pallet_lottery::LotteryConfig<BlockNumber, Balance>
|
||||||
**/
|
**/
|
||||||
PalletLotteryLotteryConfig: {
|
PalletLotteryLotteryConfig: {
|
||||||
price: 'u128',
|
price: 'u128',
|
||||||
@@ -3908,20 +3912,20 @@ export default {
|
|||||||
repeat: 'bool'
|
repeat: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup503: pallet_lottery::pallet::Error<T>
|
* Lookup505: pallet_lottery::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletLotteryError: {
|
PalletLotteryError: {
|
||||||
_enum: ['NotConfigured', 'InProgress', 'AlreadyEnded', 'InvalidCall', 'AlreadyParticipating', 'TooManyCalls', 'EncodingFailed']
|
_enum: ['NotConfigured', 'InProgress', 'AlreadyEnded', 'InvalidCall', 'AlreadyParticipating', 'TooManyCalls', 'EncodingFailed']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup505: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
|
* Lookup507: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletGiltGiltBid: {
|
PalletGiltGiltBid: {
|
||||||
amount: 'u128',
|
amount: 'u128',
|
||||||
who: 'AccountId32'
|
who: 'AccountId32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup506: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
|
* Lookup508: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
|
||||||
**/
|
**/
|
||||||
PalletGiltActiveGiltsTotal: {
|
PalletGiltActiveGiltsTotal: {
|
||||||
frozen: 'u128',
|
frozen: 'u128',
|
||||||
@@ -3930,7 +3934,7 @@ export default {
|
|||||||
target: 'Perquintill'
|
target: 'Perquintill'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup507: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup509: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletGiltActiveGilt: {
|
PalletGiltActiveGilt: {
|
||||||
proportion: 'Perquintill',
|
proportion: 'Perquintill',
|
||||||
@@ -3939,13 +3943,13 @@ export default {
|
|||||||
expiry: 'u32'
|
expiry: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup508: pallet_gilt::pallet::Error<T>
|
* Lookup510: pallet_gilt::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletGiltError: {
|
PalletGiltError: {
|
||||||
_enum: ['DurationTooSmall', 'DurationTooBig', 'AmountTooSmall', 'BidTooLow', 'Unknown', 'NotOwner', 'NotExpired', 'NotFound']
|
_enum: ['DurationTooSmall', 'DurationTooBig', 'AmountTooSmall', 'BidTooLow', 'Unknown', 'NotOwner', 'NotExpired', 'NotFound']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup509: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup511: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletUniquesClassDetails: {
|
PalletUniquesClassDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -3960,7 +3964,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup511: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup513: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletUniquesInstanceDetails: {
|
PalletUniquesInstanceDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -3969,7 +3973,7 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup512: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
|
* Lookup514: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
|
||||||
**/
|
**/
|
||||||
PalletUniquesClassMetadata: {
|
PalletUniquesClassMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -3977,7 +3981,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup513: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
|
* Lookup515: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
|
||||||
**/
|
**/
|
||||||
PalletUniquesInstanceMetadata: {
|
PalletUniquesInstanceMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -3985,13 +3989,13 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup516: pallet_uniques::pallet::Error<T, I>
|
* Lookup518: pallet_uniques::pallet::Error<T, I>
|
||||||
**/
|
**/
|
||||||
PalletUniquesError: {
|
PalletUniquesError: {
|
||||||
_enum: ['NoPermission', 'Unknown', 'AlreadyExists', 'WrongOwner', 'BadWitness', 'InUse', 'Frozen', 'WrongDelegate', 'NoDelegate', 'Unapproved']
|
_enum: ['NoPermission', 'Unknown', 'AlreadyExists', 'WrongOwner', 'BadWitness', 'InUse', 'Frozen', 'WrongDelegate', 'NoDelegate', 'Unapproved']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup518: pallet_transaction_storage::TransactionInfo
|
* Lookup520: pallet_transaction_storage::TransactionInfo
|
||||||
**/
|
**/
|
||||||
PalletTransactionStorageTransactionInfo: {
|
PalletTransactionStorageTransactionInfo: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -4003,13 +4007,13 @@ export default {
|
|||||||
blockChunks: 'u32'
|
blockChunks: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup519: pallet_transaction_storage::pallet::Error<T>
|
* Lookup521: pallet_transaction_storage::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletTransactionStorageError: {
|
PalletTransactionStorageError: {
|
||||||
_enum: ['InsufficientFunds', 'NotConfigured', 'RenewedNotFound', 'EmptyTransaction', 'UnexpectedProof', 'InvalidProof', 'MissingProof', 'MissingStateData', 'DoubleCheck', 'ProofNotChecked', 'TransactionTooLarge', 'TooManyTransactions', 'BadContext']
|
_enum: ['InsufficientFunds', 'NotConfigured', 'RenewedNotFound', 'EmptyTransaction', 'UnexpectedProof', 'InvalidProof', 'MissingProof', 'MissingStateData', 'DoubleCheck', 'ProofNotChecked', 'TransactionTooLarge', 'TooManyTransactions', 'BadContext']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup520: pallet_bags_list::list::Node<T>
|
* Lookup522: pallet_bags_list::list::Node<T>
|
||||||
**/
|
**/
|
||||||
PalletBagsListListNode: {
|
PalletBagsListListNode: {
|
||||||
id: 'AccountId32',
|
id: 'AccountId32',
|
||||||
@@ -4018,20 +4022,20 @@ export default {
|
|||||||
bagUpper: 'u64'
|
bagUpper: 'u64'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup521: pallet_bags_list::list::Bag<T>
|
* Lookup523: pallet_bags_list::list::Bag<T>
|
||||||
**/
|
**/
|
||||||
PalletBagsListListBag: {
|
PalletBagsListListBag: {
|
||||||
head: 'Option<AccountId32>',
|
head: 'Option<AccountId32>',
|
||||||
tail: 'Option<AccountId32>'
|
tail: 'Option<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup523: pallet_bags_list::pallet::Error<T>
|
* Lookup525: pallet_bags_list::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletBagsListError: {
|
PalletBagsListError: {
|
||||||
_enum: ['NotInSameBag', 'IdNotFound', 'NotHeavier']
|
_enum: ['NotInSameBag', 'IdNotFound', 'NotHeavier']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup524: pallet_child_bounties::ChildBounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
* Lookup526: pallet_child_bounties::ChildBounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletChildBountiesChildBounty: {
|
PalletChildBountiesChildBounty: {
|
||||||
parentBounty: 'u32',
|
parentBounty: 'u32',
|
||||||
@@ -4041,7 +4045,7 @@ export default {
|
|||||||
status: 'PalletChildBountiesChildBountyStatus'
|
status: 'PalletChildBountiesChildBountyStatus'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup525: pallet_child_bounties::ChildBountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup527: pallet_child_bounties::ChildBountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletChildBountiesChildBountyStatus: {
|
PalletChildBountiesChildBountyStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -4060,13 +4064,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup527: pallet_child_bounties::pallet::Error<T>
|
* Lookup529: pallet_child_bounties::pallet::Error<T>
|
||||||
**/
|
**/
|
||||||
PalletChildBountiesError: {
|
PalletChildBountiesError: {
|
||||||
_enum: ['ParentBountyNotActive', 'InsufficientBountyBalance', 'TooManyChildBounties']
|
_enum: ['ParentBountyNotActive', 'InsufficientBountyBalance', 'TooManyChildBounties']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup529: sp_runtime::MultiSignature
|
* Lookup531: sp_runtime::MultiSignature
|
||||||
**/
|
**/
|
||||||
SpRuntimeMultiSignature: {
|
SpRuntimeMultiSignature: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -4076,42 +4080,42 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup530: sp_core::ecdsa::Signature
|
* Lookup532: sp_core::ecdsa::Signature
|
||||||
**/
|
**/
|
||||||
SpCoreEcdsaSignature: '[u8;65]',
|
SpCoreEcdsaSignature: '[u8;65]',
|
||||||
/**
|
/**
|
||||||
* Lookup533: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
|
* Lookup535: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckNonZeroSender: 'Null',
|
FrameSystemExtensionsCheckNonZeroSender: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup534: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
* Lookup536: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckSpecVersion: 'Null',
|
FrameSystemExtensionsCheckSpecVersion: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup535: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
* Lookup537: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckTxVersion: 'Null',
|
FrameSystemExtensionsCheckTxVersion: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup536: frame_system::extensions::check_genesis::CheckGenesis<T>
|
* Lookup538: frame_system::extensions::check_genesis::CheckGenesis<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckGenesis: 'Null',
|
FrameSystemExtensionsCheckGenesis: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup539: frame_system::extensions::check_nonce::CheckNonce<T>
|
* Lookup541: frame_system::extensions::check_nonce::CheckNonce<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
|
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
|
||||||
/**
|
/**
|
||||||
* Lookup540: frame_system::extensions::check_weight::CheckWeight<T>
|
* Lookup542: frame_system::extensions::check_weight::CheckWeight<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckWeight: 'Null',
|
FrameSystemExtensionsCheckWeight: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup541: pallet_asset_tx_payment::ChargeAssetTxPayment<T>
|
* Lookup543: pallet_asset_tx_payment::ChargeAssetTxPayment<T>
|
||||||
**/
|
**/
|
||||||
PalletAssetTxPaymentChargeAssetTxPayment: {
|
PalletAssetTxPaymentChargeAssetTxPayment: {
|
||||||
tip: 'Compact<u128>',
|
tip: 'Compact<u128>',
|
||||||
assetId: 'Option<u32>'
|
assetId: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup542: node_runtime::Runtime
|
* Lookup544: node_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
NodeRuntimeRuntime: 'Null'
|
NodeRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Valid' | 'Invalid';
|
readonly type: 'Valid' | 'Invalid';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeSessionKeys (246) */
|
/** @name KusamaRuntimeSessionKeys (247) */
|
||||||
export interface KusamaRuntimeSessionKeys extends Struct {
|
export interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -55,7 +55,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (319) */
|
/** @name KusamaRuntimeOriginCaller (320) */
|
||||||
export interface KusamaRuntimeOriginCaller extends Enum {
|
export interface KusamaRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSystemRawOrigin;
|
readonly asSystem: FrameSystemRawOrigin;
|
||||||
@@ -71,7 +71,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (384) */
|
/** @name KusamaRuntimeNposCompactSolution24 (385) */
|
||||||
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -99,13 +99,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDisputesPalletCall (504) */
|
/** @name PolkadotRuntimeParachainsDisputesPalletCall (505) */
|
||||||
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
|
||||||
readonly isForceUnfreeze: boolean;
|
readonly isForceUnfreeze: boolean;
|
||||||
readonly type: 'ForceUnfreeze';
|
readonly type: 'ForceUnfreeze';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1DisputeState (696) */
|
/** @name PolkadotPrimitivesV1DisputeState (697) */
|
||||||
export interface PolkadotPrimitivesV1DisputeState extends Struct {
|
export interface PolkadotPrimitivesV1DisputeState extends Struct {
|
||||||
readonly validatorsFor: BitVec;
|
readonly validatorsFor: BitVec;
|
||||||
readonly validatorsAgainst: BitVec;
|
readonly validatorsAgainst: BitVec;
|
||||||
@@ -113,7 +113,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly concludedAt: Option<u32>;
|
readonly concludedAt: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (697) */
|
/** @name PolkadotRuntimeParachainsDisputesPalletError (698) */
|
||||||
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
||||||
readonly isDuplicateDisputeStatementSets: boolean;
|
readonly isDuplicateDisputeStatementSets: boolean;
|
||||||
readonly isAncientDisputeStatement: boolean;
|
readonly isAncientDisputeStatement: boolean;
|
||||||
@@ -125,7 +125,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
|
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (732) */
|
/** @name KusamaRuntimeRuntime (733) */
|
||||||
export type KusamaRuntimeRuntime = Null;
|
export type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -74,7 +74,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asNewHeadNoted: u32;
|
readonly asNewHeadNoted: u32;
|
||||||
readonly isActionQueued: boolean;
|
readonly isActionQueued: boolean;
|
||||||
readonly asActionQueued: ITuple<[u32, u32]>;
|
readonly asActionQueued: ITuple<[u32, u32]>;
|
||||||
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued';
|
readonly isPvfCheckStarted: boolean;
|
||||||
|
readonly asPvfCheckStarted: ITuple<[H256, u32]>;
|
||||||
|
readonly isPvfCheckAccepted: boolean;
|
||||||
|
readonly asPvfCheckAccepted: ITuple<[H256, u32]>;
|
||||||
|
readonly isPvfCheckRejected: boolean;
|
||||||
|
readonly asPvfCheckRejected: ITuple<[H256, u32]>;
|
||||||
|
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued' | 'PvfCheckStarted' | 'PvfCheckAccepted' | 'PvfCheckRejected';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (96) */
|
/** @name PolkadotRuntimeParachainsUmpPalletEvent (96) */
|
||||||
@@ -1215,12 +1221,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isForceCleanHrmp: boolean;
|
readonly isForceCleanHrmp: boolean;
|
||||||
readonly asForceCleanHrmp: {
|
readonly asForceCleanHrmp: {
|
||||||
readonly para: u32;
|
readonly para: u32;
|
||||||
|
readonly inbound: u32;
|
||||||
|
readonly outbound: u32;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly isForceProcessHrmpOpen: boolean;
|
readonly isForceProcessHrmpOpen: boolean;
|
||||||
|
readonly asForceProcessHrmpOpen: {
|
||||||
|
readonly channels: u32;
|
||||||
|
} & Struct;
|
||||||
readonly isForceProcessHrmpClose: boolean;
|
readonly isForceProcessHrmpClose: boolean;
|
||||||
|
readonly asForceProcessHrmpClose: {
|
||||||
|
readonly channels: u32;
|
||||||
|
} & Struct;
|
||||||
readonly isHrmpCancelOpenRequest: boolean;
|
readonly isHrmpCancelOpenRequest: boolean;
|
||||||
readonly asHrmpCancelOpenRequest: {
|
readonly asHrmpCancelOpenRequest: {
|
||||||
readonly channelId: PolkadotParachainPrimitivesHrmpChannelId;
|
readonly channelId: PolkadotParachainPrimitivesHrmpChannelId;
|
||||||
|
readonly openRequests: u32;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest';
|
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest';
|
||||||
}
|
}
|
||||||
@@ -1687,7 +1702,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Assets' | 'Version';
|
readonly type: 'Assets' | 'Version';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPalletError (528) */
|
/** @name PolkadotRuntimeCommonClaimsPalletError (529) */
|
||||||
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
||||||
readonly isInvalidEthereumSignature: boolean;
|
readonly isInvalidEthereumSignature: boolean;
|
||||||
readonly isSignerHasNoClaim: boolean;
|
readonly isSignerHasNoClaim: boolean;
|
||||||
@@ -1698,7 +1713,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (579) */
|
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (580) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
readonly maxHeadDataSize: u32;
|
readonly maxHeadDataSize: u32;
|
||||||
@@ -1745,7 +1760,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly minimumValidationUpgradeDelay: u32;
|
readonly minimumValidationUpgradeDelay: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (580) */
|
/** @name PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration (581) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct {
|
export interface PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration extends Struct {
|
||||||
readonly maxCodeSize: u32;
|
readonly maxCodeSize: u32;
|
||||||
readonly maxHeadDataSize: u32;
|
readonly maxHeadDataSize: u32;
|
||||||
@@ -1789,19 +1804,19 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly umpMaxIndividualWeight: u64;
|
readonly umpMaxIndividualWeight: u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (583) */
|
/** @name PolkadotRuntimeParachainsConfigurationPalletError (584) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
||||||
readonly isInvalidNewValue: boolean;
|
readonly isInvalidNewValue: boolean;
|
||||||
readonly type: 'InvalidNewValue';
|
readonly type: 'InvalidNewValue';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (586) */
|
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (587) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
||||||
readonly bitfield: BitVec;
|
readonly bitfield: BitVec;
|
||||||
readonly submittedAt: u32;
|
readonly submittedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (587) */
|
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (588) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly hash_: H256;
|
readonly hash_: H256;
|
||||||
@@ -1813,9 +1828,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly backingGroup: u32;
|
readonly backingGroup: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionPalletError (588) */
|
/** @name PolkadotRuntimeParachainsInclusionPalletError (589) */
|
||||||
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
||||||
|
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
||||||
|
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
||||||
|
readonly isUnsortedOrDuplicateBackedCandidates: boolean;
|
||||||
|
readonly isUnexpectedRelayParent: boolean;
|
||||||
readonly isWrongBitfieldSize: boolean;
|
readonly isWrongBitfieldSize: boolean;
|
||||||
|
readonly isBitfieldAllZeros: boolean;
|
||||||
readonly isBitfieldDuplicateOrUnordered: boolean;
|
readonly isBitfieldDuplicateOrUnordered: boolean;
|
||||||
readonly isValidatorIndexOutOfBounds: boolean;
|
readonly isValidatorIndexOutOfBounds: boolean;
|
||||||
readonly isInvalidBitfieldSignature: boolean;
|
readonly isInvalidBitfieldSignature: boolean;
|
||||||
@@ -1839,47 +1859,49 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isInvalidValidationCodeHash: boolean;
|
readonly isInvalidValidationCodeHash: boolean;
|
||||||
readonly isParaHeadMismatch: boolean;
|
readonly isParaHeadMismatch: boolean;
|
||||||
readonly isBitfieldReferencesFreedCore: boolean;
|
readonly isBitfieldReferencesFreedCore: boolean;
|
||||||
readonly type: 'WrongBitfieldSize' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (589) */
|
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (590) */
|
||||||
export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct {
|
export interface PolkadotPrimitivesV1ScrapedOnChainVotes extends Struct {
|
||||||
readonly session: u32;
|
readonly session: u32;
|
||||||
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>;
|
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV1CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV0ValidityAttestation]>>]>>;
|
||||||
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
|
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasInherentPalletError (594) */
|
/** @name PolkadotRuntimeParachainsParasInherentPalletError (595) */
|
||||||
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
||||||
readonly isTooManyInclusionInherents: boolean;
|
readonly isTooManyInclusionInherents: boolean;
|
||||||
readonly isInvalidParentHeader: boolean;
|
readonly isInvalidParentHeader: boolean;
|
||||||
readonly isCandidateConcludedInvalid: boolean;
|
readonly isCandidateConcludedInvalid: boolean;
|
||||||
readonly isInherentOverweight: boolean;
|
readonly isInherentOverweight: boolean;
|
||||||
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight';
|
readonly isDisputeStatementsUnsortedOrDuplicates: boolean;
|
||||||
|
readonly isDisputeInvalid: boolean;
|
||||||
|
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (596) */
|
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (597) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
||||||
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
||||||
readonly nextCoreOffset: u32;
|
readonly nextCoreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (598) */
|
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (599) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
|
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
|
||||||
readonly coreOffset: u32;
|
readonly coreOffset: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ParathreadEntry (599) */
|
/** @name PolkadotPrimitivesV1ParathreadEntry (600) */
|
||||||
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
|
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
|
||||||
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
|
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
|
||||||
readonly retries: u32;
|
readonly retries: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ParathreadClaim (600) */
|
/** @name PolkadotPrimitivesV1ParathreadClaim (601) */
|
||||||
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
|
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CoreOccupied (603) */
|
/** @name PolkadotPrimitivesV1CoreOccupied (604) */
|
||||||
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
|
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
|
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
|
||||||
@@ -1887,7 +1909,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parathread' | 'Parachain';
|
readonly type: 'Parathread' | 'Parachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (606) */
|
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (607) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
||||||
readonly core: u32;
|
readonly core: u32;
|
||||||
readonly paraId: u32;
|
readonly paraId: u32;
|
||||||
@@ -1895,7 +1917,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly groupIdx: u32;
|
readonly groupIdx: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (607) */
|
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (608) */
|
||||||
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
||||||
readonly isParachain: boolean;
|
readonly isParachain: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -1903,7 +1925,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Parachain' | 'Parathread';
|
readonly type: 'Parachain' | 'Parathread';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (608) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (609) */
|
||||||
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
export interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
||||||
readonly votesAccept: BitVec;
|
readonly votesAccept: BitVec;
|
||||||
readonly votesReject: BitVec;
|
readonly votesReject: BitVec;
|
||||||
@@ -1912,7 +1934,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (610) */
|
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (611) */
|
||||||
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
export interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly asOnboarding: u32;
|
readonly asOnboarding: u32;
|
||||||
@@ -1924,7 +1946,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Upgrade';
|
readonly type: 'Onboarding' | 'Upgrade';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (612) */
|
/** @name PolkadotRuntimeParachainsParasParaLifecycle (613) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
||||||
readonly isOnboarding: boolean;
|
readonly isOnboarding: boolean;
|
||||||
readonly isParathread: boolean;
|
readonly isParathread: boolean;
|
||||||
@@ -1936,39 +1958,39 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (614) */
|
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (615) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
||||||
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
||||||
readonly lastPruned: Option<u32>;
|
readonly lastPruned: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (616) */
|
/** @name PolkadotRuntimeParachainsParasReplacementTimes (617) */
|
||||||
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
||||||
readonly expectedAt: u32;
|
readonly expectedAt: u32;
|
||||||
readonly activatedAt: u32;
|
readonly activatedAt: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1UpgradeGoAhead (618) */
|
/** @name PolkadotPrimitivesV1UpgradeGoAhead (619) */
|
||||||
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
|
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
|
||||||
readonly isAbort: boolean;
|
readonly isAbort: boolean;
|
||||||
readonly isGoAhead: boolean;
|
readonly isGoAhead: boolean;
|
||||||
readonly type: 'Abort' | 'GoAhead';
|
readonly type: 'Abort' | 'GoAhead';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1UpgradeRestriction (619) */
|
/** @name PolkadotPrimitivesV1UpgradeRestriction (620) */
|
||||||
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
|
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
|
||||||
readonly isPresent: boolean;
|
readonly isPresent: boolean;
|
||||||
readonly type: 'Present';
|
readonly type: 'Present';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (620) */
|
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (621) */
|
||||||
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
||||||
readonly genesisHead: Bytes;
|
readonly genesisHead: Bytes;
|
||||||
readonly validationCode: Bytes;
|
readonly validationCode: Bytes;
|
||||||
readonly parachain: bool;
|
readonly parachain: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasPalletError (621) */
|
/** @name PolkadotRuntimeParachainsParasPalletError (622) */
|
||||||
export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isCannotOnboard: boolean;
|
readonly isCannotOnboard: boolean;
|
||||||
@@ -1981,30 +2003,31 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isPvfCheckInvalidSignature: boolean;
|
readonly isPvfCheckInvalidSignature: boolean;
|
||||||
readonly isPvfCheckDoubleVote: boolean;
|
readonly isPvfCheckDoubleVote: boolean;
|
||||||
readonly isPvfCheckSubjectInvalid: boolean;
|
readonly isPvfCheckSubjectInvalid: boolean;
|
||||||
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid';
|
readonly isPvfCheckDisabled: boolean;
|
||||||
|
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (623) */
|
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (624) */
|
||||||
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
||||||
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
||||||
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
||||||
readonly sessionIndex: u32;
|
readonly sessionIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (625) */
|
/** @name PolkadotCorePrimitivesInboundDownwardMessage (626) */
|
||||||
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly msg: Bytes;
|
readonly msg: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsUmpPalletError (627) */
|
/** @name PolkadotRuntimeParachainsUmpPalletError (628) */
|
||||||
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
||||||
readonly isUnknownMessageIndex: boolean;
|
readonly isUnknownMessageIndex: boolean;
|
||||||
readonly isWeightOverLimit: boolean;
|
readonly isWeightOverLimit: boolean;
|
||||||
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (628) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (629) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
||||||
readonly confirmed: bool;
|
readonly confirmed: bool;
|
||||||
readonly age: u32;
|
readonly age: u32;
|
||||||
@@ -2014,7 +2037,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (630) */
|
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (631) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
||||||
readonly maxCapacity: u32;
|
readonly maxCapacity: u32;
|
||||||
readonly maxTotalSize: u32;
|
readonly maxTotalSize: u32;
|
||||||
@@ -2026,13 +2049,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly recipientDeposit: u128;
|
readonly recipientDeposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (633) */
|
/** @name PolkadotCorePrimitivesInboundHrmpMessage (634) */
|
||||||
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||||
readonly sentAt: u32;
|
readonly sentAt: u32;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (636) */
|
/** @name PolkadotRuntimeParachainsHrmpPalletError (637) */
|
||||||
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
export interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
||||||
readonly isOpenHrmpChannelToSelf: boolean;
|
readonly isOpenHrmpChannelToSelf: boolean;
|
||||||
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
||||||
@@ -2052,10 +2075,11 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isCancelHrmpOpenChannelUnauthorized: boolean;
|
readonly isCancelHrmpOpenChannelUnauthorized: boolean;
|
||||||
readonly isOpenHrmpChannelDoesntExist: boolean;
|
readonly isOpenHrmpChannelDoesntExist: boolean;
|
||||||
readonly isOpenHrmpChannelAlreadyConfirmed: boolean;
|
readonly isOpenHrmpChannelAlreadyConfirmed: boolean;
|
||||||
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed';
|
readonly isWrongWitness: boolean;
|
||||||
|
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV2SessionInfo (638) */
|
/** @name PolkadotPrimitivesV2SessionInfo (639) */
|
||||||
export interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
export interface PolkadotPrimitivesV2SessionInfo extends Struct {
|
||||||
readonly activeValidatorIndices: Vec<u32>;
|
readonly activeValidatorIndices: Vec<u32>;
|
||||||
readonly randomSeed: U8aFixed;
|
readonly randomSeed: U8aFixed;
|
||||||
@@ -2072,14 +2096,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly neededApprovals: u32;
|
readonly neededApprovals: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (640) */
|
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (641) */
|
||||||
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||||
readonly manager: AccountId32;
|
readonly manager: AccountId32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly locked: bool;
|
readonly locked: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (641) */
|
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (642) */
|
||||||
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
export interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
||||||
readonly isNotRegistered: boolean;
|
readonly isNotRegistered: boolean;
|
||||||
readonly isAlreadyRegistered: boolean;
|
readonly isAlreadyRegistered: boolean;
|
||||||
@@ -2097,14 +2121,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode';
|
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonSlotsPalletError (643) */
|
/** @name PolkadotRuntimeCommonSlotsPalletError (644) */
|
||||||
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
||||||
readonly isParaNotOnboarding: boolean;
|
readonly isParaNotOnboarding: boolean;
|
||||||
readonly isLeaseError: boolean;
|
readonly isLeaseError: boolean;
|
||||||
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (648) */
|
/** @name PolkadotRuntimeCommonAuctionsPalletError (649) */
|
||||||
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
export interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
||||||
readonly isAuctionInProgress: boolean;
|
readonly isAuctionInProgress: boolean;
|
||||||
readonly isLeasePeriodInPast: boolean;
|
readonly isLeasePeriodInPast: boolean;
|
||||||
@@ -2116,7 +2140,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (649) */
|
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (650) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||||
readonly depositor: AccountId32;
|
readonly depositor: AccountId32;
|
||||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||||
@@ -2130,7 +2154,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly trieIndex: u32;
|
readonly trieIndex: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (650) */
|
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (651) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||||
readonly isNever: boolean;
|
readonly isNever: boolean;
|
||||||
readonly isPreEnding: boolean;
|
readonly isPreEnding: boolean;
|
||||||
@@ -2140,7 +2164,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (651) */
|
/** @name PolkadotRuntimeCommonCrowdloanPalletError (652) */
|
||||||
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
export interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
||||||
readonly isFirstPeriodInPast: boolean;
|
readonly isFirstPeriodInPast: boolean;
|
||||||
readonly isFirstPeriodTooFarInFuture: boolean;
|
readonly isFirstPeriodTooFarInFuture: boolean;
|
||||||
@@ -2168,7 +2192,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmQueryStatus (652) */
|
/** @name PalletXcmQueryStatus (653) */
|
||||||
export interface PalletXcmQueryStatus extends Enum {
|
export interface PalletXcmQueryStatus extends Enum {
|
||||||
readonly isPending: boolean;
|
readonly isPending: boolean;
|
||||||
readonly asPending: {
|
readonly asPending: {
|
||||||
@@ -2189,7 +2213,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedResponse (655) */
|
/** @name XcmVersionedResponse (656) */
|
||||||
export interface XcmVersionedResponse extends Enum {
|
export interface XcmVersionedResponse extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly asV0: XcmV0Response;
|
readonly asV0: XcmV0Response;
|
||||||
@@ -2200,7 +2224,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'V0' | 'V1' | 'V2';
|
readonly type: 'V0' | 'V1' | 'V2';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmVersionMigrationStage (661) */
|
/** @name PalletXcmVersionMigrationStage (662) */
|
||||||
export interface PalletXcmVersionMigrationStage extends Enum {
|
export interface PalletXcmVersionMigrationStage extends Enum {
|
||||||
readonly isMigrateSupportedVersion: boolean;
|
readonly isMigrateSupportedVersion: boolean;
|
||||||
readonly isMigrateVersionNotifiers: boolean;
|
readonly isMigrateVersionNotifiers: boolean;
|
||||||
@@ -2210,7 +2234,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmError (662) */
|
/** @name PalletXcmError (663) */
|
||||||
export interface PalletXcmError extends Enum {
|
export interface PalletXcmError extends Enum {
|
||||||
readonly isUnreachable: boolean;
|
readonly isUnreachable: boolean;
|
||||||
readonly isSendFailure: boolean;
|
readonly isSendFailure: boolean;
|
||||||
@@ -2228,13 +2252,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
|
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionPaymentChargeTransactionPayment (673) */
|
/** @name PalletTransactionPaymentChargeTransactionPayment (674) */
|
||||||
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (674) */
|
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (675) */
|
||||||
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeRuntime (675) */
|
/** @name PolkadotRuntimeRuntime (676) */
|
||||||
export type PolkadotRuntimeRuntime = Null;
|
export type PolkadotRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
@@ -1696,7 +1696,12 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly rawSolution: PalletElectionProviderMultiPhaseRawSolution;
|
readonly rawSolution: PalletElectionProviderMultiPhaseRawSolution;
|
||||||
readonly numSignedSubmissions: u32;
|
readonly numSignedSubmissions: u32;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly type: 'SubmitUnsigned' | 'SetMinimumUntrustedScore' | 'SetEmergencyElectionResult' | 'Submit';
|
readonly isGovernanceFallback: boolean;
|
||||||
|
readonly asGovernanceFallback: {
|
||||||
|
readonly maybeMaxVoters: Option<u32>;
|
||||||
|
readonly maybeMaxTargets: Option<u32>;
|
||||||
|
} & Struct;
|
||||||
|
readonly type: 'SubmitUnsigned' | 'SetMinimumUntrustedScore' | 'SetEmergencyElectionResult' | 'Submit' | 'GovernanceFallback';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseRawSolution (143) */
|
/** @name PalletElectionProviderMultiPhaseRawSolution (143) */
|
||||||
@@ -3381,7 +3386,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly targets: Vec<AccountId32>;
|
readonly targets: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseSignedSignedSubmission (353) */
|
/** @name PalletElectionProviderMultiPhaseSignedSignedSubmission (354) */
|
||||||
export interface PalletElectionProviderMultiPhaseSignedSignedSubmission extends Struct {
|
export interface PalletElectionProviderMultiPhaseSignedSignedSubmission extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -3389,7 +3394,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly reward: u128;
|
readonly reward: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseError (354) */
|
/** @name PalletElectionProviderMultiPhaseError (355) */
|
||||||
export interface PalletElectionProviderMultiPhaseError extends Enum {
|
export interface PalletElectionProviderMultiPhaseError extends Enum {
|
||||||
readonly isPreDispatchEarlySubmission: boolean;
|
readonly isPreDispatchEarlySubmission: boolean;
|
||||||
readonly isPreDispatchWrongWinnerCount: boolean;
|
readonly isPreDispatchWrongWinnerCount: boolean;
|
||||||
@@ -3402,10 +3407,11 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isMissingSnapshotMetadata: boolean;
|
readonly isMissingSnapshotMetadata: boolean;
|
||||||
readonly isInvalidSubmissionIndex: boolean;
|
readonly isInvalidSubmissionIndex: boolean;
|
||||||
readonly isCallNotAllowed: boolean;
|
readonly isCallNotAllowed: boolean;
|
||||||
readonly type: 'PreDispatchEarlySubmission' | 'PreDispatchWrongWinnerCount' | 'PreDispatchWeakSubmission' | 'SignedQueueFull' | 'SignedCannotPayDeposit' | 'SignedInvalidWitness' | 'SignedTooMuchWeight' | 'OcwCallWrongEra' | 'MissingSnapshotMetadata' | 'InvalidSubmissionIndex' | 'CallNotAllowed';
|
readonly isFallbackFailed: boolean;
|
||||||
|
readonly type: 'PreDispatchEarlySubmission' | 'PreDispatchWrongWinnerCount' | 'PreDispatchWeakSubmission' | 'SignedQueueFull' | 'SignedCannotPayDeposit' | 'SignedInvalidWitness' | 'SignedTooMuchWeight' | 'OcwCallWrongEra' | 'MissingSnapshotMetadata' | 'InvalidSubmissionIndex' | 'CallNotAllowed' | 'FallbackFailed';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingStakingLedger (355) */
|
/** @name PalletStakingStakingLedger (356) */
|
||||||
export interface PalletStakingStakingLedger extends Struct {
|
export interface PalletStakingStakingLedger extends Struct {
|
||||||
readonly stash: AccountId32;
|
readonly stash: AccountId32;
|
||||||
readonly total: Compact<u128>;
|
readonly total: Compact<u128>;
|
||||||
@@ -3414,32 +3420,32 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly claimedRewards: Vec<u32>;
|
readonly claimedRewards: Vec<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingUnlockChunk (357) */
|
/** @name PalletStakingUnlockChunk (358) */
|
||||||
export interface PalletStakingUnlockChunk extends Struct {
|
export interface PalletStakingUnlockChunk extends Struct {
|
||||||
readonly value: Compact<u128>;
|
readonly value: Compact<u128>;
|
||||||
readonly era: Compact<u32>;
|
readonly era: Compact<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingNominations (358) */
|
/** @name PalletStakingNominations (359) */
|
||||||
export interface PalletStakingNominations extends Struct {
|
export interface PalletStakingNominations extends Struct {
|
||||||
readonly targets: Vec<AccountId32>;
|
readonly targets: Vec<AccountId32>;
|
||||||
readonly submittedIn: u32;
|
readonly submittedIn: u32;
|
||||||
readonly suppressed: bool;
|
readonly suppressed: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingActiveEraInfo (359) */
|
/** @name PalletStakingActiveEraInfo (360) */
|
||||||
export interface PalletStakingActiveEraInfo extends Struct {
|
export interface PalletStakingActiveEraInfo extends Struct {
|
||||||
readonly index: u32;
|
readonly index: u32;
|
||||||
readonly start: Option<u64>;
|
readonly start: Option<u64>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingEraRewardPoints (361) */
|
/** @name PalletStakingEraRewardPoints (362) */
|
||||||
export interface PalletStakingEraRewardPoints extends Struct {
|
export interface PalletStakingEraRewardPoints extends Struct {
|
||||||
readonly total: u32;
|
readonly total: u32;
|
||||||
readonly individual: BTreeMap<AccountId32, u32>;
|
readonly individual: BTreeMap<AccountId32, u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingForcing (365) */
|
/** @name PalletStakingForcing (366) */
|
||||||
export interface PalletStakingForcing extends Enum {
|
export interface PalletStakingForcing extends Enum {
|
||||||
readonly isNotForcing: boolean;
|
readonly isNotForcing: boolean;
|
||||||
readonly isForceNew: boolean;
|
readonly isForceNew: boolean;
|
||||||
@@ -3448,7 +3454,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
|
readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingUnappliedSlash (367) */
|
/** @name PalletStakingUnappliedSlash (368) */
|
||||||
export interface PalletStakingUnappliedSlash extends Struct {
|
export interface PalletStakingUnappliedSlash extends Struct {
|
||||||
readonly validator: AccountId32;
|
readonly validator: AccountId32;
|
||||||
readonly own: u128;
|
readonly own: u128;
|
||||||
@@ -3457,7 +3463,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly payout: u128;
|
readonly payout: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingSlashingSlashingSpans (369) */
|
/** @name PalletStakingSlashingSlashingSpans (370) */
|
||||||
export interface PalletStakingSlashingSlashingSpans extends Struct {
|
export interface PalletStakingSlashingSlashingSpans extends Struct {
|
||||||
readonly spanIndex: u32;
|
readonly spanIndex: u32;
|
||||||
readonly lastStart: u32;
|
readonly lastStart: u32;
|
||||||
@@ -3465,13 +3471,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly prior: Vec<u32>;
|
readonly prior: Vec<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingSlashingSpanRecord (370) */
|
/** @name PalletStakingSlashingSpanRecord (371) */
|
||||||
export interface PalletStakingSlashingSpanRecord extends Struct {
|
export interface PalletStakingSlashingSpanRecord extends Struct {
|
||||||
readonly slashed: u128;
|
readonly slashed: u128;
|
||||||
readonly paidOut: u128;
|
readonly paidOut: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingReleases (373) */
|
/** @name PalletStakingReleases (374) */
|
||||||
export interface PalletStakingReleases extends Enum {
|
export interface PalletStakingReleases extends Enum {
|
||||||
readonly isV100Ancient: boolean;
|
readonly isV100Ancient: boolean;
|
||||||
readonly isV200: boolean;
|
readonly isV200: boolean;
|
||||||
@@ -3484,7 +3490,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V700' | 'V800';
|
readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V700' | 'V800';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingPalletError (374) */
|
/** @name PalletStakingPalletError (375) */
|
||||||
export interface PalletStakingPalletError extends Enum {
|
export interface PalletStakingPalletError extends Enum {
|
||||||
readonly isNotController: boolean;
|
readonly isNotController: boolean;
|
||||||
readonly isNotStash: boolean;
|
readonly isNotStash: boolean;
|
||||||
@@ -3513,10 +3519,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotController' | 'NotStash' | 'AlreadyBonded' | 'AlreadyPaired' | 'EmptyTargets' | 'DuplicateIndex' | 'InvalidSlashIndex' | 'InsufficientBond' | 'NoMoreChunks' | 'NoUnlockChunk' | 'FundedTarget' | 'InvalidEraToReward' | 'InvalidNumberOfNominations' | 'NotSortedAndUnique' | 'AlreadyClaimed' | 'IncorrectHistoryDepth' | 'IncorrectSlashingSpans' | 'BadState' | 'TooManyTargets' | 'BadTarget' | 'CannotChillOther' | 'TooManyNominators' | 'TooManyValidators' | 'CommissionTooLow';
|
readonly type: 'NotController' | 'NotStash' | 'AlreadyBonded' | 'AlreadyPaired' | 'EmptyTargets' | 'DuplicateIndex' | 'InvalidSlashIndex' | 'InsufficientBond' | 'NoMoreChunks' | 'NoUnlockChunk' | 'FundedTarget' | 'InvalidEraToReward' | 'InvalidNumberOfNominations' | 'NotSortedAndUnique' | 'AlreadyClaimed' | 'IncorrectHistoryDepth' | 'IncorrectSlashingSpans' | 'BadState' | 'TooManyTargets' | 'BadTarget' | 'CannotChillOther' | 'TooManyNominators' | 'TooManyValidators' | 'CommissionTooLow';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreCryptoKeyTypeId (378) */
|
/** @name SpCoreCryptoKeyTypeId (379) */
|
||||||
export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
|
export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PalletSessionError (379) */
|
/** @name PalletSessionError (380) */
|
||||||
export interface PalletSessionError extends Enum {
|
export interface PalletSessionError extends Enum {
|
||||||
readonly isInvalidProof: boolean;
|
readonly isInvalidProof: boolean;
|
||||||
readonly isNoAssociatedValidatorId: boolean;
|
readonly isNoAssociatedValidatorId: boolean;
|
||||||
@@ -3526,7 +3532,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';
|
readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyPreimageStatus (383) */
|
/** @name PalletDemocracyPreimageStatus (384) */
|
||||||
export interface PalletDemocracyPreimageStatus extends Enum {
|
export interface PalletDemocracyPreimageStatus extends Enum {
|
||||||
readonly isMissing: boolean;
|
readonly isMissing: boolean;
|
||||||
readonly asMissing: u32;
|
readonly asMissing: u32;
|
||||||
@@ -3541,7 +3547,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Missing' | 'Available';
|
readonly type: 'Missing' | 'Available';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyReferendumInfo (384) */
|
/** @name PalletDemocracyReferendumInfo (385) */
|
||||||
export interface PalletDemocracyReferendumInfo extends Enum {
|
export interface PalletDemocracyReferendumInfo extends Enum {
|
||||||
readonly isOngoing: boolean;
|
readonly isOngoing: boolean;
|
||||||
readonly asOngoing: PalletDemocracyReferendumStatus;
|
readonly asOngoing: PalletDemocracyReferendumStatus;
|
||||||
@@ -3553,7 +3559,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Ongoing' | 'Finished';
|
readonly type: 'Ongoing' | 'Finished';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyReferendumStatus (385) */
|
/** @name PalletDemocracyReferendumStatus (386) */
|
||||||
export interface PalletDemocracyReferendumStatus extends Struct {
|
export interface PalletDemocracyReferendumStatus extends Struct {
|
||||||
readonly end: u32;
|
readonly end: u32;
|
||||||
readonly proposalHash: H256;
|
readonly proposalHash: H256;
|
||||||
@@ -3562,14 +3568,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly tally: PalletDemocracyTally;
|
readonly tally: PalletDemocracyTally;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyTally (386) */
|
/** @name PalletDemocracyTally (387) */
|
||||||
export interface PalletDemocracyTally extends Struct {
|
export interface PalletDemocracyTally extends Struct {
|
||||||
readonly ayes: u128;
|
readonly ayes: u128;
|
||||||
readonly nays: u128;
|
readonly nays: u128;
|
||||||
readonly turnout: u128;
|
readonly turnout: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyVoteVoting (387) */
|
/** @name PalletDemocracyVoteVoting (388) */
|
||||||
export interface PalletDemocracyVoteVoting extends Enum {
|
export interface PalletDemocracyVoteVoting extends Enum {
|
||||||
readonly isDirect: boolean;
|
readonly isDirect: boolean;
|
||||||
readonly asDirect: {
|
readonly asDirect: {
|
||||||
@@ -3588,22 +3594,22 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Direct' | 'Delegating';
|
readonly type: 'Direct' | 'Delegating';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyDelegations (390) */
|
/** @name PalletDemocracyDelegations (391) */
|
||||||
export interface PalletDemocracyDelegations extends Struct {
|
export interface PalletDemocracyDelegations extends Struct {
|
||||||
readonly votes: u128;
|
readonly votes: u128;
|
||||||
readonly capital: u128;
|
readonly capital: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyVotePriorLock (391) */
|
/** @name PalletDemocracyVotePriorLock (392) */
|
||||||
export interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {}
|
export interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {}
|
||||||
|
|
||||||
/** @name PalletDemocracyReleases (394) */
|
/** @name PalletDemocracyReleases (395) */
|
||||||
export interface PalletDemocracyReleases extends Enum {
|
export interface PalletDemocracyReleases extends Enum {
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
readonly type: 'V1';
|
readonly type: 'V1';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyError (395) */
|
/** @name PalletDemocracyError (396) */
|
||||||
export interface PalletDemocracyError extends Enum {
|
export interface PalletDemocracyError extends Enum {
|
||||||
readonly isValueLow: boolean;
|
readonly isValueLow: boolean;
|
||||||
readonly isProposalMissing: boolean;
|
readonly isProposalMissing: boolean;
|
||||||
@@ -3636,7 +3642,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ValueLow' | 'ProposalMissing' | 'AlreadyCanceled' | 'DuplicateProposal' | 'ProposalBlacklisted' | 'NotSimpleMajority' | 'InvalidHash' | 'NoProposal' | 'AlreadyVetoed' | 'DuplicatePreimage' | 'NotImminent' | 'TooEarly' | 'Imminent' | 'PreimageMissing' | 'ReferendumInvalid' | 'PreimageInvalid' | 'NoneWaiting' | 'NotVoter' | 'NoPermission' | 'AlreadyDelegating' | 'InsufficientFunds' | 'NotDelegating' | 'VotesExist' | 'InstantNotAllowed' | 'Nonsense' | 'WrongUpperBound' | 'MaxVotesReached' | 'TooManyProposals';
|
readonly type: 'ValueLow' | 'ProposalMissing' | 'AlreadyCanceled' | 'DuplicateProposal' | 'ProposalBlacklisted' | 'NotSimpleMajority' | 'InvalidHash' | 'NoProposal' | 'AlreadyVetoed' | 'DuplicatePreimage' | 'NotImminent' | 'TooEarly' | 'Imminent' | 'PreimageMissing' | 'ReferendumInvalid' | 'PreimageInvalid' | 'NoneWaiting' | 'NotVoter' | 'NoPermission' | 'AlreadyDelegating' | 'InsufficientFunds' | 'NotDelegating' | 'VotesExist' | 'InstantNotAllowed' | 'Nonsense' | 'WrongUpperBound' | 'MaxVotesReached' | 'TooManyProposals';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletCollectiveVotes (397) */
|
/** @name PalletCollectiveVotes (398) */
|
||||||
export interface PalletCollectiveVotes extends Struct {
|
export interface PalletCollectiveVotes extends Struct {
|
||||||
readonly index: u32;
|
readonly index: u32;
|
||||||
readonly threshold: u32;
|
readonly threshold: u32;
|
||||||
@@ -3645,7 +3651,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly end: u32;
|
readonly end: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletCollectiveError (398) */
|
/** @name PalletCollectiveError (399) */
|
||||||
export interface PalletCollectiveError extends Enum {
|
export interface PalletCollectiveError extends Enum {
|
||||||
readonly isNotMember: boolean;
|
readonly isNotMember: boolean;
|
||||||
readonly isDuplicateProposal: boolean;
|
readonly isDuplicateProposal: boolean;
|
||||||
@@ -3660,21 +3666,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength';
|
readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionsPhragmenSeatHolder (402) */
|
/** @name PalletElectionsPhragmenSeatHolder (403) */
|
||||||
export interface PalletElectionsPhragmenSeatHolder extends Struct {
|
export interface PalletElectionsPhragmenSeatHolder extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly stake: u128;
|
readonly stake: u128;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionsPhragmenVoter (403) */
|
/** @name PalletElectionsPhragmenVoter (404) */
|
||||||
export interface PalletElectionsPhragmenVoter extends Struct {
|
export interface PalletElectionsPhragmenVoter extends Struct {
|
||||||
readonly votes: Vec<AccountId32>;
|
readonly votes: Vec<AccountId32>;
|
||||||
readonly stake: u128;
|
readonly stake: u128;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionsPhragmenError (404) */
|
/** @name PalletElectionsPhragmenError (405) */
|
||||||
export interface PalletElectionsPhragmenError extends Enum {
|
export interface PalletElectionsPhragmenError extends Enum {
|
||||||
readonly isUnableToVote: boolean;
|
readonly isUnableToVote: boolean;
|
||||||
readonly isNoVotes: boolean;
|
readonly isNoVotes: boolean;
|
||||||
@@ -3696,14 +3702,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'UnableToVote' | 'NoVotes' | 'TooManyVotes' | 'MaximumVotesExceeded' | 'LowBalance' | 'UnableToPayBond' | 'MustBeVoter' | 'ReportSelf' | 'DuplicatedCandidate' | 'MemberSubmit' | 'RunnerUpSubmit' | 'InsufficientCandidateFunds' | 'NotMember' | 'InvalidWitnessData' | 'InvalidVoteCount' | 'InvalidRenouncing' | 'InvalidReplacement';
|
readonly type: 'UnableToVote' | 'NoVotes' | 'TooManyVotes' | 'MaximumVotesExceeded' | 'LowBalance' | 'UnableToPayBond' | 'MustBeVoter' | 'ReportSelf' | 'DuplicatedCandidate' | 'MemberSubmit' | 'RunnerUpSubmit' | 'InsufficientCandidateFunds' | 'NotMember' | 'InvalidWitnessData' | 'InvalidVoteCount' | 'InvalidRenouncing' | 'InvalidReplacement';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletMembershipError (405) */
|
/** @name PalletMembershipError (406) */
|
||||||
export interface PalletMembershipError extends Enum {
|
export interface PalletMembershipError extends Enum {
|
||||||
readonly isAlreadyMember: boolean;
|
readonly isAlreadyMember: boolean;
|
||||||
readonly isNotMember: boolean;
|
readonly isNotMember: boolean;
|
||||||
readonly type: 'AlreadyMember' | 'NotMember';
|
readonly type: 'AlreadyMember' | 'NotMember';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGrandpaStoredState (406) */
|
/** @name PalletGrandpaStoredState (407) */
|
||||||
export interface PalletGrandpaStoredState extends Enum {
|
export interface PalletGrandpaStoredState extends Enum {
|
||||||
readonly isLive: boolean;
|
readonly isLive: boolean;
|
||||||
readonly isPendingPause: boolean;
|
readonly isPendingPause: boolean;
|
||||||
@@ -3720,7 +3726,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume';
|
readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGrandpaStoredPendingChange (407) */
|
/** @name PalletGrandpaStoredPendingChange (408) */
|
||||||
export interface PalletGrandpaStoredPendingChange extends Struct {
|
export interface PalletGrandpaStoredPendingChange extends Struct {
|
||||||
readonly scheduledAt: u32;
|
readonly scheduledAt: u32;
|
||||||
readonly delay: u32;
|
readonly delay: u32;
|
||||||
@@ -3728,7 +3734,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly forced: Option<u32>;
|
readonly forced: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGrandpaError (409) */
|
/** @name PalletGrandpaError (410) */
|
||||||
export interface PalletGrandpaError extends Enum {
|
export interface PalletGrandpaError extends Enum {
|
||||||
readonly isPauseFailed: boolean;
|
readonly isPauseFailed: boolean;
|
||||||
readonly isResumeFailed: boolean;
|
readonly isResumeFailed: boolean;
|
||||||
@@ -3740,7 +3746,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'PauseFailed' | 'ResumeFailed' | 'ChangePending' | 'TooSoon' | 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
|
readonly type: 'PauseFailed' | 'ResumeFailed' | 'ChangePending' | 'TooSoon' | 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTreasuryProposal (410) */
|
/** @name PalletTreasuryProposal (411) */
|
||||||
export interface PalletTreasuryProposal extends Struct {
|
export interface PalletTreasuryProposal extends Struct {
|
||||||
readonly proposer: AccountId32;
|
readonly proposer: AccountId32;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
@@ -3748,10 +3754,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly bond: u128;
|
readonly bond: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name FrameSupportPalletId (413) */
|
/** @name FrameSupportPalletId (415) */
|
||||||
export interface FrameSupportPalletId extends U8aFixed {}
|
export interface FrameSupportPalletId extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PalletTreasuryError (414) */
|
/** @name PalletTreasuryError (416) */
|
||||||
export interface PalletTreasuryError extends Enum {
|
export interface PalletTreasuryError extends Enum {
|
||||||
readonly isInsufficientProposersBalance: boolean;
|
readonly isInsufficientProposersBalance: boolean;
|
||||||
readonly isInvalidIndex: boolean;
|
readonly isInvalidIndex: boolean;
|
||||||
@@ -3759,7 +3765,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';
|
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsWasmPrefabWasmModule (415) */
|
/** @name PalletContractsWasmPrefabWasmModule (417) */
|
||||||
export interface PalletContractsWasmPrefabWasmModule extends Struct {
|
export interface PalletContractsWasmPrefabWasmModule extends Struct {
|
||||||
readonly instructionWeightsVersion: Compact<u32>;
|
readonly instructionWeightsVersion: Compact<u32>;
|
||||||
readonly initial: Compact<u32>;
|
readonly initial: Compact<u32>;
|
||||||
@@ -3767,33 +3773,33 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly code: Bytes;
|
readonly code: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsWasmOwnerInfo (416) */
|
/** @name PalletContractsWasmOwnerInfo (418) */
|
||||||
export interface PalletContractsWasmOwnerInfo extends Struct {
|
export interface PalletContractsWasmOwnerInfo extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly deposit: Compact<u128>;
|
readonly deposit: Compact<u128>;
|
||||||
readonly refcount: Compact<u64>;
|
readonly refcount: Compact<u64>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsStorageRawContractInfo (417) */
|
/** @name PalletContractsStorageRawContractInfo (419) */
|
||||||
export interface PalletContractsStorageRawContractInfo extends Struct {
|
export interface PalletContractsStorageRawContractInfo extends Struct {
|
||||||
readonly trieId: Bytes;
|
readonly trieId: Bytes;
|
||||||
readonly codeHash: H256;
|
readonly codeHash: H256;
|
||||||
readonly storageDeposit: u128;
|
readonly storageDeposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsStorageDeletedContract (419) */
|
/** @name PalletContractsStorageDeletedContract (421) */
|
||||||
export interface PalletContractsStorageDeletedContract extends Struct {
|
export interface PalletContractsStorageDeletedContract extends Struct {
|
||||||
readonly trieId: Bytes;
|
readonly trieId: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsSchedule (420) */
|
/** @name PalletContractsSchedule (422) */
|
||||||
export interface PalletContractsSchedule extends Struct {
|
export interface PalletContractsSchedule extends Struct {
|
||||||
readonly limits: PalletContractsScheduleLimits;
|
readonly limits: PalletContractsScheduleLimits;
|
||||||
readonly instructionWeights: PalletContractsScheduleInstructionWeights;
|
readonly instructionWeights: PalletContractsScheduleInstructionWeights;
|
||||||
readonly hostFnWeights: PalletContractsScheduleHostFnWeights;
|
readonly hostFnWeights: PalletContractsScheduleHostFnWeights;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleLimits (421) */
|
/** @name PalletContractsScheduleLimits (423) */
|
||||||
export interface PalletContractsScheduleLimits extends Struct {
|
export interface PalletContractsScheduleLimits extends Struct {
|
||||||
readonly eventTopics: u32;
|
readonly eventTopics: u32;
|
||||||
readonly stackHeight: u32;
|
readonly stackHeight: u32;
|
||||||
@@ -3808,7 +3814,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly codeLen: u32;
|
readonly codeLen: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleInstructionWeights (422) */
|
/** @name PalletContractsScheduleInstructionWeights (424) */
|
||||||
export interface PalletContractsScheduleInstructionWeights extends Struct {
|
export interface PalletContractsScheduleInstructionWeights extends Struct {
|
||||||
readonly version: u32;
|
readonly version: u32;
|
||||||
readonly i64const: u32;
|
readonly i64const: u32;
|
||||||
@@ -3864,7 +3870,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly i64rotr: u32;
|
readonly i64rotr: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleHostFnWeights (423) */
|
/** @name PalletContractsScheduleHostFnWeights (425) */
|
||||||
export interface PalletContractsScheduleHostFnWeights extends Struct {
|
export interface PalletContractsScheduleHostFnWeights extends Struct {
|
||||||
readonly caller: u64;
|
readonly caller: u64;
|
||||||
readonly address: u64;
|
readonly address: u64;
|
||||||
@@ -3887,10 +3893,16 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly depositEventPerByte: u64;
|
readonly depositEventPerByte: u64;
|
||||||
readonly debugMessage: u64;
|
readonly debugMessage: u64;
|
||||||
readonly setStorage: u64;
|
readonly setStorage: u64;
|
||||||
readonly setStoragePerByte: u64;
|
readonly setStoragePerNewByte: u64;
|
||||||
|
readonly setStoragePerOldByte: u64;
|
||||||
readonly clearStorage: u64;
|
readonly clearStorage: u64;
|
||||||
|
readonly clearStoragePerByte: u64;
|
||||||
|
readonly containsStorage: u64;
|
||||||
|
readonly containsStoragePerByte: u64;
|
||||||
readonly getStorage: u64;
|
readonly getStorage: u64;
|
||||||
readonly getStoragePerByte: u64;
|
readonly getStoragePerByte: u64;
|
||||||
|
readonly takeStorage: u64;
|
||||||
|
readonly takeStoragePerByte: u64;
|
||||||
readonly transfer: u64;
|
readonly transfer: u64;
|
||||||
readonly call: u64;
|
readonly call: u64;
|
||||||
readonly callTransferSurcharge: u64;
|
readonly callTransferSurcharge: u64;
|
||||||
@@ -3911,7 +3923,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly ecdsaRecover: u64;
|
readonly ecdsaRecover: u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsError (424) */
|
/** @name PalletContractsError (426) */
|
||||||
export interface PalletContractsError extends Enum {
|
export interface PalletContractsError extends Enum {
|
||||||
readonly isInvalidScheduleVersion: boolean;
|
readonly isInvalidScheduleVersion: boolean;
|
||||||
readonly isOutOfGas: boolean;
|
readonly isOutOfGas: boolean;
|
||||||
@@ -3940,49 +3952,50 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isStorageDepositLimitExhausted: boolean;
|
readonly isStorageDepositLimitExhausted: boolean;
|
||||||
readonly isCodeInUse: boolean;
|
readonly isCodeInUse: boolean;
|
||||||
readonly isContractReverted: boolean;
|
readonly isContractReverted: boolean;
|
||||||
readonly type: 'InvalidScheduleVersion' | 'OutOfGas' | 'OutputBufferTooSmall' | 'TransferFailed' | 'MaxCallDepthReached' | 'ContractNotFound' | 'CodeTooLarge' | 'CodeNotFound' | 'OutOfBounds' | 'DecodingFailed' | 'ContractTrapped' | 'ValueTooLarge' | 'TerminatedWhileReentrant' | 'InputForwarded' | 'RandomSubjectTooLong' | 'TooManyTopics' | 'DuplicateTopics' | 'NoChainExtension' | 'DeletionQueueFull' | 'DuplicateContract' | 'TerminatedInConstructor' | 'DebugMessageInvalidUTF8' | 'ReentranceDenied' | 'StorageDepositNotEnoughFunds' | 'StorageDepositLimitExhausted' | 'CodeInUse' | 'ContractReverted';
|
readonly isCodeRejected: boolean;
|
||||||
|
readonly type: 'InvalidScheduleVersion' | 'OutOfGas' | 'OutputBufferTooSmall' | 'TransferFailed' | 'MaxCallDepthReached' | 'ContractNotFound' | 'CodeTooLarge' | 'CodeNotFound' | 'OutOfBounds' | 'DecodingFailed' | 'ContractTrapped' | 'ValueTooLarge' | 'TerminatedWhileReentrant' | 'InputForwarded' | 'RandomSubjectTooLong' | 'TooManyTopics' | 'DuplicateTopics' | 'NoChainExtension' | 'DeletionQueueFull' | 'DuplicateContract' | 'TerminatedInConstructor' | 'DebugMessageInvalidUTF8' | 'ReentranceDenied' | 'StorageDepositNotEnoughFunds' | 'StorageDepositLimitExhausted' | 'CodeInUse' | 'ContractReverted' | 'CodeRejected';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSudoError (425) */
|
/** @name PalletSudoError (427) */
|
||||||
export interface PalletSudoError extends Enum {
|
export interface PalletSudoError extends Enum {
|
||||||
readonly isRequireSudo: boolean;
|
readonly isRequireSudo: boolean;
|
||||||
readonly type: 'RequireSudo';
|
readonly type: 'RequireSudo';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletImOnlineBoundedOpaqueNetworkState (429) */
|
/** @name PalletImOnlineBoundedOpaqueNetworkState (431) */
|
||||||
export interface PalletImOnlineBoundedOpaqueNetworkState extends Struct {
|
export interface PalletImOnlineBoundedOpaqueNetworkState extends Struct {
|
||||||
readonly peerId: Bytes;
|
readonly peerId: Bytes;
|
||||||
readonly externalAddresses: Vec<Bytes>;
|
readonly externalAddresses: Vec<Bytes>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletImOnlineError (433) */
|
/** @name PalletImOnlineError (435) */
|
||||||
export interface PalletImOnlineError extends Enum {
|
export interface PalletImOnlineError extends Enum {
|
||||||
readonly isInvalidKey: boolean;
|
readonly isInvalidKey: boolean;
|
||||||
readonly isDuplicatedHeartbeat: boolean;
|
readonly isDuplicatedHeartbeat: boolean;
|
||||||
readonly type: 'InvalidKey' | 'DuplicatedHeartbeat';
|
readonly type: 'InvalidKey' | 'DuplicatedHeartbeat';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpStakingOffenceOffenceDetails (436) */
|
/** @name SpStakingOffenceOffenceDetails (438) */
|
||||||
export interface SpStakingOffenceOffenceDetails extends Struct {
|
export interface SpStakingOffenceOffenceDetails extends Struct {
|
||||||
readonly offender: ITuple<[AccountId32, PalletStakingExposure]>;
|
readonly offender: ITuple<[AccountId32, PalletStakingExposure]>;
|
||||||
readonly reporters: Vec<AccountId32>;
|
readonly reporters: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletIdentityRegistration (438) */
|
/** @name PalletIdentityRegistration (440) */
|
||||||
export interface PalletIdentityRegistration extends Struct {
|
export interface PalletIdentityRegistration extends Struct {
|
||||||
readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
|
readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly info: PalletIdentityIdentityInfo;
|
readonly info: PalletIdentityIdentityInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletIdentityRegistrarInfo (446) */
|
/** @name PalletIdentityRegistrarInfo (448) */
|
||||||
export interface PalletIdentityRegistrarInfo extends Struct {
|
export interface PalletIdentityRegistrarInfo extends Struct {
|
||||||
readonly account: AccountId32;
|
readonly account: AccountId32;
|
||||||
readonly fee: u128;
|
readonly fee: u128;
|
||||||
readonly fields: PalletIdentityBitFlags;
|
readonly fields: PalletIdentityBitFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletIdentityError (448) */
|
/** @name PalletIdentityError (450) */
|
||||||
export interface PalletIdentityError extends Enum {
|
export interface PalletIdentityError extends Enum {
|
||||||
readonly isTooManySubAccounts: boolean;
|
readonly isTooManySubAccounts: boolean;
|
||||||
readonly isNotFound: boolean;
|
readonly isNotFound: boolean;
|
||||||
@@ -4003,14 +4016,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned';
|
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyBid (450) */
|
/** @name PalletSocietyBid (452) */
|
||||||
export interface PalletSocietyBid extends Struct {
|
export interface PalletSocietyBid extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly kind: PalletSocietyBidKind;
|
readonly kind: PalletSocietyBidKind;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyBidKind (451) */
|
/** @name PalletSocietyBidKind (453) */
|
||||||
export interface PalletSocietyBidKind extends Enum {
|
export interface PalletSocietyBidKind extends Enum {
|
||||||
readonly isDeposit: boolean;
|
readonly isDeposit: boolean;
|
||||||
readonly asDeposit: u128;
|
readonly asDeposit: u128;
|
||||||
@@ -4019,14 +4032,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Deposit' | 'Vouch';
|
readonly type: 'Deposit' | 'Vouch';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyVouchingStatus (453) */
|
/** @name PalletSocietyVouchingStatus (455) */
|
||||||
export interface PalletSocietyVouchingStatus extends Enum {
|
export interface PalletSocietyVouchingStatus extends Enum {
|
||||||
readonly isVouching: boolean;
|
readonly isVouching: boolean;
|
||||||
readonly isBanned: boolean;
|
readonly isBanned: boolean;
|
||||||
readonly type: 'Vouching' | 'Banned';
|
readonly type: 'Vouching' | 'Banned';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyVote (457) */
|
/** @name PalletSocietyVote (459) */
|
||||||
export interface PalletSocietyVote extends Enum {
|
export interface PalletSocietyVote extends Enum {
|
||||||
readonly isSkeptic: boolean;
|
readonly isSkeptic: boolean;
|
||||||
readonly isReject: boolean;
|
readonly isReject: boolean;
|
||||||
@@ -4034,7 +4047,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Skeptic' | 'Reject' | 'Approve';
|
readonly type: 'Skeptic' | 'Reject' | 'Approve';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyError (458) */
|
/** @name PalletSocietyError (460) */
|
||||||
export interface PalletSocietyError extends Enum {
|
export interface PalletSocietyError extends Enum {
|
||||||
readonly isBadPosition: boolean;
|
readonly isBadPosition: boolean;
|
||||||
readonly isNotMember: boolean;
|
readonly isNotMember: boolean;
|
||||||
@@ -4057,7 +4070,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'BadPosition' | 'NotMember' | 'AlreadyMember' | 'Suspended' | 'NotSuspended' | 'NoPayout' | 'AlreadyFounded' | 'InsufficientPot' | 'AlreadyVouching' | 'NotVouching' | 'Head' | 'Founder' | 'AlreadyBid' | 'AlreadyCandidate' | 'NotCandidate' | 'MaxMembers' | 'NotFounder' | 'NotHead';
|
readonly type: 'BadPosition' | 'NotMember' | 'AlreadyMember' | 'Suspended' | 'NotSuspended' | 'NoPayout' | 'AlreadyFounded' | 'InsufficientPot' | 'AlreadyVouching' | 'NotVouching' | 'Head' | 'Founder' | 'AlreadyBid' | 'AlreadyCandidate' | 'NotCandidate' | 'MaxMembers' | 'NotFounder' | 'NotHead';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletRecoveryRecoveryConfig (459) */
|
/** @name PalletRecoveryRecoveryConfig (461) */
|
||||||
export interface PalletRecoveryRecoveryConfig extends Struct {
|
export interface PalletRecoveryRecoveryConfig extends Struct {
|
||||||
readonly delayPeriod: u32;
|
readonly delayPeriod: u32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -4065,14 +4078,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly threshold: u16;
|
readonly threshold: u16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletRecoveryActiveRecovery (460) */
|
/** @name PalletRecoveryActiveRecovery (462) */
|
||||||
export interface PalletRecoveryActiveRecovery extends Struct {
|
export interface PalletRecoveryActiveRecovery extends Struct {
|
||||||
readonly created: u32;
|
readonly created: u32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly friends: Vec<AccountId32>;
|
readonly friends: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletRecoveryError (461) */
|
/** @name PalletRecoveryError (463) */
|
||||||
export interface PalletRecoveryError extends Enum {
|
export interface PalletRecoveryError extends Enum {
|
||||||
readonly isNotAllowed: boolean;
|
readonly isNotAllowed: boolean;
|
||||||
readonly isZeroThreshold: boolean;
|
readonly isZeroThreshold: boolean;
|
||||||
@@ -4093,14 +4106,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotAllowed' | 'ZeroThreshold' | 'NotEnoughFriends' | 'MaxFriends' | 'NotSorted' | 'NotRecoverable' | 'AlreadyRecoverable' | 'AlreadyStarted' | 'NotStarted' | 'NotFriend' | 'DelayPeriod' | 'AlreadyVouched' | 'Threshold' | 'StillActive' | 'AlreadyProxy' | 'BadState';
|
readonly type: 'NotAllowed' | 'ZeroThreshold' | 'NotEnoughFriends' | 'MaxFriends' | 'NotSorted' | 'NotRecoverable' | 'AlreadyRecoverable' | 'AlreadyStarted' | 'NotStarted' | 'NotFriend' | 'DelayPeriod' | 'AlreadyVouched' | 'Threshold' | 'StillActive' | 'AlreadyProxy' | 'BadState';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletVestingReleases (464) */
|
/** @name PalletVestingReleases (466) */
|
||||||
export interface PalletVestingReleases extends Enum {
|
export interface PalletVestingReleases extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
readonly type: 'V0' | 'V1';
|
readonly type: 'V0' | 'V1';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletVestingError (465) */
|
/** @name PalletVestingError (467) */
|
||||||
export interface PalletVestingError extends Enum {
|
export interface PalletVestingError extends Enum {
|
||||||
readonly isNotVesting: boolean;
|
readonly isNotVesting: boolean;
|
||||||
readonly isAtMaxVestingSchedules: boolean;
|
readonly isAtMaxVestingSchedules: boolean;
|
||||||
@@ -4110,7 +4123,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotVesting' | 'AtMaxVestingSchedules' | 'AmountLow' | 'ScheduleIndexOutOfBounds' | 'InvalidScheduleParams';
|
readonly type: 'NotVesting' | 'AtMaxVestingSchedules' | 'AmountLow' | 'ScheduleIndexOutOfBounds' | 'InvalidScheduleParams';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSchedulerScheduledV3 (468) */
|
/** @name PalletSchedulerScheduledV3 (470) */
|
||||||
export interface PalletSchedulerScheduledV3 extends Struct {
|
export interface PalletSchedulerScheduledV3 extends Struct {
|
||||||
readonly maybeId: Option<Bytes>;
|
readonly maybeId: Option<Bytes>;
|
||||||
readonly priority: u8;
|
readonly priority: u8;
|
||||||
@@ -4119,15 +4132,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly origin: NodeRuntimeOriginCaller;
|
readonly origin: NodeRuntimeOriginCaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSchedulerReleases (469) */
|
/** @name PalletSchedulerError (471) */
|
||||||
export interface PalletSchedulerReleases extends Enum {
|
|
||||||
readonly isV1: boolean;
|
|
||||||
readonly isV2: boolean;
|
|
||||||
readonly isV3: boolean;
|
|
||||||
readonly type: 'V1' | 'V2' | 'V3';
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PalletSchedulerError (470) */
|
|
||||||
export interface PalletSchedulerError extends Enum {
|
export interface PalletSchedulerError extends Enum {
|
||||||
readonly isFailedToSchedule: boolean;
|
readonly isFailedToSchedule: boolean;
|
||||||
readonly isNotFound: boolean;
|
readonly isNotFound: boolean;
|
||||||
@@ -4136,7 +4141,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
|
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletPreimageRequestStatus (471) */
|
/** @name PalletPreimageRequestStatus (472) */
|
||||||
export interface PalletPreimageRequestStatus extends Enum {
|
export interface PalletPreimageRequestStatus extends Enum {
|
||||||
readonly isUnrequested: boolean;
|
readonly isUnrequested: boolean;
|
||||||
readonly asUnrequested: Option<ITuple<[AccountId32, u128]>>;
|
readonly asUnrequested: Option<ITuple<[AccountId32, u128]>>;
|
||||||
@@ -4145,7 +4150,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Unrequested' | 'Requested';
|
readonly type: 'Unrequested' | 'Requested';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletPreimageError (474) */
|
/** @name PalletPreimageError (475) */
|
||||||
export interface PalletPreimageError extends Enum {
|
export interface PalletPreimageError extends Enum {
|
||||||
readonly isTooLarge: boolean;
|
readonly isTooLarge: boolean;
|
||||||
readonly isAlreadyNoted: boolean;
|
readonly isAlreadyNoted: boolean;
|
||||||
@@ -4156,21 +4161,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'TooLarge' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';
|
readonly type: 'TooLarge' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletProxyProxyDefinition (477) */
|
/** @name PalletProxyProxyDefinition (478) */
|
||||||
export interface PalletProxyProxyDefinition extends Struct {
|
export interface PalletProxyProxyDefinition extends Struct {
|
||||||
readonly delegate: AccountId32;
|
readonly delegate: AccountId32;
|
||||||
readonly proxyType: NodeRuntimeProxyType;
|
readonly proxyType: NodeRuntimeProxyType;
|
||||||
readonly delay: u32;
|
readonly delay: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletProxyAnnouncement (481) */
|
/** @name PalletProxyAnnouncement (482) */
|
||||||
export interface PalletProxyAnnouncement extends Struct {
|
export interface PalletProxyAnnouncement extends Struct {
|
||||||
readonly real: AccountId32;
|
readonly real: AccountId32;
|
||||||
readonly callHash: H256;
|
readonly callHash: H256;
|
||||||
readonly height: u32;
|
readonly height: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletProxyError (483) */
|
/** @name PalletProxyError (484) */
|
||||||
export interface PalletProxyError extends Enum {
|
export interface PalletProxyError extends Enum {
|
||||||
readonly isTooMany: boolean;
|
readonly isTooMany: boolean;
|
||||||
readonly isNotFound: boolean;
|
readonly isNotFound: boolean;
|
||||||
@@ -4183,7 +4188,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'TooMany' | 'NotFound' | 'NotProxy' | 'Unproxyable' | 'Duplicate' | 'NoPermission' | 'Unannounced' | 'NoSelfProxy';
|
readonly type: 'TooMany' | 'NotFound' | 'NotProxy' | 'Unproxyable' | 'Duplicate' | 'NoPermission' | 'Unannounced' | 'NoSelfProxy';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletMultisigMultisig (485) */
|
/** @name PalletMultisigMultisig (486) */
|
||||||
export interface PalletMultisigMultisig extends Struct {
|
export interface PalletMultisigMultisig extends Struct {
|
||||||
readonly when: PalletMultisigTimepoint;
|
readonly when: PalletMultisigTimepoint;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -4191,7 +4196,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly approvals: Vec<AccountId32>;
|
readonly approvals: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletMultisigError (487) */
|
/** @name PalletMultisigError (488) */
|
||||||
export interface PalletMultisigError extends Enum {
|
export interface PalletMultisigError extends Enum {
|
||||||
readonly isMinimumThreshold: boolean;
|
readonly isMinimumThreshold: boolean;
|
||||||
readonly isAlreadyApproved: boolean;
|
readonly isAlreadyApproved: boolean;
|
||||||
@@ -4210,7 +4215,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'MinimumThreshold' | 'AlreadyApproved' | 'NoApprovalsNeeded' | 'TooFewSignatories' | 'TooManySignatories' | 'SignatoriesOutOfOrder' | 'SenderInSignatories' | 'NotFound' | 'NotOwner' | 'NoTimepoint' | 'WrongTimepoint' | 'UnexpectedTimepoint' | 'MaxWeightTooLow' | 'AlreadyStored';
|
readonly type: 'MinimumThreshold' | 'AlreadyApproved' | 'NoApprovalsNeeded' | 'TooFewSignatories' | 'TooManySignatories' | 'SignatoriesOutOfOrder' | 'SenderInSignatories' | 'NotFound' | 'NotOwner' | 'NoTimepoint' | 'WrongTimepoint' | 'UnexpectedTimepoint' | 'MaxWeightTooLow' | 'AlreadyStored';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBountiesBounty (488) */
|
/** @name PalletBountiesBounty (489) */
|
||||||
export interface PalletBountiesBounty extends Struct {
|
export interface PalletBountiesBounty extends Struct {
|
||||||
readonly proposer: AccountId32;
|
readonly proposer: AccountId32;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
@@ -4220,7 +4225,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly status: PalletBountiesBountyStatus;
|
readonly status: PalletBountiesBountyStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBountiesBountyStatus (489) */
|
/** @name PalletBountiesBountyStatus (490) */
|
||||||
export interface PalletBountiesBountyStatus extends Enum {
|
export interface PalletBountiesBountyStatus extends Enum {
|
||||||
readonly isProposed: boolean;
|
readonly isProposed: boolean;
|
||||||
readonly isApproved: boolean;
|
readonly isApproved: boolean;
|
||||||
@@ -4243,7 +4248,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout';
|
readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBountiesError (490) */
|
/** @name PalletBountiesError (491) */
|
||||||
export interface PalletBountiesError extends Enum {
|
export interface PalletBountiesError extends Enum {
|
||||||
readonly isInsufficientProposersBalance: boolean;
|
readonly isInsufficientProposersBalance: boolean;
|
||||||
readonly isInvalidIndex: boolean;
|
readonly isInvalidIndex: boolean;
|
||||||
@@ -4258,7 +4263,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'ReasonTooBig' | 'UnexpectedStatus' | 'RequireCurator' | 'InvalidValue' | 'InvalidFee' | 'PendingPayout' | 'Premature' | 'HasActiveChildBounty';
|
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'ReasonTooBig' | 'UnexpectedStatus' | 'RequireCurator' | 'InvalidValue' | 'InvalidFee' | 'PendingPayout' | 'Premature' | 'HasActiveChildBounty';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTipsOpenTip (491) */
|
/** @name PalletTipsOpenTip (492) */
|
||||||
export interface PalletTipsOpenTip extends Struct {
|
export interface PalletTipsOpenTip extends Struct {
|
||||||
readonly reason: H256;
|
readonly reason: H256;
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
@@ -4269,7 +4274,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly findersFee: bool;
|
readonly findersFee: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTipsError (492) */
|
/** @name PalletTipsError (493) */
|
||||||
export interface PalletTipsError extends Enum {
|
export interface PalletTipsError extends Enum {
|
||||||
readonly isReasonTooBig: boolean;
|
readonly isReasonTooBig: boolean;
|
||||||
readonly isAlreadyKnown: boolean;
|
readonly isAlreadyKnown: boolean;
|
||||||
@@ -4280,7 +4285,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ReasonTooBig' | 'AlreadyKnown' | 'UnknownTip' | 'NotFinder' | 'StillOpen' | 'Premature';
|
readonly type: 'ReasonTooBig' | 'AlreadyKnown' | 'UnknownTip' | 'NotFinder' | 'StillOpen' | 'Premature';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetDetails (493) */
|
/** @name PalletAssetsAssetDetails (494) */
|
||||||
export interface PalletAssetsAssetDetails extends Struct {
|
export interface PalletAssetsAssetDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly issuer: AccountId32;
|
readonly issuer: AccountId32;
|
||||||
@@ -4296,7 +4301,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetAccount (494) */
|
/** @name PalletAssetsAssetAccount (495) */
|
||||||
export interface PalletAssetsAssetAccount extends Struct {
|
export interface PalletAssetsAssetAccount extends Struct {
|
||||||
readonly balance: u128;
|
readonly balance: u128;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
@@ -4304,7 +4309,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly extra: Null;
|
readonly extra: Null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsExistenceReason (495) */
|
/** @name PalletAssetsExistenceReason (496) */
|
||||||
export interface PalletAssetsExistenceReason extends Enum {
|
export interface PalletAssetsExistenceReason extends Enum {
|
||||||
readonly isConsumer: boolean;
|
readonly isConsumer: boolean;
|
||||||
readonly isSufficient: boolean;
|
readonly isSufficient: boolean;
|
||||||
@@ -4314,13 +4319,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Consumer' | 'Sufficient' | 'DepositHeld' | 'DepositRefunded';
|
readonly type: 'Consumer' | 'Sufficient' | 'DepositHeld' | 'DepositRefunded';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsApproval (497) */
|
/** @name PalletAssetsApproval (498) */
|
||||||
export interface PalletAssetsApproval extends Struct {
|
export interface PalletAssetsApproval extends Struct {
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetMetadata (498) */
|
/** @name PalletAssetsAssetMetadata (499) */
|
||||||
export interface PalletAssetsAssetMetadata extends Struct {
|
export interface PalletAssetsAssetMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly name: Bytes;
|
readonly name: Bytes;
|
||||||
@@ -4329,7 +4334,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsError (499) */
|
/** @name PalletAssetsError (500) */
|
||||||
export interface PalletAssetsError extends Enum {
|
export interface PalletAssetsError extends Enum {
|
||||||
readonly isBalanceLow: boolean;
|
readonly isBalanceLow: boolean;
|
||||||
readonly isNoAccount: boolean;
|
readonly isNoAccount: boolean;
|
||||||
@@ -4349,7 +4354,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'BalanceLow' | 'NoAccount' | 'NoPermission' | 'Unknown' | 'Frozen' | 'InUse' | 'BadWitness' | 'MinBalanceZero' | 'NoProvider' | 'BadMetadata' | 'Unapproved' | 'WouldDie' | 'AlreadyExists' | 'NoDeposit' | 'WouldBurn';
|
readonly type: 'BalanceLow' | 'NoAccount' | 'NoPermission' | 'Unknown' | 'Frozen' | 'InUse' | 'BadWitness' | 'MinBalanceZero' | 'NoProvider' | 'BadMetadata' | 'Unapproved' | 'WouldDie' | 'AlreadyExists' | 'NoDeposit' | 'WouldBurn';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletLotteryLotteryConfig (500) */
|
/** @name PalletLotteryLotteryConfig (501) */
|
||||||
export interface PalletLotteryLotteryConfig extends Struct {
|
export interface PalletLotteryLotteryConfig extends Struct {
|
||||||
readonly price: u128;
|
readonly price: u128;
|
||||||
readonly start: u32;
|
readonly start: u32;
|
||||||
@@ -4358,7 +4363,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly repeat: bool;
|
readonly repeat: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletLotteryError (503) */
|
/** @name PalletLotteryError (505) */
|
||||||
export interface PalletLotteryError extends Enum {
|
export interface PalletLotteryError extends Enum {
|
||||||
readonly isNotConfigured: boolean;
|
readonly isNotConfigured: boolean;
|
||||||
readonly isInProgress: boolean;
|
readonly isInProgress: boolean;
|
||||||
@@ -4370,13 +4375,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotConfigured' | 'InProgress' | 'AlreadyEnded' | 'InvalidCall' | 'AlreadyParticipating' | 'TooManyCalls' | 'EncodingFailed';
|
readonly type: 'NotConfigured' | 'InProgress' | 'AlreadyEnded' | 'InvalidCall' | 'AlreadyParticipating' | 'TooManyCalls' | 'EncodingFailed';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltGiltBid (505) */
|
/** @name PalletGiltGiltBid (507) */
|
||||||
export interface PalletGiltGiltBid extends Struct {
|
export interface PalletGiltGiltBid extends Struct {
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltActiveGiltsTotal (506) */
|
/** @name PalletGiltActiveGiltsTotal (508) */
|
||||||
export interface PalletGiltActiveGiltsTotal extends Struct {
|
export interface PalletGiltActiveGiltsTotal extends Struct {
|
||||||
readonly frozen: u128;
|
readonly frozen: u128;
|
||||||
readonly proportion: Perquintill;
|
readonly proportion: Perquintill;
|
||||||
@@ -4384,7 +4389,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly target: Perquintill;
|
readonly target: Perquintill;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltActiveGilt (507) */
|
/** @name PalletGiltActiveGilt (509) */
|
||||||
export interface PalletGiltActiveGilt extends Struct {
|
export interface PalletGiltActiveGilt extends Struct {
|
||||||
readonly proportion: Perquintill;
|
readonly proportion: Perquintill;
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
@@ -4392,7 +4397,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly expiry: u32;
|
readonly expiry: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltError (508) */
|
/** @name PalletGiltError (510) */
|
||||||
export interface PalletGiltError extends Enum {
|
export interface PalletGiltError extends Enum {
|
||||||
readonly isDurationTooSmall: boolean;
|
readonly isDurationTooSmall: boolean;
|
||||||
readonly isDurationTooBig: boolean;
|
readonly isDurationTooBig: boolean;
|
||||||
@@ -4405,7 +4410,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'DurationTooSmall' | 'DurationTooBig' | 'AmountTooSmall' | 'BidTooLow' | 'Unknown' | 'NotOwner' | 'NotExpired' | 'NotFound';
|
readonly type: 'DurationTooSmall' | 'DurationTooBig' | 'AmountTooSmall' | 'BidTooLow' | 'Unknown' | 'NotOwner' | 'NotExpired' | 'NotFound';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesClassDetails (509) */
|
/** @name PalletUniquesClassDetails (511) */
|
||||||
export interface PalletUniquesClassDetails extends Struct {
|
export interface PalletUniquesClassDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly issuer: AccountId32;
|
readonly issuer: AccountId32;
|
||||||
@@ -4419,7 +4424,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesInstanceDetails (511) */
|
/** @name PalletUniquesInstanceDetails (513) */
|
||||||
export interface PalletUniquesInstanceDetails extends Struct {
|
export interface PalletUniquesInstanceDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly approved: Option<AccountId32>;
|
readonly approved: Option<AccountId32>;
|
||||||
@@ -4427,21 +4432,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesClassMetadata (512) */
|
/** @name PalletUniquesClassMetadata (514) */
|
||||||
export interface PalletUniquesClassMetadata extends Struct {
|
export interface PalletUniquesClassMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesInstanceMetadata (513) */
|
/** @name PalletUniquesInstanceMetadata (515) */
|
||||||
export interface PalletUniquesInstanceMetadata extends Struct {
|
export interface PalletUniquesInstanceMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesError (516) */
|
/** @name PalletUniquesError (518) */
|
||||||
export interface PalletUniquesError extends Enum {
|
export interface PalletUniquesError extends Enum {
|
||||||
readonly isNoPermission: boolean;
|
readonly isNoPermission: boolean;
|
||||||
readonly isUnknown: boolean;
|
readonly isUnknown: boolean;
|
||||||
@@ -4456,7 +4461,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NoPermission' | 'Unknown' | 'AlreadyExists' | 'WrongOwner' | 'BadWitness' | 'InUse' | 'Frozen' | 'WrongDelegate' | 'NoDelegate' | 'Unapproved';
|
readonly type: 'NoPermission' | 'Unknown' | 'AlreadyExists' | 'WrongOwner' | 'BadWitness' | 'InUse' | 'Frozen' | 'WrongDelegate' | 'NoDelegate' | 'Unapproved';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionStorageTransactionInfo (518) */
|
/** @name PalletTransactionStorageTransactionInfo (520) */
|
||||||
export interface PalletTransactionStorageTransactionInfo extends Struct {
|
export interface PalletTransactionStorageTransactionInfo extends Struct {
|
||||||
readonly chunkRoot: H256;
|
readonly chunkRoot: H256;
|
||||||
readonly contentHash: H256;
|
readonly contentHash: H256;
|
||||||
@@ -4464,7 +4469,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly blockChunks: u32;
|
readonly blockChunks: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionStorageError (519) */
|
/** @name PalletTransactionStorageError (521) */
|
||||||
export interface PalletTransactionStorageError extends Enum {
|
export interface PalletTransactionStorageError extends Enum {
|
||||||
readonly isInsufficientFunds: boolean;
|
readonly isInsufficientFunds: boolean;
|
||||||
readonly isNotConfigured: boolean;
|
readonly isNotConfigured: boolean;
|
||||||
@@ -4482,7 +4487,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'InsufficientFunds' | 'NotConfigured' | 'RenewedNotFound' | 'EmptyTransaction' | 'UnexpectedProof' | 'InvalidProof' | 'MissingProof' | 'MissingStateData' | 'DoubleCheck' | 'ProofNotChecked' | 'TransactionTooLarge' | 'TooManyTransactions' | 'BadContext';
|
readonly type: 'InsufficientFunds' | 'NotConfigured' | 'RenewedNotFound' | 'EmptyTransaction' | 'UnexpectedProof' | 'InvalidProof' | 'MissingProof' | 'MissingStateData' | 'DoubleCheck' | 'ProofNotChecked' | 'TransactionTooLarge' | 'TooManyTransactions' | 'BadContext';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBagsListListNode (520) */
|
/** @name PalletBagsListListNode (522) */
|
||||||
export interface PalletBagsListListNode extends Struct {
|
export interface PalletBagsListListNode extends Struct {
|
||||||
readonly id: AccountId32;
|
readonly id: AccountId32;
|
||||||
readonly prev: Option<AccountId32>;
|
readonly prev: Option<AccountId32>;
|
||||||
@@ -4490,13 +4495,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly bagUpper: u64;
|
readonly bagUpper: u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBagsListListBag (521) */
|
/** @name PalletBagsListListBag (523) */
|
||||||
export interface PalletBagsListListBag extends Struct {
|
export interface PalletBagsListListBag extends Struct {
|
||||||
readonly head: Option<AccountId32>;
|
readonly head: Option<AccountId32>;
|
||||||
readonly tail: Option<AccountId32>;
|
readonly tail: Option<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBagsListError (523) */
|
/** @name PalletBagsListError (525) */
|
||||||
export interface PalletBagsListError extends Enum {
|
export interface PalletBagsListError extends Enum {
|
||||||
readonly isNotInSameBag: boolean;
|
readonly isNotInSameBag: boolean;
|
||||||
readonly isIdNotFound: boolean;
|
readonly isIdNotFound: boolean;
|
||||||
@@ -4504,7 +4509,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'NotInSameBag' | 'IdNotFound' | 'NotHeavier';
|
readonly type: 'NotInSameBag' | 'IdNotFound' | 'NotHeavier';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletChildBountiesChildBounty (524) */
|
/** @name PalletChildBountiesChildBounty (526) */
|
||||||
export interface PalletChildBountiesChildBounty extends Struct {
|
export interface PalletChildBountiesChildBounty extends Struct {
|
||||||
readonly parentBounty: u32;
|
readonly parentBounty: u32;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
@@ -4513,7 +4518,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly status: PalletChildBountiesChildBountyStatus;
|
readonly status: PalletChildBountiesChildBountyStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletChildBountiesChildBountyStatus (525) */
|
/** @name PalletChildBountiesChildBountyStatus (527) */
|
||||||
export interface PalletChildBountiesChildBountyStatus extends Enum {
|
export interface PalletChildBountiesChildBountyStatus extends Enum {
|
||||||
readonly isAdded: boolean;
|
readonly isAdded: boolean;
|
||||||
readonly isCuratorProposed: boolean;
|
readonly isCuratorProposed: boolean;
|
||||||
@@ -4533,7 +4538,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Added' | 'CuratorProposed' | 'Active' | 'PendingPayout';
|
readonly type: 'Added' | 'CuratorProposed' | 'Active' | 'PendingPayout';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletChildBountiesError (527) */
|
/** @name PalletChildBountiesError (529) */
|
||||||
export interface PalletChildBountiesError extends Enum {
|
export interface PalletChildBountiesError extends Enum {
|
||||||
readonly isParentBountyNotActive: boolean;
|
readonly isParentBountyNotActive: boolean;
|
||||||
readonly isInsufficientBountyBalance: boolean;
|
readonly isInsufficientBountyBalance: boolean;
|
||||||
@@ -4541,7 +4546,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'ParentBountyNotActive' | 'InsufficientBountyBalance' | 'TooManyChildBounties';
|
readonly type: 'ParentBountyNotActive' | 'InsufficientBountyBalance' | 'TooManyChildBounties';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpRuntimeMultiSignature (529) */
|
/** @name SpRuntimeMultiSignature (531) */
|
||||||
export interface SpRuntimeMultiSignature extends Enum {
|
export interface SpRuntimeMultiSignature extends Enum {
|
||||||
readonly isEd25519: boolean;
|
readonly isEd25519: boolean;
|
||||||
readonly asEd25519: SpCoreEd25519Signature;
|
readonly asEd25519: SpCoreEd25519Signature;
|
||||||
@@ -4552,34 +4557,34 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreEcdsaSignature (530) */
|
/** @name SpCoreEcdsaSignature (532) */
|
||||||
export interface SpCoreEcdsaSignature extends U8aFixed {}
|
export interface SpCoreEcdsaSignature extends U8aFixed {}
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckNonZeroSender (533) */
|
/** @name FrameSystemExtensionsCheckNonZeroSender (535) */
|
||||||
export type FrameSystemExtensionsCheckNonZeroSender = Null;
|
export type FrameSystemExtensionsCheckNonZeroSender = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckSpecVersion (534) */
|
/** @name FrameSystemExtensionsCheckSpecVersion (536) */
|
||||||
export type FrameSystemExtensionsCheckSpecVersion = Null;
|
export type FrameSystemExtensionsCheckSpecVersion = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckTxVersion (535) */
|
/** @name FrameSystemExtensionsCheckTxVersion (537) */
|
||||||
export type FrameSystemExtensionsCheckTxVersion = Null;
|
export type FrameSystemExtensionsCheckTxVersion = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckGenesis (536) */
|
/** @name FrameSystemExtensionsCheckGenesis (538) */
|
||||||
export type FrameSystemExtensionsCheckGenesis = Null;
|
export type FrameSystemExtensionsCheckGenesis = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckNonce (539) */
|
/** @name FrameSystemExtensionsCheckNonce (541) */
|
||||||
export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
|
export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckWeight (540) */
|
/** @name FrameSystemExtensionsCheckWeight (542) */
|
||||||
export type FrameSystemExtensionsCheckWeight = Null;
|
export type FrameSystemExtensionsCheckWeight = Null;
|
||||||
|
|
||||||
/** @name PalletAssetTxPaymentChargeAssetTxPayment (541) */
|
/** @name PalletAssetTxPaymentChargeAssetTxPayment (543) */
|
||||||
export interface PalletAssetTxPaymentChargeAssetTxPayment extends Struct {
|
export interface PalletAssetTxPaymentChargeAssetTxPayment extends Struct {
|
||||||
readonly tip: Compact<u128>;
|
readonly tip: Compact<u128>;
|
||||||
readonly assetId: Option<u32>;
|
readonly assetId: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name NodeRuntimeRuntime (542) */
|
/** @name NodeRuntimeRuntime (544) */
|
||||||
export type NodeRuntimeRuntime = Null;
|
export type NodeRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // declare module
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user