Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da289238b0 | ||
|
|
8289e181cc | ||
|
|
d06860861c | ||
|
|
1797d6b42c | ||
|
|
6a9a53c48c | ||
|
|
d680b3dd39 | ||
|
|
3b479879ca | ||
|
|
ea2c942ece | ||
|
|
df2039f54d | ||
|
|
501638b2d9 | ||
|
|
d163d91909 | ||
|
|
dc7f687563 | ||
|
|
ca4802326c | ||
|
|
f9b2d26381 | ||
|
|
28a5ac4279 | ||
|
|
feb652cef3 | ||
|
|
f87479f9da | ||
|
|
2be54afe24 | ||
|
|
24d9d053a1 | ||
|
|
3299292368 | ||
|
|
58b320a791 | ||
|
|
6998d9232b | ||
|
|
43e11d8f56 | ||
|
|
22d06b93a6 | ||
|
|
bc3f066c3b | ||
|
|
de30dd5bfe | ||
|
|
a64228c9b2 | ||
|
|
5374f8448f | ||
|
|
c5371c146b | ||
|
|
5de73b706e | ||
|
|
7fc736769a | ||
|
|
747855b161 | ||
|
|
3bdf49b042 | ||
|
|
93175f6a01 | ||
|
|
b4150d5dbf | ||
|
|
dfbbfa8a7d | ||
|
|
97116a3d8a | ||
|
|
0c7fed3090 | ||
|
|
5a4414d36d | ||
|
|
7d41d34a03 | ||
|
|
f983b6aa90 | ||
|
|
9271f7f05a | ||
|
|
46c00d4883 | ||
|
|
2d26e748f0 | ||
|
|
db1a699c0a | ||
|
|
53f9abe4e2 | ||
|
|
263d2a40f3 | ||
|
|
c73c26d133 | ||
|
|
63afad4862 | ||
|
|
fca68ae286 | ||
|
|
efc4a291b1 | ||
|
|
ed14218205 | ||
|
|
4ec727ed6b | ||
|
|
a1ccedf76e | ||
|
|
ec1f6ca5f5 | ||
|
|
dcca12bc23 | ||
|
|
d9d0d7b0c8 | ||
|
|
1a5de033e6 | ||
|
|
3460a74f7e | ||
|
|
56eee35e05 | ||
|
|
bc81ca45ef | ||
|
|
7a8a4f1c64 | ||
|
|
4c811a3fdd | ||
|
|
6fcd984205 | ||
|
|
62bbf09f5c | ||
|
|
dea14bcfc4 | ||
|
|
5246a6771c | ||
|
|
bc2a51e28e | ||
|
|
dd085cee79 | ||
|
|
a1e25176dd | ||
|
|
c241d2430f | ||
|
|
0f84a4f53d | ||
|
|
200ea2310c | ||
|
|
a22a111f72 | ||
|
|
2a16dc80c9 | ||
|
|
0dcf349831 | ||
|
|
f77a97b1fe | ||
|
|
38209a3123 | ||
|
|
c0d5408d8f | ||
|
|
700812aa60 | ||
|
|
ae24a99fcb | ||
|
|
257c9579d0 | ||
|
|
74a969bb54 | ||
|
|
00b26f48b4 | ||
|
|
641ca4daee | ||
|
|
4ab9ad6765 | ||
|
|
1c3fc93ebd | ||
|
|
03f323fae1 | ||
|
|
7cae843e9b | ||
|
|
ab3b162d7e | ||
|
|
21425900bb | ||
|
|
b82bf68954 | ||
|
|
cfffa68c96 | ||
|
|
f08be2f928 | ||
|
|
f213063972 | ||
|
|
3828f41a0f | ||
|
|
bc62b46fa5 | ||
|
|
9f0a32474d | ||
|
|
ebde5a3c19 | ||
|
|
321b759723 | ||
|
|
f49f05c820 | ||
|
|
e9fec17599 | ||
|
|
6f24d2f5dc | ||
|
|
c028c69582 | ||
|
|
136ec7c600 | ||
|
|
0455a94630 | ||
|
|
3c7dc4b82a | ||
|
|
52e36534cf | ||
|
|
0320e9b410 | ||
|
|
f4655a233a | ||
|
|
4826906b6d | ||
|
|
2f2bbc01bb | ||
|
|
d8136a8e61 | ||
|
|
319535a1e9 | ||
|
|
c2944f2dc1 | ||
|
|
1fcc278381 | ||
|
|
fd87b08396 | ||
|
|
114c8d3f98 | ||
|
|
a8b38b09d6 | ||
|
|
47df39e02d | ||
|
|
dd58202af7 | ||
|
|
6ee830b838 | ||
|
|
3c3f1bf78e | ||
|
|
8282159f70 | ||
|
|
d946a99a35 | ||
|
|
2235cbde19 | ||
|
|
e89212b435 | ||
|
|
9913701e82 | ||
|
|
61a8b4041e | ||
|
|
56fb5c9985 | ||
|
|
eb9a0c4a66 | ||
|
|
ac07123e54 | ||
|
|
a9865bb60a | ||
|
|
62741a10dd | ||
|
|
c277b3d865 | ||
|
|
edde226740 | ||
|
|
88a9316dbd | ||
|
|
23b7ff1794 | ||
|
|
f1fda12353 | ||
|
|
e2e0e38d35 | ||
|
|
74279380e3 | ||
|
|
e0c5f7cab0 | ||
|
|
7a088f9ce7 | ||
|
|
d9ea5ee921 | ||
|
|
4b8792fe7c | ||
|
|
5cc25fb40c | ||
|
|
2494801d50 | ||
|
|
dbcb39734a | ||
|
|
0be50b285b | ||
|
|
2f07e1c45f | ||
|
|
39eff81207 | ||
|
|
19f3c5b16b | ||
|
|
cdd74ea084 | ||
|
|
54c96ed975 | ||
|
|
4e507246e3 | ||
|
|
d0e0008399 | ||
|
|
a6eeba83c1 | ||
|
|
541eceae82 | ||
|
|
3d0a1701fa | ||
|
|
0e46592f4d | ||
|
|
a561253de9 | ||
|
|
0c6a4754f0 | ||
|
|
60dd4e9699 | ||
|
|
f10f79c0ac | ||
|
|
8394c71cfa | ||
|
|
dd0bd21d88 | ||
|
|
58875b8125 | ||
|
|
7e0586794a | ||
|
|
d800886ee0 | ||
|
|
0bdfc37096 | ||
|
|
db3b3f606b | ||
|
|
717043c557 | ||
|
|
8cee4c462a | ||
|
|
f6f1646147 | ||
|
|
dd533f9831 | ||
|
|
5ba13358a5 | ||
|
|
3a3680194d | ||
|
|
d436e42bb0 | ||
|
|
d6d1575ba9 | ||
|
|
15e5f4d401 | ||
|
|
f4c2b150d3 | ||
|
|
c1d727fbe8 | ||
|
|
475891575b | ||
|
|
02b7807ba5 | ||
|
|
d15f0b3ac5 | ||
|
|
e8f782e1f2 | ||
|
|
0f627bed2d | ||
|
|
427cf3e105 | ||
|
|
9e98f81dc0 | ||
|
|
f98422c42b | ||
|
|
267c6242a3 | ||
|
|
94cbbf5356 | ||
|
|
c1b1ad7843 | ||
|
|
ce5769471f | ||
|
|
09222d9055 | ||
|
|
9c4554ddb3 | ||
|
|
1ba4c0c277 | ||
|
|
ac46305d15 | ||
|
|
ad59abfc37 | ||
|
|
5a48ca3a0a | ||
|
|
d3dabadf95 | ||
|
|
212d0e33ae | ||
|
|
a6adeb739f | ||
|
|
cd440ea3c4 | ||
|
|
eb480d7ce9 | ||
|
|
298397f499 | ||
|
|
6b17bf5a7a | ||
|
|
3b3da09f33 | ||
|
|
976d708fae | ||
|
|
92c250e9a7 | ||
|
|
ba43c288fe | ||
|
|
ef0d1f4e8a | ||
|
|
cc31d1176e | ||
|
|
b45e0d4e0d | ||
|
|
3b894da9f2 | ||
|
|
83500c05b3 | ||
|
|
c554e5eef7 | ||
|
|
6b655838a0 | ||
|
|
4bd23463ab | ||
|
|
9c758cce95 | ||
|
|
abdc50f405 | ||
|
|
b849d50995 | ||
|
|
3d2307f12a | ||
|
|
320135dbe5 | ||
|
|
074e790bfc | ||
|
|
d561fc9dc7 | ||
|
|
8b37ed6dda | ||
|
|
d2a7df9e0b | ||
|
|
66ab71b29e | ||
|
|
8d2300ca3f | ||
|
|
b4bb6613b1 | ||
|
|
2389ea16e1 | ||
|
|
e33139919f | ||
|
|
4c8e7135de | ||
|
|
4115a93ed3 | ||
|
|
a7526ba5f3 | ||
|
|
8fe02a1434 | ||
|
|
ac25d0704d | ||
|
|
82d0bfc51b | ||
|
|
8e514ad511 | ||
|
|
abb45e5fcf | ||
|
|
71273dbce3 | ||
|
|
3d5b69d6e6 | ||
|
|
d51ddc70f9 | ||
|
|
9052f16e0f | ||
|
|
dd19d17b60 | ||
|
|
58ba63069a | ||
|
|
6206569e5b | ||
|
|
c3bb18fbaf | ||
|
|
186cfc93b5 |
@@ -1,25 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
const base = require('@polkadot/dev/config/eslint.cjs');
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
ignorePatterns: [
|
||||
...base.ignorePatterns,
|
||||
'/scripts'
|
||||
],
|
||||
parserOptions: {
|
||||
...base.parserOptions,
|
||||
project: [
|
||||
'./tsconfig.eslint.json'
|
||||
]
|
||||
},
|
||||
rules: {
|
||||
...base.rules,
|
||||
// add override for any (a metric ton of them, initial conversion)
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
// this seems very broken atm, false positives
|
||||
'@typescript-eslint/unbound-method': 'off'
|
||||
}
|
||||
};
|
||||
@@ -11,6 +11,6 @@ jobs:
|
||||
steps:
|
||||
- uses: jacogr/action-approve@795afd1dd096a2071d7ec98740661af4e853b7da
|
||||
with:
|
||||
authors: jacogr
|
||||
authors: jacogr, TarikGul
|
||||
labels: -auto
|
||||
token: ${{ secrets.GH_PAT_BOT }}
|
||||
|
||||
@@ -13,13 +13,13 @@ jobs:
|
||||
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
|
||||
with:
|
||||
github-token: ${{ secrets.GH_PAT_BOT }}
|
||||
issue-lock-inactive-days: '7'
|
||||
issue-lock-comment: >
|
||||
issue-inactive-days: '7'
|
||||
issue-comment: >
|
||||
This thread has been automatically locked since there has not been
|
||||
any recent activity after it was closed. Please open a new issue
|
||||
if you think you have a related problem or query.
|
||||
pr-lock-inactive-days: '2'
|
||||
pr-lock-comment: >
|
||||
pr-inactive-days: '2'
|
||||
pr-comment: >
|
||||
This pull request has been automatically locked since there
|
||||
has not been any recent activity after it was closed.
|
||||
Please open a new issue for related bugs.
|
||||
|
||||
@@ -21,5 +21,5 @@ jobs:
|
||||
- name: ${{ matrix.step }}
|
||||
if: always()
|
||||
run: |
|
||||
yarn install --immutable | grep -v 'YN0013'
|
||||
yarn install --immutable
|
||||
yarn ${{ matrix.step }}
|
||||
|
||||
@@ -27,5 +27,5 @@ jobs:
|
||||
node-version: 'lts/*'
|
||||
- name: ${{ matrix.step }}
|
||||
run: |
|
||||
yarn install --immutable | grep -v 'YN0013'
|
||||
yarn install --immutable
|
||||
yarn ${{ matrix.step }}
|
||||
|
||||
@@ -19,6 +19,7 @@ NOTES.md
|
||||
!.yarn/plugins
|
||||
.pnp.*
|
||||
.vscode/
|
||||
.idea/
|
||||
cc-test-reporter
|
||||
lerna-debug.log*
|
||||
npm-debug.log*
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
||||
|
||||
Vendored
-363
File diff suppressed because one or more lines are too long
-550
File diff suppressed because one or more lines are too long
Vendored
-785
File diff suppressed because one or more lines are too long
+893
File diff suppressed because one or more lines are too long
+9
-7
@@ -1,13 +1,15 @@
|
||||
compressionLevel: mixed
|
||||
|
||||
enableGlobalCache: false
|
||||
|
||||
enableImmutableInstalls: false
|
||||
|
||||
enableProgressBars: false
|
||||
|
||||
logFilters:
|
||||
- code: YN0013
|
||||
level: discard
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
||||
spec: "@yarnpkg/plugin-version"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.2.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||
|
||||
+211
@@ -1,5 +1,216 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 10.12.2 Mar 11, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- fix cache key (rpc-provider) (Thanks to https://github.com/ermalkaleci)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Substrate metadata
|
||||
|
||||
|
||||
## 10.12.1 Mar 4, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Ink! V5 Support (Thanks to https://github.com/peetzweg)
|
||||
|
||||
|
||||
## 10.11.3 Feb 27, 2024
|
||||
|
||||
Contributed:
|
||||
|
||||
- Fix sorting of `Option` values and error on duplicates from BTreeSet/BTreeMap (Thanks to https://github.com/Neopallium)
|
||||
- Fix BEEFY compact signed commitment in versioned finality proofs (Thanks to https://github.com/mfornos)
|
||||
- Update @substrate/connect (Thanks to https://github.com/kratico)
|
||||
|
||||
Changes:
|
||||
|
||||
- Bump dev w/ packageDetect adjustments
|
||||
- Update copyright year
|
||||
- Bump nock, and dev deps
|
||||
- Allow `cacheCapacity` option for the `WsProvider`
|
||||
- Bump yarn
|
||||
|
||||
|
||||
## 10.11.2 Dec 18, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add `chainIsEthereum` key to `Registry` interface (Thanks to https://github.com/fgamundi)
|
||||
- Adjust types for `ChargeAssetTxPayment` (Thanks to https://github.com/bee344)
|
||||
|
||||
Changes:
|
||||
|
||||
- Support `[8a;32]` types in known keys
|
||||
- Update to latest Substrate metadata
|
||||
|
||||
|
||||
## 10.11.1 Nov 18, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Support for latest `ChargeAssetTxPayment` (Thanks to https://github.com/bee344)
|
||||
- Support for latest `beefy::subscribeJustifications()` (Thanks to https://github.com/serban300)
|
||||
|
||||
Changes:
|
||||
|
||||
- Add known `intrablockEntropy` storage key
|
||||
- Add support for `SkipCheckIfFeeless` signed extension
|
||||
- Ensure all usages of `balances.transfer` (in tests) have been removed
|
||||
- Drop support for Node 16 (EOL 11 Sep 2023)
|
||||
|
||||
|
||||
## 10.10.1 Oct 14, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add aliases for Noir type paths (Thanks to https://github.com/conr2d)
|
||||
- Add runtime `FungliblesApi` version 2 (Thanks to https://github.com/bkontur)
|
||||
- Add runtime `EthereumApi` version 5 (Thanks to https://github.com/timbrinded)
|
||||
- Add runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
|
||||
- Adjust types for runtime `AssetConversionApi` (Thanks to https://github.com/jsidorenko)
|
||||
- Expand test cases for `Int` conversions (Thanks to https://github.com/peetzweg)
|
||||
- Add `isEthereum` to chain properties (Thanks to https://github.com/fgamundi)
|
||||
- Allow RiscV contracts via check (Thanks to https://github.com/statictype)
|
||||
|
||||
Changes:
|
||||
|
||||
- Serialize any additional payload fields via `toJSON()`
|
||||
- Expose internal `rpc-core` stats on `api.stats` getter
|
||||
- Add support for latest/stable V15 metadata interfaces
|
||||
- Add runtime `BeefyApi` version 3
|
||||
- Add runtime `ParachainHost` version 5
|
||||
- Expose `chain.subscribeFinalizedBlocks` derive
|
||||
- Consistently use `import.meta.url` inside tests
|
||||
- Group `Uint/Int` tests for maintainability
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.9.1 Jun 12, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust object index access for stricter tsconfig settings
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.8.1 Jun 5, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Added support for extended Contracts ABI V4 definitions (Thanks to https://github.com/statictype)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Cleanup (some) linting overrides
|
||||
|
||||
|
||||
## 10.7.3 May 28, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Ensure that `.paymentInfo` never mutates the underlying/existing signature
|
||||
|
||||
|
||||
## 10.7.2 May 21, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Allow `api.setSigner(...)` to clear existing (Thanks to https://github.com/polymath-eric)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust `@polkadot/types-create` exports with no duplicates
|
||||
|
||||
|
||||
## 10.7.1 May 13, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Add `module` to `package.json` export map (ESM-only)
|
||||
|
||||
|
||||
## 10.6.1 May 7, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Extract runtime details for custom documentation (Thanks to https://github.com/FlorianFranzen)
|
||||
|
||||
Changes:
|
||||
|
||||
- Apply historic `Scheduled` types for Kusama (as reported, non-comprehensive)
|
||||
- Adjust Deno types inside `WsProvider`
|
||||
- Allow parsing of (experimental) metadata v15
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.5.1 Apr 29, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Default to hex-only in `Int/UInt.toJSON` for > 128-bit values
|
||||
- Allow for disabling of `isPedantic` storage checks in API options
|
||||
- Adjust usage of `objectSpread`, default to runtime as required
|
||||
- Adjust compilation output for `__internal__` class fields
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.4.1 Apr 22, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Apply `noInitWarn` flag to signed extension warnings (Thanks to https://github.com/xlc)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust `AccountId20` detection with partial match
|
||||
- Cleanup block author extraction derives
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Drop support for Node 14 (EOL 30 Apr 2023)
|
||||
|
||||
|
||||
## 10.3.4 Apr 16, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Ensure block author extract uses the correct as-at block construction state
|
||||
|
||||
|
||||
## 10.3.3 Apr 15, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add support for Fungibles runtime api (Thanks to https://github.com/bkontur)
|
||||
- Update Nimbus Collator lookups (Thanks to https://github.com/grenade)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Minimal support for a `@tsconfig/stricter` setup
|
||||
|
||||
|
||||
## 10.3.2 Apr 10, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Revert throw on MSB BitVec (`toHuman()` output is still incorrect)
|
||||
|
||||
|
||||
## 10.3.1 Apr 9, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Add `BitVec.toBoolArray()` helper function
|
||||
- Tie down `BitVec` from metadata to only allow (default) Lsb
|
||||
- Support for `TransactionPaymentApi/4`
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.2.2 Apr 1, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
+20
-5
@@ -1,20 +1,21 @@
|
||||
3422 Jaco 10.2.2 (#5573)
|
||||
3512 Jaco Bump deps (#5785)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||
18 Xiliang Chen fix unkown rpc (#5325)
|
||||
19 Xiliang Chen no warm for unknown signed extensions (#5601)
|
||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
10 Tarik Gul 10.12.2 (#5814)
|
||||
6 Andreea Eftene Update check for contract instantiation (#5699)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||
4 Alexander Popiak Add asset id in signing (#4009)
|
||||
4 Andreea Eftene add type overrides (#5506)
|
||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||
4 Nantian fix bigint type (#3869)
|
||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||
@@ -22,23 +23,31 @@
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
3 Branislav Kontur Added FungiblesApi version 2 (#5687)
|
||||
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
|
||||
3 hamidra add support for n key entries for NMaps (#3886)
|
||||
3 Hamza Tokuchi more typos (#2532)
|
||||
3 Josep M Sobrepere docs: improve rpc-provider README (#4719)
|
||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||
3 Matias Volpe chore: bump @substrate/connect to 0.8.7 (#5797)
|
||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||
3 YJ feat: Vote interface as U8a (#1061)
|
||||
2 Alberto Nicolas Penayo updated remaining assetId for ChargeAssetTxPayment (#5763)
|
||||
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||
2 Branan Riley Add proxy type for Centrifuge (#3940)
|
||||
2 Caio Add `Range` and `RangeInclusive` types (#3791)
|
||||
2 Francisco Gamundi Add chainIsEthereum prop to Registry interface (#5761)
|
||||
2 HackFisher Update maxExtrinsic definition (#4703)
|
||||
2 Jakub Pánik All heads subscription (#1899)
|
||||
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||
2 Jeeyong Um Alias for Noir types (#5678)
|
||||
2 Jegor Sidorenko Use Box<XcmV3MultiLocation> instead of MultiAssetId (#5700)
|
||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||
2 MOZGIII Follow-up fix after #4665 (#4666)
|
||||
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
||||
2 peetzweg/ feat: ink! v5 (#5791)
|
||||
2 rob thijssen nimbus author mapping correction (#5590)
|
||||
2 sung wu Update tx.md (#2485)
|
||||
2 Veliko Abi constructor takes different parameters (#3347)
|
||||
2 Wei Tang Use /usr/bin/env bash instead of /bin/bash (#2053)
|
||||
@@ -61,7 +70,9 @@
|
||||
1 djuanito.eth Update fees to current constants (#2320)
|
||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
|
||||
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
|
||||
@@ -70,7 +81,6 @@
|
||||
1 Hyungsuk Kang Update fees.ts (#1014)
|
||||
1 icodezjb Update SessionKeys (#3035)
|
||||
1 iiiiiiii Make unknownTypes externally accessible (#3263)
|
||||
1 Jeeyong Um Fix inaccessible yargs instance error (#5531)
|
||||
1 JesseAbram added 07 Example showing how to make a transfer with allowed block permissions folder in docs (#1062)
|
||||
1 Joey don't throw error at `onSocketClose` (#4363)
|
||||
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||
@@ -82,6 +92,7 @@
|
||||
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||
1 Lezek123 BTreeSet and BTreeMap - encoding and serialization fixes (#3789)
|
||||
1 Lovesh Harchandani Fix name of "getBlock" in package "api-derive" and export it in "index.ts" (#2857)
|
||||
1 Marc Fornós add beefy compact signed commitment definition (#5781)
|
||||
1 Mario Neises fix usage with typescript (#405)
|
||||
1 Mario Pino Add PolkaStats to API users (#1593)
|
||||
1 Mark Robert Henderson Update warnings.ts to have the latest URLs (#2720)
|
||||
@@ -95,11 +106,12 @@
|
||||
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
||||
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
||||
1 polymath-eric Allow unset external signer (#5649)
|
||||
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
|
||||
1 qiuhao update DeriveCustom type (#2581)
|
||||
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
||||
1 rob thijssen support manta author lookup (#5561)
|
||||
1 Robert Gabriel Jakabosky Fix sorting of `Option` values and error on duplicates from BTreeSet/BTreeMap. (#5731)
|
||||
1 Robert Hambrock update MMR API (#5479)
|
||||
1 Rocco Musolino remove broken link (#2671)
|
||||
1 sander2 fix: type generation for nested tuples (#5395)
|
||||
@@ -107,12 +119,15 @@
|
||||
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||
1 Sean Young Solang requires u256 and i256 types (#2752)
|
||||
1 Serban Iorga Fix `beefy::subscribeJustifications()` return type (#5740)
|
||||
1 serge make WS provider timeout configurable (#4758)
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 Shunji Zhan small polish (#5276)
|
||||
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
||||
1 Tim B added EthRTApiV5 ifaces (#5680)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
1 xiaolou86 Fix typos (#5747)
|
||||
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)
|
||||
@@ -1,8 +1,8 @@
|
||||
# @polkadot/api
|
||||
|
||||
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the classes, interfaces and their use, visit the [documentation portal](https://polkadot.js.org/docs/api/).
|
||||
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the interfaces and their use, visit the [documentation portal](https://polkadot.js.org/docs/api/).
|
||||
|
||||
If you are an existing user, please be sure to track the [CHANGELOG](CHANGELOG.md) and [UPGRADING](UPGRADING.md) guides when changing versions.
|
||||
If you are an existing user, please be sure to track the [CHANGELOG](CHANGELOG.md) when changing versions.
|
||||
|
||||
## tutorials
|
||||
|
||||
|
||||
-201
@@ -1,201 +0,0 @@
|
||||
# Upgrade guide
|
||||
|
||||
This is an upgrade guide for users of the API. It does not attempt to detail each version (the [CHANGELOG](CHANGELOG.md) has all the changes between versions), but rather tries to explain the rationale behind major breaking changes and how users of the API should handle this.
|
||||
|
||||
While we try to keep the user-facing interfaces as stable as possible, sometimes you just need to make additions to move forward and improve things down the road, as painful as they may be. Like you, we are also users of the API, and eat our own dog food - and as such, feel any pains introduced first.
|
||||
|
||||
|
||||
## 0.97.1 (and newer)
|
||||
|
||||
The 0.97 series lays the groundwork to allow type registration to be ties to a specific chain and a specific Api instance. In the past, 2 Api instances in the same process would share types, which mean that you could not connect to 2 independent chains with different types. This is very problematic for Polkadot chains, where the idea is to connect to multiple chains.
|
||||
|
||||
When using the Api, a new `Registry` will be created on using `new Api(...)` or `Api.create(...)` and this will be transparently passed when creating types. In the cases where you create type instances explicitly or create type classes for injection, you would need to make adjustments.
|
||||
|
||||
### Type classes
|
||||
|
||||
In a number of instances, developers are creating classes and making these available for interacting with their chains. For instance, an example of a custom type could be -
|
||||
|
||||
```js
|
||||
import { Struct, Text, u32 } from '@polkadot/types';
|
||||
|
||||
export class Preferences extends Struct {
|
||||
constructor (value?: ahy) {
|
||||
super({
|
||||
name: Text,
|
||||
id: u32
|
||||
}, value);
|
||||
}
|
||||
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
In the current iteration, the underlying `@polkadot/types` bases structures now require a `Registry` to be passed as the first parameter. This means that the above signature would be adjusted to -
|
||||
|
||||
```js
|
||||
// the next import is only required for TypeScript
|
||||
import { Registry } from '@polkadot/types/types';
|
||||
import { Struct, Text, u32 } from '@polkadot/types';
|
||||
|
||||
export class Preferences extends Struct {
|
||||
constructor (registry: Registry, value?: ahy) {
|
||||
super(registry, {
|
||||
name: Text,
|
||||
id: u32
|
||||
}, value);
|
||||
}
|
||||
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Where the type is used or returned from the API, the `Registry` will be automatically passed to class creation.
|
||||
|
||||
### createType
|
||||
|
||||
Previously, when creating a type instance such as `BlockNumber`, you would do `api.createType('BlockNumber', <initValue>)`, this is unchanged. In the cases where you directly import from `@polkadot/types`, the following pattern is required -
|
||||
|
||||
```js
|
||||
import { createType } from '@polkadot/types';
|
||||
|
||||
...
|
||||
const blockNumber = createType(api.registry, 'BlockNumber', 12345);
|
||||
```
|
||||
|
||||
In some cases, you would want to explicitly pass a `Registry` interface to the API, instead of relying on it explicitly. This is generally applicable in the cases where you want to use the `createType` independently from the API -
|
||||
|
||||
```js
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { TypeRegistry, createType } from '@polkadot/types';
|
||||
|
||||
...
|
||||
const registry = new TypeRegistry();
|
||||
const blockNumber = createType(registry, 'BlockNumber', 12345);
|
||||
const api = await ApiPromise.create({ registry });
|
||||
```
|
||||
|
||||
### Extrinsic metadata
|
||||
|
||||
In some applications, the undocumented `findFunction` has been used to determine the Api has the metadata for a specific extrinsic. The has been exposed on top of `GenericCall`, and it typically used in applications such as signers. Along with the compulsory registry, the above functions have been moved to the `Registry` itself, so if you previously had -
|
||||
|
||||
```js
|
||||
const { meta, method, section } = GenericCall.findFunction(extrinsic.callIndex);
|
||||
```
|
||||
|
||||
You need to change it to -
|
||||
|
||||
```js
|
||||
const { meta, method, section } = registry.findMetaCall(extrinsic.callIndex);
|
||||
```
|
||||
|
||||
## 0.90.1 (and newer), from 0.81.1 (and older)
|
||||
|
||||
The 0.90.1 release caters for the [Kusama network](https://kusama.network/) and pulls in all the changes to support [Substrate 2.x](https://github.com/paritytech/substrate), all while maintaining backwards compatibility to allow operation on networks such as [Polkadot's Alexander](https://polkadot.network/).
|
||||
|
||||
To support the network and the new transaction formats, a number of changes were made to how extrinsics are handled and signed. In addition, as support for ongoing work where type definitions are to be supplied by the actual node metadata, the foundation has been laid to move to type definitions as opposed to classes for runtime types.
|
||||
|
||||
### Modules
|
||||
|
||||
The first thing to be aware of is breakages when connecting to any new network, here older networks such as Alex are unaffected - the node metadata defines exactly what is available to the chain, so endpoints that worked yesterday still works today.
|
||||
|
||||
There will no doubt be breakages in using calls to now non-existent endpoints (as populated by the metadata) if you are upgrading your nodes to Substrate 2.x. Substrate 2.x has had a number of internal changes, where new modules and features are introduced (such as `babe` and `technicalCommittee`), some modules have been renamed (such as `contract` -> `contracts`) and modules such as `session` has been reworked to a large degree.
|
||||
|
||||
To cater for both 1.x and 2.x support, the [@polkadot/api-derive](packages/api-derive) endpoints, do feature detection for the node type and should continue working as-is. Additionally, a number of new derives have been added, specifically around elections.
|
||||
|
||||
### Type renames
|
||||
|
||||
To better align with the actual types from the metadata, and avoid (too much) context switching, some types from the `@polkadot/types` have been renamed. These include -
|
||||
|
||||
- `Vector` -> `Vec`
|
||||
- `U{8|16|32|64|128|256}` have been removed, only the lowercase version of these remain, i.e. `u32`.
|
||||
|
||||
### Type usage
|
||||
|
||||
The [@polkadot/api](packages/api) has always handled the conversion of types for parameters when making calls or queries. For example, when making a transfer to `BOB` (address), any of the following is valid -
|
||||
|
||||
- `api.tx.balances.transfer(BOB, 12345)` - value specified as a number
|
||||
- `api.tx.balances.transfer(BOB, '12345')` - value specified as a string
|
||||
- `api.tx.balances.transfer(BOB, '0x3039')` - value specified as a hex
|
||||
- `api.tx.balances.transfer(BOB, new BN(12345))` - value specified as a [BN](https://github.com/indutny/bn.js/)
|
||||
|
||||
Internally the API will take the input and convert the value into a `Balance`, serialize it using the SCALE codec and transfer it to the node. In some cases users would construct the `Balance` type manually, by importing the class and calling `new` on it. This last approach has now been removed, and where classes are still available (limited reach), discouraged.
|
||||
|
||||
First the rationale behind this - in all cases Substrate is very flexible, so while Polkadot (and the Substrate base), define `type Balance = u128`, this can be different between chains. (This also applies to the majority of built-in supported types). As such, type construction should be done via the actual registered types.
|
||||
|
||||
```js
|
||||
// this is applicable everywhere, import the type creator, using the registry
|
||||
import { createType } from '@polkadot/types';
|
||||
|
||||
// construct the Balance, of type Balance (type is inferred and available with TS)
|
||||
const value = createType('Balance', 12345);
|
||||
|
||||
// use value here as you normally would
|
||||
...
|
||||
```
|
||||
|
||||
The impact of this will be noticeable, if you have been importing the old-style type classes from `@polkadot/types`, those imports are not available anymore. For creation, just pass everything through the `createType`.
|
||||
|
||||
If a TypeScript user, you can find the updated type (it is a type definition only, not a class), under `@polkadot/types/interfaces`. To do type casting, using interfaces -
|
||||
|
||||
```js
|
||||
// import the TypeScript runtime interfaces we wish to use
|
||||
import { Balance, Hash } from '@polkadot/types/interfaces';
|
||||
|
||||
// import the primitives we wish to use
|
||||
import { createType, Compact, Vec, u32 } from '@polkadot/types';
|
||||
|
||||
// define an interface we want to use inside our code
|
||||
interface MyProps {
|
||||
balance: Compact<Balance>;
|
||||
changes: Vec<Hash>;
|
||||
counter?: u32;
|
||||
}
|
||||
|
||||
// assign something to this structure
|
||||
const props = {
|
||||
balance: createType('Compact<Balance>', 12345),
|
||||
changes: createType('Vec<Hash>', []) // empty for now
|
||||
};
|
||||
```
|
||||
|
||||
### Type definitions
|
||||
|
||||
One of the major pain points in working with a custom Substrate node is the definition of types to cater for chains. There are 2 approaches: defining types via a JSON format or extending your own classes in TypeScript (or JS) and injecting these. For the latter category, there are some impacts in the way you define these.
|
||||
|
||||
If using JSON definitions, nothing changes, your types are still defined as -
|
||||
|
||||
```json
|
||||
{
|
||||
"MyStruct": {
|
||||
"balance": "Compact<Balance>",
|
||||
"values": "Vec<AccountId>",
|
||||
"counter": "u32"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
For the definition of any structures using the Substrate specific types as classes, some adjustments are needed. Since the base modules types are now not available in classes, however it is needed for definitions, the following approach is encouraged -
|
||||
|
||||
```js
|
||||
// import the ClassOf, it works the same as `createType` (along with type detection)
|
||||
// and acts as a replacement for the direct import and use of specific classes
|
||||
import { ClassOf, Struct, u32 } from '@polkadot/types';
|
||||
|
||||
export class MyStruct extends Struct {
|
||||
constructor (value?: any) {
|
||||
super({
|
||||
balance: ClassOf('Compact<Balance>'),
|
||||
values: ClassOf('Vec<AccountId>'),
|
||||
counter: u32
|
||||
}, value);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Internally the [@polkadot/types](packages/types) package now only defines classes where there are specific encoding logic applied. For all other types, the definitions are done via a JSON-like format and then the TypeScript definitions are generated from these. (In a world where nodes inject types and the type definitions are not needed, this functionality will be useful to allow TS developers to auto-generate type definitions based on what the node defines.)
|
||||
|
||||
### Signing transactions (Signer interface)
|
||||
|
||||
For users of the API signer interfaces (such as extensions and mobile signers), the interfaces have undergone some changes to cater for the extrinsic v2 format as defined by Substrate. If you are only supporting current chains (e.g. Alexander), no changes are required, however the old `sign` interface does not support chains such as Kusama, so all users are encouraged to upgrade to the new `signPayload` interface.
|
||||
|
||||
This has already been implemented in both the [polkadot-js extension](https://github.com/polkadot-js/extension/blob/5f22f67d558655c605eb6f6beecef6826ed6c159/packages/extension/src/page/Signer.ts#L16v) as well as the [simple single signer](https://github.com/polkadot-js/api/blob/d56905d1b566be6f17eb570ac01448378fc91b67/packages/api/test/util/SingleAccountSigner.ts#L37).
|
||||
@@ -0,0 +1,23 @@
|
||||
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import baseConfig from '@polkadot/dev/config/eslint';
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
// see the tsconfig.eslint.json for explanation
|
||||
'packages/api-augment/src/kusama/*.ts',
|
||||
'packages/api-augment/src/polkadot/*.ts'
|
||||
]
|
||||
},
|
||||
...baseConfig,
|
||||
{
|
||||
rules: {
|
||||
// add override for any (a metric ton of them, initial conversion)
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
// we generally use this in isFunction, not via calling
|
||||
'@typescript-eslint/unbound-method': 'off'
|
||||
}
|
||||
}
|
||||
];
|
||||
+8
-8
@@ -6,7 +6,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "yarn@3.2.0",
|
||||
"packageManager": "yarn@4.1.0",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -14,17 +14,17 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.2.2",
|
||||
"version": "10.12.2",
|
||||
"versions": {
|
||||
"git": "10.2.2",
|
||||
"npm": "10.2.2"
|
||||
"git": "10.12.2",
|
||||
"npm": "10.12.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||
"build:before": "(cd packages/typegen && polkadot-dev-copy-dir scripts build/scripts)",
|
||||
"build:before": "polkadot-dev-copy-dir --cd packages/typegen scripts build",
|
||||
"build:interfaces": "node --loader @polkadot/dev-ts packages/typegen/scripts/polkadot-types-internal-interfaces.mjs",
|
||||
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||
"build:release": "polkadot-ci-ghact-build",
|
||||
@@ -40,11 +40,11 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.72.29",
|
||||
"@polkadot/dev": "^0.78.9",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^18.15.11"
|
||||
"@types/node": "^20.11.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.0.3"
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "API generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -14,19 +14,19 @@
|
||||
"url": "https://github.com/polkadot-js/api.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2",
|
||||
"version": "10.12.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.2.2",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
"@polkadot/api-base": "10.12.2",
|
||||
"@polkadot/rpc-augment": "10.12.2",
|
||||
"@polkadot/types": "10.12.2",
|
||||
"@polkadot/types-augment": "10.12.2",
|
||||
"@polkadot/types-codec": "10.12.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// for the API, we decorate not only the endpoints, but all types
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './substrate/index.js';
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
||||
|
||||
export default [baseInfo, typesInfo, codecInfo];
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import others from './detectOther.js';
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, others);
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './detectPackage.js';
|
||||
import './packageDetect.js';
|
||||
|
||||
export * from './bundle.js';
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KusamaRuntimeHoldReason, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -52,6 +52,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max number of authorities allowed
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -91,6 +95,29 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
beefy: {
|
||||
/**
|
||||
* The maximum number of authorities that can be added.
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||
* value should relate to the bonding duration of whatever staking system is
|
||||
* being used (if any). If equivocation handling is not enabled then this value
|
||||
* can be zero.
|
||||
**/
|
||||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The amount held on deposit for placing a bounty proposal.
|
||||
@@ -181,12 +208,13 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
||||
* least `ExistentialDeposit`.
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
||||
* at least `ExistentialDeposit`.
|
||||
**/
|
||||
minContribution: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b"py/cfund")`
|
||||
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
||||
* `PalletId(*b"py/cfund")`
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -209,16 +237,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||
* implementation.
|
||||
@@ -337,6 +355,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
@@ -408,6 +430,34 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The size of the page; this implies the maximum message size which can be sent.
|
||||
*
|
||||
* A good value depends on the expected message sizes, their weights, the weight that is
|
||||
* available for processing them and the maximal needed message size. The maximal message
|
||||
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
||||
**/
|
||||
heapSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
||||
* can happen. Once there are more stale pages than this, then historical pages may be
|
||||
* dropped, even if they contain unprocessed overweight messages.
|
||||
**/
|
||||
maxStale: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of weight (if any) which should be provided to the message queue for
|
||||
* servicing enqueued items.
|
||||
*
|
||||
* This may be legitimately `None` in the case that you will call
|
||||
* `ServiceQueues::service_queues` manually.
|
||||
**/
|
||||
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
@@ -445,10 +495,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Must be no greater than `MaxQueueLen`.
|
||||
**/
|
||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The identifier of the hold reason.
|
||||
**/
|
||||
holdReason: KusamaRuntimeHoldReason & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||
*
|
||||
@@ -684,7 +730,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The deposit to be paid to run a parathread.
|
||||
* The deposit to be paid to run a on-demand parachain.
|
||||
* This should include the cost for storing the genesis head and validation code.
|
||||
**/
|
||||
paraDeposit: u128 & AugmentedConst<ApiType>;
|
||||
@@ -700,6 +746,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -722,27 +772,31 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
society: {
|
||||
/**
|
||||
* The minimum amount of a deposit required for a bid to be made.
|
||||
**/
|
||||
candidateDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between membership challenges.
|
||||
**/
|
||||
challengePeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of candidates that we accept per round.
|
||||
* The number of blocks on which new candidates can claim their membership and be the
|
||||
* named head.
|
||||
**/
|
||||
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
|
||||
claimPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of strikes before a member gets funds slashed.
|
||||
**/
|
||||
graceStrikes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of bids at once.
|
||||
**/
|
||||
maxBids: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum duration of the payout lock.
|
||||
**/
|
||||
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of times a member may vote the wrong way (or not at all, when they are a
|
||||
* skeptic) before they become suspended.
|
||||
* The maximum number of payouts a member may have waiting unclaimed.
|
||||
**/
|
||||
maxStrikes: u32 & AugmentedConst<ApiType>;
|
||||
maxPayouts: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The societies's pallet id
|
||||
**/
|
||||
@@ -752,14 +806,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
periodSpend: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between candidate/membership rotation periods.
|
||||
* The number of blocks on which new candidates should be voted on. Together with
|
||||
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
||||
**/
|
||||
rotationPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of the unpaid reward that gets deducted in the case that either a skeptic
|
||||
* doesn't vote or someone votes in the wrong way.
|
||||
**/
|
||||
wrongSideDeduction: u128 & AugmentedConst<ApiType>;
|
||||
votingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -793,10 +843,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The test `reducing_history_depth_abrupt` shows this effect.
|
||||
**/
|
||||
historyDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of nominations per nominator.
|
||||
**/
|
||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators rewarded for each validator.
|
||||
*
|
||||
@@ -833,6 +879,36 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Maximal number of bytes that a key can have.
|
||||
*
|
||||
* FRAME itself does not limit the key length.
|
||||
* The concrete value must therefore depend on your storage usage.
|
||||
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
||||
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
||||
*
|
||||
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
||||
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
||||
*
|
||||
* The migration will halt with a `Halted` event if this value is too small.
|
||||
* Since there is no real penalty from over-estimating, it is advised to use a large
|
||||
* value. The default is 512 byte.
|
||||
*
|
||||
* Some key lengths for reference:
|
||||
* - [`frame_support::storage::StorageValue`]: 32 byte
|
||||
* - [`frame_support::storage::StorageMap`]: 64 byte
|
||||
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
||||
*
|
||||
* For more info see
|
||||
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
|
||||
**/
|
||||
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
||||
|
||||
@@ -113,6 +113,24 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
beefy: {
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
**/
|
||||
DuplicateOffenceReport: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An equivocation proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidEquivocationProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key ownership proof provided as part of an equivocation report is invalid.
|
||||
**/
|
||||
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
@@ -192,8 +210,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
InvalidStatement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There's not enough in the pot to pay out some unvested amount. Generally implies a logic
|
||||
* error.
|
||||
* There's not enough in the pot to pay out some unvested amount. Generally implies a
|
||||
* logic error.
|
||||
**/
|
||||
PotUnderflow: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -360,7 +378,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotParachain: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period.
|
||||
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement
|
||||
* period.
|
||||
**/
|
||||
NotReadyToDissolve: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -806,6 +825,50 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The message was already processed and cannot be processed again.
|
||||
**/
|
||||
AlreadyProcessed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is temporarily not enough weight to continue servicing messages.
|
||||
**/
|
||||
InsufficientWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The referenced message could not be found.
|
||||
**/
|
||||
NoMessage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Page to be reaped does not exist.
|
||||
**/
|
||||
NoPage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Page is not reapable because it has items remaining to be processed and is not old
|
||||
* enough.
|
||||
**/
|
||||
NotReapable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The message is queued for future execution.
|
||||
**/
|
||||
Queued: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue is paused and no message can be executed from it.
|
||||
*
|
||||
* This can change at any time and may resolve in the future by re-trying.
|
||||
**/
|
||||
QueuePaused: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This message is temporarily unprocessable.
|
||||
*
|
||||
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
||||
* retrying.
|
||||
**/
|
||||
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* Call is already approved by this signatory.
|
||||
@@ -914,9 +977,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The portion supplied is beyond the value of the receipt.
|
||||
**/
|
||||
PortionTooBig: AugmentedError<ApiType>;
|
||||
Release1: AugmentedError<ApiType>;
|
||||
Release2: AugmentedError<ApiType>;
|
||||
Tah: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The thaw throttle has been reached for this period.
|
||||
**/
|
||||
@@ -1010,6 +1070,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Not enough blocks have surpassed since the last commission update.
|
||||
**/
|
||||
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds global maximum commission.
|
||||
**/
|
||||
CommissionExceedsGlobalMaximum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds the max allowed commission.
|
||||
**/
|
||||
@@ -1133,14 +1197,15 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* invalid dispute.
|
||||
**/
|
||||
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate not in parent context.
|
||||
**/
|
||||
CandidateNotInParentContext: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate scheduled despite pending candidate already existing for the para.
|
||||
**/
|
||||
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate's relay-parent was not allowed. Either it was
|
||||
* not recent enough or it didn't advance based on the last parachain block.
|
||||
**/
|
||||
DisallowedRelayParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Head data exceeds the configured maximum.
|
||||
**/
|
||||
@@ -1157,6 +1222,11 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Insufficient (non-majority) backing.
|
||||
**/
|
||||
InsufficientBacking: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to compute group index for the core: either it's out of bounds
|
||||
* or the relay parent doesn't belong to the current session.
|
||||
**/
|
||||
InvalidAssignment: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid (bad signature, unknown validator, etc.) backing.
|
||||
**/
|
||||
@@ -1190,8 +1260,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotCollatorSigned: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual para head in the
|
||||
* commitments.
|
||||
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual
|
||||
* para head in the commitments.
|
||||
**/
|
||||
ParaHeadMismatch: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1234,10 +1304,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Availability bitfield has unexpected size.
|
||||
**/
|
||||
WrongBitfieldSize: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate included with the wrong collator.
|
||||
**/
|
||||
WrongCollator: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1276,7 +1342,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
paras: {
|
||||
/**
|
||||
* Para cannot be downgraded to a parathread.
|
||||
* Para cannot be downgraded to an on-demand parachain.
|
||||
**/
|
||||
CannotDowngrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1288,7 +1354,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
CannotOnboard: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para cannot be upgraded to a parachain.
|
||||
* Para cannot be upgraded to a lease holding parachain.
|
||||
**/
|
||||
CannotUpgrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1299,11 +1365,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Para is not registered in our system.
|
||||
**/
|
||||
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.
|
||||
**/
|
||||
@@ -1612,16 +1673,16 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
CannotDeregister: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot schedule downgrade of parachain to parathread
|
||||
* Cannot schedule downgrade of lease holding parachain to on-demand parachain
|
||||
**/
|
||||
CannotDowngrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are
|
||||
* correct for the swap to work.
|
||||
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
|
||||
* are correct for the swap to work.
|
||||
**/
|
||||
CannotSwap: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot schedule upgrade of parathread to parachain
|
||||
* Cannot schedule upgrade of on-demand parachain to lease holding parachain
|
||||
**/
|
||||
CannotUpgrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1645,7 +1706,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotParachain: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para is not a Parathread.
|
||||
* Para is not a Parathread (on-demand parachain).
|
||||
**/
|
||||
NotParathread: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1657,7 +1718,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotReserved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para is locked from manipulation by the manager. Must use parachain or relay chain governance.
|
||||
* Para is locked from manipulation by the manager. Must use parachain or relay chain
|
||||
* governance.
|
||||
**/
|
||||
ParaLocked: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1740,6 +1802,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* User is already a candidate.
|
||||
**/
|
||||
AlreadyCandidate: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The member is already elevated to this rank.
|
||||
**/
|
||||
AlreadyElevated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Society already founded.
|
||||
**/
|
||||
@@ -1748,14 +1814,22 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* User is already a member.
|
||||
**/
|
||||
AlreadyMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The skeptic has already been punished for this offence.
|
||||
**/
|
||||
AlreadyPunished: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member is already vouching or banned from vouching again.
|
||||
**/
|
||||
AlreadyVouching: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An incorrect position was provided.
|
||||
* The candidacy cannot be dropped as the candidate was clearly approved.
|
||||
**/
|
||||
BadPosition: AugmentedError<ApiType>;
|
||||
Approved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The skeptic need not vote on candidates from expired rounds.
|
||||
**/
|
||||
Expired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot remove the founder.
|
||||
**/
|
||||
@@ -1764,6 +1838,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Cannot remove the head of the chain.
|
||||
**/
|
||||
Head: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidacy cannot be concluded as the voting is still in progress.
|
||||
**/
|
||||
InProgress: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Funds are insufficient to pay off society debts.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough in pot to accept candidate.
|
||||
**/
|
||||
@@ -1772,10 +1854,22 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Too many members in the society.
|
||||
**/
|
||||
MaxMembers: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no defender currently.
|
||||
**/
|
||||
NoDefender: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Nothing to payout.
|
||||
**/
|
||||
NoPayout: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The membership cannot be claimed as the candidate was not clearly approved.
|
||||
**/
|
||||
NotApproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* User is not a bidder.
|
||||
**/
|
||||
NotBidder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* User is not a candidate.
|
||||
**/
|
||||
@@ -1784,6 +1878,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The caller is not the founder.
|
||||
**/
|
||||
NotFounder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Group doesn't exist.
|
||||
**/
|
||||
NotGroup: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller is not the head.
|
||||
**/
|
||||
@@ -1792,6 +1890,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* User is not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate cannot be kicked as the candidate was not clearly rejected.
|
||||
**/
|
||||
NotRejected: AugmentedError<ApiType>;
|
||||
/**
|
||||
* User is not suspended.
|
||||
**/
|
||||
@@ -1799,11 +1901,27 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
/**
|
||||
* Member is not vouching.
|
||||
**/
|
||||
NotVouching: AugmentedError<ApiType>;
|
||||
NotVouchingOnBidder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate/defender has no stale votes to remove.
|
||||
**/
|
||||
NoVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidacy cannot be bestowed as the candidate was clearly rejected.
|
||||
**/
|
||||
Rejected: AugmentedError<ApiType>;
|
||||
/**
|
||||
* User is suspended.
|
||||
**/
|
||||
Suspended: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidacy cannot be pruned until a full additional intake period has passed.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The skeptic already voted.
|
||||
**/
|
||||
Voted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1919,6 +2037,42 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Bad child root provided.
|
||||
**/
|
||||
BadChildRoot: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Bad witness data provided.
|
||||
**/
|
||||
BadWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A key was longer than the configured maximum.
|
||||
*
|
||||
* This means that the migration halted at the current [`Progress`] and
|
||||
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
||||
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
||||
* The value should only be increased to avoid a storage migration for the currently
|
||||
* stored [`crate::Progress::LastKey`].
|
||||
**/
|
||||
KeyTooLong: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Max signed limits not respected.
|
||||
**/
|
||||
MaxSignedLimits: AugmentedError<ApiType>;
|
||||
/**
|
||||
* submitter does not have enough funds.
|
||||
**/
|
||||
NotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Signed migration is not allowed because the maximum limit is not set yet.
|
||||
**/
|
||||
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The origin filter prevent the call to be dispatched.
|
||||
@@ -1980,20 +2134,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* The message index given is unknown.
|
||||
**/
|
||||
UnknownMessageIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The amount of weight given is possibly not enough for executing the message.
|
||||
**/
|
||||
WeightOverLimit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
utility: {
|
||||
/**
|
||||
* Too many calls batched.
|
||||
@@ -2106,7 +2246,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
Filtered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The unlock operation cannot succeed because there are still users of the lock.
|
||||
* The unlock operation cannot succeed because there are still consumers of the lock.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -2130,8 +2270,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoSubscription: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There was some other issue (i.e. not to do with routing) in sending the message. Perhaps
|
||||
* a lack of space for buffering the message.
|
||||
* There was some other issue (i.e. not to do with routing) in sending the message.
|
||||
* Perhaps a lack of space for buffering the message.
|
||||
**/
|
||||
SendFailure: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -31,8 +31,8 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
BidAccepted: AugmentedEvent<ApiType, [bidder: AccountId32, paraId: u32, amount: u128, firstSlot: u32, lastSlot: u32], { bidder: AccountId32, paraId: u32, amount: u128, firstSlot: u32, lastSlot: u32 }>;
|
||||
/**
|
||||
* Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve
|
||||
* but no parachain slot has been leased.
|
||||
* Someone attempted to lease the same slot twice for a parachain. The amount is held in
|
||||
* reserve but no parachain slot has been leased.
|
||||
**/
|
||||
ReserveConfiscated: AugmentedEvent<ApiType, [paraId: u32, leaser: AccountId32, amount: u128], { paraId: u32, leaser: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -45,7 +45,8 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [bidder: AccountId32, amount: u128], { bidder: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* The winning offset was chosen for an auction. This will map into the `Winning` storage map.
|
||||
* The winning offset was chosen for an auction. This will map into the `Winning` storage
|
||||
* map.
|
||||
**/
|
||||
WinningOffset: AugmentedEvent<ApiType, [auctionIndex: u32, blockNumber: u32], { auctionIndex: u32, blockNumber: u32 }>;
|
||||
/**
|
||||
@@ -75,6 +76,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Some balance was frozen.
|
||||
**/
|
||||
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
@@ -112,6 +117,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
@@ -548,6 +557,28 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* Message placed in overweight queue.
|
||||
**/
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, pageIndex: u32, messageIndex: u32], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, pageIndex: u32, messageIndex: u32 }>;
|
||||
/**
|
||||
* This page was reaped.
|
||||
**/
|
||||
PageReaped: AugmentedEvent<ApiType, [origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, index: u32], { origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, index: u32 }>;
|
||||
/**
|
||||
* Message is processed.
|
||||
**/
|
||||
Processed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
/**
|
||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||
**/
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* A multisig operation has been approved by someone.
|
||||
@@ -626,6 +657,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Some balance was frozen.
|
||||
**/
|
||||
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
@@ -663,6 +698,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
@@ -788,15 +827,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A candidate was backed. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate was included. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate timed out. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
|
||||
/**
|
||||
* Some upward messages have been received and will be processed.
|
||||
**/
|
||||
UpwardMessagesReceived: AugmentedEvent<ApiType, [from: u32, count: u32], { from: u32, count: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1008,6 +1051,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||
Reserved: AugmentedEvent<ApiType, [paraId: u32, who: AccountId32], { paraId: u32, who: AccountId32 }>;
|
||||
Swapped: AugmentedEvent<ApiType, [paraId: u32, otherId: u32], { paraId: u32, otherId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1096,6 +1140,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some funds were deposited into the society account.
|
||||
**/
|
||||
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
|
||||
/**
|
||||
* A \[member\] got elevated to \[rank\].
|
||||
**/
|
||||
Elevated: AugmentedEvent<ApiType, [member: AccountId32, rank: u32], { member: AccountId32, rank: u32 }>;
|
||||
/**
|
||||
* The society is founded by the given identity.
|
||||
**/
|
||||
@@ -1110,13 +1158,9 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
MemberSuspended: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* A new \[max\] member count has been set
|
||||
* A new set of \[params\] has been set for the group.
|
||||
**/
|
||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||
/**
|
||||
* A group of members has been choosen as Skeptics
|
||||
**/
|
||||
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||
NewParams: AugmentedEvent<ApiType, [params: PalletSocietyGroupParams], { params: PalletSocietyGroupParams }>;
|
||||
/**
|
||||
* A suspended member has been judged.
|
||||
**/
|
||||
@@ -1194,6 +1238,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* era as been reported.
|
||||
**/
|
||||
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||
/**
|
||||
* Targets size limit reached.
|
||||
**/
|
||||
SnapshotTargetsSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* Voters size limit reached.
|
||||
**/
|
||||
SnapshotVotersSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* A new set of stakers was elected.
|
||||
**/
|
||||
@@ -1220,6 +1272,29 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The auto migration task finished.
|
||||
**/
|
||||
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Migration got halted due to an error or miss-configuration.
|
||||
**/
|
||||
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
|
||||
/**
|
||||
* Given number of `(top, child)` keys were migrated respectively, with the given
|
||||
* `compute`.
|
||||
**/
|
||||
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], { top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute }>;
|
||||
/**
|
||||
* Some account got slashed by the given amount.
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* `:code` was updated.
|
||||
@@ -1303,53 +1378,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* Upward message executed with the given outcome.
|
||||
* \[ id, outcome \]
|
||||
**/
|
||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||
/**
|
||||
* Upward message is invalid XCM.
|
||||
* \[ id \]
|
||||
**/
|
||||
InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* The weight budget was exceeded for an individual upward message.
|
||||
*
|
||||
* This message can be later dispatched manually using `service_overweight` dispatchable
|
||||
* using the assigned `overweight_index`.
|
||||
*
|
||||
* \[ para, id, overweight_index, required \]
|
||||
**/
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Upward message from the overweight queue was executed with the given actual weight
|
||||
* used.
|
||||
*
|
||||
* \[ overweight_index, used \]
|
||||
**/
|
||||
OverweightServiced: AugmentedEvent<ApiType, [u64, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Upward message is unsupported version of XCM.
|
||||
* \[ id \]
|
||||
**/
|
||||
UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Some upward messages have been received and will be processed.
|
||||
* \[ para, count, size \]
|
||||
**/
|
||||
UpwardMessagesReceived: AugmentedEvent<ApiType, [u32, u32, u32]>;
|
||||
/**
|
||||
* The weight limit for handling upward messages was reached.
|
||||
* \[ id, remaining, required \]
|
||||
**/
|
||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
utility: {
|
||||
/**
|
||||
* Batch of dispatches completed fully with no error.
|
||||
@@ -1422,36 +1450,26 @@ declare module '@polkadot/api-base/types/events' {
|
||||
xcmPallet: {
|
||||
/**
|
||||
* Some assets have been claimed from an asset trap
|
||||
*
|
||||
* \[ hash, origin, assets \]
|
||||
**/
|
||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
|
||||
/**
|
||||
* Some assets have been placed in an asset trap.
|
||||
*
|
||||
* \[ hash, origin, assets \]
|
||||
**/
|
||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
|
||||
/**
|
||||
* Execution of an XCM message was attempted.
|
||||
*
|
||||
* \[ outcome \]
|
||||
**/
|
||||
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||
Attempted: AugmentedEvent<ApiType, [outcome: XcmV3TraitsOutcome], { outcome: XcmV3TraitsOutcome }>;
|
||||
/**
|
||||
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||
*
|
||||
* \[ paying location, fees \]
|
||||
**/
|
||||
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
FeesPaid: AugmentedEvent<ApiType, [paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets], { paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets }>;
|
||||
/**
|
||||
* Expected query response has been received but the querier location of the response does
|
||||
* not match the expected. The query remains registered for a later, valid, response to
|
||||
* be received and acted upon.
|
||||
*
|
||||
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||
**/
|
||||
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||
InvalidQuerier: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation> }>;
|
||||
/**
|
||||
* Expected query response has been received but the expected querier location placed in
|
||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||
@@ -1460,18 +1478,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||
* needed.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* Expected query response has been received but the origin location of the response does
|
||||
* not match that expected. The query remains registered for a later, valid, response to
|
||||
* be received and acted upon.
|
||||
*
|
||||
* \[ origin location, id, expected location \]
|
||||
**/
|
||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||
InvalidResponder: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation> }>;
|
||||
/**
|
||||
* Expected query response has been received but the expected origin location placed in
|
||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||
@@ -1480,115 +1494,84 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||
* needed.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The registered notification has
|
||||
* been dispatched and executed successfully.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
Notified: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The dispatch was unable to be
|
||||
* decoded into a `Call`; this might be due to dispatch function having a signature which
|
||||
* is not `(origin, QueryId, Response)`.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
NotifyDecodeFailed: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. There was a general error with
|
||||
* dispatching the notification call.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
NotifyDispatchError: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The registered notification could
|
||||
* not be dispatched because the dispatch weight is greater than the maximum weight
|
||||
* Query response has been received and query is removed. The registered notification
|
||||
* could not be dispatched because the dispatch weight is greater than the maximum weight
|
||||
* originally budgeted by this runtime for the query result.
|
||||
*
|
||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||
**/
|
||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||
NotifyOverweight: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight], { queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight }>;
|
||||
/**
|
||||
* A given location which had a version change subscription was dropped owing to an error
|
||||
* migrating the location to our new XCM format.
|
||||
*
|
||||
* \[ location, query ID \]
|
||||
**/
|
||||
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;
|
||||
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedMultiLocation, queryId: u64], { location: XcmVersionedMultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* A given location which had a version change subscription was dropped owing to an error
|
||||
* sending the notification to it.
|
||||
*
|
||||
* \[ location, query ID, error \]
|
||||
**/
|
||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError], { location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError }>;
|
||||
/**
|
||||
* Query response has been received and is ready for taking with `take_response`. There is
|
||||
* no registered notification call.
|
||||
*
|
||||
* \[ id, response \]
|
||||
**/
|
||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: XcmV3Response], { queryId: u64, response: XcmV3Response }>;
|
||||
/**
|
||||
* Received query response has been read and removed.
|
||||
*
|
||||
* \[ id \]
|
||||
**/
|
||||
ResponseTaken: AugmentedEvent<ApiType, [u64]>;
|
||||
ResponseTaken: AugmentedEvent<ApiType, [queryId: u64], { queryId: u64 }>;
|
||||
/**
|
||||
* A XCM message was sent.
|
||||
*
|
||||
* \[ origin, destination, message \]
|
||||
**/
|
||||
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||
Sent: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed], { origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed }>;
|
||||
/**
|
||||
* The supported version of a location has been changed. This might be through an
|
||||
* automatic notification or a manual intervention.
|
||||
*
|
||||
* \[ location, XCM version \]
|
||||
**/
|
||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||
SupportedVersionChanged: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, version: u32], { location: XcmV3MultiLocation, version: u32 }>;
|
||||
/**
|
||||
* Query response received which does not match a registered query. This may be because a
|
||||
* matching query was never registered, it may be because it is a duplicate response, or
|
||||
* because the query timed out.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
UnexpectedResponse: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* An XCM version change notification message has been attempted to be sent.
|
||||
*
|
||||
* The cost of sending it (borne by the chain) is included.
|
||||
*
|
||||
* \[ destination, result, cost \]
|
||||
**/
|
||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||
VersionChangeNotified: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* We have requested that a remote chain sends us XCM version change notifications.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
* We have requested that a remote chain send us XCM version change notifications.
|
||||
**/
|
||||
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* A remote has requested XCM version change notification from us and we have honored it.
|
||||
* A version information message is sent to them and its cost is included.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
**/
|
||||
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
* We have requested that a remote chain stops sending us XCM version change
|
||||
* notifications.
|
||||
**/
|
||||
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '../base.js';
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5AssignmentAppPublic, PolkadotPrimitivesV5CandidateCommitments, PolkadotPrimitivesV5CoreOccupied, PolkadotPrimitivesV5DisputeState, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5ParasEntry, PolkadotPrimitivesV5ScrapedOnChainVotes, PolkadotPrimitivesV5SessionInfo, PolkadotPrimitivesV5SlashingPendingSlashes, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesV5ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -207,7 +207,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KusamaRuntimeHoldReason;
|
||||
readonly id: KusamaRuntimeRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -232,6 +232,59 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
beefy: {
|
||||
/**
|
||||
* The current authorities set
|
||||
**/
|
||||
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Block number where BEEFY consensus is enabled/started.
|
||||
* By changing this (through governance or sudo), BEEFY consensus is effectively
|
||||
* restarted from the new block number.
|
||||
**/
|
||||
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Authorities set scheduled to be used with the next session
|
||||
**/
|
||||
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
||||
* members were responsible.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
||||
* was the owner of a given key on a given session, and what the active set ID was
|
||||
* during that session.
|
||||
*
|
||||
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
||||
**/
|
||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
/**
|
||||
* The current validator set id
|
||||
**/
|
||||
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
beefyMmrLeaf: {
|
||||
/**
|
||||
* Details of current BEEFY authority set.
|
||||
**/
|
||||
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Details of next BEEFY authority set.
|
||||
*
|
||||
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
||||
**/
|
||||
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* Bounties that have been made.
|
||||
@@ -370,6 +423,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
dmp: {
|
||||
/**
|
||||
* The number to multiply the base delivery fee by.
|
||||
**/
|
||||
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* A mapping that stores the downward message queue MQC head for each para.
|
||||
*
|
||||
@@ -409,6 +466,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -476,22 +535,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Number of eras to check per block.
|
||||
*
|
||||
* If set to 0, this pallet does absolutely nothing.
|
||||
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
||||
* [`Config::MaxErasToCheckPerBlock`].
|
||||
*
|
||||
* Based on the amount of weight available at `on_idle`, up to this many eras of a single
|
||||
* nominator might be checked.
|
||||
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
||||
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
||||
* stored in [`Head`].
|
||||
**/
|
||||
erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current "head of the queue" being unstaked.
|
||||
*
|
||||
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
||||
**/
|
||||
head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The map of all accounts wishing to be unstaked.
|
||||
*
|
||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||
*
|
||||
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||
**/
|
||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -676,7 +737,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The HRMP watermark associated with each para.
|
||||
* Invariant:
|
||||
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session.
|
||||
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
|
||||
* session.
|
||||
**/
|
||||
hrmpWatermarks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -741,10 +803,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
|
||||
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
||||
**/
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -777,9 +838,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Semantically a `bool`, but this guarantees it should never hit the trie,
|
||||
* as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
|
||||
*
|
||||
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one of
|
||||
* them writes to the trie and one does not. This confusion makes `Option<()>` more suitable for
|
||||
* the semantics of this variable.
|
||||
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
|
||||
* of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
|
||||
* for the semantics of this variable.
|
||||
**/
|
||||
hasInitialized: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -787,6 +848,45 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The index of the first and last (non-empty) pages.
|
||||
**/
|
||||
bookStateFor: AugmentedQuery<ApiType, (arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]>;
|
||||
/**
|
||||
* The map of page indices to pages.
|
||||
**/
|
||||
pages: AugmentedQuery<ApiType, (arg1: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]>;
|
||||
/**
|
||||
* The origin at which we should begin servicing.
|
||||
**/
|
||||
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mmr: {
|
||||
/**
|
||||
* Hashes of the nodes in the MMR.
|
||||
*
|
||||
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
|
||||
* are pruned and only stored in the Offchain DB.
|
||||
**/
|
||||
nodes: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
/**
|
||||
* Current size of the MMR (number of leaves).
|
||||
**/
|
||||
numberOfLeaves: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Latest MMR Root hash.
|
||||
**/
|
||||
rootHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The set of open multisig operations.
|
||||
@@ -858,7 +958,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KusamaRuntimeRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -995,14 +1098,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
* Generic query
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
paraAssignmentProvider: {
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1020,7 +1120,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The commitments of candidates pending availability, by `ParaId`.
|
||||
**/
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1039,7 +1139,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||
**/
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV5ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1084,7 +1184,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All parachains. Ordered ascending by `ParaId`. Parathreads are not included.
|
||||
* The context (relay-chain block number) of the most recent parachain head.
|
||||
**/
|
||||
mostRecentContext: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
|
||||
* included.
|
||||
*
|
||||
* Consider using the [`ParachainsCache`] type of modifying.
|
||||
**/
|
||||
@@ -1107,11 +1212,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Which paras have past code that needs pruning and the relay-chain block at which the code was replaced.
|
||||
* Note that this is the actual height of the included block, not the expected height at which the
|
||||
* code upgrade would be applied, although they may be equal.
|
||||
* This is to ensure the entire acceptance period is covered, not an offset acceptance period starting
|
||||
* from the time at which the parachain perceives a code upgrade as having occurred.
|
||||
* Which paras have past code that needs pruning and the relay-chain block at which the code
|
||||
* was replaced. Note that this is the actual height of the included block, not the expected
|
||||
* height at which the code upgrade would be applied, although they may be equal.
|
||||
* This is to ensure the entire acceptance period is covered, not an offset acceptance period
|
||||
* starting from the time at which the parachain perceives a code upgrade as having occurred.
|
||||
* Multiple entries for a single para are permitted. Ordered ascending by block number.
|
||||
**/
|
||||
pastCodePruning: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
@@ -1147,17 +1252,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
upgradeCooldowns: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure.
|
||||
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
|
||||
* procedure.
|
||||
*
|
||||
* This value is absent when there are no upgrades scheduled or during the time the relay chain
|
||||
* performs the checks. It is set at the first relay-chain block when the corresponding parachain
|
||||
* can switch its upgrade function. As soon as the parachain's block is included, the value
|
||||
* gets reset to `None`.
|
||||
* performs the checks. It is set at the first relay-chain block when the corresponding
|
||||
* parachain can switch its upgrade function. As soon as the parachain's block is included, the
|
||||
* value gets reset to `None`.
|
||||
*
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||
* an upgrade for this parachain.
|
||||
@@ -1169,7 +1275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1177,8 +1283,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
paraScheduler: {
|
||||
/**
|
||||
* One entry for each availability core. Entries are `None` if the core is not currently occupied. Can be
|
||||
* temporarily `Some` if scheduled but not occupied.
|
||||
* One entry for each availability core. Entries are `None` if the core is not currently
|
||||
* occupied. Can be temporarily `Some` if scheduled but not occupied.
|
||||
* The i'th parachain belongs to the i'th core, with the remaining cores all being
|
||||
* parathread-multiplexers.
|
||||
*
|
||||
@@ -1186,32 +1292,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* * The number of parachains and parathread multiplexers
|
||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||
**/
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5CoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
||||
* currently being handled by an occupied core.
|
||||
*
|
||||
* Bounded by the number of parathread cores and scheduling lookahead. Reasonably, 10 * 50 = 500.
|
||||
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
||||
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
|
||||
* as there is one currently being scheduled. Not using `None` here would overwrite the
|
||||
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
|
||||
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
|
||||
**/
|
||||
parathreadClaimIndex: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<Option<PolkadotPrimitivesV5ParasEntry>>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A queue of upcoming claims and which core they should be mapped onto.
|
||||
*
|
||||
* The number of queued claims is bounded at the `scheduling_lookahead`
|
||||
* multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500.
|
||||
**/
|
||||
parathreadQueue: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSchedulerParathreadClaimQueue>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Currently scheduled cores - free but up to be occupied.
|
||||
*
|
||||
* Bounded by the number of cores: one for each parachain and parathread multiplexer.
|
||||
*
|
||||
* The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/
|
||||
* for the upcoming block.
|
||||
**/
|
||||
scheduled: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerCoreAssignment>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The block number where the session start occurred. Used to track how many group rotations have occurred.
|
||||
* The block number where the session start occurred. Used to track how many group rotations
|
||||
* have occurred.
|
||||
*
|
||||
* Note that in the context of parachains modules the session change is signaled during
|
||||
* the block and enacted at the end of the block (at the finalization stage, to be exact).
|
||||
@@ -1224,8 +1316,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* broader set of Polkadot validators, but instead just the subset used for parachains during
|
||||
* this session.
|
||||
*
|
||||
* Bound: The number of cores is the sum of the numbers of parachains and parathread multiplexers.
|
||||
* Reasonably, 100-1000. The dominant factor is the number of validators: safe upper bound at 10k.
|
||||
* Bound: The number of cores is the sum of the numbers of parachains and parathread
|
||||
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
||||
* upper bound at 10k.
|
||||
**/
|
||||
validatorGroups: AugmentedQuery<ApiType, () => Observable<Vec<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -1242,7 +1335,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
||||
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||
@@ -1275,7 +1368,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
||||
* When in doubt, use `Sessions` API instead.
|
||||
**/
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
@@ -1283,13 +1376,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
* Does not have any entries before the session index in the first session change notification.
|
||||
**/
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1302,10 +1395,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
activeValidatorIndices: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||
* This should be the same length as `ActiveValidatorIndices`.
|
||||
* The parachain attestation keys of the validators actively participating in parachain
|
||||
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
||||
**/
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* All allowed relay-parents.
|
||||
**/
|
||||
allowedRelayParents: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current session index.
|
||||
**/
|
||||
@@ -1319,7 +1416,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Validators pending dispute slashes.
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsDisputesSlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* `ValidatorSetCount` per session.
|
||||
**/
|
||||
@@ -1420,8 +1517,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Amount held on deposit for each para and the original depositor.
|
||||
*
|
||||
* The given account ID is responsible for registering the code and initial head data, but may only do
|
||||
* so if it isn't yet registered. (After that, it's up to governance to do so.)
|
||||
* The given account ID is responsible for registering the code and initial head data, but may
|
||||
* only do so if it isn't yet registered. (After that, it's up to governance to do so.)
|
||||
**/
|
||||
paras: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonParasRegistrarParaInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -1495,8 +1592,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Amounts held on deposit for each (possibly future) leased parachain.
|
||||
*
|
||||
* The actual amount locked on its behalf by any account at any time is the maximum of the second values
|
||||
* of the items in this list whose first value is the account.
|
||||
* The actual amount locked on its behalf by any account at any time is the maximum of the
|
||||
* second values of the items in this list whose first value is the account.
|
||||
*
|
||||
* The first item in the list is the amount locked for the current Lease Period. Following
|
||||
* items are for the subsequent lease periods.
|
||||
@@ -1521,67 +1618,83 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The current bids, stored ordered by the value of the bid.
|
||||
**/
|
||||
bids: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
candidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyCandidacy>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The current set of candidates; bidders that are attempting to become members.
|
||||
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
||||
**/
|
||||
candidates: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
challengeRoundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The defending member currently being challenged.
|
||||
* Votes for the defender, keyed by challenge round.
|
||||
**/
|
||||
defender: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
defenderVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Votes for the defender.
|
||||
* The defending member currently being challenged, along with a running tally of votes.
|
||||
**/
|
||||
defenderVotes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
defending: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[AccountId32, AccountId32, PalletSocietyTally]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The first member.
|
||||
**/
|
||||
founder: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The most primary from the most recently approved members.
|
||||
* The most primary from the most recently approved rank 0 members in the society.
|
||||
**/
|
||||
head: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
||||
* `0..MemberCount` (does not include `MemberCount`).
|
||||
**/
|
||||
memberByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
||||
**/
|
||||
memberCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* At the end of the claim period, this contains the most recently approved members (along with
|
||||
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
||||
* become the new `Head`.
|
||||
**/
|
||||
nextHead: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyIntakeRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The max number of members for the society at one time.
|
||||
**/
|
||||
maxMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
parameters: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyGroupParams>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current set of members, ordered.
|
||||
* Information regarding rank-0 payouts, past and future.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Pending payouts; ordered by block number, with the amount that should be paid out.
|
||||
**/
|
||||
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletSocietyPayoutRecord>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Amount of our account balance that is specifically for the next round's bid(s).
|
||||
**/
|
||||
pot: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of rounds which have passed.
|
||||
**/
|
||||
roundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A hash of the rules of this society concerning membership. Can only be set once and
|
||||
* only by the founder.
|
||||
**/
|
||||
rules: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The ongoing number of losing votes cast by the member.
|
||||
* The current skeptic.
|
||||
**/
|
||||
strikes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
skeptic: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The set of suspended candidates.
|
||||
* The set of suspended members, with their old membership record.
|
||||
**/
|
||||
suspendedCandidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[u128, PalletSocietyBidKind]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The set of suspended members.
|
||||
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
||||
**/
|
||||
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
voteClearCursor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
||||
**/
|
||||
votes: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
* Members currently vouching or banned from vouching again
|
||||
**/
|
||||
vouching: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVouchingStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1747,7 +1860,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* 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
|
||||
* account's [`NominationsQuota::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
|
||||
@@ -1824,6 +1938,31 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The limits that are imposed on automatic migrations.
|
||||
*
|
||||
* If set to None, then no automatic migration happens.
|
||||
**/
|
||||
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Migration progress.
|
||||
*
|
||||
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
||||
* forward by any of the means provided by this pallet.
|
||||
**/
|
||||
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum limits that the signed migration could use.
|
||||
*
|
||||
* If not set, no signed submission is allowed.
|
||||
**/
|
||||
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
system: {
|
||||
/**
|
||||
* The full account information for a particular account ID.
|
||||
@@ -1867,7 +2006,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
||||
* in case of changes fetch the list of events of interest.
|
||||
*
|
||||
* The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
|
||||
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
||||
* the `EventIndex` then in case if the topic has the same contents on the next block
|
||||
* no notification will be triggered thus the event might be lost.
|
||||
**/
|
||||
@@ -1954,66 +2093,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||
*
|
||||
* Invariant:
|
||||
* - The set of items from this vector should be exactly the set of the keys in
|
||||
* `RelayDispatchQueues` and `RelayDispatchQueueSize`.
|
||||
**/
|
||||
needsDispatch: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is the para that gets will get dispatched first during the next upward dispatchable queue
|
||||
* execution round.
|
||||
*
|
||||
* Invariant:
|
||||
* - If `Some(para)`, then `para` must be present in `NeedsDispatch`.
|
||||
**/
|
||||
nextDispatchRoundStartWith: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The messages that exceeded max individual message weight budget.
|
||||
*
|
||||
* These messages stay there until manually dispatched.
|
||||
**/
|
||||
overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
/**
|
||||
* The number of overweight messages ever recorded in `Overweight` (and thus the lowest free
|
||||
* index).
|
||||
**/
|
||||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The messages waiting to be handled by the relay-chain originating from a certain parachain.
|
||||
*
|
||||
* Note that some upward messages might have been already processed by the inclusion logic. E.g.
|
||||
* channel management messages.
|
||||
*
|
||||
* The messages are processed in FIFO order.
|
||||
**/
|
||||
relayDispatchQueues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`.
|
||||
*
|
||||
* First item in the tuple is the count of messages and second
|
||||
* is the total length (in bytes) of the message payloads.
|
||||
*
|
||||
* Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of
|
||||
* messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of
|
||||
* loading the whole message queue if only the total size and count are required.
|
||||
*
|
||||
* Invariant:
|
||||
* - The set of keys should exactly match the set of keys of `RelayDispatchQueues`.
|
||||
**/
|
||||
relayDispatchQueueSize: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u32, u32]>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
vesting: {
|
||||
/**
|
||||
* Storage version of the pallet.
|
||||
@@ -2111,6 +2190,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* of our versions we informed them of.
|
||||
**/
|
||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Global suspension state of the XCM executor.
|
||||
**/
|
||||
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '@polkadot/types-augment/registry/substrate';
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
||||
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
@@ -18,7 +18,7 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
@@ -85,7 +85,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/2 */
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
@@ -108,6 +108,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x2a5e924655399e60/1 */
|
||||
beefyMmrApi: {
|
||||
/**
|
||||
* Return the currently active BEEFY authority set proof.
|
||||
**/
|
||||
authoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyAuthoritySet>>;
|
||||
/**
|
||||
* Return the next/queued BEEFY authority set proof.
|
||||
**/
|
||||
nextAuthoritySetProof: AugmentedCall<ApiType, () => Observable<BeefyNextAuthoritySet>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
blockBuilder: {
|
||||
/**
|
||||
@@ -245,7 +260,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/4 */
|
||||
/** 0xaf2c0297a23e6d3d/5 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
@@ -279,6 +294,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Get the contents of all channels addressed to the given recipient.
|
||||
**/
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
||||
/**
|
||||
* Returns a merkle proof of a validator session key
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
@@ -307,6 +326,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Submits a PVF pre-checking statement into the transaction pool.
|
||||
**/
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
||||
**/
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Returns a list of validators that lost a past session dispute and need to be slashed
|
||||
**/
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
**/
|
||||
@@ -369,7 +396,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
+488
-2739
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './index.js';
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// (packageInfo imports will be kept as-is, user-editable)
|
||||
|
||||
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, [baseInfo, codecInfo, typesInfo]);
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.12.2' };
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
import '@polkadot/api-base/types/consts';
|
||||
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
@@ -52,6 +52,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max number of authorities allowed
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -181,12 +185,13 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
||||
* least `ExistentialDeposit`.
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
|
||||
* at least `ExistentialDeposit`.
|
||||
**/
|
||||
minContribution: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b"py/cfund")`
|
||||
* `PalletId` for the crowdloan pallet. An appropriate value could be
|
||||
* `PalletId(*b"py/cfund")`
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -198,72 +203,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||
**/
|
||||
cooloffPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period between a proposal being approved and enacted.
|
||||
*
|
||||
* It should generally be a little more than the unstake period to ensure that
|
||||
* voting stakers have an opportunity to remove themselves from the system in the case
|
||||
* where they are on the losing side of a vote.
|
||||
**/
|
||||
enactmentPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum voting period allowed for a fast-track referendum.
|
||||
**/
|
||||
fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
||||
* want to set this permanently to `false`, others may want to condition it on things such
|
||||
* as an upgrade having happened recently.
|
||||
**/
|
||||
instantAllowed: bool & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How often (in blocks) new public referenda are launched.
|
||||
**/
|
||||
launchPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of items which can be blacklisted.
|
||||
**/
|
||||
maxBlacklisted: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of deposits a public proposal may have at any time.
|
||||
**/
|
||||
maxDeposits: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of public proposals that can exist at any time.
|
||||
**/
|
||||
maxProposals: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of votes for an account.
|
||||
*
|
||||
* Also used to compute weight, an overly big value can
|
||||
* lead to extrinsic with very big weight: see `delegate` for instance.
|
||||
**/
|
||||
maxVotes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||
**/
|
||||
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum period of vote locking.
|
||||
*
|
||||
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
||||
* those successful voters are locked into the consequences that their votes entail.
|
||||
**/
|
||||
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How often (in blocks) to check for new votes.
|
||||
**/
|
||||
votingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
@@ -275,16 +214,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||
* implementation.
|
||||
@@ -374,6 +303,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
@@ -445,6 +378,34 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The size of the page; this implies the maximum message size which can be sent.
|
||||
*
|
||||
* A good value depends on the expected message sizes, their weights, the weight that is
|
||||
* available for processing them and the maximal needed message size. The maximal message
|
||||
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
||||
**/
|
||||
heapSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
||||
* can happen. Once there are more stale pages than this, then historical pages may be
|
||||
* dropped, even if they contain unprocessed overweight messages.
|
||||
**/
|
||||
maxStale: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of weight (if any) which should be provided to the message queue for
|
||||
* servicing enqueued items.
|
||||
*
|
||||
* This may be legitimately `None` in the case that you will call
|
||||
* `ServiceQueues::service_queues` manually.
|
||||
**/
|
||||
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
@@ -502,70 +463,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* How much should be locked up in order to submit one's candidacy.
|
||||
**/
|
||||
candidacyBond: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of members to elect.
|
||||
**/
|
||||
desiredMembers: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of runners_up to keep.
|
||||
**/
|
||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of candidates in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When this limit is reached no more candidates are accepted in the election.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to allow in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When the limit is reached the new voters are ignored.
|
||||
**/
|
||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum numbers of votes per voter.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
**/
|
||||
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the elections-phragmen pallet's lock
|
||||
**/
|
||||
palletId: U8aFixed & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How long each seat is kept. This defines the next block number at which an election
|
||||
* round will happen. If set to zero, no elections are ever triggered and the module will
|
||||
* be in passive mode.
|
||||
**/
|
||||
termDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base deposit associated with voting.
|
||||
*
|
||||
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
||||
* creating a gigantic number of votes.
|
||||
**/
|
||||
votingBondBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of bond that need to be locked for each vote (32 bytes).
|
||||
**/
|
||||
votingBondFactor: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
proxy: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating an announcement.
|
||||
@@ -644,7 +541,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The deposit to be paid to run a parathread.
|
||||
* The deposit to be paid to run a on-demand parachain.
|
||||
* This should include the cost for storing the genesis head and validation code.
|
||||
**/
|
||||
paraDeposit: u128 & AugmentedConst<ApiType>;
|
||||
@@ -660,6 +557,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -709,10 +610,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The test `reducing_history_depth_abrupt` shows this effect.
|
||||
**/
|
||||
historyDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of nominations per nominator.
|
||||
**/
|
||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators rewarded for each validator.
|
||||
*
|
||||
@@ -796,34 +693,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||
**/
|
||||
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum acceptable reason length.
|
||||
*
|
||||
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
||||
**/
|
||||
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period for which a tip remains open after is has achieved threshold tippers.
|
||||
**/
|
||||
tipCountdown: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The percent of the final tip which goes to the original reporter of the tip.
|
||||
**/
|
||||
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a tip report.
|
||||
**/
|
||||
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
|
||||
@@ -192,8 +192,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
InvalidStatement: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There's not enough in the pot to pay out some unvested amount. Generally implies a logic
|
||||
* error.
|
||||
* There's not enough in the pot to pay out some unvested amount. Generally implies a
|
||||
* logic error.
|
||||
**/
|
||||
PotUnderflow: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -278,52 +278,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
**/
|
||||
AlreadyInitialized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate proposals not allowed
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate vote ignored
|
||||
**/
|
||||
DuplicateVote: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is not a member
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal must exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The close call was made too early, before the end of the voting.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There can only be a maximum of `MaxProposals` active proposals.
|
||||
**/
|
||||
TooManyProposals: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Mismatched index
|
||||
**/
|
||||
WrongIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given length bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given weight bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The fund is already in `NewRaise`
|
||||
@@ -406,7 +360,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotParachain: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period.
|
||||
* The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement
|
||||
* period.
|
||||
**/
|
||||
NotReadyToDissolve: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -422,109 +377,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Cannot cancel the same proposal twice
|
||||
**/
|
||||
AlreadyCanceled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account is already delegating.
|
||||
**/
|
||||
AlreadyDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Identity may not veto a proposal twice
|
||||
**/
|
||||
AlreadyVetoed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal already made
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The instant referendum origin is currently disallowed.
|
||||
**/
|
||||
InstantNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too high a balance was provided that the account cannot afford.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid hash
|
||||
**/
|
||||
InvalidHash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum number of votes reached.
|
||||
**/
|
||||
MaxVotesReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No proposals waiting
|
||||
**/
|
||||
NoneWaiting: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Delegation to oneself makes no sense.
|
||||
**/
|
||||
Nonsense: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The actor has no permission to conduct the action.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No external proposal
|
||||
**/
|
||||
NoProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account is not currently delegating.
|
||||
**/
|
||||
NotDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Next external proposal not simple majority
|
||||
**/
|
||||
NotSimpleMajority: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given account did not vote on the referendum.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal still blacklisted
|
||||
**/
|
||||
ProposalBlacklisted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal does not exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vote given for invalid referendum
|
||||
**/
|
||||
ReferendumInvalid: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum number of items reached.
|
||||
**/
|
||||
TooMany: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low
|
||||
**/
|
||||
ValueLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account currently has votes attached to it and the operation cannot succeed until
|
||||
* these are removed, either through `unvote` or `reap_vote`.
|
||||
**/
|
||||
VotesExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Voting period too low
|
||||
**/
|
||||
VotingPeriodLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid upper bound.
|
||||
**/
|
||||
WrongUpperBound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* Some bound not met
|
||||
@@ -855,6 +707,50 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The message was already processed and cannot be processed again.
|
||||
**/
|
||||
AlreadyProcessed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is temporarily not enough weight to continue servicing messages.
|
||||
**/
|
||||
InsufficientWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The referenced message could not be found.
|
||||
**/
|
||||
NoMessage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Page to be reaped does not exist.
|
||||
**/
|
||||
NoPage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Page is not reapable because it has items remaining to be processed and is not old
|
||||
* enough.
|
||||
**/
|
||||
NotReapable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The message is queued for future execution.
|
||||
**/
|
||||
Queued: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue is paused and no message can be executed from it.
|
||||
*
|
||||
* This can change at any time and may resolve in the future by re-trying.
|
||||
**/
|
||||
QueuePaused: AugmentedError<ApiType>;
|
||||
/**
|
||||
* This message is temporarily unprocessable.
|
||||
*
|
||||
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
||||
* retrying.
|
||||
**/
|
||||
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* Call is already approved by this signatory.
|
||||
@@ -943,6 +839,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Not enough blocks have surpassed since the last commission update.
|
||||
**/
|
||||
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds global maximum commission.
|
||||
**/
|
||||
CommissionExceedsGlobalMaximum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds the max allowed commission.
|
||||
**/
|
||||
@@ -1066,14 +966,15 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* invalid dispute.
|
||||
**/
|
||||
BitfieldReferencesFreedCore: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate not in parent context.
|
||||
**/
|
||||
CandidateNotInParentContext: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate scheduled despite pending candidate already existing for the para.
|
||||
**/
|
||||
CandidateScheduledBeforeParaFree: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate's relay-parent was not allowed. Either it was
|
||||
* not recent enough or it didn't advance based on the last parachain block.
|
||||
**/
|
||||
DisallowedRelayParent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Head data exceeds the configured maximum.
|
||||
**/
|
||||
@@ -1090,6 +991,11 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Insufficient (non-majority) backing.
|
||||
**/
|
||||
InsufficientBacking: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to compute group index for the core: either it's out of bounds
|
||||
* or the relay parent doesn't belong to the current session.
|
||||
**/
|
||||
InvalidAssignment: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid (bad signature, unknown validator, etc.) backing.
|
||||
**/
|
||||
@@ -1123,8 +1029,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotCollatorSigned: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual para head in the
|
||||
* commitments.
|
||||
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual
|
||||
* para head in the commitments.
|
||||
**/
|
||||
ParaHeadMismatch: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1167,10 +1073,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Availability bitfield has unexpected size.
|
||||
**/
|
||||
WrongBitfieldSize: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate included with the wrong collator.
|
||||
**/
|
||||
WrongCollator: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1209,7 +1111,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
paras: {
|
||||
/**
|
||||
* Para cannot be downgraded to a parathread.
|
||||
* Para cannot be downgraded to an on-demand parachain.
|
||||
**/
|
||||
CannotDowngrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1221,7 +1123,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
CannotOnboard: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para cannot be upgraded to a parachain.
|
||||
* Para cannot be upgraded to a lease holding parachain.
|
||||
**/
|
||||
CannotUpgrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1232,11 +1134,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Para is not registered in our system.
|
||||
**/
|
||||
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.
|
||||
**/
|
||||
@@ -1308,75 +1205,32 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
parasSlashing: {
|
||||
/**
|
||||
* Duplicated candidate submission.
|
||||
* The given slashing report is valid but already previously reported.
|
||||
**/
|
||||
DuplicatedCandidate: AugmentedError<ApiType>;
|
||||
DuplicateSlashingReport: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate does not have enough funds.
|
||||
* The candidate hash is invalid.
|
||||
**/
|
||||
InsufficientCandidateFunds: AugmentedError<ApiType>;
|
||||
InvalidCandidateHash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The renouncing origin presented a wrong `Renouncing` parameter.
|
||||
* The key ownership proof is invalid.
|
||||
**/
|
||||
InvalidRenouncing: AugmentedError<ApiType>;
|
||||
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Prediction regarding replacement after member removal is wrong.
|
||||
* The session index is too old or invalid.
|
||||
**/
|
||||
InvalidReplacement: AugmentedError<ApiType>;
|
||||
InvalidSessionIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided count of number of votes is incorrect.
|
||||
* There is no pending slash for the given validator index and time
|
||||
* slot.
|
||||
**/
|
||||
InvalidVoteCount: AugmentedError<ApiType>;
|
||||
InvalidValidatorIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided count of number of candidates is incorrect.
|
||||
* The validator index does not match the validator id.
|
||||
**/
|
||||
InvalidWitnessData: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote with stake less than minimum balance.
|
||||
**/
|
||||
LowBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote more than maximum allowed.
|
||||
**/
|
||||
MaximumVotesExceeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member cannot re-submit candidacy.
|
||||
**/
|
||||
MemberSubmit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Must be a voter.
|
||||
**/
|
||||
MustBeVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Must vote for at least one candidate.
|
||||
**/
|
||||
NoVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Runner cannot re-submit candidacy.
|
||||
**/
|
||||
RunnerUpSubmit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many candidates have been created.
|
||||
**/
|
||||
TooManyCandidates: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote more than candidates.
|
||||
**/
|
||||
TooManyVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Voter can not pay voting bond.
|
||||
**/
|
||||
UnableToPayBond: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote when no candidates or members exist.
|
||||
**/
|
||||
UnableToVote: AugmentedError<ApiType>;
|
||||
ValidatorIndexIdMismatch: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -1518,16 +1372,16 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
CannotDeregister: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot schedule downgrade of parachain to parathread
|
||||
* Cannot schedule downgrade of lease holding parachain to on-demand parachain
|
||||
**/
|
||||
CannotDowngrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras are
|
||||
* correct for the swap to work.
|
||||
* Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras
|
||||
* are correct for the swap to work.
|
||||
**/
|
||||
CannotSwap: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot schedule upgrade of parathread to parachain
|
||||
* Cannot schedule upgrade of on-demand parachain to lease holding parachain
|
||||
**/
|
||||
CannotUpgrade: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1551,7 +1405,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotParachain: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para is not a Parathread.
|
||||
* Para is not a Parathread (on-demand parachain).
|
||||
**/
|
||||
NotParathread: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1563,7 +1417,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NotReserved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Para is locked from manipulation by the manager. Must use parachain or relay chain governance.
|
||||
* Para is locked from manipulation by the manager. Must use parachain or relay chain
|
||||
* governance.
|
||||
**/
|
||||
ParaLocked: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1781,100 +1636,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
**/
|
||||
AlreadyInitialized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate proposals not allowed
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate vote ignored
|
||||
**/
|
||||
DuplicateVote: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is not a member
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal must exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The close call was made too early, before the end of the voting.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There can only be a maximum of `MaxProposals` active proposals.
|
||||
**/
|
||||
TooManyProposals: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Mismatched index
|
||||
**/
|
||||
WrongIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given length bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given weight bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* Already a member.
|
||||
**/
|
||||
AlreadyMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members.
|
||||
**/
|
||||
TooManyMembers: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* The tip was already found/started.
|
||||
**/
|
||||
AlreadyKnown: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account attempting to retract the tip is not the finder of the tip.
|
||||
**/
|
||||
NotFinder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip cannot be claimed/closed because it's still in the countdown period.
|
||||
**/
|
||||
Premature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The reason given is just too big.
|
||||
**/
|
||||
ReasonTooBig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
||||
**/
|
||||
StillOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip hash is unknown.
|
||||
**/
|
||||
UnknownTip: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
treasury: {
|
||||
/**
|
||||
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
||||
@@ -1902,20 +1663,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* The message index given is unknown.
|
||||
**/
|
||||
UnknownMessageIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The amount of weight given is possibly not enough for executing the message.
|
||||
**/
|
||||
WeightOverLimit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
utility: {
|
||||
/**
|
||||
* Too many calls batched.
|
||||
@@ -2028,7 +1775,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
Filtered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The unlock operation cannot succeed because there are still users of the lock.
|
||||
* The unlock operation cannot succeed because there are still consumers of the lock.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -2052,8 +1799,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoSubscription: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There was some other issue (i.e. not to do with routing) in sending the message. Perhaps
|
||||
* a lack of space for buffering the message.
|
||||
* There was some other issue (i.e. not to do with routing) in sending the message.
|
||||
* Perhaps a lack of space for buffering the message.
|
||||
**/
|
||||
SendFailure: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -31,8 +31,8 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
BidAccepted: AugmentedEvent<ApiType, [bidder: AccountId32, paraId: u32, amount: u128, firstSlot: u32, lastSlot: u32], { bidder: AccountId32, paraId: u32, amount: u128, firstSlot: u32, lastSlot: u32 }>;
|
||||
/**
|
||||
* Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve
|
||||
* but no parachain slot has been leased.
|
||||
* Someone attempted to lease the same slot twice for a parachain. The amount is held in
|
||||
* reserve but no parachain slot has been leased.
|
||||
**/
|
||||
ReserveConfiscated: AugmentedEvent<ApiType, [paraId: u32, leaser: AccountId32, amount: u128], { paraId: u32, leaser: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -45,7 +45,8 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [bidder: AccountId32, amount: u128], { bidder: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* The winning offset was chosen for an auction. This will map into the `Winning` storage map.
|
||||
* The winning offset was chosen for an auction. This will map into the `Winning` storage
|
||||
* map.
|
||||
**/
|
||||
WinningOffset: AugmentedEvent<ApiType, [auctionIndex: u32, blockNumber: u32], { auctionIndex: u32, blockNumber: u32 }>;
|
||||
/**
|
||||
@@ -75,6 +76,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Some balance was frozen.
|
||||
**/
|
||||
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
@@ -112,6 +117,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
@@ -217,42 +226,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
**/
|
||||
Approved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A proposal was closed because its threshold was reached or after its duration was up.
|
||||
**/
|
||||
Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], { proposalHash: H256, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* A motion was not approved by the required threshold.
|
||||
**/
|
||||
Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A motion was executed; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A single member did some action; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
||||
* `MemberCount`).
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], { account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32 }>;
|
||||
/**
|
||||
* A motion (given hash) has been voted on by given account, leaving
|
||||
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], { account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* A parachain has been moved to `NewRaise`
|
||||
@@ -300,80 +273,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A proposal_hash has been blacklisted permanently.
|
||||
**/
|
||||
Blacklisted: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A referendum has been cancelled.
|
||||
**/
|
||||
Cancelled: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* An account has delegated their vote to another account.
|
||||
**/
|
||||
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
||||
/**
|
||||
* An external proposal has been tabled.
|
||||
**/
|
||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata has been transferred to new owner.
|
||||
**/
|
||||
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
NotPassed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* A proposal has been approved by referendum.
|
||||
**/
|
||||
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* A proposal got canceled.
|
||||
**/
|
||||
ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], { propIndex: u32 }>;
|
||||
/**
|
||||
* A motion has been proposed by a public account.
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||
/**
|
||||
* An account has secconded a proposal
|
||||
**/
|
||||
Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], { seconder: AccountId32, propIndex: u32 }>;
|
||||
/**
|
||||
* A referendum has begun.
|
||||
**/
|
||||
Started: AugmentedEvent<ApiType, [refIndex: u32, threshold: PalletDemocracyVoteThreshold], { refIndex: u32, threshold: PalletDemocracyVoteThreshold }>;
|
||||
/**
|
||||
* A public proposal has been tabled for referendum vote.
|
||||
**/
|
||||
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||
/**
|
||||
* An account has cancelled a previous delegation operation.
|
||||
**/
|
||||
Undelegated: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
|
||||
/**
|
||||
* An external proposal has been vetoed.
|
||||
**/
|
||||
Vetoed: AugmentedEvent<ApiType, [who: AccountId32, proposalHash: H256, until: u32], { who: AccountId32, proposalHash: H256, until: u32 }>;
|
||||
/**
|
||||
* An account has voted in a referendum
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote], { voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* An election failed.
|
||||
@@ -571,6 +470,28 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* Message placed in overweight queue.
|
||||
**/
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, pageIndex: u32, messageIndex: u32], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, pageIndex: u32, messageIndex: u32 }>;
|
||||
/**
|
||||
* This page was reaped.
|
||||
**/
|
||||
PageReaped: AugmentedEvent<ApiType, [origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, index: u32], { origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, index: u32 }>;
|
||||
/**
|
||||
* Message is processed.
|
||||
**/
|
||||
Processed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
/**
|
||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||
**/
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError], { id: U8aFixed, origin: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, error: FrameSupportMessagesProcessMessageError }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* A multisig operation has been approved by someone.
|
||||
@@ -693,15 +614,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A candidate was backed. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate was included. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate timed out. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
|
||||
/**
|
||||
* Some upward messages have been received and will be processed.
|
||||
**/
|
||||
UpwardMessagesReceived: AugmentedEvent<ApiType, [from: u32, count: u32], { from: u32, count: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -770,49 +695,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* A candidate was slashed by amount due to failing to obtain a seat as member or
|
||||
* runner-up.
|
||||
*
|
||||
* Note that old members and runners-up are also candidates.
|
||||
**/
|
||||
CandidateSlashed: AugmentedEvent<ApiType, [candidate: AccountId32, amount: u128], { candidate: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Internal error happened while trying to perform election.
|
||||
**/
|
||||
ElectionError: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* No (or not enough) candidates existed for this round. This is different from
|
||||
* `NewTerm(\[\])`. See the description of `NewTerm`.
|
||||
**/
|
||||
EmptyTerm: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A member has been removed. This should always be followed by either `NewTerm` or
|
||||
* `EmptyTerm`.
|
||||
**/
|
||||
MemberKicked: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* A new term with new_members. This indicates that enough candidates existed to run
|
||||
* the election, not that enough have has been elected. The inner value must be examined
|
||||
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
||||
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
||||
* begin with.
|
||||
**/
|
||||
NewTerm: AugmentedEvent<ApiType, [newMembers: Vec<ITuple<[AccountId32, u128]>>], { newMembers: Vec<ITuple<[AccountId32, u128]>> }>;
|
||||
/**
|
||||
* Someone has renounced their candidacy.
|
||||
**/
|
||||
Renounced: AugmentedEvent<ApiType, [candidate: AccountId32], { candidate: AccountId32 }>;
|
||||
/**
|
||||
* A seat holder was slashed by amount by being forcefully removed from the set.
|
||||
**/
|
||||
SeatHolderSlashed: AugmentedEvent<ApiType, [seatHolder: AccountId32, amount: u128], { seatHolder: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* A preimage has ben cleared.
|
||||
@@ -926,6 +808,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||
Reserved: AugmentedEvent<ApiType, [paraId: u32, who: AccountId32], { paraId: u32, who: AccountId32 }>;
|
||||
Swapped: AugmentedEvent<ApiType, [paraId: u32, otherId: u32], { paraId: u32, otherId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1035,6 +918,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* era as been reported.
|
||||
**/
|
||||
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||
/**
|
||||
* Targets size limit reached.
|
||||
**/
|
||||
SnapshotTargetsSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* Voters size limit reached.
|
||||
**/
|
||||
SnapshotVotersSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* A new set of stakers was elected.
|
||||
**/
|
||||
@@ -1091,98 +982,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
**/
|
||||
Approved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A proposal was closed because its threshold was reached or after its duration was up.
|
||||
**/
|
||||
Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], { proposalHash: H256, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* A motion was not approved by the required threshold.
|
||||
**/
|
||||
Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A motion was executed; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A single member did some action; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
||||
* `MemberCount`).
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], { account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32 }>;
|
||||
/**
|
||||
* A motion (given hash) has been voted on by given account, leaving
|
||||
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], { account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* Phantom member, never used.
|
||||
**/
|
||||
Dummy: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* One of the members' keys changed.
|
||||
**/
|
||||
KeyChanged: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The given member was added; see the transaction for who.
|
||||
**/
|
||||
MemberAdded: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The given member was removed; see the transaction for who.
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The membership was reset; see the transaction for who the new set is.
|
||||
**/
|
||||
MembersReset: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Two members were swapped; see the transaction for who.
|
||||
**/
|
||||
MembersSwapped: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* A new tip suggestion has been opened.
|
||||
**/
|
||||
NewTip: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been closed.
|
||||
**/
|
||||
TipClosed: AugmentedEvent<ApiType, [tipHash: H256, who: AccountId32, payout: u128], { tipHash: H256, who: AccountId32, payout: u128 }>;
|
||||
/**
|
||||
* A tip suggestion has reached threshold and is closing.
|
||||
**/
|
||||
TipClosing: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been retracted.
|
||||
**/
|
||||
TipRetracted: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been slashed.
|
||||
**/
|
||||
TipSlashed: AugmentedEvent<ApiType, [tipHash: H256, finder: AccountId32, deposit: u128], { tipHash: H256, finder: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
@@ -1236,53 +1035,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* Upward message executed with the given outcome.
|
||||
* \[ id, outcome \]
|
||||
**/
|
||||
ExecutedUpward: AugmentedEvent<ApiType, [U8aFixed, XcmV3TraitsOutcome]>;
|
||||
/**
|
||||
* Upward message is invalid XCM.
|
||||
* \[ id \]
|
||||
**/
|
||||
InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* The weight budget was exceeded for an individual upward message.
|
||||
*
|
||||
* This message can be later dispatched manually using `service_overweight` dispatchable
|
||||
* using the assigned `overweight_index`.
|
||||
*
|
||||
* \[ para, id, overweight_index, required \]
|
||||
**/
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Upward message from the overweight queue was executed with the given actual weight
|
||||
* used.
|
||||
*
|
||||
* \[ overweight_index, used \]
|
||||
**/
|
||||
OverweightServiced: AugmentedEvent<ApiType, [u64, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Upward message is unsupported version of XCM.
|
||||
* \[ id \]
|
||||
**/
|
||||
UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Some upward messages have been received and will be processed.
|
||||
* \[ para, count, size \]
|
||||
**/
|
||||
UpwardMessagesReceived: AugmentedEvent<ApiType, [u32, u32, u32]>;
|
||||
/**
|
||||
* The weight limit for handling upward messages was reached.
|
||||
* \[ id, remaining, required \]
|
||||
**/
|
||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
utility: {
|
||||
/**
|
||||
* Batch of dispatches completed fully with no error.
|
||||
@@ -1355,36 +1107,26 @@ declare module '@polkadot/api-base/types/events' {
|
||||
xcmPallet: {
|
||||
/**
|
||||
* Some assets have been claimed from an asset trap
|
||||
*
|
||||
* \[ hash, origin, assets \]
|
||||
**/
|
||||
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||
AssetsClaimed: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
|
||||
/**
|
||||
* Some assets have been placed in an asset trap.
|
||||
*
|
||||
* \[ hash, origin, assets \]
|
||||
**/
|
||||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV3MultiLocation, XcmVersionedMultiAssets]>;
|
||||
AssetsTrapped: AugmentedEvent<ApiType, [hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets], { hash_: H256, origin: XcmV3MultiLocation, assets: XcmVersionedMultiAssets }>;
|
||||
/**
|
||||
* Execution of an XCM message was attempted.
|
||||
*
|
||||
* \[ outcome \]
|
||||
**/
|
||||
Attempted: AugmentedEvent<ApiType, [XcmV3TraitsOutcome]>;
|
||||
Attempted: AugmentedEvent<ApiType, [outcome: XcmV3TraitsOutcome], { outcome: XcmV3TraitsOutcome }>;
|
||||
/**
|
||||
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
||||
*
|
||||
* \[ paying location, fees \]
|
||||
**/
|
||||
FeesPaid: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
FeesPaid: AugmentedEvent<ApiType, [paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets], { paying: XcmV3MultiLocation, fees: XcmV3MultiassetMultiAssets }>;
|
||||
/**
|
||||
* Expected query response has been received but the querier location of the response does
|
||||
* not match the expected. The query remains registered for a later, valid, response to
|
||||
* be received and acted upon.
|
||||
*
|
||||
* \[ origin location, id, expected querier, maybe actual querier \]
|
||||
**/
|
||||
InvalidQuerier: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3MultiLocation, Option<XcmV3MultiLocation>]>;
|
||||
InvalidQuerier: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedQuerier: XcmV3MultiLocation, maybeActualQuerier: Option<XcmV3MultiLocation> }>;
|
||||
/**
|
||||
* Expected query response has been received but the expected querier location placed in
|
||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||
@@ -1393,18 +1135,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||
* needed.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
InvalidQuerierVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
InvalidQuerierVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* Expected query response has been received but the origin location of the response does
|
||||
* not match that expected. The query remains registered for a later, valid, response to
|
||||
* be received and acted upon.
|
||||
*
|
||||
* \[ origin location, id, expected location \]
|
||||
**/
|
||||
InvalidResponder: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, Option<XcmV3MultiLocation>]>;
|
||||
InvalidResponder: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation>], { origin: XcmV3MultiLocation, queryId: u64, expectedLocation: Option<XcmV3MultiLocation> }>;
|
||||
/**
|
||||
* Expected query response has been received but the expected origin location placed in
|
||||
* storage by this runtime previously cannot be decoded. The query remains registered.
|
||||
@@ -1413,115 +1151,84 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* runtime should be readable prior to query timeout) and dangerous since the possibly
|
||||
* valid response will be dropped. Manual governance intervention is probably going to be
|
||||
* needed.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
InvalidResponderVersion: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The registered notification has
|
||||
* been dispatched and executed successfully.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
Notified: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The dispatch was unable to be
|
||||
* decoded into a `Call`; this might be due to dispatch function having a signature which
|
||||
* is not `(origin, QueryId, Response)`.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
NotifyDecodeFailed: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. There was a general error with
|
||||
* dispatching the notification call.
|
||||
*
|
||||
* \[ id, pallet index, call index \]
|
||||
**/
|
||||
NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;
|
||||
NotifyDispatchError: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8], { queryId: u64, palletIndex: u8, callIndex: u8 }>;
|
||||
/**
|
||||
* Query response has been received and query is removed. The registered notification could
|
||||
* not be dispatched because the dispatch weight is greater than the maximum weight
|
||||
* Query response has been received and query is removed. The registered notification
|
||||
* could not be dispatched because the dispatch weight is greater than the maximum weight
|
||||
* originally budgeted by this runtime for the query result.
|
||||
*
|
||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||
**/
|
||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||
NotifyOverweight: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight], { queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight }>;
|
||||
/**
|
||||
* A given location which had a version change subscription was dropped owing to an error
|
||||
* migrating the location to our new XCM format.
|
||||
*
|
||||
* \[ location, query ID \]
|
||||
**/
|
||||
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;
|
||||
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [location: XcmVersionedMultiLocation, queryId: u64], { location: XcmVersionedMultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* A given location which had a version change subscription was dropped owing to an error
|
||||
* sending the notification to it.
|
||||
*
|
||||
* \[ location, query ID, error \]
|
||||
**/
|
||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64, XcmV3TraitsError]>;
|
||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError], { location: XcmV3MultiLocation, queryId: u64, error: XcmV3TraitsError }>;
|
||||
/**
|
||||
* Query response has been received and is ready for taking with `take_response`. There is
|
||||
* no registered notification call.
|
||||
*
|
||||
* \[ id, response \]
|
||||
**/
|
||||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV3Response]>;
|
||||
ResponseReady: AugmentedEvent<ApiType, [queryId: u64, response: XcmV3Response], { queryId: u64, response: XcmV3Response }>;
|
||||
/**
|
||||
* Received query response has been read and removed.
|
||||
*
|
||||
* \[ id \]
|
||||
**/
|
||||
ResponseTaken: AugmentedEvent<ApiType, [u64]>;
|
||||
ResponseTaken: AugmentedEvent<ApiType, [queryId: u64], { queryId: u64 }>;
|
||||
/**
|
||||
* A XCM message was sent.
|
||||
*
|
||||
* \[ origin, destination, message \]
|
||||
**/
|
||||
Sent: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiLocation, XcmV3Xcm]>;
|
||||
Sent: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed], { origin: XcmV3MultiLocation, destination: XcmV3MultiLocation, message: XcmV3Xcm, messageId: U8aFixed }>;
|
||||
/**
|
||||
* The supported version of a location has been changed. This might be through an
|
||||
* automatic notification or a manual intervention.
|
||||
*
|
||||
* \[ location, XCM version \]
|
||||
**/
|
||||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32]>;
|
||||
SupportedVersionChanged: AugmentedEvent<ApiType, [location: XcmV3MultiLocation, version: u32], { location: XcmV3MultiLocation, version: u32 }>;
|
||||
/**
|
||||
* Query response received which does not match a registered query. This may be because a
|
||||
* matching query was never registered, it may be because it is a duplicate response, or
|
||||
* because the query timed out.
|
||||
*
|
||||
* \[ origin location, id \]
|
||||
**/
|
||||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV3MultiLocation, u64]>;
|
||||
UnexpectedResponse: AugmentedEvent<ApiType, [origin: XcmV3MultiLocation, queryId: u64], { origin: XcmV3MultiLocation, queryId: u64 }>;
|
||||
/**
|
||||
* An XCM version change notification message has been attempted to be sent.
|
||||
*
|
||||
* The cost of sending it (borne by the chain) is included.
|
||||
*
|
||||
* \[ destination, result, cost \]
|
||||
**/
|
||||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV3MultiLocation, u32, XcmV3MultiassetMultiAssets]>;
|
||||
VersionChangeNotified: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, result: u32, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* We have requested that a remote chain sends us XCM version change notifications.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
* We have requested that a remote chain send us XCM version change notifications.
|
||||
**/
|
||||
VersionNotifyRequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyRequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* A remote has requested XCM version change notification from us and we have honored it.
|
||||
* A version information message is sent to them and its cost is included.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
**/
|
||||
VersionNotifyStarted: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyStarted: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* We have requested that a remote chain stops sending us XCM version change notifications.
|
||||
*
|
||||
* \[ destination location, cost \]
|
||||
* We have requested that a remote chain stops sending us XCM version change
|
||||
* notifications.
|
||||
**/
|
||||
VersionNotifyUnrequested: AugmentedEvent<ApiType, [XcmV3MultiLocation, XcmV3MultiassetMultiAssets]>;
|
||||
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], { destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '../base.js';
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5AssignmentAppPublic, PolkadotPrimitivesV5CandidateCommitments, PolkadotPrimitivesV5CoreOccupied, PolkadotPrimitivesV5DisputeState, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5ParasEntry, PolkadotPrimitivesV5ScrapedOnChainVotes, PolkadotPrimitivesV5SessionInfo, PolkadotPrimitivesV5SlashingPendingSlashes, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesV5ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeHoldReason, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -206,7 +206,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: PolkadotRuntimeRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -343,36 +346,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Proposals so far.
|
||||
**/
|
||||
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Actual proposal for a given hash, if it's current.
|
||||
**/
|
||||
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The hashes of the active proposals.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes on a given proposal, if it is ongoing.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The number of auctions that have entered into their ending period so far.
|
||||
@@ -396,79 +369,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A record of who vetoed what. Maps proposal hash to a possible existent block number
|
||||
* (until when it may not be resubmitted) and who vetoed it.
|
||||
**/
|
||||
blacklist: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[u32, Vec<AccountId32>]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Record of all proposals that have been subject to emergency cancellation.
|
||||
**/
|
||||
cancellations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Those who have locked a deposit.
|
||||
*
|
||||
* TWOX-NOTE: Safe, as increasing integer keys are safe.
|
||||
**/
|
||||
depositOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[Vec<AccountId32>, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* True if the last referendum tabled was submitted externally. False if it was a public
|
||||
* proposal.
|
||||
**/
|
||||
lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The lowest referendum index representing an unbaked referendum. Equal to
|
||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||
**/
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
||||
/**
|
||||
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
||||
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||
* - `LastTabledWasExternal` is `false`; or
|
||||
* - `PublicProps` is empty.
|
||||
**/
|
||||
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of (public) proposals that have been made so far.
|
||||
**/
|
||||
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The public proposals. Unsorted. The second item is the proposal.
|
||||
**/
|
||||
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Information concerning any given referendum.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
||||
**/
|
||||
referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All votes for a particular voter. We store the balance for the number of votes that we
|
||||
* have recorded. The second item is the total amount of delegations, that will be added.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
|
||||
**/
|
||||
votingOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletDemocracyVoteVoting>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
dmp: {
|
||||
/**
|
||||
* The number to multiply the base delivery fee by.
|
||||
**/
|
||||
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* A mapping that stores the downward message queue MQC head for each para.
|
||||
*
|
||||
@@ -508,6 +413,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -575,22 +482,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Number of eras to check per block.
|
||||
*
|
||||
* If set to 0, this pallet does absolutely nothing.
|
||||
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
||||
* [`Config::MaxErasToCheckPerBlock`].
|
||||
*
|
||||
* Based on the amount of weight available at `on_idle`, up to this many eras of a single
|
||||
* nominator might be checked.
|
||||
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
||||
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
||||
* stored in [`Head`].
|
||||
**/
|
||||
erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current "head of the queue" being unstaked.
|
||||
*
|
||||
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
||||
**/
|
||||
head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The map of all accounts wishing to be unstaked.
|
||||
*
|
||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||
*
|
||||
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||
**/
|
||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -712,7 +621,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The HRMP watermark associated with each para.
|
||||
* Invariant:
|
||||
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session.
|
||||
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
|
||||
* session.
|
||||
**/
|
||||
hrmpWatermarks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -777,10 +687,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
|
||||
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
||||
**/
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -813,9 +722,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Semantically a `bool`, but this guarantees it should never hit the trie,
|
||||
* as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
|
||||
*
|
||||
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one of
|
||||
* them writes to the trie and one does not. This confusion makes `Option<()>` more suitable for
|
||||
* the semantics of this variable.
|
||||
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
|
||||
* of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
|
||||
* for the semantics of this variable.
|
||||
**/
|
||||
hasInitialized: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -823,6 +732,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* The index of the first and last (non-empty) pages.
|
||||
**/
|
||||
bookStateFor: AugmentedQuery<ApiType, (arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin]>;
|
||||
/**
|
||||
* The map of page indices to pages.
|
||||
**/
|
||||
pages: AugmentedQuery<ApiType, (arg1: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | { Ump: any } | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, u32]>;
|
||||
/**
|
||||
* The origin at which we should begin servicing.
|
||||
**/
|
||||
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The set of open multisig operations.
|
||||
@@ -946,15 +873,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The primary structure that holds all offence records keyed by report identifiers.
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -972,7 +890,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The commitments of candidates pending availability, by `ParaId`.
|
||||
**/
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -991,7 +909,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||
**/
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV5ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1036,7 +954,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
heads: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All parachains. Ordered ascending by `ParaId`. Parathreads are not included.
|
||||
* The context (relay-chain block number) of the most recent parachain head.
|
||||
**/
|
||||
mostRecentContext: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
|
||||
* included.
|
||||
*
|
||||
* Consider using the [`ParachainsCache`] type of modifying.
|
||||
**/
|
||||
@@ -1059,11 +982,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Which paras have past code that needs pruning and the relay-chain block at which the code was replaced.
|
||||
* Note that this is the actual height of the included block, not the expected height at which the
|
||||
* code upgrade would be applied, although they may be equal.
|
||||
* This is to ensure the entire acceptance period is covered, not an offset acceptance period starting
|
||||
* from the time at which the parachain perceives a code upgrade as having occurred.
|
||||
* Which paras have past code that needs pruning and the relay-chain block at which the code
|
||||
* was replaced. Note that this is the actual height of the included block, not the expected
|
||||
* height at which the code upgrade would be applied, although they may be equal.
|
||||
* This is to ensure the entire acceptance period is covered, not an offset acceptance period
|
||||
* starting from the time at which the parachain perceives a code upgrade as having occurred.
|
||||
* Multiple entries for a single para are permitted. Ordered ascending by block number.
|
||||
**/
|
||||
pastCodePruning: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
@@ -1099,17 +1022,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
upgradeCooldowns: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade procedure.
|
||||
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
|
||||
* procedure.
|
||||
*
|
||||
* This value is absent when there are no upgrades scheduled or during the time the relay chain
|
||||
* performs the checks. It is set at the first relay-chain block when the corresponding parachain
|
||||
* can switch its upgrade function. As soon as the parachain's block is included, the value
|
||||
* gets reset to `None`.
|
||||
* performs the checks. It is set at the first relay-chain block when the corresponding
|
||||
* parachain can switch its upgrade function. As soon as the parachain's block is included, the
|
||||
* value gets reset to `None`.
|
||||
*
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||
* an upgrade for this parachain.
|
||||
@@ -1121,7 +1045,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1129,8 +1053,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
paraScheduler: {
|
||||
/**
|
||||
* One entry for each availability core. Entries are `None` if the core is not currently occupied. Can be
|
||||
* temporarily `Some` if scheduled but not occupied.
|
||||
* One entry for each availability core. Entries are `None` if the core is not currently
|
||||
* occupied. Can be temporarily `Some` if scheduled but not occupied.
|
||||
* The i'th parachain belongs to the i'th core, with the remaining cores all being
|
||||
* parathread-multiplexers.
|
||||
*
|
||||
@@ -1138,32 +1062,18 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* * The number of parachains and parathread multiplexers
|
||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||
**/
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5CoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
||||
* currently being handled by an occupied core.
|
||||
*
|
||||
* Bounded by the number of parathread cores and scheduling lookahead. Reasonably, 10 * 50 = 500.
|
||||
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
||||
* scheduled on that core. `None` is used to signal to not schedule the next para of the core
|
||||
* as there is one currently being scheduled. Not using `None` here would overwrite the
|
||||
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
|
||||
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
|
||||
**/
|
||||
parathreadClaimIndex: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<Option<PolkadotPrimitivesV5ParasEntry>>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A queue of upcoming claims and which core they should be mapped onto.
|
||||
*
|
||||
* The number of queued claims is bounded at the `scheduling_lookahead`
|
||||
* multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500.
|
||||
**/
|
||||
parathreadQueue: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSchedulerParathreadClaimQueue>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Currently scheduled cores - free but up to be occupied.
|
||||
*
|
||||
* Bounded by the number of cores: one for each parachain and parathread multiplexer.
|
||||
*
|
||||
* The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/
|
||||
* for the upcoming block.
|
||||
**/
|
||||
scheduled: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerCoreAssignment>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The block number where the session start occurred. Used to track how many group rotations have occurred.
|
||||
* The block number where the session start occurred. Used to track how many group rotations
|
||||
* have occurred.
|
||||
*
|
||||
* Note that in the context of parachains modules the session change is signaled during
|
||||
* the block and enacted at the end of the block (at the finalization stage, to be exact).
|
||||
@@ -1176,8 +1086,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* broader set of Polkadot validators, but instead just the subset used for parachains during
|
||||
* this session.
|
||||
*
|
||||
* Bound: The number of cores is the sum of the numbers of parachains and parathread multiplexers.
|
||||
* Reasonably, 100-1000. The dominant factor is the number of validators: safe upper bound at 10k.
|
||||
* Bound: The number of cores is the sum of the numbers of parachains and parathread
|
||||
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
||||
* upper bound at 10k.
|
||||
**/
|
||||
validatorGroups: AugmentedQuery<ApiType, () => Observable<Vec<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -1194,7 +1105,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
||||
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||
@@ -1227,7 +1138,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
||||
* When in doubt, use `Sessions` API instead.
|
||||
**/
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
@@ -1235,13 +1146,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
* Does not have any entries before the session index in the first session change notification.
|
||||
**/
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1254,10 +1165,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
activeValidatorIndices: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||
* This should be the same length as `ActiveValidatorIndices`.
|
||||
* The parachain attestation keys of the validators actively participating in parachain
|
||||
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
||||
**/
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* All allowed relay-parents.
|
||||
**/
|
||||
allowedRelayParents: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current session index.
|
||||
**/
|
||||
@@ -1267,39 +1182,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
parasSlashing: {
|
||||
/**
|
||||
* The present candidate list. A current member or runner-up can never enter this vector
|
||||
* and is always implicitly assumed to be a candidate.
|
||||
*
|
||||
* Second element is the deposit.
|
||||
*
|
||||
* Invariant: Always sorted based on account id.
|
||||
* Validators pending dispute slashes.
|
||||
**/
|
||||
candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* The total number of vote rounds that have happened, excluding the upcoming one.
|
||||
* `ValidatorSetCount` per session.
|
||||
**/
|
||||
electionRounds: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current elected members.
|
||||
*
|
||||
* Invariant: Always sorted based on account id.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current reserved runners-up.
|
||||
*
|
||||
* Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
|
||||
* last (i.e. _best_) runner-up will be replaced.
|
||||
**/
|
||||
runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes and locked stake of a particular voter.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletElectionsPhragmenVoter>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1373,8 +1264,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Amount held on deposit for each para and the original depositor.
|
||||
*
|
||||
* The given account ID is responsible for registering the code and initial head data, but may only do
|
||||
* so if it isn't yet registered. (After that, it's up to governance to do so.)
|
||||
* The given account ID is responsible for registering the code and initial head data, but may
|
||||
* only do so if it isn't yet registered. (After that, it's up to governance to do so.)
|
||||
**/
|
||||
paras: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeCommonParasRegistrarParaInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -1448,8 +1339,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Amounts held on deposit for each (possibly future) leased parachain.
|
||||
*
|
||||
* The actual amount locked on its behalf by any account at any time is the maximum of the second values
|
||||
* of the items in this list whose first value is the account.
|
||||
* The actual amount locked on its behalf by any account at any time is the maximum of the
|
||||
* second values of the items in this list whose first value is the account.
|
||||
*
|
||||
* The first item in the list is the amount locked for the current Lease Period. Following
|
||||
* items are for the subsequent lease periods.
|
||||
@@ -1629,7 +1520,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* 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
|
||||
* account's [`NominationsQuota::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
|
||||
@@ -1749,7 +1641,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
||||
* in case of changes fetch the list of events of interest.
|
||||
*
|
||||
* The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
|
||||
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
||||
* the `EventIndex` then in case if the topic has the same contents on the next block
|
||||
* no notification will be triggered thus the event might be lost.
|
||||
**/
|
||||
@@ -1792,50 +1684,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Proposals so far.
|
||||
**/
|
||||
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Actual proposal for a given hash, if it's current.
|
||||
**/
|
||||
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The hashes of the active proposals.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes on a given proposal, if it is ongoing.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* The current membership, stored as an ordered Vec.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current prime member, if one exists.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* Did the timestamp get updated in this block?
|
||||
@@ -1850,23 +1698,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* Simple preimage lookup from the reason's hash to the original data. Again, has an
|
||||
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
|
||||
**/
|
||||
reasons: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
|
||||
* This has the insecure enumerable hash function since the key itself is already
|
||||
* guaranteed to be a secure hash.
|
||||
**/
|
||||
tips: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletTipsOpenTip>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
transactionPayment: {
|
||||
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
@@ -1897,66 +1728,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
ump: {
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForOverweight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The ordered list of `ParaId`s that have a `RelayDispatchQueue` entry.
|
||||
*
|
||||
* Invariant:
|
||||
* - The set of items from this vector should be exactly the set of the keys in
|
||||
* `RelayDispatchQueues` and `RelayDispatchQueueSize`.
|
||||
**/
|
||||
needsDispatch: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is the para that gets will get dispatched first during the next upward dispatchable queue
|
||||
* execution round.
|
||||
*
|
||||
* Invariant:
|
||||
* - If `Some(para)`, then `para` must be present in `NeedsDispatch`.
|
||||
**/
|
||||
nextDispatchRoundStartWith: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The messages that exceeded max individual message weight budget.
|
||||
*
|
||||
* These messages stay there until manually dispatched.
|
||||
**/
|
||||
overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
/**
|
||||
* The number of overweight messages ever recorded in `Overweight` (and thus the lowest free
|
||||
* index).
|
||||
**/
|
||||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The messages waiting to be handled by the relay-chain originating from a certain parachain.
|
||||
*
|
||||
* Note that some upward messages might have been already processed by the inclusion logic. E.g.
|
||||
* channel management messages.
|
||||
*
|
||||
* The messages are processed in FIFO order.
|
||||
**/
|
||||
relayDispatchQueues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Size of the dispatch queues. Caches sizes of the queues in `RelayDispatchQueue`.
|
||||
*
|
||||
* First item in the tuple is the count of messages and second
|
||||
* is the total length (in bytes) of the message payloads.
|
||||
*
|
||||
* Note that this is an auxiliary mapping: it's possible to tell the byte size and the number of
|
||||
* messages only looking at `RelayDispatchQueues`. This mapping is separate to avoid the cost of
|
||||
* loading the whole message queue if only the total size and count are required.
|
||||
*
|
||||
* Invariant:
|
||||
* - The set of keys should exactly match the set of keys of `RelayDispatchQueues`.
|
||||
**/
|
||||
relayDispatchQueueSize: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u32, u32]>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
vesting: {
|
||||
/**
|
||||
* Storage version of the pallet.
|
||||
@@ -2054,6 +1825,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* of our versions we informed them of.
|
||||
**/
|
||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Global suspension state of the XCM executor.
|
||||
**/
|
||||
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '@polkadot/types-augment/registry/substrate';
|
||||
|
||||
@@ -18,7 +18,7 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
@@ -85,7 +85,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/2 */
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
@@ -245,7 +245,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/4 */
|
||||
/** 0xaf2c0297a23e6d3d/5 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
@@ -279,6 +279,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Get the contents of all channels addressed to the given recipient.
|
||||
**/
|
||||
inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
|
||||
/**
|
||||
* Returns a merkle proof of a validator session key
|
||||
**/
|
||||
keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Scrape dispute relevant from on-chain, backing votes and resolved disputes.
|
||||
**/
|
||||
@@ -307,6 +311,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Submits a PVF pre-checking statement into the transaction pool.
|
||||
**/
|
||||
submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
|
||||
/**
|
||||
* Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
|
||||
**/
|
||||
submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Returns a list of validators that lost a past session dispute and need to be slashed
|
||||
**/
|
||||
unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
|
||||
/**
|
||||
* Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
|
||||
**/
|
||||
@@ -369,7 +381,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
+354
-3091
File diff suppressed because it is too large
Load Diff
@@ -6,10 +6,10 @@
|
||||
import '@polkadot/api-base/types/consts';
|
||||
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Option, 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, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KitchensinkRuntimeHoldReason, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -41,6 +41,50 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
allianceMotion: {
|
||||
/**
|
||||
* The maximum weight of a dispatch call that can be proposed and executed.
|
||||
**/
|
||||
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
assetConversion: {
|
||||
/**
|
||||
* A fee to withdraw the liquidity.
|
||||
**/
|
||||
liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* A % the liquidity providers will take of every swap. Represents 10ths of a percent.
|
||||
**/
|
||||
lpFee: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The max number of hops in a swap.
|
||||
**/
|
||||
maxSwapPathLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum LP token amount that could be minted. Ameliorates rounding errors.
|
||||
**/
|
||||
mintMinLiquidity: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The pallet's id, used for deriving its sovereign account ID.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* A one-time fee to setup the pool.
|
||||
**/
|
||||
poolSetupFee: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
||||
**/
|
||||
poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* The amount of funds that must be reserved when creating a new approval.
|
||||
@@ -98,6 +142,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max number of authorities allowed
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -119,10 +167,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||
**/
|
||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of holds that can exist on an account at any time.
|
||||
**/
|
||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
@@ -137,6 +181,29 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
beefy: {
|
||||
/**
|
||||
* The maximum number of authorities that can be added.
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
* Since the `SetIdSession` map is only used for validating equivocations this
|
||||
* value should relate to the bonding duration of whatever staking system is
|
||||
* being used (if any). If equivocation handling is not enabled then this value
|
||||
* can be zero.
|
||||
**/
|
||||
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The amount held on deposit for placing a bounty proposal.
|
||||
@@ -184,6 +251,28 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Maximum number of legacy leases.
|
||||
**/
|
||||
maxLeasedCores: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of system cores.
|
||||
**/
|
||||
maxReservedCores: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier from which the internal Pot is generated.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of Relay-chain blocks per timeslice.
|
||||
**/
|
||||
timeslicePeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Minimum value for a child-bounty.
|
||||
@@ -199,6 +288,23 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
contracts: {
|
||||
/**
|
||||
* The version of the HostFn APIs that are available in the runtime.
|
||||
*
|
||||
* Only valid value is `()`.
|
||||
**/
|
||||
apiVersion: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The percentage of the storage deposit that should be held for using a code hash.
|
||||
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
||||
* protects the code from being removed. In order to prevent abuse these actions are
|
||||
* protected with a percentage of the code deposit.
|
||||
**/
|
||||
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
||||
**/
|
||||
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of balance a caller has to pay for each byte of storage.
|
||||
*
|
||||
@@ -216,9 +322,14 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
depositPerItem: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||
* a wasm binary below this maximum size.
|
||||
* Type that bundles together all the runtime configurable interface types.
|
||||
*
|
||||
* This is not a real config. We just mention the type here as constant so that
|
||||
* its type appears in the metadata. Only valid value is `()`.
|
||||
**/
|
||||
environment: PalletContractsEnvironment & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a contract code in bytes.
|
||||
*
|
||||
* The value should be chosen carefully taking into the account the overall memory limit
|
||||
* your runtime has, as well as the [maximum allowed callstack
|
||||
@@ -229,6 +340,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum length of the debug buffer in bytes.
|
||||
**/
|
||||
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of delegate_dependencies that a contract can lock with
|
||||
* [`chain_extension::Ext::lock_delegate_dependency`].
|
||||
**/
|
||||
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum allowable length in bytes for storage keys.
|
||||
**/
|
||||
@@ -284,6 +400,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* The maximum weight of a dispatch call that can be proposed and executed.
|
||||
**/
|
||||
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||
@@ -356,21 +482,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
maxElectableTargets: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
|
||||
* are only over a single block, but once multi-block elections are introduced they will
|
||||
* take place over multiple blocks.
|
||||
**/
|
||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||
* implementation.
|
||||
@@ -393,10 +504,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* to submit the worker's solution.
|
||||
**/
|
||||
offchainRepeat: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base deposit for a signed solution.
|
||||
**/
|
||||
signedDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Per-byte deposit for a signed solution.
|
||||
**/
|
||||
@@ -524,6 +631,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Max Authorities in use
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators for each validator.
|
||||
**/
|
||||
maxNominators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of entries to keep in the set id to session index mapping.
|
||||
*
|
||||
@@ -540,18 +651,13 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* The amount held on deposit for a registered identity
|
||||
* The amount held on deposit for a registered identity.
|
||||
**/
|
||||
basicDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit per additional field for a registered identity.
|
||||
* The amount held on deposit per encoded byte for a registered identity.
|
||||
**/
|
||||
fieldDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
||||
* required to access an identity, but can be pretty high.
|
||||
**/
|
||||
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
|
||||
byteDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
||||
* of, e.g., updating judgements.
|
||||
@@ -561,6 +667,18 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The maximum number of sub-accounts allowed per identified account.
|
||||
**/
|
||||
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a suffix.
|
||||
**/
|
||||
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a username, including its suffix and any system-added delimiters.
|
||||
**/
|
||||
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks within which a username grant must be accepted.
|
||||
**/
|
||||
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for a registered subaccount. This should account for the fact
|
||||
* that one storage item's value will increase by the size of an account ID, and there will
|
||||
@@ -643,6 +761,58 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* The maximum number of authorities per session.
|
||||
**/
|
||||
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of external addresses for a mixnode.
|
||||
**/
|
||||
maxExternalAddressesPerMixnode: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum size of one of a mixnode's external addresses.
|
||||
**/
|
||||
maxExternalAddressSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a
|
||||
* session, the mixnet will not be active during the session.
|
||||
**/
|
||||
minMixnodes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the first phase of each session (`CoverToCurrent`), in blocks.
|
||||
**/
|
||||
numCoverToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the third phase of each session (`CoverToPrev`), in blocks.
|
||||
**/
|
||||
numCoverToPrevBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of "slack" blocks at the end of each session.
|
||||
* [`maybe_register`](Pallet::maybe_register) will try to register before this slack
|
||||
* period, but may post registration transactions during the slack period as a last
|
||||
* resort.
|
||||
**/
|
||||
numRegisterEndSlackBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of "slack" blocks at the start of each session, during which
|
||||
* [`maybe_register`](Pallet::maybe_register) will not attempt to post registration
|
||||
* transactions.
|
||||
**/
|
||||
numRegisterStartSlackBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Length of the second phase of each session (`RequestsToCurrent`), in blocks.
|
||||
**/
|
||||
numRequestsToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Priority of unsigned transactions used to register mixnodes.
|
||||
**/
|
||||
registrationPriority: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
@@ -668,6 +838,33 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
nftFractionalization: {
|
||||
/**
|
||||
* The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
|
||||
* owner when the asset is unified and the NFT is unlocked.
|
||||
**/
|
||||
deposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The newly created asset's name.
|
||||
**/
|
||||
newAssetName: Bytes & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The newly created asset's symbol.
|
||||
**/
|
||||
newAssetSymbol: Bytes & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The pallet's id, used for deriving its sovereign account ID.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a name or symbol stored on-chain.
|
||||
**/
|
||||
stringLimit: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
nfts: {
|
||||
/**
|
||||
* The maximum approvals an item could have.
|
||||
@@ -743,10 +940,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Must be no greater than `MaxQueueLen`.
|
||||
**/
|
||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The identifier of the hold reason.
|
||||
**/
|
||||
holdReason: KitchensinkRuntimeHoldReason & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||
*
|
||||
@@ -814,6 +1007,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
||||
**/
|
||||
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
||||
**/
|
||||
maxUnbonding: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The nomination pool's pallet id.
|
||||
**/
|
||||
@@ -823,6 +1020,44 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
poolAssets: {
|
||||
/**
|
||||
* The amount of funds that must be reserved when creating a new approval.
|
||||
**/
|
||||
approvalDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of funds that must be reserved for a non-provider asset account to be
|
||||
* maintained.
|
||||
**/
|
||||
assetAccountDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The basic amount of funds that must be reserved for an asset.
|
||||
**/
|
||||
assetDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The basic amount of funds that must be reserved when adding metadata to your asset.
|
||||
**/
|
||||
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The additional funds that must be reserved for the number of bytes you store in your
|
||||
* metadata.
|
||||
**/
|
||||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
||||
*
|
||||
* Must be configured to result in a weight that makes each call fit in a block.
|
||||
**/
|
||||
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a name or symbol stored on-chain.
|
||||
**/
|
||||
stringLimit: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
proxy: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating an announcement.
|
||||
@@ -964,6 +1199,45 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* The amount that will be reserved upon calling [`Pallet::enter`].
|
||||
*
|
||||
* `None` disallows permissionlessly enabling the safe-mode and is a sane default.
|
||||
**/
|
||||
enterDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* For how many blocks the safe-mode will be entered by [`Pallet::enter`].
|
||||
**/
|
||||
enterDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount that will be reserved upon calling [`Pallet::extend`].
|
||||
*
|
||||
* `None` disallows permissionlessly extending the safe-mode and is a sane default.
|
||||
**/
|
||||
extendDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call.
|
||||
*
|
||||
* This does not impose a hard limit as the safe-mode can be extended multiple times.
|
||||
**/
|
||||
extendDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimal duration a deposit will remain reserved after safe-mode is entered or
|
||||
* extended, unless [`Pallet::force_release_deposit`] is successfully called sooner.
|
||||
*
|
||||
* Every deposit is tied to a specific activation or extension, thus each deposit can be
|
||||
* released independently after the delay for it has passed.
|
||||
*
|
||||
* `None` disallows permissionlessly releasing the safe-mode deposits and is a sane
|
||||
* default.
|
||||
**/
|
||||
releaseDelay: Option<u32> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
salary: {
|
||||
/**
|
||||
* The total budget per cycle.
|
||||
@@ -998,6 +1272,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1006,27 +1284,31 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
society: {
|
||||
/**
|
||||
* The minimum amount of a deposit required for a bid to be made.
|
||||
**/
|
||||
candidateDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between membership challenges.
|
||||
**/
|
||||
challengePeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of candidates that we accept per round.
|
||||
* The number of blocks on which new candidates can claim their membership and be the
|
||||
* named head.
|
||||
**/
|
||||
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
|
||||
claimPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of strikes before a member gets funds slashed.
|
||||
**/
|
||||
graceStrikes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of bids at once.
|
||||
**/
|
||||
maxBids: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum duration of the payout lock.
|
||||
**/
|
||||
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of times a member may vote the wrong way (or not at all, when they are a
|
||||
* skeptic) before they become suspended.
|
||||
* The maximum number of payouts a member may have waiting unclaimed.
|
||||
**/
|
||||
maxStrikes: u32 & AugmentedConst<ApiType>;
|
||||
maxPayouts: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The societies's pallet id
|
||||
**/
|
||||
@@ -1036,14 +1318,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
periodSpend: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between candidate/membership rotation periods.
|
||||
* The number of blocks on which new candidates should be voted on. Together with
|
||||
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
||||
**/
|
||||
rotationPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of the unpaid reward that gets deducted in the case that either a skeptic
|
||||
* doesn't vote or someone votes in the wrong way.
|
||||
**/
|
||||
wrongSideDeduction: u128 & AugmentedConst<ApiType>;
|
||||
votingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
@@ -1060,8 +1338,8 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Following information is kept for eras in `[current_era -
|
||||
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
||||
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
||||
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
||||
* `StakingLedger.claimed_rewards`.
|
||||
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
|
||||
* `ErasStakersOverview`.
|
||||
*
|
||||
* Must be more than the number of eras delayed by session.
|
||||
* I.e. active era must always be in history. I.e. `active_era >
|
||||
@@ -1071,23 +1349,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this should be set to same value or greater as in storage.
|
||||
*
|
||||
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
||||
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
||||
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
|
||||
* the existing value can lead to inconsistencies in the
|
||||
* `StakingLedger` and will need to be handled properly in a migration.
|
||||
* The test `reducing_history_depth_abrupt` shows this effect.
|
||||
**/
|
||||
historyDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of nominations per nominator.
|
||||
**/
|
||||
maxNominations: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of nominators rewarded for each validator.
|
||||
* The maximum size of each `T::ExposurePage`.
|
||||
*
|
||||
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
|
||||
* claim their reward. This used to limit the i/o cost for the nominator payout.
|
||||
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
||||
* nominators.
|
||||
*
|
||||
* For older non-paged exposure, a reward payout was restricted to the top
|
||||
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
||||
* nominator payout.
|
||||
*
|
||||
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
|
||||
* without handling it in a migration.
|
||||
**/
|
||||
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
|
||||
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
||||
* have. Effectively determines how many unique eras a staker may be
|
||||
@@ -1117,6 +1398,36 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
statement: {
|
||||
/**
|
||||
* Cost of data byte used for priority calculation.
|
||||
**/
|
||||
byteCost: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum data bytes allowed per account.
|
||||
**/
|
||||
maxAllowedBytes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of statements allowed per account.
|
||||
**/
|
||||
maxAllowedStatements: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum data bytes allowed per account.
|
||||
**/
|
||||
minAllowedBytes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum number of statements allowed per account.
|
||||
**/
|
||||
minAllowedStatements: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Min balance for priority statements.
|
||||
**/
|
||||
statementCost: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Maximal number of bytes that a key can have.
|
||||
@@ -1139,7 +1450,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
||||
*
|
||||
* For more info see
|
||||
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
|
||||
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
||||
**/
|
||||
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1181,12 +1492,24 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* The maximum weight of a dispatch call that can be proposed and executed.
|
||||
**/
|
||||
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* The minimum period between blocks. Beware that this is different to the *expected*
|
||||
* period that the block production apparatus provides. Your chosen consensus system will
|
||||
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
||||
* double this period on default settings.
|
||||
* The minimum period between blocks.
|
||||
*
|
||||
* Be aware that this is different to the *expected* period that the block production
|
||||
* apparatus provides. Your chosen consensus system will generally work with this to
|
||||
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
||||
* period on default settings.
|
||||
**/
|
||||
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1205,6 +1528,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
||||
**/
|
||||
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount for a single tip.
|
||||
**/
|
||||
maxTipAmount: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period for which a tip remains open after is has achieved threshold tippers.
|
||||
**/
|
||||
@@ -1214,7 +1541,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a tip report.
|
||||
* The non-zero amount held on deposit for placing a tip report.
|
||||
**/
|
||||
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1224,10 +1551,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
* `priority`
|
||||
*
|
||||
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
||||
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
||||
* added to a tip component in regular `priority` calculations.
|
||||
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
||||
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
||||
@@ -1267,6 +1594,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The treasury's pallet id, used for deriving its sovereign account ID.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period during which an approved treasury spend has to be claimed.
|
||||
**/
|
||||
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
||||
* An accepted proposal gets these back. A rejected proposal does not.
|
||||
@@ -1289,6 +1620,18 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
txPause: {
|
||||
/**
|
||||
* Maximum length for pallet name and call name SCALE encoded string names.
|
||||
*
|
||||
* TOO LONG NAMES WILL BE TREATED AS PAUSED.
|
||||
**/
|
||||
maxNameLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
uniques: {
|
||||
/**
|
||||
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/events';
|
||||
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -109,6 +109,57 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetConversion: {
|
||||
/**
|
||||
* A successful call of the `AddLiquidity` extrinsic will create this event.
|
||||
**/
|
||||
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], { who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128 }>;
|
||||
/**
|
||||
* A successful call of the `RemoveLiquidity` extrinsic will create this event.
|
||||
**/
|
||||
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
|
||||
/**
|
||||
* A successful call of the `CretaPool` extrinsic will create this event.
|
||||
**/
|
||||
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32 }>;
|
||||
/**
|
||||
* Assets have been converted from one to another.
|
||||
**/
|
||||
SwapCreditExecuted: AugmentedEvent<ApiType, [amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
|
||||
/**
|
||||
* Assets have been converted from one to another. Both `SwapExactTokenForToken`
|
||||
* and `SwapTokenForExactToken` will generate this event.
|
||||
**/
|
||||
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetConversionTxPayment: {
|
||||
/**
|
||||
* A swap of the refund in native currency back to asset failed.
|
||||
**/
|
||||
AssetRefundFailed: AugmentedEvent<ApiType, [nativeAmountKept: u128], { nativeAmountKept: u128 }>;
|
||||
/**
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
* has been paid by `who` in an asset `asset_id`.
|
||||
**/
|
||||
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: u32], { who: AccountId32, actualFee: u128, tip: u128, assetId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetRate: {
|
||||
AssetRateCreated: AugmentedEvent<ApiType, [assetKind: u32, rate: u128], { assetKind: u32, rate: u128 }>;
|
||||
AssetRateRemoved: AugmentedEvent<ApiType, [assetKind: u32], { assetKind: u32 }>;
|
||||
AssetRateUpdated: AugmentedEvent<ApiType, [assetKind: u32, old: u128, new_: u128], { assetKind: u32, old: u128, new_: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* Accounts were destroyed for given asset.
|
||||
@@ -142,6 +193,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset `asset_id` was thawed.
|
||||
**/
|
||||
AssetThawed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* Some account `who` was blocked.
|
||||
**/
|
||||
Blocked: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were destroyed.
|
||||
**/
|
||||
@@ -190,6 +245,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some account `who` was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some account `who` was created with a deposit from `depositor`.
|
||||
**/
|
||||
Touched: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, depositor: AccountId32], { assetId: u32, who: AccountId32, depositor: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were transferred.
|
||||
**/
|
||||
@@ -237,6 +296,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Some balance was frozen.
|
||||
**/
|
||||
Frozen: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
@@ -274,6 +337,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* The `TotalIssuance` was forcefully changed.
|
||||
**/
|
||||
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], { old: u128, new_: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
@@ -300,6 +371,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* A bounty is approved.
|
||||
**/
|
||||
BountyApproved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* A bounty is awarded to a beneficiary.
|
||||
**/
|
||||
@@ -328,6 +403,137 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A bounty proposal was rejected; funds were slashed.
|
||||
**/
|
||||
BountyRejected: AugmentedEvent<ApiType, [index: u32, bond: u128], { index: u32, bond: u128 }>;
|
||||
/**
|
||||
* A bounty curator is accepted.
|
||||
**/
|
||||
CuratorAccepted: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
|
||||
/**
|
||||
* A bounty curator is proposed.
|
||||
**/
|
||||
CuratorProposed: AugmentedEvent<ApiType, [bountyId: u32, curator: AccountId32], { bountyId: u32, curator: AccountId32 }>;
|
||||
/**
|
||||
* A bounty curator is unassigned.
|
||||
**/
|
||||
CuratorUnassigned: AugmentedEvent<ApiType, [bountyId: u32], { bountyId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
AllowedRenewalDropped: AugmentedEvent<ApiType, [when: u32, core: u16], { when: u32, core: u16 }>;
|
||||
/**
|
||||
* A Region has been assigned to a particular task.
|
||||
**/
|
||||
Assigned: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, task: u32], { regionId: PalletBrokerRegionId, duration: u32, task: u32 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool Revenue is ready for payout claims.
|
||||
**/
|
||||
ClaimsReady: AugmentedEvent<ApiType, [when: u32, systemPayout: u128, privatePayout: u128], { when: u32, systemPayout: u128, privatePayout: u128 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool contribution record has been dropped.
|
||||
**/
|
||||
ContributionDropped: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId], { regionId: PalletBrokerRegionId }>;
|
||||
/**
|
||||
* A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain.
|
||||
**/
|
||||
CoreAssigned: AugmentedEvent<ApiType, [core: u16, when: u32, assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>], { core: u16, when: u32, assignment: Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>> }>;
|
||||
/**
|
||||
* The number of cores available for scheduling has changed.
|
||||
**/
|
||||
CoreCountChanged: AugmentedEvent<ApiType, [coreCount: u16], { coreCount: u16 }>;
|
||||
/**
|
||||
* A new number of cores has been requested.
|
||||
**/
|
||||
CoreCountRequested: AugmentedEvent<ApiType, [coreCount: u16], { coreCount: u16 }>;
|
||||
/**
|
||||
* Some Instantaneous Coretime Pool credit has been purchased.
|
||||
**/
|
||||
CreditPurchased: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128], { who: AccountId32, beneficiary: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been dropped.
|
||||
**/
|
||||
HistoryDropped: AugmentedEvent<ApiType, [when: u32, revenue: u128], { when: u32, revenue: u128 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been ignored because the
|
||||
* timeslice was already known. Governance may need to intervene.
|
||||
**/
|
||||
HistoryIgnored: AugmentedEvent<ApiType, [when: u32, revenue: u128], { when: u32, revenue: u128 }>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool payment record has been initialized.
|
||||
**/
|
||||
HistoryInitialized: AugmentedEvent<ApiType, [when: u32, privatePoolSize: u32, systemPoolSize: u32], { when: u32, privatePoolSize: u32, systemPoolSize: u32 }>;
|
||||
/**
|
||||
* A Region has been converted into two overlapping Regions each of lesser regularity.
|
||||
**/
|
||||
Interlaced: AugmentedEvent<ApiType, [oldRegionId: PalletBrokerRegionId, newRegionIds: ITuple<[PalletBrokerRegionId, PalletBrokerRegionId]>], { oldRegionId: PalletBrokerRegionId, newRegionIds: ITuple<[PalletBrokerRegionId, PalletBrokerRegionId]> }>;
|
||||
/**
|
||||
* A new lease has been created.
|
||||
**/
|
||||
Leased: AugmentedEvent<ApiType, [task: u32, until: u32], { task: u32, until: u32 }>;
|
||||
/**
|
||||
* A lease is about to end.
|
||||
**/
|
||||
LeaseEnding: AugmentedEvent<ApiType, [task: u32, when: u32], { task: u32, when: u32 }>;
|
||||
/**
|
||||
* A Region has been split into two non-overlapping Regions.
|
||||
**/
|
||||
Partitioned: AugmentedEvent<ApiType, [oldRegionId: PalletBrokerRegionId, newRegionIds: ITuple<[PalletBrokerRegionId, PalletBrokerRegionId]>], { oldRegionId: PalletBrokerRegionId, newRegionIds: ITuple<[PalletBrokerRegionId, PalletBrokerRegionId]> }>;
|
||||
/**
|
||||
* A Region has been added to the Instantaneous Coretime Pool.
|
||||
**/
|
||||
Pooled: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32], { regionId: PalletBrokerRegionId, duration: u32 }>;
|
||||
/**
|
||||
* A Region of Bulk Coretime has been purchased.
|
||||
**/
|
||||
Purchased: AugmentedEvent<ApiType, [who: AccountId32, regionId: PalletBrokerRegionId, price: u128, duration: u32], { who: AccountId32, regionId: PalletBrokerRegionId, price: u128, duration: u32 }>;
|
||||
/**
|
||||
* A Region has been dropped due to being out of date.
|
||||
**/
|
||||
RegionDropped: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32], { regionId: PalletBrokerRegionId, duration: u32 }>;
|
||||
/**
|
||||
* The workload of a core has become renewable.
|
||||
**/
|
||||
Renewable: AugmentedEvent<ApiType, [core: u16, price: u128, begin: u32, workload: Vec<PalletBrokerScheduleItem>], { core: u16, price: u128, begin: u32, workload: Vec<PalletBrokerScheduleItem> }>;
|
||||
/**
|
||||
* A workload has been renewed.
|
||||
**/
|
||||
Renewed: AugmentedEvent<ApiType, [who: AccountId32, price: u128, oldCore: u16, core: u16, begin: u32, duration: u32, workload: Vec<PalletBrokerScheduleItem>], { who: AccountId32, price: u128, oldCore: u16, core: u16, begin: u32, duration: u32, workload: Vec<PalletBrokerScheduleItem> }>;
|
||||
/**
|
||||
* A reservation for a workload has been cancelled.
|
||||
**/
|
||||
ReservationCancelled: AugmentedEvent<ApiType, [index: u32, workload: Vec<PalletBrokerScheduleItem>], { index: u32, workload: Vec<PalletBrokerScheduleItem> }>;
|
||||
/**
|
||||
* There is a new reservation for a workload.
|
||||
**/
|
||||
ReservationMade: AugmentedEvent<ApiType, [index: u32, workload: Vec<PalletBrokerScheduleItem>], { index: u32, workload: Vec<PalletBrokerScheduleItem> }>;
|
||||
/**
|
||||
* The act of claiming revenue has begun.
|
||||
**/
|
||||
RevenueClaimBegun: AugmentedEvent<ApiType, [region: PalletBrokerRegionId, maxTimeslices: u32], { region: PalletBrokerRegionId, maxTimeslices: u32 }>;
|
||||
/**
|
||||
* A particular timeslice has a non-zero claim.
|
||||
**/
|
||||
RevenueClaimItem: AugmentedEvent<ApiType, [when: u32, amount: u128], { when: u32, amount: u128 }>;
|
||||
/**
|
||||
* A revenue claim has (possibly only in part) been paid.
|
||||
**/
|
||||
RevenueClaimPaid: AugmentedEvent<ApiType, [who: AccountId32, amount: u128, next: Option<PalletBrokerRegionId>], { who: AccountId32, amount: u128, next: Option<PalletBrokerRegionId> }>;
|
||||
/**
|
||||
* A new sale has been initialized.
|
||||
**/
|
||||
SaleInitialized: AugmentedEvent<ApiType, [saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16], { saleStart: u32, leadinLength: u32, startPrice: u128, regularPrice: u128, regionBegin: u32, regionEnd: u32, idealCoresSold: u16, coresOffered: u16 }>;
|
||||
/**
|
||||
* The sale rotation has been started and a new sale is imminent.
|
||||
**/
|
||||
SalesStarted: AugmentedEvent<ApiType, [price: u128, coreCount: u16], { price: u128, coreCount: u16 }>;
|
||||
/**
|
||||
* Ownership of a Region has been transferred.
|
||||
**/
|
||||
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -365,15 +571,15 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
Called: AugmentedEvent<ApiType, [caller: AccountId32, contract: AccountId32], { caller: AccountId32, contract: AccountId32 }>;
|
||||
Called: AugmentedEvent<ApiType, [caller: PalletContractsOrigin, contract: AccountId32], { caller: PalletContractsOrigin, contract: AccountId32 }>;
|
||||
/**
|
||||
* A code with the specified hash was removed.
|
||||
**/
|
||||
CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;
|
||||
CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256, depositReleased: u128, remover: AccountId32], { codeHash: H256, depositReleased: u128, remover: AccountId32 }>;
|
||||
/**
|
||||
* Code with the specified hash has been stored.
|
||||
**/
|
||||
CodeStored: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;
|
||||
CodeStored: AugmentedEvent<ApiType, [codeHash: H256, depositHeld: u128, uploader: AccountId32], { codeHash: H256, depositHeld: u128, uploader: AccountId32 }>;
|
||||
/**
|
||||
* A contract's code was updated.
|
||||
**/
|
||||
@@ -396,6 +602,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Contract deployed by address at the specified address.
|
||||
**/
|
||||
Instantiated: AugmentedEvent<ApiType, [deployer: AccountId32, contract: AccountId32], { deployer: AccountId32, contract: AccountId32 }>;
|
||||
/**
|
||||
* Some funds have been transferred and held as storage deposit.
|
||||
**/
|
||||
StorageDepositTransferredAndHeld: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some storage deposit funds have been transferred and released.
|
||||
**/
|
||||
StorageDepositTransferredAndReleased: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Contract has been removed.
|
||||
*
|
||||
@@ -467,6 +681,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Member has stated evidence of their efforts their request for rank.
|
||||
**/
|
||||
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
|
||||
/**
|
||||
* A member had its AccountId swapped.
|
||||
**/
|
||||
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -694,17 +912,17 @@ declare module '@polkadot/api-base/types/events' {
|
||||
};
|
||||
glutton: {
|
||||
/**
|
||||
* The computation limit has been updated by root.
|
||||
* The computation limit has been updated.
|
||||
**/
|
||||
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], { compute: Perbill }>;
|
||||
ComputationLimitSet: AugmentedEvent<ApiType, [compute: u64], { compute: u64 }>;
|
||||
/**
|
||||
* The pallet has been (re)initialized by root.
|
||||
* The pallet has been (re)initialized.
|
||||
**/
|
||||
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], { reinit: bool }>;
|
||||
/**
|
||||
* The storage limit has been updated by root.
|
||||
* The storage limit has been updated.
|
||||
**/
|
||||
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], { storage: Perbill }>;
|
||||
StorageLimitSet: AugmentedEvent<ApiType, [storage: u64], { storage: u64 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -729,6 +947,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* A username authority was added.
|
||||
**/
|
||||
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A username authority was removed.
|
||||
**/
|
||||
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], { authority: AccountId32 }>;
|
||||
/**
|
||||
* A dangling username (as in, a username corresponding to an account that has removed its
|
||||
* identity) has been removed.
|
||||
**/
|
||||
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A name was cleared, and the given balance returned.
|
||||
**/
|
||||
@@ -753,6 +984,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A judgement request was retracted.
|
||||
**/
|
||||
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
|
||||
/**
|
||||
* A queued username passed its expiration without being claimed and was removed.
|
||||
**/
|
||||
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], { whose: AccountId32 }>;
|
||||
/**
|
||||
* A username was set as a primary and can be looked up from `who`.
|
||||
**/
|
||||
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* A registrar was added.
|
||||
**/
|
||||
@@ -770,6 +1009,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* main identity account to the sub-identity account.
|
||||
**/
|
||||
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* A username was queued, but `who` must accept it prior to `expiration`.
|
||||
**/
|
||||
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], { who: AccountId32, username: Bytes, expiration: u32 }>;
|
||||
/**
|
||||
* A username was set for `who`.
|
||||
**/
|
||||
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], { who: AccountId32, username: Bytes }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -787,7 +1034,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* At the end of the session, at least one validator was found to be offline.
|
||||
**/
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>> }>;
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, SpStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, SpStakingExposure]>> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -834,15 +1081,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
messageQueue: {
|
||||
/**
|
||||
* Message discarded due to an inability to decode the item. Usually caused by state
|
||||
* corruption.
|
||||
**/
|
||||
Discarded: AugmentedEvent<ApiType, [hash_: H256], { hash_: H256 }>;
|
||||
/**
|
||||
* Message placed in overweight queue.
|
||||
**/
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], { hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32 }>;
|
||||
OverweightEnqueued: AugmentedEvent<ApiType, [id: U8aFixed, origin: u32, pageIndex: u32, messageIndex: u32], { id: U8aFixed, origin: u32, pageIndex: u32, messageIndex: u32 }>;
|
||||
/**
|
||||
* This page was reaped.
|
||||
**/
|
||||
@@ -850,11 +1092,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Message is processed.
|
||||
**/
|
||||
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
Processed: AugmentedEvent<ApiType, [id: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], { id: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool }>;
|
||||
/**
|
||||
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
||||
**/
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||
ProcessingFailed: AugmentedEvent<ApiType, [id: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], { id: H256, origin: u32, error: FrameSupportMessagesProcessMessageError }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -882,6 +1124,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
nftFractionalization: {
|
||||
/**
|
||||
* An NFT was successfully fractionalized.
|
||||
**/
|
||||
NftFractionalized: AugmentedEvent<ApiType, [nftCollection: u32, nft: u32, fractions: u128, asset: u32, beneficiary: AccountId32], { nftCollection: u32, nft: u32, fractions: u128, asset: u32, beneficiary: AccountId32 }>;
|
||||
/**
|
||||
* An NFT was successfully returned back.
|
||||
**/
|
||||
NftUnified: AugmentedEvent<ApiType, [nftCollection: u32, nft: u32, asset: u32, beneficiary: AccountId32], { nftCollection: u32, nft: u32, asset: u32, beneficiary: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
nfts: {
|
||||
/**
|
||||
* All approvals of an item got cancelled.
|
||||
@@ -987,7 +1243,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Event gets emitted when the `NextCollectionId` gets incremented.
|
||||
**/
|
||||
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], { nextId: u32 }>;
|
||||
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: Option<u32>], { nextId: Option<u32> }>;
|
||||
/**
|
||||
* The owner changed.
|
||||
**/
|
||||
@@ -1096,6 +1352,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
|
||||
/**
|
||||
* Topped up deficit in frozen ED of the reward pool.
|
||||
**/
|
||||
MinBalanceDeficitAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* Claimed excess frozen ED of af the reward pool.
|
||||
**/
|
||||
MinBalanceExcessAdjusted: AugmentedEvent<ApiType, [poolId: u32, amount: u128], { poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
@@ -1108,6 +1372,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Pool commission has been claimed.
|
||||
**/
|
||||
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||
/**
|
||||
* Pool commission claim permission has been updated.
|
||||
**/
|
||||
PoolCommissionClaimPermissionUpdated: AugmentedEvent<ApiType, [poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission>], { poolId: u32, permission: Option<PalletNominationPoolsCommissionClaimPermission> }>;
|
||||
/**
|
||||
* A pool's commission setting has been changed.
|
||||
**/
|
||||
@@ -1173,6 +1441,121 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
parameters: {
|
||||
/**
|
||||
* A Parameter was set.
|
||||
*
|
||||
* Is also emitted when the value was not changed.
|
||||
**/
|
||||
Updated: AugmentedEvent<ApiType, [key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue>], { key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
poolAssets: {
|
||||
/**
|
||||
* Accounts were destroyed for given asset.
|
||||
**/
|
||||
AccountsDestroyed: AugmentedEvent<ApiType, [assetId: u32, accountsDestroyed: u32, accountsRemaining: u32], { assetId: u32, accountsDestroyed: u32, accountsRemaining: u32 }>;
|
||||
/**
|
||||
* An approval for account `delegate` was cancelled by `owner`.
|
||||
**/
|
||||
ApprovalCancelled: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32], { assetId: u32, owner: AccountId32, delegate: AccountId32 }>;
|
||||
/**
|
||||
* Approvals were destroyed for given asset.
|
||||
**/
|
||||
ApprovalsDestroyed: AugmentedEvent<ApiType, [assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32], { assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32 }>;
|
||||
/**
|
||||
* (Additional) funds have been approved for transfer to a destination account.
|
||||
**/
|
||||
ApprovedTransfer: AugmentedEvent<ApiType, [assetId: u32, source: AccountId32, delegate: AccountId32, amount: u128], { assetId: u32, source: AccountId32, delegate: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some asset `asset_id` was frozen.
|
||||
**/
|
||||
AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* The min_balance of an asset has been updated by the asset owner.
|
||||
**/
|
||||
AssetMinBalanceChanged: AugmentedEvent<ApiType, [assetId: u32, newMinBalance: u128], { assetId: u32, newMinBalance: u128 }>;
|
||||
/**
|
||||
* An asset has had its attributes changed by the `Force` origin.
|
||||
**/
|
||||
AssetStatusChanged: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* Some asset `asset_id` was thawed.
|
||||
**/
|
||||
AssetThawed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* Some account `who` was blocked.
|
||||
**/
|
||||
Blocked: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were destroyed.
|
||||
**/
|
||||
Burned: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, balance: u128], { assetId: u32, owner: AccountId32, balance: u128 }>;
|
||||
/**
|
||||
* Some asset class was created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [assetId: u32, creator: AccountId32, owner: AccountId32], { assetId: u32, creator: AccountId32, owner: AccountId32 }>;
|
||||
/**
|
||||
* An asset class was destroyed.
|
||||
**/
|
||||
Destroyed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* An asset class is in the process of being destroyed.
|
||||
**/
|
||||
DestructionStarted: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* Some asset class was force-created.
|
||||
**/
|
||||
ForceCreated: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32], { assetId: u32, owner: AccountId32 }>;
|
||||
/**
|
||||
* Some account `who` was frozen.
|
||||
**/
|
||||
Frozen: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were issued.
|
||||
**/
|
||||
Issued: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Metadata has been cleared for an asset.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* New metadata has been set for an asset.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [assetId: u32, name: Bytes, symbol_: Bytes, decimals: u8, isFrozen: bool], { assetId: u32, name: Bytes, symbol: Bytes, decimals: u8, isFrozen: bool }>;
|
||||
/**
|
||||
* The owner changed.
|
||||
**/
|
||||
OwnerChanged: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32], { assetId: u32, owner: AccountId32 }>;
|
||||
/**
|
||||
* The management team changed.
|
||||
**/
|
||||
TeamChanged: AugmentedEvent<ApiType, [assetId: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32], { assetId: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32 }>;
|
||||
/**
|
||||
* Some account `who` was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some account `who` was created with a deposit from `depositor`.
|
||||
**/
|
||||
Touched: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, depositor: AccountId32], { assetId: u32, who: AccountId32, depositor: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were transferred.
|
||||
**/
|
||||
Transferred: AugmentedEvent<ApiType, [assetId: u32, from: AccountId32, to: AccountId32, amount: u128], { assetId: u32, from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An `amount` was transferred in its entirety from `owner` to `destination` by
|
||||
* the approved `delegate`.
|
||||
**/
|
||||
TransferredApproved: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128], { assetId: u32, owner: AccountId32, delegate: AccountId32, destination: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
pov: {
|
||||
TestEvent: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
@@ -1230,6 +1613,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A member `who` has been added.
|
||||
**/
|
||||
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* The member `who` had their `AccountId` changed to `new_who`.
|
||||
**/
|
||||
MemberExchanged: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||
/**
|
||||
* The member `who` of given `rank` has been removed from the collective.
|
||||
**/
|
||||
@@ -1276,7 +1663,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally }>;
|
||||
/**
|
||||
* A deposit has been slashaed.
|
||||
* A deposit has been slashed.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -1370,7 +1757,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* A deposit has been slashaed.
|
||||
* A deposit has been slashed.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
@@ -1416,6 +1803,58 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
rootTesting: {
|
||||
/**
|
||||
* Event dispatched when the trigger_defensive extrinsic is called.
|
||||
**/
|
||||
DefensiveTestCall: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* Could not hold funds for entering or extending the safe-mode.
|
||||
*
|
||||
* This error comes from the underlying `Currency`.
|
||||
**/
|
||||
CannotDeposit: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Could not release funds for entering or extending the safe-mode.
|
||||
*
|
||||
* This error comes from the underlying `Currency`.
|
||||
**/
|
||||
CannotRelease: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* An account reserved funds for either entering or extending the safe-mode.
|
||||
**/
|
||||
DepositPlaced: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account had a reserve released that was reserved.
|
||||
**/
|
||||
DepositReleased: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account had reserve slashed that was reserved.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* The safe-mode was entered until inclusively this block.
|
||||
**/
|
||||
Entered: AugmentedEvent<ApiType, [until: u32], { until: u32 }>;
|
||||
/**
|
||||
* Exited the safe-mode for a specific reason.
|
||||
**/
|
||||
Exited: AugmentedEvent<ApiType, [reason: PalletSafeModeExitReason], { reason: PalletSafeModeExitReason }>;
|
||||
/**
|
||||
* The safe-mode was extended until inclusively this block.
|
||||
**/
|
||||
Extended: AugmentedEvent<ApiType, [until: u32], { until: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
salary: {
|
||||
/**
|
||||
* The next cycle begins.
|
||||
@@ -1433,6 +1872,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A member registered for a payout.
|
||||
**/
|
||||
Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* A member swapped their account.
|
||||
**/
|
||||
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], { who: AccountId32, newWho: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1459,6 +1902,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* The given task can never be executed since it is overweight.
|
||||
**/
|
||||
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* Cancel a retry configuration for some task.
|
||||
**/
|
||||
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* The given task was unable to be retried since the agenda is full at that block or there
|
||||
* was not enough weight to reschedule it.
|
||||
**/
|
||||
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||
/**
|
||||
* Set a retry configuration for some task.
|
||||
**/
|
||||
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8 }>;
|
||||
/**
|
||||
* Scheduled some task.
|
||||
**/
|
||||
@@ -1479,6 +1935,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
skipFeelessPayment: {
|
||||
/**
|
||||
* A transaction fee was skipped.
|
||||
**/
|
||||
FeeSkipped: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
society: {
|
||||
/**
|
||||
* A candidate was dropped (due to an excess of bids in the system).
|
||||
@@ -1505,6 +1971,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some funds were deposited into the society account.
|
||||
**/
|
||||
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
|
||||
/**
|
||||
* A \[member\] got elevated to \[rank\].
|
||||
**/
|
||||
Elevated: AugmentedEvent<ApiType, [member: AccountId32, rank: u32], { member: AccountId32, rank: u32 }>;
|
||||
/**
|
||||
* The society is founded by the given identity.
|
||||
**/
|
||||
@@ -1519,13 +1989,9 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
MemberSuspended: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* A new \[max\] member count has been set
|
||||
* A new set of \[params\] has been set for the group.
|
||||
**/
|
||||
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], { max: u32 }>;
|
||||
/**
|
||||
* A group of members has been choosen as Skeptics
|
||||
**/
|
||||
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], { skeptics: Vec<AccountId32> }>;
|
||||
NewParams: AugmentedEvent<ApiType, [params: PalletSocietyGroupParams], { params: PalletSocietyGroupParams }>;
|
||||
/**
|
||||
* A suspended member has been judged.
|
||||
**/
|
||||
@@ -1591,9 +2057,9 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], { eraIndex: u32, validatorStash: AccountId32 }>;
|
||||
/**
|
||||
* The nominator has been rewarded by this amount.
|
||||
* The nominator has been rewarded by this amount to this destination.
|
||||
**/
|
||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
|
||||
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128], { stash: AccountId32, dest: PalletStakingRewardDestination, amount: u128 }>;
|
||||
/**
|
||||
* A staker (validator or nominator) has been slashed by the given amount.
|
||||
**/
|
||||
@@ -1603,6 +2069,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* era as been reported.
|
||||
**/
|
||||
SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], { validator: AccountId32, fraction: Perbill, slashEra: u32 }>;
|
||||
/**
|
||||
* Targets size limit reached.
|
||||
**/
|
||||
SnapshotTargetsSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* Voters size limit reached.
|
||||
**/
|
||||
SnapshotVotersSizeExceeded: AugmentedEvent<ApiType, [size_: u32], { size_: u32 }>;
|
||||
/**
|
||||
* A new set of stakers was elected.
|
||||
**/
|
||||
@@ -1629,6 +2103,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
statement: {
|
||||
/**
|
||||
* A new statement is submitted
|
||||
**/
|
||||
NewStatement: AugmentedEvent<ApiType, [account: AccountId32, statement: SpStatementStoreStatement], { account: AccountId32, statement: SpStatementStoreStatement }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The auto migration task finished.
|
||||
@@ -1654,15 +2138,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
};
|
||||
sudo: {
|
||||
/**
|
||||
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
|
||||
* The sudo key has been updated.
|
||||
**/
|
||||
KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
|
||||
KeyChanged: AugmentedEvent<ApiType, [old: Option<AccountId32>, new_: AccountId32], { old: Option<AccountId32>, new_: AccountId32 }>;
|
||||
/**
|
||||
* A sudo just took place. \[result\]
|
||||
* The key was permanently removed.
|
||||
**/
|
||||
KeyRemoved: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A sudo call just took place.
|
||||
**/
|
||||
Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A sudo just took place. \[result\]
|
||||
* A [sudo_as](Pallet::sudo_as) call just took place.
|
||||
**/
|
||||
SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
@@ -1695,6 +2183,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* On on-chain remark happened.
|
||||
**/
|
||||
Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
|
||||
/**
|
||||
* An upgrade was authorized.
|
||||
**/
|
||||
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], { codeHash: H256, checkVersion: bool }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1822,6 +2314,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
treasury: {
|
||||
/**
|
||||
* A new asset spend proposal has been approved.
|
||||
**/
|
||||
AssetSpendApproved: AugmentedEvent<ApiType, [index: u32, assetKind: u32, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32], { index: u32, assetKind: u32, amount: u128, beneficiary: AccountId32, validFrom: u32, expireAt: u32 }>;
|
||||
/**
|
||||
* An approved spend was voided.
|
||||
**/
|
||||
AssetSpendVoided: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* Some funds have been allocated.
|
||||
**/
|
||||
@@ -1834,6 +2334,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some funds have been deposited.
|
||||
**/
|
||||
Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
|
||||
/**
|
||||
* A payment happened.
|
||||
**/
|
||||
Paid: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
|
||||
/**
|
||||
* A payment failed and can be retried.
|
||||
**/
|
||||
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
|
||||
/**
|
||||
* New proposal.
|
||||
**/
|
||||
@@ -1854,6 +2362,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* We have ended a spend period and will now allocate funds.
|
||||
**/
|
||||
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
|
||||
/**
|
||||
* A spend was processed and removed from the storage. It might have been successfully
|
||||
* paid or it may have expired.
|
||||
**/
|
||||
SpendProcessed: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* The inactive funds of the pallet have been updated.
|
||||
**/
|
||||
@@ -1863,6 +2376,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
txPause: {
|
||||
/**
|
||||
* This pallet, or a specific call is now paused.
|
||||
**/
|
||||
CallPaused: AugmentedEvent<ApiType, [fullName: ITuple<[Bytes, Bytes]>], { fullName: ITuple<[Bytes, Bytes]> }>;
|
||||
/**
|
||||
* This pallet, or a specific call is now unpaused.
|
||||
**/
|
||||
CallUnpaused: AugmentedEvent<ApiType, [fullName: ITuple<[Bytes, Bytes]>], { fullName: ITuple<[Bytes, Bytes]> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
uniques: {
|
||||
/**
|
||||
* An approval for a `delegate` account to transfer the `item` of an item
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '../base.js';
|
||||
|
||||
@@ -7,10 +7,10 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -85,6 +85,34 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assetConversion: {
|
||||
/**
|
||||
* Stores the `PoolAssetId` that is going to be used for the next lp token.
|
||||
* This gets incremented whenever a new lp pool is created.
|
||||
**/
|
||||
nextPoolAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
||||
* created rather than people sending tokens directly to a pool's public account.
|
||||
**/
|
||||
pools: AugmentedQuery<ApiType, (arg: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]> | [FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]> & QueryableStorageEntry<ApiType, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assetRate: {
|
||||
/**
|
||||
* Maps an asset to its fixed point representation in the native balance.
|
||||
*
|
||||
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
||||
**/
|
||||
conversionRateToNative: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* The holdings of a specific account for a specific asset.
|
||||
@@ -277,14 +305,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KitchensinkRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -307,6 +332,43 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
beefy: {
|
||||
/**
|
||||
* The current authorities set
|
||||
**/
|
||||
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Block number where BEEFY consensus is enabled/started.
|
||||
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
||||
* restarted from the newly set block number.
|
||||
**/
|
||||
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Authorities set scheduled to be used with the next session
|
||||
**/
|
||||
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
||||
* members were responsible.
|
||||
*
|
||||
* This is only used for validating equivocation proofs. An equivocation proof must
|
||||
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
||||
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
||||
* was the owner of a given key on a given session, and what the active set ID was
|
||||
* during that session.
|
||||
*
|
||||
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
||||
**/
|
||||
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||
/**
|
||||
* The current validator set id
|
||||
**/
|
||||
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* Bounties that have been made.
|
||||
@@ -329,6 +391,64 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Records of allowed renewals.
|
||||
**/
|
||||
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | { core?: any; when?: any } | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
|
||||
/**
|
||||
* The current configuration of this pallet.
|
||||
**/
|
||||
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Received core count change from the relay chain.
|
||||
**/
|
||||
coreCountInbox: AugmentedQuery<ApiType, () => Observable<Option<u16>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Record of a single contribution to the Instantaneous Coretime Pool.
|
||||
**/
|
||||
instaPoolContribution: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => Observable<Option<PalletBrokerContributionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
|
||||
/**
|
||||
* Total InstaPool rewards for each Timeslice and the number of core parts which contributed.
|
||||
**/
|
||||
instaPoolHistory: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBrokerInstaPoolHistoryRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Record of Coretime entering or leaving the Instantaneous Coretime Pool.
|
||||
**/
|
||||
instaPoolIo: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletBrokerPoolIoRecord>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The Polkadot Core legacy leases.
|
||||
**/
|
||||
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current (unassigned) Regions.
|
||||
**/
|
||||
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => Observable<Option<PalletBrokerRegionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
|
||||
/**
|
||||
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
|
||||
**/
|
||||
reservations: AugmentedQuery<ApiType, () => Observable<Vec<Vec<PalletBrokerScheduleItem>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The details of the current sale, including its properties and status.
|
||||
**/
|
||||
saleInfo: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerSaleInfoRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current status of miscellaneous subsystems of this pallet.
|
||||
**/
|
||||
status: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerStatusRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current workload of each core. This gets updated with workplan as timeslices pass.
|
||||
**/
|
||||
workload: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<PalletBrokerScheduleItem>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The work we plan on having each core do at a particular time in the future.
|
||||
**/
|
||||
workplan: AugmentedQuery<ApiType, (arg: ITuple<[u32, u16]> | [u32 | AnyNumber | Uint8Array, u16 | AnyNumber | Uint8Array]) => Observable<Option<Vec<PalletBrokerScheduleItem>>>, [ITuple<[u32, u16]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u16]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child bounties that have been added.
|
||||
@@ -358,9 +478,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
contracts: {
|
||||
/**
|
||||
* A mapping between an original code hash and instrumented wasm code, ready for execution.
|
||||
* A mapping from a contract's code hash to its code info.
|
||||
**/
|
||||
codeStorage: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmPrefabWasmModule>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The code associated with a given account.
|
||||
*
|
||||
@@ -379,6 +499,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* and the latest deleted contract in queue.
|
||||
**/
|
||||
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
||||
* progress of the migration, enabling us to resume from the last completed position.
|
||||
**/
|
||||
migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is a **monotonic** counter incremented on contract instantiation.
|
||||
*
|
||||
@@ -405,11 +530,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
nonce: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A mapping between an original code hash and its owner information.
|
||||
**/
|
||||
ownerInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmOwnerInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* A mapping from an original code hash to the original code, untouched by instrumentation.
|
||||
* A mapping from a contract's code hash to its code.
|
||||
**/
|
||||
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
@@ -510,7 +631,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -563,6 +684,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Desired number of targets to elect for this round.
|
||||
*
|
||||
* Only exists when [`Snapshot`] is present.
|
||||
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||
**/
|
||||
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -574,6 +696,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -620,12 +744,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Snapshot data of the round.
|
||||
*
|
||||
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
||||
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||
**/
|
||||
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The metadata of the [`RoundSnapshot`]
|
||||
*
|
||||
* Only exists when [`Snapshot`] is present.
|
||||
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
||||
**/
|
||||
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -679,22 +805,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Number of eras to check per block.
|
||||
*
|
||||
* If set to 0, this pallet does absolutely nothing.
|
||||
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
||||
* [`Config::MaxErasToCheckPerBlock`].
|
||||
*
|
||||
* Based on the amount of weight available at `on_idle`, up to this many eras of a single
|
||||
* nominator might be checked.
|
||||
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
||||
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
||||
* stored in [`Head`].
|
||||
**/
|
||||
erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current "head of the queue" being unstaked.
|
||||
*
|
||||
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
||||
**/
|
||||
head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The map of all accounts wishing to be unstaked.
|
||||
*
|
||||
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
||||
*
|
||||
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||
**/
|
||||
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -704,15 +832,19 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
glutton: {
|
||||
/**
|
||||
* Storage value used to specify what percentage of the left over `ref_time`
|
||||
* to consume during `on_idle`.
|
||||
* The proportion of the remaining `ref_time` to consume during `on_idle`.
|
||||
*
|
||||
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
||||
* over `1.0` could stall the chain.
|
||||
**/
|
||||
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
compute: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Storage value used the specify what percentage of left over `proof_size`
|
||||
* to consume during `on_idle`.
|
||||
* The proportion of the remaining `proof_size` to consume during `on_idle`.
|
||||
*
|
||||
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
||||
* over `1.0` could stall the chain.
|
||||
**/
|
||||
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
storage: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Storage map used for wasting proof size.
|
||||
*
|
||||
@@ -734,6 +866,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
grandpa: {
|
||||
/**
|
||||
* The current list of authorities.
|
||||
**/
|
||||
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
||||
* in the "set" of Grandpa validators from genesis.
|
||||
@@ -773,13 +909,45 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
historical: {
|
||||
/**
|
||||
* Mapping from historical session indices to session-data root hash and validator count.
|
||||
**/
|
||||
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The range of historical sessions we store. [first, last)
|
||||
**/
|
||||
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
identity: {
|
||||
/**
|
||||
* Information that is pertinent to identify the entity behind an account.
|
||||
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
||||
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
||||
*
|
||||
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
||||
* primary username.
|
||||
**/
|
||||
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* Information that is pertinent to identify the entity behind an account. First item is the
|
||||
* registration, second is the account's primary username.
|
||||
*
|
||||
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
||||
**/
|
||||
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Usernames that an authority has granted, but that the account controller has not confirmed
|
||||
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
||||
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
||||
* [`Call::accept_username`].
|
||||
*
|
||||
* First tuple item is the account and second is the acceptance deadline.
|
||||
**/
|
||||
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
||||
/**
|
||||
* The set of registrars. Not expected to get very big as can only be added through a
|
||||
* special origin (likely a council motion).
|
||||
@@ -800,6 +968,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* context. If the account is not some other account's sub-identity, then just `None`.
|
||||
**/
|
||||
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* A map of the accounts who are authorized to grant usernames.
|
||||
**/
|
||||
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -830,10 +1002,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
|
||||
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
||||
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
||||
**/
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -898,6 +1069,34 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* Index of the current session. This may be offset relative to the session index tracked by
|
||||
* eg `pallet_session`; mixnet session indices are independent.
|
||||
**/
|
||||
currentSessionIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Block in which the current session started.
|
||||
**/
|
||||
currentSessionStartBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Mixnode sets by session index. Only the mixnode sets for the previous, current, and next
|
||||
* sessions are kept; older sets are discarded.
|
||||
*
|
||||
* The mixnodes in each set are keyed by authority index so we can easily check if an
|
||||
* authority has registered a mixnode. The authority indices should only be used during
|
||||
* registration; the authority indices for the very first session are made up.
|
||||
**/
|
||||
mixnodes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMixnetBoundedMixnode>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
* Authority list for the next session.
|
||||
**/
|
||||
nextAuthorityIds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpMixnetAppPublic>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mmr: {
|
||||
/**
|
||||
* Hashes of the nodes in the MMR.
|
||||
@@ -919,6 +1118,22 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
mmrLeaf: {
|
||||
/**
|
||||
* Details of current BEEFY authority set.
|
||||
**/
|
||||
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Details of next BEEFY authority set.
|
||||
*
|
||||
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
||||
**/
|
||||
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The set of open multisig operations.
|
||||
@@ -929,6 +1144,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
nftFractionalization: {
|
||||
/**
|
||||
* Keeps track of the corresponding NFT ID, asset ID and amount minted.
|
||||
**/
|
||||
nftToAsset: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletNftFractionalizationDetails>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
nfts: {
|
||||
/**
|
||||
* The items held by any given account; set out this way so that items owned by a single
|
||||
@@ -1110,13 +1335,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* A reverse lookup from the pool's account id to its id.
|
||||
*
|
||||
* This is only used for slashing. In all other instances, the pool id is used, and the
|
||||
* accounts are deterministically derived from it.
|
||||
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
||||
* pool id is used, and the accounts are deterministically derived from it.
|
||||
**/
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -1124,6 +1349,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The sum of funds across all pools.
|
||||
*
|
||||
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
||||
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
||||
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
||||
**/
|
||||
totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1139,14 +1372,39 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
* Generic query
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parameters: {
|
||||
/**
|
||||
* Stored parameters.
|
||||
**/
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contract: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
poolAssets: {
|
||||
/**
|
||||
* The holdings of a specific account for a specific asset.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsAssetAccount>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
||||
* is the amount of `T::Currency` reserved for storing this.
|
||||
* First key is the asset ID, second key is the owner and third key is the delegate.
|
||||
**/
|
||||
approvals: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetsApproval>>, [u32, AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, AccountId32]>;
|
||||
/**
|
||||
* Details of an asset.
|
||||
**/
|
||||
asset: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetsAssetDetails>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Metadata of an asset.
|
||||
**/
|
||||
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletAssetsAssetMetadata>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1190,7 +1448,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The request status of a given hash.
|
||||
**/
|
||||
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The request status of a given hash.
|
||||
**/
|
||||
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1259,7 +1521,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -1316,7 +1578,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
@@ -1343,6 +1605,27 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* Holds the reserve that was taken from an account at a specific block number.
|
||||
*
|
||||
* This helps governance to have an overview of outstanding deposits that should be returned or
|
||||
* slashed.
|
||||
**/
|
||||
deposits: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
||||
/**
|
||||
* Contains the last block number that the safe-mode will remain entered in.
|
||||
*
|
||||
* Set to `None` when safe-mode is exited.
|
||||
*
|
||||
* Safe-mode is automatically exited when the current block number exceeds this value.
|
||||
**/
|
||||
enteredUntil: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
salary: {
|
||||
/**
|
||||
* The status of a claimant.
|
||||
@@ -1370,6 +1653,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* identities.
|
||||
**/
|
||||
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Retry configurations for items to be executed, indexed by task address.
|
||||
**/
|
||||
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1420,67 +1707,83 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The current bids, stored ordered by the value of the bid.
|
||||
**/
|
||||
bids: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
candidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyCandidacy>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The current set of candidates; bidders that are attempting to become members.
|
||||
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
||||
**/
|
||||
candidates: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
challengeRoundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The defending member currently being challenged.
|
||||
* Votes for the defender, keyed by challenge round.
|
||||
**/
|
||||
defender: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
defenderVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Votes for the defender.
|
||||
* The defending member currently being challenged, along with a running tally of votes.
|
||||
**/
|
||||
defenderVotes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
defending: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[AccountId32, AccountId32, PalletSocietyTally]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The first member.
|
||||
**/
|
||||
founder: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The most primary from the most recently approved members.
|
||||
* The most primary from the most recently approved rank 0 members in the society.
|
||||
**/
|
||||
head: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
||||
* `0..MemberCount` (does not include `MemberCount`).
|
||||
**/
|
||||
memberByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
||||
**/
|
||||
memberCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* At the end of the claim period, this contains the most recently approved members (along with
|
||||
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
||||
* become the new `Head`.
|
||||
**/
|
||||
nextHead: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyIntakeRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The max number of members for the society at one time.
|
||||
**/
|
||||
maxMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
parameters: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyGroupParams>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current set of members, ordered.
|
||||
* Information regarding rank-0 payouts, past and future.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Pending payouts; ordered by block number, with the amount that should be paid out.
|
||||
**/
|
||||
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletSocietyPayoutRecord>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Amount of our account balance that is specifically for the next round's bid(s).
|
||||
**/
|
||||
pot: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of rounds which have passed.
|
||||
**/
|
||||
roundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A hash of the rules of this society concerning membership. Can only be set once and
|
||||
* only by the founder.
|
||||
**/
|
||||
rules: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The ongoing number of losing votes cast by the member.
|
||||
* The current skeptic.
|
||||
**/
|
||||
strikes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
skeptic: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The set of suspended candidates.
|
||||
* The set of suspended members, with their old membership record.
|
||||
**/
|
||||
suspendedCandidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[u128, PalletSocietyBidKind]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The set of suspended members.
|
||||
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
||||
**/
|
||||
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
voteClearCursor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
||||
**/
|
||||
votes: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
* Members currently vouching or banned from vouching again
|
||||
**/
|
||||
vouching: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVouchingStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1518,6 +1821,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
||||
**/
|
||||
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* History of claimed paged rewards by era and validator.
|
||||
*
|
||||
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
||||
* been claimed.
|
||||
*
|
||||
* It is removed after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
@@ -1540,7 +1852,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last `HISTORY_DEPTH` eras.
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
**/
|
||||
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -1549,33 +1861,64 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
||||
*
|
||||
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
||||
**/
|
||||
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Clipped Exposure of validator at era.
|
||||
*
|
||||
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
||||
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
||||
*
|
||||
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
||||
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
|
||||
* `T::MaxExposurePageSize` biggest stakers.
|
||||
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
||||
* This is used to limit the i/o cost for the nominator payout.
|
||||
*
|
||||
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* It is removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
||||
*
|
||||
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
||||
**/
|
||||
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
|
||||
* Summary of validator exposure at a given era.
|
||||
*
|
||||
* This contains the total stake in support of the validator and their own stake. In addition,
|
||||
* it can also be used to get the number of nominators backing this validator and the number of
|
||||
* exposure pages they are divided into. The page count is useful to determine the number of
|
||||
* pages of rewards that needs to be claimed.
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
* Should only be accessed through `EraInfo`.
|
||||
*
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
* If stakers hasn't been set or has been removed then empty overview is returned.
|
||||
**/
|
||||
erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Paginated exposure of a validator at given era.
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
||||
* the page. Should only be accessed through `EraInfo`.
|
||||
*
|
||||
* This is cleared after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
|
||||
/**
|
||||
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
||||
*
|
||||
* Note: This tracks the starting session (i.e. session index when era start being active)
|
||||
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
||||
**/
|
||||
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The total amount staked for the last `HISTORY_DEPTH` eras.
|
||||
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
||||
* If total hasn't been set or has been removed then 0 stake is returned.
|
||||
**/
|
||||
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
@@ -1584,11 +1927,11 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
*
|
||||
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
||||
*
|
||||
* Is it removed after `HISTORY_DEPTH` eras.
|
||||
* Is it removed after [`Config::HistoryDepth`] eras.
|
||||
**/
|
||||
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* The total validator era payout for the last `HISTORY_DEPTH` eras.
|
||||
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
||||
*
|
||||
* Eras that haven't finished yet or has been removed doesn't have reward.
|
||||
**/
|
||||
@@ -1605,6 +1948,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
||||
*
|
||||
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
||||
* by [`StakingLedger`] to ensure data and lock consistency.
|
||||
**/
|
||||
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
@@ -1613,6 +1959,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* When this value is not set, no limits are enforced.
|
||||
**/
|
||||
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
||||
* is used for stake rewards.
|
||||
* See [Era payout](./index.html#era-payout).
|
||||
**/
|
||||
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum validator count before we stop allowing new validators to join.
|
||||
*
|
||||
@@ -1646,7 +1998,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* 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
|
||||
* account's [`NominationsQuota::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
|
||||
@@ -1683,7 +2036,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
*
|
||||
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
||||
**/
|
||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Slashing spans for stash accounts.
|
||||
**/
|
||||
@@ -1767,6 +2120,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Total length (in bytes) for all extrinsics put together, for the current block.
|
||||
**/
|
||||
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* `Some` if a code upgrade has been authorized.
|
||||
**/
|
||||
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map of block numbers to block hashes.
|
||||
**/
|
||||
@@ -1801,7 +2158,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
||||
* in case of changes fetch the list of events of interest.
|
||||
*
|
||||
* The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
|
||||
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
||||
* the `EventIndex` then in case if the topic has the same contents on the next block
|
||||
* no notification will be triggered thus the event might be lost.
|
||||
**/
|
||||
@@ -1844,6 +2201,20 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
tasksExample: {
|
||||
/**
|
||||
* Numbers to be added into the total.
|
||||
**/
|
||||
numbers: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Some running total.
|
||||
**/
|
||||
total: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
@@ -1890,11 +2261,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* Did the timestamp get updated in this block?
|
||||
* Whether the timestamp has been updated in this block.
|
||||
*
|
||||
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
||||
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
||||
**/
|
||||
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current time for the current block.
|
||||
* The current time for the current block.
|
||||
**/
|
||||
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -1976,6 +2350,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Proposals that have been made.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The count of spends that have been made.
|
||||
**/
|
||||
spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Spends that have been approved and being processed.
|
||||
**/
|
||||
spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
txPause: {
|
||||
/**
|
||||
* The set of calls that are explicitly paused.
|
||||
**/
|
||||
pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [ITuple<[Bytes, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[Bytes, Bytes]>]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '@polkadot/types-augment/registry/substrate';
|
||||
|
||||
@@ -6,10 +6,11 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
@@ -25,6 +26,7 @@ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index,
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
import type { XcmV3MultiLocation } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -43,6 +45,25 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8a8047a53a8277ec/1 */
|
||||
assetConversionApi: {
|
||||
/**
|
||||
* Get pool reserves
|
||||
**/
|
||||
getReserves: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
|
||||
/**
|
||||
* Quote price: exact tokens for tokens
|
||||
**/
|
||||
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
||||
/**
|
||||
* Quote price: tokens for exact tokens
|
||||
**/
|
||||
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8453b50b22293977/1 */
|
||||
assetsApi: {
|
||||
/**
|
||||
@@ -96,6 +117,29 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/3 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the given set.
|
||||
**/
|
||||
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report an equivocation.
|
||||
**/
|
||||
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | { first?: any; second?: any } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x40fe3ad401f8959a/6 */
|
||||
blockBuilder: {
|
||||
/**
|
||||
@@ -324,7 +368,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
+1008
-4570
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/mod.ts",
|
||||
"**/kusama/*.ts",
|
||||
"**/polkadot/*.ts"
|
||||
],
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/kusama/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../api-augment/tsconfig.build.json" },
|
||||
{ "path": "../api-augment/tsconfig.kusama.json" },
|
||||
{ "path": "../api-base/tsconfig.build.json" },
|
||||
{ "path": "../rpc-augment/tsconfig.build.json" },
|
||||
{ "path": "../types/tsconfig.build.json" },
|
||||
{ "path": "../types-augment/tsconfig.build.json" },
|
||||
{ "path": "../types-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -14,17 +14,17 @@
|
||||
"url": "https://github.com/polkadot-js/api.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2",
|
||||
"version": "10.12.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
"@polkadot/rpc-core": "10.12.2",
|
||||
"@polkadot/types": "10.12.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
|
||||
export default [rpcInfo, typesInfo];
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import others from './detectOther.js';
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, others);
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './detectPackage.js';
|
||||
import './packageDetect.js';
|
||||
|
||||
export * from './bundle.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './index.js';
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// (packageInfo imports will be kept as-is, user-editable)
|
||||
|
||||
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, [rpcInfo, typesInfo]);
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.12.2' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -13,7 +13,7 @@ export interface ApiInterfaceRx {
|
||||
call: QueryableCalls<'rxjs'>;
|
||||
consts: QueryableConsts<'rxjs'>;
|
||||
extrinsicType: number;
|
||||
genesisHash?: Hash;
|
||||
genesisHash?: Hash | undefined;
|
||||
hasSubscriptions: boolean;
|
||||
registry: Registry;
|
||||
runtimeMetadata: Metadata;
|
||||
@@ -22,7 +22,7 @@ export interface ApiInterfaceRx {
|
||||
queryMulti: QueryableStorageMulti<'rxjs'>;
|
||||
rpc: DecoratedRpc<'rxjs', RpcInterface>;
|
||||
tx: SubmittableExtrinsics<'rxjs'>;
|
||||
signer?: Signer;
|
||||
signer?: Signer | undefined;
|
||||
|
||||
callAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableCalls<'rxjs'>>;
|
||||
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -65,7 +65,7 @@ export interface PaginationOptions<A = unknown> {
|
||||
export type DecorateMethod<_ApiType extends ApiTypes, T = any> =
|
||||
<M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
|
||||
|
||||
type AsCodec<R extends Codec | any> = R extends Codec
|
||||
type AsCodec<R> = R extends Codec
|
||||
? R
|
||||
: Codec;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -7,8 +7,8 @@ import type { ApiTypes, EmptyBase, ReturnCodec } from './base.js';
|
||||
|
||||
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
||||
ApiType extends 'rxjs'
|
||||
? <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
|
||||
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
||||
? <T = ReturnCodec<F>> (...args: Parameters<F>) => Observable<T>
|
||||
: <T = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
||||
|
||||
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
|
||||
/** The metadata/description/definition for this method */
|
||||
@@ -22,11 +22,10 @@ export interface AugmentedCalls<ApiType extends ApiTypes> extends EmptyBase<ApiT
|
||||
// augmented
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface QueryableCalls<ApiType extends ApiTypes> extends AugmentedCalls<ApiType> {
|
||||
// when non-augmented, we need to at least have Codec results
|
||||
[key: string]: QueryableModuleCalls<ApiType>;
|
||||
}
|
||||
|
||||
export interface QueryableModuleCalls<ApiType extends ApiTypes> {
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
}
|
||||
export type QueryableModuleCalls<ApiType extends ApiTypes> = Record<string, DecoratedCallBase<ApiType>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
|
||||
@@ -16,11 +16,10 @@ export interface AugmentedConsts<ApiType extends ApiTypes> extends EmptyBase<Api
|
||||
// augmented
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
|
||||
// when non-augmented, we need to at least have Codec results
|
||||
[key: string]: QueryableModuleConsts;
|
||||
}
|
||||
|
||||
export interface QueryableModuleConsts {
|
||||
[key: string]: Codec;
|
||||
}
|
||||
export type QueryableModuleConsts = Record<string, Codec>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { IsError } from '@polkadot/types/metadata/decorate/types';
|
||||
@@ -13,11 +13,10 @@ export interface AugmentedErrors<ApiType extends ApiTypes> extends EmptyBase<Api
|
||||
// augmented
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {
|
||||
// when non-augmented, we need to at least have Codec results
|
||||
[key: string]: ModuleErrors<ApiType>;
|
||||
}
|
||||
|
||||
export interface ModuleErrors<ApiType extends ApiTypes> {
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
}
|
||||
export type ModuleErrors<ApiType extends ApiTypes> = Record<string, AugmentedError<ApiType>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
|
||||
@@ -14,11 +14,10 @@ export interface AugmentedEvents<ApiType extends ApiTypes> extends EmptyBase<Api
|
||||
// augmented
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
|
||||
// when non-augmented, we need to at least have Codec results
|
||||
[key: string]: ModuleEvents<ApiType>;
|
||||
}
|
||||
|
||||
export interface ModuleEvents<ApiType extends ApiTypes> {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
}
|
||||
export type ModuleEvents<ApiType extends ApiTypes> = Record<string, AugmentedEvent<ApiType>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// These are augmented, do an augmentation export
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||
|
||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||
import type { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||
|
||||
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -8,13 +8,11 @@ import type { StorageEntry } from '@polkadot/types/primitive/types';
|
||||
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
||||
import type { ApiTypes, DropLast, EmptyBase, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
|
||||
|
||||
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
||||
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
||||
}
|
||||
type StorageEntryObservableMulti<R extends Codec = Codec> = <T extends Codec = R>(args: unknown[]) => Observable<T[]>;
|
||||
|
||||
interface StorageEntryPromiseMulti<R extends Codec = Codec> {
|
||||
<T extends Codec = R>(args: (unknown[] | unknown)[]): Promise<T[]>;
|
||||
<T extends Codec = R>(args: (unknown[] | unknown)[], callback: Callback<T[]>): UnsubscribePromise;
|
||||
<T extends Codec = R>(args: unknown[]): Promise<T[]>;
|
||||
<T extends Codec = R>(args: unknown[], callback: Callback<T[]>): UnsubscribePromise;
|
||||
}
|
||||
|
||||
export interface StorageEntryPromiseOverloads {
|
||||
@@ -48,12 +46,12 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
|
||||
/**
|
||||
* @deprecated Use api.at(<blockHash>)
|
||||
*/
|
||||
at: <T extends Codec | any = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
|
||||
at: <T = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
|
||||
creator: StorageEntry;
|
||||
/**
|
||||
* @deprecated Use api.at(<blockHash>)
|
||||
*/
|
||||
entriesAt: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entriesAt: <T = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
/**
|
||||
* @deprecated Use api.at(<blockHash>)
|
||||
*/
|
||||
@@ -68,8 +66,8 @@ export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunctio
|
||||
}
|
||||
|
||||
export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
|
||||
entries: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entries: <T = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
entriesPaged: <T = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
||||
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
||||
key: (...args: Parameters<F>) => string;
|
||||
@@ -79,21 +77,15 @@ export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunct
|
||||
size: (...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
||||
}
|
||||
|
||||
export interface QueryableModuleStorage<ApiType extends ApiTypes> {
|
||||
[key: string]: QueryableStorageEntry<ApiType, AnyTuple>;
|
||||
}
|
||||
export type QueryableModuleStorage<ApiType extends ApiTypes> = Record<string, QueryableStorageEntry<ApiType, AnyTuple>>;
|
||||
|
||||
export interface QueryableModuleStorageAt<ApiType extends ApiTypes> {
|
||||
[key: string]: QueryableStorageEntryAt<ApiType, AnyTuple>;
|
||||
}
|
||||
export type QueryableModuleStorageAt<ApiType extends ApiTypes> = Record<string, QueryableStorageEntryAt<ApiType, AnyTuple>>;
|
||||
|
||||
export type QueryableStorageMultiArg<ApiType extends ApiTypes> =
|
||||
QueryableStorageEntry<ApiType> |
|
||||
[QueryableStorageEntry<ApiType>, ...unknown[]];
|
||||
|
||||
export interface QueryableStorageMultiBase<ApiType extends ApiTypes> {
|
||||
<T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[]): Observable<T>;
|
||||
}
|
||||
export type QueryableStorageMultiBase<ApiType extends ApiTypes> = <T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[]) => Observable<T>;
|
||||
|
||||
export interface QueryableStorageMultiPromise<ApiType extends ApiTypes> {
|
||||
<T extends Codec[]>(calls: QueryableStorageMultiArg<ApiType>[], callback: Callback<T>): UnsubscribePromise;
|
||||
@@ -119,11 +111,13 @@ export interface AugmentedQueries<ApiType extends ApiTypes> extends EmptyBase<Ap
|
||||
// augmented
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
|
||||
// when non-augmented, we need to at least have Codec results
|
||||
[key: string]: QueryableModuleStorage<ApiType>;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
||||
export interface QueryableStorageAt<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
|
||||
[key: string]: QueryableModuleStorageAt<ApiType>;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-base authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-base authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -16,7 +16,7 @@ export interface SignerOptions {
|
||||
nonce: AnyNumber | Codec;
|
||||
signer?: Signer;
|
||||
tip?: AnyNumber;
|
||||
assetId?: AnyNumber;
|
||||
assetId?: AnyNumber | object;
|
||||
}
|
||||
|
||||
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
|
||||
@@ -40,13 +40,13 @@ export type SubmittablePaymentResult<ApiType extends ApiTypes> =
|
||||
: Promise<RuntimeDispatchInfo>;
|
||||
|
||||
export interface SubmittableResultValue {
|
||||
dispatchError?: DispatchError;
|
||||
dispatchInfo?: DispatchInfo;
|
||||
dispatchError?: DispatchError | undefined;
|
||||
dispatchInfo?: DispatchInfo | undefined;
|
||||
events?: EventRecord[];
|
||||
internalError?: Error;
|
||||
internalError?: Error | undefined;
|
||||
status: ExtrinsicStatus;
|
||||
txHash: Hash;
|
||||
txIndex?: number;
|
||||
txIndex?: number | undefined;
|
||||
blockNumber?: BlockNumber;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,4 @@ export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends Augment
|
||||
[key: string]: SubmittableModuleExtrinsics<ApiType>;
|
||||
}
|
||||
|
||||
export interface SubmittableModuleExtrinsics<ApiType extends ApiTypes> {
|
||||
// only with is<Type> augmentation
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
}
|
||||
export type SubmittableModuleExtrinsics<ApiType extends ApiTypes> = Record<string, SubmittableExtrinsicFunction<ApiType>>;
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"exclude": [
|
||||
"**/mod.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../rpc-core/tsconfig.build.json" },
|
||||
{ "path": "../types/tsconfig.build.json" }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -14,24 +14,26 @@
|
||||
"url": "https://github.com/polkadot-js/api.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2",
|
||||
"version": "10.12.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
"@polkadot/api": "10.12.2",
|
||||
"@polkadot/api-augment": "10.12.2",
|
||||
"@polkadot/types": "10.12.2",
|
||||
"@polkadot/types-codec": "10.12.2",
|
||||
"@polkadot/types-create": "10.12.2",
|
||||
"@polkadot/util": "^12.6.2",
|
||||
"@polkadot/util-crypto": "^12.6.2",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/keyring": "^11.1.3"
|
||||
"@polkadot/api-augment": "10.12.2",
|
||||
"@polkadot/keyring": "^12.6.2",
|
||||
"@polkadot/types-support": "10.12.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
@@ -6,12 +6,13 @@
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
|
||||
import { TypeDefInfo } from '@polkadot/types/types';
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate-contracts-node';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
import { Metadata, TypeRegistry } from '../../../types/src/bundle.js';
|
||||
import abis from '../test/contracts/index.js';
|
||||
import { Abi } from './index.js';
|
||||
|
||||
@@ -44,12 +45,9 @@ interface JSONAbi {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||
const cmpPath = path.join(process.cwd(), 'packages/api-contract/src/test/compare');
|
||||
|
||||
function stringifyInfo (key: string, value: unknown): unknown {
|
||||
return key === 'info'
|
||||
? TypeDefInfo[value as number]
|
||||
return key === 'info' && typeof value === 'number'
|
||||
? TypeDefInfo[value]
|
||||
: value;
|
||||
}
|
||||
|
||||
@@ -92,13 +90,16 @@ describe('Abi', (): void => {
|
||||
it(`initializes from a contract ABI: ${abiName}`, (): void => {
|
||||
const abi = new Abi(abiJson);
|
||||
const registryJson = stringifyJson(abi.registry);
|
||||
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||
const cmpFile = new URL(`../test/compare/${abiName}.test.json`, import.meta.url);
|
||||
|
||||
try {
|
||||
expect(JSON.parse(registryJson)).toEqual(JSON.parse(cmpText));
|
||||
expect(
|
||||
JSON.parse(registryJson)
|
||||
).toEqual(
|
||||
JSON.parse(fs.readFileSync(cmpFile, 'utf-8'))
|
||||
);
|
||||
} catch (error) {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
if (process.env['GITHUB_REPOSITORY']) {
|
||||
console.error(registryJson);
|
||||
|
||||
throw error;
|
||||
@@ -111,8 +112,8 @@ describe('Abi', (): void => {
|
||||
});
|
||||
|
||||
it('has the correct hash for the source', (): void => {
|
||||
const abi = new Abi(abis.ink_v0_flipperBundle);
|
||||
const bundle = abis.ink_v0_flipperBundle as unknown as JSONAbi;
|
||||
const abi = new Abi(abis['ink_v0_flipperBundle']);
|
||||
const bundle = abis['ink_v0_flipperBundle'] as unknown as JSONAbi;
|
||||
|
||||
// manual
|
||||
expect(bundle.source.hash).toEqual(blake2AsHex(bundle.source.wasm));
|
||||
@@ -123,4 +124,112 @@ describe('Abi', (): void => {
|
||||
// the hash as per the actual Abi
|
||||
expect(bundle.source.hash).toEqual(abi.info.source.wasmHash.toHex());
|
||||
});
|
||||
|
||||
describe('Events', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
beforeAll((): void => {
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
});
|
||||
|
||||
it('decoding <=ink!v4 event', (): void => {
|
||||
const abiJson = abis['ink_v4_erc20Metadata'];
|
||||
|
||||
expect(abiJson).toBeDefined();
|
||||
const abi = new Abi(abiJson);
|
||||
|
||||
const eventRecordHex =
|
||||
'0x0001000000080360951b8baf569bca905a279c12d6ce17db7cdce23a42563870ef585129ce5dc64d010001d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb106000000000000000c0045726332303a3a5472616e7366657200000000000000000000000000000000da2d695d3b5a304e0039e7fc4419c34fa0c1f239189c99bb72a6484f1634782b2b00c7d40fe6d84d660f3e6bed90f218e022a0909f7e1a7ea35ada8b6e003564';
|
||||
const record = registry.createType('EventRecord', eventRecordHex);
|
||||
|
||||
const decodedEvent = abi.decodeEvent(record);
|
||||
|
||||
expect(decodedEvent.event.args.length).toEqual(3);
|
||||
expect(decodedEvent.args.length).toEqual(3);
|
||||
expect(decodedEvent.event.identifier).toEqual('Transfer');
|
||||
|
||||
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||
return {
|
||||
...prev,
|
||||
[cur.name]: decodedEvent.args[index].toHuman()
|
||||
};
|
||||
}, {});
|
||||
|
||||
const expectedEvent = {
|
||||
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||
value: '123.4567 MUnit'
|
||||
};
|
||||
|
||||
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||
});
|
||||
|
||||
it('decoding >=ink!v5 event', (): void => {
|
||||
const abiJson = abis['ink_v5_erc20Metadata'];
|
||||
|
||||
expect(abiJson).toBeDefined();
|
||||
const abi = new Abi(abiJson);
|
||||
|
||||
const eventRecordHex =
|
||||
'0x00010000000803da17150e96b3955a4db6ad35ddeb495f722f9c1d84683113bfb096bf3faa30f2490101d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb106000000000000000cb5b61a3e6a21a16be4f044b517c28ac692492f73c5bfd3f60178ad98c767f4cbd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48';
|
||||
const record = registry.createType('EventRecord', eventRecordHex);
|
||||
|
||||
const decodedEvent = abi.decodeEvent(record);
|
||||
|
||||
expect(decodedEvent.event.args.length).toEqual(3);
|
||||
expect(decodedEvent.args.length).toEqual(3);
|
||||
expect(decodedEvent.event.identifier).toEqual('erc20::erc20::Transfer');
|
||||
|
||||
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||
return {
|
||||
...prev,
|
||||
[cur.name]: decodedEvent.args[index].toHuman()
|
||||
};
|
||||
}, {});
|
||||
|
||||
const expectedEvent = {
|
||||
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||
value: '123.4567 MUnit'
|
||||
};
|
||||
|
||||
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||
});
|
||||
|
||||
it('decoding >=ink!v5 anonymous event', (): void => {
|
||||
const abiJson = abis['ink_v5_erc20AnonymousTransferMetadata'];
|
||||
|
||||
expect(abiJson).toBeDefined();
|
||||
const abi = new Abi(abiJson);
|
||||
|
||||
expect(abi.events[0].identifier).toEqual('erc20::erc20::Transfer');
|
||||
expect(abi.events[0].signatureTopic).toEqual(null);
|
||||
|
||||
const eventRecordWithAnonymousEventHex = '0x00010000000803538e726248a9c155911e7d99f4f474c3408630a2f6275dd501d4471c7067ad2c490101d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d018eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4800505a4f7e9f4eb1060000000000000008d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48';
|
||||
const record = registry.createType('EventRecord', eventRecordWithAnonymousEventHex);
|
||||
|
||||
const decodedEvent = abi.decodeEvent(record);
|
||||
|
||||
expect(decodedEvent.event.args.length).toEqual(3);
|
||||
expect(decodedEvent.args.length).toEqual(3);
|
||||
expect(decodedEvent.event.identifier).toEqual('erc20::erc20::Transfer');
|
||||
|
||||
const decodedEventHuman = decodedEvent.event.args.reduce((prev, cur, index) => {
|
||||
return {
|
||||
...prev,
|
||||
[cur.name]: decodedEvent.args[index].toHuman()
|
||||
};
|
||||
}, {});
|
||||
|
||||
const expectedEvent = {
|
||||
from: '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY',
|
||||
to: '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty',
|
||||
value: '123.4567 MUnit'
|
||||
};
|
||||
|
||||
expect(decodedEventHuman).toEqual(expectedEvent);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,16 +1,26 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Bytes } from '@polkadot/types';
|
||||
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataLatest, ContractProjectInfo } from '@polkadot/types/interfaces';
|
||||
import type { Codec, Registry } from '@polkadot/types/types';
|
||||
import type { AbiConstructor, AbiEvent, AbiMessage, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
||||
import type { Bytes, Vec } from '@polkadot/types';
|
||||
import type { ChainProperties, ContractConstructorSpecLatest, ContractEventParamSpecLatest, ContractMessageParamSpecLatest, ContractMessageSpecLatest, ContractMetadata, ContractMetadataV4, ContractMetadataV5, ContractProjectInfo, ContractTypeSpec, EventRecord } from '@polkadot/types/interfaces';
|
||||
import type { Codec, Registry, TypeDef } from '@polkadot/types/types';
|
||||
import type { AbiConstructor, AbiEvent, AbiEventParam, AbiMessage, AbiMessageParam, AbiParam, DecodedEvent, DecodedMessage } from '../types.js';
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Option, TypeRegistry } from '@polkadot/types';
|
||||
import { TypeDefInfo } from '@polkadot/types-create';
|
||||
import { assertReturn, compactAddLength, compactStripLength, isNumber, isObject, isString, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
import { assertReturn, compactAddLength, compactStripLength, isBn, isNumber, isObject, isString, isUndefined, logger, stringCamelCase, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { convertVersions, enumVersions } from './toLatest.js';
|
||||
import { convertVersions, enumVersions } from './toLatestCompatible.js';
|
||||
|
||||
interface AbiJson {
|
||||
version?: string;
|
||||
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
type EventOf<M> = M extends {spec: { events: Vec<infer E>}} ? E : never
|
||||
export type ContractMetadataSupported = ContractMetadataV4 | ContractMetadataV5;
|
||||
type ContractEventSupported = EventOf<ContractMetadataSupported>;
|
||||
|
||||
const l = logger('Abi');
|
||||
|
||||
@@ -26,12 +36,12 @@ function findMessage <T extends AbiMessage> (list: T[], messageOrId: T | string
|
||||
return assertReturn(message, () => `Attempted to call an invalid contract interface, ${stringify(messageOrId)}`);
|
||||
}
|
||||
|
||||
function getLatestMeta (registry: Registry, json: Record<string, unknown>): ContractMetadataLatest {
|
||||
function getMetadata (registry: Registry, json: AbiJson): ContractMetadataSupported {
|
||||
// this is for V1, V2, V3
|
||||
const vx = enumVersions.find((v) => isObject(json[v]));
|
||||
|
||||
// this was added in V4
|
||||
const jsonVersion = json.version as string;
|
||||
const jsonVersion = json.version;
|
||||
|
||||
if (!vx && jsonVersion && !enumVersions.find((v) => v === `V${jsonVersion}`)) {
|
||||
throw new Error(`Unable to handle version ${jsonVersion}`);
|
||||
@@ -44,20 +54,23 @@ function getLatestMeta (registry: Registry, json: Record<string, unknown>): Cont
|
||||
? { [`V${jsonVersion}`]: json }
|
||||
: { V0: json }
|
||||
);
|
||||
|
||||
const converter = convertVersions.find(([v]) => metadata[`is${v}`]);
|
||||
|
||||
if (!converter) {
|
||||
throw new Error(`Unable to convert ABI with version ${metadata.type} to latest`);
|
||||
throw new Error(`Unable to convert ABI with version ${metadata.type} to a supported version`);
|
||||
}
|
||||
|
||||
return converter[1](registry, metadata[`as${converter[0]}`]);
|
||||
const upgradedMetadata = converter[1](registry, metadata[`as${converter[0]}`]);
|
||||
|
||||
return upgradedMetadata;
|
||||
}
|
||||
|
||||
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, ContractMetadataSupported, ContractProjectInfo] {
|
||||
const registry = new TypeRegistry();
|
||||
const info = registry.createType('ContractProjectInfo', json) as unknown as ContractProjectInfo;
|
||||
const latest = getLatestMeta(registry, json);
|
||||
const lookup = registry.createType('PortableRegistry', { types: latest.types }, true);
|
||||
const metadata = getMetadata(registry, json as unknown as AbiJson);
|
||||
const lookup = registry.createType('PortableRegistry', { types: metadata.types }, true);
|
||||
|
||||
// attach the lookup to the registry - now the types are known
|
||||
registry.setLookup(lookup);
|
||||
@@ -71,7 +84,23 @@ function parseJson (json: Record<string, unknown>, chainProperties?: ChainProper
|
||||
lookup.getTypeDef(id)
|
||||
);
|
||||
|
||||
return [json, registry, latest, info];
|
||||
return [json, registry, metadata, info];
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* Determines if the given input value is a ContractTypeSpec
|
||||
*/
|
||||
function isTypeSpec (value: Codec): value is ContractTypeSpec {
|
||||
return !!value && value instanceof Map && !isUndefined((value as ContractTypeSpec).type) && !isUndefined((value as ContractTypeSpec).displayName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* Determines if the given input value is an Option
|
||||
*/
|
||||
function isOption (value: Codec): value is Option<Codec> {
|
||||
return !!value && value instanceof Option;
|
||||
}
|
||||
|
||||
export class Abi {
|
||||
@@ -80,8 +109,9 @@ export class Abi {
|
||||
readonly info: ContractProjectInfo;
|
||||
readonly json: Record<string, unknown>;
|
||||
readonly messages: AbiMessage[];
|
||||
readonly metadata: ContractMetadataLatest;
|
||||
readonly metadata: ContractMetadataSupported;
|
||||
readonly registry: Registry;
|
||||
readonly environment = new Map<string, TypeDef | Codec>();
|
||||
|
||||
constructor (abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties) {
|
||||
[this.json, this.registry, this.metadata, this.info] = parseJson(
|
||||
@@ -93,29 +123,105 @@ export class Abi {
|
||||
this.constructors = this.metadata.spec.constructors.map((spec: ContractConstructorSpecLatest, index) =>
|
||||
this.#createMessage(spec, index, {
|
||||
isConstructor: true,
|
||||
isPayable: spec.payable.isTrue
|
||||
isDefault: spec.default.isTrue,
|
||||
isPayable: spec.payable.isTrue,
|
||||
returnType: spec.returnType.isSome
|
||||
? this.registry.lookup.getTypeDef(spec.returnType.unwrap().type)
|
||||
: null
|
||||
})
|
||||
);
|
||||
this.events = this.metadata.spec.events.map((spec: ContractEventSpecLatest, index) =>
|
||||
this.#createEvent(spec, index)
|
||||
this.events = this.metadata.spec.events.map((_: ContractEventSupported, index: number) =>
|
||||
this.#createEvent(index)
|
||||
);
|
||||
this.messages = this.metadata.spec.messages.map((spec: ContractMessageSpecLatest, index): AbiMessage => {
|
||||
const typeSpec = spec.returnType.unwrapOr(null);
|
||||
|
||||
return this.#createMessage(spec, index, {
|
||||
this.messages = this.metadata.spec.messages.map((spec: ContractMessageSpecLatest, index): AbiMessage =>
|
||||
this.#createMessage(spec, index, {
|
||||
isDefault: spec.default.isTrue,
|
||||
isMutating: spec.mutates.isTrue,
|
||||
isPayable: spec.payable.isTrue,
|
||||
returnType: typeSpec
|
||||
? this.registry.lookup.getTypeDef(typeSpec.type)
|
||||
returnType: spec.returnType.isSome
|
||||
? this.registry.lookup.getTypeDef(spec.returnType.unwrap().type)
|
||||
: null
|
||||
});
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
// NOTE See the rationale for having Option<...> values in the actual
|
||||
// ContractEnvironmentV4 structure definition in interfaces/contractsAbi
|
||||
// (Due to conversions, the fields may not exist)
|
||||
for (const [key, opt] of this.metadata.spec.environment.entries()) {
|
||||
if (isOption(opt)) {
|
||||
if (opt.isSome) {
|
||||
const value = opt.unwrap();
|
||||
|
||||
if (isBn(value)) {
|
||||
this.environment.set(key, value);
|
||||
} else if (isTypeSpec(value)) {
|
||||
this.environment.set(key, this.registry.lookup.getTypeDef(value.type));
|
||||
} else {
|
||||
throw new Error(`Invalid environment definition for ${key}:: Expected either Number or ContractTypeSpec`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new Error(`Expected Option<*> definition for ${key} in ContractEnvironment`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Warning: Unstable API, bound to change
|
||||
*/
|
||||
public decodeEvent (data: Bytes | Uint8Array): DecodedEvent {
|
||||
public decodeEvent (record: EventRecord): DecodedEvent {
|
||||
switch (this.metadata.version.toString()) {
|
||||
// earlier version are hoisted to v4
|
||||
case '4':
|
||||
return this.#decodeEventV4(record);
|
||||
// Latest
|
||||
default:
|
||||
return this.#decodeEventV5(record);
|
||||
}
|
||||
}
|
||||
|
||||
#decodeEventV5 = (record: EventRecord): DecodedEvent => {
|
||||
// Find event by first topic, which potentially is the signature_topic
|
||||
const signatureTopic = record.topics[0];
|
||||
const data = record.event.data[1] as Bytes;
|
||||
|
||||
if (signatureTopic) {
|
||||
const event = this.events.find((e) => e.signatureTopic !== undefined && e.signatureTopic !== null && e.signatureTopic === signatureTopic.toHex());
|
||||
|
||||
// Early return if event found by signature topic
|
||||
if (event) {
|
||||
return event.fromU8a(data);
|
||||
}
|
||||
}
|
||||
|
||||
// If no event returned yet, it might be anonymous
|
||||
const amountOfTopics = record.topics.length;
|
||||
const potentialEvents = this.events.filter((e) => {
|
||||
// event can't have a signature topic
|
||||
if (e.signatureTopic !== null && e.signatureTopic !== undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// event should have same amount of indexed fields as emitted topics
|
||||
const amountIndexed = e.args.filter((a) => a.indexed).length;
|
||||
|
||||
if (amountIndexed !== amountOfTopics) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If all conditions met, it's a potential event
|
||||
return true;
|
||||
});
|
||||
|
||||
if (potentialEvents.length === 1) {
|
||||
return potentialEvents[0].fromU8a(data);
|
||||
}
|
||||
|
||||
throw new Error('Unable to determine event');
|
||||
};
|
||||
|
||||
#decodeEventV4 = (record: EventRecord): DecodedEvent => {
|
||||
const data = record.event.data[1] as Bytes;
|
||||
const index = data[0];
|
||||
const event = this.events[index];
|
||||
|
||||
@@ -124,7 +230,7 @@ export class Abi {
|
||||
}
|
||||
|
||||
return event.fromU8a(data.subarray(1));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Warning: Unstable API, bound to change
|
||||
@@ -148,7 +254,7 @@ export class Abi {
|
||||
return findMessage(this.messages, messageOrId);
|
||||
}
|
||||
|
||||
#createArgs = (args: ContractMessageParamSpecLatest[], spec: unknown): AbiParam[] => {
|
||||
#createArgs = (args: ContractMessageParamSpecLatest[] | ContractEventParamSpecLatest[], spec: unknown): AbiParam[] => {
|
||||
return args.map(({ label, type }, index): AbiParam => {
|
||||
try {
|
||||
if (!isObject(type)) {
|
||||
@@ -186,8 +292,47 @@ export class Abi {
|
||||
});
|
||||
};
|
||||
|
||||
#createEvent = (spec: ContractEventSpecLatest, index: number): AbiEvent => {
|
||||
const args = this.#createArgs(spec.args, spec);
|
||||
#createMessageParams = (args: ContractMessageParamSpecLatest[], spec: unknown): AbiMessageParam[] => {
|
||||
return this.#createArgs(args, spec);
|
||||
};
|
||||
|
||||
#createEventParams = (args: ContractEventParamSpecLatest[], spec: unknown): AbiEventParam[] => {
|
||||
const params = this.#createArgs(args, spec);
|
||||
|
||||
return params.map((p, index): AbiEventParam => ({ ...p, indexed: args[index].indexed.toPrimitive() }));
|
||||
};
|
||||
|
||||
#createEvent = (index: number): AbiEvent => {
|
||||
// TODO TypeScript would narrow this type to the correct version,
|
||||
// but version is `Text` so I need to call `toString()` here,
|
||||
// which breaks the type inference.
|
||||
switch (this.metadata.version.toString()) {
|
||||
case '4':
|
||||
return this.#createEventV4((this.metadata as ContractMetadataV4).spec.events[index], index);
|
||||
default:
|
||||
return this.#createEventV5((this.metadata as ContractMetadataV5).spec.events[index], index);
|
||||
}
|
||||
};
|
||||
|
||||
#createEventV5 = (spec: EventOf<ContractMetadataV5>, index: number): AbiEvent => {
|
||||
const args = this.#createEventParams(spec.args, spec);
|
||||
const event = {
|
||||
args,
|
||||
docs: spec.docs.map((d) => d.toString()),
|
||||
fromU8a: (data: Uint8Array): DecodedEvent => ({
|
||||
args: this.#decodeArgs(args, data),
|
||||
event
|
||||
}),
|
||||
identifier: [spec.module_path, spec.label].join('::'),
|
||||
index,
|
||||
signatureTopic: spec.signature_topic.isSome ? spec.signature_topic.unwrap().toHex() : null
|
||||
};
|
||||
|
||||
return event;
|
||||
};
|
||||
|
||||
#createEventV4 = (spec: EventOf<ContractMetadataV4>, index: number): AbiEvent => {
|
||||
const args = this.#createEventParams(spec.args, spec);
|
||||
const event = {
|
||||
args,
|
||||
docs: spec.docs.map((d) => d.toString()),
|
||||
@@ -203,7 +348,7 @@ export class Abi {
|
||||
};
|
||||
|
||||
#createMessage = (spec: ContractMessageSpecLatest | ContractConstructorSpecLatest, index: number, add: Partial<AbiMessage> = {}): AbiMessage => {
|
||||
const args = this.#createArgs(spec.args, spec);
|
||||
const args = this.#createMessageParams(spec.args, spec);
|
||||
const identifier = spec.label.toString();
|
||||
const message = {
|
||||
...add,
|
||||
@@ -215,11 +360,12 @@ export class Abi {
|
||||
}),
|
||||
identifier,
|
||||
index,
|
||||
isDefault: spec.default.isTrue,
|
||||
method: stringCamelCase(identifier),
|
||||
path: identifier.split('::').map((s) => stringCamelCase(s)),
|
||||
selector: spec.selector,
|
||||
toU8a: (params: unknown[]) =>
|
||||
this.#encodeArgs(spec, args, params)
|
||||
this.#encodeMessageArgs(spec, args, params)
|
||||
};
|
||||
|
||||
return message;
|
||||
@@ -251,7 +397,7 @@ export class Abi {
|
||||
return message.fromU8a(trimmed.subarray(4));
|
||||
};
|
||||
|
||||
#encodeArgs = ({ label, selector }: ContractMessageSpecLatest | ContractConstructorSpecLatest, args: AbiParam[], data: unknown[]): Uint8Array => {
|
||||
#encodeMessageArgs = ({ label, selector }: ContractMessageSpecLatest | ContractConstructorSpecLatest, args: AbiMessageParam[], data: unknown[]): Uint8Array => {
|
||||
if (data.length !== args.length) {
|
||||
throw new Error(`Expected ${args.length} arguments to contract message '${label.toString()}', found ${data.length}`);
|
||||
}
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ContractMetadataLatest, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
import { v0ToV1 } from './toV1.js';
|
||||
import { v1ToV2 } from './toV2.js';
|
||||
import { v2ToV3 } from './toV3.js';
|
||||
import { v3ToV4 } from './toV4.js';
|
||||
|
||||
// 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 = ['V4', 'V3', 'V2', 'V1'] as const;
|
||||
|
||||
type Versions = typeof enumVersions[number] | 'V0';
|
||||
|
||||
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 v4ToLatest (_registry: Registry, v4: ContractMetadataV4): ContractMetadataLatest {
|
||||
return v4;
|
||||
}
|
||||
|
||||
export const v3ToLatest = /*#__PURE__*/ createConverter(v4ToLatest, v3ToV4);
|
||||
export const v2ToLatest = /*#__PURE__*/ createConverter(v3ToLatest, v2ToV3);
|
||||
export const v1ToLatest = /*#__PURE__*/ createConverter(v2ToLatest, v1ToV2);
|
||||
export const v0ToLatest = /*#__PURE__*/ createConverter(v1ToLatest, v0ToV1);
|
||||
|
||||
export const convertVersions: [Versions, Converter][] = [
|
||||
['V4', v4ToLatest],
|
||||
['V3', v3ToLatest],
|
||||
['V2', v2ToLatest],
|
||||
['V1', v1ToLatest],
|
||||
['V0', v0ToLatest]
|
||||
];
|
||||
+75
-21
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
@@ -6,12 +6,12 @@
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
|
||||
import abis from '../test/contracts/index.js';
|
||||
import { v0ToLatest, v1ToLatest, v2ToLatest, v3ToLatest, v4ToLatest } from './toLatest.js';
|
||||
import { v0ToLatestCompatible, v1ToLatestCompatible, v2ToLatestCompatible, v3ToLatestCompatible, v4ToLatestCompatible, v5ToLatestCompatible } from './toLatestCompatible.js';
|
||||
|
||||
describe('v0ToLatest', (): void => {
|
||||
describe('v0ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V0: abis.ink_v0_erc20 });
|
||||
const latest = v0ToLatest(registry, contract.asV0);
|
||||
const contract = registry.createType('ContractMetadata', { V0: abis['ink_v0_erc20'] });
|
||||
const latest = v0ToLatestCompatible(registry, contract.asV0);
|
||||
|
||||
it('has the correct constructors', (): void => {
|
||||
expect(
|
||||
@@ -48,12 +48,16 @@ describe('v0ToLatest', (): void => {
|
||||
latest.spec.events[0].args.map(({ label }) => label.toString())
|
||||
).toEqual(['from', 'to', 'value']);
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('4');
|
||||
});
|
||||
});
|
||||
|
||||
describe('v1ToLatest', (): void => {
|
||||
describe('v1ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V1: abis.ink_v1_flipper.V1 });
|
||||
const latest = v1ToLatest(registry, contract.asV1);
|
||||
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_flipper']['V1'] });
|
||||
const latest = v1ToLatestCompatible(registry, contract.asV1);
|
||||
|
||||
it('has the correct constructors', (): void => {
|
||||
expect(
|
||||
@@ -68,8 +72,8 @@ describe('v1ToLatest', (): void => {
|
||||
});
|
||||
|
||||
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);
|
||||
const contract = registry.createType('ContractMetadata', { V1: abis['ink_v1_psp22']['V1'] });
|
||||
const latest = v1ToLatestCompatible(registry, contract.asV1);
|
||||
|
||||
expect(
|
||||
latest.spec.messages.map(({ label }) => label.toString())
|
||||
@@ -83,24 +87,32 @@ describe('v1ToLatest', (): void => {
|
||||
latest.spec.constructors[0].args.map(({ label }) => label.toString())
|
||||
).toEqual(['init_value']);
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('4');
|
||||
});
|
||||
});
|
||||
|
||||
describe('v2ToLatest', (): void => {
|
||||
describe('v2ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V2: abis.ink_v2_flipper.V2 });
|
||||
const latest = v2ToLatest(registry, contract.asV2);
|
||||
const contract = registry.createType('ContractMetadata', { V2: abis['ink_v2_flipper']['V2'] });
|
||||
const latest = v2ToLatestCompatible(registry, contract.asV2);
|
||||
|
||||
it('has the correct constructor flag', (): void => {
|
||||
expect(
|
||||
latest.spec.constructors[0].payable.isTrue
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('4');
|
||||
});
|
||||
});
|
||||
|
||||
describe('v3ToLatest', (): void => {
|
||||
describe('v3ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V3: abis.ink_v3_flipper.V3 });
|
||||
const latest = v3ToLatest(registry, contract.asV3);
|
||||
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_flipper']['V3'] });
|
||||
const latest = v3ToLatestCompatible(registry, contract.asV3);
|
||||
|
||||
it('has the correct constructor flags', (): void => {
|
||||
expect(
|
||||
@@ -112,8 +124,8 @@ describe('v3ToLatest', (): void => {
|
||||
});
|
||||
|
||||
it('has the correct messages', (): void => {
|
||||
const contract = registry.createType('ContractMetadata', { V3: abis.ink_v3_traitErc20.V3 });
|
||||
const latest = v3ToLatest(registry, contract.asV3);
|
||||
const contract = registry.createType('ContractMetadata', { V3: abis['ink_v3_traitErc20']['V3'] });
|
||||
const latest = v3ToLatestCompatible(registry, contract.asV3);
|
||||
|
||||
expect(
|
||||
latest.spec.messages.map(({ label }) => label.toString())
|
||||
@@ -121,12 +133,16 @@ describe('v3ToLatest', (): void => {
|
||||
'BaseErc20::total_supply', 'BaseErc20::balance_of', 'BaseErc20::allowance', 'BaseErc20::transfer', 'BaseErc20::approve', 'BaseErc20::transfer_from'
|
||||
]);
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('4');
|
||||
});
|
||||
});
|
||||
|
||||
describe('v4ToLatest', (): void => {
|
||||
describe('v4ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V4: abis.ink_v4_flipperContract });
|
||||
const latest = v4ToLatest(registry, contract.asV4);
|
||||
const contract = registry.createType('ContractMetadata', { V4: abis['ink_v4_flipperContract'] });
|
||||
const latest = v4ToLatestCompatible(registry, contract.asV4);
|
||||
|
||||
it('has the correct constructor flags', (): void => {
|
||||
expect(
|
||||
@@ -136,4 +152,42 @@ describe('v4ToLatest', (): void => {
|
||||
latest.spec.constructors[1].payable.isTrue
|
||||
).toEqual(false);
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('4');
|
||||
});
|
||||
});
|
||||
|
||||
describe('v5ToLatestCompatible', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const contract = registry.createType('ContractMetadata', { V5: abis['ink_v5_erc20Metadata'] });
|
||||
const latest = v5ToLatestCompatible(registry, contract.asV5);
|
||||
|
||||
it('has the correct messages', (): void => {
|
||||
expect(
|
||||
latest.spec.messages.map(({ label }) => label.toString())
|
||||
).toEqual(['total_supply', 'balance_of', 'allowance', 'transfer', 'approve', 'transfer_from']);
|
||||
});
|
||||
|
||||
it('has new event fields', (): void => {
|
||||
expect(
|
||||
latest.spec.events.length
|
||||
).toEqual(2);
|
||||
|
||||
expect(
|
||||
latest.spec.events.every((e) => e.has('module_path'))
|
||||
).toEqual(true);
|
||||
|
||||
expect(latest.spec.events[0].module_path.toString()).toEqual('erc20::erc20');
|
||||
|
||||
expect(
|
||||
latest.spec.events.every((e) => e.has('signature_topic'))
|
||||
).toEqual(true);
|
||||
|
||||
expect(latest.spec.events[0].signature_topic.toHex()).toEqual('0xb5b61a3e6a21a16be4f044b517c28ac692492f73c5bfd3f60178ad98c767f4cb');
|
||||
});
|
||||
|
||||
it('has the latest compatible version number', (): void => {
|
||||
expect(latest.version.toString()).toEqual('5');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ContractMetadataV4, ContractMetadataV5 } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { ContractMetadataSupported } from './index.js';
|
||||
|
||||
import { v0ToV1 } from './toV1.js';
|
||||
import { v1ToV2 } from './toV2.js';
|
||||
import { v2ToV3 } from './toV3.js';
|
||||
import { v3ToV4 } from './toV4.js';
|
||||
|
||||
// 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 = ['V5', 'V4', 'V3', 'V2', 'V1'] as const;
|
||||
|
||||
type Versions = typeof enumVersions[number] | 'V0';
|
||||
|
||||
type Converter = (registry: Registry, vx: any) => ContractMetadataSupported;
|
||||
|
||||
// Helper to convert metadata from one step to the next
|
||||
function createConverter <I, O> (next: (registry: Registry, input: O) => ContractMetadataSupported, step: (registry: Registry, input: I) => O): (registry: Registry, input: I) => ContractMetadataSupported {
|
||||
return (registry: Registry, input: I): ContractMetadataSupported =>
|
||||
next(registry, step(registry, input));
|
||||
}
|
||||
|
||||
export function v5ToLatestCompatible (_registry: Registry, v5: ContractMetadataV5): ContractMetadataV5 {
|
||||
return v5;
|
||||
}
|
||||
|
||||
export function v4ToLatestCompatible (_registry: Registry, v4: ContractMetadataV4): ContractMetadataV4 {
|
||||
return v4;
|
||||
}
|
||||
|
||||
export const v3ToLatestCompatible = /*#__PURE__*/ createConverter(v4ToLatestCompatible, v3ToV4);
|
||||
export const v2ToLatestCompatible = /*#__PURE__*/ createConverter(v3ToLatestCompatible, v2ToV3);
|
||||
export const v1ToLatestCompatible = /*#__PURE__*/ createConverter(v2ToLatestCompatible, v1ToV2);
|
||||
export const v0ToLatestCompatible = /*#__PURE__*/ createConverter(v1ToLatestCompatible, v0ToV1);
|
||||
|
||||
export const convertVersions: [Versions, Converter][] = [
|
||||
['V5', v5ToLatestCompatible],
|
||||
['V4', v4ToLatestCompatible],
|
||||
['V3', v3ToLatestCompatible],
|
||||
['V2', v2ToLatestCompatible],
|
||||
['V1', v1ToLatestCompatible],
|
||||
['V0', v0ToLatestCompatible]
|
||||
];
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ContractMetadataV0, ContractMetadataV1 } from '@polkadot/types/interfaces';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Text } from '@polkadot/types';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ContractMetadataV2, ContractMetadataV3 } from '@polkadot/types/interfaces';
|
||||
|
||||
@@ -1,9 +1,21 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ContractMetadataV3, ContractMetadataV4 } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
export function v3ToV4 (_registry: Registry, v3: ContractMetadataV3): ContractMetadataV4 {
|
||||
return v3;
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
export function v3ToV4 (registry: Registry, v3: ContractMetadataV3): ContractMetadataV4 {
|
||||
return registry.createType('ContractMetadataV4', objectSpread({}, v3, {
|
||||
spec: objectSpread({}, v3.spec, {
|
||||
constructors: v3.spec.constructors.map((c) =>
|
||||
registry.createType('ContractConstructorSpecV4', objectSpread({}, c))
|
||||
),
|
||||
messages: v3.spec.messages.map((m) =>
|
||||
registry.createType('ContractMessageSpecV3', objectSpread({}, m))
|
||||
)
|
||||
}),
|
||||
version: registry.createType('Text', '4')
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '@polkadot/api-augment';
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiBase } from '@polkadot/api/base';
|
||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||
import type { WeightV2 } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { isFunction } from '@polkadot/util';
|
||||
|
||||
import { Abi } from '../Abi/index.js';
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiBase } from '@polkadot/api/base';
|
||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||
import type { Abi } from '../Abi/index.js';
|
||||
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||
import type { MapConstructorExec } from './types.js';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
||||
|
||||
import { Abi } from '../Abi/index.js';
|
||||
import { applyOnEvent } from '../util.js';
|
||||
import { Base } from './Base.js';
|
||||
import { Contract } from './Contract.js';
|
||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||
|
||||
export interface BlueprintConstructor<ApiType extends ApiTypes> {
|
||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array): Blueprint<ApiType>;
|
||||
}
|
||||
export type BlueprintConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array) => Blueprint<ApiType>;
|
||||
|
||||
export class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||
readonly contract?: Contract<ApiType>;
|
||||
readonly contract?: Contract<ApiType> | undefined;
|
||||
|
||||
constructor (result: ISubmittableResult, contract?: Contract<ApiType>) {
|
||||
super(result);
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
|
||||
import { toPromiseMethod } from '@polkadot/api';
|
||||
|
||||
@@ -15,8 +13,7 @@ import v1contractFlipper from '../test/contracts/ink/v1/flipper.contract.json' a
|
||||
import { Code } from './Code.js';
|
||||
import { mockApi } from './mock.js';
|
||||
|
||||
// FIXME When Jest is removed with ESM tests, this should be converted to use import.meta.url
|
||||
const v0wasmFlipper = fs.readFileSync(path.join(process.cwd(), 'packages/api-contract/src/test/contracts/ink/v0/flipper.wasm'), 'utf-8');
|
||||
const v0wasmFlipper = fs.readFileSync(new URL('../test/contracts/ink/v0/flipper.wasm', import.meta.url), 'utf-8');
|
||||
|
||||
describe('Code', (): void => {
|
||||
it('can construct with an individual ABI/WASM combo', (): void => {
|
||||
|
||||
@@ -1,34 +1,32 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiBase } from '@polkadot/api/base';
|
||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||
import type { Codec } from '@polkadot/types-codec/types';
|
||||
import type { Abi } from '../Abi/index.js';
|
||||
import type { AbiConstructor, BlueprintOptions } from '../types.js';
|
||||
import type { MapConstructorExec } from './types.js';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { BN_ZERO, compactAddLength, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||
import { BN_ZERO, compactAddLength, isRiscV, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Abi } from '../Abi/index.js';
|
||||
import { applyOnEvent } from '../util.js';
|
||||
import { Base } from './Base.js';
|
||||
import { Blueprint } from './Blueprint.js';
|
||||
import { Contract } from './Contract.js';
|
||||
import { convertWeight, createBluePrintTx, encodeSalt } from './util.js';
|
||||
|
||||
export interface CodeConstructor<ApiType extends ApiTypes> {
|
||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined): Code<ApiType>;
|
||||
}
|
||||
export type CodeConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined) => Code<ApiType>;
|
||||
|
||||
export class CodeSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
|
||||
readonly blueprint?: Blueprint<ApiType>;
|
||||
readonly contract?: Contract<ApiType>;
|
||||
readonly blueprint?: Blueprint<ApiType> | undefined;
|
||||
readonly contract?: Contract<ApiType> | undefined;
|
||||
|
||||
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType>, contract?: Contract<ApiType>) {
|
||||
constructor (result: ISubmittableResult, blueprint?: Blueprint<ApiType> | undefined, contract?: Contract<ApiType> | undefined) {
|
||||
super(result);
|
||||
|
||||
this.blueprint = blueprint;
|
||||
@@ -36,6 +34,12 @@ export class CodeSubmittableResult<ApiType extends ApiTypes> extends Submittable
|
||||
}
|
||||
}
|
||||
|
||||
// checks to see if the code (or at least the header)
|
||||
// is a valid/supported format
|
||||
function isValidCode (code: Uint8Array): boolean {
|
||||
return isWasm(code) || isRiscV(code);
|
||||
}
|
||||
|
||||
export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
readonly code: Uint8Array;
|
||||
|
||||
@@ -44,12 +48,12 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined, decorateMethod: DecorateMethod<ApiType>) {
|
||||
super(api, abi, decorateMethod);
|
||||
|
||||
this.code = isWasm(this.abi.info.source.wasm)
|
||||
this.code = isValidCode(this.abi.info.source.wasm)
|
||||
? this.abi.info.source.wasm
|
||||
: u8aToU8a(wasm);
|
||||
|
||||
if (!isWasm(this.code)) {
|
||||
throw new Error('No WASM code provided');
|
||||
if (!isValidCode(this.code)) {
|
||||
throw new Error('Invalid code provided');
|
||||
}
|
||||
|
||||
this.abi.constructors.forEach((c): void => {
|
||||
@@ -77,14 +81,14 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
encodeSalt(salt)
|
||||
).withResultTransform((result: ISubmittableResult) =>
|
||||
new CodeSubmittableResult(result, ...(applyOnEvent(result, ['CodeStored', 'Instantiated'], (records: EventRecord[]) =>
|
||||
records.reduce<[Blueprint<ApiType>?, Contract<ApiType>?]>(([blueprint, contract], { event }) =>
|
||||
records.reduce<[Blueprint<ApiType> | undefined, Contract<ApiType> | undefined]>(([blueprint, contract], { event }) =>
|
||||
this.api.events.contracts.Instantiated.is(event)
|
||||
? [blueprint, new Contract<ApiType>(this.api, this.abi, (event as unknown as { data: [Codec, AccountId] }).data[1], this._decorateMethod)]
|
||||
: this.api.events.contracts.CodeStored.is(event)
|
||||
? [new Blueprint<ApiType>(this.api, this.abi, (event as unknown as { data: [AccountId] }).data[0], this._decorateMethod), contract]
|
||||
: [blueprint, contract],
|
||||
[])
|
||||
) || []))
|
||||
[undefined, undefined])
|
||||
) || [undefined, undefined]))
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,28 +1,25 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiBase } from '@polkadot/api/base';
|
||||
import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||
import type { Bytes } from '@polkadot/types';
|
||||
import type { AccountId, ContractExecResult, EventRecord, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||
import type { Abi } from '../Abi/index.js';
|
||||
import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent, WeightAll } from '../types.js';
|
||||
import type { ContractCallResult, ContractCallSend, ContractQuery, ContractTx, MapMessageQuery, MapMessageTx } from './types.js';
|
||||
|
||||
import { map } from 'rxjs';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { BN, BN_HUNDRED, BN_ONE, BN_ZERO, isUndefined, logger } from '@polkadot/util';
|
||||
|
||||
import { Abi } from '../Abi/index.js';
|
||||
import { applyOnEvent } from '../util.js';
|
||||
import { Base } from './Base.js';
|
||||
import { convertWeight, withMeta } from './util.js';
|
||||
|
||||
export interface ContractConstructor<ApiType extends ApiTypes> {
|
||||
new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId): Contract<ApiType>;
|
||||
}
|
||||
export type ContractConstructor<ApiType extends ApiTypes> = new(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, address: string | AccountId) => Contract<ApiType>;
|
||||
|
||||
// As per Rust, 5 * GAS_PER_SEC
|
||||
const MAX_CALL_GAS = new BN(5_000_000_000_000).isub(BN_ONE);
|
||||
@@ -42,7 +39,7 @@ function createTx <ApiType extends ApiTypes> (meta: AbiMessage, fn: (options: Co
|
||||
}
|
||||
|
||||
export class ContractSubmittableResult extends SubmittableResult {
|
||||
readonly contractEvents?: DecodedEvent[];
|
||||
readonly contractEvents?: DecodedEvent[] | undefined;
|
||||
|
||||
constructor (result: ISubmittableResult, contractEvents?: DecodedEvent[]) {
|
||||
super(result);
|
||||
@@ -97,7 +94,7 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
: convertWeight(
|
||||
this.api.consts.system.blockWeights
|
||||
? (this.api.consts.system.blockWeights as unknown as { maxBlock: WeightV2 }).maxBlock
|
||||
: this.api.consts.system.maximumBlockWeight as Weight
|
||||
: this.api.consts.system['maximumBlockWeight'] as Weight
|
||||
).v1Weight.muln(64).div(BN_HUNDRED)
|
||||
);
|
||||
};
|
||||
@@ -117,9 +114,9 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
// ContractEmitted is the current generation, ContractExecution is the previous generation
|
||||
new ContractSubmittableResult(result, applyOnEvent(result, ['ContractEmitted', 'ContractExecution'], (records: EventRecord[]) =>
|
||||
records
|
||||
.map(({ event: { data: [, data] } }): DecodedEvent | null => {
|
||||
.map((record): DecodedEvent | null => {
|
||||
try {
|
||||
return this.abi.decodeEvent(data as Bytes);
|
||||
return this.abi.decodeEvent(record);
|
||||
} catch (error) {
|
||||
l.error(`Unable to decode contract event: ${(error as Error).message}`);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { Blueprint, BlueprintSubmittableResult, extendBlueprint } from './Blueprint.js';
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import type { ApiBase } from '@polkadot/api/base';
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -23,9 +23,7 @@ export interface ContractTx<ApiType extends ApiTypes> extends MessageMeta {
|
||||
(options: ContractOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType>;
|
||||
}
|
||||
|
||||
export interface ContractGeneric<O, T> {
|
||||
(messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]): T;
|
||||
}
|
||||
export type ContractGeneric<O, T> = (messageOrId: AbiMessage | string | number, options: O, ...params: unknown[]) => T;
|
||||
|
||||
export type ContractCallResult<ApiType extends ApiTypes, T> = ApiType extends 'rxjs'
|
||||
? Observable<T>
|
||||
@@ -35,14 +33,8 @@ export interface ContractCallSend<ApiType extends ApiTypes> {
|
||||
send (account: string | AccountId | Uint8Array): ContractCallResult<ApiType, ContractCallOutcome>;
|
||||
}
|
||||
|
||||
export interface MapConstructorExec<ApiType extends ApiTypes> {
|
||||
[message: string]: BlueprintDeploy<ApiType>;
|
||||
}
|
||||
export type MapConstructorExec<ApiType extends ApiTypes> = Record<string, BlueprintDeploy<ApiType>>;
|
||||
|
||||
export interface MapMessageTx<ApiType extends ApiTypes> {
|
||||
[message: string]: ContractTx<ApiType>;
|
||||
}
|
||||
export type MapMessageTx<ApiType extends ApiTypes> = Record<string, ContractTx<ApiType>>;
|
||||
|
||||
export interface MapMessageQuery<ApiType extends ApiTypes> {
|
||||
[message: string]: ContractQuery<ApiType>;
|
||||
}
|
||||
export type MapMessageQuery<ApiType extends ApiTypes> = Record<string, ContractQuery<ApiType>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SubmittableResult } from '@polkadot/api';
|
||||
@@ -35,7 +35,7 @@ export function createBluePrintWithId <T> (fn: (constructorOrId: AbiConstructor
|
||||
export function encodeSalt (salt: Uint8Array | string | null = randomAsU8a()): Uint8Array {
|
||||
return salt instanceof Bytes
|
||||
? salt
|
||||
: salt && salt.length
|
||||
: salt?.length
|
||||
? compactAddLength(u8aToU8a(salt))
|
||||
: EMPTY_SALT;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// all named
|
||||
export { Abi } from './Abi/index.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
|
||||
// all starred
|
||||
export * from './promise/index.js';
|
||||
export * from './rx/index.js';
|
||||
|
||||
@@ -1,31 +1,33 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Simple non-runnable checks to test type definitions in the editor itself
|
||||
|
||||
import '@polkadot/api-augment';
|
||||
|
||||
import type { TestKeyringMapSubstrate } from '@polkadot/keyring/testingPairs';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { BlueprintPromise, ContractPromise } from '@polkadot/api-contract';
|
||||
import { createTestPairs, TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
|
||||
import abiIncrementer from './test/contracts/ink/v0/incrementer.json' assert { type: 'json' };
|
||||
|
||||
async function checkBlueprint (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
|
||||
async function checkBlueprint (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
|
||||
const blueprint = new BlueprintPromise(api, abiIncrementer as Record<string, unknown>, '0x1234');
|
||||
|
||||
await blueprint.tx.new({ gasLimit: 456, salt: '0x1234', value: 123 }, 42).signAndSend(pairs.bob);
|
||||
await blueprint.tx.new({ gasLimit: 456, value: 123 }, 42).signAndSend(pairs.bob);
|
||||
await blueprint.tx['new']({ gasLimit: 456, salt: '0x1234', value: 123 }, 42).signAndSend(pairs.bob);
|
||||
await blueprint.tx['new']({ gasLimit: 456, value: 123 }, 42).signAndSend(pairs.bob);
|
||||
}
|
||||
|
||||
async function checkContract (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
|
||||
async function checkContract (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
|
||||
const contract = new ContractPromise(api, abiIncrementer as Record<string, unknown>, '0x1234');
|
||||
|
||||
// queries
|
||||
await contract.query.get(pairs.alice.address, {});
|
||||
await contract.query['get'](pairs.alice.address, {});
|
||||
|
||||
// execute
|
||||
await contract.tx.inc({ gasLimit: 1234 }, 123).signAndSend(pairs.eve);
|
||||
await contract.tx['inc']({ gasLimit: 1234 }, 123).signAndSend(pairs.eve);
|
||||
}
|
||||
|
||||
async function main (): Promise<void> {
|
||||
@@ -34,12 +36,10 @@ async function main (): Promise<void> {
|
||||
});
|
||||
const pairs = createTestPairs();
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
Promise.all([
|
||||
await Promise.all([
|
||||
checkBlueprint(api, pairs),
|
||||
checkContract(api, pairs)
|
||||
]);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
main().catch(console.error);
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
|
||||
export default [apiInfo, typesInfo];
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import others from './detectOther.js';
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, others);
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// Copyright 2017-2024 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './detectPackage.js';
|
||||
import './packageDetect.js';
|
||||
|
||||
export * from './bundle.js';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user